WIP: Block identity CRDT design proof (#671) #708

Closed
kayg wants to merge 1 commit from proto/block-identity into dev
Owner

Design proof for #671. Decimal footer coordinates merge as editable text and lose their target. This isolated prototype instead uses private Yjs tokens, text-lineage attributes and an incarnation map, then writes markdown markers from a merged snapshot. It includes draft ADR 0067 with the options comparison, command rules, format boundary and migration plan.

Validation: 18 TS proof tests pass, including all requested round-7 boundaries and 20,000 two-client seeds (480,000 commands). The independent oracle checks token liveness, lineage attachment and unique ownership from Yjs deltas. Both 1,000-line operation-count checks, the first-capture read trap, TS types, Rust shared vectors, fmt and clippy pass. Evidence and gate output are in #671 comments; no run artifacts are committed.

Draft only. Product code is untouched. Native room validation, a real editor projection binding, cross-note durable cut receipts, lossless interior-code migration, indexed structural commands and browser/epoch recovery tests remain adoption gates. Concurrent cut/typing retains ordinary Yjs source-side insertion semantics. Read the ADR limitations before choosing the production model. Do not merge this prototype as a production fix.

Design proof for #671. Decimal footer coordinates merge as editable text and lose their target. This isolated prototype instead uses private Yjs tokens, text-lineage attributes and an incarnation map, then writes markdown markers from a merged snapshot. It includes draft ADR 0067 with the options comparison, command rules, format boundary and migration plan. Validation: 18 TS proof tests pass, including all requested round-7 boundaries and 20,000 two-client seeds (480,000 commands). The independent oracle checks token liveness, lineage attachment and unique ownership from Yjs deltas. Both 1,000-line operation-count checks, the first-capture read trap, TS types, Rust shared vectors, fmt and clippy pass. Evidence and gate output are in #671 comments; no run artifacts are committed. Draft only. Product code is untouched. Native room validation, a real editor projection binding, cross-note durable cut receipts, lossless interior-code migration, indexed structural commands and browser/epoch recovery tests remain adoption gates. Concurrent cut/typing retains ordinary Yjs source-side insertion semantics. Read the ADR limitations before choosing the production model. Do not merge this prototype as a production fix.
Prototype structured block identity and draft its CRDT contract
Some checks failed
CI / server (pull_request) Successful in 1m7s
CI / rust (pull_request) Successful in 24m37s
CI / web (pull_request) Failing after 1h0m3s
2e012c4a1b
Author
Owner

Closing per #931: #758 is the surviving block identity proof.

Closing per #931: #758 is the surviving block identity proof.
kayg closed this pull request 2026-11-04 17:37:28 +00:00
Some checks failed
CI / server (pull_request) Successful in 1m7s
CI / rust (pull_request) Successful in 24m37s
CI / web (pull_request) Failing after 1h0m3s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!708
No description provided.