WIP: Reject text-only block identity normaliser (#671) #722

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

The proposed normaliser cannot distinguish an offline first link to a deleted paragraph from a valid first link to a live paragraph. Both histories have the same merged text (!? ^0000in) and empty retired-ID set, but B2 requires opposite ownership outcomes. This draft rejects the specified pure text plus retired-ID interface. It does not reject every design using Yjs as the only CRDT.

Adds an executable four-client Yjs counterexample and a native Y.UndoManager control for the split-Undo remote-text failure in #720. The witness coalesces offline changes into one update, then delivers duplicate and reversed updates. ADR 0056 explains the information gap, comparison with #720, and the additional causal interface a revised proposal would need.

The focused variation gate uses 200,000 cases. It is not the requested full semantic fuzz or a port of all break probes. No production normaliser, CodeMirror guards, Rust format module, shared vectors, or typing-work measurement is supplied: those gates remain unestablished because the specified interface is contradictory. Test passes mean the counterexample was reproduced, not that the proposed model passed.

Validation: source /etc/calternal/env.sh, then build-slot.sh with WITNESS_COUNT=200000 bun test tests and bun run check in prototypes/block-identity-3. Verbatim output and the final status are recorded on #671. No evidence artifacts are committed.

Related: #671, #720. No merge or deployment.

The proposed normaliser cannot distinguish an offline first link to a deleted paragraph from a valid first link to a live paragraph. Both histories have the same merged text (`!? ^0000in`) and empty retired-ID set, but B2 requires opposite ownership outcomes. This draft rejects the specified pure text plus retired-ID interface. It does not reject every design using Yjs as the only CRDT. Adds an executable four-client Yjs counterexample and a native Y.UndoManager control for the split-Undo remote-text failure in #720. The witness coalesces offline changes into one update, then delivers duplicate and reversed updates. ADR 0056 explains the information gap, comparison with #720, and the additional causal interface a revised proposal would need. The focused variation gate uses 200,000 cases. It is not the requested full semantic fuzz or a port of all break probes. No production normaliser, CodeMirror guards, Rust format module, shared vectors, or typing-work measurement is supplied: those gates remain unestablished because the specified interface is contradictory. Test passes mean the counterexample was reproduced, not that the proposed model passed. Validation: source /etc/calternal/env.sh, then build-slot.sh with WITNESS_COUNT=200000 bun test tests and bun run check in prototypes/block-identity-3. Verbatim output and the final status are recorded on #671. No evidence artifacts are committed. Related: #671, #720. No merge or deployment.
Disprove text-only block identity normaliser with Yjs witness
Some checks failed
CI / server (pull_request) Successful in 1m7s
CI / rust (pull_request) Successful in 12m35s
CI / web (pull_request) Failing after 1h0m3s
e78ee75ff3
Author
Owner

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

Closing per #931: #758 is the surviving block identity implementation.
kayg closed this pull request 2026-11-04 17:37:19 +00:00
Some checks failed
CI / server (pull_request) Successful in 1m7s
CI / rust (pull_request) Successful in 12m35s
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!722
No description provided.