Fix block identity admission, cached typing and long-note Undo #758

Open
kayg wants to merge 4 commits from proto/block-identity-v7d into dev
Owner

Offline edits can survive a deleted native text range, target the old location of a moved block, or write Unicode into a neighbor. Admission now retires orphaned inserts into history, follows native character provenance across note moves, and converts byte and UTF-16 positions at the Yrs boundary. Undo and Redo preserve native ownership across independent deletions, joined rows and moved copies.

The format module owns quoted fences, setext headings, CR/CRLF normalization, marker placement and metadata range partitioning. Cached typing covers caret, backtick, tilde, pipe, newline and Enter. Long-note bootstrap batches admission refresh, and immediate mapped-split Undo restores the affected causal owner group while deferring map serialization to save/sync. Joined owners share endpoint resolution and span serialization. Cached byte positions are invalidated by native note deltas. Intervening edits or deliveries use ordinary history.

Validation on the build host passed formatting, Clippy with warnings denied, all block-ID release tests including non-ignored load scaling and Undo/Redo comparison tests, 200000 VERIFY3 sessions, 300000 VERIFY4 sessions, 300000 VERIFY5 sessions, and a 960-second fuzz campaign with no panic or timeout. The three independent harnesses retain their oracles and invariants. All seven key classes pass the unchanged 1 ms added-p95 bound at 10000 lines and 500 links; Enter adds 0.935 ms. These are build host, not a perf VM number. Final perf-VM measurement remains with the coordinator.

Refs #671; supersedes draft #745. Complete gate output, commands, scaling table and fuzz corpus: #671 (comment)

Offline edits can survive a deleted native text range, target the old location of a moved block, or write Unicode into a neighbor. Admission now retires orphaned inserts into history, follows native character provenance across note moves, and converts byte and UTF-16 positions at the Yrs boundary. Undo and Redo preserve native ownership across independent deletions, joined rows and moved copies. The format module owns quoted fences, setext headings, CR/CRLF normalization, marker placement and metadata range partitioning. Cached typing covers caret, backtick, tilde, pipe, newline and Enter. Long-note bootstrap batches admission refresh, and immediate mapped-split Undo restores the affected causal owner group while deferring map serialization to save/sync. Joined owners share endpoint resolution and span serialization. Cached byte positions are invalidated by native note deltas. Intervening edits or deliveries use ordinary history. Validation on the build host passed formatting, Clippy with warnings denied, all block-ID release tests including non-ignored load scaling and Undo/Redo comparison tests, 200000 VERIFY3 sessions, 300000 VERIFY4 sessions, 300000 VERIFY5 sessions, and a 960-second fuzz campaign with no panic or timeout. The three independent harnesses retain their oracles and invariants. All seven key classes pass the unchanged 1 ms added-p95 bound at 10000 lines and 500 links; Enter adds 0.935 ms. These are build host, not a perf VM number. Final perf-VM measurement remains with the coordinator. Refs #671; supersedes draft #745. Complete gate output, commands, scaling table and fuzz corpus: https://git.kayg.org/kayg/calternal/issues/671#issuecomment-69473
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
Fix native block ownership and recoverable history
Some checks failed
CI / server (pull_request) Successful in 1m14s
CI / rust (pull_request) Successful in 20m49s
CI / web (pull_request) Has been cancelled
2c3083949d
Keep structured block markers outside native split and join edits
Some checks failed
CI / server (pull_request) Successful in 1m2s
CI / rust (pull_request) Failing after 5m19s
CI / web (pull_request) Has been cancelled
863b8bf1c0
Fix native block ownership and cached typing boundaries
Some checks failed
CI / server (pull_request) Successful in 1m17s
CI / rust (pull_request) Failing after 30m1s
CI / web (pull_request) Failing after 2h40m59s
fdfe99766a
Author
Owner

Starting long-note performance investigation on proto/block-identity-v7d at fdfe99766a (perf-test-03). I will measure load, sync and first delimiter conversion independently, fix the measured cause, and run the required gates. No merge or deployment.

Starting long-note performance investigation on proto/block-identity-v7d at fdfe99766ab8f65f4393fbcafac8fa58ef19617f (perf-test-03). I will measure load, sync and first delimiter conversion independently, fix the measured cause, and run the required gates. No merge or deployment.
Author
Owner

Initial release measurements on perf-test-03 under perf-run.sh, with the benchmark shape scaled at one link per 20 lines:

Lines Load ms Sync ms First delimiter ms
250 2.865 5.697 0.191
500 10.165 34.454 0.732
1000 33.943 362.163 6.162
2000 145.423 7749.459 65.349

The 4000-line measurement is still running. Sync dominates and grows much faster than quadratic. I added temporary timing spans around admission, marker stripping, reindexing and reconciliation to identify the exact cause. The existing typing benchmark has not been changed.

Initial release measurements on perf-test-03 under perf-run.sh, with the benchmark shape scaled at one link per 20 lines: | Lines | Load ms | Sync ms | First delimiter ms | |---:|---:|---:|---:| |250|2.865|5.697|0.191| |500|10.165|34.454|0.732| |1000|33.943|362.163|6.162| |2000|145.423|7749.459|65.349| The 4000-line measurement is still running. Sync dominates and grows much faster than quadratic. I added temporary timing spans around admission, marker stripping, reindexing and reconciliation to identify the exact cause. The existing typing benchmark has not been changed.
Author
Owner

Completed baseline scaling (release, perf-run.sh).

Lines Load ms Sync ms First delimiter ms
250 2.865 5.697 0.191
500 10.165 34.454 0.732
1000 33.943 362.163 6.162
2000 145.423 7749.459 65.349
4000 725.767 148334.042 660.362

Sync has an empirical power exponent of 3.71 over all sizes, 4.34 over 1000–4000 lines. Load is roughly quadratic; first conversion becomes roughly cubic as retained native history grows.

No perf executable is installed, so I profiled an unoptimized debug build using temporary timing spans. At 1000 lines, sync took 1056.9 ms: reconcile 345.4 ms, strip_markers 301.4 ms, marker_spans 227.5 ms, reindex 89.6 ms, candidate cloning 59.5 ms. Reconcile includes 176.1 ms writing patches, 106.1 ms resolving owners and 61.1 ms resolving boundaries.

Exact cause: Server::receive strips every known marker on every packet, then reconcile inserts them again. With skip_gc enabled this retains a quadratic number of deleted marker items. Yrs StickyIndex::get_offset walks left through those items, and TextRef::get_string walks all items. The byte-oriented Note::sticky_index and text::offset wrappers copy a full note on each marker lookup, multiplying the cost. Device::load also refreshes projection and reindexes after every row and import claim.

The new non-ignored 2000-line regression test failed on the original implementation: load+sync took 7.966486236s, budget 100ms. I am fixing marker churn and redundant boundary work while retaining the existing typing bounds and harnesses.

Completed baseline scaling (release, perf-run.sh). | Lines | Load ms | Sync ms | First delimiter ms | |---:|---:|---:|---:| |250|2.865|5.697|0.191| |500|10.165|34.454|0.732| |1000|33.943|362.163|6.162| |2000|145.423|7749.459|65.349| |4000|725.767|148334.042|660.362| Sync has an empirical power exponent of 3.71 over all sizes, 4.34 over 1000–4000 lines. Load is roughly quadratic; first conversion becomes roughly cubic as retained native history grows. No perf executable is installed, so I profiled an unoptimized debug build using temporary timing spans. At 1000 lines, sync took 1056.9 ms: reconcile 345.4 ms, strip_markers 301.4 ms, marker_spans 227.5 ms, reindex 89.6 ms, candidate cloning 59.5 ms. Reconcile includes 176.1 ms writing patches, 106.1 ms resolving owners and 61.1 ms resolving boundaries. Exact cause: Server::receive strips every known marker on every packet, then reconcile inserts them again. With skip_gc enabled this retains a quadratic number of deleted marker items. Yrs StickyIndex::get_offset walks left through those items, and TextRef::get_string walks all items. The byte-oriented Note::sticky_index and text::offset wrappers copy a full note on each marker lookup, multiplying the cost. Device::load also refreshes projection and reindexes after every row and import claim. The new non-ignored 2000-line regression test failed on the original implementation: load+sync took 7.966486236s, budget 100ms. I am fixing marker churn and redundant boundary work while retaining the existing typing bounds and harnesses.
Author
Owner

The fix now combines two changes: marker retirement preserves intervals still recognized by the format, and fresh append-only imports share one admission refresh after verifying their ordinary Create/Import packet sequence, complete source and native owner envelopes. Other sequences use individual admission. Bootstrap appends reuse the existing insertion rules without reparsing the preceding row.

Release scaling after the fix, on perf-test-03 under perf-run.sh:

Lines Load ms Sync ms Load+sync ms First delimiter ms
250 0.959 1.197 2.155 0.320
500 1.687 2.278 3.965 0.409
1000 3.092 3.507 6.599 0.770
2000 5.731 7.946 13.677 2.228
4000 13.790 21.568 35.358 7.465
10000 55.686 110.335 166.021 42.663

The same benchmark shape is used before and after: first n/20 rows linked, remaining tail fenced as in cached_keys.rs. Through 4000 lines, load is approximately linear and sync is mildly superlinear; the remaining one-time owner/index work grows with owner count. The 10000-line setup is under the requested 200 ms. The non-ignored 2000-line regression passes (100 ms release bound, 2 s debug bound). Added tests compare batched and individual admission and exercise restart, edits, delete and Undo. Full gates and the unchanged typing benchmark are still running.

The fix now combines two changes: marker retirement preserves intervals still recognized by the format, and fresh append-only imports share one admission refresh after verifying their ordinary Create/Import packet sequence, complete source and native owner envelopes. Other sequences use individual admission. Bootstrap appends reuse the existing insertion rules without reparsing the preceding row. Release scaling after the fix, on perf-test-03 under perf-run.sh: | Lines | Load ms | Sync ms | Load+sync ms | First delimiter ms | |---:|---:|---:|---:|---:| |250|0.959|1.197|2.155|0.320| |500|1.687|2.278|3.965|0.409| |1000|3.092|3.507|6.599|0.770| |2000|5.731|7.946|13.677|2.228| |4000|13.790|21.568|35.358|7.465| |10000|55.686|110.335|166.021|42.663| The same benchmark shape is used before and after: first n/20 rows linked, remaining tail fenced as in cached_keys.rs. Through 4000 lines, load is approximately linear and sync is mildly superlinear; the remaining one-time owner/index work grows with owner count. The 10000-line setup is under the requested 200 ms. The non-ignored 2000-line regression passes (100 ms release bound, 2 s debug bound). Added tests compare batched and individual admission and exercise restart, edits, delete and Undo. Full gates and the unchanged typing benchmark are still running.
Author
Owner

