Files slice 1: Home identity, joined index, and reconcile #1010
Closed
kayg
wants to merge 0 commits from
feat/files-s1-identity into dev
pull from: feat/files-s1-identity
merge into: kayg:dev
kayg:main
kayg:port/tasks-float-2
kayg:fix/train-1116-2
kayg:fix/train-1116-3
kayg:fix/train-1116-1
kayg:fix/flake-1134
kayg:fix/server-1182
kayg:dev
kayg:port/notes-float-3c
kayg:docs/auto-update-ig
kayg:feat/dav-transport
kayg:port/tasks-float-1
kayg:wip/mail1011-sv-order-1116
kayg:fix/flake-1179
kayg:fix/flake-1178
kayg:fix/guards-1153-fsio-split
kayg:fix/guards-1153-notes-split-we
kayg:fix/guards-1153-notes-lib
kayg:fix/guards-1153-notes-home
kayg:fix/guards-1153-ui-primitives
kayg:fix/guards-1153-primitives-e2e
kayg:fix/guards-1153-visibility-doc
kayg:feat/paper-grey-1116
kayg:fix/flake-1165
kayg:fix/flake-1119
kayg:docs/imap-766-plan-v2
kayg:fix/e2e-unique-ports
kayg:t3/paged-search-reconcile-final
kayg:wip/mail1011-final-1115
kayg:docs/tasks-float-port
kayg:perf/editor-first-paint-1c
kayg:feat/imap-notes-fetch
kayg:feat/imap-notes-projection
kayg:feat/imap-notes-readonly
kayg:feat/imap-notes-auth
kayg:feat/imap-notes-server-foundation
kayg:wip/mail1011-txn-ownvocab-1115
kayg:wip/mail1011-txn-novocab-1115
kayg:perf/p1117-final-harness
kayg:perf/single-shot-repeats
kayg:port/tasks-matrix
kayg:wip/mail1011-txn-1115
kayg:fix/static-gates-1155
kayg:feat/files-s1-identity-r7
kayg:fix/files-r7-idle-loop
kayg:fix/daily-train-1152
kayg:port/notes-float
kayg:fix/editor-tables-test-types
kayg:port/notes-float-listscript
kayg:feat/tasks-actions
kayg:port/notes-float-phone-preload
kayg:perf/sound-comparator
kayg:port/notes-float-listscroll
kayg:port/notes-float-budgets
kayg:port/notes-float-suite-fix-b
kayg:port/notes-float-sidebar-fix
kayg:port/notes-float-trim
kayg:port/notes-float-3-lists
kayg:fix/attachments-meta-capability
kayg:docs/carddav-writes-v2-plan
kayg:feat/contacts-companion-pure
kayg:issue/carddav-read-perf-fix-r2
kayg:issue/carddav-read-r2
kayg:port/notes-float-devsync2
kayg:review/calendar-2
kayg:review/switcher-a-pills
kayg:port/notes-float-switcher-a
kayg:port/port-tables-2
kayg:review/switcher-ends
kayg:wip/whiteboard-s1-1114
kayg:port/port-tables
kayg:wip/mail1011-perfneutral
kayg:review/photo-tint
kayg:port/notes-float-shell
kayg:wip/local/collections-db
kayg:wip/local/mail-p1
kayg:wip/local/cold-growth-on-tiering
kayg:wip/local/tiering-v3-s1
kayg:wip/local/wal1051-cap
kayg:wip/local/tiering-v3-s1-resume
kayg:wip/local/index-position-startup-scan
kayg:port/notes-float-flat
kayg:port/notes-float-promote
kayg:wip/handover/mail1011-candidate
kayg:wip/handover/files-s1-candidate
kayg:port/notes-float-shell-only
kayg:port/notes-float-perf
kayg:feat/whiteboard-s1
kayg:feat/tiering-v5
kayg:fix/app-switch-hitch
kayg:wip/local/files-s1-dev-v4-final
kayg:feat/files-s1-dev-v4
kayg:fix/c2-glass-shared
kayg:feat/flat-lists
kayg:wip/handover/whiteboard-s1-resume
kayg:wip/att-lazy-861
kayg:feat/switcher-browse
kayg:wip/att-lazy-860
kayg:feat/tasks-float
kayg:recovered/flat-backup-candidate
kayg:perf/stalls-1054-kc
kayg:land/ai-toolbar
kayg:feat/collections-db
kayg:feat/collections-db-fixes
kayg:codex/mail-1011-redesign-20261111
kayg:fix/ai-toolbar
kayg:backup/macos-vm/st3-head
kayg:perf/trim-candidate-phonestack
kayg:feat/switcher-three
kayg:fix/1051-index-idle-checkpoint
kayg:perf/stalls-1054-kb
kayg:perf/stalls-1054-k
kayg:perf/stalls-1054-r3
kayg:fix/c2-contrast-tail
kayg:perf/stalls-1054-r3-preview
kayg:feat/collections-before
kayg:feat/tiering-v4
kayg:fix/timelog-caret
kayg:wip/local/tasks-actions
kayg:docs/tasks-writes-v2-plan
kayg:st3-r3
kayg:feat/pass8
kayg:review/calendar-2-before-1111
kayg:wip/tiering-v3-cold4
kayg:perf/stalls-1054-r2
kayg:fix/suite-A4
kayg:fix/suite-A5-probe
kayg:fix/suite-A6
kayg:fix/suite-A3
kayg:fix/suite-A2
kayg:fix/suite-A5
kayg:fix/suite-A1
kayg:wip/local/attachments-861-fix
kayg:feat/contrast
kayg:wip/local/ports-861
kayg:storage/wal-checkpoint-off-save-1051
kayg:wip/local/mail-1011-reconcile-20261110
kayg:feat/style-sheet-fixes
kayg:feat/money-round
kayg:perf/stalls-1054
kayg:wip/tiering-v3-cold5
kayg:t3/mail-1011-liveness
kayg:feat/iphone-fixes
kayg:feat/notes-approve
kayg:wip/local/shrow-work
kayg:feat/quickfix
kayg:wip/tiering-v3-cold
kayg:wip/local/shared-row-swipes
kayg:backup/macos-vm/pfx-B
kayg:backup/macos-vm/pfx-C
kayg:backup/macos-vm/pfx-D
kayg:feat/contrast-r1
kayg:feat/tiering-v3-s2-tags
kayg:feat/folder-drop
kayg:t3/photos-s1
kayg:feat/tiering-v3-s1-namespace
kayg:wip/local/photos-s1
kayg:t3/photos-plan-slice-one
kayg:recovered/backup/p1b-61505
kayg:t3/paged-search-reconcile
kayg:t3/smooth-pane-transitions
kayg:t3/index-position-startup-scan
kayg:fix/private-staging-759b-r2
kayg:backup/macos-vm/hk/hk1009/pr877
kayg:backup/macos-vm/hk/hk1009/pr878
kayg:docs/undo-block-ids-plan
kayg:fix/undo-768
kayg:backup/macos-vm/hk/hk1009/pr875
kayg:backup/macos-vm/hk/hk1009/pr904
kayg:proto/block-identity-v7d
kayg:backup/macos-vm/hk/hk1009/pr846
kayg:backup/macos-vm/hk/hk1009/pr860
kayg:backup/macos-vm/hk/hk1009/pr861
kayg:backup/macos-vm/hk/hk1009/pr849
kayg:backup/macos-vm/hk/hk1009/pr848
kayg:backup/macos-vm/hk/hk1009/pr853
kayg:backup/macos-vm/hk/hk1009/pr957
kayg:backup/macos-vm/hk/hk1009/pr893
kayg:backup/macos-vm/hk/hk1009/pr889
kayg:backup/macos-vm/hk/hk1009/pr902
kayg:docs/imap-notes-plan
kayg:docs/quota-plan-2
kayg:fix/parallel-test-flakes
kayg:docs/calendar-backend-v2-plan
kayg:feat/calendar-ical-converter
kayg:backup/macos-vm/hk/hk1009/pr808
kayg:docs/contacts-import-v2-plan
kayg:issue/610-pm-midnight
kayg:feat/calendar-v2-s1-containment
kayg:backup/macos-vm/hk/hk1009/pr854
kayg:backup/macos-vm/hk/hk1009/pr845
kayg:backup/macos-vm/hk/hk1009/pr917
kayg:docs/dav-recorder-v2-plan
kayg:plan/previews-865
kayg:plan/save-log-durable-entry
kayg:backup/macos-vm/hk/hk1009/pr934
kayg:fix/e2e-data-on-ram
kayg:backup/macos-vm/hk/hk1009/pr888
kayg:feat/appwindow3
kayg:feat/appwindow2
kayg:feat/appwindow
kayg:feat/money-p1
kayg:feat/keys-sheet
kayg:review/calendar-2-themes
kayg:feat/smooth-cursor
kayg:fix/float-style
kayg:review/calendar-2-float
kayg:release/2026-11-06-hotfix
kayg:archive/port/rows-drop-code
kayg:archive/port/rows-actions
kayg:archive/port/rows
kayg:scratch/tasks-894-ui-gates
kayg:review/calendar-2-night-wip
kayg:recovered/flaky/toast-reduced
kayg:release/2026-11-05
kayg:archive/flaky/rows-drop-fixed
kayg:archive/flaky/rows-actions
kayg:archive/flaky/rows
kayg:sim/bm15-final
kayg:sim/bm15-bis-932
kayg:sim/bm15-bis-909
kayg:sim/bm15
kayg:sim/bm15-bis-887
kayg:perf/tiering-option-b
kayg:fix/sw-lazy-precache
kayg:archive/plan/save-log-durable-entry
kayg:mock/money-fix2
kayg:archive/fix/e2e-data-on-ram
kayg:mock/appearance-all
kayg:mock/pill-press
kayg:mock/pill-press-mac
kayg:backup/macos-vm/appearance-after
kayg:mock/auto-swipes
kayg:mock/mail-actions
kayg:backup/macos-vm/mock/mail-actions
kayg:mock/money-static
kayg:archive/review/standards-917
kayg:perf/tiering-761-fix
kayg:mock/type-audit
kayg:mock/third-pane
kayg:feat/contacts-import-v2-s1
kayg:perf/executor-hot-path
kayg:archive/port/hidden-blocks
kayg:archive/port/devices
kayg:scratch/executor-on-894
kayg:scratch/executor-spans2
kayg:scratch/executor-spans
kayg:archive/port/rows-drop
kayg:feat/tiering-761-d-scale
kayg:feat/tiering-761-c-index
kayg:feat/tiering-761-b-reader
kayg:archive/review/sharing-pr3-review-9fec3d1f
kayg:perf/ports-lazy-budgets
kayg:feat/tiering-761-a-migration
kayg:archive/review/sharing-pr3-review
kayg:archive/review/sharing-pr3-review-code
kayg:archive/plan/previews-865
kayg:archive/port/port-attachments-3
kayg:archive/port/contacts-merge
kayg:fix/motion-audit-859
kayg:fix/motion-audit-859-mac
kayg:archive/port/port-pickers
kayg:archive/port/port-tables-2
kayg:archive/port/port-tables
kayg:recovered/local/sharing-s1-pr2-room-snapshot-candidate
kayg:archive/fix/parallel-test-flakes-code-minipc01
kayg:docs/imap-766-readonly-slice
kayg:feat/dav-recorder-v3
kayg:research/788-diagnosis
kayg:archive/fix/parallel-test-flakes
kayg:archive/perf/pr792-cold-index-edit
kayg:docs/sharing-slice-1
kayg:recovered/feat/dav-recorder-v2
kayg:recovered/feat/dav-recorder-v2-edd7bbb
kayg:spike/imap-766-s0-cases
kayg:archive/fix/undo-768
kayg:recovered/feat/dav-recorder
kayg:recovered/feat/dav-recorder-901acd4
kayg:feat/contacts-import
kayg:perf/cold-growth-on-764
kayg:perf/cold-growth-on-tiering
kayg:recovered/feat/tasks-set-status
kayg:feat/tasks-move-reorder
kayg:feat/tasks-delete-promote-duplicate
kayg:feat/carddav-writes
kayg:perf/quota-on-tiering
kayg:perf/quota-simple
kayg:perf/cold-growth-on-quota-stack
kayg:recovered/perf/cold-growth-on-tiering
kayg:feat/calendar-identity
kayg:feat/calendar-event-parser
kayg:feat/calendar-props-maps
kayg:port/glass-when-ring
kayg:recovered/feat/tiering-761-s1-wip-8132a84
kayg:recovered/feat/tiering-761-s1-wip-9da4094
kayg:recovered/feat/tiering-761-s1-wip-724512c
kayg:recovered/feat/tiering-761-s1-wip-66e667e
kayg:recovered/feat/tiering-761-s1
kayg:wip/6by32-01-tier-761-s1-pause-20261030
kayg:spike/imap-766-s0
kayg:wip/6by32-02-calternal-pause-20261030
kayg:wip/8by64-01-review-688-pause-20261030
kayg:wip/6by32-01-verify-744-pause-20261030
kayg:wip/6by32-01-verify-742-pause-20261030
kayg:fix/private-staging-759b
kayg:wip/6by32-01-review-748-pause-20261030
kayg:wip/6by32-01-review-733c-pause-20261030
kayg:wip/6by32-01-review-733b-pause-20261030
kayg:review/calendar-month
kayg:wip/local/bm15-trash
kayg:plan/759b-staging
kayg:review/767b-tests
kayg:review/preview-2026-10-29
kayg:docs/tiering-731-plan
kayg:wip/c6b02-review-733d
kayg:wip/c6b02-bm1-full-a
kayg:docs/deploy-plan
kayg:fix/storage-owner-liveness-642
kayg:fix/storage-fix-7
kayg:feat/tiering-731
kayg:wip/tiering-731-first-attempt
kayg:perf/idle-honest-2
kayg:fix/storage-private-tmp-642-dev
kayg:fix/storage-exact-file-quarantine-642
kayg:perf/one-flush-save
kayg:review/calendar-static
kayg:review/indexing-ring
kayg:review/when-field-2
kayg:proto/block-identity-2-review
kayg:proto/block-identity-review
kayg:review/when-field
kayg:issue/tasks-create-ids
kayg:issue/tasks-create
kayg:review/combined
kayg:review/task-polish
kayg:review/top-buttons
kayg:review/q1-q5
kayg:archive/integ325-293
kayg:archive/integ325-ci
kayg:issue/calendar-adr
kayg:archive/old/train/2026-10-23bk2
kayg:archive/old/train/2026-10-23bk
kayg:issue/469-mockup-9a
kayg:issue/smart-tasks-mockup
kayg:issue/469-menus
kayg:issue/652-signout-flake
kayg:issue/652-history-fix7
kayg:issue/652-history-fix6
kayg:archive/old/issue/spring-check-perf
kayg:issue/spring-check-perf
kayg:issue/659-rename-fast
kayg:archive/old/train/2026-10-21ar
kayg:issue/search-hardening-3
kayg:issue/652-history-fix5
kayg:issue/660-port-sheets-glass
kayg:issue/652-history-fix4
kayg:issue/652-history-fix3
kayg:issue/652-history-fix2
kayg:issue/652-history-flake
kayg:train/2026-10-21an
kayg:issue/settings-admin-port
kayg:issue/search-port
kayg:train/2026-10-20am
kayg:issue/storage-split-fix2
kayg:issue/storage-split
kayg:archive/old/issue/folder-ids-fix
kayg:train/2026-10-20al
kayg:archive/old/issue/folder-ids
kayg:train/2026-10-20ak
kayg:issue/tables-mockup
kayg:train/2026-10-19aj
kayg:train/2026-10-19ai
kayg:issue/469-merge-fixes
kayg:issue/sidebar-band
kayg:archive/old/issue/608-settings-spec
kayg:train/2026-10-19ah
kayg:issue/swipe-offscreen
kayg:train/2026-10-19ag
kayg:archive/old/issue/590-nlp-adr
kayg:archive/old/issue/587-event-after-write-2
kayg:train/2026-10-19af
kayg:archive/old/issue/587-event-after-write
kayg:issue/469-pill-room-c
kayg:issue/469-pill-room
kayg:train/2026-10-19ae
kayg:issue/469-narrow-handle
kayg:issue/397-ios-swipe-2
kayg:issue/469-desk-fixes
kayg:archive/old/issue/auto-update-adr
kayg:issue/469-filter-gap
kayg:issue/469-port-1b
kayg:issue/442-opacity-flake
kayg:issue/327-web-fast-3
kayg:archive/old/issue/469-port-1
kayg:issue/469-port-1
kayg:issue/327-web-fast-2
kayg:archive/old/issue/327-web-fast
kayg:archive/old/issue/425-stt-bench-vq1
kayg:archive/old/issue/445-no-bleed
kayg:archive/old/issue/400-swipe-mockup-2
kayg:issue/426-client-review
kayg:issue/426-client-2
kayg:issue/426-client
kayg:archive/old/issue/476-safe-area-lab
kayg:archive/old/issue/445-top-light
kayg:issue/471-blocks-mockup
kayg:archive/old/issue/448-links-app-2
kayg:archive/old/issue/448-links-app
kayg:archive/old/issue/398-cold-links
kayg:issue/434-442-small-2
kayg:issue/434-442-small
kayg:archive/old/issue/398-unload
kayg:archive/old/issue/445-bottom-band
kayg:issue/445-bottom-band
kayg:issue/351-rem-3
kayg:issue/351-rem-2
kayg:issue/351-rem
kayg:archive/old/issue/327-first-note
kayg:issue/395-width-phone
kayg:archive/old/issue/327-typing
kayg:issue/396-ios-edges
kayg:issue/397-ios-swipe
kayg:archive/old/issue/327-notes-index
kayg:issue/345-347-contrast-empty-2
kayg:archive/old/issue/44-arenas
kayg:issue/44-arenas
kayg:archive/integ325
kayg:archive/old/issue/327-perf-harness
kayg:archive/old/issue/44-thp
kayg:issue/44-thp
kayg:archive/old/issue/285-sticky-pills
kayg:archive/old/issue/44-trim-3
kayg:issue/44-trim-3
kayg:archive/old/issue/165-cards
kayg:archive/old/issue/165-picker-2
kayg:archive/old/issue/212-multi-select
No reviewers
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!1010
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/files-s1-identity"
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?
Status (2026-11-10, head
5517ce595)-D warnings, workspace tests and the 1M listing gate pass.Plan
Implement Files slice 1 as a backend Home identity layer over the two real Home roots selected by amended ADR 0062. Each root keeps the same relative folders and its own files; the resolver joins their listings and refuses to serve or reconcile when either expected root is missing, mismatched, or unmounted. No overlay, symlink, hard-link, or content-addressed storage is involved.
Reuse the accepted #641 folder marker contract:
.calternal-idcarries a canonical UUIDv7 through folder renames and moves. Marker collisions are resolved deterministically and recorded; an ambiguous path keeps both real entries. Markdown IDs remain incalternal-idfrontmatter. Other file IDs use an app-managed row plus a portable hidden marker, with no content-hash-only identity inference. Reuse the Notes event/index and watcher behavior through shared APIs where it fits; do not create a second copy of those implementations.The per-user index is rebuildable from durable markers and stores both roots in one logical namespace. First-page listing uses a composite B-tree key and keyset cursor: O(log N + page size). Normal ID and parent lookup is O(log N); a single-row update is O(log N). Reconciliation is O(N) only in background batches with bounded working memory. No request sorts a directory or loads the whole Home.
Failure table
Required gates
cargo test, clippy, and web checksThe account envelope stays 50 million files and 1 PiB logical size. The first-page target remains under 100 ms. Scale fixtures contain metadata only and sparse logical sizes. Results and benchmark artifacts will be posted in PR comments per ADR 0003.
Namespace overlap and implementation path
Reviewing #970 showed that it already owns the shared Files current namespace and the three-root storage contract. The current #1010 draft added a separate
HomeIndexunder Notes metadata and modeled the SSD Home plus state as its two roots, so that draft duplicates the index and does not match ADR 0062.I will make this branch build on #970's
calternal-files::Namespacehistory and remove the separateHomeIndex. The Files resolver will validate SSD Home, HDD Home, and SSD app state, store its index under app state, and reconcile the two Home trees through the same current namespace. #1010 remains targeted atdev; until #970 lands, its commits are ancestors of this branch, so the shared implementation has one source in Git history and the dependent diff can shrink after #970 merges.The current gate table remains pending until this combined implementation has exact-head results. I will keep the existing Notes watcher/index paths shared and report any touched Notes hot-path deltas with the required locked ABAB comparison.
Takeover status (head
46faabb28, merged with devd4b32af94; Rust identical tod00b48b6e)Previous agent stopped on a usage cap. State found: branch had no conflicts with #970 beyond one in
crates/perf/src/scenarios/cold.rs(kept both functions).Fixed a real startup bug (commit
afb3d29b6):WatchEvents::recvcould report the queue closed while a rescan was still pending (the last sender is dropped right after it sends the startup rescan when no watcher is installed). The startup scan then never ran andscan.waithung. This was the cause ofshutdown_settlement_state_machinefailing ~3 of 4 runs on this branch (0 of 3 on dev). Testrescan_sent_just_before_the_inbox_drops_is_delivered(2,000 iterations) added. After the fix: 6 of 6 runs pass.New test #1015 waits on:
legacy_attachment_ids_survive_every_retry_boundary(crates/notes/src/home_files/tests.rs): files written before identity existed get one ID each on first scan, kept after a repeated scan, a restart and a rename.calternal-dev-01-compute02, via~/bin/slot)cargo fmt --all --checkcargo clippy --workspace --all-targets --locked -j4 -- -D warningscargo test --workspace --locked -j4 --no-fail-fastshutdown_settlement_state_machinex6 on fixed headLeftover predecessor unit
files-s1-full-test-3-1af2was stopped (nofiles-s1*units remain on the perf VMs). One load-only timeout incalternal-contacts-actionscrash_after_trash_move_...did not reproduce in 5 isolated runs nor in the next full run (flaky rule: no block).Perf: fresh release binaries (head
d00b48b6e, devd4b32af94, sha256 checked) staged on perf-01; queued behind Mail/p928/Photos on perf-01 with a blockingperf-lock, then perf-02. Plan: 1M listing gate, ABAB x5 (dev legacy layout vs head joined layout) with a dev-copy control each cycle, inside both locks. Results follow in a comment.Perf: ABAB x5 + control, inside both perf locks (perf-01 then perf-02), session 2026-11-09 06:54–07:55Z
Head
d00b48b6e(Rust identical to PR head46faabb28) vs devd4b32af94, release builds, sha256 checked. Dev runs the legacy single-root layout, head runs the joined three-root layout (SSD Home, HDD Home, app state). Per cycle: A1 dev, B1 head, A2 dev, B2 head, then a dev-copy control (same dev binary, copied). 5 cycles, same boot (7a65f072), sizes 1k/10k/100k,--runs 1 --cold-runs 1 --hot-only --gate. Medians of per-arm p50/p95 (n = 10 dev, 10 head, 5 control). Locks released at 07:55Z.Control (dev vs dev-copy) is within about 1% on the cold metrics, so the cold deltas below are not noise.
Scale gate (1M entries,
files-listing-bench, page 50)cold_first_us=104 p50_us=59 p99_us=99 active_map_bytes=53085308 peak_rss_kib=56460. The plan's gate is a first page under 100 ms: pass (about 0.1 ms).Regressions vs dev (they block merge under the no-regression rule)
cold.first_pagep50cold.indexcold.notes_per_scold.disk_writtenstartup.healthzhome.page_bigp50open.api_getp95notes.append.firstnotes.appendp50open.notecold.*runs once per arm, so these are medians of 10 arms; the control's median stays within about 1% of dev.Improvements
home.first_page1k -37%;notes.append.first100k -79%;sync.save_ackp95 100k -41%;sync.round_trip100k -19%; memory flat to -7%.Flat (inside control noise)
home.page,home.page_next,home.page_tag,home.page_title,search.*,sync.durable_write,shutdown,open.api_get.warm,mem.*.Likely cause (not verified)
The cold open now reads and writes the shared current namespace (joined-tree reconcile plus bounded 8,192-row commits) in addition to the Notes discovery dev does, so the first page waits behind extra index writes (+17% bytes written at 100k).
startup.healthz+2 ms is the extra root validation and resolver open.State
Not READY FOR MERGE under the no-perf-regression rule: the cold-path,
home.page_bigandopen.api_getp95 deltas need a fix or kayg's explicit waiver. Everything else is green: fmt, clippy-D warnings, full workspace tests, scale gate, legacy-attachment ID test, settlement flake fixed.Full table (all metrics)
Perf fix design (round 1): why head was slower than dev, and the fix
Profiled on compute02 (directional; the perf VMs decide) with release builds of dev
d4b32af94(legacy layout), #970 head381ce6750(joined layout) and this PR's head46faabb28(joined layout), 10k cold runs, strace on the server.Root cause per metric
cold.first_page,cold.index,cold.notes_per_s,cold.disk_writtenfiles/current.dbinstead of #970's two:current_filesPK,current_files_by_path, the new fullcurrent_files_by_scan_generation, the newcurrent_childrentable and its(parent_key, name_key, id)index. UUIDv7-keyed inserts into extra trees dirty many more pages per 8,192-row commit.pwrite+ 19,717preadoncurrent.dbvs 4,500 + 3,169 for #970 (same 10k Home, same scan code). All other syscall counts (statx, openat, read) matched within 1%.open.api_getp95,home.page_big(100k, hot restart)Home::reconcile_filestakesself.index()once and holds the Home's index mutex for the whole Files walk, including everygetdents/statx/marker read over both trees. Any request needingindex()(note open,path_of, list validation) waits behind it. At 100k the walk is seconds long, so a few requests in each run land on it (p95, not p50).home_files.rsreconcile_files/reconcile_files_paths); matches the shape (p50 flat, p95 4×).startup.healthzFix
page_childrenrange-scanscurrent_files_by_path(path_key, id)from<parent>/; when it meets a descendant<parent>/<child>/…it seeks once past that child's whole subtree.current_children(and its backfill +namespace_schema) is dropped; a database from the earlier draft has them removed once on open.current_files_by_scan_generationbecomes a partial indexWHERE path <> 'Notes' AND path NOT GLOB 'Notes/*'— exactly the predicate of the stale-row query, so the walk still uses it, and Notes writes never touch it. The stale query readsscan_generation < ?(walk generations only grow), a true range.Namespace::commit_scan_page): one WAL sync per page instead of three, and a crash leaves the whole page or none. Unchanged inode evidence is not rewritten.home_files/access.rs). Safe because the walk is the only writer of non-Notes rows and runs one at a time from the watcher loop, while Notes writes only touchNotes/*.mdrows that the walk skips.The first Notes page already comes from
meta.dband never waits for identity assignment; the Files walk starts only after the Notes scan, so nothing here moves onto the first-page path.Big-O, before → after (N = rows in the user's namespace, P = page size, W = rows in one walk page = 256)
page_children)Identity guarantees are unchanged: IDs, markers, inode evidence and the collision journal are written by the same code in the same order; only lock scope and transaction grouping change. Gates to re-run: identity tests (incl. 2,000-iteration rescan,
legacy_attachment_ids_survive_every_retry_boundary), workspace tests/clippy/fmt, the 1M listing gate, and the locked ABAB ×5 with a dev-copy control.Perf round 3: ABAB ×5 with a #970 arm and a dev-copy control (both perf locks, FIFO turn)
Session 2026-11-09 15:56–16:56Z (21:26–22:26 IST), boot
7a65f072(same epoch as the earlier sessions), perf-01 lock viaperf-turn files-1010then perf-02's lock, both released at the end. Per cycle: dev (legacy layout), head (joined layout), #970381ce6750(joined), dev, head, dev-copy control. Sizes 1k/10k/100k,--runs 1 --cold-runs 1 --hot-only --gate; medians of per-arm p50/p95, n = 10 dev, 10 head, 5 #970, 5 control. All 30 arms exited 0. sha256 checked at turn time.0c99d74e9(release built from9520d6fed; the two differ only in a#[cfg(test)]module)d4b32af94(the merge base)startup.healthz: with it gone, healthz is flat at 1k and 100k.1M listing gate
files_listing entries=1000000 page_size=50 cold_first_us=99 p50_us=58 p99_us=85 active_map_bytes=53085308 rss_after_open_kib=56548 peak_rss_kib=56548First page under 100 ms: pass (0.099 ms).
Full table
Verdict after 3 rounds, and a simpler design (stopping the patching here per the 3-round rule)
What the three rounds fixed (in this PR)
1dae71c03)cold.disk_written+16.6% → +7.5% (now = #970)86f2411ba)open.api_getp95 +345% → +128%Notes/*.mdonly to skip themstat(0c99d74e9)startup.healthzflat at 1k/100kWhat still fails, and whose it is
cold.first_page100kcold.index,cold.notes_per_s10k/100kcold.disk_written100khome.page_bigp50 100knotes.append.first100kcold.first_page1k/10ksynchronous=FULL), on the first-page pathcold.index1kopen.api_getp95 100kstartup.healthz10kBecause #1010 is stacked on #970, it can't be ≤ dev on the cold metrics until #970 is. The remaining #1010-only costs are both fixed costs at Home open and start, so the simpler design removes them instead of tuning them:
Simpler design for the rest of #1010
BEGIN … COMMIT(one fsync per Home open instead of ~9; also below #970's 2). Expected: the ~50 ms at 1k/10k goes away,cold.first_page/cold.indexat small sizes ≤ #970.(mtime, ctime, inode)from the last completed walk. At start,statfolders only: a folder whose stamp is unchanged keeps its rows without being listed. Cost goes from O(entries) to O(folders) (the 100k-note fixture has a handful). Watchers cover changes while running, the 15-minute reconcile stays the safety net, and overflow still forces a full walk. This mirrors the Notes warm scan (scan-state.tsv), which already makes hot start cheap.Big-O after: Home open O(1) fsyncs. Hot start O(folders) stats plus O(changed folders × entries). Request latency is independent of Home size while idle detection holds.
Gates for that round: identity tests (incl. the 2,000-iteration rescan and
legacy_attachment_ids_survive_every_retry_boundary), a new test that an unchanged folder is not re-listed and a changed one is, workspace fmt/clippy/tests, the 1M listing gate, and the same ABAB ×5 with #970 and control arms.Dependency: #970 needs its cold identity-load fix (ID-ordered bulk load and/or deferred checkpoint, evidence linked above) before #1010 can be ≤ dev on
cold.*andhome.page_big.Round 4: the simpler design is built (head
018a90d00)Commits since round 3:
69ec4addbperf(files): create the namespace schema in one transaction. One WAL sync per new Home instead of ~9 on the first-page path; none on an up-to-date database.7c7586f87feat(files): restart trusts folder stamps; Files walks run only while quiet.statevery stamped folder (O(folders), no listing). If none changed since the last completed walk, listings are complete at once.018a90d00merges #970's head381ce6750(no content change), so the #970 perf arm is an exact ancestor.Tests added (all pass, 10/10 repeats of the restart set on a loaded host):
Gates on compute02 at
018a90d00:cargo fmt --all --checkcargo clippy -j4 --workspace --all-targets --locked -- -D warningscargo test -j4 --workspace --locked --no-fail-fast69ec4addbalone:cargo test -p calternal-filesThe 1M listing gate and the ABAB ×5 (dev, head, #970, dev-copy control) run in the next
perf-turnslot (queued behind tiering-v3).Perf round 4a: ABAB ×5, dev / head / #970 / dev-copy control (head
018a90d00)Session 2026-11-09 19:41–20:37Z (01:11–02:07 IST), boot
7a65f072(same epoch as rounds 1–3). Plainperf-turn files-1010(FIFO) took perf-01's lock, then the control host took perf-02's; both released at the end. Per cycle: devd4b32af94(legacy), head, #970381ce6750(joined, an exact ancestor of head), dev, head, dev-copy control. Sizes 1k/10k/100k,--runs 1 --cold-runs 1 --hot-only --gate, fixtures generated from the same seed and verified by sha256. Medians of per-arm p50/p95. All 30 arms exited 0.1M listing gate:
files_listing entries=1000000 page_size=50 cold_first_us=101 p50_us=60 p99_us=91. Pass (first page 0.10 ms ≤ 100 ms).#1010 share (head vs #970):
cold.first_page−1.0% / −1.1% / −0.4%,cold.index−0.9% / −0.3% / +1.6%,cold.disk_written+0.2% / −0.1% / +0.1% (1k/10k/100k). The one-transaction schema removed round 3's ~50 ms at 1k/10k.home.page_bigp50 @100k +16% (p95 −5.6%) andhome.pagep50 +6–12%. Per-arm ranges overlap (page_big head 23.6–36.8 ms, #970 22.2–27.0 ms; rank test p≈0.06). The same #970 binary measured page_big at 29.5 ms in round 3 and 25.5 ms here, a swing larger than the share. These requests run in the first seconds after start under continuous load, when the deferred Files walk is still waiting for quiet. The dev-copy control can't size joined-layout noise, so round 4b adds a head-copy control and a second #970 arm per cycle (#970 n=10).Head vs dev stays red on the cold path and on
home.page_big@100k. Those match #970 alone (cold.first_page @100k +105% vs #970 +106%), so #1010 cannot go READY before #970 is ≤ dev. Status: #1010-share flat on cold; list path pending round 4b.Round 4b result and round 5 (head
5517ce595)Round 4b (2026-11-10 00:52–01:47Z, 06:22–07:17 IST; same epoch; plain
perf-turn; 30/30 arms exit 0) added a head-copy control (the same head binary run twice) and a second #970 arm per cycle. 1M listing gate:cold_first_us=101 p50_us=60 p99_us=78, pass.home.page_big@100k, −15% onhome.page@10k and −33% onstartup.healthz@100k. Round 4a's "+16% page_big share" is inside that band; 4b measured +3.9% (p95 −3.2%).cold.index@100k +2.5%,cold.first_page@100k +2.9%,cold.disk_written@100k +0.1% (p≤0.01), andsearch.*/open.api_get.warm@1k +2–6% (p≈0.03–0.08).home.page_big@100k +11% at p=0.08 is not established.Round 5, aimed at those shares:
549871e17perf(files): Notes rows keep #970's table bytes. #1010 had addedkindandscan_generationcolumns to #970's sharedcurrent_files, so every Notes row carried two extra fields through every WAL rewrite. Those move to a Files-onlycurrent_walk_rows(id, kind, seen)(indexed by(seen, id)for the sweep); readers take kind from aLEFT JOIN. Notes puts, cold scans and deletes of Notes-owned rows never touch the side tables. The sweep now excludes exactly the rows Notes owns (SSDNotes/*.md), so a deleted non-Markdown file belowNotes/is swept too. A draft database migrates once.5517ce595perf(notes): only requests and typing mark a Home busy.Home::index()no longer marks activity: it was a CAS loop plus a clock read on every index call, including the cold scan's hot loop.mark()is now a relaxed load and a store at most every 5 ms.Gates on compute02 at
5517ce595:cargo fmt --all --checkcargo clippy -j4 --workspace --all-targets --locked -- -D warningscargo test -j4 --workspace --locked --no-fail-fastOne first-run failure in an unrelated SyncClient durability test passed 10/10 on rerun; filed as #1049 (flaky rule, non-blocking).
Round 5's ABAB (dev, head, #970, head-copy, #970, dev-copy, ×5) is queued on
perf-turn. Status remains #1010-share: cold flat within noise; small shares being re-measured. Head vs dev stays red on what #970 alone costs, so #1010 can't be READY before #970 is ≤ dev.Perf round 5: #1010-share flat (head
5517ce595)Session 2026-11-10 10:09–11:05Z (15:39–16:35 IST), boot
7a65f072(same epoch as every earlier round). Plainperf-turn files-1010(FIFO) took perf-01's lock, then the control host took perf-02's; both released at the end. Per cycle: devd4b32af94(legacy), head, #970381ce6750(an exact ancestor), head-copy, #970, dev-copy; ×5; 1k/10k/100k;--hot-only --gate; same seed-1 fixtures as rounds 4a/4b. All 30 arms exited 0.1M listing gate:
files_listing entries=1000000 page_size=50 cold_first_us=130 p50_us=69 p99_us=101. Pass (first page 0.13 ms ≤ 100 ms).#1010 share (head vs #970), what round 5 targeted:
cold.index@100k +0.8% (pooled 4a/4b had +2.5%, p≤0.01),cold.disk_written@100k +0.0% (was +0.1%),cold.first_page@100k +3.6% (head-copy band −4.4%),home.page_big@100k −6.3%.open.long_note@10k is ~16 ms or ~47 ms in every arm, dev included;search.query@100k swings +100% between dev and dev-copy.startup.healthz: +0.4% / −1.9% / +0.7% share at 1k/10k/100k.Head vs dev stays red only where #970 alone is red (
cold.first_page@100k +107% vs #970 +100%;cold.index,cold.disk_written,home.page_bigandopen.note@100k track #970).Status: #1010-share flat. Not READY: #1010 can only be READY once #970 is ≤ dev (its cold identity-load fix is in progress on the tiering lane). When that lands, I'll merge #970's head and re-run this ABAB.
Round 5 table (medians of per-arm p50/p95)
n arms: dev 5, head 5, head-copy 5, #970 10, dev-copy 5
Dev port plan
I read the landed v4 plan on #1069. It selects the existing dev identity records and list/search indexes; it explicitly drops the v3
files/current.dbprojection, its backfill, and request-path reconciliation.The current #1010 head is based on #970 through merge
018a90d00and importscalternal-files::Namespace/current.dbinto Notes. I am mapping the minimal Home identity and reconcile behavior onto dev's existing identity path, excluding the v3 namespace and database. The result will keep the Home behavior compatible with a later optional location bit in the existing identity record. I will post the final gates and perf table here if they pass; otherwise I will report the first exact failing metric or gate.Dev-native implementation plan
Scope: extend the existing
notes/ids.jsonlreader/writer and in-memory ID/path map with Home-scoped file/folder rows, then port the root validation and bounded reconcile behavior. Legacy records remain Notes-relative and keep their current serialized form. New Home records carry a scope, kind, and optionalhddlocation bit, so the v4 lane can add root selection without a second identity log. Nofiles/current.db, v3 namespace projection, startup database/backfill, or Notes-row side tables.Cost: log recovery stays one O(N + L) pass; identity lookup/update stays expected O(1), with append-only writes. A full Files reconcile is O(N) in bounded background batches and removes stale IDs only after a complete walk. No Files walk holds the Notes index lock over filesystem I/O or runs on a request path.
Gates: fmt, clippy
-D warnings, workspace tests, release build, Files e2e coverage, identity/move crash cases, and cold/warm ABAB ×5 at 1k/10k/100k with dev-copy control bounds. Every measured metric must be at or below its dev-copy bound.Dev-based port status:
feat/files-s1-dev-v4is pushed at4ff4df48677b87d7074e307a562ac9c7f2790bc6, based directly ondev437f9ec8923b3d380506f48a77eb11493ef66fb0. The worktree is clean and the diff has no whitespace errors.The dev-01 gate run is active.
fmtpassed; clippy is waiting for a shared build slot. I have not started the perf turn or taken either perf lock. I will post the full gate/perf table here and mark READY only if every requested gate passes and every perf metric is within the dev-copy bound.Dev-port gate result: not READY
The pushed dev-based candidate is
feat/files-s1-dev-v4at4ff4df48677b87d7074e307a562ac9c7f2790bc6(basedev437f9ec8923b3d380506f48a77eb11493ef66fb0).cargo fmt --all -- --checkcargo test -p calternal-notes --lib tests::home_files:: --locked -j4)cargo clippy --workspace --all-targets --locked -j4 -- -D warningsClippy failures:
crates/notes/src/home_files/identity.rs:76:clippy::too_many_arguments,file_idhas 9 arguments (limit 7).crates/notes/src/home_files/scan.rs:151:clippy::manual_is_multiple_of; replacestate.visited % PAGE_SIZE == 0withstate.visited.is_multiple_of(PAGE_SIZE).crates/notes/src/index.rs:474:clippy::too_many_arguments,set_homehas 11 arguments (limit 7).These are clippy diagnostics promoted to errors by
-D warnings. I stopped the runner at this first failed gate as requested. The interrupted-scan crash test,notes_crash, workspace tests, release build, Files e2e specs, and perf ABAB were not completed; I took no perf locks and did not open a replacement PR. No READY.Tier-neutral identity correction (head
a8770c1ab)I read the updated v5 proposal on #1069. It explicitly keeps tier/location out of identity records and per-row state, so this Files port no longer carries the earlier optional hdd bit.
The Home log, in-memory Home row, and scan rows now contain no tier field; the existing legacy Notes row encoding remains unchanged. A regression check verifies serialized Home rows contain no hdd key. Dev-01 lint, crash, workspace, release, and Files e2e gates are next; no perf locks are held.
Workspace gate failure at head
4920ab0b5The completed first full workspace run reported 576 passed, 6 failed, 6 ignored. Five failures were in existing metadata-retry tests waiting for the Home to release its databases; the sixth was the outside-move lookup timing out. The retry failures are consistent with the new idle Home Files scan loop holding a strong Home reference while it waits, forming a cycle with Home's own background task set.
I added a focused owner-drop regression test at
4920ab0b5and queued its RED run on dev-01. I am fixing the task ownership at its source, then will rerun the final-head gates. Not READY.Home scan ownership fix pushed (head
3a1c144ba)The Files scan task now holds a Weak while waiting on the shared reconcile notification and upgrades only for an active scan. This removes the self-reference between Home's background task set and its idle scanner. The focused regression remains queued on dev-01 against the prior
4920ab0b5head, so verification is still pending.Final-head gate progress (
3a1c144ba)On dev-01,
cargo fmt --all -- --checkandcargo clippy --workspace --all-targets --locked -j4 -- -D warningspass. The interrupted Home-scan recovery test andstorage_crash::kill9_after_ack_during_split_hdd_save_recovers_exact_textalso pass. The focused idle scanner owner-drop regression passes.The previously failing
tests::missing::a_move_outside_is_found_and_relink_repoints_the_linksreproduces alone on this head and times out waiting forMovedafter 5 seconds. I am checking the same case on a dev control and tracing the root-watcher route before changing code. Workspace tests, release, Files e2e, and perf are pending; no perf turn or lock has been taken. Not READY.Outside-move fix queued (candidate
6ed3a765a)The standalone outside-move test failed at
9b81a4cd4, waiting forMovedafter 5 seconds. The root watcher routes a new folder underNotes/only to the Home Files scan; the Notes reconciler receives Markdown paths but not that directory. A move into a just-created folder can therefore miss its destination event while recursive watch installation catches up.The existing Notes reconciler already walks a changed directory, so
6ed3a765aroutes a newly created Notes folder through that path while retaining the Home Files reconcile. Targeted red/green verification is queued on dev-01, together with the clean dev control test. The perf p99 regression test is also queued red at9b81a4cd4; no perf turn or lock has been taken. Not READY.Queue status (2026-11-11 16:15Z)
The dev-01 train is still active. The expected-red p99 summary test and dev-control outside-move test remain queued through
~/bin/slot; neither has produced test output yet. I am preserving their queue position and continuing with the remaining preparation. This candidate is not READY.Queue follow-up (2026-11-11 16:42Z)
The dev-01 train remains active. The expected-red p99 summary test, expected-red
--hot-onlyparser test, and dev-control outside-move test are still waiting through~/bin/slot; no test output has started beyond Nix setup warnings. Candidatefeat/files-s1-dev-v4is atec015478dand is not READY.p99 reporting fix (candidate
a30929b09)The queued expected-red run on
9b81a4cd4failed atstats::tests::medians_of_runs_and_pooled_singles: serializedp99wasNone, expectedSome(101.0). I added p99 toSummaryJSON and the Markdown report ina30929b09. The green rerun is pending; the separate--hot-onlyexpected-red run still uses theec015478dworktree. Not READY.Dev-native continuation (candidate head
492aca339)feat/files-s1-dev-v4is based directly on dev437f9ec89. The port does not need #970'sfiles/current.dbor namespace projection: it extends dev's Notes identity and index structures with Home-scoped rows and bounded reconciliation. The identity record stays tier-neutral, matching #1069; a later lane can add its location bit without coupling this slice to tiering.The reported clippy cases are addressed by grouping file metadata into the existing scan entry, passing a Home row to
set_home, and using.is_multiple_of(); no lint allowance was added for them. The focused perf mode and p99 output are pushed for the requested cold/warm measurements.Final-head gates are being rerun on dev-01 at
492aca339. This candidate is not READY until the crash/workspace/release/e2e gates and the dev-copy-bounded perf matrix are complete.Final-head Rust gates (candidate
492aca339)All Rust gates passed on dev-01 at this exact head:
cargo fmt --all -- --check— passcargo clippy --workspace --all-targets --locked -j4 -- -D warnings— passcargo test --locked -j4 -p calternal-perf --bin calternal-perf -- --test-threads=1— 8 passedcargo test --locked -j4 -p calternal-notes --lib tests::home_files:: -- --test-threads=1— 5 passedcargo test --workspace --locked -j4 --no-fail-fast -- --test-threads=2— 128 test binaries, 1,742 passed, 22 ignored, 0 failedcargo build --release --locked -j4 --bin calternal— pass; SHA-2565623dd637980aa550c3d10e21b805ccd06b68afe6f16eb8992585462485ac4ceThe four-project Files Playwright gate and perf ABAB with dev-copy controls are still pending. This is not READY yet.
Final-head verification progress (candidate
cde28967)The candidate is directly based on dev
1a14e9f10f9776c0002e3be8a38bcf77670537f5. It uses dev's Notes identity/index structures with Home rows and quiet reconciliation; it contains nocurrent.db, namespace projection, tier bit, or split-root dependency. I also read the current tiering plan issue (#1069); this Files slice remains independent of its v5 work.Fresh dev-01 results at
cde28967ffbcd9d95d2aeaa3b85d2eeac570346c:-D warnings: passcalternalbuild and releasecalternal+calternal-perfbuild: passFiles Playwright specs across all four projects and the perf ABAB ×5 remain pending. This candidate is not READY yet.
Status update: feat/files-s1-dev-v4 is rebased directly on current dev
7d6774e44catb30f900589. The rebase preserves dev archive/hidden fixture parameters alongside the focused Home perf mode. Fresh Rust/crash/workspace/release gates and the four Files Playwright projects are queued/running on dev-01. Perf-01 still has an earlier FIFO lane ahead; no perf locks have been taken. Not READY.Queue update (candidate
b30f900589fd9835b38eab9bcb1cd21216fe6d22): the dev-01 traintrain-1112ais active, so the queued Rust gates, Files e2e setup, and dev-control release build have not passed their first~/bin/slotcommand yet. Their worktrees and scripts are intact; no perf turn or lock has been taken. I will resume as soon as the train releases the slots.Runner recovery: the original Rust and e2e systemd units reached their 3-hour runtime cap while still waiting at
~/bin/slot; neither executed a gate. The trap exit markers are not pass evidence (the requiredALL RUST GATES PASSmarker is absent). I restarted Rust, e2e, and the dev-control build with unlimited unit lifetimes; e2e now waits for the replacement Rust unit. The dev-01 train lock is still valid. No perf turn or lock has been taken.Dev-native gate progress (candidate
b30f900589fd9835b38eab9bcb1cd21216fe6d22)The candidate is the clean
feat/files-s1-dev-v4branch directly based on dev7d6774e44c200a5a5fe0c514b92ecaf3b29bda95. The three reported clippy findings are addressed in this port:file_idreceives a borrowed scan entry,set_homereceives&HomeEntry, and the page cadence uses.is_multiple_of(); the hot path adds no allocation and there are no lint allowances. The implementation has nocurrent.db, namespace projection, tier bit, or split-root dependency, so it stays separate from the tiering v5 lane.Fresh dev-01 Rust gates, the four-project Files e2e runner, and the dev control release build are waiting behind the still-active
train-1112alock. The replacement units are running, but no gate output has started yet; earlier trap exit markers are not being counted as passes. This candidate is not READY. Perf binaries/fixtures have not been staged and no perf turn or lock has been taken.Dev-01 queue recheck (2026-11-12 09:12 IST)
The
train-1112alock released at 08:36 IST. Since then all six~/bin/slotholders have remained occupied by other active test/build jobs; the Files Rust runner is still waiting at its firstcargo fmtslot call. The control release build is also queued, and the e2e runner is waiting on Rust. There is no new gate output yet, so this is still not READY. Disk and inode headroom remain above the required floors. I am keeping the runner alive and waiting for a slot.Dev-01 gate progress (candidate
b30f900589fd9835b38eab9bcb1cd21216fe6d22)Fmt, strict workspace Clippy, perf harness tests, Files identity/reconcile tests, and the targeted Notes/storage/capture crash tests have passed. The workspace suite is running now. The dev control release build passed; its SHA-256 is
31fa62913465c7e154e1a5485499bf1ac796313f5708374cc05ebda2bd9bb9e3. The four Files Playwright projects are waiting on the Rust pass marker.No perf binaries or fixtures are staged, and no perf turn or locks are held. The current
origin/devhas advanced from this candidate's base by a single perf-budget-only commit; I will use the current dev comparator for final measurements. This candidate is not READY.Rust gates passed (candidate
b30f900589fd9835b38eab9bcb1cd21216fe6d22)cargo fmt --all -- --checkcargo clippy --workspace --all-targets --locked -j4 -- -D warningscalternalbuildb8f686cb9c7b5bcc74406adc4cd2011236a0c4a08fce4bbf87f79bc3e7d810f0calternal+calternal-perf33ab381d595a8c2d193a002af4f3ab9e345af39ea7e102a64259d52a34b872a3/59fcf39ac13ce40177baa4db4ce2d8fe01eb26350eca16e679d9dfe24d69e2d7The Files Playwright sequence has started with
chromium-1440; the other three projects are pending. Perf is not staged or run yet. This candidate is not READY.Files e2e queue update: the Rust pass marker released the runner, but
chromium-1440is still waiting at~/bin/sloton dev-01; no browser project has emitted results yet. Other Chromium/WebKit work remains active on that VM. I am keeping this run in the shared queue. No perf turn or lock is held. Not READY.Another queue check: as of 11:08 IST, the candidate e2e runner is still at its first
chromium-1440slot request, with no spec output or failure. Dev-01 has active browser workers and no train lock. Rust gates remain green; perf binaries and script are staged, but fixtures are not yet generated and no perf turn/lock is held. Not READY.E2E has now waited about an hour for the first
chromium-1440slot request on dev-01. The unit remains active with no test output or failure; other browser workers are still active. I am keeping the queued run intact. Fixture generation and perf-turn entry remain pending; no perf lock is held. Not READY.The independent candidate is now directly rebased onto current origin/dev
d37e52d84asfeat/files-s1-dev-v4ate8a60f185. I read tiering issue #1069: the v5 plan adds no tier metadata and stays out of the Notes index; this Files branch has nocurrent.db, namespace projection, tier bit, or split-root logic. The queued four-project e2e run on the previous snapshot is active; I will rerun the Files specs on the rebased head, then finish the remaining gates and dev-copy ABAB. Not READY yet.Final-head checkpoint (
e8a60f185b5114a8aa5844a7261487dcd4a94a9e): fmt, strict Clippy, the Files identity/reconcile tests, all three crash filters, workspace tests (1,803 passed, 22 ignored, 0 failed), and the release build passed on dev-01. The Files E2E run passed all four projects: Chromium 1440/390 and WebKit 1440/390;E2E_FINAL_EXIT=0. The release fixture-generator build also passed. I am staging seed-1 fixtures and will post the perf ABAB ×5 table next. Not READY until the dev-copy-bounded perf gate completes.Perf round status (2026-11-12, candidate
e8a60f185)The perf-01 ABAB ×5 completed all 20 arms at 10:17 IST: dev, candidate A, dev-copy, candidate B at 1k/10k/100k. The paired perf-02 hold files-s1-perf02-e8a60f-r2-lock.service has been stopped and is inactive; the perf-01 run unit is also inactive.
The comparison is not green yet. My initial paired-bound analysis reports candidate-over-control failures; I am validating the aggregation and control spread before treating individual tail quantiles as regressions. The same 100k home.page_tag p95 budget is exceeded on dev and candidate, so the per-arm absolute --gate exits are not the dev-copy comparison. Not READY; no replacement PR opened.
Recovery and perf status (2026-11-12)
The candidate was rebased from
be968d9onto currentorigin/dev5fba675, producing head65464c4ed5955369176c77683fde3d10c6853a2e. The tiering v5 issue #1069 is read; the Files candidate keeps the current identity/index path and adds no tier metadata.The only dev-01 gate job lost in the reboot was the earlier Clippy run. Its partial result was discarded, and the post-boot Clippy rerun passed on
c8688c0. I am rerunning the requested gate set on rebased head65464c4through~/bin/slot; new logs and temp data are in the candidate worktree.No valid perf arms have started and no paired perf-02 lock is held. The previous attempt verified its staged hashes, then failed before
ARM_BEGINbecause perf-01 could not NetBird SSH to perf-02; those partial logs are not being used. The FIFO currently reports oldest ticket1794326090-2524256-codex-tiering-cold6-resume-20261110as alive, but PID2524256now identifies as[kworker/0:2-wg-crypt-wt0]. PID reuse leaves that dead ticket ahead of the queue. I am keeping the Files measurement behind the FIFO and will start the perf-02 partner lock only once the paired run begins.Post-rebase gate update (2026-11-12)
Candidate branch
codex/files-s1-gates-20261112is now at65464c4ed5955369176c77683fde3d10c6853a2e, directly on currentorigin/dev5fba67585db3cb9c7934d7d83f9143a0f64dcf63. The only intervening dev commit adds preview scripts; the released candidate, dev comparator and perf harness hashes remain unchanged. The candidate stays compatible with tiering v5: nocurrent.db, namespace projection or tier metadata.cargo fmt --all -- --checkthrough~/bin/slotcargo clippy --workspace --all-targets --locked -j4 -- -D warningsthrough~/bin/slot~/bin/slotcargo test --workspace --locked -j4through~/bin/slotcargo build -p calternal --bin calternal --locked -j4through~/bin/slotcargo build --workspace --release --locked -j4through~/bin/slotThe first workspace attempt used a TMPDIR whose Nix-generated
nix-shell.*suffix made the admin Unix-socket fallback exceedSUN_LEN. The final workspace run used a short detached Git worktree and set TMPDIR inside the Nix shell; the suite passed. Gate logs and temp data remain in the two candidate worktrees.Perf has not started: no perf arms are valid and no perf-02 lock is held. The previous attempt stopped before
ARM_BEGINbecause perf-01 could not NetBird SSH to perf-02. The fresh driver now waits for the control host to acquire and confirm the paired lock after perf-turn grants the FIFO turn. The queue still has oldest ticket1794326090-2524256-codex-tiering-cold6-resume-20261110listed as alive, but PID2524256currently identifies as[kworker/0:2-wg-crypt-wt0]; PID reuse keeps that dead Tiering ticket ahead of the line. The Tiering lane owner/orchestrator needs to clear that stale entry for the FIFO to advance. Files is not READY until the dev-copy-bounded ABAB finishes.Post-reboot gate and perf update (2026-11-12)
Candidate branch
codex/files-s1-gates-20261112is now atec0b1043ff26f66e2556d53bb58f927fb10942ca, directly based onorigin/dev5fba67585db3cb9c7934d7d83f9143a0f64dcf63. The only commit after implementation head65464c4adds the Files Playwright regression spec; the measured server binary is unchanged.The Clippy job interrupted by the dev-01 outage had no final marker, so its partial output is discarded. The fresh rerun passed. Fmt, strict Clippy, crash tests, debug and release builds, and the full workspace retry (
CARGO_EXIT=0,GATE_EXIT=0) all pass. The correct Files e2e spec now exercises an external Home note move and browser read; it passed 4/4 across Chromium 1440/390 and WebKit 1440/390. The earlier 30-pass/14-skip run selected unrelated Notes specs and is not being counted as the Files e2e gate.Perf ticket
1794514975-3786136-files-s1-c8688c-abab-postboot-r1completed all 20 arms (dev, candidate A, dev-copy, candidate B ×5) at 1k/10k/100k; every arm and the driver exited 0. The paired perf-02 unit is stopped. I am comparing every measured metric against the same-session dev-copy control bounds now; no READY decision until that table is complete.Files slice 1 r6 verdict: FAIL
PR #1010 is still based on
devat head5517ce595a09a8f949d2b33aff970e373c9d150e. The measured candidate source was1609d3c54dc8b341846f9d68addc362784c7e2b7and remains unpushed. Its release binary SHA-256 is5fe8790e40bdbaa7ead6bc6a9014360ba1837a81d2ca01d96f6a4a40a0d5c18b.Recorded functional gates on the candidate:
cargo fmt --all -- --check: exit 0.cargo clippy --workspace --all-targets --locked -j4 -- -D warnings: exit 0.cargo test -p calternal --test notes_crash --locked -j4andcargo test -p calternal-notes --lib interrupted_home_scan_keeps_stale_rows_for_restart_reconcile --locked -j4: exit 0.cargo test --workspace --locked -j4 --no-fail-fast -- --test-threads=2: exit 0.cargo build --workspace --release --locked -j4: exit 0.bunx playwright test e2e/home-files-identity.spec.ts --project=chromium-1440 --project=chromium-390 --project=webkit-1440 --project=webkit-390 --workers=1: 4 passed.Perf r6:
~/bin/perf-turncompleted five paired ABAB rounds at 1k, 10k and 100k. All arm invocations exited 0, with noFailed:markers. The candidate upper 95% bootstrap bound had to be at or below the dev-copy upper bound for every metric and quantile. The comparison used 20,000 bootstrap resamples and 10 candidate / 5 control ratio samples. Lower is better;cold.notes_per_sis inverted.cold.disk_writtenp50/p95/p99: 1.0030 vs 0.9977;open.notep50: 1.2207 vs 1.0545;sync.save_ackp99: 1.5450 vs 1.2118cold.disk_writtenp50/p95/p99: 1.0016 vs 1.0013;open.api_getp95: 1.2532 vs 1.2011;sync.save_ackp99: 2.6767 vs 1.7143cold.indexp50/p95/p99: 1.0223 vs 1.0119;home.page_bigp95/p99: 1.3982 vs 0.8835;search.prefixp99: 4.4292 vs 2.1253;search.queryp95: 3.4167 vs 1.5882The leading cause to investigate is contention from the initial Home identity scan: startup launches the scan and it enumerates Home entries while the benchmark exercises search, Home pages, open and save paths. The measured results do not isolate that scan as the sole cause, so this is a hypothesis rather than a confirmed attribution.
The perf-02 r6 hold is inactive. The FIFO currently has an
nfa-fc1ticket alive, so no r7 or further Files perf ticket was queued. This candidate is not READY because the perf gate failed; no push was made.Full r6 comparison table
Bootstrap resamples: 20000; paired rounds: 5; candidate/control ratio samples: 10/5.
Ratios normalize lower-is-better metrics as candidate/control; cold.notes_per_s is inverted.
Gate: candidate upper 95% bootstrap bound must be at or below the dev-copy control upper bound for every metric and quantile.
FAIL: 111 comparisons exceeded the dev-copy bound.
Files handover, 13 Nov 2026 (written by the orchestrator; the lane was stopped before it could post its own)
Heads
feat/files-s1-identity:5517ce595a09. Not READY.1609d3c54dc8b341846f9d68addc362784c7e2b7, onorigin/dev5fba67585: it was only on dev-01 (codex/files-s1-gates-20261112, worktree~/Developer/Worktrees/f1). I pushed it aswip/handover/files-s1-candidate. Release binary SHA-2565fe8790e…5c18b.Gates on the candidate. All pass: fmt, strict clippy, crash tests, workspace tests, release build, and the Files e2e
home-files-identity.spec.ts(4/4 across the four Playwright projects). Details: comment 95008.Perf r6: FAIL.
search.prefixp99: 4.43 vs 2.13sync.save_ackp99: 2.68 vs 1.71cold.disk_writtenopen.notePerf method.
~/bin/perf-turnon perf-01, five paired ABAB rounds at 1k/10k/100k, with perf-02's lock held as a quiet pair.files-s1-perf-c8688c-*worktrees on dev-01 and perf-01.Next steps
Tiering v5 compatibility is kept: there's no tier metadata in this slice.
Superseded by #1117 (
feat/files-s1-identity-r7, head934ef1c36). It is the tested candidate1609d3c54rebased onto dev796d80cba, plus the r7 fix: the Home Files walk now runs only in idle time (every action counts as use, pauses end at once on shutdown, onesyncfsper page). It is not a fast-forward of this branch, so it is a new PR. Profile and gates are on #1117; perf r7 is queued in the FIFO. This PR's branch was not changed.Superseded by #1117 (identity-walk contention fixed; rebased on dev
796d80cba). Closing; the old head stays onfeat/files-s1-identity.Pull request closed