WIP: block IDs in one shared note text (#671) #741

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

Superseded by #743: #743. The replacement head 2c3083949d passes the requested independent gates. A new branch was required because this forge ignores pushes to an open PR branch. The original head and failed gate record below are unchanged.

Split and join now edit a newline in one shared Yrs text per note, without copying human text into another block text. The note text is also the saved file. One format module owns marker parsing and writing. The server confirms or rekeys claims through ordinary marker edits and keeps permanent retirements. The design is in docs/design/block-ids-v7.md.

This is a failed prototype for issue #671. Do not merge. Head: c7d5a6cdc5. Base: d83e54dbe5.

The independent verify3 run completed 200,000 seeds, with 100,000 three-device seeds and 100,000 five-device seeds. It found 31 failing seeds and 31 failed checks across 6651283 admission checks. First visible mismatch: seed 10469, where an empty linked block disappears from the projection. First file mismatch: seed 63819, where an ID is on the preceding empty row. The oracle, scenarios, invariants and 41 probes retain their checks; only formatting changed.

Workspace formatting and workspace clippy with -D warnings pass. Workspace tests fail in the block-ID break2 and random targets. The 41 probes finish at 39 passed and 2 failed: checksum_corruption_does_not_change_room and map_preserves_unlinked_text. The older random stress test also cannot recover a token at seed 672 after concurrent moves. All six added API checks pass, including redo, whole-file editing, marker removal, stale revision rejection and native-file delete behavior.

The new APIs are Device::redo and Device::outside_edit. Whole-file editing accepts a known revision with aligned block boundaries. Changed block counts, duplicate claims or changed owners return a conflict before mutation. Precise outside insertions still use outside_paste. Redo and outside-file calls have directed supplemental coverage; the unchanged independent random generator does not exercise them.

The prototype is isolated from the app. UI, source, search, accessibility, browser UTF-16 and bare provisional URL rewriting are not covered. The server still clones the whole document for admission and refreshes broad indexes; the passing local typing copy budget is not proof of Home-scale performance. No perf VM measurement was made. Undo/redo history across device restart and move undo chains are not verified. No merge or deploy was performed. Full gate output is on #671, not in repository artifacts.

Superseded by #743: https://git.kayg.org/kayg/calternal/pulls/743. The replacement head 2c3083949d6d28a1d633479e4408c8f60b3aeb4c passes the requested independent gates. A new branch was required because this forge ignores pushes to an open PR branch. The original head and failed gate record below are unchanged. Split and join now edit a newline in one shared Yrs text per note, without copying human text into another block text. The note text is also the saved file. One format module owns marker parsing and writing. The server confirms or rekeys claims through ordinary marker edits and keeps permanent retirements. The design is in docs/design/block-ids-v7.md. This is a failed prototype for issue #671. Do not merge. Head: c7d5a6cdc5facd0caf1b0e47abd5dd2db79ea840. Base: d83e54dbe571b625504001a8b6add90d44ca6161. The independent verify3 run completed 200,000 seeds, with 100,000 three-device seeds and 100,000 five-device seeds. It found 31 failing seeds and 31 failed checks across 6651283 admission checks. First visible mismatch: seed 10469, where an empty linked block disappears from the projection. First file mismatch: seed 63819, where an ID is on the preceding empty row. The oracle, scenarios, invariants and 41 probes retain their checks; only formatting changed. Workspace formatting and workspace clippy with -D warnings pass. Workspace tests fail in the block-ID break2 and random targets. The 41 probes finish at 39 passed and 2 failed: checksum_corruption_does_not_change_room and map_preserves_unlinked_text. The older random stress test also cannot recover a token at seed 672 after concurrent moves. All six added API checks pass, including redo, whole-file editing, marker removal, stale revision rejection and native-file delete behavior. The new APIs are Device::redo and Device::outside_edit. Whole-file editing accepts a known revision with aligned block boundaries. Changed block counts, duplicate claims or changed owners return a conflict before mutation. Precise outside insertions still use outside_paste. Redo and outside-file calls have directed supplemental coverage; the unchanged independent random generator does not exercise them. The prototype is isolated from the app. UI, source, search, accessibility, browser UTF-16 and bare provisional URL rewriting are not covered. The server still clones the whole document for admission and refreshes broad indexes; the passing local typing copy budget is not proof of Home-scale performance. No perf VM measurement was made. Undo/redo history across device restart and move undo chains are not verified. No merge or deploy was performed. Full gate output is on #671, not in repository artifacts.
Prototype block IDs in one shared text per note
Some checks failed
CI / server (pull_request) Successful in 1m0s
CI / rust (pull_request) Failing after 6m26s
CI / web (pull_request) Has been cancelled
c7d5a6cdc5
Author
Owner

Closing: superseded by #743, then #745, then #758 (named in the PR body or comments). Branch kept.

Closing: superseded by #743, then #745, then #758 (named in the PR body or comments). Branch kept.
kayg closed this pull request 2026-11-04 13:04:33 +00:00
Some checks failed
CI / server (pull_request) Successful in 1m0s
CI / rust (pull_request) Failing after 6m26s
CI / web (pull_request) Has been cancelled

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!741
No description provided.