Finding: Enter already uses cached native insertion, but Undo normalizes mapped metadata before the native undo and again during send, then reindexes and refreshes the whole note. map_refresh resolves every owner through text::offset, copying the note at each endpoint. It also replaces the changed map header, accumulating retained syntax tombstones. Initial release diagnostics (build host, not a perf VM number):

Lines Load+sync ms First conversion ms Enter ms Undo ms
250 1.006 0.095 0.015 0.518
500 1.692 0.201 0.022 1.266
1000 3.557 0.544 0.053 3.546
2000 8.136 1.818 0.077 11.847
4000 21.562 6.159 0.150 44.339
10000 97.460 44.187 0.320 275.149

Implementing bounded Undo for an immediately preceding mapped cached split, invalidated by any intervening command, sync or pull. The existing history path remains the fallback. The specific task instruction to push only proto/block-identity-v7d takes precedence over the general new-branch rule; I will push only that branch and report the resulting remote SHA.

Finding: Enter already uses cached native insertion, but Undo normalizes mapped metadata before the native undo and again during send, then reindexes and refreshes the whole note. map_refresh resolves every owner through text::offset, copying the note at each endpoint. It also replaces the changed map header, accumulating retained syntax tombstones. Initial release diagnostics (build host, not a perf VM number): | Lines | Load+sync ms | First conversion ms | Enter ms | Undo ms | |---:|---:|---:|---:|---:| |250|1.006|0.095|0.015|0.518| |500|1.692|0.201|0.022|1.266| |1000|3.557|0.544|0.053|3.546| |2000|8.136|1.818|0.077|11.847| |4000|21.562|6.159|0.150|44.339| |10000|97.460|44.187|0.320|275.149| Implementing bounded Undo for an immediately preceding mapped cached split, invalidated by any intervening command, sync or pull. The existing history path remains the fallback. The specific task instruction to push only proto/block-identity-v7d takes precedence over the general new-branch rule; I will push only that branch and report the resulting remote SHA.
Author
Owner

The bounded immediate mapped-split Undo path now restores causal owner intervals and updates only the affected owner group. It defers map serialization to save/sync, as cached typing already does. Intervening commands, attempted edits, sync and pull invalidate the receipt. Native Undo scope discovery now resolves the branch directly without copying note text.

First patched release diagnostics (build host, not a perf VM number):

Lines Load+sync ms First conversion ms Enter ms Undo ms
250 0.997 0.098 0.016 0.019
500 1.666 0.196 0.022 0.021
1000 3.681 0.562 0.039 0.032
2000 8.431 1.711 0.078 0.056
4000 21.386 5.965 0.142 0.101
10000 94.652 38.095 0.319 0.246

The new comparison tests caught and corrected a member-order difference after repeated split/Undo/Redo. The optimized state now matches ordinary history, including member precedence. Both history tests pass; the non-ignored load budget and repeated Enter/Undo zero-materialization regression also pass. The unchanged 10000-line benchmark and full gates are next.

The bounded immediate mapped-split Undo path now restores causal owner intervals and updates only the affected owner group. It defers map serialization to save/sync, as cached typing already does. Intervening commands, attempted edits, sync and pull invalidate the receipt. Native Undo scope discovery now resolves the branch directly without copying note text. First patched release diagnostics (build host, not a perf VM number): | Lines | Load+sync ms | First conversion ms | Enter ms | Undo ms | |---:|---:|---:|---:|---:| |250|0.997|0.098|0.016|0.019| |500|1.666|0.196|0.022|0.021| |1000|3.681|0.562|0.039|0.032| |2000|8.431|1.711|0.078|0.056| |4000|21.386|5.965|0.142|0.101| |10000|94.652|38.095|0.319|0.246| The new comparison tests caught and corrected a member-order difference after repeated split/Undo/Redo. The optimized state now matches ordinary history, including member precedence. Both history tests pass; the non-ignored load budget and repeated Enter/Undo zero-materialization regression also pass. The unchanged 10000-line benchmark and full gates are next.
Author
Owner

Second finding: the unchanged 240-cycle benchmark exposes another cost after fixing map churn. Each Undo leaves a joined native owner handle. cached_split then resolves identical native endpoints separately for every joined handle. Release build-host results: x/^/`/~/|/newline added p95 0.220/0.248/0.251/0.272/0.273/0.296 ms; Enter added p95 8.242 ms. These are build host, not a perf VM number.

I am sharing native endpoint resolution and serialized spans across joined members, writing the bindings in one transaction. All owner handles and causal semantics remain present. Both immediate Undo and cached typing use the same text-layer batch helper. The benchmark oracle and 1 ms bound remain unchanged.

Second finding: the unchanged 240-cycle benchmark exposes another cost after fixing map churn. Each Undo leaves a joined native owner handle. cached_split then resolves identical native endpoints separately for every joined handle. Release build-host results: x/^/`/~/|/newline added p95 0.220/0.248/0.251/0.272/0.273/0.296 ms; Enter added p95 8.242 ms. These are build host, not a perf VM number. I am sharing native endpoint resolution and serialized spans across joined members, writing the bindings in one transaction. All owner handles and causal semantics remain present. Both immediate Undo and cached typing use the same text-layer batch helper. The benchmark oracle and 1 ms bound remain unchanged.
Author
Owner

All seven key classes now pass the unchanged 1 ms p95 assertion. This is a build host, not a perf VM number.

CACHED_KEYS first_delimiter_conversion_ms=37.391164 lines=10000 links=500
CACHED_KEYS token="x" lines=10000 links=500 native_p95_ms=0.000583 marker_p95_ms=0.193376 added_ms=0.192793
CACHED_KEYS token="^" lines=10000 links=500 native_p95_ms=0.000583 marker_p95_ms=0.206210 added_ms=0.205627
CACHED_KEYS token="`" lines=10000 links=500 native_p95_ms=0.000667 marker_p95_ms=0.220584 added_ms=0.219917
CACHED_KEYS token="~" lines=10000 links=500 native_p95_ms=0.000792 marker_p95_ms=0.229001 added_ms=0.228209
CACHED_KEYS token="|" lines=10000 links=500 native_p95_ms=0.000917 marker_p95_ms=0.258751 added_ms=0.257834
CACHED_KEYS token="\n" lines=10000 links=500 native_p95_ms=0.000792 marker_p95_ms=0.262501 added_ms=0.261709
CACHED_KEYS token="Enter" lines=10000 links=500 native_p95_ms=0.002292 marker_p95_ms=0.874212 added_ms=0.871920

The final improvement caches byte positions with the observed note version and avoids duplicate split validation unless map conversion changed positions. Any native text delta invalidates the byte positions; validation then resolves the causal anchors. Targeted Undo/Redo, atomic fenced/table, Unicode, sync and repeated zero-materialization tests pass. The final full campaigns and a 960-second fuzz run have started in one sequential build-slot job. Performance acceptance on the perf VM remains with the coordinator.

All seven key classes now pass the unchanged 1 ms p95 assertion. This is a build host, not a perf VM number. ```text CACHED_KEYS first_delimiter_conversion_ms=37.391164 lines=10000 links=500 CACHED_KEYS token="x" lines=10000 links=500 native_p95_ms=0.000583 marker_p95_ms=0.193376 added_ms=0.192793 CACHED_KEYS token="^" lines=10000 links=500 native_p95_ms=0.000583 marker_p95_ms=0.206210 added_ms=0.205627 CACHED_KEYS token="`" lines=10000 links=500 native_p95_ms=0.000667 marker_p95_ms=0.220584 added_ms=0.219917 CACHED_KEYS token="~" lines=10000 links=500 native_p95_ms=0.000792 marker_p95_ms=0.229001 added_ms=0.228209 CACHED_KEYS token="|" lines=10000 links=500 native_p95_ms=0.000917 marker_p95_ms=0.258751 added_ms=0.257834 CACHED_KEYS token="\n" lines=10000 links=500 native_p95_ms=0.000792 marker_p95_ms=0.262501 added_ms=0.261709 CACHED_KEYS token="Enter" lines=10000 links=500 native_p95_ms=0.002292 marker_p95_ms=0.874212 added_ms=0.871920 ``` The final improvement caches byte positions with the observed note version and avoids duplicate split validation unless map conversion changed positions. Any native text delta invalidates the byte positions; validation then resolves the causal anchors. Targeted Undo/Redo, atomic fenced/table, Unicode, sync and repeated zero-materialization tests pass. The final full campaigns and a 960-second fuzz run have started in one sequential build-slot job. Performance acceptance on the perf VM remains with the coordinator.
Author
Owner

Starting the remaining Enter and Undo scaling work on branch proto/block-identity-v7d, base a842fbbbc7. I will run the requested correctness gates on the build host and label measurements as build host, not a perf VM number. The task-specific instructions require pushing only this branch; they take precedence over the generic new-branch instruction.

Starting the remaining Enter and Undo scaling work on branch proto/block-identity-v7d, base a842fbbbc76732f7dee1590ea35535844c6efa86. I will run the requested correctness gates on the build host and label measurements as build host, not a perf VM number. The task-specific instructions require pushing only this branch; they take precedence over the generic new-branch instruction.
Author
Owner

Review finding: a842fbbb already contains the bounded immediate mapped-split Undo path and shared native interval writes. Ordinary Undo rebuilt the note map and resolved every owner; the immediate path restores only the split owner group and defers map serialization to save/sync. Joined members share endpoint resolution and span serialization. Projection byte positions are guarded by the observed native note version, so equal UTF-16-length edits with different UTF-8 widths invalidate cached bytes. Existing comparison tests check the optimized path against ordinary Undo through repeated Undo/Redo and sync, including Unicode, fences and tables. Fresh formatting and Clippy gates have passed; the release correctness campaigns are running. No further product change is justified until those results are available.

