Note rename with 100 links takes ~300 ms; target under 50 ms #659
Open
opened 2026-10-21 07:54:15 +00:00 by kayg
·
204 comments
No Branch/Tag specified
main
port/tasks-float-2
fix/train-1116-2
fix/train-1116-3
fix/train-1116-1
fix/flake-1134
fix/server-1182
dev
port/notes-float-3c
docs/auto-update-ig
feat/dav-transport
port/tasks-float-1
wip/mail1011-sv-order-1116
fix/flake-1179
fix/flake-1178
fix/guards-1153-fsio-split
fix/guards-1153-notes-split-we
fix/guards-1153-notes-lib
fix/guards-1153-notes-home
fix/guards-1153-ui-primitives
fix/guards-1153-primitives-e2e
fix/guards-1153-visibility-doc
feat/paper-grey-1116
fix/flake-1165
fix/flake-1119
docs/imap-766-plan-v2
fix/e2e-unique-ports
t3/paged-search-reconcile-final
wip/mail1011-final-1115
docs/tasks-float-port
perf/editor-first-paint-1c
feat/imap-notes-fetch
feat/imap-notes-projection
feat/imap-notes-readonly
feat/imap-notes-auth
feat/imap-notes-server-foundation
wip/mail1011-txn-ownvocab-1115
wip/mail1011-txn-novocab-1115
perf/p1117-final-harness
perf/single-shot-repeats
port/tasks-matrix
wip/mail1011-txn-1115
fix/static-gates-1155
feat/files-s1-identity-r7
fix/files-r7-idle-loop
fix/daily-train-1152
port/notes-float
fix/editor-tables-test-types
port/notes-float-listscript
feat/tasks-actions
port/notes-float-phone-preload
perf/sound-comparator
port/notes-float-listscroll
port/notes-float-budgets
port/notes-float-suite-fix-b
port/notes-float-sidebar-fix
port/notes-float-trim
port/notes-float-3-lists
fix/attachments-meta-capability
docs/carddav-writes-v2-plan
feat/contacts-companion-pure
issue/carddav-read-perf-fix-r2
issue/carddav-read-r2
port/notes-float-devsync2
review/calendar-2
review/switcher-a-pills
port/notes-float-switcher-a
port/port-tables-2
review/switcher-ends
wip/whiteboard-s1-1114
port/port-tables
wip/mail1011-perfneutral
review/photo-tint
port/notes-float-shell
wip/local/collections-db
wip/local/mail-p1
wip/local/cold-growth-on-tiering
wip/local/tiering-v3-s1
wip/local/wal1051-cap
wip/local/tiering-v3-s1-resume
wip/local/index-position-startup-scan
port/notes-float-flat
port/notes-float-promote
wip/handover/mail1011-candidate
wip/handover/files-s1-candidate
port/notes-float-shell-only
port/notes-float-perf
feat/whiteboard-s1
feat/tiering-v5
fix/app-switch-hitch
wip/local/files-s1-dev-v4-final
feat/files-s1-dev-v4
fix/c2-glass-shared
feat/flat-lists
wip/handover/whiteboard-s1-resume
wip/att-lazy-861
feat/switcher-browse
wip/att-lazy-860
feat/tasks-float
recovered/flat-backup-candidate
perf/stalls-1054-kc
land/ai-toolbar
feat/collections-db
feat/collections-db-fixes
codex/mail-1011-redesign-20261111
fix/ai-toolbar
backup/macos-vm/st3-head
perf/trim-candidate-phonestack
feat/switcher-three
fix/1051-index-idle-checkpoint
perf/stalls-1054-kb
perf/stalls-1054-k
perf/stalls-1054-r3
fix/c2-contrast-tail
perf/stalls-1054-r3-preview
feat/collections-before
feat/tiering-v4
fix/timelog-caret
wip/local/tasks-actions
docs/tasks-writes-v2-plan
st3-r3
feat/pass8
review/calendar-2-before-1111
wip/tiering-v3-cold4
perf/stalls-1054-r2
fix/suite-A4
fix/suite-A5-probe
fix/suite-A6
fix/suite-A3
fix/suite-A2
fix/suite-A5
fix/suite-A1
wip/local/attachments-861-fix
feat/contrast
wip/local/ports-861
storage/wal-checkpoint-off-save-1051
wip/local/mail-1011-reconcile-20261110
feat/style-sheet-fixes
feat/money-round
perf/stalls-1054
wip/tiering-v3-cold5
t3/mail-1011-liveness
feat/iphone-fixes
feat/notes-approve
wip/local/shrow-work
feat/files-s1-identity
feat/quickfix
wip/tiering-v3-cold
wip/local/shared-row-swipes
backup/macos-vm/pfx-B
backup/macos-vm/pfx-C
backup/macos-vm/pfx-D
feat/contrast-r1
feat/tiering-v3-s2-tags
feat/folder-drop
t3/photos-s1
feat/tiering-v3-s1-namespace
wip/local/photos-s1
t3/photos-plan-slice-one
recovered/backup/p1b-61505
t3/paged-search-reconcile
t3/smooth-pane-transitions
t3/index-position-startup-scan
fix/private-staging-759b-r2
backup/macos-vm/hk/hk1009/pr877
backup/macos-vm/hk/hk1009/pr878
docs/undo-block-ids-plan
fix/undo-768
backup/macos-vm/hk/hk1009/pr875
backup/macos-vm/hk/hk1009/pr904
proto/block-identity-v7d
backup/macos-vm/hk/hk1009/pr846
backup/macos-vm/hk/hk1009/pr860
backup/macos-vm/hk/hk1009/pr861
backup/macos-vm/hk/hk1009/pr849
backup/macos-vm/hk/hk1009/pr848
backup/macos-vm/hk/hk1009/pr853
backup/macos-vm/hk/hk1009/pr957
backup/macos-vm/hk/hk1009/pr893
backup/macos-vm/hk/hk1009/pr889
backup/macos-vm/hk/hk1009/pr902
docs/imap-notes-plan
docs/quota-plan-2
fix/parallel-test-flakes
docs/calendar-backend-v2-plan
feat/calendar-ical-converter
backup/macos-vm/hk/hk1009/pr808
docs/contacts-import-v2-plan
issue/610-pm-midnight
feat/calendar-v2-s1-containment
backup/macos-vm/hk/hk1009/pr854
backup/macos-vm/hk/hk1009/pr845
backup/macos-vm/hk/hk1009/pr917
docs/dav-recorder-v2-plan
plan/previews-865
plan/save-log-durable-entry
backup/macos-vm/hk/hk1009/pr934
fix/e2e-data-on-ram
backup/macos-vm/hk/hk1009/pr888
feat/appwindow3
feat/appwindow2
feat/appwindow
feat/money-p1
feat/keys-sheet
review/calendar-2-themes
feat/smooth-cursor
fix/float-style
review/calendar-2-float
release/2026-11-06-hotfix
archive/port/rows-drop-code
archive/port/rows-actions
archive/port/rows
scratch/tasks-894-ui-gates
review/calendar-2-night-wip
recovered/flaky/toast-reduced
release/2026-11-05
archive/flaky/rows-drop-fixed
archive/flaky/rows-actions
archive/flaky/rows
sim/bm15-final
sim/bm15-bis-932
sim/bm15-bis-909
sim/bm15
sim/bm15-bis-887
perf/tiering-option-b
fix/sw-lazy-precache
archive/plan/save-log-durable-entry
mock/money-fix2
archive/fix/e2e-data-on-ram
mock/appearance-all
mock/pill-press
mock/pill-press-mac
backup/macos-vm/appearance-after
mock/auto-swipes
mock/mail-actions
backup/macos-vm/mock/mail-actions
mock/money-static
archive/review/standards-917
perf/tiering-761-fix
mock/type-audit
mock/third-pane
feat/contacts-import-v2-s1
perf/executor-hot-path
archive/port/hidden-blocks
archive/port/devices
scratch/executor-on-894
scratch/executor-spans2
scratch/executor-spans
archive/port/rows-drop
feat/tiering-761-d-scale
feat/tiering-761-c-index
feat/tiering-761-b-reader
archive/review/sharing-pr3-review-9fec3d1f
perf/ports-lazy-budgets
feat/tiering-761-a-migration
archive/review/sharing-pr3-review
archive/review/sharing-pr3-review-code
archive/plan/previews-865
archive/port/port-attachments-3
archive/port/contacts-merge
fix/motion-audit-859
fix/motion-audit-859-mac
archive/port/port-pickers
archive/port/port-tables-2
archive/port/port-tables
recovered/local/sharing-s1-pr2-room-snapshot-candidate
archive/fix/parallel-test-flakes-code-minipc01
docs/imap-766-readonly-slice
feat/dav-recorder-v3
research/788-diagnosis
archive/fix/parallel-test-flakes
archive/perf/pr792-cold-index-edit
docs/sharing-slice-1
recovered/feat/dav-recorder-v2
recovered/feat/dav-recorder-v2-edd7bbb
spike/imap-766-s0-cases
archive/fix/undo-768
recovered/feat/dav-recorder
recovered/feat/dav-recorder-901acd4
feat/contacts-import
perf/cold-growth-on-764
perf/cold-growth-on-tiering
recovered/feat/tasks-set-status
feat/tasks-move-reorder
feat/tasks-delete-promote-duplicate
feat/carddav-writes
perf/quota-on-tiering
perf/quota-simple
perf/cold-growth-on-quota-stack
recovered/perf/cold-growth-on-tiering
feat/calendar-identity
feat/calendar-event-parser
feat/calendar-props-maps
port/glass-when-ring
recovered/feat/tiering-761-s1-wip-8132a84
recovered/feat/tiering-761-s1-wip-9da4094
recovered/feat/tiering-761-s1-wip-724512c
recovered/feat/tiering-761-s1-wip-66e667e
recovered/feat/tiering-761-s1
wip/6by32-01-tier-761-s1-pause-20261030
spike/imap-766-s0
wip/6by32-02-calternal-pause-20261030
wip/8by64-01-review-688-pause-20261030
wip/6by32-01-verify-744-pause-20261030
wip/6by32-01-verify-742-pause-20261030
fix/private-staging-759b
wip/6by32-01-review-748-pause-20261030
wip/6by32-01-review-733c-pause-20261030
wip/6by32-01-review-733b-pause-20261030
review/calendar-month
wip/local/bm15-trash
plan/759b-staging
review/767b-tests
review/preview-2026-10-29
docs/tiering-731-plan
wip/c6b02-review-733d
wip/c6b02-bm1-full-a
docs/deploy-plan
fix/storage-owner-liveness-642
fix/storage-fix-7
feat/tiering-731
wip/tiering-731-first-attempt
perf/idle-honest-2
fix/storage-private-tmp-642-dev
fix/storage-exact-file-quarantine-642
perf/one-flush-save
review/calendar-static
review/indexing-ring
review/when-field-2
proto/block-identity-2-review
proto/block-identity-review
review/when-field
issue/tasks-create-ids
issue/tasks-create
review/combined
review/task-polish
review/top-buttons
review/q1-q5
archive/integ325-293
archive/integ325-ci
issue/calendar-adr
archive/old/train/2026-10-23bk2
archive/old/train/2026-10-23bk
issue/469-mockup-9a
issue/smart-tasks-mockup
issue/469-menus
issue/652-signout-flake
issue/652-history-fix7
issue/652-history-fix6
archive/old/issue/spring-check-perf
issue/spring-check-perf
issue/659-rename-fast
archive/old/train/2026-10-21ar
issue/search-hardening-3
issue/652-history-fix5
issue/660-port-sheets-glass
issue/652-history-fix4
issue/652-history-fix3
issue/652-history-fix2
issue/652-history-flake
train/2026-10-21an
issue/settings-admin-port
issue/search-port
train/2026-10-20am
issue/storage-split-fix2
issue/storage-split
archive/old/issue/folder-ids-fix
train/2026-10-20al
archive/old/issue/folder-ids
train/2026-10-20ak
issue/tables-mockup
train/2026-10-19aj
train/2026-10-19ai
issue/469-merge-fixes
issue/sidebar-band
archive/old/issue/608-settings-spec
train/2026-10-19ah
issue/swipe-offscreen
train/2026-10-19ag
archive/old/issue/590-nlp-adr
archive/old/issue/587-event-after-write-2
train/2026-10-19af
archive/old/issue/587-event-after-write
issue/469-pill-room-c
issue/469-pill-room
train/2026-10-19ae
issue/469-narrow-handle
issue/397-ios-swipe-2
issue/469-desk-fixes
archive/old/issue/auto-update-adr
issue/469-filter-gap
issue/469-port-1b
issue/442-opacity-flake
issue/327-web-fast-3
archive/old/issue/469-port-1
issue/469-port-1
issue/327-web-fast-2
archive/old/issue/327-web-fast
archive/old/issue/425-stt-bench-vq1
archive/old/issue/445-no-bleed
archive/old/issue/400-swipe-mockup-2
issue/426-client-review
issue/426-client-2
issue/426-client
archive/old/issue/476-safe-area-lab
archive/old/issue/445-top-light
issue/471-blocks-mockup
archive/old/issue/448-links-app-2
archive/old/issue/448-links-app
archive/old/issue/398-cold-links
issue/434-442-small-2
issue/434-442-small
archive/old/issue/398-unload
archive/old/issue/445-bottom-band
issue/445-bottom-band
issue/351-rem-3
issue/351-rem-2
issue/351-rem
archive/old/issue/327-first-note
issue/395-width-phone
archive/old/issue/327-typing
issue/396-ios-edges
issue/397-ios-swipe
archive/old/issue/327-notes-index
issue/345-347-contrast-empty-2
archive/old/issue/44-arenas
issue/44-arenas
archive/integ325
archive/old/issue/327-perf-harness
archive/old/issue/44-thp
issue/44-thp
archive/old/issue/285-sticky-pills
archive/old/issue/44-trim-3
issue/44-trim-3
archive/old/issue/165-cards
archive/old/issue/165-picker-2
archive/old/issue/212-multi-select
No results found.
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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#659
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while building contacts (#657). On the perf VM (release, Home on HDD),
notes.renameof a note with 100 incoming links takes about 308 ms p50. Contacts renames cost the same, 331 ms p50 / 405 ms p95. Target: under 50 ms for 100 links.Likely causes to measure: one flush per edited file, or per job step, instead of a group commit; linking notes read and rewritten one by one; repeated history writes.
Perf is the #1 priority. This affects every rename of a well-linked note.
Starting the approved rename investigation on branch issue/659-rename-fast, base
8b30062e1c. First I will measure spaced release renames on the perf VM under the shared lock and compare history commits and syncs with the model before changing product code.Source finding before measurement: the worktree is clean at
8b30062e1c. The serial history and rename sync path in the model exists. One correction: meta_ids_inner in crates/notes/src/meta.rs refreshes open rooms one at a time via Cmd::RefreshMeta. Replacing per-step events with meta_ids alone would still serialize the list-row transactions. The implementation needs an actual batched live-row path, with rows committed before events and with concurrent typing protected from stale row writes.The exact-base release benchmark is queued under flock -o /root/perf-vm.lock. It runs 30 renames with 100 links and six-second gaps, debug history logs and strace fsync/fdatasync capture. No product code has changed while waiting for the model confirmation. Raw evidence is outside the repository under /mnt/z4-nvme/issue659 on the perf VM.
Measurement is temporarily blocked by the shared perf VM lock. The exact-base release probe has been queued for over seven minutes under flock -o /root/perf-vm.lock; another authorized job currently holds it. I am waiting without disturbing other processes. Locally, the unchanged base compiles and cargo test -p calternal-notes -j4 tests::renames passed: test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 301 filtered out; finished in 3.73s. The local command ran through build-slot.sh with the requested worktree target directory. No product changes yet, so the model-first requirement remains intact.
The first spaced release measurements disagree with the model. Under debug logging plus strace, the first six 100-link renames took 3297.121, 2297.168, 2078.728, 2715.665, 2541.132 and 2639 ms (last value rounded here). Sample 1 had 31 history.commit events, 31 history sync calls, 64 Notes-directory sync calls, one ids.jsonl sync and 66 other file sync calls between its begin/end markers. The rename step alone took 69,593 us; the driver took 2,241,933 us. These are preliminary instrumented samples, not the final latency percentiles.
This reveals a measurement confound: the rename itself lasts past the 750 ms save deadline, so its own deferred saves land inside the measured operation even with six-second gaps between operations. The model's assumption of zero note-file writes on the critical path is therefore false for this instrumented run. The directory/file counts include these saves and cannot be attributed to the namespace step alone. I will obtain a debug-only control without syscall tracing before implementation, to distinguish tracing overhead from the product's cost. No product code has changed.
Exact-base HDD release run complete: 100 incoming links, 30 renames, six-second gaps, RUST_LOG=calternal_notes=debug, strace -f -ttt -y -e trace=fsync,fdatasync.
Latency: p50 2328.523 ms, p95 3108.667 ms, p99 3297.121 ms.
Per rename, between wall-clock begin/end markers:
The counts include saves that start during the measured operation. History event and syscall counts can differ at marker boundaries because the syscall precedes its debug event. This run does not confirm the proposed eight-commit, 190 ms idle model. It is substantially affected by tracing and by the operation crossing its own 750 ms save deadline. A debug-only control and a seccomp-filtered fsync trace are queued before any product changes. Raw logs and count JSON remain outside the repo.
Re-analysis before product changes: the debug-only control also disagrees with the numerical model. First 14 completed samples (100 links, six-second gaps) have p50 844.579 ms, p95 1043.091 ms and p99 4533.815 ms; this includes the first cold rename. The 30-sample run is still collecting.
The slow path is now accounted for. In sample 5 (585.412 ms), 15 history commits spent 502.109 ms in total. The namespace step took 23.969 ms. The exact commit breakdown is one plan, one departed-path history write, one rename-progress write, eight edit commits for the first 63 edits, one batch-progress write, and three edit commits for the last 38 edits. The departed-path write comes from missing::remember -> History::depart, which queues a normal immediate write before the rename event settles; it was omitted from the model. The 32-step concurrency limit and staggered row completions make more small history groups than the estimated 2-3 per batch.
The proposed serial-flush mechanism is confirmed, but its eight-commit and 190 ms estimates are not. Ordinary strace adds substantial further overhead and can make the operation overlap its own deferred saves. Implementation will use the corrected model: accumulate keyed edit writes, include departure history in the same barrier group, remove intermediate durable progress, sync directories/index in parallel, and batch actual live-row writes. Product code has remained unchanged up to this re-analysis.
The controls are complete. Debug-only, exact-base release, HDD, 100 links, 30 renames with six-second gaps: p50 769.156 ms, p95 3258.168 ms, p99 4533.815 ms (cold first sample retained).
A separate five-sample run with strace --seccomp-bpf -f -ttt -y -e trace=fsync,fdatasync gave p50 726.787 ms, p95/p99 1545.294 ms. For its four warm samples, history commit counts were 21, 16, 15 and 17; each had one Notes-directory sync and one ids.jsonl sync. Other sync calls were 3, 3, 3 and 6, including SQLite database-directory/checkpoint activity. The cold sample had 38 history commits, 39 history syncs, four Notes-directory syncs, one index sync and 24 other file syncs.
These controls support the re-analysis already posted: the original numerical model understates history groups and omits departure history. Ordinary ptrace tracing substantially inflates the operation and makes deferred saves overlap it. The original 308 ms baseline is not reproduced by this fixture on the current VM. Base/head comparisons will use the same harness and disk placement, alternating, rather than treating that old number as the measured base.
Implementation draft is in the worktree, not committed or pushed. It adds a fast driver for plans containing namespace moves followed by unique per-note edits, lazy keyed effect appends, one explicit history/index/directory barrier, lazy post-barrier progress, actual batched live list-row transactions, identity-based move resolution before opening replay rooms, and a current-version in-memory fork. Other bulk step kinds retain their current driver. Departure-history rows join the effect group rather than forcing an extra commit.
Test code now includes a 280-child SIGKILL matrix (K0-K6, forward and undo, 20 repetitions), an explicit held-history/held-directory ordering test, and concurrent typing in five linking rooms followed by file/history comparison. These new tests have not passed yet; local test compilation is queued through build-slot.sh. The draft release probe is separately queued under the perf VM lock. Nothing is claimed complete.
One test-boundary distinction: public undo synchronously writes its original-job bookkeeping after the inverse driver completes. Its K6 hook therefore tests inverse-driver completion before that bookkeeping write, while forward K6 tests after the public rename answer before its final lazy progress commit.
Correction to the benchmark evidence: my standalone probe used Notes::new, colocating history/meta/index with Homes. ADR 0062 requires HDD Homes with SSD state for the official HDD gate. The contacts benchmark behind the issue uses Notes::with_state. The 769.156 ms control and the syscall counts above are valid measurements of an all-HDD layout, but do not reproduce the deployment or the original 308 ms comparison. That layout mistake is mine.
I am correcting the probe to use SSD state for HDD Homes and all-SSD for the comparison. The draft product changes are uncommitted and unverified. Further implementation changes are paused until the corrected exact-base probe confirms the cost in the required layout. Ordinary strace overhead and the omitted departure-history write remain source/runtime findings, but the reported all-HDD latency must not be used as the official base.
Draft archive release build passed on the perf VM. In warm 100-link traces, it has one plan history commit and one effect history commit with 103 queued writes. This confirms that departure history, keyed edits and the barrier can share the effect group. Ten spaced samples on XFS HDD Homes with SSD state gave p50 63.037 ms, p95/p99 247.339 ms, including the cold first sample; warm samples ranged down to 41.455 ms and 43.525 ms. The HDD target is not met by that draft's median. This was an earlier source archive, not a verified branch head.
The corrected exact-base run on the same split XFS/SSD layout is now running. Initial warm samples include 168.687 and 171.050 ms, but still have about 16-20 history commits per rename, not the predicted eight. Each has one Notes-directory sync and one ids.jsonl sync. The final alternating gate will use the ext4 HDD mount /mnt/b/hdd-ext4 required by ADR 0062, and all-SSD for comparison; the XFS probes are auxiliary evidence.
Local regression testing remains blocked on the shared build slots: the cargo test -p calternal-notes -j4 tests::renames command is still queued through build-slot.sh and has produced no test output. I have not bypassed the wrapper or disturbed other jobs. Implementation remains uncommitted and unverified; the measurement corrections and tests must be resolved before any completion claim or push.
Corrected split-storage exact-base release probe complete: XFS rotational HDD Homes, SSD state, 100 incoming links, 30 renames six seconds apart, debug logs and seccomp-filtered fsync tracing.
p50 165.617 ms, p95 373.135 ms, p99 572.034 ms (cold first sample retained).
This confirms the approximate idle-latency scale, while the history commit count is still higher than the model. The serial-commit mechanism and the omitted departed-path history write have been accounted for before continuing implementation. This XFS result is auxiliary; final alternating base/head measurements will use the existing ext4 rotational mount for the official HDD comparison, and all-SSD.
Final sync counts for the corrected 30-sample split XFS-HDD/SSD-state base run:
The raw marker-based count JSON is outside the repository. The current draft includes a test-only counter asserting that no done-progress message has even been submitted while either the history or directory barrier is held. An isolated dm-log-writes prefix-replay runner is prepared for K0-K6 and an explicitly durable DONE checkpoint, forward and undo. It has not run yet. The upstream kernel documentation and its linked replay utility were checked; the VM has the kernel module and required loop/mount/compiler tools. No block devices or mappings have been changed yet.
The targeted local rename regression suite passed: test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 309 filtered out; finished in 3.78s.
The first full release notes run failed: test result: FAILED. 312 passed; 10 failed; 1 ignored; 0 measured; 0 filtered out; finished in 29.67s. The new barrier-submission, replay-version, five-room typing, and rollback/link-integrity tests passed. The crash matrix timed out in recovery, and nine other tests reported SQLite unable to open database file.
Diagnosis: the crash matrix created 280 fixture lifetimes inside one Tokio runtime. Notes::shutdown flushes rooms and checkpoints lists but does not stop Home background tasks. Those tasks retain database connections until runtime teardown; this process has a 1024 descriptor limit. The harness now creates and drops a runtime for each kill case and reports the point, undo direction and repetition if a case fails. This is a test-harness fix, not a relaxation of assertions. Full validation must be rerun before attributing any remaining failure.
The corrected local notes suite passed, including the full 280-child SIGKILL matrix. Verbatim result:
Fmt passed with exit 0 and no output. Clippy found one collapsible nested if in the fast-driver dispatch. That mechanical style fix is applied, and the local validation worker is resuming. The earlier broad database-open failures disappeared with per-case runtime teardown. The only subsequent matrix failure was fixture title normalization; fixtures now contain explicit title properties and retain exact-text assertions.
Power-loss prefix replay and final alternating ext4-HDD/SSD comparisons remain queued under the perf VM lock. No completion claim or push yet.
Power-loss prefix replay passed all 16 cut points: K0-K6 and an explicitly durable DONE checkpoint, both forward and undo. The dm-log-writes target recorded the controlled ext4 filesystem; replay to the cut mark discarded later writes. K0 recovered with no plan, K1-K6 with a running plan, and DONE with a done plan. Every recovered case completed with one hub path and exactly rewritten links.
This test co-located Notes and history on the controlled filesystem. The cross-device argument is the explicit ordering: the plan commits first, and done is submitted only after history, affected-directory and identity-log syncs have all returned. The held-barrier unit test also checks that done has not even been submitted while either barrier is held. The lasting argument is in proposed ADR 0065. The block-log ordering follows the upstream documentation: https://docs.kernel.org/admin-guide/device-mapper/log-writes.html .
Verbatim final test line:
The first runner left a read-only SQLite connection open during cleanup, so its log contains busy-unmount warnings. That connection lifetime is fixed in the external runner. All 16 owned recovery mounts were then unmounted, and checks found no remaining mounts or loop devices under the issue659 power-test paths. Verbatim cleanup line:
The first full workspace run passed with exit 0. The second is running. Final alternating performance builds are now running under the perf VM lock. No commit or push yet.
A deterministic regression test exposed a recovery gap: a room can capture the old indexed path before the scan repairs the index. Even after identity resolution, that already-loading room can answer NotFound ("note ... was deleted"). The test deliberately pauses the old-path load, moves the file, repairs the index, and then lets the queued replay request reach the failed room. It failed before the fix and passes after it.
The driver now verifies the file identity and retries a failed stale-room load on its actual path. Existing rooms also receive the resolved path even if the index was already repaired. Truly missing targets stop dependent edits. The controlled test, a 400-case focused K4 stress run, and the full notes suite passed after this fix: test result: ok. 324 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 49.25s.
One later workspace attempt failed in the existing single_root_upgrade_backup_split_cache_delete_and_rollback storage-startup test with a transient root-lock WouldBlock after starting/stopping its server. Workspace gates are being rerun with one test at a time (RUST_TEST_THREADS=1), retaining -j4 build concurrency and all in-test concurrency assertions. A temporary local Cargo setting will be removed before commit.
The in-progress comparison was interrupted by signalling only its recorded owned coordinator PID and letting its own child handles shut down. Its partial results are archived outside the repo and will not be presented as final-head results. Measurements and power-loss replay must be repeated against the recovery fix. No commit or push yet.
Two additional correctness findings during final review:
A raw imported file can gain calternal-id and other server metadata after the durable plan but before its title patch. The plan's inverse offsets then describe the old text. The job now stores the inverse of the actual merged patch at its committed version; replay reconstructs that inverse from history. Existing numeric edit results remain readable for undo. The new imported-note undo regression passed (1 passed, 0 failed); a second regression covers typing between planning and application.
The draft bounded edits at 254 to fit the ordinary history writer's 256-command grouping limit. That would produce multiple effect commits for large jobs. Effects now collect outside the writer, then enter as one transaction after all rooms have applied their patches. Tests cover 300 updates remaining absent before submission and all 300 rolling back on one injected error.
Recovery also syncs the actual resolved source directory if an outside move changed it. Final gates and the VM comparison are being rerun on these changes. No performance target is claimed yet.
Cancellation check finding: the existing room pipeline retries a dropped durability receipt. Cancelling a driver before group submission therefore releases the room by writing its already-planned keyed effect through that retry path. It does not discard the effect. The new test initially expected the original title and failed with actual '# Destination' versus expected '# Hub'. That assertion was wrong for the established pipeline contract.
The corrected check verifies that the room answers within five seconds, replay completes the running job, and one undo restores the exact original text. Production code did not change for this test correction. Final notes, fmt, clippy and all three workspace runs are restarting on the stable source.
The final release test binary passed dm-log-writes prefix replay at K0 through K6 and after durable done, for both forward rename and undo. Every case replayed the logged device prefix onto a blank controlled ext4 device, recovered the filesystem, resumed the stored job, and checked one hub file and intact links. All owned loop devices and mappings were cleaned up.
This test co-locates data and state on its controlled filesystem. Independent-device completion ordering is covered by the held-barrier test and the power-loss argument in ADR 0065; prefix replay alone is not a proof of every possible storage failure.
Output verbatim:
The final performance probe was blocked by a transient shared-filesystem capacity failure before collecting any samples. The release build and all 16 dm-log-writes cases completed successfully first. Probe output verbatim:
The subsequent capacity check shows the HDD has recovered to 11 GiB available and 284,323 free inodes; SSD has 8.8 GiB available. I have not deleted other jobs' data or killed their processes. I am requeuing the measurement section with an explicit free-space and inode check after acquiring the VM lock. No samples from the failed attempt will enter the comparison.
Fmt, clippy and three consecutive cargo test --workspace runs have passed on the frozen source. All local heavy commands used the required build slot, cargo -j4, parent test harness --test-threads=1, and RUST_TEST_THREADS=4 for children. Each notes run includes 280 real SIGKILL cases (seven points, forward and undo, twenty repeats each). Full gate output will be posted verbatim with the final head SHA. The browser suites and final performance retry are still pending.
Workspace run 1, notes result verbatim:
Workspace run 2, notes result verbatim:
Workspace run 3, notes result verbatim:
The final 100-link debug preflight still misses both latency targets. These five-sample probes include a cold first rename and are diagnostic; the unbiased alternating comparison is now running separately with logging reduced to warnings.
HDD trace results, verbatim counts from marker-delimited RPC windows:
Warm calls contain the durable plan commit and one effect-group commit. A separate completion-progress commit follows about 100 ms after the response; deferred note saves follow later. These counts exclude that idle-period work, consistently with the earlier RPC-window counts. Samples 2–4 each have two history syncs, one Notes directory sync and one ids.jsonl sync. Sample 1 also has SQLite checkpoint syncs.
Warm HDD directory-sync durations were 104.437, 63.892, 41.296 and 59.506 ms. The SSD diagnostic call at sample 2 took 38.114 ms: plan write 8.082 ms, queued application 6.510 ms, effect commit 18.524 ms, directory sync 10.268 ms and ids sync 13.646 ms; barrier operations overlap.
I am preserving the required durability ordering. A minimal two-phase storage control is queued under the same VM lock to distinguish storage cost from application overhead. Final paired quantiles and tag-rename measurements are still pending.
The browser notes run finished with one timeout: 159 passed, 38 skipped, 1 failed. The failing Chromium test is editor.spec.ts:270, 'remote changes wait while a word is being composed (IME)'. The trace shows Input.imeSetComposition at line 279 never returned before the 30-second test timeout. Both pages had opened successfully; the test had not yet sent its remote edit. All rename, tag rename, undo, missing-link and outside-move checks passed.
I missed this earlier failure while reading the tail of the live log, so my Chromium progress update was too broad. I am rerunning the IME case three times on the unchanged head before accepting the browser gate. If it repeats, I will compare against the base. Trace and context remain outside the repository in /tmp/rename659/playwright-results.
The final alternating comparison has completed the HDD 100-link case. Data is on the ext4 HDD, state is on the SSD, release builds, warning-level logs. Base and head alternate order each round, with six seconds between individual operations. Each variant has two warmups and twenty recorded samples. Quantiles use the recorded samples; with n=20 the empirical p99 is the maximum.
Results verbatim:
Head improves p50 by about 4x, but misses the under-50-ms HDD target. The other sizes, SSD comparison, 10k-note tag rename and minimal storage control remain pending. The durability barrier is retained.
The Chromium IME timeout also reproduces on the exact base revision, before the test sends its remote edit. This is an existing browser-test problem, and I am checking its focus setup rather than changing rename code for it.
The IME control is complete. The exact base
8b30062e1cand unchanged head each fail all three repeats at Input.imeSetComposition, before the remote edit. A separate temporary focus probe reported document.hasFocus() == true both before and after bringToFront(), and also failed all three repeats. Focus was not the cause.The browser gate remains failing on this existing IME case. The full notes browser run recorded 159 passed, 38 skipped and 1 failed. Its rename, undo, tag, missing-link and outside-move checks passed. The original browser test and all product UI files remain unchanged. The controls, traces and logs are outside the repository. Final gate output will include the failure verbatim; it will not be labelled green.
Gate output verbatim: fmt, part 1/1. Head
57cec5557e. Exit code 0. Local heavy commands used the required build slot. Cargo used -j4; parent test harnesses used --test-threads=1 and children RUST_TEST_THREADS=4.Command:
Gate output verbatim: clippy, part 1/1. Head
57cec5557e. Exit code 0. Local heavy commands used the required build slot. Cargo used -j4; parent test harnesses used --test-threads=1 and children RUST_TEST_THREADS=4.Command:
Gate output verbatim: workspace run 1, part 1/2. Head
57cec5557e. Exit code 0. Local heavy commands used the required build slot. Cargo used -j4; parent test harnesses used --test-threads=1 and children RUST_TEST_THREADS=4.Command:
Gate output verbatim: workspace run 1, part 2/2. Head
57cec5557e. Exit code 0. Local heavy commands used the required build slot. Cargo used -j4; parent test harnesses used --test-threads=1 and children RUST_TEST_THREADS=4.Command:
Gate output verbatim: workspace run 2, part 1/2. Head
57cec5557e. Exit code 0. Local heavy commands used the required build slot. Cargo used -j4; parent test harnesses used --test-threads=1 and children RUST_TEST_THREADS=4.Command:
Gate output verbatim: workspace run 2, part 2/2. Head
57cec5557e. Exit code 0. Local heavy commands used the required build slot. Cargo used -j4; parent test harnesses used --test-threads=1 and children RUST_TEST_THREADS=4.Command:
Gate output verbatim: workspace run 3, part 1/2. Head
57cec5557e. Exit code 0. Local heavy commands used the required build slot. Cargo used -j4; parent test harnesses used --test-threads=1 and children RUST_TEST_THREADS=4.Command:
Gate output verbatim: workspace run 3, part 2/2. Head
57cec5557e. Exit code 0. Local heavy commands used the required build slot. Cargo used -j4; parent test harnesses used --test-threads=1 and children RUST_TEST_THREADS=4.Command:
Gate output verbatim: notes, part 1/1. Head
57cec5557e. Exit code 0. Local heavy commands used the required build slot. Cargo used -j4; parent test harnesses used --test-threads=1 and children RUST_TEST_THREADS=4.Command:
Gate output verbatim: crash and rename regressions, part 1/1. Head
57cec5557e. Exit code 0. Local heavy commands used the required build slot. Cargo used -j4; parent test harnesses used --test-threads=1 and children RUST_TEST_THREADS=4.Command:
Gate output verbatim: browser notes suites, part 1/2. Head
57cec5557e. Exit code 1. Local heavy commands used the required build slot. Cargo used -j4; parent test harnesses used --test-threads=1 and children RUST_TEST_THREADS=4.Command:
Gate output verbatim: browser notes suites, part 2/2. Head
57cec5557e. Exit code 1. Local heavy commands used the required build slot. Cargo used -j4; parent test harnesses used --test-threads=1 and children RUST_TEST_THREADS=4.Command:
The final 100-link all-SSD comparison is complete. It uses the same alternating release procedure, two warmups and twenty recorded samples per variant, six-second gaps, and warning-level logs. Data and state are on the non-rotational /dev/sde XFS mount; the HDD case uses /dev/sdb1 ext4 for data with SSD state.
Results verbatim:
This is about a 4.7x p50 improvement, but the under-20-ms SSD target is missed. No budget has been raised. The required durable plan and history/directory/identity barrier remain in place.
Additional strace evidence: warm HDD directory fsync syscalls themselves took 104.166, 62.668, 39.806 and 59.266 ms in the diagnostic run. Overlapping SSD effect-history fdatasync calls took 13.745, 11.879, 16.120 and 14.089 ms. These syscall durations were reconstructed from unfinished/resumed timestamps, separately from whole-transaction timing. The queued minimal storage control will provide a separate reference; I am not treating diagnostic samples as the final paired quantiles.
Measurement scope correction: the timing probes used Notes::rename directly with Notes::with_state and no engine recorder. They exercise the rename implementation, history, files, ids and list metadata, but omit the engine journal and action-outcome work. The numbers already posted remain component measurements; they should not be read as complete notes.rename action timings. I missed that distinction when calling the paired results final.
The model explicitly includes journal work. I have prepared a second probe that registers NotesPlugin with the real Engine, installs that engine as the event recorder before opening the Home, and calls Engine::execute("notes.rename") with unique idempotency keys. The full 10/100/1000-link alternating comparison and 10k-note tag case will be repeated through that action path. This includes the real journal, while excluding HTTP transport. The real-action run will execute inside the already queued VM-lock job before the minimal storage control.
The product source and commit
57cec5557eare unchanged. Rust/crash/power-loss checks and the documented base/head IME failure are unaffected. No latency target is claimed met.The component comparison is complete. These calls use Notes directly without an engine recorder; the real Engine action run is queued and will provide the complete-action comparison. Base source checks match all 94 notes/fsio source files at
8b30062; the head files match commit57cec5557e.Release, two warmups and twenty recorded samples per variant, alternating order, six-second idle gaps, warning-level logs. Each cell is p50 / p95 / empirical p99 in milliseconds; n=20 makes p99 the maximum.
The direct 10k-note tag measurements, in order base HDD, head HDD, base SSD, head SSD (cold rooms, initial scan finished):
Both 100-link component targets were missed. No acceptance claim is based on this table; it is retained as an implementation-level reference alongside the forthcoming real-action results.
A new release regression exposed a correctness bug before publication. A delete-only patch does not insert a Yjs item, so its keyed writer clock remains zero. After the effect committed but progress was lost, replay treated it as a new patch. With a typed prefix added meanwhile, the newly stored inverse was empty. Undo left '#new' instead of restoring '#old #new'.
Output verbatim:
The fix gives delete-only jobs a private Yjs map item under the same keyed writer, without changing Markdown or text positions. It also publishes job updates to clients after their history receipts succeed. This preserves the effect's original history row for undo and prevents an uncommitted job update from first returning inside a client's later typing update. Applying all room edits still precedes one grouped history commit and the directory/identity barrier.
I stopped only the recorded owned comparison coordinator, retaining its partial results outside the repository. The new case is being verified inside the held VM lock because a priority train currently keeps local build slots unavailable. Final gates, power replay and the complete-action comparison will use the corrected head. The earlier gate outputs describe
57cec55and will be superseded.The corrected release workspace run passed once and is now on run two. The refreshed browser run finished with 159 passed, 38 skipped and the same existing Chromium IME timeout; the strengthened merge-tag editor check passed in both browsers.
An additional local default-profile workspace attempt hit an unchanged attachment-test helper race, before reaching the notes tests. It enumerates files during an active upload and unwraps each entry's metadata; a temporary file disappeared between readdir and stat at crates/calternal/tests/attachments_crash.rs:129.
Output verbatim:
That helper and the attachment implementation are unchanged by this branch. I am rerunning the local gates on the same source. No assertion has been removed or weakened.
The corrected candidate passed all 15 native crash/replay tests, including the new deletion-only undo case and the test that holds history while a connected client receives no job update. The full notes suite passed in debug and release. Fmt, clippy, three release workspace runs and the release server build passed. The corrected dm-log-writes test passed all 16 cases again.
The refreshed browser run finished with 159 passed, 38 skipped and the previously reproduced base/head Chromium IME timeout. Its stronger merge-tag check now verifies the open editor's text as well as server text, and passed in both browsers.
Two local default-profile workspace runs also passed. The third hit the unchanged cold-open test's two-second deadline in tests/fanout.rs:173:
I am restarting the local sequence on the same frozen source. The deadline and assertions remain unchanged. The earlier attachment-helper failure and this timeout will remain recorded; they are not being hidden by a budget change.
The corrected real-action debug trace confirms the remaining history/flush structure. This probe registers NotesPlugin with Engine, installs the recorder, and executes notes.rename; it includes journal and action-outcome work, excluding HTTP transport. Base is exact
8b30062and head is the frozen corrected candidate.Counts and elapsed times from the five marker-delimited RPC windows, verbatim:
Warm head calls have two critical-path history commits (plan and grouped effects), two history sync calls, one Notes directory sync and one ids.jsonl sync. Completion progress is queued only after that barrier and normally commits later. The cold first head call also establishes imported-file identity.
One model detail is now measured more precisely: NORMAL mode does not remove checkpoint costs. In base warm sample 1, the three other sync calls were two on meta.db-wal and one on meta.db. Base RPC windows showed three or six such metadata sync calls; warm head windows showed none in this trace. Batching list rows reduces both serialized row work and WAL/checkpoint work.
These are instrumented diagnostic samples; the warning-level alternating action run will supply the final quantiles.
A correction to the preceding checkpoint description: each warm base window has three metadata sync calls (two meta.db-wal, one meta.db). Sample 2 has three additional engine-journal sync calls (two index.db-wal, one index.db), bringing its other-sync total to six. The JSON counts are unchanged. The warm head windows have none of these extra sync calls in the five-sample trace.
The correction is committed locally as
2adac15b9a, following57cec55. All 25 changed-file hashes match the VM candidate.The corrected source now has three consecutive passing default-profile workspace runs and three passing release workspace runs. Fmt, clippy, the full notes suites in both profiles, all 15 crash/replay tests, and the corrected 16-case dm-log-writes replay passed. The tag-merge browser check verifies that the merged text reaches the open editor and passed in Chromium and WebKit.
The full browser run remains 159 passed, 38 skipped, 1 failed: the Chromium IME timeout already reproduced three times on the exact base. The earlier attachment enumeration failure and two-second cold-open timeout were retained in issue comments; the successful local sequence used the same source and unchanged assertions.
The real-action HDD 100-link comparison has completed: base p50/p95/p99 235.931/422.446/427.604 ms, corrected head 54.667/89.473/124.072 ms. The HDD p50 target remains missed. The other real-action cases and storage control are still running. Full corrected gate output will be posted verbatim under this head. The branch has not been pushed yet.
Final gate output verbatim: fmt, part 1/1. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: clippy, part 1/1. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace default run 1, part 1/2. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace default run 1, part 2/2. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace default run 2, part 1/2. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace default run 2, part 2/2. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace default run 3, part 1/2. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace default run 3, part 2/2. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: notes debug, part 1/1. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: crash and replay debug, part 1/1. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: browser notes suites, part 1/2. Head
2adac15b9a. Exit code 1. The browser failure is the unchanged IME timeout reproduced on the exact base.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: browser notes suites, part 2/2. Head
2adac15b9a. Exit code 1. The browser failure is the unchanged IME timeout reproduced on the exact base.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: crash and replay release, part 1/1. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: notes release, part 1/1. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: clippy release, part 1/1. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace release run 1, part 1/3. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace release run 1, part 2/3. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace release run 1, part 3/3. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace release run 2, part 1/2. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace release run 2, part 2/2. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace release run 3, part 1/2. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: workspace release run 3, part 2/2. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Final gate output verbatim: dm-log-writes prefix replay, part 1/1. Head
2adac15b9a. Exit code 0.Local heavy commands used the required build slot; VM commands held flock -o /root/perf-vm.lock. Cargo used -j4; parent harnesses used --test-threads=1 and child harnesses RUST_TEST_THREADS=4.
Command:
Further full-action alternating release results on corrected head
2adac15b9a, base8b30062e1c. Each variant has 20 retained samples after 2 warmups; every action is six seconds apart. All percentiles are empirical nearest sample ranks; p99 is the maximum at n=20.HDD, 1,000 incoming links: base p50/p95/p99 = 2766.453/3437.103/3735.269 ms; head = 245.895/300.104/316.500 ms.
SSD, 10 incoming links: base = 78.787/361.574/538.389 ms; head = 41.450/564.818/1020.920 ms. The head p95 and p99 are worse in this small configuration; all outliers are retained. Remaining SSD sizes and 10k tag runs are still running. Final gate outputs for corrected head have now been posted verbatim, including the failed browser gate and its exact-base IME reproduction.
Full-action SSD result, corrected head
2adac15b9aversus base8b30062e1c: 100 incoming links, p50/p95/p99 base 243.457/877.487/3994.580 ms; head 55.582/207.648/262.431 ms. n=20 retained per variant after 2 warmups, alternating order, six-second gaps, release, VM flock held. Both note data and state on /mnt/z4-nvme. This calls the real Engine notes.rename action and recorder. The below-20-ms SSD target remains failed, as does the below-50-ms HDD target (head 54.667 ms p50). No budget or durability requirement has been relaxed. The 1,000-link SSD and 10k tag measurements continue.All six full-action release configurations are now complete for head
2adac15b9aversus base8b30062e1c.Engine::execute("notes.rename") with real action recorder. n=20 retained per variant after 2 warmups; alternating order; six-second gaps. Nearest observed rank percentiles, so p99 is the sample maximum. All outliers retained. HDD data on /mnt/b/hdd-ext4 and state on /mnt/z4-nvme; SSD data and state both on /mnt/z4-nvme. VM flock held.
The 100-link targets remain failed on both disks. The 10-link head has worse p95 in both configurations. These small samples do not establish population tail latency. Tag and storage-control runs continue.
Tag rename across 10,000 notes, final corrected head
2adac15b9aversus base8b30062e1c. Release, real Engine notes.rename-tag action with recorder, cold rooms, VM flock held. Each result is one run, not a percentile estimate. Timing includes polling until done; each run verified all 10,000 new tags and zero old tags. HDD data on /mnt/b/hdd-ext4 with SSD state; SSD data and state on /mnt/z4-nvme.HDD base:
HDD head:
SSD base:
SSD head:
Final full-action measurements for head
2adac15b9a, base8b30062e1c.Release builds on root@10.69.69.63 under flock -o /root/perf-vm.lock. These measurements call Engine::execute("notes.rename") with Registry, NotesPlugin and the real recorder, including action recording; they exclude HTTP. The earlier direct Notes::rename tables measured only a component and are superseded for action latency.
HDD: note data on /mnt/b/hdd-ext4 (ext4 rotational), application state on /mnt/z4-nvme (XFS nonrotational), matching the deployment layout. SSD: note data and state both on /mnt/z4-nvme.
For each size, base/head order alternates every round. Every measured rename is separated from the next by six seconds. Twenty samples per variant remain after two warmups. Percentiles use the nearest observed rank; at n=20, p99 is the maximum. All outliers are retained. This sample size does not establish population tail latency.
The performance targets are not met. Both the 100-link HDD target below 50 ms and SSD target below 20 ms remain failed. The 10-link head also has worse p95 in both storage configurations. No latency budget was raised.
Tag rename across 10,000 notes: one cold-room run per variant and storage configuration, including polling until the job is done. Each run checks 10,000 new tags and zero old tags. These are individual observations, not percentile estimates.
tag rename n=10000 cold_rooms=true elapsed_ms=61464.800tag rename n=10000 cold_rooms=true elapsed_ms=19666.873tag rename n=10000 cold_rooms=true elapsed_ms=54598.392tag rename n=10000 cold_rooms=true elapsed_ms=15095.933Storage control: no application, CRDT, list-row or action-journal work; one SQLite WAL FULL plan commit, an unchanged-file rename, then parallel SQLite effect commit, directory fsync and identity-log fdatasync. Same mounts, 20 samples after two warmups, six-second gaps. This control approximates a small durability workload; it is not a proven lower bound for the application.
The control and real-action traces help distinguish storage cost from application cost; they do not justify claiming either target achieved or that further improvement is impossible. All measurement fixtures and logs remain outside the repository.
Final delivery for issue #659. Pushed branch issue/659-rename-fast at head
2adac15b9a, based on8b30062e1c. Remote branch SHA verified after the push. No PR was opened. Ready for the requested independent review, with failed performance targets and the browser failure listed below.The implementation commits the plan before effects, collects keyed edits into one history transaction, batches list-row writes, waits in parallel for effect history, each affected directory and ids.jsonl, then permits done. Replay resolves moves by note id; undo remains one step. Pure deletion patches retain a keyed marker so replay preserves undo after later typing. Job updates reach clients after their history commit.
Gate results on this head:
Final gate outputs were posted verbatim above under this full head SHA. Selected exact output:
Performance targets remain failed. Real full-action 100-link p50 is 54.667 ms on HDD (target below 50 ms) and 55.582 ms on SSD (target below 20 ms). Base p50 was 235.931 ms and 243.457 ms respectively. The complete alternating 10/100/1,000-link p50/p95/p99 table, 10k tag results, traced commit/sync counts and storage control are in the measurement comments above. The 10-link p95 worsened on head in both storage configurations. No budget was raised.
All logs, traces, fixture scripts and measurement artifacts remain outside the repository. The branch contains product code, tests and a lasting design ADR. The issue remains open.
Starting round 2 on branch issue/659-rename-fast at base
2adac15b9a. Merged origin/dev first: already up to date. I will profile the 100-link SSD rename on the locked perf VM, preserve journal and undo behavior, then run the requested measurements and gates. No PR will be opened.Round 2 finding: the list-row batching is controlled by scheduler timing. In crates/notes/src/meta/jobs.rs each first arrival spawns a task, yields once and drains home.job_rows. While up to 64 rooms prepare in parallel (bulk/fast.rs), that drain can run before all rooms arrive and split one rename into several serial meta_update lock acquisitions and SQLite transactions. I will make the driver own one explicit row group, enqueue each row before acknowledging preparation, and flush the group alongside the existing history and namespace barriers. This keeps publication after the same durability barriers.
The requested perf record run is queued behind other jobs on /root/perf-vm.lock. I will keep the lock requirement and leave their processes alone. No CPU attribution is available yet; this is a code finding, not a measured timing claim.
Round 2 code findings while profiling waits for the shared VM lock:
These are code findings; CPU times and target claims await the locked release profile and alternating measurements. Yjs replay, keyed undo and history durability remain in use. The candidate does not bypass those guarantees with an unjournalled file edit.
Round 2 verification is waiting for shared resources. The required perf VM lock is held by another job, with several jobs queued ahead of this run; the local build-slot wrapper is also waiting behind the active test train. The profile, measurements and gates have been queued without bypassing either lock. This is a temporary verification blocker, not a performance result. No other job has been interrupted.
There is no open PR using issue/659-rename-fast, so the requested final push to that same branch is possible without the forge's open-PR branch restriction. No PR will be created.
Round 2 fmt gate, head
8b6cee0903.Command:
cargo fmt --all -- --checkExit code: 0. Output verbatim (empty):
The heavy gates remain queued in the required build-slot wrapper. No performance claim yet.
Round 2 candidate committed locally at
8b6cee0903. Not pushed yet.The VM base source matches
2adac15and the VM candidate source matches8b6cee0: SHA-256 checks of 328 Rust source and build-configuration files per variant found zero differences. The temporary benchmark dependency and lockfile changes are excluded from that check and will be restored before native gates. Benchmarks and artifacts are outside the repository.The candidate makes list-row grouping explicit, combines the cold room's history row and updates into one SQLite read snapshot, and makes link-span UTF-16 offset calculation linear. It preserves Yjs keyed effects, journal ordering and undo. Fmt passed; the remaining gates and performance measurements have not run yet because the required local build wrapper and perf VM lock are still waiting behind other jobs. I have not interrupted those jobs or bypassed the locks.
Round 2 gate output verbatim: crash and rename regressions, part 1/1. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: clippy, part 1/1. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: workspace attempt 1, failed attachment enumeration, part 1/1. Head
8b6cee0903. Exit code 101.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate finding on
8b6cee0: the first workspace attempt failed at crates/calternal/tests/attachments_crash.rs:129. The helper enumerates an upload temporary file, then unwraps e.metadata() after the server has removed or renamed it. Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }. The full failed output is posted above.The test file SHA-256 is ce704ede23f18076679cabe35e15051c89b0a8aa65ea8875924b50e660b9f792 on both
2adac15and8b6cee0. The round-1 comments already retain this attachment-enumeration failure. No assertion or product code has been changed for it. The next workspace attempt is running, including the new Unicode span regression. I will retain all attempts and obtain three passing full workspace runs.The perf VM remains blocked by the shared lock. Read-only inspection shows its owning process stopped (state T). I will not resume, signal or kill another job; the queued profile still requires that lock to be released externally.
Round 2 gate output verbatim: workspace passing run 1 (attempt 2), part 1/4. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: workspace passing run 1 (attempt 2), part 2/4. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: workspace passing run 1 (attempt 2), part 3/4. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: workspace passing run 1 (attempt 2), part 4/4. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: workspace passing run 2 (attempt 3), part 1/4. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: workspace passing run 2 (attempt 3), part 2/4. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: workspace passing run 2 (attempt 3), part 3/4. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: workspace passing run 2 (attempt 3), part 4/4. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: native notes suite, part 1/2. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: native notes suite, part 2/2. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: workspace passing run 3 (attempt 4), part 1/4. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: workspace passing run 3 (attempt 4), part 2/4. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: workspace passing run 3 (attempt 4), part 3/4. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: workspace passing run 3 (attempt 4), part 4/4. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: browser notes suites, known IME failure, part 1/2. Head
8b6cee0903. Exit code 1.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: browser notes suites, known IME failure, part 2/2. Head
8b6cee0903. Exit code 1.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 browser result on
8b6cee0: 159 passed, 38 skipped, 1 failed. The only failure is Chromium editor.spec.ts:270, remote changes wait while a word is being composed (IME), with the 30-second timeout. The full output is posted above. Tag rename, undo and merge editor-content assertions passed in both Chromium and WebKit.The editor test file has SHA-256 c6f8d52833137b6241d3ee6b2c6061025975ba5f8393041739d9afafbb3556fc on both
2adac15and8b6cee0. Round 1 reproduced this IME failure 3/3 on its exact base; that prior evidence is retained here: #659 (comment). I have not changed or skipped the assertion. The browser gate remains failed.Fmt, clippy with -D warnings, the 15 crash/rename tests, native notes (333 passed; 1 ignored benchmark), and three complete workspace runs passed. The first workspace attempt hit the retained attachment enumeration race; subsequent attempts 2, 3 and 4 passed consecutively. No source changes between these attempts. The queued VM profile, paired measurements and power-loss replay remain outstanding.
Round 2 profiling update: the release build of
8b6cee0succeeded. An initial perf record -g captured 1,257 samples on the SSD, but that recording includes setup and quiet periods and is not the controlled CPU attribution.The controlled-profile harness then rejected perf's acknowledgment bytes before starting its first timed rename (AssertionError in profile.py control()). That failed attempt is discarded. The harness now accepts the acknowledgment token without assuming exact terminator bytes. The VM caps profiling at 750 Hz; the retry requests 750 Hz and 16 timed renames per variant, with events disabled during fixture setup and six-second gaps. No global perf settings have been changed.
The corrected profile and the full alternating benchmark/crash/power-loss sequence are queued under flock -o /root/perf-vm.lock. No product source changed; head remains
8b6cee0903. The local gates and retained browser failure remain as posted.Round 2 storage-layout finding: both the HDD and SSD full-action harnesses put application state on the same SSD. engine_probe.rs constructs state under /mnt/z4-nvme/issue659/state- and passes it to Notes::with_state and Engine::new. The HDD variant changes only the note-data root to /mnt/b/hdd-ext4.
Therefore history.db and the action journal still have the same SSD flush cost in both configurations. Equal HDD/SSD action latency alone does not isolate CPU time. The corrected controlled perf profile will measure CPU work, and the separate fsync/fdatasync trace will measure sync-call waits. Neither has completed yet, so this is a source-backed layout finding, not a timing or impossibility claim. The retry remains queued behind the required VM lock.
Pushed the round-2 candidate to the requested branch issue/659-rename-fast. Head:
8b6cee0903. Verified the remote branch SHA after the push. No PR was opened; no merge or deployment was performed.This is an in-progress result. Fmt, clippy with -D warnings, three full workspace runs, the 15 crash/rename regressions and the native notes suite passed. The initial workspace attachment enumeration race is retained; the following three workspace attempts passed consecutively. Browser notes suites finished with the same retained IME failure: 159 passed, 38 skipped, 1 failed. All gate outputs are posted verbatim above under this head.
The corrected controlled profile, alternating 10/100/1,000-link measurements, 10k tag runs and release crash/power-loss sequence are still queued behind the shared perf VM lock. No target or physical-impossibility claim is made. I am continuing that verification; this is not the finish report.
Controlled SSD release CPU profile, base
2adac15versus candidate8b6cee0. perf record -g, DWARF call stacks, cpu-clock at the VM's 750 Hz cap. Events were enabled only around each of 16 Engine notes.rename actions and disabled during setup and six-second gaps. Both profiles report zero lost samples. Values below are approximate mean CPU milliseconds per rename across all threads, obtained by summing sampled cpu-clock periods and dividing by 16; they are not wall-time components.Candidate inclusive call paths: Room::job_edit about 8.2 ms, Room::fork_at about 4.5 ms, ydoc::fork about 3.8 ms, and ydoc::apply about 4.6 ms. These paths overlap and must not be added together. The profile does not show a CPU win from the first candidate; the proper alternating wall-time comparison is now running and will retain all samples.
The regular rename harness warms its linking rooms and uses the default 60-second room idle timeout, with only six-second gaps. Thus this profile describes predominantly open rooms. History readers and note-file reads contribute about 0.1 ms each in the candidate profile; cold-room savings from the one-snapshot loader must be judged separately, including the 10k tag case.
Next change: when the planned version equals the room's settled current version, edit that document directly and journal one update containing both text edits and a private replay marker. Keep the fork/merge path for stale planned versions. This removes the measured full-document fork/encode/apply cycle while retaining original-version undo and the plan/effect/progress barriers. I will run the crash and power-loss gates again for this path. No target or impossibility claim yet.
The profile-guided follow-up is committed locally as
1326227a23(after40c58b2). The remote branch still has the tested first candidate8b6cee0until the follow-up gates finish.Current-version patches now change the live Yjs text and add a private, per-effect replay marker in one transaction and one journal update. They avoid the measured whole-document fork, encoding, decoding and merge. A plan based on an older version retains the original keyed-writer fork/merge path. Replay accepts both formats and finds the original history version for undo. A new regression replays a paused job after another job has appended text, then undoes both without duplication or loss.
The history writer was another sampled contributor (about 3.2 CPU ms per rename in the first candidate). Its per-effect INSERT previously used Transaction::execute, preparing the same SQL for each note. It now uses prepare_cached on the existing single writer connection, reusing the statement across the effect group. Transaction boundaries and sync ordering are unchanged.
All gates are being run again for
1326227. The first candidate's full alternating measurements and power-loss replay continue as retained evidence. The prepared follow-up release build, profile, complete paired matrix, tag checks and power-loss replay will run afterward within this owned VM lock scope, avoiding another resource queue.The follow-up is now frozen locally at
7976b97a04. The direct path uses the existing round-1 keyed-writer marker, built in a tiny empty document and combined with the live text edits in one journal update. It does not introduce a new replay-marker format. Existing clock-based replay can identify that update even after another job supersedes the private map value. The whole note is still never copied for a current-version patch.This preserves the old replay contract as well as the current crash/undo behavior. The prepared VM sequence also cuts power after effects and namespace barriers, then verifies recovery using the previous
8b6cee0test binary, for forward rename and undo. The normal current-binary K0 through K6 and DONE power-loss matrix still runs in full.Separate sync traces of the first candidate show shared-state waits remain significant. In the two non-initial SSD actions, base fsync/fdatasync interval unions were 15.4 and 20.0 ms;
8b6cee0unions were 16.3 and 22.2 ms. Candidate history WAL calls totalled 11.3 and 15.9 ms; parallel ids.jsonl/directory calls account for the remaining union. These are three-action diagnostic traces with ptrace overhead, not the primary latency sample set. CPU totals across threads cannot be added to these union times, and these observations do not prove a physical lower bound above 20 ms. The complete alternating tables will decide the targets.No gate result from
8b6cee0is being claimed for this new head. The gates and the prepared full release measurement/recovery sequence are being repeated for7976b97. The remote branch remains at8b6cee0until that validation is complete.Round 2 gate output verbatim: follow-up native notes suite, part 1/2. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up native notes suite, part 2/2. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up crash and rename regressions, part 1/1. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up browser notes suites, retained IME failure, part 1/2. Head
7976b97a04. Exit code 1.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up browser notes suites, retained IME failure, part 2/2. Head
7976b97a04. Exit code 1.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
First-candidate alternating release matrix: base
2adac15b9a, candidate8b6cee0903. This is retained evidence for the first candidate, not the final7976b97follow-up.Real Engine notes.rename action with recorder; 20 retained samples per variant after two warmups; base/head order alternates each round; six-second gaps; all outliers retained. Percentiles use the nearest observed sample, so p99 at n=20 is the maximum and does not establish population tail latency. HDD note data: /mnt/b/hdd-ext4; SSD note data and both variants application state: /mnt/z4-nvme. The complete run held flock -o /root/perf-vm.lock.
The first candidate fails both 100-link targets: 57.950 ms HDD p50 and 43.273 ms SSD p50. SSD 1,000-link p50 also regresses (335.961 to 370.122 ms), and the SSD 100-link p99 regresses. No samples have been removed. The measured Yjs fork/apply and history-writer costs are the basis for the
7976b97follow-up, whose full matrix and recovery checks are prepared next. Tag and power-loss results for this first candidate are still running.Round 2 gate output verbatim: follow-up fmt, part 1/1. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up clippy, part 1/1. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up workspace run 1, part 1/4. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up workspace run 1, part 2/4. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up workspace run 1, part 3/4. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up workspace run 1, part 4/4. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up workspace run 2, part 1/4. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up workspace run 2, part 2/4. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up workspace run 2, part 3/4. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up workspace run 2, part 4/4. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up workspace run 3, part 1/4. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up workspace run 3, part 2/4. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up workspace run 3, part 3/4. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: follow-up workspace run 3, part 4/4. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Follow-up candidate pushed on issue/659-rename-fast:
7976b97a04. No PR opened.Controlled release CPU profile on the SSD, base
2adac15against this head: perf record -e cpu-clock -F750 -g --call-graph dwarf,16384, enabled only during each of 16 renames with 100 incoming links. Both profiles ran under the perf VM lock. Rooms were warm; this profile does not establish cold-room performance. All-thread sampled CPU milliseconds per rename, classified by exclusive stack bucket:200 base and 171 head samples; these estimates are coarse and do not add up to wall time because actors overlap. Inclusive job_edit CPU fell from 5.67 to 3.33 ms. The base profile sampled 2.17 ms in fork_at; no full-note fork was sampled in the head profile. The current-version patch edits the live document and adds a tiny keyed marker in the same journalled update. The marker keeps the existing persisted replay format. Stale patches retain the original fork path. A new regression covers replay and undo after another job changes the same note.
Fresh fmt, clippy, three workspace test runs, the 16 rename recovery tests, and the full native notes suite have passed on this exact head; their output is posted above. Browser notes finished with 159 passed, 38 skipped and the one pre-existing Chromium IME failure. The alternating wall-time matrix and power-loss replay are still running; no target claim yet. Heavy contention is producing large outliers, all retained.
Round 2 gate output verbatim: First candidate release crash gate, part 1/1. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: First candidate power-loss gate, part 1/1. Head
8b6cee0903. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Durability finding on head
7976b97a04: the equal HDD/SSD result was not sufficient to exclude storage. The harness changes the notes mount, but both variants keep history and the identity index on the SSD.A separate three-action SSD strace run, outside the primary latency matrix, recorded the following after initial import. Each number is milliseconds; sync union merges intervals across threads to avoid double counting.
Ptrace makes the wall numbers diagnostic, not performance results. The current plan and effect commits still use FULL history durability. Directory and identity barriers overlap with the effect commit. CPU sampling and sync unions cannot simply be added because work overlaps. These observations explain remaining time but do not prove that 20 ms is physically impossible. I have not weakened durability or moved extra syncs into quiet benchmark gaps.
The first candidate
8b6cee0also completed the cold tag rename on 10,000 notes, with all 10,000 new tags and zero old tags checked: HDD base 22,280.613 ms, head 27,209.720 ms; SSD base 30,467.480 ms, head 17,830.617 ms. These single-run figures are retained, not used to claim a reliable tag speedup. The final head is being measured separately.The implementation still starts rooms for cold notes. It now opens history once per room and applies current-version patches directly without copying their full Yjs document. A direct plaintext overwrite for a closed note would also need to preserve its CRDT history and keyed replay state; bypassing those would violate the existing recovery and undo contract. No such bypass was introduced.
Final-head alternating release matrix. Base
2adac15b9a; head7976b97a04. All runs held flock -o /root/perf-vm.lock on root@10.69.69.63. The real Engine notes.rename path was used, with linking rooms warmed before measurement. Both fixtures keep history and identity state on the SSD. Each cell retains 20 observations after two warmups, alternates base/head order each round, and leaves six seconds between actions. No outliers were discarded. Percentiles select the nearest observed value by round((n-1)*p); with this sample size p99 is the maximum and tail estimates are coarse.At 100 links, head p50 is 66.390 ms on the HDD and 29.072 ms on the SSD. Both targets remain unmet. The profile supports a reduction in Yjs CPU, not a proof that the requested targets are physically impossible. Contention affected this run, especially the HDD tails; these measurements are retained as observed.
All retained samples in ascending order, milliseconds:
hdd 10 base: 25.336, 49.111, 49.377, 52.308, 52.362, 58.598, 65.118, 70.262, 70.997, 73.361, 77.588, 78.203, 79.286, 79.690, 85.075, 87.507, 102.542, 108.924, 137.898, 193.621
hdd 10 head: 33.171, 36.822, 42.457, 49.466, 55.526, 55.914, 57.969, 63.836, 66.234, 67.815, 68.094, 68.278, 69.465, 70.982, 77.747, 81.797, 85.124, 119.381, 139.862, 367.308
hdd 100 base: 46.026, 50.368, 53.181, 57.627, 58.040, 60.010, 62.597, 66.156, 68.236, 68.427, 86.889, 95.530, 130.866, 164.834, 197.231, 350.818, 489.926, 792.302, 1130.551, 2769.237
hdd 100 head: 41.132, 45.196, 47.692, 50.213, 55.010, 55.186, 56.377, 59.406, 60.686, 62.004, 66.390, 81.922, 84.129, 91.418, 141.104, 157.986, 973.302, 1176.690, 1792.196, 3546.038
hdd 1000 base: 92.704, 108.701, 115.420, 118.478, 122.171, 128.422, 132.234, 134.061, 135.061, 136.282, 142.501, 144.241, 146.332, 151.108, 153.964, 163.111, 164.683, 217.367, 276.675, 361.641
hdd 1000 head: 83.780, 95.857, 96.795, 97.124, 98.916, 100.372, 103.012, 105.388, 106.125, 110.650, 112.940, 116.869, 119.619, 120.242, 122.680, 125.754, 130.709, 165.527, 171.766, 197.934
ssd 10 base: 17.386, 17.871, 18.635, 19.578, 19.721, 20.158, 21.660, 23.565, 24.312, 25.935, 27.708, 27.983, 28.162, 28.648, 28.896, 31.405, 32.353, 33.921, 35.980, 42.326
ssd 10 head: 16.917, 17.260, 17.435, 17.721, 19.441, 19.563, 20.494, 20.622, 21.710, 22.535, 22.780, 23.493, 23.653, 24.106, 25.889, 26.460, 28.347, 28.559, 29.423, 31.136
ssd 100 base: 24.663, 24.999, 25.225, 25.291, 26.035, 30.319, 30.761, 31.120, 33.066, 34.038, 34.073, 34.094, 34.977, 35.117, 35.591, 37.459, 39.113, 41.158, 56.013, 138.110
ssd 100 head: 20.842, 22.448, 22.451, 23.504, 23.733, 24.020, 24.205, 24.588, 25.526, 26.012, 29.072, 31.389, 32.090, 32.317, 33.086, 34.247, 35.469, 38.977, 40.039, 44.023
ssd 1000 base: 110.525, 113.021, 113.922, 131.058, 146.250, 232.440, 249.069, 250.033, 250.913, 282.071, 284.478, 284.777, 294.724, 301.385, 304.314, 320.903, 324.673, 411.559, 474.585, 556.847
ssd 1000 head: 73.143, 75.219, 111.738, 112.220, 136.597, 154.305, 197.627, 202.106, 215.430, 231.812, 234.489, 236.146, 238.098, 246.307, 246.336, 250.676, 286.423, 301.026, 305.719, 803.264
Final-head cold tag rename on 10,000 notes. Same release Engine harness and perf VM lock as the rename matrix. Base
2adac15; head7976b97a04. One run per cell, so these are individual observations, not percentile estimates. Fixtures begin as imported Markdown files; opening their rooms and establishing history are included. The harness checks job state done, all 10,000 steps, 10,000 notes with newtag and zero with oldtag. Shutdown follows the timer.Cold rooms still use the history and room path; this change does not implement a direct closed-file editing path. The native product source was then verified against the frozen head: 330 source/build files, zero differences. Release crash and power-loss gates are now running.
Verbatim harness output:
Round 2 gate output verbatim: final-head release crash gate, part 1/1. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: final-head power-loss gate, part 1/1. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Round 2 gate output verbatim: final-head previous-reader power-loss gate, part 1/1. Head
7976b97a04. Exit code 0.Command:
Local heavy commands used the required build slot; perf VM runs held flock -o /root/perf-vm.lock. Cargo used -j4 and Playwright used --workers=1.
Idle-room diagnostic, base
2adac15versus head7976b97a04, 100 incoming links. The original release Engine binaries ran in the same owned perf-lock scope after all recovery gates. Each fixture was first materialized by the existing harness; each measured action then waited 75 seconds without commands. The default room idle-close deadline is 60 seconds. Room retirement follows from that code and quiet interval; this diagnostic does not instrument a live room count. Base/head order reverses in the second round.These two observations per cell are a diagnostic, not a percentile estimate. They show why the warm-room profile and matrix must not be presented as closed-note latency. Cold loading remains much more expensive. This head reduces repeated history setup and avoids full-note copies when applying a settled current patch, but it still starts rooms and replays history for closed notes. The direct closed-file journal path requested in the task remains unimplemented. Both warm 100-link targets are also unmet; neither is proven physically impossible.
Verbatim diagnostic output:
Ending this unattended run with a measured partial result. Pushed and verified head
7976b97a04on issue/659-rename-fast, based on2adac15b9a. origin/dev was fetched and already merged at the start. The worktree is clean. No PR was opened; the issue stays open.The changes explicitly batch list rows with the effect barriers, read a cold note's history through one SQLite snapshot, cache the history insert statement, count link-span prefixes once, and edit settled current-version Yjs documents directly with a tiny legacy-compatible replay marker. Stale versions retain fork/merge. A regression covers replay and undo after a later job changes the same note. The durability ordering remains unchanged.
At 100 incoming links, the alternating warm-room matrix measured HDD p50 86.889 to 66.390 ms and SSD p50 34.073 to 29.072 ms. Both targets remain unmet. Sampled all-thread CPU was 16.67 to 14.25 ms, including Yjs 5.08 to 2.25 ms. These are coarse CPU estimates, not serial wall-time components. Both notes-mount configurations keep history on the SSD; equal HDD and SSD timings did not exclude shared storage sync costs. The evidence does not prove either target physically impossible.
Remaining work is explicit: closed notes still start rooms and replay history, and link discovery still scans each affected note. The direct closed-file journal path requested in the task is unimplemented. The idle-room diagnostic shows the remaining cold cost: head 275.150 and 291.419 ms on HDD, 192.483 and 104.617 ms on SSD, two observations per cell after 75 seconds idle. The warm matrix must not be presented as cold-note performance.
Evidence:
Gate output is posted verbatim at these links, all for this frozen head:
The browser gate is not green: Chromium editor.spec.ts:270, remote changes during IME composition, timed out. This failure was previously reproduced on the exact base, and the editor source is unchanged. Tag rename, undo and merge pass in Chromium and WebKit. The failure remains in the recorded output.
Final status output verbatim:
Release recovery output verbatim:
All remote measurements and recovery tests have ended successfully and released the perf lock. Evidence remains outside the repository. This is not a claim that the performance task is complete.
Starting round 3 on branch issue/659-rename-fast, base
7976b97a04. Merging origin/dev first. The merge has one conflict in crates/fsio/src/lib.rs; resolving it before implementing the closed-note path. CLAUDE.md is absent from this worktree and its parent directories; the two-phase design in RENAME-ROOT-CAUSE.md has been read.Merged origin/dev without rebasing. Merge commit:
6116621. The fsio conflict retained both dev's usage tracking and the branch's deferred directory flush.Finding: rename::link_steps sends Cmd::Get for every incoming source and bulk::fast sends JobEdit for every edit. Both start rooms even for closed notes. The links table only has source, target and line, so exact spans were not available. The implementation now adds indexed spans with original bytes and document hashes, and stores complete file images plus valid Yjs updates in the intent plan. A per-note gate covers file edits and room loads; room loads also recover their own unfinished intent before reading the file.
Durability finding: placing an unflushed temporary file could expose a partial image after power loss. The closed path therefore prepares all temporary images, flushes the group before atomic placement, flushes each distinct directory once, then records the Yjs entries and effect receipts in one history transaction. The plan remains durable before all these effects.
Local checks are waiting for the shared build slot. Compilation has also been started on the perf VM under /root/perf-vm.lock.
Closed-path tests now pass on the isolated staging build (staging disks 46% root and 31% HDD, below the 60% limit). The six regressions prove: no linking-room start, normal Yjs history replay, exact-byte undo, imported-note seeding, room-load waiting during a file edit, room-load recovery before the driver, and stale-index fallback preserving outside text. Cached spans now include UTF-16 edit positions as well as byte spans, original link bytes and a document hash.
Native targeted output verbatim:
Checkpoint versions prevent a closed edit from overwriting committed history newer than its file. Existing snapshots are validated once during schema upgrade; rename planning reads the saved checkpoint, never its history log. It hydrates that one saved Yjs snapshot to generate normal update bytes; history entries do not use a new encoding.
The full native gates are running on staging while the local train holds build slots. The perf matrix is queued under /root/perf-vm.lock behind other jobs; it will alternate
7976b97and head for 20 samples at 10, 100 and 1000 links on both notes mounts, with 75 seconds idle each round. No PR, merge or deployment has been performed.Review finding: cold undo can start with the moved note closed. A direct intent for that same note would carry its pre-move pathname, which becomes stale when the namespace step runs first. The planner now keeps every note touched by a namespace move on the room path, including its title edit. Other linking notes retain the closed-file path. A regression starts undo with all rooms closed and verifies old link bytes and the restored hub pathname.
Verification status: fmt and clippy passed. The workspace suite is now running tests on staging; staging is at 46% root and 37% HDD usage. The browser notes gate is queued through the required local build-slot helper and will retain the known Chromium editor.spec.ts:270 IME failure if it reproduces.
Blocked resource: the perf VM lock is still owned by another job that has held it for over two hours. Five waiting lock scopes, including this job's matrix, are visible. No other process was stopped and no lock was bypassed. Source work and native checks are continuing while measurements wait.
Implementation is now frozen for verification at candidate
92d47f7c39on issue/659-rename-fast, after merge6116621. The new cold-undo regression passed in the workspace run, alongside all six earlier closed-path tests. No files outside product code, tests and the lasting ADR were committed. This is a candidate head, not a completed-gates or performance claim; it has not been pushed yet.The driver retains the existing parallel barriers for jobs with only room edits. Closed effects add grouped image flush and guarded placement before their shared history transaction. Once completion is durable, it removes file images and snapshots from the plan while retaining the inverse edits and versions for undo.
The first workspace run caught two failures in crash-hook coverage. The tag crash test returned done instead of pausing, and the repeated process-kill test timed out at K3 before its first kill. Evidence:
339 passed; 2 failed; 1 ignored, withK3 undo=false repeat=0: child did not reach hookand the tag report showingstate: done, done: 84at the expected pause.Cause: the fast runner counted only room receipt preparations when triggering the existing pause hooks. Closed-file preparations return through a different branch, so they were omitted. The hooks now count both room and closed-file preparations. The failing tests and the full gates will be rerun; the initial failed gate will be retained in the record.
Round 3 gate output verbatim: fmt, part 1/1. Head
9c1d4c4b51. Exit code 0.Command:
Round 3 gate output verbatim: clippy, part 1/1. Head
9c1d4c4b51. Exit code 0.Command:
Round 3 gate output verbatim: native notes, part 1/2. Head
9c1d4c4b51. Exit code 0.Command:
Round 3 gate output verbatim: native notes, part 2/2. Head
9c1d4c4b51. Exit code 0.Command:
Round 3 gate output verbatim: release rename crash regressions, part 1/1. Head
9c1d4c4b51. Exit code 0.Command:
Round 3 gate output verbatim: release closed path, part 1/1. Head
9c1d4c4b51. Exit code 0.Command:
Round 3 gate output verbatim: workspace, part 1/4. Head
9c1d4c4b51. Exit code 0.Command:
Round 3 gate output verbatim: workspace, part 2/4. Head
9c1d4c4b51. Exit code 0.Command:
Round 3 gate output verbatim: workspace, part 3/4. Head
9c1d4c4b51. Exit code 0.Command:
Round 3 gate output verbatim: workspace, part 4/4. Head
9c1d4c4b51. Exit code 0.Command:
Round 3 gate output verbatim: debug rename crash regressions, part 1/1. Head
9c1d4c4b51. Exit code 0.Command:
All Rust gates now pass on frozen head
9c1d4c4b51. The initial crash-hook failures are fixed. The final workspace and debug crash outputs have been posted verbatim, alongside fmt, clippy, native notes and release results. Staging source verification found zero differences across all 1,009 tracked files. Staging remains at 46% root and 39% HDD usage.Verbatim final status:
Other successful gates:
Debug crash result:
Release crash result:
The kill matrix now covers nine boundaries for rename and undo, with 20 kills at every boundary. Power-loss replay and the cold matrix remain queued under the perf lock; the browser notes gate remains queued through the local build-slot helper. No latency target is claimed from the Rust gate results.
Power-loss replay finding: all ten rename cuts passed, including before and after the closed-file flush, and the seven original undo cuts passed. The first closed-file undo cut was not reached. The fixture created notes without title metadata, then saved them after rename. Those later metadata edits made undo's historical base stale, so the safety check correctly selected the room merge path.
The power-loss fixture now starts with stable title metadata, matching the process-kill fixture. This makes the closed-file undo hooks reachable without bypassing the stale-version safety check. Only fixture text changed; product code and the performance binary are unchanged. The power-loss matrix will be rerun in a fresh owned directory, with the first attempt retained as evidence.
Round 3 gate output verbatim: power-loss replay, part 1/1. Head
28aad175f8. Exit code 0.Command:
Round 3 gate output verbatim: fmt, part 1/1. Head
28aad175f8. Exit code 0.Command:
Round 3 gate output verbatim: clippy, part 1/1. Head
28aad175f8. Exit code 0.Command:
Round 3 gate output verbatim: release rename crash regressions, part 1/1. Head
28aad175f8. Exit code 0.Command:
Round 3 gate output verbatim: release closed path, part 1/1. Head
28aad175f8. Exit code 0.Command:
Power-loss replay is green on head
28aad175f8: 20/20 synced-prefix cuts pass. This includes CLOSED_BEFORE_FLUSH and CLOSED_AFTER_FLUSH for both rename and undo, plus K0–K6 and completed jobs. The runner used an isolated dm-log-writes loopback filesystem on staging; every owned mapper and loop was detached afterwards. Staging remains at 46% root and 40% HDD usage. The full output is posted verbatim.The final commit only supplies title metadata in the power-loss fixture so undo has a current base and exercises the closed path. Product code is unchanged from
9c1d4c4. Final-head fmt, clippy, release crash regressions and release closed-path outputs are also posted verbatim. The final workspace, native notes and debug crash reruns are continuing. The release performance harness has no registry dependency versions outside the product lockfile and is ready on the perf VM; its lock is still queued.Round 3 gate output verbatim: workspace, part 1/4. Head
28aad175f8. Exit code 0.Command:
Round 3 gate output verbatim: workspace, part 2/4. Head
28aad175f8. Exit code 0.Command:
Round 3 gate output verbatim: workspace, part 3/4. Head
28aad175f8. Exit code 0.Command:
Round 3 gate output verbatim: workspace, part 4/4. Head
28aad175f8. Exit code 0.Command:
Round 3 gate output verbatim: native notes, part 1/2. Head
28aad175f8. Exit code 0.Command:
Round 3 gate output verbatim: native notes, part 2/2. Head
28aad175f8. Exit code 0.Command:
Round 3 gate output verbatim: debug rename crash regressions, part 1/1. Head
28aad175f8. Exit code 0.Command:
All final-head Rust and durability gates pass on
28aad175f8. Full outputs are posted verbatim. Source verification again found zero differences across all 1,009 tracked files.Verbatim status:
The local test train still occupies build slots. Browser notes checks are now also being prepared in an isolated staging runner: the supplied pwenv software-rendering settings are retained, with Debian Mesa and browser paths replacing host-specific Nix paths. It uses the exact frozen source, real server, Chromium and WebKit and --workers=1. This platform difference will be explicit in the result. Staging is at 46% root and 40% HDD before browser setup. The original local gate remains queued for now.
The perf lock has advanced to the next earlier job, but this task's 75-second-idle matrix is still queued. There are no cold latency results to claim yet.
Review found and reproduced a list-title regression for linking notes without an H1. The closed path used h1(...).unwrap_or_default() when queuing its list row, discarding a frontmatter title or filename fallback. A new regression failed with
left: "",right: "Chosen title"after a closed rename; it also covers a filename-only note and verifies no room was opened.The fix uses the existing room::title_of helper for closed snapshots and list rows. It preserves the same H1 → frontmatter → filename rule as rooms. The eight closed-path tests are being rerun, followed by the full gates and the performance binary rebuild. The perf ready marker is paused until that corrected binary is available; no measurements have started, so no sample set is being mixed across heads.
A stronger imported-note race test reproduced an invalid-base failure. Planning a never-opened file returned version 0; if its first room opened and seeded it before the job intent was stored, the room fallback tried to apply file spans to an empty version-0 document. The test failed with
InvalidInput: edits overlap or reach past the end of the note.The closed snapshot now records the unchanged file's initial seed durably under the same per-note gate, without opening a room or replaying history. Planning returns that real seed version. If a room wins later, its normal CRDT patch can fork the valid base and preserve typing. The regression forces this order, inserts text before the planned link, then checks rename, undo and history replay. This is initialization of existing bytes, before any rename effect; the journal-before-effects ordering remains intact.
The initial staging browser gate on
28aad17finished with 160 passed and 38 skipped, including the IME test. That does not claim the pre-existing local/base IME failure is fixed. Browser and native gates will be requalified after this race correction.The room-before-placement regression reproduced a namespace-ordering bug: after writing a foreign Destination.md, opening the linking room rewrote its Hub.md links even though the driver then rejected the destination conflict. The test failed with Destination links versus the original Hub bytes. Recovery now only records an image already placed by the journalled driver; it never applies an unstarted file effect before the namespace check. I also kept the per-note gate alive inside blocking flush/placement operations when a driver is cancelled, and made receipt replay rebuild link metadata from the current saved bytes rather than the original image. Focused regression tests are running before the final frozen-source gate run.
Final frozen source is
082dc0e. All 13 focused closed-path tests pass, including both room-opening orders, destination conflict, cancellation during atomic placement, imported history seeding, exact byte replay/undo, stale indexed spans, fallback titles, and receipt replay preserving later typed links. Full final-source gates are running without source changes during the run. The prescribed local browser notes gate completed: 159 passed, 38 skipped, 1 failed: Chromium editor.spec.ts:270 IME composition, the pre-existing base failure allowed in the task. Final-source staging browser requalification is queued after native gates. Performance is blocked on the shared VM lock, currently held by the contacts657 job with three earlier waiters ahead of this job; I have not interrupted any other job and no performance samples have run yet.Round 3 gate output verbatim: fmt, part 1/1. Head
082dc0efdd. Exit code 0.Command:
Round 3 gate output verbatim: clippy, part 1/1. Head
082dc0efdd. Exit code 0.Command:
Performance blocker evidence: on root@10.69.69.63 the lock owner is flock PID 1586079, waiting on contacts657 pipeline shell PID 1691625. The shell is in stopped state T (wchan do_sig), elapsed about 54 minutes, with a defunct child. Three earlier flock waiters precede this job's PID 1688891. I will not signal, kill, or bypass another job's lock. Native qualification continues on isolated staging; the final binary will remain ready for the locked measurement run when the owner releases it.
Round 3 gate output verbatim: crash-release, part 1/1. Head
082dc0efdd. Exit code 0.Command:
Round 3 gate output verbatim: closed-release, part 1/1. Head
082dc0efdd. Exit code 0.Command:
Round 3 gate output verbatim: power-loss, part 1/1. Head
082dc0efdd. Exit code 0.Command:
On final head
082dc0e, release rename crash regressions pass (16 tests), closed-path release tests pass (13), and power-loss prefix replay passes all 20/20 rename/undo cuts, including CLOSED_BEFORE_FLUSH and CLOSED_AFTER_FLUSH. Full outputs are posted verbatim above. The previous qualification attempt's three native child-spawn ENOENT failures came from rebuilding the same test executable for the new race regression while that suite was still running. Final qualification now uses frozen, hash-verified source and runs each native gate sequentially, with the browser build waiting until the native pipeline finishes.Round 3 gate output verbatim: workspace, part 1/4. Head
082dc0efdd. Exit code 0.Command:
Round 3 gate output verbatim: workspace, part 2/4. Head
082dc0efdd. Exit code 0.Command:
Round 3 gate output verbatim: workspace, part 3/4. Head
082dc0efdd. Exit code 0.Command:
Round 3 gate output verbatim: workspace, part 4/4. Head
082dc0efdd. Exit code 0.Command:
Round 3 gate output verbatim: native-notes, part 1/2. Head
082dc0efdd. Exit code 0.Command:
Round 3 gate output verbatim: native-notes, part 2/2. Head
082dc0efdd. Exit code 0.Command:
Round 3 gate output verbatim: crash-debug, part 1/1. Head
082dc0efdd. Exit code 0.Command:
Final head
082dc0efddnow passes formatting, Clippy with -D warnings, cargo test --workspace, native notes (347 passed, 1 ignored), rename crash regressions debug (16) and release (16), all 13 closed-path regressions in release, and power-loss replay (20/20). Full gate output is posted verbatim in the preceding comments. The final release measurement binary and browser server are being built from the same frozen source. The performance lock remains blocked by the stopped contacts657 shell; no timing claim is being made from warm rooms or another machine.Round 3 gate output verbatim: legacy-crash-release, part 1/1. Head
082dc0efdd. Exit code 0.Command:
Round 3 gate output verbatim: browser-notes-staging, part 1/2. Head
082dc0efdd. Exit code 0.Command:
Round 3 gate output verbatim: browser-notes-staging, part 2/2. Head
082dc0efdd. Exit code 0.Command:
Pushed branch issue/659-rename-fast at
082dc0efdd. Remote branch SHA was checked after the push, and the worktree is clean. Base was7976b97a04; origin/dev was merged first as6116621. No PR or deployment was created.Closed linking notes now use indexed, checked spans and durable file intents. They start no room and replay no history log. Their saved Yjs checkpoint produces an ordinary history update accepted by room load, replay and undo. Open notes still use room edits. Per-note gates cover room loading, file placement and history durability, including cancelled drivers. Thirteen new regressions cover byte replay/undo, both room-opening orders, namespace conflict, stale spans, imported notes and later typing. Two new kill points cover the closed path before flush and after flush before commit.
All required Rust and durability gates passed on this head. Final source hashes matched all 1,009 tracked files. Full output for each gate is pasted verbatim in the preceding gate comments. Final gate process output verbatim:
Native notes output verbatim:
Power-loss replay output verbatim:
The final-head browser notes gate on isolated staging passed in Chromium and WebKit, with one worker. Its complete output is in comments 64491 and 64492. Browser summary verbatim:
The earlier prescribed local browser run reproduced the allowed pre-existing Chromium editor.spec.ts:270 IME timeout: 159 passed, 38 skipped, 1 failed. That run used an intermediate tree. The final-head staging run used the same specifications and pinned browsers with Debian graphics paths; Chromium IME passed there. A queued duplicate local run never acquired a build slot and was cancelled using only its own recorded timeout PID 3832618.
Cold performance qualification remains blocked. Lock owner flock PID 1586079 is waiting on stopped contacts657 shell PID 1691625, state T, which has been stopped for over an hour. Three earlier waiters preceded this job. No 10/100/1,000-link samples or disk-floor profile were obtained, so the latency targets remain unverified. Only this job's queued flock PID 1688891 was cancelled; other jobs were left untouched. The final binary and scripts are retained under /mnt/z4-hdd/rename659-r3 on root@10.69.69.63. Head binary SHA256 is d40e02f5f94db19cc739151201446352a92096a8237a2bf97d9bcf648af40ec5. The prepared run alternates base
7976b97versus this head for 20 samples at each size and disk, with 75 seconds idle before every round, followed by flush-floor measurements and closed-path profiles. It must run under flock -o /root/perf-vm.lock after the blocker is resolved.Starting round 3 measurement on branch issue/659-rename-fast at head
082dc0efdd, comparing against base7976b97a04.Measurement is queued behind the shared perf VM lock. The SSH command requests
flock -o /root/perf-vm.lock; after more than 60 seconds it has produced no lock-acquired output and remains waiting. No perf VM inspection or measurement command has run in this turn, and no other process was touched. I will continue with the queued lock scope when it becomes available.Update: the same
flock -o /root/perf-vm.lockrequest is still waiting after about 11 minutes, with no lock-acquired output. The remote artifact listing has not run and no measurement samples have been collected. I am keeping the request queued and have not inspected or stopped any other job.Update: the perf VM lock request remains queued about 17 minutes after it was started. The shared queue has produced no lock-acquired output, so no performance measurement has run. The existing request remains in place; other jobs have not been inspected or changed.
Update: the perf VM request has been queued for about 25 minutes and is still waiting for
flock -o /root/perf-vm.lock. No remote inventory or measurement has run. I am preserving the queued request and leaving the shared processes and files untouched.Locked artifact inventory completed. The task directory
/mnt/z4-hdd/rename659-r3contains the retained head release test binary, Engine probe, and preparedrename659-perf.py,rename659-floor.py, andrename659-profile.pyscripts.df -hshowed/mnt/z4-hddat 29% used and/mnt/z4-nvmeat 94% used, so new measurement evidence will stay on the HDD mount. The follow-up lock to read the harness is queued.The follow-up perf lock scope for reading the prepared harness has been queued for about 12 minutes without lock-acquired output. The only completed VM scope was the read-only inventory in comment 64544; no harness or measurement command has run. I am keeping the same request queued.
Update: the follow-up
flock -o /root/perf-vm.lockrequest for reading the prepared scripts has now been waiting about 20 minutes. No harness arguments, binary hashes, or measurements have been read in that scope. The earlier inventory is still the only completed remote work in this turn.kayg referenced this issue2026-11-05 23:21:12 +00:00