Review finding: a842fbbb already contains the bounded immediate mapped-split Undo path and shared native interval writes. Ordinary Undo rebuilt the note map and resolved every owner; the immediate path restores only the split owner group and defers map serialization to save/sync. Joined members share endpoint resolution and span serialization. Projection byte positions are guarded by the observed native note version, so equal UTF-16-length edits with different UTF-8 widths invalidate cached bytes. Existing comparison tests check the optimized path against ordinary Undo through repeated Undo/Redo and sync, including Unicode, fences and tables. Fresh formatting and Clippy gates have passed; the release correctness campaigns are running. No further product change is justified until those results are available.
Author
Owner

Fresh measurements on a842fbbbc7. These are build host, not a perf VM number.

Lines Load + sync ms First conversion ms Enter ms Undo ms
250 1.131 0.104 0.034 0.021
500 1.755 0.197 0.018 0.026
1000 3.529 0.541 0.034 0.028
2000 8.244 1.704 0.060 0.050
4000 21.130 5.930 0.100 0.081
10000 88.913 36.433 0.264 0.206

The unchanged 10,000-line, 500-link benchmark passes every key class, including the 240 split/Undo cycles. Verbatim output:

CACHED_KEYS first_delimiter_conversion_ms=44.536264 lines=10000 links=500
CACHED_KEYS token="x" lines=10000 links=500 native_p95_ms=0.001125 marker_p95_ms=0.234585 added_ms=0.233460
CACHED_KEYS token="^" lines=10000 links=500 native_p95_ms=0.000625 marker_p95_ms=0.207793 added_ms=0.207168
CACHED_KEYS token="`" lines=10000 links=500 native_p95_ms=0.000709 marker_p95_ms=0.228501 added_ms=0.227792
CACHED_KEYS token="~" lines=10000 links=500 native_p95_ms=0.000792 marker_p95_ms=0.254959 added_ms=0.254167
CACHED_KEYS token="|" lines=10000 links=500 native_p95_ms=0.000834 marker_p95_ms=0.242751 added_ms=0.241917
CACHED_KEYS token="\n" lines=10000 links=500 native_p95_ms=0.000709 marker_p95_ms=0.245085 added_ms=0.244376
CACHED_KEYS token="Enter" lines=10000 links=500 native_p95_ms=0.002084 marker_p95_ms=0.937130 added_ms=0.935046
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 16 filtered out; finished in 1.39s

Formatting, Clippy with warnings denied, all block-ID tests including the non-ignored scaling tests, VERIFY3 (200000 sessions), VERIFY4 (300000 sessions), and VERIFY5 (300000 sessions) pass with zero failures. The remaining gate is the 960-second fuzz campaign, now started in the same build slot. No further product changes were needed after reviewing the saved fix.

Fresh measurements on a842fbbbc76732f7dee1590ea35535844c6efa86. These are build host, not a perf VM number. | Lines | Load + sync ms | First conversion ms | Enter ms | Undo ms | |---:|---:|---:|---:|---:| | 250 | 1.131 | 0.104 | 0.034 | 0.021 | | 500 | 1.755 | 0.197 | 0.018 | 0.026 | | 1000 | 3.529 | 0.541 | 0.034 | 0.028 | | 2000 | 8.244 | 1.704 | 0.060 | 0.050 | | 4000 | 21.130 | 5.930 | 0.100 | 0.081 | | 10000 | 88.913 | 36.433 | 0.264 | 0.206 | The unchanged 10,000-line, 500-link benchmark passes every key class, including the 240 split/Undo cycles. Verbatim output: ```text CACHED_KEYS first_delimiter_conversion_ms=44.536264 lines=10000 links=500 CACHED_KEYS token="x" lines=10000 links=500 native_p95_ms=0.001125 marker_p95_ms=0.234585 added_ms=0.233460 CACHED_KEYS token="^" lines=10000 links=500 native_p95_ms=0.000625 marker_p95_ms=0.207793 added_ms=0.207168 CACHED_KEYS token="`" lines=10000 links=500 native_p95_ms=0.000709 marker_p95_ms=0.228501 added_ms=0.227792 CACHED_KEYS token="~" lines=10000 links=500 native_p95_ms=0.000792 marker_p95_ms=0.254959 added_ms=0.254167 CACHED_KEYS token="|" lines=10000 links=500 native_p95_ms=0.000834 marker_p95_ms=0.242751 added_ms=0.241917 CACHED_KEYS token="\n" lines=10000 links=500 native_p95_ms=0.000709 marker_p95_ms=0.245085 added_ms=0.244376 CACHED_KEYS token="Enter" lines=10000 links=500 native_p95_ms=0.002084 marker_p95_ms=0.937130 added_ms=0.935046 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 16 filtered out; finished in 1.39s ``` Formatting, Clippy with warnings denied, all block-ID tests including the non-ignored scaling tests, VERIFY3 (200000 sessions), VERIFY4 (300000 sessions), and VERIFY5 (300000 sessions) pass with zero failures. The remaining gate is the 960-second fuzz campaign, now started in the same build slot. No further product changes were needed after reviewing the saved fix.
Author
Owner

Finished validation of the saved Enter and Undo fix on branch proto/block-identity-v7d. Head: a842fbbbc7. No additional product changes were needed. The working tree is clean, and the branch push is verified in the attached push log.

All requested build-host gates pass: formatting, Clippy with warnings denied, the complete block-ID release suite including non-ignored load scaling and unit tests, all three full independent harnesses with zero failures, all seven typing key classes, and fuzzing for 962 seconds without a panic or timeout.

These timings are build host, not a perf VM number. The coordinator still owns final perf-VM measurement.

Gate output follows verbatim; complete stdout and run commands are attached.

FMT_EXIT=0
CLIPPY_EXIT=0
BLOCK_IDS_EXIT=0
SCALING_EXIT=0
CACHED_KEYS_EXIT=0
FUZZ_EXIT=0
test result: ok. 34 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 41 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 16 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.03s
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 2 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 1.33s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 85.78s
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
VERIFY3 runs=200000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=6651414
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1731.31s
VERIFY4_AUTHORITY runs=1000 failed=0
VERIFY4_AUTHORITY_RANDOM runs=1000 admissions=40000 failed=0
VERIFY4 runs=300000 passed=300000 failed=0 elapsed_s=180.311
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 180.31s
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
VERIFY5 runs=300000 seed_start=0 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={}
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1095.72s
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
SCALING lines=250 load_sync_ms=1.131 first_conversion_ms=0.104 enter_ms=0.034 undo_ms=0.021
SCALING lines=500 load_sync_ms=1.755 first_conversion_ms=0.197 enter_ms=0.018 undo_ms=0.026
SCALING lines=1000 load_sync_ms=3.529 first_conversion_ms=0.541 enter_ms=0.034 undo_ms=0.028
SCALING lines=2000 load_sync_ms=8.244 first_conversion_ms=1.704 enter_ms=0.060 undo_ms=0.050
SCALING lines=4000 load_sync_ms=21.130 first_conversion_ms=5.930 enter_ms=0.100 undo_ms=0.081
SCALING lines=10000 load_sync_ms=88.913 first_conversion_ms=36.433 enter_ms=0.264 undo_ms=0.206
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 2 filtered out; finished in 1.99s
CACHED_KEYS first_delimiter_conversion_ms=44.536264 lines=10000 links=500
CACHED_KEYS token="x" lines=10000 links=500 native_p95_ms=0.001125 marker_p95_ms=0.234585 added_ms=0.233460
CACHED_KEYS token="^" lines=10000 links=500 native_p95_ms=0.000625 marker_p95_ms=0.207793 added_ms=0.207168
CACHED_KEYS token="`" lines=10000 links=500 native_p95_ms=0.000709 marker_p95_ms=0.228501 added_ms=0.227792
CACHED_KEYS token="~" lines=10000 links=500 native_p95_ms=0.000792 marker_p95_ms=0.254959 added_ms=0.254167
CACHED_KEYS token="|" lines=10000 links=500 native_p95_ms=0.000834 marker_p95_ms=0.242751 added_ms=0.241917
CACHED_KEYS token="\n" lines=10000 links=500 native_p95_ms=0.000709 marker_p95_ms=0.245085 added_ms=0.244376
CACHED_KEYS token="Enter" lines=10000 links=500 native_p95_ms=0.002084 marker_p95_ms=0.937130 added_ms=0.935046
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 16 filtered out; finished in 1.39s
Done 50202 runs in 962 second(s)
Lines Load + sync ms First conversion ms Enter ms Undo ms
250 1.131 0.104 0.034 0.021
500 1.755 0.197 0.018 0.026
1000 3.529 0.541 0.034 0.028
2000 8.244 1.704 0.060 0.050
4000 21.130 5.930 0.100 0.081
10000 88.913 36.433 0.264 0.206
Finished validation of the saved Enter and Undo fix on branch proto/block-identity-v7d. Head: a842fbbbc76732f7dee1590ea35535844c6efa86. No additional product changes were needed. The working tree is clean, and the branch push is verified in the attached push log. All requested build-host gates pass: formatting, Clippy with warnings denied, the complete block-ID release suite including non-ignored load scaling and unit tests, all three full independent harnesses with zero failures, all seven typing key classes, and fuzzing for 962 seconds without a panic or timeout. These timings are build host, not a perf VM number. The coordinator still owns final perf-VM measurement. Gate output follows verbatim; complete stdout and run commands are attached. ```text FMT_EXIT=0 CLIPPY_EXIT=0 BLOCK_IDS_EXIT=0 SCALING_EXIT=0 CACHED_KEYS_EXIT=0 FUZZ_EXIT=0 test result: ok. 34 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 41 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 16 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.03s test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 2 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 1.33s test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 85.78s test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s VERIFY3 runs=200000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=6651414 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1731.31s VERIFY4_AUTHORITY runs=1000 failed=0 VERIFY4_AUTHORITY_RANDOM runs=1000 admissions=40000 failed=0 VERIFY4 runs=300000 passed=300000 failed=0 elapsed_s=180.311 test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 180.31s test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s VERIFY5 runs=300000 seed_start=0 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={} test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1095.72s test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s SCALING lines=250 load_sync_ms=1.131 first_conversion_ms=0.104 enter_ms=0.034 undo_ms=0.021 SCALING lines=500 load_sync_ms=1.755 first_conversion_ms=0.197 enter_ms=0.018 undo_ms=0.026 SCALING lines=1000 load_sync_ms=3.529 first_conversion_ms=0.541 enter_ms=0.034 undo_ms=0.028 SCALING lines=2000 load_sync_ms=8.244 first_conversion_ms=1.704 enter_ms=0.060 undo_ms=0.050 SCALING lines=4000 load_sync_ms=21.130 first_conversion_ms=5.930 enter_ms=0.100 undo_ms=0.081 SCALING lines=10000 load_sync_ms=88.913 first_conversion_ms=36.433 enter_ms=0.264 undo_ms=0.206 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 2 filtered out; finished in 1.99s CACHED_KEYS first_delimiter_conversion_ms=44.536264 lines=10000 links=500 CACHED_KEYS token="x" lines=10000 links=500 native_p95_ms=0.001125 marker_p95_ms=0.234585 added_ms=0.233460 CACHED_KEYS token="^" lines=10000 links=500 native_p95_ms=0.000625 marker_p95_ms=0.207793 added_ms=0.207168 CACHED_KEYS token="`" lines=10000 links=500 native_p95_ms=0.000709 marker_p95_ms=0.228501 added_ms=0.227792 CACHED_KEYS token="~" lines=10000 links=500 native_p95_ms=0.000792 marker_p95_ms=0.254959 added_ms=0.254167 CACHED_KEYS token="|" lines=10000 links=500 native_p95_ms=0.000834 marker_p95_ms=0.242751 added_ms=0.241917 CACHED_KEYS token="\n" lines=10000 links=500 native_p95_ms=0.000709 marker_p95_ms=0.245085 added_ms=0.244376 CACHED_KEYS token="Enter" lines=10000 links=500 native_p95_ms=0.002084 marker_p95_ms=0.937130 added_ms=0.935046 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 16 filtered out; finished in 1.39s Done 50202 runs in 962 second(s) ``` | Lines | Load + sync ms | First conversion ms | Enter ms | Undo ms | |---:|---:|---:|---:|---:| | 250 | 1.131 | 0.104 | 0.034 | 0.021 | | 500 | 1.755 | 0.197 | 0.018 | 0.026 | | 1000 | 3.529 | 0.541 | 0.034 | 0.028 | | 2000 | 8.244 | 1.704 | 0.060 | 0.050 | | 4000 | 21.130 | 5.930 | 0.100 | 0.081 | | 10000 | 88.913 | 36.433 | 0.264 | 0.206 |
kayg changed title from WIP: Fix block identity admission, cached typing and marker round trips to Fix block identity admission, cached typing and long-note Undo 2026-10-29 12:28:45 +00:00
Author
Owner

Perf-VM measurement of v7d (head a842fbbb), built on 6by32-compute01, run on perf-test-03 under perf-run.sh (coordinator, 29 Oct).

cached_keys ten_thousand_lines_five_hundred_links_all_keys — FAIL (Enter):

first_delimiter_conversion_ms=43.49
x  added_ms=0.280   ^ 0.304   ` 0.372   ~ 0.368   | 0.416   \n 0.437
Enter native_p95_ms=0.0056 marker_p95_ms=1.791 added_ms=1.785   (bound ≤ 1 ms)

load_scaling enter_undo_scaling (perf VM, despite the fixed label):

lines   load_sync_ms  first_conversion_ms  enter_ms  undo_ms
250     1.68          0.17                 0.024     0.028
1000    6.23          0.91                 0.051     0.046
2000    14.02         2.36                 0.081     0.068
4000    36.45         7.84                 0.147     0.122
10000   166.07        45.89                0.305     0.246

Load/sync and first conversion grow super-linearly (4k→10k lines: ×4.6 load, ×5.9 conversion). The build host (Apple core) is ~2× faster than the perf VM, so build-host results under-state cost.

🤖 Generated with Claude Code

Perf-VM measurement of v7d (head a842fbbb), built on 6by32-compute01, run on **perf-test-03** under perf-run.sh (coordinator, 29 Oct). `cached_keys ten_thousand_lines_five_hundred_links_all_keys` — **FAIL** (Enter): ``` first_delimiter_conversion_ms=43.49 x added_ms=0.280 ^ 0.304 ` 0.372 ~ 0.368 | 0.416 \n 0.437 Enter native_p95_ms=0.0056 marker_p95_ms=1.791 added_ms=1.785 (bound ≤ 1 ms) ``` `load_scaling enter_undo_scaling` (perf VM, despite the fixed label): ``` lines load_sync_ms first_conversion_ms enter_ms undo_ms 250 1.68 0.17 0.024 0.028 1000 6.23 0.91 0.051 0.046 2000 14.02 2.36 0.081 0.068 4000 36.45 7.84 0.147 0.122 10000 166.07 45.89 0.305 0.246 ``` Load/sync and first conversion grow super-linearly (4k→10k lines: ×4.6 load, ×5.9 conversion). The build host (Apple core) is ~2× faster than the perf VM, so build-host results under-state cost. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

Implemented the Enter and long-note setup fixes on proto/block-identity-v7d, head b9397f9275f4cc3cc3d24a0c739ba9676ee599b4.

The hot path now preserves untouched causal endpoints, writes the split endpoints once, and sends merged per-command native deltas instead of the whole historical delete set. Setup uses a bulk native-position index, rope byte/UTF-16 conversions, binary boundary searches, and one grouping pass over ID bindings. Map conversion preserves causal anchors, translates positions with prefix deltas, and applies all syntax patches with one forward native cursor.

All numbers below are build host (10by32-02-std, arm64, shared), not perf-VM measurements. The coordinator owns perf-VM confirmation. Before cached-key values are the prior a842fbbb build-host report on this PR; before scaling values are this session's unmodified a842fbbb run. After values are fresh on this head.

Build host metric (ms) a842fbbb before After
x added p95 0.233460 0.120084
Caret added p95 0.207168 0.118042
Backtick added p95 0.227792 0.122167
Tilde added p95 0.254167 0.127792
Pipe added p95 0.241917 0.132042
Newline added p95 0.244376 0.133959
Enter added p95 0.935046 0.271418
4,000 lines load+sync 21.431 12.786
4,000 lines first conversion 6.056 0.565
10,000 lines load+sync 96.230 37.157
10,000 lines first conversion 36.659 1.507

The non-ignored scaling regression compares 500 and 2,000 lines using medians of nine interleaved samples. Both load+sync and first conversion must stay within 5.5× for 4× the lines. The original implementation failed first conversion at 9.25×. The build-host key benchmark now explicitly checks ≤0.4 ms added p95 for Enter and ≤0.25 ms for every other key.

Correctness coverage: complete block-ID suite; VERIFY3 seeds 0–199999 (two disjoint 100000-run shards); VERIFY4 300000 runs plus authority checks; VERIFY5 seeds 0–299999 (two disjoint 150000-run shards); fuzz at least 15 minutes. No failures.

Gate output below is verbatim (campaigns are shown by shard).

ids-clippy.log:
    Checking calternal-block-ids v0.1.0 (/home/agent/wt/ids-perf-2/crates/block-ids)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.14s

FMT_EXIT=0
DEBUG_SCALING_EXIT=0

ids-block-tests.log:
test result: ok. 35 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 41 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 17 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.03s
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
SCALING_GATE phase=load+sync small_ms=1.527 large_ms=5.890 ratio=3.858
SCALING_GATE phase=first conversion small_ms=0.077 large_ms=0.270 ratio=3.489
test result: ok. 3 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 1.08s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 87.26s
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.00s
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 4.49s
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.00s
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

ids-v7d-final-keys.log:
build host, not a perf VM number
CACHED_KEYS first_delimiter_conversion_ms=1.551714 lines=10000 links=500
CACHED_KEYS token="x" lines=10000 links=500 native_p95_ms=0.000375 marker_p95_ms=0.120459 added_ms=0.120084
CACHED_KEYS token="^" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.118334 added_ms=0.118042
CACHED_KEYS token="`" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.122459 added_ms=0.122167
CACHED_KEYS token="~" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.128084 added_ms=0.127792
CACHED_KEYS token="|" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.132334 added_ms=0.132042
CACHED_KEYS token="\n" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.134251 added_ms=0.133959
CACHED_KEYS token="Enter" lines=10000 links=500 native_p95_ms=0.000750 marker_p95_ms=0.272168 added_ms=0.271418
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 17 filtered out; finished in 0.86s

ids-v7d-final-scaling.log:
build host, not a perf VM number
SCALING lines=250 load_sync_ms=1.303 first_conversion_ms=0.077 enter_ms=0.012 undo_ms=0.018
SCALING lines=500 load_sync_ms=1.988 first_conversion_ms=0.104 enter_ms=0.020 undo_ms=0.026
SCALING lines=1000 load_sync_ms=3.805 first_conversion_ms=0.147 enter_ms=0.024 undo_ms=0.029
SCALING lines=2000 load_sync_ms=23.364 first_conversion_ms=0.296 enter_ms=0.050 undo_ms=0.050
SCALING lines=4000 load_sync_ms=12.786 first_conversion_ms=0.565 enter_ms=0.085 undo_ms=0.090
SCALING lines=10000 load_sync_ms=37.157 first_conversion_ms=1.507 enter_ms=0.166 undo_ms=0.212
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 3 filtered out; finished in 1.91s

ids-v7d-debug-scaling.log:
SCALING_GATE phase=load+sync small_ms=5.342 large_ms=21.715 ratio=4.065
SCALING_GATE phase=first conversion small_ms=0.292 large_ms=1.065 ratio=3.654
test result: ok. 3 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 4.53s

ids-v7d-verify3-0.log:
VERIFY3 runs=100000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=3325953
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 905.29s

ids-v7d-verify3-100000.log:
VERIFY3 runs=100000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=3325461
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 902.90s

ids-v7d-verify4.log:
VERIFY4_AUTHORITY runs=1000 failed=0
VERIFY4_AUTHORITY_RANDOM runs=1000 admissions=40000 failed=0
VERIFY4 runs=300000 passed=300000 failed=0 elapsed_s=181.740
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 181.74s

ids-v7d-verify5-0.log:
VERIFY5 runs=150000 seed_start=0 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={}
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 579.97s

ids-v7d-verify5-150000.log:
VERIFY5 runs=150000 seed_start=150000 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={}
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 580.55s

ids-v7d-fuzz.log:
Done 36789 runs in 961 second(s)

Kept target/ for incremental rebuilds: 663M.
Kept fuzz/target/ for incremental rebuilds: 424M.

Implemented the Enter and long-note setup fixes on `proto/block-identity-v7d`, head `b9397f9275f4cc3cc3d24a0c739ba9676ee599b4`. The hot path now preserves untouched causal endpoints, writes the split endpoints once, and sends merged per-command native deltas instead of the whole historical delete set. Setup uses a bulk native-position index, rope byte/UTF-16 conversions, binary boundary searches, and one grouping pass over ID bindings. Map conversion preserves causal anchors, translates positions with prefix deltas, and applies all syntax patches with one forward native cursor. All numbers below are **build host** (`10by32-02-std`, arm64, shared), not perf-VM measurements. The coordinator owns perf-VM confirmation. Before cached-key values are the prior a842fbbb build-host report on this PR; before scaling values are this session's unmodified a842fbbb run. After values are fresh on this head. | Build host metric (ms) | a842fbbb before | After | |---|---:|---:| | x added p95 | 0.233460 | 0.120084 | | Caret added p95 | 0.207168 | 0.118042 | | Backtick added p95 | 0.227792 | 0.122167 | | Tilde added p95 | 0.254167 | 0.127792 | | Pipe added p95 | 0.241917 | 0.132042 | | Newline added p95 | 0.244376 | 0.133959 | | Enter added p95 | 0.935046 | 0.271418 | | 4,000 lines load+sync | 21.431 | 12.786 | | 4,000 lines first conversion | 6.056 | 0.565 | | 10,000 lines load+sync | 96.230 | 37.157 | | 10,000 lines first conversion | 36.659 | 1.507 | The non-ignored scaling regression compares 500 and 2,000 lines using medians of nine interleaved samples. Both load+sync and first conversion must stay within 5.5× for 4× the lines. The original implementation failed first conversion at 9.25×. The build-host key benchmark now explicitly checks ≤0.4 ms added p95 for Enter and ≤0.25 ms for every other key. Correctness coverage: complete block-ID suite; VERIFY3 seeds 0–199999 (two disjoint 100000-run shards); VERIFY4 300000 runs plus authority checks; VERIFY5 seeds 0–299999 (two disjoint 150000-run shards); fuzz at least 15 minutes. No failures. Gate output below is verbatim (campaigns are shown by shard). ```text ids-clippy.log: Checking calternal-block-ids v0.1.0 (/home/agent/wt/ids-perf-2/crates/block-ids) Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.14s FMT_EXIT=0 DEBUG_SCALING_EXIT=0 ids-block-tests.log: test result: ok. 35 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 41 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 17 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.03s test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s SCALING_GATE phase=load+sync small_ms=1.527 large_ms=5.890 ratio=3.858 SCALING_GATE phase=first conversion small_ms=0.077 large_ms=0.270 ratio=3.489 test result: ok. 3 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 1.08s test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 87.26s test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.00s test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 4.49s test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.00s test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s ids-v7d-final-keys.log: build host, not a perf VM number CACHED_KEYS first_delimiter_conversion_ms=1.551714 lines=10000 links=500 CACHED_KEYS token="x" lines=10000 links=500 native_p95_ms=0.000375 marker_p95_ms=0.120459 added_ms=0.120084 CACHED_KEYS token="^" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.118334 added_ms=0.118042 CACHED_KEYS token="`" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.122459 added_ms=0.122167 CACHED_KEYS token="~" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.128084 added_ms=0.127792 CACHED_KEYS token="|" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.132334 added_ms=0.132042 CACHED_KEYS token="\n" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.134251 added_ms=0.133959 CACHED_KEYS token="Enter" lines=10000 links=500 native_p95_ms=0.000750 marker_p95_ms=0.272168 added_ms=0.271418 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 17 filtered out; finished in 0.86s ids-v7d-final-scaling.log: build host, not a perf VM number SCALING lines=250 load_sync_ms=1.303 first_conversion_ms=0.077 enter_ms=0.012 undo_ms=0.018 SCALING lines=500 load_sync_ms=1.988 first_conversion_ms=0.104 enter_ms=0.020 undo_ms=0.026 SCALING lines=1000 load_sync_ms=3.805 first_conversion_ms=0.147 enter_ms=0.024 undo_ms=0.029 SCALING lines=2000 load_sync_ms=23.364 first_conversion_ms=0.296 enter_ms=0.050 undo_ms=0.050 SCALING lines=4000 load_sync_ms=12.786 first_conversion_ms=0.565 enter_ms=0.085 undo_ms=0.090 SCALING lines=10000 load_sync_ms=37.157 first_conversion_ms=1.507 enter_ms=0.166 undo_ms=0.212 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 3 filtered out; finished in 1.91s ids-v7d-debug-scaling.log: SCALING_GATE phase=load+sync small_ms=5.342 large_ms=21.715 ratio=4.065 SCALING_GATE phase=first conversion small_ms=0.292 large_ms=1.065 ratio=3.654 test result: ok. 3 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 4.53s ids-v7d-verify3-0.log: VERIFY3 runs=100000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=3325953 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 905.29s ids-v7d-verify3-100000.log: VERIFY3 runs=100000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=3325461 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 902.90s ids-v7d-verify4.log: VERIFY4_AUTHORITY runs=1000 failed=0 VERIFY4_AUTHORITY_RANDOM runs=1000 admissions=40000 failed=0 VERIFY4 runs=300000 passed=300000 failed=0 elapsed_s=181.740 test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 181.74s ids-v7d-verify5-0.log: VERIFY5 runs=150000 seed_start=0 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={} test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 579.97s ids-v7d-verify5-150000.log: VERIFY5 runs=150000 seed_start=150000 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={} test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 580.55s ids-v7d-fuzz.log: Done 36789 runs in 961 second(s) ``` Kept `target/` for incremental rebuilds: **663M**. Kept `fuzz/target/` for incremental rebuilds: **424M**.
Author
Owner

Perf VM re-measure — PASS (head b9397f92; built on 6by32-compute01; run on perf-test-03 under perf-run.sh; coordinator, 30 Oct 00:40 IST).

cached_keys ten_thousand_lines_five_hundred_links_all_keys: ok

first_delimiter_conversion_ms=2.51   (was 43.49)
added p95 ms: x 0.157  ^ 0.163  ` 0.176  ~ 0.226  | 0.274  \n 0.298  Enter 0.504 (was 1.785; bound ≤ 1)

enter_undo_scaling (perf VM):

lines  load_sync_ms  first_conversion_ms  enter_ms  undo_ms
250    2.36          0.12                 0.021     0.029
1000   5.95          0.28                 0.041     0.047
4000   25.36         0.99                 0.104     0.117
10000  71.01         2.52                 0.192     0.272     (load was 166.07)

load_and_first_conversion_scale_near_linearly: ok — load+sync ratio 3.95, first conversion 3.37 (limit 5.5 for 4× lines).

🤖 Generated with Claude Code

**Perf VM re-measure — PASS** (head b9397f92; built on 6by32-compute01; run on perf-test-03 under perf-run.sh; coordinator, 30 Oct 00:40 IST). `cached_keys ten_thousand_lines_five_hundred_links_all_keys`: **ok** ``` first_delimiter_conversion_ms=2.51 (was 43.49) added p95 ms: x 0.157 ^ 0.163 ` 0.176 ~ 0.226 | 0.274 \n 0.298 Enter 0.504 (was 1.785; bound ≤ 1) ``` `enter_undo_scaling` (perf VM): ``` lines load_sync_ms first_conversion_ms enter_ms undo_ms 250 2.36 0.12 0.021 0.029 1000 5.95 0.28 0.041 0.047 4000 25.36 0.99 0.104 0.117 10000 71.01 2.52 0.192 0.272 (load was 166.07) ``` `load_and_first_conversion_scale_near_linearly`: ok — load+sync ratio 3.95, first conversion 3.37 (limit 5.5 for 4× lines). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Author
Owner

Independent review of fdfe9976..b9397f92: fix first — one P2 editing defect. It also reproduces on fdfe9976; I found no confirmed correctness regression introduced by these performance commits.

P2: empty owner becomes unjoinable after split → join → Undo → split. Load/sync before ^first-id\nneighbor ^second-id\n```x\ncode\n```\n. Let second be the neighbor block: empty = split(second, 0); join(empty, second); undo(); split(second, 4); join(empty, second). The last join rejects visibly adjacent rows with join requires adjacent text in one note. The empty owner's endpoints collapse onto the following owner's start. Checkpoint reload does not repair it. This demonstrates a refused editing action; no text loss or ID theft was demonstrated. Two minimized tests fail on both reviewed head and baseline.

Verification on 10by32-01-std arm64, heavy work through build-slot.sh, Cargo -j8:

  • fmt and block-ids clippy (--all-targets -- -D warnings): pass.
  • block-ids release suite: 221 passed, 2 failed, exclusively the added P2 reproductions.
  • verify3, verify4, verify5: 800,000 sessions each, zero failures, fresh disjoint seed ranges.
  • Fuzz: 45,175 inputs / 961 seconds, fresh corpus, seed 7581030, no crash. This target checks parser/import safety, not semantic histories.
  • Long-session reference soak: 10,000 randomized steps, exit 0, zero text/ID-placement/link-target mismatches and zero refused joins; full reference checks after every step. Initial note: 10,000 physical lines, 500 linked ordinary rows plus a 9,500-line fenced block. Edits target ordinary rows. Schedule selected 9,343 typing steps and 657 other edit/history steps; guarded structural choices can skip ineligible operations. Runtime 5,456 seconds.
  • Supplemental uniform structural-heavy soak stopped after at least 5,400 checked steps with four refused joins, exposing the P2 above; this is not claimed as a completed 10k campaign.
  • Independent positive checks passed for batched bootstrap vs serial admission, bulk positions vs native Yrs under concurrent Unicode edits, partial delivery/restart, replay determinism, remote edits, moves, linked deletion, Undo/Redo, reload, and B5 server-authoritative resolution. Reviewed invalidation paths for new caches/indexes and the immediate split-Undo receipt.

Tests only: review/758-tests, commit 0f34e47f. No production fixes. Reproduce P2 with cargo test --release -j8 -p calternal-block-ids --test review758_minimal through build-slot.sh.

Detailed findings and logs: /home/agent/codex-jobs/verify-758/findings.md.

Independent review of `fdfe9976..b9397f92`: **fix first** — one P2 editing defect. **It also reproduces on fdfe9976; I found no confirmed correctness regression introduced by these performance commits.** **P2: empty owner becomes unjoinable after split → join → Undo → split.** Load/sync `before ^first-id\nneighbor ^second-id\n```x\ncode\n```\n`. Let `second` be the neighbor block: `empty = split(second, 0)`; `join(empty, second)`; `undo()`; `split(second, 4)`; `join(empty, second)`. The last join rejects visibly adjacent rows with `join requires adjacent text in one note`. The empty owner's endpoints collapse onto the following owner's start. Checkpoint reload does not repair it. This demonstrates a refused editing action; no text loss or ID theft was demonstrated. Two minimized tests fail on both reviewed head and baseline. Verification on 10by32-01-std arm64, heavy work through build-slot.sh, Cargo -j8: - fmt and block-ids clippy (`--all-targets -- -D warnings`): pass. - block-ids release suite: **221 passed, 2 failed**, exclusively the added P2 reproductions. - verify3, verify4, verify5: **800,000 sessions each, zero failures**, fresh disjoint seed ranges. - Fuzz: **45,175 inputs / 961 seconds**, fresh corpus, seed 7581030, no crash. This target checks parser/import safety, not semantic histories. - Long-session reference soak: **10,000 randomized steps, exit 0**, zero text/ID-placement/link-target mismatches and zero refused joins; full reference checks after every step. Initial note: 10,000 physical lines, 500 linked ordinary rows plus a 9,500-line fenced block. Edits target ordinary rows. Schedule selected 9,343 typing steps and 657 other edit/history steps; guarded structural choices can skip ineligible operations. Runtime 5,456 seconds. - Supplemental uniform structural-heavy soak stopped after at least 5,400 checked steps with four refused joins, exposing the P2 above; this is not claimed as a completed 10k campaign. - Independent positive checks passed for batched bootstrap vs serial admission, bulk positions vs native Yrs under concurrent Unicode edits, partial delivery/restart, replay determinism, remote edits, moves, linked deletion, Undo/Redo, reload, and B5 server-authoritative resolution. Reviewed invalidation paths for new caches/indexes and the immediate split-Undo receipt. Tests only: [review/758-tests](https://git.kayg.org/kayg/calternal/src/branch/review/758-tests), commit [0f34e47f](https://git.kayg.org/kayg/calternal/commit/0f34e47f77579e03deebabb14a57f9054ed1fb99). No production fixes. Reproduce P2 with `cargo test --release -j8 -p calternal-block-ids --test review758_minimal` through build-slot.sh. Detailed findings and logs: `/home/agent/codex-jobs/verify-758/findings.md`.
Author
Owner

Fixed P2 from comment 69930 in 57724c04fc056847fa0870ab5e0b0470dfb96626; pushed only proto/block-identity-v7d. Used the clean existing worktree /home/agent/wt/ids-perf-2, starting at b9397f92, and fast-forwarded origin/review/758-tests (0f34e47f) before implementation. All four reviewer test files are unchanged.

The saved Unjoin span for an empty owner points at the separator deleted by Join. Native Yrs Undo recreates that separator under a fresh item ID. The old span works locally because Yrs follows its in-memory redone link, but that link is not encoded in updates or checkpoints. Publishing the old span therefore leaves its zero-width endpoints at the following owner's start in a copied/reloaded document. The next split triggers a map-refresh preview from an encoded update; the preview sees overlapping owners rather than a separator and refuses the visibly adjacent join. The bad item ID lives in the durable anchors map, so reload preserves the defect.

Undo now resolves the restored endpoints after the native history step and binds each Unjoin owner to live native items before emitting its packet. This repairs the causal boundary rather than relaxing adjacency checks. Server allocation, ordered admission, ID ownership and receipt authority (B5) are unchanged.

The new property also found an inline-format history defect: Undo can recreate the first row's marker as syntax, and Redo of Join previously left that marker inside the reunited human row. Redo now removes that format-owned suffix outside native Undo, matching the original Join.

The merged unignored minimal reproductions are permanent regressions. Added structural_history.rs: a literal row/owner oracle checks two devices before delivery, after authority delivery, and through device and server checkpoint reloads after every step. It probes every adjacent pair on durable copies, checks the joined owner partition, immutable ID-claim owners and link targets, and covers Unicode, empty rows, and note-start/end boundaries. The 32 seeds execute 6,160 actual steps (2,048 structural operations plus 4,112 Undo/Redo steps). A separate regression repeats inline Join/Undo/Redo across sync and reload.

Gates (verbatim): fmt; clippy -D warnings; block-ids tests; the three harnesses at full size; fuzz ≥ 15 min; and the perf tests still pass on this build host.

All passed on 10by32-02-std arm64, build host. Every heavy command used /usr/local/bin/build-slot.sh; Cargo used -j8. The release suite completed in segments: 225 tests passed, zero failed, five optional tests ignored by the normal suite. The cached-key benchmark and ignored load-scaling diagnostic were then run explicitly and passed; the optional reviewer soak/snapshot and VERIFY4 perf diagnostic remain ignored. No reviewer oracle or assertion was changed.

Fmt: cargo fmt --all -- --check (exit 0, no output).
Clippy: cargo clippy -j8 -p calternal-block-ids --all-targets -- -D warnings (exit 0).

Full independent campaigns: VERIFY3 200,000 seeds, VERIFY4 300,000 seeds, VERIFY5 300,000 seeds. VERIFY3 used eight disjoint 25,000-seed shards over [758200000, 758400000); VERIFY5 used five disjoint 60,000-seed shards over [758500000, 758800000). Initial monolithic runs were deliberately stopped and replaced by these complete shards. VERIFY4 used [758400000, 758700000). Raw final summaries:

VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=832448
VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=830776
VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=831626
VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=831084
VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=830357
VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=830658
VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=831590
VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=830378
VERIFY4 runs=300000 passed=300000 failed=0 elapsed_s=182.444
VERIFY5 runs=60000 seed_start=758500000 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={}
VERIFY5 runs=60000 seed_start=758560000 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={}
VERIFY5 runs=60000 seed_start=758620000 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={}
VERIFY5 runs=60000 seed_start=758680000 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={}
VERIFY5 runs=60000 seed_start=758740000 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={}
structural coverage [split, join, undo, redo, note_start, note_end, empty]=[1056, 992, 2489, 1623, 384, 335, 520]
Done 16872 runs in 933 second(s)

Fuzz: CARGO_BUILD_JOBS=8 cargo +nightly fuzz run marker_import corpus/marker_import seeds/marker_import -- -max_total_time=930 -max_len=4096 -timeout=30 -rss_limit_mb=4096 -dict=marker_import.dict -seed=7581032 from fuzz/, exit 0. The 933 seconds exclude compilation. This target checks parser/import panic safety; the property above checks structural history semantics.

Performance timings below are build host, not perf-VM measurements. Cached keys ran with IDS_VERIFY7D_BUILD_HOST=10by32-02-std; both commands used cargo test --release -j8 -p calternal-block-ids through the build slot:

  • --test cached_keys ten_thousand_lines_five_hundred_links_all_keys -- --ignored --nocapture --test-threads=1
  • --test load_scaling -- --include-ignored --nocapture --test-threads=1
CACHED_KEYS first_delimiter_conversion_ms=1.481211 lines=10000 links=500
CACHED_KEYS token="x" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.115459 added_ms=0.115167
CACHED_KEYS token="^" lines=10000 links=500 native_p95_ms=0.000250 marker_p95_ms=0.117042 added_ms=0.116792
CACHED_KEYS token="`" lines=10000 links=500 native_p95_ms=0.000291 marker_p95_ms=0.121833 added_ms=0.121542
CACHED_KEYS token="~" lines=10000 links=500 native_p95_ms=0.000333 marker_p95_ms=0.133375 added_ms=0.133042
CACHED_KEYS token="|" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.127458 added_ms=0.127166
CACHED_KEYS token="\n" lines=10000 links=500 native_p95_ms=0.000291 marker_p95_ms=0.134125 added_ms=0.133834
CACHED_KEYS token="Enter" lines=10000 links=500 native_p95_ms=0.000625 marker_p95_ms=0.270043 added_ms=0.269418
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 17 filtered out; finished in 0.83s
SCALING lines=250 load_sync_ms=0.927 first_conversion_ms=0.062 enter_ms=0.010 undo_ms=0.016
SCALING lines=500 load_sync_ms=1.468 first_conversion_ms=0.080 enter_ms=0.012 undo_ms=0.017
SCALING lines=1000 load_sync_ms=2.971 first_conversion_ms=0.145 enter_ms=0.024 undo_ms=0.028
SCALING lines=2000 load_sync_ms=5.797 first_conversion_ms=0.258 enter_ms=0.031 undo_ms=0.044
SCALING lines=4000 load_sync_ms=11.908 first_conversion_ms=0.509 enter_ms=0.057 undo_ms=0.078
SCALING lines=10000 load_sync_ms=35.893 first_conversion_ms=1.439 enter_ms=0.154 undo_ms=0.193
SCALING_GATE phase=first conversion small_ms=0.072 large_ms=0.252 ratio=3.504
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.11s

Evidence and exact commands: /home/agent/codex-jobs/ids-fix-join/ on the build host. No PR merge, deployment, or perf-test-* host access.

Cleanup complete: target/ and fuzz/target/ removed with Cargo clean; the recorded lease-heartbeat process and its sleep child are stopped. Operational caveat: the initial background heartbeat exited with its launching shell, leaving a lapse before it was restarted in a persistent session at 21:50 UTC.

Fixed P2 from comment 69930 in `57724c04fc056847fa0870ab5e0b0470dfb96626`; pushed only `proto/block-identity-v7d`. Used the clean existing worktree `/home/agent/wt/ids-perf-2`, starting at b9397f92, and fast-forwarded `origin/review/758-tests` (0f34e47f) before implementation. All four reviewer test files are unchanged. The saved Unjoin span for an empty owner points at the separator deleted by Join. Native Yrs Undo recreates that separator under a fresh item ID. The old span works locally because Yrs follows its in-memory `redone` link, but that link is not encoded in updates or checkpoints. Publishing the old span therefore leaves its zero-width endpoints at the following owner's start in a copied/reloaded document. The next split triggers a map-refresh preview from an encoded update; the preview sees overlapping owners rather than a separator and refuses the visibly adjacent join. The bad item ID lives in the durable `anchors` map, so reload preserves the defect. Undo now resolves the restored endpoints after the native history step and binds each Unjoin owner to live native items before emitting its packet. This repairs the causal boundary rather than relaxing adjacency checks. Server allocation, ordered admission, ID ownership and receipt authority (B5) are unchanged. The new property also found an inline-format history defect: Undo can recreate the first row's marker as syntax, and Redo of Join previously left that marker inside the reunited human row. Redo now removes that format-owned suffix outside native Undo, matching the original Join. The merged unignored minimal reproductions are permanent regressions. Added `structural_history.rs`: a literal row/owner oracle checks two devices before delivery, after authority delivery, and through device and server checkpoint reloads after every step. It probes every adjacent pair on durable copies, checks the joined owner partition, immutable ID-claim owners and link targets, and covers Unicode, empty rows, and note-start/end boundaries. The 32 seeds execute 6,160 actual steps (2,048 structural operations plus 4,112 Undo/Redo steps). A separate regression repeats inline Join/Undo/Redo across sync and reload. Gates (verbatim): fmt; clippy -D warnings; block-ids tests; the three harnesses at full size; fuzz ≥ 15 min; and the perf tests still pass on this build host. All passed on **10by32-02-std arm64, build host**. Every heavy command used `/usr/local/bin/build-slot.sh`; Cargo used `-j8`. The release suite completed in segments: 225 tests passed, zero failed, five optional tests ignored by the normal suite. The cached-key benchmark and ignored load-scaling diagnostic were then run explicitly and passed; the optional reviewer soak/snapshot and VERIFY4 perf diagnostic remain ignored. No reviewer oracle or assertion was changed. Fmt: `cargo fmt --all -- --check` (exit 0, no output). Clippy: `cargo clippy -j8 -p calternal-block-ids --all-targets -- -D warnings` (exit 0). Full independent campaigns: VERIFY3 200,000 seeds, VERIFY4 300,000 seeds, VERIFY5 300,000 seeds. VERIFY3 used eight disjoint 25,000-seed shards over [758200000, 758400000); VERIFY5 used five disjoint 60,000-seed shards over [758500000, 758800000). Initial monolithic runs were deliberately stopped and replaced by these complete shards. VERIFY4 used [758400000, 758700000). Raw final summaries: ```text VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=832448 VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=830776 VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=831626 VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=831084 VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=830357 VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=830658 VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=831590 VERIFY3 runs=25000 failed_checks=0 failed_seeds=0 failure_classes=0 admission_checks=830378 VERIFY4 runs=300000 passed=300000 failed=0 elapsed_s=182.444 VERIFY5 runs=60000 seed_start=758500000 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={} VERIFY5 runs=60000 seed_start=758560000 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={} VERIFY5 runs=60000 seed_start=758620000 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={} VERIFY5 runs=60000 seed_start=758680000 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={} VERIFY5 runs=60000 seed_start=758740000 devices=3,5,8 failed_runs=0 model_failures=0 grammar_failures=0 categories={} structural coverage [split, join, undo, redo, note_start, note_end, empty]=[1056, 992, 2489, 1623, 384, 335, 520] Done 16872 runs in 933 second(s) ``` Fuzz: `CARGO_BUILD_JOBS=8 cargo +nightly fuzz run marker_import corpus/marker_import seeds/marker_import -- -max_total_time=930 -max_len=4096 -timeout=30 -rss_limit_mb=4096 -dict=marker_import.dict -seed=7581032` from `fuzz/`, exit 0. The 933 seconds exclude compilation. This target checks parser/import panic safety; the property above checks structural history semantics. Performance timings below are **build host**, not perf-VM measurements. Cached keys ran with `IDS_VERIFY7D_BUILD_HOST=10by32-02-std`; both commands used `cargo test --release -j8 -p calternal-block-ids` through the build slot: - `--test cached_keys ten_thousand_lines_five_hundred_links_all_keys -- --ignored --nocapture --test-threads=1` - `--test load_scaling -- --include-ignored --nocapture --test-threads=1` ```text CACHED_KEYS first_delimiter_conversion_ms=1.481211 lines=10000 links=500 CACHED_KEYS token="x" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.115459 added_ms=0.115167 CACHED_KEYS token="^" lines=10000 links=500 native_p95_ms=0.000250 marker_p95_ms=0.117042 added_ms=0.116792 CACHED_KEYS token="`" lines=10000 links=500 native_p95_ms=0.000291 marker_p95_ms=0.121833 added_ms=0.121542 CACHED_KEYS token="~" lines=10000 links=500 native_p95_ms=0.000333 marker_p95_ms=0.133375 added_ms=0.133042 CACHED_KEYS token="|" lines=10000 links=500 native_p95_ms=0.000292 marker_p95_ms=0.127458 added_ms=0.127166 CACHED_KEYS token="\n" lines=10000 links=500 native_p95_ms=0.000291 marker_p95_ms=0.134125 added_ms=0.133834 CACHED_KEYS token="Enter" lines=10000 links=500 native_p95_ms=0.000625 marker_p95_ms=0.270043 added_ms=0.269418 test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 17 filtered out; finished in 0.83s SCALING lines=250 load_sync_ms=0.927 first_conversion_ms=0.062 enter_ms=0.010 undo_ms=0.016 SCALING lines=500 load_sync_ms=1.468 first_conversion_ms=0.080 enter_ms=0.012 undo_ms=0.017 SCALING lines=1000 load_sync_ms=2.971 first_conversion_ms=0.145 enter_ms=0.024 undo_ms=0.028 SCALING lines=2000 load_sync_ms=5.797 first_conversion_ms=0.258 enter_ms=0.031 undo_ms=0.044 SCALING lines=4000 load_sync_ms=11.908 first_conversion_ms=0.509 enter_ms=0.057 undo_ms=0.078 SCALING lines=10000 load_sync_ms=35.893 first_conversion_ms=1.439 enter_ms=0.154 undo_ms=0.193 SCALING_GATE phase=first conversion small_ms=0.072 large_ms=0.252 ratio=3.504 test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.11s ``` Evidence and exact commands: `/home/agent/codex-jobs/ids-fix-join/` on the build host. No PR merge, deployment, or perf-test-* host access. Cleanup complete: `target/` and `fuzz/target/` removed with Cargo clean; the recorded lease-heartbeat process and its sleep child are stopped. Operational caveat: the initial background heartbeat exited with its launching shell, leaving a lapse before it was restarted in a persistent session at 21:50 UTC.
Author
Owner

Independent verification, round 2, of b9397f92..57724c04: fix first — two P2 defects remain. Both reproduce with the pre-fix production implementation too; I found no confirmed correctness regression introduced by this 31-line fix. The round-one minimal regressions now pass, and all four reviewer test files are unchanged.

P2: concurrent Undo of the same Join leaves visible neighbors unjoinable after reload. A loads/syncs alpha ^first-id\nbeta ^last-id; B opens that state. Both offline join(first, second); sync A, sync B, pull A. Both independently undo() before exchanging those updates; sync A, restart the server from checkpoint, sync B, pull A. Reload A and join(first, second): it rejects with join requires adjacent text in one note. Visible rows are alpha, beta; disk is alpha ^first-id\n\nbeta ^last-id, with an extra separator and no visible owner for the intervening blank row. Reload preserves the refusal.

P2: an older Join's Undo misorders visible blocks after nested split history. Load/sync \ntext ^target-id, retaining original empty and text handles. Run join(empty, text); tail = split(empty, 4); split(empty, 0); join(empty, tail); Undo four times. Expected rows ["", "text"]; actual ["text", ""]. Disk retains the empty prefix. The wrong visible order survives device reload, sync, and a fresh device. No human-byte loss is claimed. Baseline also fails, with worse reload behavior.

Tests only: review/758b-tests, commit 42aac955. Reproduce both with /usr/local/bin/build-slot.sh cargo test --release -j8 -p calternal-block-ids --test review758b_minimal -- --nocapture on that branch. The final two minimal tests fail unchanged against both baseline and head.

The independent deep-history driver checked 2,905 actual operations across 24 fresh seeds (up to 400 steps each): 1,125 Undo, 232 Redo, 774 Split, 774 Join, including 583 start and 568 end splits. It compares literal text snapshots, checks live-owner partitions and immutable ID-claim ownership, probes every neighboring join on durable copies, and checks device/server restarts after each successful step. 22 seeds failed; two completed all 400 steps. Separate concurrent disjoint Undo/Redo and server-authoritative B5 collision tests passed.

Gates (verbatim): fmt, clippy -D warnings, block-ids tests, the 3 harnesses, fuzz ≥ 15 min with fresh seeds.

  • Fmt and block-ids clippy (--all-targets -- -D warnings): pass.
  • Block-ids tests: fail on the new regressions (two distinct findings, five failing tests across the randomized/supplemental/minimal tests). Existing-suite continuation: 224 passed, zero failed, five optional tests ignored; the three main harness drivers were run separately at full size. The author's structural-history property and original reviewer regressions pass unchanged.
  • VERIFY3: 200,000 sessions, eight disjoint 25,000-session shards over [760000000, 760200000), zero failures.
  • VERIFY4: 300,000 sessions over [760300000, 760600000), zero failures, 179.960 seconds.
  • VERIFY5: 300,000 sessions, five disjoint 60,000-session shards over [760700000, 761000000), zero failed runs/model failures/grammar failures. All shards exited 0.
  • Fuzz: 15,843 inputs / 945 seconds, fresh corpus and seed 7582030, exit 0, no crash. This target checks parser/import panic safety; the new tests check history semantics.
  • Both perf gates pass on 10by32-02-std arm64, build host. cached_keys ran with IDS_VERIFY7D_BUILD_HOST=10by32-02-std; added p95 was 0.116–0.140 ms for typing and 0.286 ms for Enter; first delimiter conversion 1.469 ms. load_scaling --include-ignored: 4 passed; 4x-line ratios were 3.873 for load+sync and 3.627 for first conversion. These numbers are build host measurements.

Heavy commands used /usr/local/bin/build-slot.sh; Cargo used -j8 (fuzz compilation: CARGO_BUILD_JOBS=8). No product fixes, merges, deploys, or perf-test-* access. Detailed findings, baseline/head logs, and gate logs: /home/agent/codex-jobs/verify-758b/findings.md.

Independent verification, round 2, of `b9397f92..57724c04`: **fix first — two P2 defects remain**. Both reproduce with the pre-fix production implementation too; I found no confirmed correctness regression introduced by this 31-line fix. The round-one minimal regressions now pass, and all four reviewer test files are unchanged. **P2: concurrent Undo of the same Join leaves visible neighbors unjoinable after reload.** A loads/syncs `alpha ^first-id\nbeta ^last-id`; B opens that state. Both offline `join(first, second)`; sync A, sync B, pull A. Both independently `undo()` before exchanging those updates; sync A, restart the server from checkpoint, sync B, pull A. Reload A and `join(first, second)`: it rejects with `join requires adjacent text in one note`. Visible rows are `alpha`, `beta`; disk is `alpha ^first-id\n\nbeta ^last-id`, with an extra separator and no visible owner for the intervening blank row. Reload preserves the refusal. **P2: an older Join's Undo misorders visible blocks after nested split history.** Load/sync `\ntext ^target-id`, retaining original `empty` and `text` handles. Run `join(empty, text)`; `tail = split(empty, 4)`; `split(empty, 0)`; `join(empty, tail)`; Undo four times. Expected rows `["", "text"]`; actual `["text", ""]`. Disk retains the empty prefix. The wrong visible order survives device reload, sync, and a fresh device. No human-byte loss is claimed. Baseline also fails, with worse reload behavior. Tests only: [review/758b-tests](https://git.kayg.org/kayg/calternal/src/branch/review/758b-tests), commit [42aac955](https://git.kayg.org/kayg/calternal/commit/42aac955e4944a612a8c6ea6f6ca68ca212eeb59). Reproduce both with `/usr/local/bin/build-slot.sh cargo test --release -j8 -p calternal-block-ids --test review758b_minimal -- --nocapture` on that branch. The final two minimal tests fail unchanged against both baseline and head. The independent deep-history driver checked 2,905 actual operations across 24 fresh seeds (up to 400 steps each): 1,125 Undo, 232 Redo, 774 Split, 774 Join, including 583 start and 568 end splits. It compares literal text snapshots, checks live-owner partitions and immutable ID-claim ownership, probes every neighboring join on durable copies, and checks device/server restarts after each successful step. 22 seeds failed; two completed all 400 steps. Separate concurrent disjoint Undo/Redo and server-authoritative B5 collision tests passed. Gates (verbatim): fmt, clippy -D warnings, block-ids tests, the 3 harnesses, fuzz ≥ 15 min with fresh seeds. - Fmt and block-ids clippy (`--all-targets -- -D warnings`): pass. - Block-ids tests: **fail** on the new regressions (two distinct findings, five failing tests across the randomized/supplemental/minimal tests). Existing-suite continuation: 224 passed, zero failed, five optional tests ignored; the three main harness drivers were run separately at full size. The author's structural-history property and original reviewer regressions pass unchanged. - VERIFY3: 200,000 sessions, eight disjoint 25,000-session shards over `[760000000, 760200000)`, zero failures. - VERIFY4: 300,000 sessions over `[760300000, 760600000)`, zero failures, 179.960 seconds. - VERIFY5: 300,000 sessions, five disjoint 60,000-session shards over `[760700000, 761000000)`, zero failed runs/model failures/grammar failures. All shards exited 0. - Fuzz: 15,843 inputs / 945 seconds, fresh corpus and seed `7582030`, exit 0, no crash. This target checks parser/import panic safety; the new tests check history semantics. - Both perf gates pass on **10by32-02-std arm64, build host**. `cached_keys` ran with `IDS_VERIFY7D_BUILD_HOST=10by32-02-std`; added p95 was 0.116–0.140 ms for typing and 0.286 ms for Enter; first delimiter conversion 1.469 ms. `load_scaling --include-ignored`: 4 passed; 4x-line ratios were 3.873 for load+sync and 3.627 for first conversion. These numbers are **build host** measurements. Heavy commands used `/usr/local/bin/build-slot.sh`; Cargo used `-j8` (fuzz compilation: `CARGO_BUILD_JOBS=8`). No product fixes, merges, deploys, or `perf-test-*` access. Detailed findings, baseline/head logs, and gate logs: `/home/agent/codex-jobs/verify-758b/findings.md`.
Author
Owner

Design plan opened: #768 — Plan: Undo with block IDs (#671), targeting proto/block-identity-v7d from 57724c04.

docs/plans/0671-undo.md compares all three options and chooses server-validated structural inverse operations with stable boundary receipts and one central normaliser; native Undo remains for human text. It defines the invariant checker, concurrent Undo/B5 behavior, O(edited region) work, preserved perf-VM bounds, shared checks in all three harnesses plus semantic fuzzing, existing reproducers, and five likely failures.

Documentation only on docs/undo-block-ids-plan at 2f1ac759636dedfb4679a1117f094b8725114cb8. Checked whitespace and three-page A4 layout at 11-point body text; no product tests or deployments. This is a design proposal for review, not a claim that the two remaining Undo defects are fixed.

Design plan opened: https://git.kayg.org/kayg/calternal/pulls/768 — **Plan: Undo with block IDs (#671)**, targeting `proto/block-identity-v7d` from `57724c04`. `docs/plans/0671-undo.md` compares all three options and chooses server-validated structural inverse operations with stable boundary receipts and one central normaliser; native Undo remains for human text. It defines the invariant checker, concurrent Undo/B5 behavior, O(edited region) work, preserved perf-VM bounds, shared checks in all three harnesses plus semantic fuzzing, existing reproducers, and five likely failures. Documentation only on `docs/undo-block-ids-plan` at `2f1ac759636dedfb4679a1117f094b8725114cb8`. Checked whitespace and three-page A4 layout at 11-point body text; no product tests or deployments. This is a design proposal for review, not a claim that the two remaining Undo defects are fixed.
Author
Owner

housekeeping #1009: rebased+green for the targeted gates below, left open for review.

rebased block identity prototype. long randomized qualification is separate from targeted cargo checks.

head: a16a63c28c8dcac28686749ab5503481d865d447, based on dev cd7f84432febfc63b788fbb9b9f9950452982d74; pushed with the original exact force-with-lease.

Mac VM validation through Nix and the shared Mac lock/slot passed: frontend frozen install, check, lint, build, bundle gate and unit tests; cargo fmt -p calternal-block-ids -- --check; cargo check -j4 --locked -p calternal-block-ids --all-targets; cargo clippy -j4 --locked -p calternal-block-ids --all-targets -- -D warnings; cargo test -j4 --locked -p calternal-block-ids --lib (35 tests). frontend inputs are unchanged since the initial frontend pass. commands and logs.

this is prototype/package validation. the historical five-hour verify5 randomized qualification, fuzzing and performance qualification were not rerun; no merge or production-readiness claim. carriage-return/CRLF fuzz seeds intentionally retain their original line-ending bytes.

original-head patch inventory, pr-758.md.

housekeeping #1009: rebased+green for the targeted gates below, left open for review. rebased block identity prototype. long randomized qualification is separate from targeted cargo checks. head: `a16a63c28c8dcac28686749ab5503481d865d447`, based on dev `cd7f84432febfc63b788fbb9b9f9950452982d74`; pushed with the original exact force-with-lease. Mac VM validation through Nix and the shared Mac lock/slot passed: frontend frozen install, check, lint, build, bundle gate and unit tests; `cargo fmt -p calternal-block-ids -- --check`; `cargo check -j4 --locked -p calternal-block-ids --all-targets`; `cargo clippy -j4 --locked -p calternal-block-ids --all-targets -- -D warnings`; `cargo test -j4 --locked -p calternal-block-ids --lib` (35 tests). frontend inputs are unchanged since the initial frontend pass. [commands and logs](https://git.kayg.org/attachments/0f347ff1-f76b-4dbb-a48f-80c49d6f7544). this is prototype/package validation. the historical five-hour verify5 randomized qualification, fuzzing and performance qualification were not rerun; no merge or production-readiness claim. carriage-return/CRLF fuzz seeds intentionally retain their original line-ending bytes. [original-head patch inventory](https://git.kayg.org/attachments/e05a38dc-c028-4d77-8655-efa9d5c8ea50), `pr-758.md`.
Author
Owner

Parked (14 Nov housekeeping, #1106 triage comment). dev has no crates/block-ids. The perf VM failed Enter at +1.785 ms p95 (gate: 1 ms), and load/sync is superlinear (10k notes: 166 ms). Left open on purpose; confirm any fix on the perf VM, not the build host.

**Parked** (14 Nov housekeeping, [#1106 triage comment](https://git.kayg.org/kayg/calternal/issues/1106#issuecomment-95950)). dev has no `crates/block-ids`. The perf VM failed Enter at +1.785 ms p95 (gate: 1 ms), and load/sync is superlinear (10k notes: 166 ms). Left open on purpose; confirm any fix on the perf VM, not the build host.
Some checks failed
CI / server (pull_request) Successful in 1m17s
CI / rust (pull_request) Failing after 30m1s
CI / web (pull_request) Failing after 2h40m59s
This pull request has changes conflicting with the target branch.
  • Cargo.lock
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'proto/block-identity-v7d:proto/block-identity-v7d'
git switch 'proto/block-identity-v7d'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'dev'
git merge --no-ff 'proto/block-identity-v7d'
git switch 'proto/block-identity-v7d'
git rebase 'dev'
git switch 'dev'
git merge --ff-only 'proto/block-identity-v7d'
git switch 'proto/block-identity-v7d'
git rebase 'dev'
git switch 'dev'
git merge --no-ff 'proto/block-identity-v7d'
git switch 'dev'
git merge --squash 'proto/block-identity-v7d'
git switch 'dev'
git merge --ff-only 'proto/block-identity-v7d'
git switch 'dev'
git merge 'proto/block-identity-v7d'
git push origin 'dev'
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!758
No description provided.