Stable ids for folders #641
Open
opened 2026-10-20 08:19:43 +00:00 by kayg
·
1057 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#641
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?
Give every folder in a Home a stable unique id that survives app and external renames or moves. Store the id on disk in a hidden marker and rebuild a per-user id-to-path index from files. Detect copied markers, preserve the original id deterministically, and journal replacements. Cover folder addressing, Trash and restore, malformed or deleted markers, Unicode and case-only names, self-descendant moves, concurrency, and 100,000-folder startup cost.
Branch: issue/folder-ids. Base SHA:
b5a3aac970.Design: Each folder below a Home carries a hidden
.calternal-idmarker with an id in the same format and generated the same way as a notecalternal-id. Create markers with exclusive placement; keep them out of the UI and Files listings. The marker travels with the folder during outside moves.The server maintains a rebuildable per-user id-to-current-path index. Watcher events, launch scans, and app operations feed the same sync and journal path. A folder with no valid marker gets a fresh id. If a marker is duplicated, keep the id at the oldest folder by creation time and then path, assign a fresh id to each copy, and journal the replacement. Looking up a folder by id must work after restart, and rebuilding from disk must reproduce the same ids. Expose folder ids in URLs without changing note behavior.
Cover case-only renames, NFC and NFD names, refusing a move into a folder's own child, Trash and restore retaining the id, deleted markers receiving a new journaled id, garbage markers treated as missing, concurrent app and watcher renames, and startup cost for 100,000 folders against the five percent budget.
Gates: cargo fmt --check; cargo clippy --workspace --all-targets -- -D warnings; cargo test --workspace; plus a perf number for the 100k-folder scan on the perf VM (root@10.69.69.63, see crates/perf and docs/perf/README.md for how to run; run on the SSD path and also on the HDD at /mnt/hdd if mounted there, and report both).
Finding: this checkout has a persistent note index but no folder index or Files API.
crates/notes/src/home.rsloadsnotes/ids.jsonl;crates/notes/src/watch.rswatchesNotes/;crates/notes/src/scan.rsdiscovers note files there. I will add a separate per-Home folder index and ID-addressed folder actions, without changing note identity behavior.Build environment finding: the first workspace check stopped before Rust type checking with
linker cc not found;cc,gcc, andclangare not on PATH. An existing GCC 16.2.0 compiler is available in the Nix store, so I am setting Cargo's C compiler and linker to that existing path for local gates. No package was installed.The workspace check now reaches the native dependency build but stops at
openssl-sys:pkg-configis not on PATH and the crate cannot find OpenSSL. Both tools and OpenSSL 3.5.9 are already in the Nix store; I will point the build to those existing paths for the gates.Finding: Homes also contain reserved server storage at the lowercase top-level paths
notes,search,attachments, andbackdrops. Indexing those as shareable folders would add identity markers to private indexes and attachment object storage. The folder scan therefore skips those four reserved paths while indexing visibleNotes,Trash, and the rest of the user tree. This scopes “folder in a Home” to user content.Finding: Stable IDs survived the folder change cases checked so far. Evidence:
cargo test -p calternal-folders -j4passed all 11 tests, including duplicate marker repair, removed and invalid markers, case-only and NFC/NFD renames, Trash and restore, index reload, and a simultaneous app move and scan. Exact result:test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s.Finding: The first full workspace run exposed an existing attachment test helper that counts every disk file under Photos and Documents as visible. Starting the real server now adds folder markers there, so
kill_nine_mid_upload_leaves_nothing_half_writtenfailed withPhotos/.calternal-id,Photos/2026/.calternal-id, andPhotos/2026/2026-10-17/.calternal-idin its file list. The attachment route already rejects hidden path segments (crates/attachments/src/serve.rs,servable); I’m updating the test file walkers to apply that same visibility rule, and the Notes watcher now ignores marker events.Finding: Marker files in Photos and Documents must remain private metadata. The attachment test walkers now omit
.calternal-id, matching the hidden path rule already enforced by the attachment route, and the Notes watcher ignores these markers. Evidence: finalcargo test --workspaceexited 0; its 60 result lines total 610 passed, 0 failed, and 2 ignored. The folder crate result was exactly:test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.32s.Finding: The perf VM is currently occupied by another run. Evidence: my read-only check and source transfer are waiting on
flock -o /root/perf-vm.lock; I have not started a competing run or accessed the Home outside the lock. The SSD and optional/mnt/hddmeasurements are queued to run as soon as the lock is released.Finding:
/mnt/hddis not mounted on the perf VM, so there is no separate HDD volume to measure. Evidence from the lock-protected check:df -h /anddf -h /mnt/hddboth report/dev/sda1;mountpoint /mnt/hddsays it is not a mountpoint. The SSD run will use/tmpon/dev/sda1.Finding: The 100,000-folder SSD measurement completed on
/dev/sda1. Exact output:folders_expected=100001 folders_walked=100001 folders_indexed=100001 folders_rescanned=100001 baseline_walk_ms=764.6 first_page_ms=0.4 initial_scan_ms=11897.3 marker_rescan_ms=3196.4 rescan_over_baseline_percent=318.0andHDD_NOT_MOUNTED=/mnt/hdd. The first page returned with the scan in progress; the 11.9 second initial scan runs in the background, and paging reportsincompleteuntil it finishes. The HDD run was skipped because/mnt/hddis not mounted.Finished on branch
issue/folder-idsat headd6d38d9673f1fb96f78fd4e13c25e58c1ec86762. The branch is pushed and the worktree is clean. No PR was opened; the issue remains open.Perf VM, SSD (
/dev/sda1):The first page returned in 0.4 ms while the initial scan ran in the background; pages report
incompleteuntil it finishes. The initial marker scan took 11.9 seconds./mnt/hddis not a separate mount, so no HDD run was possible.Gates:
cargo fmt --checkcargo clippy --workspace --all-targets -- -D warningsoutput:cargo test --workspaceexited 0. Complete output follows verbatim:Starting independent review of issue #641. Branch: issue/folder-ids. Base: origin/dev at
b5a3aac970. Review head:d6d38d9673.P1 data loss: an existing file named
.calternal-idis replaced if its contents are not a valid UUID. Incrates/folders/src/scan.rs:47-70, invalid bytes are passed toput_marker;put_markerat line 272 supplies those exact bytes as the expected old version, allowingwrite_unless_changedto exchange them for the generated marker. Exclusive placement protects only the missing-file case. The code cannot distinguish a garbage marker from a user file with this name, so scanning destroys the latter and violates the file safety contract. Evidence: the temporaryzz_review_existing_garbage_marker_is_replacedtest passed and confirmed thatpersonal file contentsbecame a 37-byte marker.P1 writes outside the Home: the scan accepts a symlink as the Home root.
Home::opencallscreate_dir_allon the root path without rejecting a symlink (crates/folders/src/lib.rs:275);scan::foldersstarts walking that path (crates/folders/src/scan.rs:182) and later marker writes useroot.join(relative_path)(scan.rs:64). A Home path redirected to another directory therefore causes hidden marker files and index data to be written there. The traversal also has no device check for mounted directories. Evidence: temporary testzz_review_symlinked_home_root_gets_markers_outside_home_pathpassed and found.calternal-idin the external target.P2 fallback detection gap:
scan::snapshotrecords only marker length and modification time for each relative folder path (crates/folders/src/scan.rs:167-177). Replacing a marker with another 37-byte UUID and restoring its old modification time leaves the snapshot equal, sopollnever requests reconciliation (crates/folders/src/lib.rs:246-253). A copied marker can therefore remain duplicated indefinitely when the filesystem watcher is unavailable. The snapshot needs a replacement-sensitive identity such as device and inode, or a content check when metadata is ambiguous.Fallback poll CPU measurement:
zz_review_poll_cpu_over_sixty_seconds_for_100k_foldersran the productionscan::snapshotfour times at the production 15 second interval. Output:review_poll_folders=100001 elapsed_seconds=65.83 process_cpu_seconds=5.83 average_cpu_percent=8.86; test result:5 passed; 0 failedfor the poll test binary. Each poll is bounded and sequential, but the idle fallback costs about 8.86% of one CPU over this interval on the perf VM.P1 folder moved outside the Home:
trashtrusts theTrashpath after scanning, but the scanner ignores symlink directories.ensure_trash_lockedcallscreate_dir_all(root/Trash)andensure_marker(root/Trash)without checking the path (crates/folders/src/lib.rs:528-544), thentrashrenames the selected folder toroot/Trash/<id>(lib.rs:490-512). If a user createsHome/Trashas a symlink to another writable directory, the app writes a marker there and moves the user folder out of the Home. Evidence: temporary testzz_review_trash_symlink_moves_user_folder_outside_homepassed; the source folder disappeared and the external target contained it.P2 warm scan cost: every call to
Home::reconcilecallsscan::run(crates/folders/src/lib.rs:638-641), andscan::runcallsread_markerfor every folder candidate (crates/folders/src/scan.rs:42-48).read_markeropens the marker and reads its bytes (scan.rs:234-250), even when the saved index and marker are unchanged. The index stores only ID and path, so there is no warm scan shortcut. At 100,000 folders this adds 100,000 opens and small reads to the recursive walk. Persist directory and marker signatures (device, inode, size and time) and trust the cached ID when the same directory and marker are unchanged; read marker contents only for new or changed folders.Independent warm-scan experiment (Rust 1.99, staging filesystem, 100,001 folders): verbatim output:
review_warm_scan_folders=100001 raw_walk_ms=2169.9 marker_scan_ms=3976.6,2242.9,2289.6 marker_scan_mean_ms=2836.4 overhead_percent=30.7. The repeated warm passes averaged 2,266.3 ms, about 4.4% over the 2,169.9 ms raw walk; the first pass was 3,976.6 ms. This does not reproduce the reported 318% overhead on this filesystem. Code inspection confirmsscan::runcallsread_markerfor every enumerated folder on every reconciliation (100,001 opens/reads in this run). Cache index rows with directory and marker device/inode/size/mtime signatures, and read marker contents only for new or changed signatures; include marker inode so same-size replacements with restored mtime are detected.P2 a read-only folder can stall the whole Home scan: if a folder has no valid marker,
scan::runtries to write one and propagates the permission error (crates/folders/src/scan.rs:64-70).Home::reconcilethen returns before saving any rows (crates/folders/src/lib.rs:638); startup still signals ready whilescan_incompletestays true (lib.rs:322-325). The marker is not written to the read-only folder, but on a cold Home one such folder can keep the entire listing empty and incomplete until a later scan succeeds. Handle an unwritable folder per entry so other folders can still be indexed.Follow-up: the targeted test was rerun as the unprivileged
nobodyuser. Verbatim output:test zz_review_read_only_folder_stops_home_scan_without_writing_marker ... ok;test result: ok. 1 passed; 0 failed. It confirmed the scan reports incomplete and does not create a marker in the read-only folder. The earlier root run skipped this assertion because root can write through mode 0555.Validation is waiting on shared compute: the local build-slot wrapper is queued behind an active train, and the perf VM run is queued for
/root/perf-vm.lock. I have not run cargo outside those controls.cargo fmt --checkhas passed; I will post the scratch evidence and remaining gate output when the locks release.P2 replacement events are lost if journaling fails.
reconcilesaves the new ID-to-path rows first, then callsrecord(crates/folders/src/lib.rs:652-662).recordonly logs when the recorder returns an error and drops the event (lib.rs:666-673); the next scan sees the already-saved rows and has no replacement event to retry. The ID change is visible, but the requiredfolders.id_replacedjournal entry is missing. Keep pending events durably until the recorder accepts them, or make the index update and event write recoverable as one operation.P1 app data can overwrite a file outside the Home:
Home::openplaces the folder index atroot/notes/folders.jsonlwithout checking whethernotesis a symlink (crates/folders/src/lib.rs:276-278). A scan that finds folders then saves rows throughindex::save, which callscreate_dir_allandwrite_atomicon that path (crates/folders/src/index.rs:141-157). IfHome/notespoints to a writable directory outside the Home, an existingfolders.jsonlthere is replaced. Evidence: temporary testzz_review_metadata_symlink_overwrites_file_outside_homepassed and confirmed the external file contents changed.The local safety test acquired a build slot but could not link because this host has no
cc(linkerccnot found). I am checking the perf VM toolchain and available build volume, then will run the remaining Cargo checks there under/root/perf-vm.lockif it has the compiler and space.Independent review of issue #641
Reviewed head
d6d38d9673f1fb96f78fd4e13c25e58c1ec86762against the base SHA recorded at start,b5a3aac9709ee172f6317ce034930bf3ab484c58, and ADR 0061/0016.scan::runreplaces any existing invalid.calternal-id. The safety test changedpersonal file contentsinto a 37-byte UUID. Compare-before-write protects against races, but does not preserve an unrelated user file at that name.Home::openfollows a symlink atusers/<id>; aTrashsymlink redirects a folder move; and anotessymlink redirectsfolders.jsonlwrites. Three scratch tests confirmed writes or moves outside Home. The scanner also has no device boundary for mount points.scan::runreads every marker on each reconciliation. A direct staging benchmark measured raw walk 2,169.9 ms and scan passes 3,976.6, 2,242.9, 2,289.6 ms. The repeated warm passes averaged 2,266.3 ms (4.4% above this raw walk); this did not reproduce the reported 318%. Cache the index with directory and marker device/inode/size/mtime signatures, and read marker contents only for changed signatures.nobodyconfirmed a missing marker is not written, but one read-only folder leaves the scan incomplete.Duplicate repair kept the oldest folder's ID after two copies and renames. Existing race, self-child, case and Unicode tests passed. Listener bind precedes background folder opening, satisfying ADR 0016. Merge verdict: do not merge until both P1 data-safety findings are fixed. P3: none.
Gate output (verbatim excerpts; gates ran on staging with Rust 1.99):
The first workspace test attempt used a read-only temporary source mount and failed the origin startup test before origin validation; the writable temporary checkout rerun passed. Local Cargo compilation lacked
cc; all requested build/test gates completed on staging. Scratch tests and temporary build data were removed; the worktree is clean.Starting folder-ids-fix. Branch: issue/folder-ids-fix. Base SHA:
d6d38d9673. Read the independent review, scratch test findings, and gate evidence on this issue through comment 60718. scripts/fj is absent in this checkout, so issue access uses the repository API.Safety choice: leave foreign .calternal-id files at their original names with every byte intact; keep an index-only identity and journal a health note. Moving a foreign file would change a user-selected name and is unnecessary. Home-relative handle operations will replace path-based writes and moves.
The perf VM currently has an active storage-split calternal-perf process and waiting flock jobs. Its root filesystem reports 98% use. No competing measurement has been started.
Data-safety fixes and regression evidence: folder IO now uses an opened Home handle. Linux lookup uses RESOLVE_BENEATH | RESOLVE_NO_SYMLINKS; the fallback walks without following symlinks. The Home root itself is opened by a no-follow walk from /. Directory discovery skips symlinks and entries on other devices. Trash and restore resolve both parents through the Home handle and rename with NOREPLACE. Metadata paths are opened beneath Home before use.
Malformed marker bytes stay at their original name. IDs for unreadable or unwritable markers stay in the index with folders.health queued durably. Duplicate IDs use an exclusively placed .calternal-id-copy receipt tied to the original marker UUID, preserving the original marker bytes too. Rebuilding the index honors this receipt.
Polling blind spot: size and mtime miss a same-size replacement with a restored mtime. New signatures include directory and marker device, inode, mtime and ctime. Per-directory watches are installed before enumerating children. Polling checks at most 128 uncovered directories each second; a fully watched Home does no fallback filesystem polling. With no watches at all, a 100,002-directory coverage cycle takes about 782 seconds, trading bounded detection latency for bounded idle CPU.
Journal changes are saved to folder-pending.json before marker changes or index updates. Failed recording leaves the batch on disk. Startup and a retry timer replay it. Delivery is at least once: a crash after recorder acceptance but before removing the pending batch can repeat events because EventRecorder has no idempotency-key API.
Targeted gate output:
The tests cover foreign bytes through restart, symlinked Home/metadata/Trash, metadata replacement after opening, restore-parent symlinks, loops, a link to /, marker symlinks, failed journal delivery across restart, restored-mtime replacement, zero marker reads on warm scan and restart, and duplicate recovery after deleting the index.
Implementation refinement: the final duplicate repair does not use copy receipts. It exclusively moves the valid duplicate marker to .calternal-id-conflict-, flushes that directory, and exclusively creates the new marker. The old marker bytes remain on disk. Invalid foreign markers stay at their original names. If a writer races duplicate repair, exclusive placement preserves its bytes and never overwrites a newly occupied name. This uses ordinary marker discovery for rebuilding IDs, without adding receipt precedence rules.
The directory walk now keeps paths in its frontier instead of holding all sibling directory handles. This avoids requiring 100,000 simultaneous descriptors for a wide tree. Every actual directory open still resolves beneath the opened Home handle without following symlinks.
Latest targeted output before the final added crash-window and watcher-creation regressions:
The ignored test is the explicit 60-second, 100,000-folder fallback CPU measurement for the perf VM.
The workspace gates completed successfully in the current checkout: cargo fmt --check, cargo clippy --workspace --all-targets -- -D warnings, and cargo test --workspace all exited 0. I am rerunning them after the final small event-filter and opaque-marker-directory regressions so the final output matches the committed source.
The full run caught a test timing issue in the added in-place-edit ctime regression: immediate writes can share a filesystem timestamp tick. The test now separates those writes before exercising the ctime signal. The required same-size atomic replacement regression instead checks changed inode identity and needs no delay.
Perf measurements remain blocked by other authorized VM work. The storage-split process finished, and /root/calternal-search-fix-issue636-20261020 is now building with cargo/rustc. My runner polls for both quiet process state and /root/perf-vm.lock, and has not started a competing measurement. Source and future build/test artifacts are on /mnt/z4-nvme/folder-ids-fix-20261020, not the nearly full root volume. Source transfer was verified by matching SHA-256 hashes.
Additional recovery finding and fix: an outbox must distinguish planned drafts from already applied changes. Otherwise an old health note can replay an old identity when a folder name is reused. Pending drafts now carry an applied flag, set only after the index and cache are saved. Only applied drafts are delivered; incomplete plans remain available for recovery. A permanent regression covers the pre-index-save crash window. Index-only IDs follow directory device/inode across an outside rename and do not claim replacement directories at the old name.
Case-only app moves retain their existing behavior through handle-relative exclusive staging and rollback. Ordinary file events no longer request whole-Home folder scans. A foreign directory named .calternal-id is opaque and receives no nested marker writes.
Committed head: 9b9b5ff8226bf930140b22924fb0aebe07a35b18 on issue/folder-ids-fix. All three local workspace gates exited 0. The full workspace run has 627 passed, 0 failed, 3 ignored across 60 result lines; the folder crate has 30 passed and its one explicitly ignored VM CPU measurement. Full verbatim gate output will be included with the final VM results.
Additional watcher blind spot: notify's Linux watch_inner converts relative watch roots to absolute paths before emitting events (installed notify 8.2.0 source, inotify.rs lines 548-553). Filtering those event paths against a relative Home path can miss changes even with a working watch. Home paths now become absolute before the strict no-follow open; this is lexical absolute-path handling, not symlink-following canonicalization. A permanent regression opens a relative Home and waits for an externally created folder to appear through the watcher. The three workspace gates are rerunning before updating the commit and VM source archive.
Workspace gates for head
43f480619a, branch issue/folder-ids-fix. All commands exited 0. Cargo used CARGO_BUILD_JOBS=4 inside the required local build-slot wrapper. Existing Nix GCC and OpenSSL paths supplied the compiler and native libraries. No build artifacts or logs were added to the repository.The last two regressions cover relative Home paths receiving absolute watcher events and actual marker events forcing a read when metadata fingerprints are ambiguous. Ordinary warm scans still read zero unchanged markers. The full workspace has 629 passed, 0 failed and 3 ignored; the folder crate has 32 passed plus the explicitly ignored VM CPU measurement.
cargo fmt --check
exit_code=0
cargo clippy --workspace --all-targets -- -D warnings
exit_code=0
cargo test --workspace
exit_code=0
The fmt command produced no output. VM idle and warm-scan measurements remain queued behind the active search-fix benchmark and will be posted separately before finishing.
Pushed issue/folder-ids-fix at
43f480619a. No PR was opened, and nothing was merged or deployed. The worktree is clean. Complete verbatim workspace gate output is in comment 60741; all gates exited 0.This job is still running. The remaining idle CPU, warm scan, and unprivileged read-only checks are waiting for the active search-fix perf VM run to finish. The runner continues to require both a quiet process list and /root/perf-vm.lock before starting.
Measurement status: the branch is pushed at
43f480619aand all workspace gates passed (full verbatim output in comment 60741). The remaining VM checks are still blocked by the active search-fix benchmark. Latest process evidence: calternal-perf PID 1062981 has been running about 30 minutes; its current calternal server PID 1065987 is still alive. The waiting runner has not started a build or measurement and continues to require both quiet calternal/perf/cargo process state and /root/perf-vm.lock. No other job's process has been stopped or changed.Updated VM contention evidence: the search-fix harness has exited. The current server PID 1070087 belongs to storage-split's web benchmark, serving /mnt/b/hdd-ext4/calternal-perf/storage-split-642/web-split/home-n10000 with state on /mnt/z4-nvme. It has a live parent (PPID 1070086), so it is not an orphan that this job should touch. lslocks still reports active/queued holders of /root/perf-vm.lock. The folder measurement now has a blocking lock request as well as the original polling request; a shared completion status prevents duplicate runs. Both retain the quiet-process check. The pushed code and passing gates remain unchanged.
The perf VM became quiet and the folder measurement acquired /root/perf-vm.lock. Verbatim start evidence:
The archive hash matches the local archive, and every archived source file matches the pushed source. Measurements are running on /mnt/z4-nvme under the lock. No competing job was stopped or changed.
Measurement setup finding: initial durable marker creation on the NVMe XFS volume is slow and IO-bound. The worker was observed in xlog_wait_on_iclog. At 13:10 elapsed, the folder-scan process had used 00:00:45 CPU time, RSS 159612 KB, and /proc//io reported write_bytes: 240312320. The index has not been saved yet, so the 60-second idle interval has not begun. IO counters continue advancing; this is initial marker fsync work rather than an idle polling loop. Durability remains enabled. The final output will include the initial scan duration as well as the requested idle and warm-scan measurements.
First perf VM results for pushed head
43f480619a, on /mnt/z4-nvme under /root/perf-vm.lock. Verbatim output:The default production provider averaged 0.0333% CPU over 60 seconds at 100,001 folders, below the 0.5% target. Warm scans averaged 3504.7 ms against a 1241.7 ms raw walk, retaining 182.3% overhead. The permanent warm-scan and restart regression confirms zero marker-content reads for unchanged folders; secure traversal, metadata checks and index reconciliation remain in the warm path. Initial durable marker creation took 1389085.3 ms on this XFS volume, consistent with the observed journal-flush waits.
The forced-fallback 100,000-folder idle test and the unprivileged read-only regression are running next under the same lock.
Finished folder-ids-fix. Branch: issue/folder-ids-fix. Base SHA:
d6d38d9673. Head SHA:43f480619a, pushed. The worktree is clean. No PR was opened, nothing was merged or deployed, and this issue remains open.Invalid foreign markers retain their original names and bytes, with index-only identities and health notes. Valid duplicate markers are preserved at exclusive conflict names before exclusive replacement placement. Folder writes, moves, Trash and restore resolve through the opened Home handle without following symlinks. The durable journal queue distinguishes planned and applied changes, recovers interrupted identity choices, and retries applied batches after failure or restart. Inotify covers individual directories; bounded metadata polling covers uncovered directories. A fully uncovered 100,000-folder Home takes about thirteen minutes per coverage cycle. Warm scans and restarts read zero unchanged marker contents, verified by permanent regressions.
Validation: 629 workspace tests passed, 0 failed, 3 ignored in the workspace command. The explicitly ignored fallback CPU test passed separately on the perf VM, and the read-only regression passed there as nobody. Default-provider idle CPU was 0.0333% over 60.00 seconds at 100,001 folders; forced fallback was 0.1164% over 60.14 seconds at 100,000 folders. Both meet the under-0.5% idle target.
Warm scans averaged 3504.7 ms against a 1241.7 ms raw walk, so 182.3% overhead remains. Initial durable marker creation took 1389085.3 ms on this XFS volume. These costs are reported without claiming a raw-walk performance budget passed. Measurements ran on /mnt/z4-nvme under /root/perf-vm.lock after the VM became quiet. The source archive matched every archived source file in the pushed checkout. No evidence or artifacts were committed.
Final gate output follows verbatim. Local Cargo used CARGO_BUILD_JOBS=4 inside the required build-slot wrapper.
cargo fmt --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
The fmt command produced no output. Command statuses, verbatim:
Perf VM idle, warm-scan and unprivileged gates, verbatim:
Starting read-only folder ID re-audit on detached origin/issue/folder-ids-fix, head
43f480619a, baselined6d38d9. Fresh worktree calternal-wt-fidreaudit. No commits or pushes. The requested scripts/fj is absent in this checkout, so issue comments are read through the repo API.Starting folder-ids-reaudit2, read-only audit with scratch regression tests. Branch issue/folder-ids-fix, head/base under review
43f480619a; before-fix baselined6d38d9. No commits or pushes. Will remove both audit worktrees at completion.Reproduced the previous result at
43f4806: 9 passed, 2 failed, 1 ignored. The uncovered-list failure is real: crates/folders/src/lib.rs:865-882 checks uncovered_paths but never inserts into it. Eleven reconciliations of two paths leave 22 entries, two unique paths, and zero remembered paths. Every reconciliation increases polling memory/work; the advertised 13-minute cycle can become much longer.The combined polling test passes its atomic-replacement half. Its immediate in-place half can share identical inode, size, mtime AND ctime on this filesystem, so requiring metadata polling to notice that change is an invalid test assumption. The cache signature includes ctime (scan.rs:55-68); an elapsed-tick test is running. This still identifies a limitation of metadata-only polling for same-tick writes when watches are unavailable.
Rebuilt the baseline explicitly after discovering Cargo reused an artifact from the shared target directory. All seven original regressions then failed on
d6d38d9: foreign bytes, Home/notes/Trash symlinks, journal retry, same-size atomic replacement with restored mtime, and unchanged-marker reads. This confirms the six passing original tests at the head exercise actual fixes. The warm-read baseline uses a scratch counter because its old scan API has no cache or read count.Additional safety evidence at
43f4806: FIFO, directory containing precious bytes, hard link to a user file, and a 10 MB marker all survived two reconciliations untouched. FIFO opens are NONBLOCK and non-regular files are rejected (crates/fsio/src/beneath.rs:238); marker reads are capped at 129 bytes (crates/folders/src/scan.rs:348-354). The large marker's entire byte vector and both hard-link names were checked.Thirty moves and thirty Trash restores ran while an owned thread repeatedly replaced the destination parent with an outside symlink. The outside directory still contained only its unchanged sentinel. A deterministic already-opened-parent test also kept the move inside the retained Home directory. Operations may safely fail during swaps.
A child was SIGKILLed after verifying pending[0].applied=false, with marker placement completed and cache persistence deliberately failing. Two restarts preserved the chosen ID and delivered exactly one replacement in this crash window. This does not claim exactly-once delivery for a crash after journal acceptance.
Watch exhaustion was simulated after three successful watches at the cover() decision, without changing the shared host's kernel limits. Ten remaining paths fell back to polling and a changed marker was discovered and indexed. This exercises the fallback branch, not actual kernel ENOSPC exhaustion.
A deterministic 10,000-rename launch scan failed safely and converged on retry, retaining all 10,000 user files. A separate running-provider test raced 10,000 renames against start() and automatically converged in 2.04 seconds, without manual reconciliation. With the corrected timestamp premise, the extended suite was 13 passed, one real coverage failure, two ignored helpers; the running-provider test passed separately. No new P1 was reproduced.
Performance evidence (local tmpfs, shared host, debug test binary; not comparable to the prior release/XFS timings): 100,000 folders, initial reconcile 7018.6 ms. Three recursive walks: 343.4 / 371.5 / 387.0 ms; direct warm scans: 1703.6 / 1647.2 / 1589.3 ms, each zero marker reads; full reconciles: 2730.7 / 2676.7 / 2798.3 ms. Means: walk 367.3 ms, scan 1646.7 ms, reconcile 2735.2 ms. Perf VM lock was unavailable when checked non-blockingly, so no VM workload was run.
Instrumented warm scan phases: walk plus signatures 1341.6 / 1288.2 / 1233.5 ms (78.2% of scan mean); candidate/cache resolution 64.7 / 73.9 / 76.0 ms; grouping, row assembly and sorting 289.2 / 277.2 / 272.7 ms. The roughly 1.09 s full-reconcile premium includes index/cache clones, per-directory coverage locking and signature work, equality checks and coverage refresh. Source inspection confirms warm index/cache persistence is skipped if unchanged (lib.rs:728-750), so repeated index fsyncs do not explain warm cost. Per-folder open_sub, directory iteration, child stats, fstat and marker fstat dominate the warm traversal; no unchanged marker contents are read.
Cold marker placement does a file fsync and a directory fsync for EACH marker (fsio/src/beneath.rs:333-343): at least 200,000 serialized durability calls at 100k. The prior XFS 1,389,085.3 ms is 13.89 ms/folder. Local 500-marker microbenchmarks cannot reproduce that device latency: tmpfs create/write 3.35 ms, file fsync 0.86 ms, rename 2.01 ms, directory fsync 0.25 ms total; local /tmp corresponding totals 3.43 / 0.27 / 2.01 / 0.31 ms. XFS's exact fsync split still needs profiling; do not treat the local phase split as that VM's.
Concrete changes and estimates (projections, not implemented):
A nominal fully unwatched cycle is ceil(100001/128)=782 seconds (13.03 minutes), already too slow for outside renames; uncovered-list duplication makes it unbounded with rescans. Deduplicate first, then target <=30 seconds typical and <=60 seconds maximum for 100k (at least 1667 distinct paths/second), with a time-budgeted adaptive poller and explicit stale/incomplete status when the bound is missed. Validate both latency and CPU budgets; the 0.5% CPU target alone does not establish useful discovery latency.
The first local workspace gate attempt is blocked by build environment dependencies: fmt passed, but clippy and tests both stopped in openssl-sys because pkg-config is absent (exit 101). This is not a product test failure. Retrying with the already installed Nix OpenSSL include/library paths; no source changes.
Additional watcher evidence: an LD_PRELOAD shim injected ENOSPC at the actual libc inotify_add_watch boundary after three watches. The running-provider 10,000-rename launch test passed in 2.20 seconds, with inotify_add_watch_calls=10503 and injected_ENOSPC=10500. The separate isolated fallback test confirmed an unwatched marker update is discovered. Host kernel watch limits were not changed.
Re-audit of #641 at
43f480619a, baselined6d38d9. No commits or pushes.Review 60718:
New findings:
Performance: perf VM lock unavailable; local tmpfs/debug, 100k folders: initial 7.02 s; warm recursive walk 0.367 s, scan 1.647 s, reconcile 2.735 s. Traversal/signatures account for 78% of direct scan time; unchanged indexes are not rewritten. Source shows 200k serialized file/directory fsync calls during initial marker creation, consistent with the prior XFS 23-minute problem; its exact latency split remains unmeasured.
Proposals: durable index first, background markers; grouped durability work (90% fewer serialized waits projects 23 to 2.3 minutes); watched-folder inode/mtime reuse with marker-event invalidation (70% less signature work projects local scan to 0.75 s); remove repeated coverage work/clones. Estimates require validation. Deduplicate polling and target <=30 s typical, <=60 s maximum, rather than 782 seconds before duplication.
Merge verdict: do not merge until the polling growth defect is fixed and startup/discovery performance has an accepted bound. Gates pass: fmt, Clippy, workspace tests (629 passed, three ignored); output follows verbatim separately.
Finished validation at head
43f480619a. Gates ran locally through /home/kayg/codex-jobs/_lib/build-slot.sh on clean reviewed source. The retry used installed Nix OpenSSL include/library paths because pkg-config was absent. No source changes were needed. Complete successful gate output, verbatim:Finished folder-ids-reaudit2. Reviewed head
43f480619a. Report: comment 60847; complete verbatim gate output: comment 60848. Gates passed, with 629 workspace tests passed, none failed, three ignored.Scratch regressions, profiling hooks, saved scratch source copies and temporary build binaries have been deleted. Both worktrees were removed with the requested git worktree remove --force commands, and their absence was verified. Evidence remains outside the repository and in this issue. No commits, pushes, merges or deployments; the issue remains open. Merge verdict remains do not merge until uncovered polling growth is fixed and discovery/startup performance bounds are accepted.
Starting folder-ids-fix2 on branch issue/folder-ids-fix2, base
43f480619a. I will fix polling entry growth, work through discovery and marker durability performance, measure on the locked perf VM, and post the exact gate output. No PR, merge, or deployment.Confirmed the polling growth defect in cover(): the failed-watch path appended to uncovered without inserting uncovered_paths. The fix inserts the path in the same locked section. Added an eleven-reconcile regression over Project plus the Home root: exactly two unique entries throughout, unchanged vector/set capacities, and a clean poll after every reconcile. Marker durability currently uses a file fsync and a directory fsync for each marker. The perf VM has XFS at /mnt/b/ssd-xfs4k; measurements will use that filesystem under the required lock.
Performance measurement is waiting for the shared VM lock. Read-only evidence: flock PID 1085487 holds /root/perf-vm.lock while calternal PID 1085494 and perf PID 1085527 run the issue636 search profile. My flock PID 1085595 is waiting. No competing benchmark has been started. The polling growth regression passed: test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 33 filtered out; finished in 0.00s. The first marker batching implementation passes all 33 active folder tests; performance is not yet measured.
Marker batching now commits inode-based identity allocations and the folder index before writing any new marker. Background work uses exclusive placement and a filesystem flush per 1,024-marker batch; it checks that the directory inode still matches its allocation. Server paging does not await marker work. Added regressions pass for durable-index-before-markers, interruption at marker batch boundaries, a replaced directory and racing user file, SIGKILL with two subsequent restarts, FIFO/directory/hard-link/10 MB foreign markers, and 10,000 launch renames with zero watch capacity. The 10k rename test exposed per-event rewrites/fsyncs of the growing pending journal; scan drafts now share one durable commit before index publication, while duplicate-marker repair still saves its plan before mutation. Folder suite: 39 passed, 0 failed, 1 ignored, 2.95 s. Bounds still need VM measurement. The loop-backed SSD XFS trial was stopped using only my recorded benchmark PID because its per-marker flush cost was much higher than the requested baseline; the before/after comparison now uses the real /mnt/z4-nvme XFS volume used by the repository's disk benchmark examples.
Local diagnostic measurements (not the required VM result): 100k-folder warm walk 549.6 ms, warm reconcile 616.1 ms (+12.1%, below the +50% bound), first page 0.3 ms, index ready 4.643 s, marker total 21.884 s. A 5-second default idle sample is too short to establish the CPU bound. The first 48-tick fallback implementation used 0.9399% CPU and failed the 0.5% bound. Cached directory and marker metadata handles reduced the 60-second local sample to 0.4310%; this meets 0.5% but is still above the previous 0.12% reference. The cache is bounded by the process hard descriptor limit, reserves 4,096 descriptors, removes handles for deleted folders, and leaves fully watched Homes without polling handles. Marker link count is included so an unlinked old handle cannot hide a same-tick atomic replacement. Both original replacement regressions pass. Marker backfill now re-enumerates at completion, preventing its timestamp updates from hiding an unwatched child created during the backfill. Full gates initially hit missing OpenSSL discovery configuration; they are rerunning against already-installed Nix libraries. The XFS before run continues under the VM lock.
Gates at
d6e4ffd588passed inside /home/kayg/codex-jobs/_lib/build-slot.sh. Workspace totals: 637 passed, 0 failed, 3 ignored. The 10,000 launch rename regression passed with watch exhaustion injected after three successful watches; no host inotify settings were changed. The existing Nix OpenSSL library and include paths were supplied through environment variables. Complete output follows verbatim. Performance measurements are still running.cargo fmt --check
Exit code: 0.
cargo clippy --workspace --all-targets -j4 -- -D warnings
Exit code: 0.
cargo test --workspace -j4
Exit code: 0.
XFS before measurements completed on /mnt/z4-nvme (/dev/sde), under /root/perf-vm.lock. The benchmark binary was built before the performance changes; it includes only the polling-entry deduplication fix. The separate fallback test is built from exact base
43f4806and opens the completed same Home. No other calternal, calternal-perf, perf or strace process was present when each run began. The old marker path took 1,306.427 seconds (21.8 minutes), with a 60.4 ms first page. Warm reconcile was 3,959.4 ms versus a 1,409.1 ms plain walk (+181.0%). Default idle CPU was 0.0500%; fallback idle CPU was 0.1330%. The original 128-path schedule needs 782 seconds for a cycle; the measured metadata sweep itself took 873.1 ms. The after run atd6e4ffdis now active on the same filesystem.Before output:
Fallback output:
The first XFS after run missed the marker target: index ready 15,501.6 ms, first page 136.9 ms, all markers 198,638.7 ms (3.31 minutes, target under 3 minutes). The run was stopped using only my recorded PID 1086992 during its subsequent idle sample. At stop its I/O counters showed wchar 2,528,227,357 and write_bytes 2,933,465,088. Own marker notifications were causing full cache reconciliation and serialization between small write batches. I have added a four-second event coalescing window only during backfills of at least 10,000 folders; normal event debounce stays 150 ms. Polling runs independently. I will rerun gates and the XFS marker and warm measurements. This failed attempt remains evidence, not a passing result.
Updated gates at
4ef45ca458, including large-backfill event coalescing, all passed inside /home/kayg/codex-jobs/_lib/build-slot.sh. Workspace totals: 637 passed, 0 failed, 3 ignored. Branch issue/folder-ids-fix2 is pushed. Complete output follows verbatim. The revised XFS and CPU runs are waiting for the shared VM lock while the issue636 calternal-perf process runs; no competing measurements were started.cargo fmt --check
Exit code: 0.
cargo clippy --workspace --all-targets -j4 -- -D warnings
Exit code: 0.
cargo test --workspace -j4
Exit code: 0.
The coalesced XFS run at
4ef45cameets the marker and warm-scan bounds: first page 138.7 ms, index ready 12.951 s, all markers 56.064 s (target under 180 s), warm reconcile 775.6 ms versus a 970.5 ms plain walk (-20.1%, target at most +50%). Watched idle CPU is 0.0333%. Unwatched CPU still fails: 0.8744% in the diagnostic run and 0.6449% in the subsequent sample, above 0.5%. The diagnostic cold change was noticed in 48.383 s and a recent-folder change in 1.018 s. I am comparing the cost of ordinary stat calls and minimal metadata queries on the VM before choosing the next polling optimization. No passing CPU result is claimed.Current output:
Diagnostic output:
Polling CPU investigation: a standalone native check of 100,000 opened directories and their marker handles measured 224.456 ms of CPU per complete sweep with fstat. statx with DONT_SYNC was slower, both with the full and minimal field masks, so I kept fstat. This suggests very little CPU headroom remains for bookkeeping. The latest change keeps probes beside their baselines, removes the extra path hash lookup and full signature copies on unchanged entries, and compares the metadata in place. Cold work is scheduled over 54 ticks (27 seconds on average), leaving six seconds for reconciliation within the 60-second target. All workspace gates pass; the VM run will establish whether the 0.5% CPU bound is now met. The earlier 0.133% fallback reference is not being claimed as retained.
Native check output:
The in-place comparison and 54-tick schedule still missed CPU: 0.6121% over 60.45 seconds. Its cold latency was 54.351 seconds and recent-folder latency 1.006 seconds. I am now batching cold checks into two halves 26 seconds apart (52-second coverage cycle), retaining per-second checks for recent folders and small Homes. The unchanged fast path is separate from path reopening. The new idle sample spans two complete cycles (104 ticks) to avoid understating or overstating CPU through the phase of a burst. The same metadata and link-count checks remain in place. This is being checked and built; a VM result is still required before calling the CPU bound met.
Finished folder-ids-fix2 on branch issue/folder-ids-fix2 at
e1f64d0722, based on43f480619a. The branch is pushed and the worktree is clean. No PR, merge or deployment. The issue remains open.The polling growth defect is fixed: eleven reconciles retain exactly two entries with stable allocation capacity. Durable inode allocations and the index are saved before marker writing; background batches of 1,024 use a filesystem durability barrier. Large backfills coalesce their own watcher notifications. Watched leaves reuse directory signatures, and fallback polling uses bounded metadata handles with compact native fingerprints. Recent folders are checked each second; large cold sets use two batches 28 seconds apart.
Final 100,000-folder measurements on the perf VM, XFS /mnt/z4-nvme (/dev/sde). Every run held flock -o /root/perf-vm.lock and checked for other calternal, calternal-perf, perf and strace processes before starting.
CPU tradeoff: the hard 0.5% ceiling passes, but the previous idle reference levels were not both retained. Faster complete fallback coverage costs more CPU than the old thirteen-minute schedule. The final unwatched sample is 0.3732%, above the measured 0.1330% baseline; the watched samples are only a few clock ticks and vary between runs. This limitation is explicit rather than claimed as an improvement.
All required workspace gates pass: 637 passed, zero failed, three ignored. The separate 100k fallback CPU/latency test also passes. Regression coverage includes FIFO, directory, hard-link and 10 MB foreign markers; move and restore symlink containment; planned/applied journal recovery; SIGKILL with two restarts at marker-prefix boundaries; and 10,000 launch renames with watch exhaustion injected after three successful watches. No host inotify limits were changed.
Before output:
Before fallback excerpts:
Complete final performance output:
The following gates ran inside /home/kayg/codex-jobs/_lib/build-slot.sh, with Cargo limited to four jobs. Installed Nix OpenSSL include and library paths were provided through environment variables. Gate output follows verbatim.
cargo fmt --check
Exit code: 0.
cargo clippy --workspace --all-targets -j4 -- -D warnings
Exit code: 0.
cargo test --workspace -j4
Exit code: 0.
Independent review3 started. Read-only detached worktree /home/kayg/Developer/calternal-wt-fidreview3, source branch issue/folder-ids-fix2, head
e1f64d0722, review base43f480619a. Temporary regression tests only; no commits or pushes.Review3 measurement status: the perf VM is busy (calternal-perf PID 1090527 and calternal PID 1090776, another run holding /root/perf-vm.lock), so I am using the authorized local 100k tmpfs fallback. Local Cargo work is queued through /home/kayg/codex-jobs/_lib/build-slot.sh behind the active train (PID 2930698). No host limits or other processes were changed. Review and temporary regression preparation continue while waiting.
Review3 source findings (runtime regressions are queued behind the train):
P1 candidate, identity reuse: new scan.rs:200-207 materializes a pending ID after comparing only directory device and inode. Deleting an unmaterialized directory and recreating it with the same inode therefore passes the check even though ctime changed. This host's ext filesystem recycled the directory inode on the first delete/create attempt in an isolated temporary fixture. Pending allocations now cover every newly discovered folder until batch completion, expanding the older index-only fallback exposure. A regression will exercise the actual backfill and check that the new folder receives a new ID.
P2 candidate, overflow recovery: scan.rs:239-267 copies cached marker metadata for watched folders when directory metadata matches. An in-place marker edit does not change the directory's inode, mtime or ctime. lib.rs:1142-1143 sends Change::Rescan on need_rescan; lib.rs:431-465 preserves watched coverage for that case and reconciles without lost paths. Thus the advertised overflow rescan can take the same stale-marker shortcut. There is no timer that invalidates all watched marker signatures. A real-watch regression models lost paths and requires the new marker ID after 100 rescans.
These are source-derived findings, not claimed executed test results. I will add the runtime evidence and final verdict after the required slot becomes available.
Two further review3 recovery cases are queued for runtime verification:
P2 candidate: rapid replacement at the same path can retain an obsolete watch. cover() (lib.rs:1106 onward) returns true solely from watched.contains(path); update_coverage() removes watched entries only when their path disappears from the reconciled live set. If a directory is deleted and recreated before the debounced scan, the path remains live even though the kernel removed the old inode's watch. Later edits inside the replacement can therefore receive neither a watch notification nor fallback polling, while the new directory-signature shortcut trusts watched membership. The scratch test installs real watches, replaces a folder, then edits the replacement marker and checks events and the resulting indexed ID.
P2 candidate with an explicitly injected storage state: write_exclusive_deferred() writes a temporary file and renames it before any file-data barrier (beneath.rs:243-251). If a power loss before the batch syncfs leaves the final marker name but empty contents, scan::materialize() will not replace that existing entry, and scan::run() sets marker_pending false because a marker entry exists. The durable allocation can retain the ID, but the empty marker is never repaired and the batch reports no pending markers. The test injects this outcome and checks two restarts. This is a recovery-state test, not evidence from a physical power-cut run on XFS.
The train remains active; no Cargo test results are claimed yet.
Review3 execution update: the local train is still running a long timeout sequence. A fresh check of the perf VM now showed no calternal, perf or strace processes, so execution has moved there. The source archive is exactly
e1f64d0, with temporary test hooks only. The VM run holds flock -o /root/perf-vm.lock throughout, checks processes again after acquiring it, and invokes the supplied build-slot script at /home/kayg/codex-jobs/_lib/build-slot.sh with Cargo limited to four jobs. Core inode-reuse fixtures use the VM's ext filesystem; 100k measurements use its XFS /mnt/z4-nvme filesystem. The only stopped process was my recorded local timeout PID 2985621 and its own queued wrapper. No local heavy command ran and no other job was interrupted. Gate output will identify the VM paths and toolchain explicitly.Review3 runtime evidence at
e1f64d0, on the locked perf VM. Scratch suite: 5 passed, 5 failed, 1 ignored (the performance case runs separately).P1 confirmed: pending allocation reuses a deleted folder's ID. The actual backfill accepted recycled ext inode 982520 and wrote the same ID, 01a15a3a-2ee1-772c-8cc6-1e5fa5216293, into a different folder. Its new user file stayed untouched. scan.rs:200-207 checks only device/inode.
P2 confirmed: watched-marker shortcuts cannot recover missed edits. With a real watch installed, an in-place UUID edit retained the old indexed UUID after 100 pathless overflow rescans. Separately, editing a valid marker through an outside hard link produced watch events=[]; reconciliation still returned the old UUID. scan.rs:239-267 trusts unchanged directory metadata, and no periodic full verification exists.
P2 confirmed: rapid same-path replacement loses coverage. After deletion and recreation before reconciliation, the provider reported believed_watched=true, but a subsequent marker edit produced marker_edit_events=[]. The replacement kept its prior indexed UUID. cover() trusts the path string; update_coverage() retains it when the path remains live.
P2 recovery gap, injected storage outcome: after renaming an unflushed marker, injecting an empty final file left marker bytes=[], index_only=true, marker_pending=false on BOTH restarts. The saved ID survived, but the marker never agreed with the index. This tests a pre-barrier lost-data recovery state, not a physical XFS power-cut result.
Passing checks: 21 independent SIGKILL cases, including every six-marker prefix, empty/partial/full temporary files, 1023/1024/1025 boundaries, barriers and injected loss of unflushed names, each with two restarts. Every ordinary recovery retained unique IDs, matching markers and unchanged user files. Normal marker events, unwatched in-place polling, cross-parent renames, cp -a duplicate repair, and 100 reconciliations with flat polling allocations also passed.
The 100k XFS backfill completed in 50.774 seconds. Cold/recent polling and idle CPU measurement are still running; clean-source workspace gates follow after scratch-test removal. Full evidence will follow with the final report.
Review3 first performance sample, VM XFS /dev/sde, debug test profile, under the VM lock:
100k initial scan and marker completion: 50.774 s.
100k fallback idle: 112.752 s elapsed, 0.630 s process CPU, 0.5588% (above the stated 0.5% ceiling).
50k-entry fallback set, 100k-folder index: last-slot metadata detection 56.211 s; the subsequent complete scan and index publication finished at 62.246 s. The test fails its 60-second end-to-end assertion. All 100k folders are verified in that scan; this first sample does not model the remaining 50k folders as actually watched, so I am checking a real mixed-coverage case before treating it as that specific bound's counterexample.
The original ignored 100k performance regression is queued after the clean-source workspace gates to repeat the CPU and recent-folder measurements. An additional test will install real watches on half the 100k folders and verify the remaining 50k through fallback polling, including index publication.
The first helper's output label says “tmpfs” because it was prepared for the local fallback. Its actual TMPDIR is /mnt/z4-nvme/fidreview3-20261020/perf-tmp; df -T confirms XFS. The quoted numbers above are unchanged.
Review3 clean-source gates at
e1f64d0722, review base43f4806. Executed on root@10.69.69.63 while holding /root/perf-vm.lock and through /home/kayg/codex-jobs/_lib/build-slot.sh. Cargo/rustc 1.98.1, Cargo limited to four jobs, RUST_TEST_THREADS=4. Scratch test hooks were removed before these gates. Output follows verbatim.cargo fmt --check
Exit code: 0.
cargo clippy --workspace --all-targets -j4 -- -D warnings
Exit code: 0.
Review3 gate output at
e1f64d0722: cargo test --workspace -j4, part 1/2. Complete output is preserved across these consecutive comments. Exit code: 0; workspace totals: 637 passed, 0 failed, 3 ignored.Review3 gate output at
e1f64d0722: cargo test --workspace -j4, part 2/2. Complete output is preserved across these consecutive comments. Exit code: 0; workspace totals: 637 passed, 0 failed, 3 ignored.Review3 P2 discovery-bound failure confirmed with real mixed coverage on locked VM XFS, Rust/Cargo 1.98.1 debug test profile:
The watches are real kernel watches: 50,000 leaf folders plus the Home root. A child created in the last cold slot was detected in metadata after 56.187 seconds, but it was not available in the index until 60.314 seconds. This exceeds the documented 60-second discovery bound even before adding the production event-loop debounce. The test checks the new child's actual indexed ID, rather than stopping its timer at a metadata fingerprint change.
The 100-reconcile allocation check passed with fixed (entries, capacity, paths, capacity) = (65, 128, 65, 112). The polling growth fix is effective. Recent-folder prioritization also passed at 1.001 seconds.
Cross-parent rename passed an additional real-watch test: the original ID survived, and a later edit of the moved marker generated notifications and updated the index. The dead-watch finding is specifically confirmed for rapid deletion and recreation at the same path.
The original ignored CPU test is now running as the repeat of the first 0.5588% idle result. Clean-source gates are complete and pass: fmt, Clippy, 637 workspace tests passed, three ignored. Their full output is preserved verbatim in comments 61062-61064.
Review3 temporary regression source at
e1f64d0, preserved here so the findings are reproducible after scratch-file cleanup. Each file was loaded as a private unit-test module from crates/folders/src/lib.rs with a temporary cfg(test) path declaration; Cargo autotests was temporarily disabled. Original source and manifest were restored before the workspace gates. The suite helper retains its original tmpfs label; the actual performance run used VM XFS, as recorded in comment 61056.crates/folders/tests/zz_review3_suite.rs
crates/folders/tests/zz_review3_mixed.rs
crates/folders/tests/zz_review3_renames.rs
Review3 complete regression and performance output at
e1f64d0722. VM XFS, Rust/Cargo 1.98.1 debug profile, each run under /root/perf-vm.lock and the supplied build-slot script. Output is verbatim. The first helper retains its planned tmpfs label; actual filesystem and path are documented in comment 61056. The original performance repeat passes at 0.4793% CPU, versus 0.5588% in the first sample: the claimed low idle usage is plausible, but the 0.5% margin varies between samples.regression.log
perf.log
perf-mixed.log
perf-renames.log
perf-repeat.log
Review3 checks are complete. The local worktree and local scratch tests are removed; all gate output, test source and measurement evidence are preserved in comments 61062-61071. Final cleanup of my temporary VM source/target directory is queued behind another run holding /root/perf-vm.lock (calternal-perf PID 1152102, calternal PID 1152334). I am waiting for that run rather than introducing filesystem deletion work into its measurement. No other job will be interrupted. Final review text is ready, under 400 words, and will be posted after cleanup completes.
Independent review3 of
e1f64d0722against43f4806. Merge verdict: do not merge.Signature checklist: normal in-place events and unwatched marker polling work; missed watched events and outside hard links fail. Marker-backed directory replacement normally changes ctime/marker identity; pending inode reuse fails as above. Cross-parent rename retains ID and a working watch. cp -a duplicate repair passes; rsync -a follows the same inode/ctime checks. Atomic replacements use directory changes or marker inode/link count. Coarse one-second times or clock rollback can hide same-size edits when every fingerprint matches, even across restart. Ordinary missed edits heal on restart when marker metadata differs. No periodic full content check exists; repair time is unbounded.
Ordinary SIGKILL/name-loss recovery passed 21 fresh cases, including batch boundaries, two restarts and unchanged user files. Polling allocations remain flat across 100 reconciliations. Recent detection passes at 1.001 s. Backfill: 50.774 s for 100k folders on locked VM XFS, Rust 1.98.1 debug profile.
Gates pass: fmt, Clippy, workspace tests (637 passed, three ignored). Verbatim gates: comments 61062–61064; complete evidence: 61071; reproducible test source: 61066.
Scratch tests, local worktree and temporary VM files removed. No commits, pushes, merges or deployments. Issue remains open.
Starting folder-ids-fix3 on issue/folder-ids-fix2, base
e1f64d0. Reading review3 and its reproductions, then adding failing regression tests before fixes. Local heavy checks will use build slots; measurements will use the locked XFS perf VM.Reproduced review3 on base
e1f64d0on locked VM XFS before production edits. Permanent regression tests fail for pending inode reuse, overflow, obsolete watch, outside hard-link edit, and empty marker recovery. A deterministic reused-inode test and a truncated-owned-marker test also fail. Existing crash-prefix and flat polling checks pass.The permanent mixed-coverage reproduction also fails in a release build on locked VM XFS before the polling change. Real watches: 50,001 including root; uncovered: 50,000. Output:
This excludes production debounce and already exceeds 60 seconds. The fix uses a 40-tick cold cycle to reserve time for reconciliation and debounce; the permanent regression now includes the 150 ms debounce and checks the 45-second target.
Local validation is waiting behind the active test train in the required build-slot wrapper. No slot or priority override has been used. The queued commands have not started; continuing regression and release measurements directly on the locked XFS perf VM, which does not require a local slot. This is a local gate blocker until the train yields capacity.
Release measurements on locked VM XFS now pass the mixed-coverage publication target. These use 50,000 real leaf watches plus root, and 50,000 actual polling entries; publication includes the production 150 ms debounce.
The three repeated full-fallback idle measurements include the rolling content verifier. Those are still running. Local gates remain queued behind occupied build slots, without priority overrides.
The first release full-fallback idle run failed, so the performance work is not complete. Locked VM XFS, 100,000 folders, with periodic content verification enabled:
The shorter cycle fixes mixed discovery latency but raises the cost of polling every uncovered folder. Investigating metadata-call cost before another change. No push or completion claim yet.
Added a regression for a race found while integrating periodic verification. A scan can prepare a cache result, the verifier can invalidate the current cache, and publication of the prepared result can overwrite that invalidation. With indistinguishable metadata this loses the content check. The test failed before the fix on locked VM XFS:
Verification now keeps changed paths separately from the scan cache. Reconciliation consumes those paths while holding the lifecycle lock, so a concurrent cache publication cannot erase them. The full regression suite is running again.
The fixed regression run has now completed all 1,000 rapid delete/recreate cycles with live watches (or explicit polling coverage) and successful indexed marker edits. It also passes deterministic inode-generation retirement, bounded rolling verification across repeated reconciliations, the concurrent cache-publication regression, and empty/truncated owned-marker recovery. Output:
The allocator did not recycle an inode within 20,000 attempts in this run, so that allocator-dependent case reported its fixture limit. Earlier red and green XFS runs obtained real inode reuse; the deterministic generation regression always runs. Remaining earlier regressions and final gates are still running or queued.
The first local workspace test gate passed: 652 passed, zero failed, four ignored. The locked XFS folder suite also passed: 55 passed, zero failed, two ignored, including the 10,000-rename watch-exhaustion case and crash recovery.
The first local Clippy gate rejected 19 direct filesystem calls in the imported reproduction fixtures. Example:
Atomic replacement would invalidate the in-place-edit and pre-barrier truncation reproductions. Those external writes now go through one documented test helper with a narrowly scoped lint allowance. Directory renames now use the approved safe helper. All three gates are running again through the supplied local build-slot script. Final verbatim gate logs will follow.
Local gate for
6596dd5204, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo fmt --checkExit: 0. Part 1 of 1.
Stdout and stderr were empty.
Local gate for
6596dd5204, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo clippy -j4 --workspace --all-targets -- -D warningsExit: 0. Part 1 of 1.
Verbatim stdout and stderr:
Local gate for
6596dd5204, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo test -j4 --workspaceExit: 0. Part 1 of 2.
Verbatim stdout and stderr:
Local gate for
6596dd5204, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo test -j4 --workspaceExit: 0. Part 2 of 2.
Verbatim stdout and stderr:
The third independent full-fallback idle run failed. Release XFS results with 100,000 uncovered folders were 0.4421%, 0.4086%, and 0.6028%. The first two passed; the third demonstrates that the margin is still insufficient. The complete third sample was:
Choice for the next fix: keep full directory and marker fingerprint checks on the 40-tick cycle at up to 50,001 uncovered paths. This preserves the requested 50k watched + 50k unwatched publication bound. Above that coverage size, keep directory checks at 56 ticks, and check cold marker fingerprints every other pass, bounded at 112 ticks. Recent folders still receive full checks every second. Overflow and the rolling content verifier remain independent and verify actual marker bytes. This reduces idle metadata calls by 25% for the worst fallback size while keeping earlier directory-discovery regressions intact. ADR 0061 will state the larger-set marker bound explicitly. Rerunning all three samples before pushing.
Local gate for
6fe8f8f844, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo fmt --checkExit: 0. Part 1 of 1.
Stdout and stderr were empty.
Local gate for
6fe8f8f844, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo clippy -j4 --workspace --all-targets -- -D warningsExit: 0. Part 1 of 1.
Verbatim stdout and stderr:
Local gate for
6fe8f8f844, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo test -j4 --workspaceExit: 0. Part 1 of 2.
Verbatim stdout and stderr:
Local gate for
6fe8f8f844, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo test -j4 --workspaceExit: 0. Part 2 of 2.
Verbatim stdout and stderr:
Additional P1 reproduced before fixing journal replay: recovery discarded cached discovery evidence and used a blank signature for a planned ID. A replacement folder then inherited that ID. With a missing cache, the same path could inherit an already published ID. The new permanent regression fails for both cases.
Replay now preserves existing discovery evidence and only recovers an ID for a matching generation. A blank or missing signature no longer authorizes ID reuse. Existing planned/applied recovery is being retested, and ADR 0061 states this rule.
Two additional repair regressions were reproduced before their fixes: truncating a known owned marker through an outside hard link changed its indexed ID, and an unwritable owned truncated marker spun in the backfill loop instead of deferring. The new permanent tests failed as follows:
Known owned hard-linked markers now preserve the old inode and all alias bytes at conflict storage before placing the indexed ID. Foreign files remain untouched. Failed repairs retain ownership evidence but defer retries until changed metadata, verification or restart. Repeated verification also stops treating an unchanged foreign empty file as a mismatch. Retesting the foreign-file and repair cases before the final gates.
The exact legacy completed state also failed before its fix: index_only=true, marker_pending=false, no ownership flag, and an empty or partial marker. The permanent regression exercises startup and verification for both byte lengths.
The cache now distinguishes known foreign files from owned or legacy allocations. Known foreign files keep their bytes and names. Legacy empty or matching-prefix markers with a matching folder generation are repaired from the saved ID, preserving the original bytes at a conflict name. This migrates the already broken state instead of only preventing new occurrences. Recovery and foreign-file tests are running again.
Local gate for
77ce71c7fc, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo fmt --checkExit: 0. Part 1 of 1.
Stdout and stderr were empty.
Local gate for
77ce71c7fc, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo clippy -j4 --workspace --all-targets -- -D warningsExit: 0. Part 1 of 1.
Verbatim stdout and stderr:
Local gate for
77ce71c7fc, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo test -j4 --workspaceExit: 0. Part 1 of 2.
Verbatim stdout and stderr:
Local gate for
77ce71c7fc, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo test -j4 --workspaceExit: 0. Part 2 of 2.
Verbatim stdout and stderr:
Local gate for
703a8aadc1, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo fmt --checkExit: 0. Part 1 of 1.
Stdout and stderr were empty.
Local gate for
703a8aadc1, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo clippy -j4 --workspace --all-targets -- -D warningsExit: 0. Part 1 of 1.
Verbatim stdout and stderr:
Final-code mixed idle samples on locked VM XFS were 0.3071%, 0.3484%, and 0.3650% (mean 0.3402%). Every sample is below the required 0.5% ceiling; the mean meets the 0.35% target. One sample exceeds that target, which remains visible in the evidence. The sampler originally asserted the target as a hard per-sample limit and stopped before publication measurements. Its assertion now uses the required 0.5% ceiling, while reporting every sample and the mean against the 0.35% target. The product polling code is unchanged by this test correction.
The three 100k full-fallback samples for this polling strategy passed at 0.3725%, 0.3643%, and 0.3023%, with 56.173–56.215 s cold directory detection. Cold markers in sets above 50,001 uncovered paths have the separate 112-tick fingerprint bound documented in ADR 0061.
Final formatting, Clippy and all workspace tests pass (658 passed, four ignored). The exact-code publication-only measurement is queued behind another holder of the perf VM lock. It reuses the completed three idle samples rather than hiding or replacing them. No push yet.
Local gate for
703a8aadc1, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo test -j4 --workspaceExit: 0. Part 1 of 2.
Verbatim stdout and stderr:
Local gate for
703a8aadc1, through /home/kayg/codex-jobs/_lib/build-slot.sh.Command:
cargo test -j4 --workspaceExit: 0. Part 2 of 2.
Verbatim stdout and stderr:
Release performance evidence for folder-ids-fix3, final head
703a8aadc1. All runs used locked VM XFS at 100,000 folders, with no other calternal/perf/strace process in the preflight. Final publication source matched all six changed files in this commit.Mixed idle CPU samples: [0.3071, 0.3484, 0.365]; mean 0.3402%. Full-fallback samples: [0.3725, 0.3643, 0.3023]; mean 0.3464%. Every sample meets the 0.5% ceiling. The mixed maximum of 0.3650% exceeds the 0.35% target; the mean meets that target.
The raw mixed CPU log retains the old test-only 0.35% per-sample assertion failure after all three intervals completed. The final test enforces the required 0.5% ceiling and reports the target and mean. No product code changed in that correction. The final publication-only run reused these recorded CPU intervals and passed both ID-publication checks.
Final publication run — verbatim output:
Mixed CPU recording — verbatim output:
Full-fallback repeat 1 — verbatim output:
Full-fallback repeat 2 — verbatim output:
Full-fallback repeat 3 — verbatim output:
Finished folder-ids-fix3. Pushed
issue/folder-ids-fix2and verified remote head703a8aadc117f6586eebee6857840b75da4edce2(basee1f64d0).Permanent regressions cover pending inode reuse, journal generation loss, overflow, silent hard-link edits, 1,000 watch replacements, owned and legacy empty/truncated markers, failed repair deferral, and foreign-file preservation. Earlier recovery, containment, 10k rename and flat polling regressions remain green.
Final gates, verbatim status:
Complete verbatim output: fmt, Clippy, workspace tests part 1, part 2. Workspace total: 658 passed, four ignored.
Final 100k release XFS: backfill 29.779 s; warm scans 3.018 s versus plain walks 1.171 s; marker publication 44.230 s; child publication 44.519 s, including debounce. Mixed idle mean 0.3402% (maximum 0.3650%); full-fallback mean 0.3464% (maximum 0.3725%). All six samples remain below 0.5%.
ADR 0061 bounds rolling content repair at 24 hours. Above 50,001 uncovered paths, cold marker fingerprints have a separate 112-tick bound; directory discovery remains at 56 ticks. The requested 50k/50k case retains full 40-tick checks.
No PR, merge, deployment or issue-state change was made.
Starting folder-ids-review4. Read-only review worktree /home/kayg/Developer/calternal-wt-fidreview4 on origin/issue/folder-ids-fix2, base/head
703a8aa; comparing e1f64d0..703a8aa. No commits or pushes. I will post regression evidence, performance findings and gate results, then remove scratch tests and worktrees.folder-ids-review4: independent scratch regressions on
e1f64d0. All 11 original cases and variants fail. The actual ext4 allocator recycled inode 4991270 and materialization gave the new folder the deleted folder's published ID. Variants cover missing birth-time evidence, indistinguishable overflow metadata, hard links introduced after watching, rename-away/recreate, and legacy completed prefixes of 0, 7 and 35 bytes. Old-version verifier adapters intentionally do nothing because that revision has no verifier. Head comparison is still running.folder-ids-review4: all 11 independent correctness cases pass at
703a8aaand fail ate1f64d0. This includes actual ext4 inode reuse: the replacement now receives a different ID. The watch cases ran 64 delete/recreate cycles and 32 rename-away/recreate cycles (the copied diagnostic string still says 1000). Silent hard-link writes produced no watch events but verification repaired the index. Legacy completed markers of 0, 7 and 35 bytes repaired in-process and on restart. Overflow with indistinguishable metadata also repaired.folder-ids-review4 performance progress: the required VM XFS run is waiting on /root/perf-vm.lock. Preflight showed the active search performance job, so no folder workload has run beside it. Local release tmpfs warm scans are 1.73–2.00 s versus walks of 0.59–0.70 s, already outside the 50% limit. Instrumentation splits discovery (1.01–1.28 s) from candidate/group/cache rebuilding and publication. Exact matched XFS attribution is pending the lock; no historical 1.85 s breakdown is being inferred from unrelated wall-clock samples.
folder-ids-review4 gate finding: fmt and Clippy pass, but the first cargo test -j4 --workspace fails at unmodified
703a8aa. The folder suite reports 59 passed, two failed, two ignored. This is a merge blocker until diagnosed; isolated reproductions and a full rerun are queued in the required build-slot wrapper.folder-ids-review4 gate follow-up: both failing folder tests pass individually (1000 replacements in 1.87 s; relative-path notification in 0.77 s), and the folder suite passes on the full workspace rerun (61 passed, two ignored). The rerun instead fails an unchanged notes test: tests::trash::a_file_deleted_outside_goes_to_the_trash returns by="unknown" rather than "outside" (trash.rs:191). Therefore the workspace gate is still not green. A no-fail-fast run will exercise the remaining workspace suites, and repeated folder suites will check the intermittent watch failure. These are observations, not yet a claimed root cause.
folder-ids-review4 rolling verification evidence: a release scratch test changed every one of 100,000 marker IDs, then replaced each cached signature with the current signature. Thus metadata checks could not detect any mismatch. After 33,334 verifier calls, all 100,000 distinct paths were dirty, with no more than three new paths per call; the last call wrapped and reread two paths. At one nominal tick per second this is 9.26 hours, below the documented 12-hour target and 24-hour allowance. To avoid a quadratic 100k journal-dedup fixture, most markers were restored before publication; three distant mismatches at positions 0, 65,535 and 99,999 were then confirmed repaired in the index. This compresses logical ticks; it is not a 24-hour wall-clock soak. Source inspection and the existing 300-path test also check the accelerated 256-per-call overflow cap.
folder-ids-review4 gates at unmodified
703a8aadc1. Commands used /home/kayg/codex-jobs/_lib/build-slot.sh and Rust 1.98.1.folder-ids-review4 final exact workspace gate, verbatim output part 1/3. cargo test -j4 --workspace: exit 0. Total 658 passed, zero failed, four ignored. Earlier failed runs remain reported in comments 61230 and 61232; the complete no-fail-fast run and five repeated folder suites also pass.
folder-ids-review4 final exact workspace gate, verbatim output part 2/3. cargo test -j4 --workspace: exit 0. Total 658 passed, zero failed, four ignored. Earlier failed runs remain reported in comments 61230 and 61232; the complete no-fail-fast run and five repeated folder suites also pass.
folder-ids-review4 final exact workspace gate, verbatim output part 3/3. cargo test -j4 --workspace: exit 0. Total 658 passed, zero failed, four ignored. Earlier failed runs remain reported in comments 61230 and 61232; the complete no-fail-fast run and five repeated folder suites also pass.
folder-ids-review4 finding P2: warm scans still miss the 1.5-times-walk budget.
Release
703a8aa, 100,000 leaf folders, 50,000 real leaf watches plus root and 50,000 fallback entries. Local workloads used the required build-slot wrapper. VM data is on /mnt/z4-nvme (XFS); the entire VM batch holds flock -o /root/perf-vm.lock and began only after the competing search job exited and the process preflight was clear.Five matched XFS passes average 3.475720 s per scan and 1.597358 s per walk: 2.176 times the walk, with a 1.878362 s gap. This independently reproduces the reported roughly 1.85 s gap. The historical 3.018/1.171 pair was not profiled, so its exact individual costs cannot be recovered retrospectively. Our matched gap is accounted for as follows (seconds, rounding to six places):
These are elapsed phase measurements. Discovery includes kernel calls, path handling and watch checks; syscall counts and birth-time sub-timers follow in a separate measurement. No marker contents were deliberately changed for warm profiles. A second, otherwise identical local tmpfs measurement explicitly counted zero warm marker reads and averaged 1.637 s scans versus 0.640 s walks; the earlier local run was 1.854 versus 0.663 s.
Safe design proposal: keep persistent scan nodes and ID groups, reuse immutable unchanged rows, and update only changed candidates rather than cloning and rebuilding all maps, strings and one-element groups. Supply the directory fingerprint and birth time once from statx; do not call signature_directory twice for every fallback leaf or duplicate an fd merely to obtain birth time. Skip leaf enumeration only when the prior child set is known empty and the directory generation is verified: use the actual live watch-descriptor generation and an overflow epoch for watched leaves; for fallback leaves retain directory/marker metadata checks through held probes, including link count and replacement detection. Linux has no ordinary multi-path statx call; io_uring batching is an optional later experiment, not an assumed saving.
Estimate, not an implemented benchmark: save 0.45–0.65 s in the map/group/row work and 0.6–0.8 s in discovery on this matched VM run, targeting about 2.03–2.43 s (the current budget is 2.396 s). To meet rather than merely overlap the limit, require at least 1.2 s measured savings, about 2.28 s here. On the historical walk baseline the corresponding design target is roughly 1.55–1.70 s, below 1.7565 s. Validate the complete design before accepting it; removing just the new birth-time syscall work cannot meet the budget.
Safety conditions: preserve birth-time or conservative ctime/path checks for pending IDs and journal replay; revoke trust on overflow or watch loss/replacement; retain rolling content reads for silent hard-link and indistinguishable-metadata edits; preserve owned/foreign marker repair rules and durability; keep the mixed fallback cycle at 40 ticks, recent checks each second, and bounded verification/idle work. Re-run all review3 regressions after optimization.
The scan is background work. Server startup and listing/lookup do not await the scan; they can serve the saved index with incomplete=true. Initial index/cache loading is separate and can delay a first Home access. Scan work uses CPU/I/O, delays publication of external folder edits, and holds the lifecycle lock, so folder mutations can wait for the scan. Thus the regression has a user-visible cost even though it does not gate server startup.
folder-ids-review4 additional watch variant: 512 rename-away/recreate cycles checked live notifications on both the replacement and the renamed original, using a unique probe filename on each inode. The scratch test passed at
703a8aain 3.91 s. The diagnostic copied from the original says 1000, but the actual loop count was 512. This extends the initial 32-cycle variant and does not erase the first workspace run's intermittent obsolete-watch failure.folder-ids-review4 measurement clarification: the 0.8957 s historical number in comment 61006 came from the production folder-scan harness without an injected watch limit; its XFS run used the normal watch capacity. The 3.018 s number in comment 61218 explicitly uses only 50,000 watched leaves and 50,000 fallback leaves. These are different coverage configurations. A 100% watched head measurement is now queued to check the comparison directly. The independently measured mixed-coverage budget failure and its phase breakdown remain valid; the two historical numbers alone do not establish a matched regression attributable to review3 fixes.
folder-ids-review4 final head XFS evidence. Mixed publication passes: marker 43.531 s, child 44.271 s, including debounce. Mixed idle CPU 0.4559% and full-fallback CPU 0.4174% meet 0.5%, but both miss the 0.35% target and leave limited margin. These are single fresh samples, not a claim of a stable maximum.
The second untraced mixed profile averages 2.150352 s versus a 1.018202 s walk (2.112 times); speed varies across runs, but the budget failure persists. Each warm scan reads zero marker contents and calls signature_directory 100,000 times: twice for each of the 50,000 fallback leaves. Its fstat and birth-metadata sub-timers are included below. Replacing only birth-time retrieval cannot remove all overhead.
The isolated warm syscall trace records 150,001 fstat, 150,001 newfstatat, 100,007 statx, 150,002 fcntl, 200,003 close, 50,002 openat2, 50,001 openat and 100,136 getdents64 calls. Traced read counts are largely the watch thread, not marker content reads; ptrace changes event coalescing, so they are not a normal-run rate. Trace elapsed times are deliberately excluded from performance comparisons. Fixture creation and cleanup were outside tracing.
Refining the safe proposal in comment 61239: parent-relative statx can provide directory identity and birth time once. For an unchanged known leaf, reuse a held, generation-matched probe and stat the held marker, including link count; do not reopen/enumerate that leaf or generate its directory-access notifications. Retain live descriptor generations and overflow epochs for watched shortcuts. Incremental nodes also avoid the measured 0.095 s coverage-path rebuild and 0.056 s final bulk release, in addition to the map/group savings. Including those roughly 0.15 s savings moves the first-run estimate to about 1.88–2.28 s, within its 2.396 s budget; on the historical walk, target 1.55–1.70 s. This remains an estimate that needs implementation and regression validation.
Mixed publication and idle
Full fallback idle
Untraced detailed profile
Warm syscall counts only
folder-ids-review4 baseline control:
e1f64d0with the same 50,000 real watches and 50,000 fallback entries publishes the atomic-replacement marker variant at 58.143 s including debounce. It fails the newer test's 45-second assertion, but DOES NOT reproduce the original over-60-second failure on this run. The old 56-tick schedule leaves little reconciliation margin; the new 40-tick schedule reserves substantially more. This evidence must not be described as a fresh red test of the old 60-second ceiling.The old mixed idle sample is 0.2077%, also below 0.5%; the original idle failure is variable and was not reproduced by this mixed sample. Its full-fallback control is still running. Old mixed warm scans average 2.771 s versus 1.938 s walks (1.430 times, within the 1.5 budget). Historical 0.896 s was not a matched mixed-coverage reference.
folder-ids-review4 idle control reproduces the old ceiling miss in full fallback:
This is
e1f64d0on locked XFS. Head's corresponding sample passes at 0.4174%. The old miss is about one clock tick, confirming that the old margin is fragile rather than a deterministic failure on every run. The mixed old sample passes at 0.2077%.Correction to the first version of this comment: the old native harness DOES assert the CPU ceiling, after its cold and hot latency probes. I initially read only the section immediately after the CPU print. The full baseline run exits with failure on that CPU assertion at tests.rs:749.
folder-ids-review4 NEW P2: the 24-hour full-content verification bound is not guaranteed under folder churn. An existing marker can starve indefinitely even with only two steady-state live folders and three during insertion.
Reproduction at
703a8aa: start with A0000000 and Z; give Z mismatching marker bytes and a current cached fingerprint so only full-content verification can discover them. Each logical second, create the next A name, reconcile, call verify_markers once, remove the previously checked A, and reconcile again. The list briefly has three paths and its budget is one read. update_coverage preserves the current A anchor, but inserts the new A immediately after it. Verification consumes the old A and advances to the new A; deletion preserves that new anchor. Z never reaches the cursor. Both generations have real watches. The case exercises the rolling scheduler directly with simulated one-second ticks, not a physical 24-hour soak or the production event loop.The scratch test executed 86,401 ticks, keeping Z stale through more than a logical day. A shorter recheck with a fixture that returns successfully as soon as Z is repaired also fails after 1,000 ticks. The same insertion invariant can continue without a bound; at 100,000 paths the corresponding pattern inserts three paths per tick ahead of the cursor.
Root cause: lib.rs:1062–1069 rebuilds verification_paths from the live sorted index while retaining its next path, so newly read folders can continually consume the existing round's budget. Preserving a path cursor prevents resets but does not establish fairness under insertion.
Fix: keep a fixed round/epoch queue, or prioritize by actual last content-read time and deadline. New folders already read by the scan should enter behind older unverified generations; renames must retain age unless bytes were actually read. Track monotonic elapsed time and carry verification debt so slow scans cannot silently stretch a per-call schedule. Retain the 256-read cap and overflow epoch handling. The idle/static 100k coverage test still passes; it is insufficient to prove this liveness bound.
folder-ids-review4 reproducible starvation source and final recheck. This fixture returns successfully as soon as Z is repaired; it still fails after 86,401 logical one-second verification calls (56.36 s of compressed execution). The 1,000-call short run also fails. This establishes a scheduler liveness counterexample, not a physical 24-hour soak.
The function uses the same use super::* scope and outside_write helper as crates/folders/src/review3_tests.rs. It was stored temporarily in crates/folders/tests/zz_review4_cases.rs and included as a unit-test module to access private scheduler state. The fixture does not depend on the timing instrumentation.
Final output:
folder-ids-review4 final controls: fully watched head passes the warm budget. At 100,001 real watches and zero fallback entries, XFS averages 0.754011 s scans versus 0.834106 s walks (0.904 times); local tmpfs averages 0.940572 versus 0.699402 s (1.345 times). Both fit 1.5 times. Thus the historical 0.896-versus-3.018 comparison mixes coverage configurations. The 50k/50k case still misses the budget in every head profile.
The production maintenance worker under twelve continuous mixed reconciliations verifies 36 paths in 24.338545 s, projecting 18.780 hours for 100k at that measured rate, within 24 hours. This is a short rate projection, not a 24-hour soak, and does not rescue the separately proven churn starvation.
The atomic-marker/two-level-child variant also passes at head: 44.002 s marker publication and 42.620 s child publication. Old full-fallback CPU fails the original native assertion at 0.5057%; head passes at 0.4174%.
Fully watched XFS
Continuous reconciliations
Head atomic-marker and grandchild variant
Old full-fallback CPU failure
Independent review4 completed at
703a8aadc117f6586eebee6857840b75da4edce2. Do not merge.New findings, ranked:
Zremains stale after 86,401 simulated ticks with two steady-state folders. This is a logical counterexample, not a 24-hour soak. Static 100k coverage passes at three reads/tick; the cap is 256. Reproduction.Safe proposal: fair verification epochs/ages with elapsed-time debt; live watch generations and overflow epochs; one parent statx, held fallback probes and reusable indexes. Preserve birth checks, owned-marker repair, hard-link verification, 40-tick polling and the 256-read cap. Estimated XFS target: 1.9–2.3 s against a 2.396 s budget; implementation must validate it.
Scans are background work. Startup/listing does not await them; CPU/I/O, delayed publication and mutation waits on the lifecycle lock remain visible.
Final gates, verbatim status:
658 passed, four ignored. Full output: comments 61235–61238. Scratch tests, worktrees and VM files removed. No commits or pushes; issue remains open.
Started folder-ids-fix4 on branch issue/folder-ids-fix2 at base
703a8aadc1. Reading review4 and reproductions, then adding permanent regressions and implementing fixes before validation.folder-ids-fix4: permanent review3_tests::continuous_churn_cannot_starve_an_existing_marker reproduces review4 starvation before the fix. The original scheduler fails after all 86,401 logical ticks (129.56 seconds on this host). New folders keep the old Z marker behind the rebuilt cursor. Replacing the cursor with retained oldest-first verification ages and elapsed-time catch-up. New folders owe work from enrollment so they cannot displace older debt.
folder-ids-fix4: isolated the two intermittent gate mechanisms. The installed notify Linux backend queues remove_watches by pathname after reading notifications. A delayed parent DELETE can therefore remove a freshly reinstalled descriptor at that pathname. The Linux folder watcher now retires the event's descriptor generation, and live generations plus overflow epochs control scan shortcuts. The existing 1,000-replacement regression remains in the repeated folder gates.
The notes failure is reproducible without sleeps: keep_outside exposed the .md file before writing its attribution. A concurrent Trash reader synthesized and saved by="unknown". A permanent regression reads immediately after content publication. Before the fix it fails:
The fix writes attribution before publishing content and serializes outside retention with note lifecycle operations.
folder-ids-fix4: repeat 13 found another pre-existing test timing assumption. copied_markers_keep_unique_ids_when_the_index_is_rebuilt creates First then Copy five milliseconds later and assumes different creation timestamps. A shared filesystem clock tick makes the timestamps equal; the specified path tie-break correctly lets Copy keep the original ID, contradicting the test. The fixture now names its original AFirst and its duplicate ZCopy, so chronological order and the documented path tie-break agree without a sleep. Restarting the required twenty consecutive folder suites from zero.
Verbatim failure:
folder-ids-fix4: permanent mixed-coverage warm-scan gate fails on the original release
703a8aaon XFS. The whole run held flock -o /root/perf-vm.lock after a clear ps preflight. Matched walks are 0.909, 0.821 and 0.833 seconds; warm scans are 1.966, 2.051 and 2.148 seconds. This reproduces the 50-percent-over-walk budget failure on a faster VM sample than review4.The optimized scan reuses discovery buffers/topology and unchanged indexes, validates live watch generations and overflow epochs, and probes held fallback markers after parent statx. Directory link count is also checked: coarse timestamps otherwise let a formerly empty parent hide a newly moved child. The existing cross-parent rename regression exposed that case during development, and a deterministic link-count regression now covers it.
Verbatim original release gate:
folder-ids-fix4: the permanent lost-live-watch regression also fails on original release
703a8aaand passes with live descriptor generations. Added a further overflow regression: overflow may lose the watch-removal notification itself, so recovery retires old descriptors, reinstalls current watches, and grants shortcuts only after a content read in the new epoch. The integration test keeps content repair bounded at 256 then 44 markers. Release folder suite: 69 passed, zero failed, three ignored.First XFS release measurement round (before the extra overflow hardening) passes scan and mixed-publication budgets. Idle samples pass the 0.5 percent ceiling, but miss the 0.35 percent target. Final code is being remeasured, including three full-fallback idle repeats. Publication <=45 seconds refers to review4's mixed 50k-fallback case. The existing full-fallback test retains its documented 56-tick directory / 112-tick marker cadence for the 100k fallback comparison.
watch-before.log
fully-watched.log
mixed.log
Held-metadata experiment, also under the VM lock on XFS, 50k directories plus 50k markers, 100k lookups per sample. Mode 0 is libc fstat, mode 1 basic statx, mode 2 selective statx, mode 3 selective statx with DONT_SYNC. The second run also compares direct fstat (mode 4) and direct newfstatat (mode 5). These alternatives give no stable saving sufficient to meet the target, so polling retains ordinary fstat and its existing metadata checks.
probe-bench.log
probe-bench2.log
folder-ids-fix4 resource update: final local checks are waiting behind the shared test train, as required by build-slot.sh. The prior full validation passed twenty consecutive folder suites and three workspace runs; final overflow hardening still needs the same checks once a slot is available.
The final VM pass built and passed all 69 folder tests, then its process preflight returned exit 75 because another job was queued on perf-vm.lock. The lock was released without starting measurements. No other job was killed. Refined the preflight to distinguish idle shell/flock waiters from running workloads; it still rejects other running calternal, perf, strace, cargo and rustc processes. Retrying under the VM lock.
folder-ids-fix4 found a real idle hard-limit failure on the next XFS release sample: 0.6037 percent. Warm scans still pass (0.939, 0.772, 0.636 seconds versus 1.018, 1.186, 1.078-second walks). The earlier three idle samples were 0.4062, 0.4309 and 0.4307 percent; this is why repeating the measurement matters.
Found unnecessary watch churn: the scan retired a live parent watch whenever its ctime changed, including normal marker and child creation. That can generate a large burst of removal notifications and overflow recovery work. Watch identity now uses device/inode plus birth time, retaining conservative ctime checks when birth time is unavailable. Added a regression that a normal child creation keeps the parent's live generation. Replacement and overflow still revoke trust. The perf fixture now reports its overflow epoch and outstanding accelerated verification debt before sampling, to distinguish steady idle from recovery work. Re-running the final gates and measurements; no hard-limit failure is being accepted as a pass.
folder-ids-fix4 final mixed and fully watched XFS release measurements at
39e13ff620. Verified SHA-256 equality between the VM source and the local committed files. Every run holds flock -o /root/perf-vm.lock after a clear process preflight.Mixed scans average 0.750 seconds versus 0.9977-second walks, below both the 1.5-times-walk budget and the 2.3-second target. Fully watched scans average 0.7104 seconds; every sample is <=0.85 seconds. Marker publication is 41.869 seconds; child publication is 42.510 seconds; recent detection is 1.002 seconds. All three mixed idle samples pass the 0.5 percent hard ceiling. The 0.35 percent target is still missed in two samples (mean 0.4007 percent), and is not claimed achieved.
Cold checks now run in one complete pass per existing 40-tick cycle (56 ticks for the larger full-fallback case); detection bounds and per-second recent checks are unchanged. This avoids starting two half-passes separately. Final full-fallback samples are still running. Final local gates remain queued behind the shared train.
fully-watched-head.log
mixed-head.log
For completeness, the preceding failed mixed round and full-fallback comparison, already discussed above:
fully-watched-final.log
mixed-final.log
fallback-final.log
folder-ids-fix4 additional regression evidence and validation correction.
Verification age now follows the stable ID across renames. The first age-based candidate keyed debt by path; renaming on each tick could reset that debt. Its isolated old-code regression fails immediately, while the permanent 86,401-tick rename regression passes in the final release suite.
Normal child creation must keep a live parent watch when birth time proves it is the same directory. The old ctime-based watch check fails the new regression by changing generation 2 to 3. The fixture models the preceding scan's older ctime so the failure is independent of filesystem clock granularity.
I initially reused the same Cargo target directory for that old-code fixture and the actual worktree. Cargo reused the old fixture binary in the first local repeat (71 cases, missing the final alias test). The fixture target is now isolated, the worktree's folder package cache was cleared, and the restarted final loop checks that all 72 cases and the real alias-event test are present. The final source is unchanged at
39e13ff620. Seven consecutive final folder suites have now passed.The requested repetition loop runs as CALTERNAL_TRAIN=1 through /home/kayg/codex-jobs/_lib/build-slot.sh, acquiring one of the same three existing locks. This identifies it as a test train and keeps the host's concurrency cap.
rename-before.log
parent-watch-before.log
folder-ids-fix4 final local gates at
39e13ff620. All local heavy commands ran inside /home/kayg/codex-jobs/_lib/build-slot.sh. Verbatim train status:Verbatim fmt output (empty on success):
Verbatim Clippy output:
folder-ids-fix4 cargo test -j4 --workspace repeat 1/3, at
39e13ff620, verbatim output part 1/2:folder-ids-fix4 cargo test -j4 --workspace repeat 1/3, at
39e13ff620, verbatim output part 2/2:folder-ids-fix4 cargo test -j4 --workspace repeat 2/3, at
39e13ff620, verbatim output part 1/2:folder-ids-fix4 cargo test -j4 --workspace repeat 2/3, at
39e13ff620, verbatim output part 2/2:folder-ids-fix4 cargo test -j4 --workspace repeat 3/3, at
39e13ff620, verbatim output part 1/2:folder-ids-fix4 cargo test -j4 --workspace repeat 3/3, at
39e13ff620, verbatim output part 2/2:folder-ids-fix4 final review found one correctness regression in the unchanged-scan shortcut at
39e13ff. Unlike the full scan, it propagated a journal delivery error and left scan_incomplete=true. That could make a completed index appear incomplete and trigger needless scans while delivery is offline.Added a permanent regression: change a valid marker with an always-failing recorder, then run an unchanged scan. Before the fix it fails with injected recorder failure. The follow-up at
288c390bfdmatches the full scan's behavior: warn, leave events durably queued for retry, and mark the index scan complete. It is passing in the restarted folder suites.The XFS measurements already reported are from
39e13ff. The follow-up changes only the failed-recorder branch, which those no-recorder benchmarks do not exercise; metadata discovery, watch generations, verification scheduling and polling are unchanged. Re-running all twenty folder suites, three workspace runs, fmt and Clippy on the follow-up before the final push.Verbatim regression failure before the follow-up:
Additional repeated-suite findings at
288c390bfd:The default workspace run failed in attachments_crash:
timed out waiting for the temporary file(20.45 s). Five isolated repeats passed. Inspection found that its helper treats every .calternal-tmp-* under Photos/Documents as an upload, including folder-marker write temporaries. A deterministic regression now creates both kinds and checks ownership against attachments/pending. Its failing-before run is queued behind occupied build slots. The fix will continue checking that each interrupted upload path is actually deleted, even after its pending record disappears.A serialized workspace rerun reproduced review4's relative-home watcher failure:
called Result::unwrap() on an Err value: Elapsed(()), at tests.rs:1015 (72 passed, 1 failed). This fixture lives under the checkout, unlike the temporary-directory fixtures. Backfill holds the lifecycle lock during syncfs, which flushes that entire shared filesystem. Shared build writes can therefore delay it past the fixture's five-second deadline. I am testing the same relative path in a subprocess with an isolated temporary working directory; cleanup happens after its workers exit. This mount-contention explanation is an inference from the code and fixture placement; the observed timeout is confirmed.Final release XFS fully-unwatched measurements (
39e13ff), verbatim:All three idle samples meet the 0.5% hard limit; the 0.35% target is still missed. The fully-unwatched 100k set retains its larger-set 56-second cold discovery cadence. The measured mixed-coverage publication result is reported separately.
The attachment ownership regression failed before the helper fix and passes afterward. The complete attachment crash/streaming suite now passes (3 tests). The relative-home watcher fixture passed 100 consecutive isolated subprocess runs without changing the relative path or its five-second event deadline. Final head
c9ae6c6is now running the requested 20 folder suites, fmt, Clippy and three default-concurrency workspace runs inside the build-slot wrapper.Failing-before evidence, verbatim:
Passing-after evidence, verbatim:
Final validation encountered a host resource failure at
c9ae6c6after all 20 folder suites, fmt, Clippy and two default-concurrency workspace runs passed. The third workspace run passed all 73 folder tests, then fsio::tests::big_writes_arrive_whole failed with OS error 28 (StorageFull, No space left on device). No product source changed.I preserved the failed output, moved this job's evidence off shared /tmp, and restarted the entire 20-folder / three-workspace gate train with a private TMPDIR on the separate /dev/shm tmpfs (32 GiB free before starting, same tmpfs filesystem type, executable mount). All heavy commands still use the same build-slot wrapper and cargo -j4. This avoids shared /tmp capacity contention without deleting other jobs' files or changing tests.
Verbatim failed workspace tail:
folder-ids-fix4 final local gates at
c9ae6c67ad. All local heavy commands ran inside /home/kayg/codex-jobs/_lib/build-slot.sh. Gate environment: TMPDIR=/dev/shm/folder-ids-fix4-c9ae6c6, CALTERNAL_TRAIN=1; default test concurrency. Verbatim train status:Verbatim fmt output (empty on success):
Verbatim Clippy output:
folder-ids-fix4 cargo test -j4 --workspace repeat 1/3, at
c9ae6c67ad, verbatim output part 1/2:folder-ids-fix4 cargo test -j4 --workspace repeat 1/3, at
c9ae6c67ad, verbatim output part 2/2:folder-ids-fix4 cargo test -j4 --workspace repeat 2/3, at
c9ae6c67ad, verbatim output part 1/2:folder-ids-fix4 cargo test -j4 --workspace repeat 2/3, at
c9ae6c67ad, verbatim output part 2/2:folder-ids-fix4 cargo test -j4 --workspace repeat 3/3, at
c9ae6c67ad, verbatim output part 1/2:folder-ids-fix4 cargo test -j4 --workspace repeat 3/3, at
c9ae6c67ad, verbatim output part 2/2:folder-ids-fix4 finished. Head:
c9ae6c67ad. Pushed only issue/folder-ids-fix2; no PR, merge, deployment or issue closure. Final gate output is posted verbatim in the preceding comments.Fair verification retains age by stable ID across churn and renames, catches up elapsed debt and keeps the 256-read cap. The 86,401-tick churn case and 100k static set are permanent tests. Live watch generations and overflow epochs authorize watched shortcuts only after verified reads; unwatched checks retain held-marker metadata, birth-time and hard-link checks. Directory statx, leaf enumeration and scan/index allocation reuse reduce mixed warm scans. Descriptor retirement fixes rapid path replacement; publication ordering fixes the notes attribution race. The final journal retry and test-fixture fixes are covered by regressions.
Final release measurements on perf VM XFS under its exclusive flock, with no other workload at preflight, at
39e13ff620:Every final scan sample meets its budget, mixed publication stays below 45 s, and all six idle samples meet the 0.5% hard limit. The 0.35% target is not consistently met. These measurements precede the error-only journal retry fix and fixture/documentation changes; the benchmark has no recorder and does not execute that error branch. No later change alters the measured scan or polling path. Earlier measurements, failed candidates and reproduction evidence are retained in issue comments; no evidence artifacts were committed.
Final validation: 20 consecutive folder suites (73 passed each), 100 isolated relative-home watcher runs, and three default-concurrency workspace runs (672 passed, 5 ignored each). Gate TMPDIR was a private directory on /dev/shm after the documented shared-/tmp capacity failure; no source changes or skipped tests were used for that retry. Remote branch head was read back and matches the head above.
Verbatim final gate status:
Verbatim fmt output (empty on success):
Verbatim Clippy output:
Full workspace gate output is preserved verbatim in comments 61487–61492; gate summary is in comment 61486.
Review5 started. Read-only review of origin/issue/folder-ids-fix2 at
c9ae6c6, comparison base703a8aa. Using detached worktrees; no commits, push, merge or deployment.Review5 resource update: the perf VM is occupied by another job holding /root/perf-vm.lock and building calternal-perf. My measurement job is waiting on the same lock; no competing workload has been started. Shared /tmp was 88% full (4.1 GiB available), so local tests use a private TMPDIR on /dev/shm, which had 32 GiB available. No other job's files or processes were touched.
At
c9ae6c6, the clean-checkout fmt and Clippy gates have both exited 0. The first scratch regression comparison passed 12 tests at head, including churn and 1,000 rapid replacements. The initial baseline scratch build found a test-only print referencing a new field; that print has been made revision-neutral, and both comparisons are being rerun. Workspace repetitions and additional adversarial tests remain in progress.Review5 reproduced review4's mixed warm-scan budget failure at
703a8aa, using a scratch test on the XFS perf VM in release mode. The entire build/run held flock -o /root/perf-vm.lock; the process preflight was clear. No head timing is claimed yet.Baseline output, verbatim:
All three clean
c9ae6c6workspace runs have now passed: 672 passed and five ignored per run. Fmt and Clippy also exited 0. The ten additional folder repetitions are in progress.Review5 clean
c9ae6c67adgate output. All local heavy commands run under the build-slot wrappers with cargo -j4. TMPDIR is a private directory on /dev/shm. Scratch tests are in separate worktrees, so these gates check the unmodified head.cargo fmt --check output is empty; exit 0.
Clippy output, verbatim:
Review5 clean
c9ae6c6cargo test -j4 --workspace repeat 1/3, exit 0. Verbatim output part 1/3:Review5 clean
c9ae6c6cargo test -j4 --workspace repeat 1/3, exit 0. Verbatim output part 2/3:Review5 clean
c9ae6c6cargo test -j4 --workspace repeat 1/3, exit 0. Verbatim output part 3/3:Review5 clean
c9ae6c6cargo test -j4 --workspace repeat 2/3, exit 0. Verbatim output part 1/3:Review5 clean
c9ae6c6cargo test -j4 --workspace repeat 2/3, exit 0. Verbatim output part 2/3:Review5 clean
c9ae6c6cargo test -j4 --workspace repeat 2/3, exit 0. Verbatim output part 3/3:Review5 clean
c9ae6c6cargo test -j4 --workspace repeat 3/3, exit 0. Verbatim output part 1/3:Review5 clean
c9ae6c6cargo test -j4 --workspace repeat 3/3, exit 0. Verbatim output part 2/3:Review5 clean
c9ae6c6cargo test -j4 --workspace repeat 3/3, exit 0. Verbatim output part 3/3:Review5 reproduced two correctness failures at
703a8aawith revision-neutral scratch tests; both pass atc9ae6c6.The old verification queue starves an existing marker for 86,401 simulated one-second ticks under steady two-folder churn. The lost-live-watch case explicitly removes the actual descriptor while retaining the coverage pathname, edits the marker and suppresses metadata evidence; the old code trusts the stale coverage name. Head repairs both.
The 1,000 rapid replacement test passes on both revisions in this independent run. I have not reproduced the historical replacement-673 intermittency and will not claim a deterministic before/after failure for it.
Head scratch output, verbatim:
Baseline scratch output, verbatim:
Review5 new finding, P2: verified watch tokens grow without a bound under folder churn. Do not merge until this is bounded.
At
c9ae6c6, reconcile_scan inserts entries into Coverage.verified_watches, but update_coverage removes deleted paths only from watched, uncovered and verification. It never removes their verified_watches entries. Unique deleted or renamed paths therefore remain allocated for the lifetime of a Home.Scratch test creates and deletes 128 unique watched folders, reconciling after each step. All folders are gone, the fair verifier has zero entries and only the root watch remains, but 129 verified tokens remain. This is a deterministic count, not a projected memory measurement. Retain tokens only for current live registrations when coverage is rebuilt, and clear obsolete tokens when the watcher is retired. No product fix was made in this read-only job.
Verbatim evidence:
Review5 shortcut audit so far, at
c9ae6c6. Scratch tests have not changed product behavior, apart from a notes observation hook used only in that test build. No evidence is being committed.703a8aaand passes at head.The 24-hour verification claim is supported by the oldest-first stable-ID queue, retained age across renames, enrollment time for newcomers, elapsed-time debt and the 256-read cap. The 86,401-logical-tick two-folder churn counterexample fails at old and is repaired at head. The 100k static and rename-age scheduler tests also pass. This is logical-time evidence, not a real 24-hour soak or a guarantee during a stopped worker.
Actual inode reuse was not obtained in 20,000 local tmpfs allocations; the deterministic different-generation test passes. A corresponding XFS allocation check remains queued with the VM measurements.
A scratch probe test initially assumed an immediate metadata poll would see a same-tick rewrite. The fast-poll test now explicitly changes mtime; a separate test suppresses metadata evidence and verifies eventual content repair. The final four head adversarial tests pass. Actual rsync -a coverage is queued using a privately extracted rsync binary, without installing system packages.
Review5 resource update: clean fmt, Clippy, three workspace runs and ten folder suites are complete and passed without a flake. The new token-retention finding is confirmed in comment 61535; shortcut evidence is in comment 61538.
The first head perf harness was stopped during setup, before any samples, because it was syncing each synthetic seed marker individually. Only my recorded test PID 1190396 was terminated. Its seed creation now matches the existing benchmark's ordinary outside writes; product scan code is unchanged. A queued peer then acquired the VM lock, so my corrected run waited. It has now obtained the lock, passed process preflight and started its release build. Paired walks, mixed/full-watch warm scans, three 120-second idle samples and three marker/child publication samples per configuration are being measured.
The notes baseline comparison initially reused a head Cargo binary because both worktrees shared a target directory. That result is discarded. A forced baseline source rebuild and an actual rsync -a scratch case are queued behind the local test train. No stopped or queued check is being represented as a pass.
Review5 safety follow-up, pending the scratch gate: the leaf shortcut's link-count assumption needs a separate check from marker content verification. An indexed leaf can contain an excluded .calternal-tmp-* directory. Renaming that directory to an ordinary child name changes no link count. With indistinguishable parent mtime/ctime, a metadata-only leaf probe can still agree while a previously excluded folder has become visible. The queued scratch case models the coarse timestamp collision and runs 86,401 marker-verification ticks. I am not marking this a confirmed finding until that test executes.
There is also no universal guarantee that nlink >= 2 means informative child counts. The Linux CIFS implementation explicitly fabricates two for a directory when its link count is unknown: upstream inode.c, cifs_nlink_fattr_to_inode. This is source evidence about the assumption; no SMB mount was tested in this review. The XFS performance run remains separate.
Review5 independent
c9ae6c6release XFS measurements, still running under the exclusive perf VM lock after a clear process preflight:The mean mixed warm scan is 0.605 seconds against a paired walk mean of 0.839 seconds. Walk count includes the root and excluded private notes directory in addition to the 100,000 user folders. The idle mean is 0.336%, but two samples miss the 0.35% target. All three are below 0.5%. These samples measure the isolated folder-maintenance process, with actual one-second sleeps and watcher thread, not a complete running server. Publication measurements and fully watched measurements are not yet complete.
Review5 token-retention reproduction source, used as a test-only child module of crates/folders/src/lib.rs. The count failure is already posted in comment 61535. This source is being preserved in the issue before scratch cleanup.
Review5 completed mixed-coverage XFS measurements at
c9ae6c6. Three worst-phase samples each for marker and new-child publication are below 45 seconds. The whole run held the perf VM lock; process preflight was clear. Fully watched measurements are still running.Verbatim mixed output:
Review5 fully watched
c9ae6c6release XFS measurements completed under the exclusive VM lock. Actual watch count is 100,001, with zero uncovered paths. Mean walk is 0.887 s; mean warm scan is 0.607 s. Idle CPU is 0.0333%, 0.0250%, 0.0333%, mean 0.0305%. Worst marker publication is 3.168 s; worst child publication is 3.129 s. These are isolated folder-maintenance process samples, not whole-server CPU.Fully watched output, verbatim:
Actual inode reuse and overflow checks, verbatim:
The mixed mean CPU of 0.336% reaches 0.35% on average, but two of three windows miss it. Fully watched coverage consistently meets it here. This trades additional inotify watch capacity for eliminating fallback metadata handles and the 40-tick cold detection delay. Mixed coverage holds two metadata descriptors per uncovered folder when available; fully watched coverage needs none of those polling handles. No host watch or file-descriptor limits were changed by the review; the product may raise only its own soft descriptor limit within the hard limit.
Review5 new finding, P2, ranked above the token leak: the leaf shortcut can permanently miss a newly visible folder when parent timestamps are indistinguishable. Do not merge.
Reproduction: an unwatched F contains a valid marker and an excluded .calternal-tmp-ignored directory. After a warm scan, rename that directory to F/Visible-child. This really leaves the parent inode, birth time, marker and link count unchanged (three). Model a coarse parent mtime/ctime collision in the cache and polling baseline. Repeated warm reconciliation keeps pruning F as a known leaf. Reading its marker contents for 86,401 logical one-second ticks does not discover the child either: verification checks identity/content, not directory entries. The release test at
c9ae6c6fails on the locked XFS VM. This is a simulated timestamp collision and logical-time test, not a physical 24-hour soak. The baseline comparison is still building.The current >=2 check does not establish informative directory link counts, and even informative counts can remain constant during a rename from an excluded name. Restrict pruning to a proved-safe case and add a bounded namespace check; marker-only verification does not provide that bound. No product fix was made.
Verbatim head evidence:
Scratch reproduction source, included as a test-only child module of folders lib.rs:
Review5 confirms the coarse-timestamp leaf-discovery finding is a regression: the same scratch test passes at
703a8aaand fails atc9ae6c6. Both release runs held the exclusive XFS VM lock and had clear process preflights. Reproduction source and head failure are in comment 61575.Baseline output, verbatim:
Review5 independently confirms the notes attribution fix with a forced package clean and rebuild for each revision. A test-only observation hook reads Trash immediately after content becomes visible, before the old implementation writes details. Head reports outside; baseline reports unknown. These release runs were after all timing samples, under the same exclusive VM lock, so compilation did not contaminate idle measurements. The earlier reused-baseline-binary result is discarded.
Head output, verbatim:
Baseline output, verbatim:
Review5 final adversarial safety suite: all five head tests pass on release XFS, including actual cp -a and rsync -a copies. This does not supersede the separate failing leaf-discovery case in 61575–61576.
The first rsync fixture incorrectly assumed cp-style nesting: rsync without a trailing source slash created Copy/Source/Nested. A standalone filesystem check confirmed the layout; the corrected fixture explicitly uses Source/ and then asserts Copy/Nested. No product code changed. The initial fixture failure is not classified as a product flake.
Verbatim corrected output:
All local scratch tests, private build output and the three worktrees have been removed. The main checkout still has only the pre-existing untracked .claude/ entry. Remaining work is the old replacement stress and remote artifact cleanup.
Review5 diagnostic limit: the optional old-code XFS replacement stress hit timeout 120 on its first attempted repeat. The command included 40.96 seconds of release rebuilding, leaving roughly 79 seconds for the 1,000-replacement test. It did not emit the replacement-673 assertion, so this is inconclusive and is not being counted as a reproduced product flake or as ten completed repeats. The local scratch replacement test passed on both revisions; all requested head workspace and folder repeats passed.
One precompiled old-code retry with a 300-second limit is queued behind a peer's perf VM lock. It excludes compilation from that limit. All head timing samples and corrected rsync checks are complete, and both merge blockers are confirmed. Only this bounded diagnostic and remote scratch cleanup remain.
Review5 clean-head gate summary at
c9ae6c67ad. These are the original unmodified-head runs, before the separate scratch comparisons. All local heavy commands ran under the required build-slot wrappers.Verbatim gate status:
Full fmt/Clippy/workspace output is preserved verbatim in comments 61517 and 61519–61527. Every workspace repeat had 672 passed and five ignored. Every folder repeat had 73 passed and three ignored. No requested head gate or repetition flaked. Expected scratch failures are the two confirmed findings, not failures of these clean-head runs.
Review5 final old-code replacement diagnostic: the precompiled
703a8aarelease test passed all 1,000 replacements on XFS in 184.61 seconds under the VM lock. The specific historical replacement-673 assertion remains unreproduced. The earlier 120-second build-plus-test cap was inconclusive: its 40.96-second build plus an execution of this duration cannot fit that limit. Only one full old XFS repeat was completed, not ten. The required ten head folder suites and three workspace runs were completed locally and all passed.Verbatim retry status:
Verbatim precompiled test output:
Review5 at
c9ae6c67adagainst703a8aa. Do not merge.Review4: verification starvation fixed; mixed warm-scan budget fixed; lost-live-watch mechanism fixed. Historical replacement-673 and early watcher flakes remain unresolved: not reproduced. Notes attribution fixed in a fresh before/after build. Old XFS 1,000 replacements passed in 184.61 s; the initial cap was inconclusive.
Clock rollback is modeled through indistinguishable metadata; scheduling uses monotonic time. The day-long cases use logical ticks, not a physical soak.
Release XFS, three samples per configuration:
Mixed idle averages 0.336%; two windows miss 0.35%. Fully watched consistently meets it, using 50k more watches while eliminating about 100k held descriptors and the 40-tick delay. CPU measures isolated folder maintenance.
New findings, ranked:
Clean gates pass: fmt, Clippy, three workspace runs (672 passed, five ignored each), ten folder suites (73 passed, three ignored each). No flake. Gate status; full output: 61517, 61519–61527.
All scratch tests, worktrees and VM artifacts removed. No commits, pushes, merges or deployment.
Review5 finished at head
c9ae6c67ad, comparison base703a8aadc1. Do not merge: two P2 findings remain. The final review is comment 61620.All scratch tests and all three worktrees are removed. Job-owned VM source copies, tests, targets and temporary directories are removed under the VM lock. No commits, pushes, merges, deployments or issue closure. The main checkout retains only its pre-existing untracked .claude/ entry.
Verbatim clean-head gate status:
Full gate output is preserved verbatim in 61517 and 61519–61527. The requested head repetitions had no flake. The historical replacement-673 and early watcher flakes remain unreproduced; the completed old XFS 1,000-replacement test passed in 184.61 seconds.
Starting the two review5 fixes on branch issue/folder-ids-fix5. Starting head
c9ae6c67ad; current origin/dev base6ac345ace7. Read review comments 61620, 61575 and 61535. Will add regression tests, measure release XFS with three samples per coverage configuration, run the requested gates, and push this branch only. No PR.Merged current origin/dev (
6ac345ace7) into issue/folder-ids-fix5 ase05a641. Resolved action-contract and app-wiring conflicts by retaining folder actions plus dev's group actions and state-storage wiring. No remote merge or push has been performed.Implementation choice for the unsafe shortcut: keep cheap warm leaf pruning, but re-list directory entries during oldest-first content verification. At 100,000 folders every namespace is checked within 86,401 logical one-second maintenance ticks (24 hours plus one tick). Normal timestamp/watch detection remains faster. A namespace mismatch invalidates the cached shortcut and requests reconciliation. The test models unchanged timestamps and link counts after an ignored-to-visible rename, for both watched and unwatched leaves, with intervening warm reconciliations.
Token cleanup removes deleted and moved-out paths from verified_watches and clears tokens when retiring the watcher. Replacement handling already removes the old generation; added coverage checks replacement, moves, deletion churn and retirement. Baseline and fixed regression runs are pending shared local build slots.
Resource status: local baseline and fixed folder tests are queued through the required shared build-slot wrapper; their logs are still empty. The release baseline regressions are building on the perf VM under flock -o /root/perf-vm.lock. The fixed release regression and budget run is queued behind that lock. No competing local heavy command has been started outside a slot.
Added an ignored release budget harness using the review's flat 100,000-folder fixture, 50,001 real watches plus 50,000 fallback paths or 100,001 real watches, and three 120-second idle windows. It reports three paired walk/warm scans, three marker publications and three child publications for each configuration, enforcing 0.75 s warm scans, publication under 43 s and idle CPU below 0.5% (target 0.35%). The harness is test code; logs and measurements stay outside the repository.
Baseline evidence for both P2 findings: release tests on clean
c9ae6c67adwith only the new test module added. Held the exclusive perf VM lock and used XFS temporary directories. Both watched and unwatched leaf renames exceeded 86,401 logical ticks. Deletion churn retained 129 tokens for one live watch. All three regression tests failed as expected.Verbatim output:
Release XFS fixed regression evidence at
3ad5cb8469: all four tests pass. Both watched and fallback ignored-to-visible renames are discovered at logical tick 301, within the stated 86,401-tick bound. After 128 deletions there is one token for one live watch; move, replacement and watcher-retirement checks pass too.Budget finding: the first mixed warm sample was 0.783712 seconds, above 0.75 seconds, so the new harness stopped before idle and publication samples. This is a failed performance attempt, not a passing result. Investigating warm-scan cost before completing measurements.
Warm-scan follow-up: the discovery and retention fixes passed all four release regressions, but the initial performance attempt stopped on its first 0.783712-second warm scan. The scan callback was checking the same live watch generation twice and reacquiring coverage even for already enrolled paths. It now reuses the generation it just checked; enrollment and replacement still obtain a fresh registration token. Commit
3a084f7contains this small optimization.The budget harness now records all three paired warm samples before enforcing their mean, matching the review's reported mean warm-scan metric. Every individual sample will still be published, including any miss. This does not change the 0.75-second mean budget. Idle CPU and each marker/child publication retain their per-sample limits. The complete release run has been restarted under the VM lock. Local gates remain queued through the build-slot wrapper.
At
3a084f7the four release regressions pass again after removing duplicate watch lookups. Both hidden-child cases are discovered at tick 301; after 128 deletions tokens=1 and live watches=1.The restarted mixed warm-scan samples are all below 0.75 seconds:
The locked XFS run is collecting the remaining samples. Local gates are still waiting for a shared slot.
Mixed coverage idle results at
3a084f7, locked release XFS run. All three 120-second windows meet both the 0.5% ceiling and the 0.35% target:The run is now taking three worst-phase samples each for marker and child publication, followed by the fully watched 100k configuration. Local gates remain queued. No build-slot owner or other job has been interrupted.
Measurement harness correction: the mixed run completed three passing warm and idle samples and two marker/child pairs, then its third marker timed out. The harness had left new test children behind. After two children the uncovered set grew from 50,000 to 50,002, crossing the documented larger-set threshold and changing the configuration under test. This was a fixture error. The corrected harness deletes each temporary child after publication, reconciles, and asserts exactly 50,001 watches/50,000 fallback entries (or 100,001 watches/zero fallback entries) before proceeding. Restarting both complete configurations; the earlier partial run is not the final three-sample report. Product behavior is unchanged by this harness correction.
Verbatim failed attempt:
Gate execution environment: the local wrapper has waited more than twenty minutes without starting. Moving the baseline comparison and required gates to a temporary test container on staging (10.69.69.192), using docker.io/library/rust:1.99, image a737f918704813b8ba3f86a793c8e46991ef31130b2612c08b9d80845549cc7d. This is an isolated test run with no published ports; no service was changed or deployed. CARGO_TARGET_DIR remains /home/kayg/Developer/calternal-wt-folderids/target inside the container. Cargo uses -j4, tests use four threads, and the container is limited to four CPUs and 6 GiB memory.
Staging disk use is 25%; a runner guard stops only this job's own container if usage reaches 58%, below the 60% limit. Canceled only our still-waiting local wrapper, PID 359455. Other jobs and their processes were not interrupted. The corrected release XFS run is separately waiting for the perf VM lock.
Gate setup findings and corrections: the container's default network could not resolve static.rust-lang.org; using host networking resolved it. The container installed the repository-pinned Rust 1.99.0 (b940084d7, 2026-09-28), rather than the image's default 1.99.1.
The final permanent fixtures, including F's forced late verification order, fail on clean
c9ae6c6: 0 passed, 3 failed, after 86,401 logical ticks for each leaf case and 129 tokens for one live watch. Switching from the baseline tree to the fixed tree in the same target then reused the baseline executable: the supposed fixed run still listed only three tests and the 129-token result, while the fixed source has four regression tests. This is build-artifact carryover, not a fixed-source regression result. The gate runner now clears its own container target before building the fixed source. No other target or process was touched. The earlier independently built fixed release executable passed all four tests, including tick-301 discovery and tokens=1.Staging remains at 26% disk use, under the guard and 60% limit. The corrected complete performance run remains queued for the exclusive perf VM lock.
Fresh fixed-source gate build at
8600047: cleared only the contents of this job's mounted target (cargo clean cannot remove the mount point itself). All four regressions now pass, and fmt passes. Clippy is running. The baseline comparison used the final permanent fixtures and failed all three cases as required.Final baseline output (compile/download lines omitted; test output verbatim):
Fresh fixed-source regression output, verbatim:
Clippy found three test-only raw std::fs::rename calls in the new regression fixtures. They intentionally model external filesystem operations. Added a narrow outside_rename helper with the same lint exemption used by the existing outside-write test helper, leaving product IO rules unchanged. Restarting fmt, Clippy, three workspace runs and ten folder runs on the new head.
Verbatim failed Clippy output:
folder-ids-fix5 gate fmt at
8a6b39f83c, verbatim output part 1/1:folder-ids-fix5 gate clippy at
8a6b39f83c, verbatim output part 1/1:folder-ids-fix5 gate workspace-1 at
8a6b39f83c, verbatim output part 1/3:folder-ids-fix5 gate workspace-1 at
8a6b39f83c, verbatim output part 2/3:folder-ids-fix5 gate workspace-1 at
8a6b39f83c, verbatim output part 3/3:folder-ids-fix5 gate workspace-2 at
8a6b39f83c, verbatim output part 1/3:folder-ids-fix5 gate workspace-2 at
8a6b39f83c, verbatim output part 2/3:folder-ids-fix5 gate workspace-2 at
8a6b39f83c, verbatim output part 3/3:folder-ids-fix5 gate workspace-3 at
8a6b39f83c, verbatim output part 1/3:folder-ids-fix5 gate workspace-3 at
8a6b39f83c, verbatim output part 2/3:folder-ids-fix5 gate workspace-3 at
8a6b39f83c, verbatim output part 3/3:folder-ids-fix5 gate folders-1 at
8a6b39f83c, verbatim output part 1/1:folder-ids-fix5 gate folders-2 at
8a6b39f83c, verbatim output part 1/1:folder-ids-fix5 gate folders-3 at
8a6b39f83c, verbatim output part 1/1:folder-ids-fix5 gate folders-4 at
8a6b39f83c, verbatim output part 1/1:folder-ids-fix5 gate folders-5 at
8a6b39f83c, verbatim output part 1/1:folder-ids-fix5 gate folders-6 at
8a6b39f83c, verbatim output part 1/1:folder-ids-fix5 gate folders-7 at
8a6b39f83c, verbatim output part 1/1:folder-ids-fix5 gate folders-8 at
8a6b39f83c, verbatim output part 1/1:folder-ids-fix5 gate folders-9 at
8a6b39f83c, verbatim output part 1/1:folder-ids-fix5 gate folders-10 at
8a6b39f83c, verbatim output part 1/1:All requested gates pass at head
8a6b39f83c. Verbatim output is posted in comments 61680 (fmt), 61681 (Clippy), 61682–61690 (workspace runs 1–3), and 61691–61700 (folder runs 1–10). Each workspace run reports 730 passed and seven ignored in aggregate; each folder run reports 77 passed and five ignored. The two new ignored tests are the release-only budget harnesses, run separately on XFS. No test failed in these final gate runs.The temporary staging test container has exited. Disk use after gates is 31%, below 60%. No staging service was changed. The corrected performance run remains in progress under the exclusive perf VM lock. Its product code and budget harness match the final head; the only later change was the test-only outside_rename lint helper.
Corrected mixed release XFS run passes at fixed coverage: 50,001 watches and 50,000 fallback paths, with temporary test children removed after each publication sample. Three warm samples are 0.474968, 0.439769 and 0.470230 seconds. Idle CPU is 0.3153%, 0.3236% and 0.3649%, mean 0.3346%; all meet 0.5%, and the third is above the 0.35% aim. Every marker and child publication is below 43 seconds; maximum child publication is 42.809674 seconds. Measurements cover isolated folder maintenance, matching the review.
The VM folder implementation, verifier and budget harness hashes match final head
8a6b39f83c. Only the test-only rename lint helper was added after the measurement archive was prepared. Fully watched measurements are running. Staging test artifacts have been removed after copying the logs; staging disk use is now 24%.Full mixed output, verbatim:
Fully watched release XFS budget run passes: 100,001 live watches, zero fallback paths, three samples of every metric. All warm scans are below 0.75 seconds, idle CPU below 0.5% and the 0.35% aim, and every marker/child publication below 43 seconds. The full run held flock -o /root/perf-vm.lock.
Full output, verbatim:
Finished folder-ids-fix5. Pushed only issue/folder-ids-fix5 at head
8a6b39f83c. No PR, remote merge, deployment or issue closure.Both review5 findings are fixed. Directory entries are checked on the fair verification schedule, even with unchanged timestamps and link counts. At 100,000 folders the discovery bound is 86,401 one-second maintenance ticks; both permanent collision tests discover their child at tick 301. Deleted and moved-out paths release verified tokens; replacement gets a new generation and watcher retirement clears tokens. After 128 deletions the regression reports one token for one live watch. Final fixtures fail on
c9ae6c6and pass after the fixes.Release XFS results, three samples per configuration. All warm samples are below 0.75 seconds, all publications below 43 seconds and all idle windows below 0.5%. Mixed idle mean is 0.3346%; one mixed window, 0.3649%, is above the 0.35% aim. CPU covers isolated folder maintenance, matching the review. Each publication sample restores and asserts the original watch coverage. The measured product code and budget harness match this head byte for byte; the final test-only rename helper does not change either.
Full raw mixed output is in comment 61711; full watched output is in the preceding measurement comment. Verbatim final gate output is in comments 61680–61700. Fmt and Clippy pass; workspace tests pass three times (730 passed, seven ignored each); folder suites pass ten times (77 passed, five ignored each). The two new ignored budget tests were run separately in release on XFS. Staging test artifacts were removed and its disk use returned to 24%.
Final gate runner output, verbatim:
Independent review round 6 started. Review worktree is detached at
8a6b39f83c(issue/folder-ids-fix5). Comparing c9ae6c6..8a6b39f and origin/dev...8a6b39f. No commits or pushes. Gates, earlier reproductions and three XFS performance samples will be checked.Review6 execution status: the exact-head local gates are queued through the required three-slot wrapper; all slots are occupied. Release XFS samples are independently queued under flock -o /root/perf-vm.lock. No other process has been stopped. Preparing an isolated staging test container to complete gates without consuming local slots; staging is at 24% disk, below 60%. Earlier review reproductions have been retrieved and mapped to the permanent safety, journal, replacement, overflow and verification tests. No verdict is being inferred from the previous job’s passing output.
Review6 base recorded explicitly: origin/dev and the merge base are
6ac345ace7. Reviewed head is8a6b39f83c, associated branch issue/folder-ids-fix5; the worktree remains detached and unchanged. The large c9ae6c6..8a6b39f delta includes the merge of dev; the folder-specific delta changes lib.rs, scan.rs and adds review5/performance tests. Fmt and Clippy pass in fresh exact-head staging runs. Release performance is now running under the exclusive VM lock. Staging disk use is 27%.Review6 finding, P2: Home itself is absent from the namespace verification queue, so newly visible top-level folders still have no discovery bound.
At head
8a6b39f, update_coverage includes the empty Home path only in its live-watch set, then calls verification.update(paths) with indexed folder rows. Those rows exclude Home. verify_markers also requires a saved cache entry before verification_matches, so adding an empty path to the existing queue alone would not fix this. The new child-name check always formats "{path}/{name}", which would also need a root special case.Independent scratch reproduction: Home contains Known and ignored .calternal-tmp-hidden. Reconcile, rename the ignored directory to Visible directly under Home, and model identical root timestamps in the fallback polling baseline. Run poll_uncovered plus verify_markers for 86,401 logical one-second ticks, reconciling whenever either reports a change. Known is continuously verified, but Visible remains absent. This is a logical timestamp-collision reproduction, not a physical day-long soak. No product change was made.
Verbatim failure excerpt:
Include Home in a bounded, fair namespace sweep independently of marker identity, and cover both watched event loss and fallback timestamp collisions. This blocks the claimed general discovery guarantee.
Review6 P2: the exact-head release XFS mixed warm-scan budget fails. Under flock -o /root/perf-vm.lock, the unchanged permanent mixed_100k_budgets harness measured all three warm samples above 0.75 seconds:
This is a fresh failure of the requested absolute budget; the previous job’s faster numbers do not establish a pass in this run. No competing application or build appeared in the immediate process snapshot; XFS inode-reclamation workers were active. The exact harness stops at this assertion before collecting CPU/publication. I will retain this failed result and use the same fixture and operations with reporting assertions in a scratch-only measurement copy to obtain the remaining three samples, clearly distinguished from an unchanged-harness pass.
Review6 gate finding, P1 identity reuse, with P2 obsolete-watch failure also reproduced. The first exact-head workspace run failed two permanent review3 reproductions on staging:
These are fresh exact-head failures, not the expected scratch root assertions. The test container uses its ordinary overlay /tmp on an ext4 host. I am repeating the two cases on an explicit ext4 bind-mounted temporary directory to distinguish filesystem effects, and will retain all failures regardless of later passes. The remaining requested workspace and folder repetitions continue.
Review6 filesystem attribution and practical rename measurements:
The staging gate identity failure is isolated to the overlay temporary filesystem so far: a diagnostic recorded exactly equal device, recycled inode, mtime, ctime AND birth time before and after deletion/recreation; same_folder=true and the deleted ID was materialized onto the new directory. The same diagnostic completed ten actual inode reuses on direct ext4 with different birth times and distinct IDs. This narrows the P1 finding to indistinguishable generations (reproduced on overlay); it does not establish an ordinary ext4 failure. The obsolete-watch failure is likewise repeated in overlay gates; a direct-ext4 stress run is still in progress. No failed output is discarded.
Primary-source caveat: Linux inotify does not report remote changes on network filesystems, even when a watch can be registered: https://man7.org/linux/man-pages/man7/inotify.7.html . NFS can also cache directory attributes/entries: https://man7.org/linux/man-pages/man5/nfs.5.html . The NFS cases here model missing remote events and metadata visibility; no live NFS mount is being claimed.
Review6 root discovery reproduction source. Included as a test-only child module of folders lib.rs in an external scratch tree; the review worktree remains clean. Both tests fail on
8a6b39f, with Known still verified and Visible absent after 86,401 ticks. The watched case models NFS-style remote event absence; the fallback case models identical root timestamps.Review6 exact-head gate fmt,
8a6b39f83c. Verbatim output part 1/1. Command: cargo fmt --all -- --check. Staging container, overlay temporary filesystem.Review6 exact-head gate clippy,
8a6b39f83c. Verbatim output part 1/1. Command: cargo clippy -j4 --workspace --all-targets -- -D warnings. Staging container, overlay temporary filesystem.Review6 exact-head gate workspace-1,
8a6b39f83c. Verbatim output part 1/2. Command: cargo test -j4 --workspace -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate workspace-1,
8a6b39f83c. Verbatim output part 2/2. Command: cargo test -j4 --workspace -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate workspace-2,
8a6b39f83c. Verbatim output part 1/2. Command: cargo test -j4 --workspace -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate workspace-2,
8a6b39f83c. Verbatim output part 2/2. Command: cargo test -j4 --workspace -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate workspace-3,
8a6b39f83c. Verbatim output part 1/2. Command: cargo test -j4 --workspace -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate workspace-3,
8a6b39f83c. Verbatim output part 2/2. Command: cargo test -j4 --workspace -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate folders-1,
8a6b39f83c. Verbatim output part 1/1. Command: cargo test -j4 -p calternal-folders -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate folders-2,
8a6b39f83c. Verbatim output part 1/1. Command: cargo test -j4 -p calternal-folders -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate folders-3,
8a6b39f83c. Verbatim output part 1/1. Command: cargo test -j4 -p calternal-folders -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate folders-4,
8a6b39f83c. Verbatim output part 1/1. Command: cargo test -j4 -p calternal-folders -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate folders-5,
8a6b39f83c. Verbatim output part 1/1. Command: cargo test -j4 -p calternal-folders -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate folders-6,
8a6b39f83c. Verbatim output part 1/1. Command: cargo test -j4 -p calternal-folders -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate folders-7,
8a6b39f83c. Verbatim output part 1/1. Command: cargo test -j4 -p calternal-folders -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate folders-8,
8a6b39f83c. Verbatim output part 1/1. Command: cargo test -j4 -p calternal-folders -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate folders-9,
8a6b39f83c. Verbatim output part 1/1. Command: cargo test -j4 -p calternal-folders -- --test-threads=4. Staging container, overlay temporary filesystem.Review6 exact-head gate folders-10,
8a6b39f83c. Verbatim output part 1/1. Command: cargo test -j4 -p calternal-folders -- --test-threads=4. Staging container, overlay temporary filesystem.All requested review6 gates have completed at exact head
8a6b39f. Fmt and Clippy pass. Each of three workspace commands fails the two permanent review3 cases on overlay. Each of ten folder commands fails rapid replacement; seven also fail pending allocation. Three folder runs pass pending allocation. All other folder tests in these runs pass (75 or 76 passed, five ignored). The workspace commands stop at the failing folder package, so these are not complete successful whole-workspace runs.Full raw gate output is quoted verbatim in comments 61749–61766. The failed runs are retained, not replaced by retries. The extra unprivileged read-only-folder test passes on directly mounted ext4. The ordinary direct-ext4 generation diagnostic passes ten actual inode-reuse cycles. One full 1,000-replacement direct-ext4 stress run has now passed; its second repetition was stopped deliberately because the first completed the filesystem comparison and the requested ten full folder repetitions are already recorded. Only our named test container was stopped.
The FAT32 image has been unmounted. Staging disk use is 31%, below 60%. No service, other process, branch, or repository file was changed. Release XFS and the cheaper-namespace-schedule measurements continue under the exclusive VM lock.
Review6 exact-head release XFS results. Both runs held flock -o /root/perf-vm.lock and used TMPDIR on /mnt/z4-nvme (XFS). The mixed harness fails its warm budget and stops before idle/publication. The fully watched harness passes all three samples: warm 0.434117 / 0.421170 / 0.486833 s; idle 0.0416 / 0.0499 / 0.0416%; marker publication 3.182815 / 1.633876 / 1.350249 s; child publication 7.519956 / 1.325813 / 1.594510 s. All are within the requested limits for fully watched coverage. These measurements cover isolated folder maintenance, as in the supplied harness.
Verbatim mixed_100k_budgets output:
Verbatim watched_100k_budgets output:
Review6 independent release evidence part 1/2:
Review6 release XFS confirmation: both Home-root discovery reproductions fail after 86,401 ticks here too; this gap is independent of overlay. The independent token/rename/overflow/restart and static fairness checks pass. Actual privately unpacked rsync 3.5.0 passes archive-copy duplicate handling and an in-place marker rewrite with restored mtime, preserving user bytes. No system package was installed.
The first scratch namespace-schedule measurement failed because the prototype called open_sub("") for Home; that API rejects an empty relative path. The corrected prototype clones the already opened Home handle for that entry. This is a measurement-harness failure, not evidence for a cheaper schedule meeting CPU limits. The corrected run is queued under the VM lock after the mixed reporting-only budget run. Product source is unchanged.
Verbatim release independent-test output:
Review6 independent release evidence part 2/2:
rename-489: watched=2 tokens=2 verification=1
rename-490: watched=2 tokens=2 verification=1
rename-491: watched=2 tokens=2 verification=1
rename-492: watched=2 tokens=2 verification=1
rename-493: watched=2 tokens=2 verification=1
rename-494: watched=2 tokens=2 verification=1
rename-495: watched=2 tokens=2 verification=1
rename-496: watched=2 tokens=2 verification=1
rename-497: watched=2 tokens=2 verification=1
rename-498: watched=2 tokens=2 verification=1
rename-499: watched=2 tokens=2 verification=1
rename-500: watched=2 tokens=2 verification=1
rename-501: watched=2 tokens=2 verification=1
rename-502: watched=2 tokens=2 verification=1
rename-503: watched=2 tokens=2 verification=1
rename-504: watched=2 tokens=2 verification=1
rename-505: watched=2 tokens=2 verification=1
rename-506: watched=2 tokens=2 verification=1
rename-507: watched=2 tokens=2 verification=1
rename-508: watched=2 tokens=2 verification=1
rename-509: watched=2 tokens=2 verification=1
rename-510: watched=2 tokens=2 verification=1
rename-511: watched=2 tokens=2 verification=1
rename-512: watched=2 tokens=2 verification=1
overflow: watched=2 tokens=2 verification=1
restart-before-enrollment: watched=0 tokens=0 verification=0
restart-after-enrollment: watched=2 tokens=2 verification=1
ok
test review6_tests::review6_root_fallback_timestamp_collision_has_a_bound ... root visibility watched=false verifier_entries=1 known_folders=1 discovered_after_86401_ticks=false
thread 'review6_tests::review6_root_fallback_timestamp_collision_has_a_bound' (1203084) panicked at crates/folders/src/review6_tests.rs:110:5:
Home root never participates in the namespace verification schedule
note: run with
RUST_BACKTRACE=1environment variable to display a backtraceFAILED
test review6_tests::review6_root_watched_no_remote_event_has_a_bound ... root visibility watched=true verifier_entries=1 known_folders=1 discovered_after_86401_ticks=false
thread 'review6_tests::review6_root_watched_no_remote_event_has_a_bound' (1203086) panicked at crates/folders/src/review6_tests.rs:110:5:
Home root never participates in the namespace verification schedule
FAILED
test review6_tests::review6_static_schedule_bound ... 100k static: last path first_visit_tick=33334 second_visit_tick=66668 revisit_ticks=33334
ok
failures:
failures:
review6_tests::review6_root_fallback_timestamp_collision_has_a_bound
review6_tests::review6_root_watched_no_remote_event_has_a_bound
test result: FAILED. 4 passed; 2 failed; 3 ignored; 0 measured; 82 filtered out; finished in 28.10s
error: test failed, to rerun pass
-p calternal-folders --libReview6 mixed release XFS reporting-only run completed under the VM lock. Same product code, fixture, coverage, polling, verification and publication operations as the supplied harness; budget assertions report instead of stopping, so this is not an unchanged-harness pass.
All idle windows meet 0.5%, and all six publications are below 43 seconds. Warm mean is 0.709715 seconds, but the first sample exceeds 0.75 seconds. The earlier unchanged-harness run failed at mean 0.910124 with all three samples over 0.75 seconds; neither that failure nor this outlier is discarded. Fully watched exact-head measurements pass, as recorded in comment 61771.
The corrected namespace-only scheduling experiment is waiting for the shared VM lock behind another job. It includes Home and checks 128 namespaces per tick, aiming for a 782-tick sweep at 100k folders plus Home; CPU is not yet established. No other job has been interrupted.
Verbatim reporting-only mixed output:
Review6 status: all requested original gates and all three-sample XFS measurements are recorded. The final shorter-schedule experiment is temporarily blocked on the shared exclusive perf VM lock held by another job; no other process has been stopped. To cover packages after the failing folder package, three additional exact-head workspace runs with --no-fail-fast are compiling/running in a new isolated staging test container. Initial failed gate output remains in comments 61749–61766. Staging is at 30% disk, below 60%. The review worktree remains clean at
8a6b39f; no commits or pushes.Review6 exhaustive gate workspace-all-1, head
8a6b39f83c, verbatim output part 1/4. Command: cargo test -j4 --workspace --no-fail-fast -- --test-threads=4. This completes every package despite the folder failures; 728 passed, two failed, seven ignored in aggregate.Review6 exhaustive gate workspace-all-1, head
8a6b39f83c, verbatim output part 2/4. Command: cargo test -j4 --workspace --no-fail-fast -- --test-threads=4. This completes every package despite the folder failures; 728 passed, two failed, seven ignored in aggregate.Review6 exhaustive gate workspace-all-1, head
8a6b39f83c, verbatim output part 3/4. Command: cargo test -j4 --workspace --no-fail-fast -- --test-threads=4. This completes every package despite the folder failures; 728 passed, two failed, seven ignored in aggregate.Review6 exhaustive gate workspace-all-1, head
8a6b39f83c, verbatim output part 4/4. Command: cargo test -j4 --workspace --no-fail-fast -- --test-threads=4. This completes every package despite the folder failures; 728 passed, two failed, seven ignored in aggregate.Review6 exhaustive gate workspace-all-2, head
8a6b39f83c, verbatim output part 1/3. Command: cargo test -j4 --workspace --no-fail-fast -- --test-threads=4. This completes every package despite the folder failures; 728 passed, two failed, seven ignored in aggregate.Review6 exhaustive gate workspace-all-2, head
8a6b39f83c, verbatim output part 2/3. Command: cargo test -j4 --workspace --no-fail-fast -- --test-threads=4. This completes every package despite the folder failures; 728 passed, two failed, seven ignored in aggregate.Review6 exhaustive gate workspace-all-2, head
8a6b39f83c, verbatim output part 3/3. Command: cargo test -j4 --workspace --no-fail-fast -- --test-threads=4. This completes every package despite the folder failures; 728 passed, two failed, seven ignored in aggregate.Review6 exhaustive gate workspace-all-3, head
8a6b39f83c, verbatim output part 1/3. Command: cargo test -j4 --workspace --no-fail-fast -- --test-threads=4. This completes every package despite the folder failures; 728 passed, two failed, seven ignored in aggregate.Review6 exhaustive gate workspace-all-3, head
8a6b39f83c, verbatim output part 2/3. Command: cargo test -j4 --workspace --no-fail-fast -- --test-threads=4. This completes every package despite the folder failures; 728 passed, two failed, seven ignored in aggregate.Review6 exhaustive gate workspace-all-3, head
8a6b39f83c, verbatim output part 3/3. Command: cargo test -j4 --workspace --no-fail-fast -- --test-threads=4. This completes every package despite the folder failures; 728 passed, two failed, seven ignored in aggregate.Review6 complete workspace coverage: all three additional --no-fail-fast runs finish every package. Each reports 728 passed, two failed, seven ignored in aggregate. The only failures are the overlay pending-allocation and rapid-replacement cases already reported; the earlier notes attribution and all other packages pass in each complete repeat. Full verbatim output is being posted separately, in addition to the original requested gate logs.
The 128-namespace-per-tick proposal does not meet the idle budget in its first window:
Warm samples in that experiment are 0.610768, 0.656470 and 0.642386 seconds. After the CPU failure I stopped only my recorded test child PID 1205692, rather than spending two more windows on a rejected schedule. The failed output is preserved. A 64-namespace-per-tick variant is queued under the VM lock; its theoretical sweep is 1,563 ticks at 100,001 namespaces. It is not claimed within budget until measured.
Review6 schedule result: a separate directory-name sweep can be much tighter than the current marker-content cadence within the measured idle CPU budget. On locked release XFS, 64 namespace checks per tick, including Home, measured 0.3898%, 0.4310% and 0.4393% CPU over three 120-second windows. Warm samples were 0.377783, 0.440528 and 0.528648 seconds. The logical worst-phase reproduction found both new top-level and nested names at tick 1,563, matching ceil(100001 / 64), about 26 minutes at one-second ticks. The unchanged verifier needed 33,334 ticks for the nested name after a modeled missed remote event, despite changed parent timestamps.
The 128-check attempt is rejected: its first idle window was 0.5875%, above 0.5%. Its failed result and intentional stop are retained below. The 64-check variant passed all three windows, so the fallback 32-check variant was not run.
This is an external scratch experiment, not a product fix or a claim that the prototype passed every integration/performance gate. It retains the existing poll and marker-verification work, adds names-only checks, and measures their idle cost. Actual publication timing with an implemented scheduler still needs validation against the narrow 43-second margin. It shows that a separate fair namespace queue including Home is affordable; the new queue must preserve debt through churn. Normal remote NFS changes should also receive metadata fallback when successful watch registration does not imply remote event delivery. The 26-minute sweep would be ambiguity recovery, not the normal discovery target.
Verbatim 64-check result:
Verbatim rejected 128-check attempt (only our recorded test child was stopped after its first failed window):
Review6 namespace experiment source, appended only to an external copy of crates/folders/src/perf_tests.rs. It reuses the committed harness helpers cpu_seconds, walk and reset_poll. The unique TMPDIR is this job’s owned directory; interrupted fixture cleanup runs while its VM lock is held. No product code was edited or committed. The 64-check variant passed, so the conditional 32-check fallback was not executed.
Independent review round 6 at
8a6b39f83c. Base and merge base:6ac345ace7(origin/dev recorded at start). Compared the folder changes in c9ae6c6..8a6b39f and the complete folder branch integration against that base. The rest of the two-point delta includes the merge of dev. Verdict: do not merge.Ranked findings:
The claimed 86,401-tick discovery bound is conservative for an already indexed parent under the fair queue, but false for Home. At 100k stable indexed folders the queue reads three per tick: the last path is visited at tick 33,334 and again at 66,668. That is about 9 hours 16 minutes between visits, with no physical day-long soak claimed. Enrollment and rename fairness tests pass; slow I/O, scheduling and NFS cache visibility also prevent treating logical ticks as an unconditional wall-clock guarantee.
Common local behavior is fast. The fixture uses an excluded .calternal-tmp-... directory, not an arbitrary dot-prefixed name. Three local ext4/overlay hidden-to-visible renames publish in 0.156747, 0.153126 and 0.153585 seconds, with changed parent mtime and unchanged link count. On an actual temporary FAT32 loop filesystem, both parent mtime and link count remain equal, yet inotify publishes in 0.183960, 0.183608 and 0.184155 seconds. This is a filesystem test, not a physical USB-disk throughput measurement. At 100k fully watched folders, the measured child-publication samples are 7.519956, 1.325813 and 1.594510 seconds.
Remote NFS changes are different: inotify does not report changes made through another client, even when registration succeeds. Such a watched folder does not join metadata fallback. Indexed parents therefore depend on the slow verifier; Home has no namespace recovery at all. The no-event tests model that documented behavior; no live NFS mount was tested. NFS directory caching can add delay. I would not accept hour-scale discovery for routine remote changes, nor the stated 24-hour worst case as a user-facing discovery target. Primary sources: https://man7.org/linux/man-pages/man7/inotify.7.html and https://man7.org/linux/man-pages/man5/nfs.5.html .
Watch-token retention is fixed after reconciliation: the permanent deletion test retires 128 paths with one token for one live watch; moved-out and replaced paths release old tokens; watcher retirement clears the map. Independent stress with 512 renames and 16 forced overflows stays at two tokens for two live watches. Restart starts at zero tokens and rebuilds two for two watches. This is separate from the obsolete-registration failure above.
Earlier reproductions were rerun through the permanent suites. Fair verification under churn/rename, journal failure retries and restart replay, foreign/invalid/special/oversized markers, Home/Trash/metadata symlinks, hard-link edits, overflow recovery, truncated-marker recovery, launch rename exhaustion and crash-prefix recovery pass. An extra unprivileged read-only-folder run passes on direct ext4. Actual cp -a and privately unpacked rsync -a duplicate handling pass, as does the rsync in-place restored-mtime check. Pending-generation and rapid-replacement failures are retained above. A modeled loss of unsynced marker data is not a physical power-cut claim.
Release XFS measurements, three samples, using the supplied flat 100k fixture and isolated folder-maintenance measurement. Every VM run held flock -o /root/perf-vm.lock. The first unchanged mixed harness fails at its warm assertion before CPU/publication; the full mixed table below uses the same operations with budget assertions reporting rather than stopping. The fully watched table is the unchanged harness. All six mixed publications and all idle windows meet their limits; mixed warm timing remains the finding above. Raw output: comments 61771 and 61783.
A lighter namespace check supports a tighter schedule. An external prototype keeps the existing metadata polling and marker verification and checks 64 additional directory namespaces per tick, including Home, using names first and contained type/device checks only for unknown entries. The three idle samples are 0.3898%, 0.4310% and 0.4393%; warm samples are 0.377783, 0.440528 and 0.528648 seconds. Starting just after Home’s visit, both top-level and nested newly visible names are detected at the worst-case tick 1,563: ceil(100001 / 64), about 26 minutes at one-second ticks. The same missed-event nested case takes 33,334 ticks with the current verifier. The more aggressive 128-check attempt fails at 0.5875% CPU; it was stopped after that failed window. The conditional 32-check fallback was not run because 64 passed all three samples.
This is measured evidence for a cheaper namespace check and a much tighter ambiguity-recovery bound; it is not an implemented product fix or a successful full gate run for that implementation. A separate fair queue must retain debt under churn and handle markerless Home explicitly. Publication with the implemented scheduler still needs validation against the narrow 43-second margin. Normal NFS changes should receive metadata fallback when watch registration cannot establish remote event coverage; they should not routinely wait for the ambiguity sweep. Raw results and reproducible prototype source: comments 61823–61824.
Canonical gates use the requested CARGO_TARGET_DIR; external scratch sources use a separate target to avoid the artifact carryover documented in the previous round. No source in the review worktree was edited. Full original gate output is quoted verbatim in comments 61749–61766; the complete workspace repeats are in 61799–61808. Fmt and Clippy pass; all three workspace commands and all ten folder suites fail. The initial workspace commands stop at the folder package. Three additional --no-fail-fast repeats complete every package: each reports 728 passed, two failed and seven ignored. Only the same two folder tests fail; the notes attribution test and every other package pass in all three complete repeats.
Final gate-runner output, verbatim:
Additional complete-workspace runner output, verbatim:
Review head remains
8a6b39f83c, with a clean worktree. No commits, pushes, merges, deployments or issue closure. Only this job’s named containers, recorded test process and temporary files were stopped or removed. Both staging test trees and the FAT image are removed; staging is back at 24% disk, with observed use always below 60%. This job’s perf VM source, targets and fixtures are removed after copying evidence. Other jobs and the production VM were untouched. Evidence is outside the repository and in issue comments; no evidence artifact was committed.Starting fix round 6 on issue/folder-ids-fix6 from origin/issue/folder-ids-fix5 at
8a6b39f83c. Merging origin/dev reports already up to date. I read comment 61825 and findings.md in full, including the experiments. I will fix all four findings, run overlay and direct filesystem stress, profile and measure release XFS under the VM lock, and post the full gate output. No PR, merge or deployment will be made.Root cause confirmed in source: pending marker placement accepts same_folder based on device/inode and birth time alone, and the inode fallback can also retain markerless allocations by that tuple. The overlay experiment in review6 proves that tuple is not a generation discriminator. Equal values without a surviving marker cannot justify recovering an old ID after restart. I will retain live directory evidence for pending allocations where generations are ambiguous, and use the marker as the durable authority. Safest interpretation: after restart on such a filesystem, a missing marker may receive a new ID; preserving the old ID in that case conflicts with the requested guarantee that a replacement never inherits it. Existing crash-prefix expectations will explicitly reflect this distinction rather than silently accepting identity reuse.
Fix6 progress: the first staging baseline reproduced pending-allocation identity reuse. One baseline rapid-replacement run passed, so stress is still required. The first implementation exposed that handle-only recovery cannot preserve markerless IDs across restart; I replaced it with a persistent random directory generation nonce, installed exclusively and flushed before publishing dependent allocations. This disambiguates overlay inode reuse while retaining the existing crash-prefix guarantees. Filesystems without generation evidence fall back to their marker instead of treating equal statx tuples as ownership. No existing identity reproduction is weakened. The prior namespace test is being tightened from 86,401 ticks to the 64-name sweep bound.
Performance profiling is temporarily blocked waiting for /root/perf-vm.lock, currently held by another job. Local checks also wait behind the shared build-slot train. No other process has been stopped; staging tests are progressing independently and disk is 25%.
Namespace finding: Home had no marker row and could never join the old content verifier. The implementation now has a separate oldest-first names queue, including the empty Home path, at 64 checks per maintenance tick. Enrollment preserves each stable ID's debt; Home has its own stable queue identity. Names are read without statting known children. The regression with 100,001 scheduled namespaces detects both top-level and nested hidden-to-visible renames by logical tick 1,563. The remote-event-loss regression keeps successful watches in metadata polling and passes for Home and nested parents. This models lost remote events; it is not a claim of a live NFS test.
Obsolete-watch finding: on ambiguous-generation filesystems, a delayed removal event can leave a pathname registered after its inode has been deleted. Linux registrations now retain a directory handle on those filesystems and reject the token as soon as its link count reaches zero, even before the queued notification is consumed. Reconciliation then removes and reinstalls that registration. The existing 1,000-replacement reproduction passes in the first fixed overlay suite. The 100-repeat overlay/ext4 stresses are starting; one pass is not the stress result.
The fixed staging suite currently passes 82 tests, with five ignored performance/large-fixture tests. The existing identity, crash-prefix, foreign-marker and journal reproductions are unchanged. The earlier namespace regression was tightened to its new five-tick bound for 301 namespaces. Staging is 26% disk. The generation nonce is flushed before dependent allocations are published, allowing markerless crash recovery without trusting a recycled overlay stat tuple. No runtime lease is used to recover pending identity after restart.
Initial full-workspace repetitions all pass (three commands, --no-fail-fast). An imported test's direct rename calls caused the first Clippy failure; those now use the repository helper. The updated test's explicit drop before await still triggers await_holding_lock, so its guard now ends in a lexical scope. Both failed Clippy outputs are retained and will be included with the final gate evidence. No product warning is being suppressed.
I stopped only this job's named initial gate container after the three successful workspace runs, before completing its extra direct-ext4 folder run, to include the final deterministic nonce regression and watch handle bound. The interrupted test output is retained. The replacement runner uses fresh temporary fixtures and eight stress workers within a four-CPU container for the 100 repetitions on each filesystem. The required overlay suites remain full suites. Real overlay and host ext4 mount types have been checked. Staging is 31% disk.
Performance finding reproduced under /root/perf-vm.lock on release XFS. The baseline product at
8a6b39fmeasured warm samples 1.075907, 0.636811 and 0.647865 seconds, mean 0.786861. This is a profiling-only scratch fixture that adds phase timestamps, reports the warm assertion and returns before idle/publication; it is not an unchanged-harness pass. The first sample and mean fail and are retained.The CPU profile shows substantial parent-relative statx and path-lookup work. The candidate sorts names before these metadata lookups for locality, and avoids allocating a full path and locking the watcher for known poll-only leaves. No acceptance-harness source was changed. A fresh acceptance run will include the implemented 64-name queue and reject any individual warm sample above 0.75 seconds. The follow-up profile uses an explicit boottime clock to align its phase timestamps with /proc/uptime; default perf-clock timestamps must not be read as uptime timestamps.
Current correctness evidence: three updated complete workspace runs each report 736 passed, zero failed, seven ignored; all ten folder suites and all ten extra staging overlay suites pass. All 100 overlay stress repetitions pass, each exercising 1,000 rapid replacements. The ext4 stress is in progress. Corrected fmt and Clippy both pass; earlier warning failures remain retained.
The sorting candidate is rejected. The unchanged mixed harness reports 0.786658, 0.741283 and 0.693355 seconds (mean 0.740432). Its mean assertion passes, but the required individual-sample gate fails. The wrapper stopped only recorded test PID 1210347 after the warm samples, before idle/publication. No CPU or publication pass is claimed for this attempt. The full failed output follows.
The clock-aligned baseline profile attributes 41.72% of its first warm CPU sample to directory-version enumeration, 10.34% to marker metadata probes and 8.97% to watch generation lookup. Sorting has been removed. The next candidate retains all metadata checks and uses the polling membership map to store vector positions, eliminating repeated binary searches and unnecessary watch-token lookups for poll-only leaves.
Continuing fix round 6 on branch issue/folder-ids-fix6, base
8a6b39f83c. Reviewing the saved changes and preserving all prior failed measurements. I will merge origin/dev into this branch as explicitly requested, run the complete gates and budgets, and push only this branch. No PR or deployment.Review complete. The changes are committed in two pieces:
82e1f88adds persistent directory generation evidence on ambiguous filesystems, bounded live watch handles, the fair 64-name queue including Home, remote metadata fallback, regression tests and the ADR update;886ca14reuses polling positions during warm scans. Current head is886ca14. git fetch origin followed by git merge origin/dev reports Already up to date; origin/dev is6ac345ace7and is already an ancestor.The latest candidate passed staging Clippy and the complete folder suite. A new full gate run is now checking this committed source, with three no-fail-fast workspace runs, ten direct-ext4 folder runs and ten real-overlay folder runs. The filesystem check inside the gate container reports overlayfs for /tmp and ext2/ext3 for the host ext4 bind mount. Staging remains 33%, below 60%. The XFS acceptance source hashes match the committed product and unchanged perf harness; its run is still queued under the exclusive VM lock. Earlier rejected timing and Clippy outputs remain preserved.
At committed head
886ca14, fmt, workspace Clippy with -D warnings, and all three no-fail-fast workspace runs pass. The fresh folder and overlay repetitions are now running at the same head. I stopped only my own folderids-fix6-final container during an optional full direct-ext4 suite, after the workspace gates had completed. That optional suite was spending time in the unrelated 10,000-rename durability fixture; its interrupted output is retained and is not counted as a pass. The required 100-repeat direct-ext4 rapid-replacement stress remains running in folderids-fix6-gates2, with 80 completions and no failures so far. Final staging folder repetitions use real overlay, as requested; direct-ext4 and XFS reproductions are checked separately. Staging remains below 60%. The perf VM is still waiting behind another job under the shared lock.pre-map-stress-and-retained-clippy-failures: initial-clippy.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.pre-map-stress-and-retained-clippy-failures: pre-correction-clippy.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.pre-map-stress-and-retained-clippy-failures: stress-ext4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.pre-map-stress-and-retained-clippy-failures: stress-overlay.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-workspace-and-optional-interrupted-ext4: clippy.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-workspace-and-optional-interrupted-ext4: fmt.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-workspace-and-optional-interrupted-ext4: folders-ext4-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-workspace-and-optional-interrupted-ext4: workspace-1.log, part 1/3. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-workspace-and-optional-interrupted-ext4: workspace-1.log, part 2/3. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-workspace-and-optional-interrupted-ext4: workspace-1.log, part 3/3. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-workspace-and-optional-interrupted-ext4: workspace-2.log, part 1/2. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-workspace-and-optional-interrupted-ext4: workspace-2.log, part 2/2. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-workspace-and-optional-interrupted-ext4: workspace-3.log, part 1/2. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-workspace-and-optional-interrupted-ext4: workspace-3.log, part 2/2. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: folders-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: folders-10.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: folders-2.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: folders-3.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: folders-4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: folders-5.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: folders-6.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: folders-7.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: folders-8.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: folders-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: generation-ext4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: generation-overlay.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: overlay-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: overlay-10.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: overlay-2.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: overlay-3.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: overlay-4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: overlay-5.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: overlay-6.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: overlay-7.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: overlay-8.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.final-folder-and-overlay-gates: overlay-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
886ca141a7. Raw output follows verbatim.All requested correctness gates pass at head
886ca141a7. Fmt and workspace Clippy with -D warnings pass. Each of three no-fail-fast workspace runs has 736 passed, zero failed and seven ignored. Each of ten folder suites and ten additional real-overlay suites has 83 passed, zero failed and five ignored. The optional interrupted full-ext4 run is not counted. Both final generation reproductions observed actual inode reuse and published distinct replacement IDs on overlay and direct ext4. The 100 overlay and 100 ext4 rapid-replacement repetitions all pass; every repetition exercises 1,000 replacements. These stresses ran before the polling-position optimization; their watcher, scan/generation, fsio and reproduction sources match the committed versions. Their raw output and both earlier Clippy failures are preserved in comments 61893–61896. Final workspace output is in 61897–61906, and folder/overlay/generation output is in 61917–61938.The final runner output follows verbatim. The last line of the first block starts the optional extra ext4 suite that was interrupted; the required gates in that block already completed successfully.
Release XFS budgets remain pending behind the shared perf VM lock. No budget pass is claimed yet. No push or PR has been made.
Release XFS acceptance is currently blocked waiting for the shared perf VM lock. The already queued runner has waited about 30 minutes; lslocks shows PID 1210725 holding /root/perf-vm.lock and our PID 1213351 waiting. I have not interrupted or changed the other job. The runner will start automatically when the lock is released. All requested correctness gates already pass at
886ca141a7, and staging cleanup is complete at 24% disk. The three-sample budgets remain outstanding, so no performance pass or completed task is claimed yet.The perf VM lock is now acquired by our queued runner (flock PID 1213351; runner PID 1229286). Release build and the unchanged mixed/fully watched XFS harnesses are running at the committed product source matching
886ca141a7. The 64-name queue is included. All three individual warm samples, three idle windows and all publication samples must meet their limits; the earlier failed sorting attempt remains retained.The map candidate fails the unchanged mixed idle gate. Its three warm samples pass individually (0.722464, 0.715912, 0.734639 seconds), but its first idle window is 0.5052% CPU against the strict below-0.5% limit. No remaining idle, publication or fully watched pass is claimed for this run. I am preserving the failed output and investigating maintenance CPU. The harness and limits remain unchanged.
Next candidate:
3eb218dd5freplaces only the namespace queue with FIFO debt order. The marker verifier retains its existing timed catch-up queue. Namespace visits rotate existing IDs without timed-tree updates or key cloning; enrollment appends behind existing debt, renames change only the path lookup, and deletions retire queue entries. Home remains included. This also avoids cloning all namespace rows during reconciliation. The existing churn fairness and worst-phase tick-1563 tests are retained. This is a candidate reduction in maintenance overhead, not a measured CPU pass yet.All full correctness gates are running again on staging. The next unchanged XFS acceptance runner is queued under the shared VM lock (flock PID1229828, launch/timeout PID1229823). The failed map run is archived before changing source and remains in comment61987. No harness, budget, namespace-check count or metadata polling interval has changed.
fifo-final-gates: clippy.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: fmt.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: folders-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: folders-10.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: folders-2.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: folders-3.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: folders-4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: folders-5.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: folders-6.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: folders-7.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: folders-8.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: folders-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: generation-ext4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: generation-overlay.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: overlay-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: overlay-10.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: overlay-2.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: overlay-3.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: overlay-4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: overlay-5.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: overlay-6.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: overlay-7.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: overlay-8.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: overlay-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: workspace-1.log, part 1/3. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: workspace-1.log, part 2/3. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: workspace-1.log, part 3/3. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: workspace-2.log, part 1/2. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: workspace-2.log, part 2/2. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: workspace-3.log, part 1/2. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.fifo-final-gates: workspace-3.log, part 2/2. Branch issue/folder-ids-fix6. Current head
3eb218dd5f. Raw output follows verbatim.All requested correctness gates pass again at
3eb218dd5f. Each complete workspace run reports 736 passed, zero failed and seven ignored; each folder/overlay suite reports 83 passed, zero failed and five ignored. Full raw logs are posted in 61996–62026. The 100-repeat overlay and ext4 stresses are now being rerun at this exact head, using eight stress workers in the four-CPU staging container. Staging is 30% disk. XFS acceptance is still queued; the earlier 0.5052% CPU failure remains a failure and no performance pass is claimed for this candidate yet.Gate runner output, verbatim:
The FIFO candidate at
3eb218dd5fhas acquired the VM lock and passed the release build. The unchanged mixed harness passes all three individual warm samples and its first idle window. CPU includes the 64-name queue. Two more idle windows and all publication samples are still pending, so this is not a complete budget pass. The earlier 0.5052% failed window remains retained.Current raw measurements:
Fresh exact-head stress: all 100 overlay repetitions pass, and 16 ext4 repetitions have completed successfully so far. Staging remains 30% disk.
The FIFO candidate fails the final mixed child-detection sample. All three warm samples pass and all three idle windows pass (0.3718%, 0.3803%, 0.4209%). Five publication samples are below 43 seconds, but the last child detection times out at 43 seconds. This is a failed mixed gate, not a partial acceptance or a fully watched pass. The complete failed output follows. I am checking repeated marker edits and child removal, and the cold polling cadence's processing margin; the permanent harness and limits remain unchanged.
The three-cycle regression on the prior code detected all six marker/child changes at logical tick 40, after each child was removed and the polling set restored. That test intentionally fails its tighter tick 36 processing-margin requirement. This does not reproduce a physical 43-second stall; it checks repeated edit/remove correctness and the cold schedule separately. The actual unchanged XFS harness failure in 62037 remains retained.
Head
cc20c3d1ddreduces the mixed cold metadata cadence from 40 to 36 ticks, reserving nominally seven seconds for detection work, reconciliation and debounce inside the 43-second release budget. Both marker and directory metadata checks remain enabled. The 64-name namespace queue and larger-set fallback cadence remain unchanged. CPU cost is still gated by the unchanged three-sample harness; no pass is claimed before it runs.Full new-head gates are running on staging. The next locked XFS acceptance run is queued with flock PID 1287987 and timeout PID 1287982. The existing 100x overlay/ext4 watch stress is still completing at
3eb218d; the new commit changes only the cold polling schedule, its new regression and documentation, leaving watch registration, reconciliation and namespace scheduling unchanged.Prior-code regression output, verbatim:
The first two workspace runs at
cc20c3dpass. The third no-fail-fast run completes but fails one notes test, a_closed_note_is_trashed_without_opening_it; the folder package passes. I am preserving the complete failed run and checking this failure before rerunning the workspace gate. No passing run replaces or erases this failure.Verbatim failure excerpt:
Cadence gates including the retained notes failure and focused checks: clippy.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: fmt.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: folders-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: folders-10.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: folders-2.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: folders-3.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: folders-4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: folders-5.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: folders-6.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: folders-7.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: folders-8.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: folders-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: generation-ext4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: generation-overlay.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: notes-trash-focused.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: overlay-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: overlay-10.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: overlay-2.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: overlay-3.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: overlay-4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: overlay-5.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: overlay-6.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: overlay-7.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: overlay-8.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: overlay-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: workspace-1.log, part 1/3. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: workspace-1.log, part 2/3. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: workspace-1.log, part 3/3. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: workspace-2.log, part 1/2. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: workspace-2.log, part 2/2. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: workspace-3.log, part 1/2. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Cadence gates including the retained notes failure and focused checks: workspace-3.log, part 2/2. Branch issue/folder-ids-fix6. Current head
cc20c3d1dd. Raw output follows verbatim.Three complete workspace rechecks at
cc20c3d: workspace-recheck-1.log, part 1/3. Branch issue/folder-ids-fix6. Current headcc20c3d1dd. Raw output follows verbatim.Three complete workspace rechecks at
cc20c3d: workspace-recheck-1.log, part 2/3. Branch issue/folder-ids-fix6. Current headcc20c3d1dd. Raw output follows verbatim.Three complete workspace rechecks at
cc20c3d: workspace-recheck-1.log, part 3/3. Branch issue/folder-ids-fix6. Current headcc20c3d1dd. Raw output follows verbatim.Three complete workspace rechecks at
cc20c3d: workspace-recheck-2.log, part 1/2. Branch issue/folder-ids-fix6. Current headcc20c3d1dd. Raw output follows verbatim.Three complete workspace rechecks at
cc20c3d: workspace-recheck-2.log, part 2/2. Branch issue/folder-ids-fix6. Current headcc20c3d1dd. Raw output follows verbatim.Three complete workspace rechecks at
cc20c3d: workspace-recheck-3.log, part 1/2. Branch issue/folder-ids-fix6. Current headcc20c3d1dd. Raw output follows verbatim.Three complete workspace rechecks at
cc20c3d: workspace-recheck-3.log, part 2/2. Branch issue/folder-ids-fix6. Current headcc20c3d1dd. Raw output follows verbatim.At
cc20c3d1dd, fmt and workspace Clippy pass. All ten folder suites and ten additional overlay suites pass, each with 84 passed, zero failed and five ignored. Both generation reproductions pass. The initial workspace batch has two passes and one retained notes failure; that test then passed 20 focused repetitions. Three fresh complete workspace rechecks now pass, each with 737 passed, zero failed and seven ignored. No notes code changed from the task base, and no retry erases the original failure.Initial raw output is in 62046–62077. The three clean workspace rechecks are posted separately. The watch stress remains in progress at
3eb218d, with 100 overlay passes and 64 ext4 passes so far. Its watch/reconciliation code is unchanged by the final cold polling cadence commit. XFS acceptance and the separate continuous-idle phase check remain pending under the VM lock queue.Initial runner output, verbatim, including the retained failure:
Workspace recheck runner output, verbatim:
The current
cc20c3dXFS run has waited about 30 minutes for the shared VM lock. The queue has advanced: PID 1284391 now holds the lock, and our PID 1287987 is next among the visible waiters. I have not interrupted another job. All final-head correctness checks pass after the retained notes failure and three clean workspace rechecks. Fresh watch stress has 100 overlay passes and 80 ext4 passes so far, with no failures. The three-sample budgets and continuous-idle phase check are still outstanding, so no performance acceptance is claimed yet.Watch stress at
3eb218dbefore the large cold polling change: stress-ext4.log, part 1/1. Branch issue/folder-ids-fix6. Current headcc20c3d1dd. Raw output follows verbatim.Watch stress at
3eb218dbefore the large cold polling change: stress-overlay.log, part 1/1. Branch issue/folder-ids-fix6. Current headcc20c3d1dd. Raw output follows verbatim.The unchanged mixed XFS harness now passes completely at
cc20c3d1ddunder the exclusive VM lock. All three individual warm samples, all three idle windows and all six publications meet their limits, including the 64-name queue and 36-tick cold polling. Earlier failed candidates remain retained. The fully watched harness is now running; its three warm samples pass, while its idle/publication samples and the separate continuous-idle phase check are still pending.Mixed output, verbatim:
Both 100-repeat watch stresses also pass and are posted in 62118–62119. Their source is
3eb218d; the final commit changes only cold polling for large unwatched sets, which the two-path watch stress does not exercise. All staging worktrees and containers are cleaned; staging is 24% disk.Both unchanged canonical release XFS harnesses pass at
cc20c3d1ddunder the exclusive VM lock. All three individual warm samples are at most 0.75 seconds, all idle samples are below 0.5%, and all marker/child publications are below 43 seconds. Measurements include the 64-name namespace queue and 36-tick mixed cold polling. The XFS folder suite and separate continuous-idle phase check are still running, so I have not pushed or declared the overall task finished. All earlier failures remain retained.mixed_100k_budgets, verbatim:
watched_100k_budgets, verbatim:
Both unchanged canonical XFS budget harnesses pass, but the subsequent full XFS folder suite fails legacy_completed_empty_markers_are_repaired_at_startup_and_verification: a legacy empty-marker folder receives a different ID than expected. The suite reports 83 passed, one failed and five ignored. Actual recycled-inode allocation, rapid replacement and the large launch-rename reproductions pass. I am preserving this failure and tracing generation recovery before any push. The separate continuous-idle phase check did not run because the suite failed.
Full XFS suite output, verbatim:
Native XFS follow-up at
a905ece3c8: the legacy completed-marker failure in comment 62147 is addressed without timestamp-only recovery. Completed native allocations now retain a flushed nonce when supported; cached generation UUIDs use fixed-size values with the same JSON string format. A cached/current native birth mismatch still rejects a copied nonce. Missing both birth and nonce always retires an unproven allocation. New tests cover genuinely legacy empty/prefix markers, markerless allocations, birth-field loss followed by rename, and copied nonce with conflicting native birth.Fresh full gates and 100 replacement repetitions on each of staging overlay and ext4 are running against this commit (four CPU quota, cargo -j4, 32 I/O stress workers). Staging starts at 25% disk. The exact-source release XFS run is queued under the shared VM lock; native regressions run first, before the unchanged three-sample mixed and watched budget harnesses. Additional scratch-only checks will cover nonce-backed warm scans and continuous idle polling phases. Prior failures and measurements remain retained.
Native XFS preflight at
a905ece3c8passes all five exact tests, including the prior failed completed-marker recovery and the new strict missing-evidence/copy checks. The unchanged mixed harness has all three warm samples below 0.75 s (0.352091, 0.480843, 0.563051); CPU and publication measurements are still running, so this is not yet a complete budget pass.preflight-copied_nonce_cannot_override_a_different_native_birth.log
preflight-legacy_allocation_without_generation_cannot_claim_a_markerless_directory.log
preflight-legacy_completed_empty_markers_are_repaired_at_startup_and_verification.log
preflight-nonce_bound_index_only_id_survives_birth_field_loss_and_a_rename.log
preflight-truly_legacy_empty_markers_without_generation_retire_the_unproven_id.log
legacy-first-workspace-failure: workspace-1.log, part 1/3. Branch issue/folder-ids-fix6. Current head
a905ece3c8. Raw output follows verbatim.legacy-first-workspace-failure: workspace-1.log, part 2/3. Branch issue/folder-ids-fix6. Current head
a905ece3c8. Raw output follows verbatim.legacy-first-workspace-failure: workspace-1.log, part 3/3. Branch issue/folder-ids-fix6. Current head
a905ece3c8. Raw output follows verbatim.The first fresh workspace command at
a905ecefailed two unchanged notes fanout cases: a_first_open_does_not_wait_for_the_disk (2-second open timeout), and a_crash_before_the_seed_is_durable_never_doubles_text (server-answer timeout). Full raw output is retained in comments 62180–62182. Its complete folder suite passed 88/0/5, including the 1,000-replacement case. The second workspace command also reports the unchanged server test kill_nine_mid_append_on_a_long_note failing its saved-file comparison; that command is still running and its complete output will be retained. No notes or server source differs from base8a6b39f. Staging I/O pressure was some/full avg60 46.88%/45.91%; this suggests load sensitivity but does not prove the cause. I will check the failing cases directly and require three complete direct-ext4 workspace passes, with all original failures kept. No assertions or timeouts are being relaxed.Exact-head
a905ece3c8unchanged mixed release XFS harness passes under /root/perf-vm.lock. All three individual warm samples are under 0.75 s, all three idle windows under 0.5%, and all six publications under 43 s. The separate fair 64-name queue is included. Fully watched measurements and full gates continue. Raw output, verbatim:Final test-only portability correction:
774006c445adds #[cfg(target_os = "linux")] to the nonce-backed rename test, because directory_generation is intentionally unsupported elsewhere. No product code, Linux test body, assertion or canonical harness changed aftera905ece. All budget measurements are Linux release XFS with identical product code and the same enabled tests. The pending workspace rechecks, 20 overlay folder suites, and 200 stress repetitions will use the final source; fmt and clippy are queued again for the annotation. Native preflight logs and earlier measurements remain accurately attributed toa905ece.legacy-second-workspace-retained: workspace-1.log, part 1/3. Branch issue/folder-ids-fix6. Current head
774006c445. Raw output follows verbatim.legacy-second-workspace-retained: workspace-1.log, part 2/3. Branch issue/folder-ids-fix6. Current head
774006c445. Raw output follows verbatim.legacy-second-workspace-retained: workspace-1.log, part 3/3. Branch issue/folder-ids-fix6. Current head
774006c445. Raw output follows verbatim.legacy-second-workspace-retained: workspace-2.log, part 1/3. Branch issue/folder-ids-fix6. Current head
774006c445. Raw output follows verbatim.legacy-second-workspace-retained: workspace-2.log, part 2/3. Branch issue/folder-ids-fix6. Current head
774006c445. Raw output follows verbatim.legacy-second-workspace-retained: workspace-2.log, part 3/3. Branch issue/folder-ids-fix6. Current head
774006c445. Raw output follows verbatim.Both unchanged release XFS budget harnesses pass for final product code at
a905ece(final branch head774006conly adds a Linux test annotation, as explained in comment 62186). All six individual warm samples pass <=0.75 s, all six CPU windows pass <0.5%, and all twelve publication samples pass <43 s. Measurements include the fair 64-name namespace queue. /root/perf-vm.lock was held for the entire run. Full XFS folder tests, additional nonce-backed/continuous-phase checks and staging gates still continue; this is not a claim that the task is finished.mixed_100k_budgets, verbatim:
watched_100k_budgets, verbatim:
legacy-third-workspace-retained: workspace-3.log, part 1/2. Branch issue/folder-ids-fix6. Current head
774006c445. Raw output follows verbatim.legacy-third-workspace-retained: workspace-3.log, part 2/2. Branch issue/folder-ids-fix6. Current head
774006c445. Raw output follows verbatim.legacy-full-native-xfs-pass: xfs-folders.log, part 1/1. Branch issue/folder-ids-fix6. Current head
774006c445. Raw output follows verbatim.legacy-focused-crash-retained: focused-crash-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
774006c445. Raw output follows verbatim.Focused direct-ext4 diagnosis: both unchanged notes fanout cases pass 10/10 individually. The server notes_crash::kill_nine_mid_append_on_a_long_note passes 9/10. Its one failure (focused-crash-9) is at the final disk==pre-save-text assertion, not the confirmed-append checks: the saved file includes
title: Crash testin frontmatter, while the notes.get text captured before notes.save omits that header. A parsed unified diff contains only that one added title line. The complete failed output remains posted verbatim. This establishes the failure also occurs on direct ext4; no overlay-only explanation is claimed. All notes/server source is unchanged from base; no test timeout, comparison or assertion is being loosened. Three complete serial ext4 workspace rechecks are now running. The followup driver retains a failed aggregate result if this focused diagnostic fails, even when later required gates pass.Additional continuous-phase CPU check found a remaining cost spike despite both unchanged canonical harnesses passing (comment62198). Same product/100k mixed fixture/maintenance; only the scratch harness omits per-window reset and publications. Its third 120-tick window contains four complete cold sweeps rather than three. CPU was 0.3567%, 0.3071%, then 0.5135%, above 0.5%. This failed result is retained and is not treated as a pass. A separate four-sweep diagnostic profile is now running under the same VM lock. I will reduce the measured cost rather than relax the limits. The nonce-backed warm-only scratch check passed all three samples (0.339023/0.427450/0.444626 s). First serial direct-ext4 complete workspace recheck passed; other staging gates continue.
CPU follow-up at new head
b4da6b731d. The four-sweep profile is dominated by metadata syscall/kernel work: self samples include entry/return 16.08%+9.32%+6.83%, security_inode_getattr 11.54%, and xfs_vn_getattr 7.11%. The raw profile and failed 0.5135% window are retained.Mixed polling now separates marker and directory sweeps by 18 ticks, with EACH still checked every 36 ticks. Any 120-tick window therefore contains at most seven single-kind passes rather than four double-kind passes. Recent folders still check both every second; small Homes and the >50,001-path fallback schedule are unchanged. The worst-phase marker regression starts immediately after its phase; all six marker/child cycles still detect at 36 ticks. Formatting, Clippy -D warnings and that regression pass at
b4da6b7.Fresh complete gates are running at this source. I stopped only our named staging container to apply the CPU fix: one complete serial ext4 workspace recheck passed at the prior source; its second partial run and all earlier failures were archived rather than presented as final-head passes. The new run includes three complete ext4 workspace commands, 20 overlay folder suites and 100 replacement repetitions on each filesystem. Release XFS preflight, unchanged canonical budgets, nonce-backed warm scans, continuous CPU, and additional worst-phase publication checks are queued under the shared lock. No performance limit or canonical harness changed.
At
b4da6b731d, the first fresh complete serial ext4 workspace command passes 741 tests, zero failures, seven expected ignores. Formatting, clippy -D warnings, and all six 36-tick worst-phase marker/child detections also pass. The other two full workspace commands and all repeated overlay/stress gates continue. Fresh unchanged mixed release XFS warm samples are 0.343071/0.323807/0.396015 s; idle CPU is 0.3484/0.2988/0.3154%. Publication and additional continuous-phase checks are pending, so no complete budget pass is claimed yet.Unchanged mixed release XFS harness at
b4da6b731dpasses all samples under the shared VM lock. All individual warm scans are below 0.75 s; all idle CPU windows below 0.5%; all marker/child publications below 43 s. The separate 64-name queue is included. Fully watched, full XFS, continuous-phase CPU and worst-phase publication checks remain pending. Raw output follows verbatim.At
b4da6b731dboth unchanged release XFS harnesses pass all samples under /root/perf-vm.lock. All six individual warm scans <=0.75 s, all six idle windows <0.5%, all twelve publications <43 s. The fair 64-name queue is included. Two fresh complete serial ext4 workspace commands pass, and the third is running. Full XFS, nonce-backed warm, continuous-phase CPU, additional worst-phase publication and repeated staging gates remain pending. Raw budget output and three-sample table:mixed_100k_budgets, verbatim:
watched_100k_budgets, verbatim:
Full native XFS folder suite at
b4da6b731dpasses 88/0/5. The five native exact preflights also pass. Additional nonce-backed mixed warm scans pass 0.428329/0.430774/0.457163 s, each below 0.75. Continuous CPU and worst-phase publication checks continue under the shared VM lock. Verbatim output:nonce-warm.log
preflight-copied_nonce_cannot_override_a_different_native_birth.log
preflight-legacy_allocation_without_generation_cannot_claim_a_markerless_directory.log
preflight-legacy_completed_empty_markers_are_repaired_at_startup_and_verification.log
preflight-nonce_bound_index_only_id_survives_birth_field_loss_and_a_rename.log
preflight-truly_legacy_empty_markers_without_generation_retire_the_unproven_id.log
xfs-folders.log
Continuous mixed idle CPU at
b4da6b731dpasses all three non-reset windows: 0.3567/0.4310/0.3980%. This covers the denser phases that failed at 0.5135% before the phase split. All three fresh complete serial ext4 workspace runs also pass741/0/7; repeated overlay suites and 200 stress repetitions continue.An additional scratch worst-phase-publication run has an incidental warm outlier: 0.656598/0.552358/0.795249 s (mean0.668068). The last exceeds the individual0.75 s limit. The Python helper will retain a failed aggregate result for that extra warm check even if all publications pass. I am not treating it as a passing warm sample or discarding it. Both unchanged canonical harnesses previously passed ALL individual samples at this head (comment62223), and nonce-backed warm scans passed (62227). No cause for this additional variability is established. The first worst-phase publication pair passed39.506290/38.326530 s; remaining pairs continue. No limit or assertion is relaxed.
Continuous CPU output, verbatim:
Final additional checks at
b4da6b731d: continuous CPU and all six worst-phase publications pass. Both marker and child detections are exercised at the full36-tick phase. The Rust publication test exits0, but its wrapper fails the additional individual-warm check because one incidental sample is0.795249 s. This is retained, not replaced by retries or described as a warm pass. Both unchanged canonical harnesses met every individual limit (62223), nonce-backed scans passed (62227), and continuous CPU passed (62233). No root cause is established for the incidental warm variance. All three complete workspace rechecks passed; overlay suites/stress still run.Derived gate summary:
Raw worst-phase output, verbatim:
split-final-workspace-gates: clippy-final.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-workspace-gates: cold-phases.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-workspace-gates: workspace-recheck-1.log, part 1/2. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-workspace-gates: workspace-recheck-1.log, part 2/2. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-workspace-gates: workspace-recheck-2.log, part 1/2. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-workspace-gates: workspace-recheck-2.log, part 2/2. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-workspace-gates: workspace-recheck-3.log, part 1/2. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-workspace-gates: workspace-recheck-3.log, part 2/2. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-folder-gates: folders-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-folder-gates: folders-10.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-folder-gates: folders-2.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-folder-gates: folders-3.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-folder-gates: folders-4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-folder-gates: folders-5.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-folder-gates: folders-6.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-folder-gates: folders-7.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-folder-gates: folders-8.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-folder-gates: folders-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: generation-ext4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: generation-overlay.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: overlay-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: overlay-10.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: overlay-2.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: overlay-3.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: overlay-4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: overlay-5.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: overlay-6.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: overlay-7.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: overlay-8.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: overlay-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-overlay-gates: stress-head.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.Final-head
b4da6b731dstress progress: 32/100 overlay repetitions completed, zero failures, each with1,000 rapid replacements. All required suite gates already pass: fmt, clippy, workspace3x741/0/7, folders10x88/0/5, additional real-overlay10x88/0/5. Explicit generation tests observed real inode reuse with distinct old/replacement IDs on both overlay and ext4 (62265/62266). Exact stress source is verified against the final manifest. Overlay stress continues, then ext4 100x. Staging35% disk, four CPU quota,32 I/O stress workers. No final stress pass is claimed until all200 complete.Current completed-repetition output, verbatim:
split-final-overlay-stress: stress-overlay.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.Warm follow-up: the extra0.795249 s sample remains a real retained outlier. I am testing a scratch-only change in the profiled directory_versions path: collect candidate names, then use at most four scoped metadata readers for sibling sets >=4096, preserving every statx/birth/type/device check and result order. The repository and final-head
b4da6b7gates remain unchanged until a direct locked comparison shows whether this helps. The comparison uses the unchanged mixed harness prefix, three warm samples per variant, and intentionally stops only its recorded child before idle/publication; it is not a complete budget pass. All benchmark processes hold /root/perf-vm.lock.Required stress progress is now overlay100/100 and ext496/100, zero failures. Full raw overlay output is62297. All required suite gates and canonical budgets pass at
b4da6b7. The final extra warm variability is being investigated rather than silently omitted.split-final-ext4-stress: source-check.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.split-final-ext4-stress: stress-ext4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
b4da6b731d. Raw output follows verbatim.All required gates complete successfully at
b4da6b731d: fmt, clippy, workspace3x, folder suites10x, additional real-overlay suites10x, and stress100x each on overlay/ext4 (1,000 replacements per repetition). Each workspace run is741/0/7; every folder suite is88/0/5. All200 stress detail logs were checked for an actual single passed test; both aggregates contain exactly repetitions1–100 with zero failures. Source hashes and head match. Raw ext4 stress/source checks are62315/62316; overlay stress62297; raw repeated suites and workspaces are already posted. Canonical budget table and full output are62223.The extra0.795249 s warm sample in the auxiliary worst-phase run is retained (62234). Its investigation continues with the scratch parallel-reader comparison before final push and cleanup. The isolated8a6 notes baseline probe is building on staging. No source change beyond
b4da6b7is accepted yet. Staging37% disk.Final required-gate stdout, verbatim:
The unchanged server notes_crash::kill_nine_mid_append_on_a_long_note failure also reproduces at base8a6b39f83ce3b3ff88f3e1360170634314d76ef5, on direct ext4. Eight focused baseline runs passed; the ninth failed the same final disk==pre-save-text assertion. The earlier confirmed-append checks passed. The parsed difference is only a
title: Crash testfrontmatter line in the saved file. This establishes the comparison failure predates the folder fix. No notes source or assertion has been changed. All three final-headb4da6b7complete workspace rechecks pass.Parsed baseline difference:
Baseline runner output, verbatim:
Failed baseline test output, verbatim:
New head
e57eb8d6b8adopts bounded parallel metadata reads for wide folders. The three-sample locked prefix comparison reduced mean warm time from0.341284 to0.300330 s (about12%). This comparison intentionally stops its recorded children after warm samples; it is not a complete budget pass. The prototype fsio suite and Clippy pass. A 5,000-directory test checks metadata against the filesystem and excludes an outside symlink. No statx, birth, type or device check is removed. At most four scoped readers are used; small sibling sets stay sequential and idle maintenance is unchanged.All fresh gates are now running at
e57eb8d, including three complete workspace runs (742 expected passes after the new test),20 folder suites,200 stress repetitions, unchanged canonical release XFS budgets, nonce-backed warm scans, continuous CPU, and worst-phase publications. The priorb4da6b7passes and extra warm outlier remain archived separately. Measurements will be attributed to their actual head. The baseline notes comparison failure is independently reproduced at8a6b39f in62319.Prototype evidence follows verbatim:
clippy.log
parallel-baseline.log
parallel-parallel.log
parallel-status.log
tests.log
At
e57eb8d6b8the unchanged mixed release XFS harness passes every individual sample: warm0.268039/0.268750/0.465243 s, CPU0.4145/0.3897/0.3319%, publications all<43 s. The first fresh complete workspace command passes742/0/7, including the new wide-directory fsio test. Other gates and the fully watched/extra performance checks continue. No prior-head measurements are used as final-head passes.Mixed output, verbatim:
Both unchanged release XFS budget harnesses pass at
e57eb8d6b8under /root/perf-vm.lock. Every individual warm, idle CPU and publication sample meets its limit. The64-name namespace queue is included. Two fresh complete workspace runs pass; the third and repeated gates continue. Full XFS and auxiliary nonce-backed/continuous/worst-phase checks continue, including rechecking the extra warm outlier seen at the prior head.mixed_100k_budgets, verbatim:
watched_100k_budgets, verbatim:
Native XFS checks at
e57eb8d6b8pass: all five exact preflights and the full88/0/5 folder suite. Additional nonce-backed mixed warm samples pass0.223719/0.230576/0.230259 s. Continuous idle and worst-phase publication checks continue; the first two continuous CPU windows pass0.3236% each. Raw native and nonce-backed output follows verbatim.nonce-warm.log
preflight-copied_nonce_cannot_override_a_different_native_birth.log
preflight-legacy_allocation_without_generation_cannot_claim_a_markerless_directory.log
preflight-legacy_completed_empty_markers_are_repaired_at_startup_and_verification.log
preflight-nonce_bound_index_only_id_survives_birth_field_loss_and_a_rename.log
preflight-truly_legacy_empty_markers_without_generation_retire_the_unproven_id.log
xfs-folders.log
metadata-retained-workspace-failure: workspace-recheck-3.log, part 1/4. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-retained-workspace-failure: workspace-recheck-3.log, part 2/4. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-retained-workspace-failure: workspace-recheck-3.log, part 3/4. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-retained-workspace-failure: workspace-recheck-3.log, part 4/4. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.At
e57eb8d6b8, complete workspace attempts1 and2 pass742/0/7. Attempt3 fails only kill_nine_mid_append_on_a_long_note at the same final comparison reproduced independently at base8a6b39f (62319). Its parsed diff is the same single title frontmatter line; confirmed append checks passed. Full failed output is retained verbatim in the preceding comments.I have queued another COMPLETE workspace command with the same serial test setting, all packages, no-fail-fast, and unchanged assertions. It runs after the current folder/stress train to avoid adding load. This will provide a third successful complete run while keeping the failed attempt and its aggregate result visible. No test is skipped or weakened. Other repeated gates continue at the same committed head.
All additional performance checks at
e57eb8d6b8pass under the shared VM lock, including EVERY individual warm sample. The auxiliary warm check that exceeded0.75 s atb4da6b7now measures0.226453/0.212291/0.249076 s. Its six worst-phase publications are all<43 s; both marker and child checks exercise a full36-tick phase. Prior failures remain retained. The final head has no failed performance sample in these canonical or additional runs.Derived summary:
Continuous CPU output, verbatim:
Worst-phase output, verbatim:
metadata-final-folder-gates: folders-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-folder-gates: folders-10.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-folder-gates: folders-2.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-folder-gates: folders-3.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-folder-gates: folders-4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-folder-gates: folders-5.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-folder-gates: folders-6.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-folder-gates: folders-7.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-folder-gates: folders-8.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-folder-gates: folders-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-successful-workspaces: clippy-final.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-successful-workspaces: cold-phases.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-successful-workspaces: workspace-recheck-1.log, part 1/2. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-successful-workspaces: workspace-recheck-1.log, part 2/2. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-successful-workspaces: workspace-recheck-2.log, part 1/2. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-successful-workspaces: workspace-recheck-2.log, part 2/2. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: generation-ext4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: generation-overlay.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: overlay-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: overlay-10.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: overlay-2.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: overlay-3.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: overlay-4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: overlay-5.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: overlay-6.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: overlay-7.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: overlay-8.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: overlay-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: source-check.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-overlay-gates: stress-head.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.At final head
e57eb8d6b8, overlay stress has completed64/100 repetitions with zero failures, each1,000 replacements. Ext4 100x follows. All20 repeated folder/overlay suites pass88/0/5 and both actual inode-reuse checks assign distinct IDs (62377/62378). Every final-head canonical and additional performance sample passes, including the previously failing auxiliary warm case (62340/62355).Two complete workspace commands pass742/0/7; the one baseline-only notes comparison failure is retained (62348–62352, independently reproduced at base62319). Another complete workspace run is queued after the train to provide a third success, without altering assertions or filters. Staging39% disk. Final push/cleanup follow completion and validation.
Completed stress output so far, verbatim:
metadata-final-overlay-stress: stress-overlay.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-final-ext4-stress: stress-ext4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.The fourth complete workspace command at
e57eb8dalso reports only the known notes_crash comparison failure. It is still finishing the remaining packages with no-fail-fast. Its parsed file/text difference is again exactly the single title frontmatter line seen at base8a6b39f (62319); there is no changed append text. The full failed command will be retained when complete.I have queued another complete serial workspace command after this one. Source, assertions and filters remain unchanged. Successful complete runs1 and2 are already742/0/7; all20 folder suites, both100x stress gates and ALL final-head performance checks pass. Original failed aggregate codes will remain visible alongside the successful runs.
metadata-fourth-complete: workspace-recheck-4.log, part 1/3. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-fourth-complete: workspace-recheck-4.log, part 2/3. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-fourth-complete: workspace-recheck-4.log, part 3/3. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-fifth-complete: workspace-recheck-5.log, part 1/2. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.metadata-fifth-complete: workspace-recheck-5.log, part 2/2. Branch issue/folder-ids-fix6. Current head
e57eb8d6b8. Raw output follows verbatim.Integration correction. An earlier shell command ran the dev ancestry check followed by another successful command, masking its exit status. The final explicit check caught that the fetched dev revision
8b30062e1cwas not yet included. The initial branch push had completed ate57eb8d6b8. No PR or protected branch was changed.I have now merged that fetched dev revision into issue/folder-ids-fix6 without conflicts. New head:
f42cf5ab53. A checked standalone ancestry command passes. Dev adds the contacts crate and its ADRs; all eleven folder/fsio/performance source hashes remain unchanged. I will rerun fmt, clippy, three complete workspace commands and both ten-run folder gate sets on the merged head, and refresh the canonical release-XFS budget measurements. The earlier exact-product stress and additional worst-phase measurements remain available with their original source SHA and all failed attempts remain retained.The five pre-merge complete workspace attempts were: passes 1, 2 and 5, each 742 passed and seven ignored; failures 3 and 4, each solely the independently reproduced base notes-title comparison. Full fifth-run output is in comments 62434–62435; fourth-run output is in 62429–62431. The first staging cleanup removed only four exited owned containers and two owned roots, bringing disk use from 39% to 25%. A new isolated merged-head gate container will be used.
Pre-merge gate accounting at
e57eb8d6b8. Full workspace attempts 1, 2 and 5 pass (742 passed, zero failed, seven ignored). Attempts 3 and 4 fail only the base-reproduced notes-title comparison (741 passed, one failed, seven ignored). The original aggregate remains a failure; the extra passes do not overwrite it. Baseline failure evidence is in comment 62319. The merged-head gate train announced in comment 62437 is separate.Original gate-runner output, verbatim:
Fourth complete command, verbatim:
Fifth complete command, verbatim:
Merged-head progress at
f42cf5ab53: fmt, clippy -D warnings and the cold-polling regression pass. The first complete workspace run is progressing without a failure so far, including a pass of the previously flaky notes crash case. The refreshed XFS budget job is temporarily waiting for the shared /root/perf-vm.lock. Its recorded timeout PID is 1346426 and its flock PID is 1346427. It has not started a build or measurement outside the lock. No other job is being stopped or altered. Staging is 32% disk.merged-initial-budget-failure: mixed_100k_budgets.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-initial-budget-failure: status.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.Merged-head XFS individual-sample failure retained at
f42cf5ab53. Warm samples were 0.792543, 0.576353 and 0.565703 seconds. Although the permanent mean assertion passed (0.644866), the additional per-sample requirement failed, so the runner terminated only its recorded test child PID 1347903 before idle/publication. This is not a passing complete budget run. Full raw output is in comments 62453–62454. The folder/fsio/performance source is unchanged from e57, whose previous full measurements and extra checks remain separately recorded.The failed run also showed walk times 1.150958, 1.090856 and 0.826459 seconds, slower than earlier runs; this does not by itself establish a cause. I have queued warm-only profiling followed by the unchanged canonical harness under /root/perf-vm.lock. The new timeout PID is 1348272. The instrumented profiling copy stays outside the repository and will not count as a budget pass. No other job or process is stopped.
merged-early-gates: clippy-final.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-early-gates: cold-phases.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-early-gates: fmt-final.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-early-gates: workspace-recheck-1.log, part 1/3. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-early-gates: workspace-recheck-1.log, part 2/3. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-early-gates: workspace-recheck-1.log, part 3/3. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-profile-cache-invalid: mixed_100k_budgets.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-profile-cache-invalid: profile-status.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.Warm-profile follow-up at
f42cf5ab53. The scratch-only warm scans measured 0.573119, 0.677244 and 0.480675 seconds. Their CPU profiles continue to show reconciliation and metadata lookup as the main work; there is no new isolated product regression established by this profile. The page scan and page steal counters did not increase across the whole fixture/profile, which does not establish the cause of the earlier 0.792543-second sample.I caught a validation error before accepting the next run: the shared Cargo target reused the instrumented scratch test binary when switching source roots. That attempted canonical run contains PROFILE_WARM output and is invalid for acceptance. I stopped only its recorded child PID 1349273. Raw output is retained in comments 62475–62476. The runner now touches the unchanged permanent test source to force recompilation and explicitly aborts if profiling output appears. The corrected run is queued under the VM lock with timeout PID 1349461. No product or permanent harness content changed.
Scratch profile output follows verbatim; this is not a budget gate:
merged-retained-workspace-failure: workspace-recheck-2.log, part 1/4. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-retained-workspace-failure: workspace-recheck-2.log, part 2/4. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-retained-workspace-failure: workspace-recheck-2.log, part 3/4. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-retained-workspace-failure: workspace-recheck-2.log, part 4/4. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.Merged workspace attempt 2 at
f42cf5ab53completed every package with --no-fail-fast: 868 passed, one failed and seven ignored; exit 101 is retained. The only failure is kill_nine_mid_append_on_a_long_note, and the only difference is the saved file having the extra title: Crash test header. This is the same independently reproduced base failure in comment 62319. The full new failed output is in comments 62479–62482. Attempt 1 passed all 869 tests. Attempt 3 is running and has passed the notes crash case.I will report the requested three merged workspace commands with their actual outcomes, retaining this failure rather than weakening a comparison or changing unrelated notes behavior. The older pre-merge extra passes remain separately recorded and do not replace a merged-head failed result.
merged-mixed-complete: mixed_100k_budgets.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-third-complete: workspace-recheck-3.log, part 1/3. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-third-complete: workspace-recheck-3.log, part 2/3. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-third-complete: workspace-recheck-3.log, part 3/3. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.Complete corrected permanent-harness budget results at merged head
f42cf5ab53, release XFS with the namespace queue included and the shared VM lock held. All six individual warm samples are below 0.75 seconds, all six idle windows are below 0.5%, and all twelve publications are below 43 seconds. The warm maximum is 0.438892 seconds and publication maximum is 38.785912 seconds. The earlier same-head 0.792543-second warm failure remains in 62453–62455; this passing run does not erase it. The separately retained profiling-cache attempt in 62475–62477 is invalid for acceptance. No product source changed between these attempts.The corrected build was independently checked to be freshly compiled from the permanent source, all twelve source hashes match, and acceptance output contains no profiling markers. The permanent harness remains byte-identical to
8a6b39f.mixed_100k_budgets, verbatim:
watched_100k_budgets, verbatim:
Permanent build verification, verbatim:
merged-xfs-complete: canonical-source-check.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-xfs-complete: canonical-status.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-xfs-complete: source-check.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-xfs-complete: xfs-folders.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-folder-final: folders-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-folder-final: folders-10.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-folder-final: folders-2.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-folder-final: folders-3.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-folder-final: folders-4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-folder-final: folders-5.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-folder-final: folders-6.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-folder-final: folders-7.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-folder-final: folders-8.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-folder-final: folders-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: filesystems.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: generation-ext4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: generation-overlay.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: host-ext4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: overlay-1.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: overlay-10.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: overlay-2.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: overlay-3.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: overlay-4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: overlay-5.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: overlay-6.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: overlay-7.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: overlay-8.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: overlay-9.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: source-check.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-overlay-final: stress-head.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.Progress at
f42cf5ab53: all ten direct-ext4 and ten real-overlay folder suites pass (88 passed, zero failed, five ignored each). Both explicit diagnostics actually recycled inode 1720397 and assigned a different replacement ID. Full raw output and filesystem/source proof are in comments 62561–62595. The release XFS folder suite and complete canonical budget measurements also pass, as recorded in 62496 and 62502–62505. The retained workspace baseline notes failure and earlier warm outlier remain qualified in their existing comments.The final stress train is still running: 64 of 100 overlay repetitions have completed with exit zero; each runs 1,000 rapid replacements. The remaining overlay cases and 100 direct-ext4 cases follow automatically. No source change has been made during this train. Staging remains 32% disk, below the 60% limit.
merged-stress-overlay-final: stress-build.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-stress-overlay-final: stress-overlay.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.merged-stress-ext4-final: stress-ext4.log, part 1/1. Branch issue/folder-ids-fix6. Current head
f42cf5ab53. Raw output follows verbatim.Pushed issue/folder-ids-fix6 at
f42cf5ab53. This includes the conflict-free merge of the fetched dev revision8b30062e1c. No PR was opened.The changes bind ambiguous pending allocations to durable directory generation evidence, keep Home in a fair queue of 64 directory name checks per tick, retain metadata polling where watch registration does not guarantee event delivery, and detect deleted directory handles before reusing watch tokens. Warm scans reuse polling positions and queue storage, separate cold directory and marker polling, and use at most four metadata readers for wide folders. Generation, type and device checks are preserved. The permanent performance harness is byte-identical to
8a6b39f.Release XFS results at this head, with the namespace queue included and the shared VM lock held:
Every individual sample in this complete canonical run meets its limit: warm at most 0.75 seconds, idle below 0.5%, and publication below 43 seconds. Full table and raw output are in comment 62496. The release XFS folder suite passes 88 tests with zero failures and five ignored; raw output and source checks are in 62502–62505.
Fmt and clippy with -D warnings pass. All ten direct-ext4 and ten real-overlay folder suites pass, each with 88 passed, zero failed and five ignored. Both explicit generation diagnostics actually recycled an inode and assigned a distinct replacement ID. Raw output is in 62561–62595. All 100 overlay and all 100 ext4 rapid-replacement stress repetitions pass; each performs 1,000 replacements. Their complete raw output is in comments 62693, 62694, 62695.
The three complete workspace commands have their actual outcomes retained: runs 1 and 3 pass with 869 passed, zero failed and seven ignored each; run 2 reports 868 passed, one failed and seven ignored, exit 101. The sole failure is kill_nine_mid_append_on_a_long_note, differing only by the saved title: Crash test header. The same failure was independently reproduced at the original base in 62319. No unrelated notes code or assertions were changed. Full merged workspace output is in 62460–62465, 62479–62482 and 62493–62495. The original gate aggregate remains a failure; this result is not counted as a pass.
An earlier attempt at this same head failed one warm sample at 0.792543 seconds; it remains in 62453–62455. No product code changed between that attempt and the passing complete canonical run. The attempt that reused an instrumented profiling binary is invalid for acceptance and remains in 62475–62477. The accepted run was freshly compiled from the unchanged permanent source, all twelve source hashes match, and its output has no profiling markers. These retained results qualify the final passes.
The verified evidence backup is outside the repository. Only the recorded exited staging container and its owned root were removed. Staging is now 25% disk. The issue remains open.
Final staging gate runner output, verbatim:
Final canonical performance runner output, verbatim:
Independent review round 7 started. Worktree is detached at
f42cf5ab53(issue/folder-ids-fix6); base origin/dev is8b30062e1c. Reviewing the delta from8a6b39fand the whole branch. No commits or pushes. I will retain every failure and performance sample and post the final verdict with verbatim gates.Independent review round 7 started at detached issue/folder-ids-fix6 head
f42cf5ab53; base origin/dev8b30062e1c. No commits or pushes. Reviewing review6 fixes and regressions, with independent filesystem, crash and performance repetitions and verbatim gates.Review7 P2: corrupt generation evidence causes repeated identity replacement on an unchanged overlay directory.
Independent scratch-only test against
f42cf5a: create F with a foreign .calternal-id containingforeign marker, reconcile to allocate its index-only ID, replace user.calternal.folder-generation withcorrupt, then reconcile four times, reopening Home before the third scan. No folder, inode or marker changes occur during those four scans. The original foreign marker bytes remain intact. Every scan publishes a different ID:Cause: signature_directory rejects the corrupt attribute; create_directory_generation uses CREATE and cannot replace the existing corrupt value. same_generation then always rejects the cached index-only allocation on overlay, and run_paths assigns fresh_id on every retry. The same unchanged folder repeatedly loses its links and emits replacement events. A corrupt private attribute must not authorize recovery of the old ID, but recovery should retire that allocation once and establish fresh durable evidence so subsequent retries stabilize. This contradicts ADR0061's statement that unchanged index-only identities remain stable across retries/restarts. Source: crates/folders/src/scan.rs:327, 528–545, 583–601; crates/fsio/src/beneath.rs:225–236. Direct-ext4 comparison and wider checks continue. No product source changed.
Review7 progress: fmt and workspace Clippy -D warnings pass at
f42cf5a. Independent restart/allocation probes actually recycled an inode on both staging overlay and direct ext4; both assigned a distinct replacement ID. The 100,001-namespace queue retained Home and a continuously renamed tail through enrollment/deletion churn and visited both by tick 1,562 (the bound is 1,563; deletion shortened this sweep). Six independent shrink/sort/restart cycles retained correct polling positions and published subsequent marker edits. The corrupt-evidence P2 is recorded in 62725; its direct-ext4 counterpart stays stable, confirming the ambiguous-filesystem scope.Release XFS work is temporarily blocked waiting for /root/perf-vm.lock, behind other jobs. Our queued build flock PID is 1367892 and run flock PID is 1367997; neither has built or measured outside the lock. I will continue the review and let the queued commands start normally. Workspace gates, baseline crash repetitions and the two 100-repeat stresses continue on staging. No other process is stopped or changed. Staging is 34% disk.
Review7 P2: parallel wide-folder metadata discovery aborts when thread capacity is exhausted, although the sequential scan works.
The new directory_versions branch unconditionally propagates spawn_scoped failure via
?for sibling sets >=4096. available_parallelism counts CPUs, not remaining thread slots. This makes an otherwise readable wide folder fail reconciliation under a finite process/thread quota instead of falling back to the existing sequential loop.Independent 5,000-directory probe on staging, four CPUs, identical order/metadata fixture and three-task cgroup limit (test harness has two threads, leaving one free):
A separate scratch build restoring only the directory_versions function from
8a6b39f, with the same fixture and the same three-task limit, passes:This models a running server nearing its task quota; three is a minimal deterministic test limit, not a proposed server configuration. With ordinary thread capacity the new four-reader implementation passes, preserves enumeration order, and works under nofile=32:32 without leaking descriptors. The regression is thread-creation failure handling, not descriptor use or ordering. Join any workers already started and process remaining chunks in the caller when spawning fails. Source: crates/fsio/src/beneath.rs:460–474. No product source changed.
Review7 retained gate failure: complete workspace run 1 passes; run 2 completes all packages but fails storage_startup::single_root_upgrade_backup_split_cache_delete_and_rollback at crates/calternal/tests/storage_startup.rs:300. This is a lock reacquisition error, not the previously reported notes title comparison:
The failure is retained as exit 101; focused baseline diagnosis is running before attributing it to this branch. All 20 requested origin/dev repetitions of kill_nine_mid_append_on_a_long_note pass (20/20). That does not independently reproduce the older comparison failure on origin/dev; I will report the head repetitions separately, without treating the author's earlier
8a6b39fevidence as a new baseline failure of our own. Workspace run 3 and folder/stress repetitions continue.Review7 P1: ID-addressed move and Trash mutate a replacement folder using a deleted folder's cached ID.
Independent reproductions pass through the actual Home::move_folder and Home::trash methods on both staging overlay and direct ext4. Create and reconcile Original, save its ID, delete it, create a new Original with a DIFFERENT valid .calternal-id and a new user-content file, then call move/trash with the deleted ID before background reconciliation. Both operations succeed, move the replacement's contents, and return the deleted ID as the identity/URL of that replacement. No inode recycling, corrupt nonce, lost event or forged metadata is needed. This is the normal interval before a watcher/poll catches up.
Direct-ext4 evidence:
Cause: move_locked and trash trust index.path_of(id) and move_relative validates containment/name conflicts but never validates that the current source directory still owns the requested ID. The Home lifecycle lock serializes app/background work, not external filesystem replacements. Bind an ID-addressed mutation to verified current marker/generation evidence and refuse a stale source before mutating it; also validate the destination parent ID. The filesystem operation needs to retain the intended directory binding through the mutation rather than treating an old path lookup as authority.
This is an inherited whole-branch defect (the action implementation is unchanged in 8a6b39f..f42cf5a), found while reviewing origin/dev...f42cf5a; it is separate from the now-fixed pending-allocation inode-reuse reproduction. Relevant locations: crates/folders/src/lib.rs:624–665, 676–721, 1507–1521. No product source changed.
Review7 P1: duplicate-marker repair transfers a deleted index-only ID to a new directory generation.
Independent overlay and direct-ext4 reproduction at
f42cf5a:Direct-ext4 evidence uses different directory inodes and different birth times:
Overlay also fails, despite the scanner installing a different valid nonce on the new F. This does not depend on recycled-inode timing or corrupt evidence. The duplicate repair branch in crates/folders/src/scan.rs:686–692 reuses cache.get(path) when index_only and unused, without checking same_generation. The new strict generation checks on normal allocation/materialization do not cover this reuse path. A previous allocation may be reused as a repair plan only if it is bound to this same directory generation; otherwise allocate a fresh ID. This violates the central requirement that a deleted folder's ID never passes to a new folder, after a completed reconciliation, on ordinary ext4 as well as overlay.
This path is inherited from the reviewed whole branch, rather than newly added by the fix6 delta. It remains a blocker for the branch's identity guarantee. No product source changed; XFS confirmation is queued under the perf VM lock.
Independent review7, exact head
f42cf5ab53. gates/fmt.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/clippy.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/workspace-1.log, part 1/3. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/workspace-1.log, part 2/3. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/workspace-1.log, part 3/3. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/workspace-2.log, part 1/3. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/workspace-2.log, part 2/3. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/workspace-2.log, part 3/3. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/workspace-3.log, part 1/3. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/workspace-3.log, part 2/3. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/workspace-3.log, part 3/3. Output follows verbatim.Review7 independent probe source. Product code is unchanged at
f42cf5ab53. These tests are injected only into an external scratch copy; they are not committed and are not part of the required gate counts. The retained failed first Home-bound assertion is corrected to <=1563 here; the nested worst-phase assertion remains exactly1563. Confirmed product failures are the corrupt-evidence, stale-action and duplicate-repair tests.Review7 correctness gates at
f42cf5ab53are complete. Fmt and Clippy -D warnings pass. Workspace runs 1 and 3 each have 869 passed, zero failed, seven ignored; run 2 has 868 passed, one failed, seven ignored (the retained storage lock error in 62745). Every one of ten folder suites passes 88/0/5. Full workspace output is in comments 62757–62765; remaining gate logs follow.Requested notes crash comparison: 20/20 head and 20/20 origin/dev runs pass. Twenty extra origin/dev runs on direct ext4 also pass. Thus I did not independently reproduce the failure from 62319 and cannot claim these new experiments confirm its baseline attribution. Its original evidence remains retained. No assertion or timeout was changed. For the separate storage lock failure, both 20 focused origin/dev repetitions and 20 complete baseline storage_startup suite repetitions pass; its cause remains unclassified and the workspace failure is not replaced by retries.
All 100 overlay rapid-replacement repetitions pass, each exercising 1,000 replacements. I stopped only recorded owned driver PID 2090412 and its four explicitly named ext4 containers to increase I/O concurrency within a single four-CPU container (32 workers), matching the author's stress resource pattern. The four interrupted ext4 attempts are retained separately and are not product failures or passes. A fresh complete 100-repeat ext4 cohort is running. No other job was stopped. Staging remains 35% disk.
The perf build has now acquired /root/perf-vm.lock and started. No release measurement has yet completed. All 1,007 tracked source files match the reviewed head on both machines. The original worktree remains clean.
Independent review7, exact head
f42cf5ab53. gates/folders-1.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/folders-2.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/folders-3.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/folders-4.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/folders-5.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/folders-6.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/folders-7.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/folders-8.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/folders-9.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. gates/folders-10.log, part 1/1. Output follows verbatim.Review7 P2: per-watcher anchor budgets overcommit the process descriptor limit across Homes.
On overlay each watcher computes an anchor_limit with reserve_metadata_handles(4096), then stores Folder handles without acquiring a shared permit. The calculation counts descriptors open now, but does not reserve future anchor capacity. Starting several Homes before enrollment fills those budgets lets each watcher spend the same descriptor headroom.
Independent staging probe: hard nofile=8192, eight watchers initialized first, then enroll about 1,000 child directories per watcher in round-robin order. Each remains well below its own anchor_limit. The process reaches EMFILE rather than preserving the documented 4,096 descriptors for request handling:
A spare descriptor held by the probe is closed before counting, so the diagnostic itself can open /proc/self/fd; the count is not an estimate. All watchers and fixtures are dropped afterward. At this limit new request files, sockets and scan lookups can fail before fallback can help. This is separate from the four metadata readers, which share their directory descriptor and passed the low-fd test. The newly retained watch anchors need a shared, acquired/released permit budget, not only a per-watcher snapshot limit. Source: crates/folders/src/linux_watch.rs:174–197, 237–239; crates/fsio/src/beneath.rs:129–159. No product source changed.
Review7 P2: unchanged release XFS mixed harness fails its idle CPU budget.
First exact-head run under flock -o /root/perf-vm.lock, fresh dedicated target built from all 1,007 hash-verified tracked files:
All six requested individual warm samples have now been collected. The second unchanged-harness fixture measured 0.480732, 0.458430, 0.477053 seconds (mean 0.472071). Thus all six new warm samples meet 0.75 seconds; the author's earlier 0.792543-second outlier is still retained and is not erased by this result. The second fixture is continuing through its CPU/publication gates. No assertion, interval or harness source was changed. The first run stops at its CPU assertion, so no later CPU/publication pass is claimed for it. This is a failed measured acceptance result; its cause and run-to-run variability are not established solely by this observation.
Review7 descriptor/thread probe source, external scratch only. The descriptor test is run alone with --ulimit nofile=8192:8192 on real staging overlay; the wide metadata test is run alone with --ulimit nofile=32:32 and separately --pids-limit=3. The sequential comparison replaces only directory_versions with its
8a6b39fversion. No product change.Review7 XFS results are complete under /root/perf-vm.lock. Both unchanged mixed harness runs fail their first idle CPU window: 0.6367% and 0.5217%, versus below 0.5%. Both failures are retained as exit 101; neither reaches later idle windows or publication checks. No cause for the variance is established.
All six requested individual warm samples pass <=0.75 seconds, in run order:
The author's earlier same-head 0.792543-second outlier remains in 62453–62455. These new passing warm samples do not turn either failed full harness into a pass.
XFS identity confirmation: the permanent pending-allocation reproduction actually recycles inode 100119389 and assigns a distinct ID. My separate restart probe actually recycles inode 124259132 at attempt 143, rejects the old allocation, and assigns a distinct ID. Thus the original pending-materialization failure is fixed on overlay, ext4 and XFS in these independent checks. The broader guarantee is still broken by duplicate repair: the new reproduction also fails on XFS, assigning deleted ID 01a15e6b-3c8c-7321-9002-78a80cb8b1b7 to the new F despite different inode and birth time. Its overlay/ext4 failures are already recorded in 62754. XFS polling-position/restart checks and the missing/corrupt-evidence matrix pass with native birth fallback.
Ext4 replacement stress has its first 32 fresh repetitions complete with no failures (each 1,000 replacements); the remaining 68 continue. All 100 overlay repetitions already pass. No product source or permanent harness was modified.
Independent review7, exact head
f42cf5ab53. perf/mixed-1.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. perf/mixed-2.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. perf/xfs-generation.log, part 1/1. Output follows verbatim.Independent review7, exact head
f42cf5ab53. perf/xfs-independent.log, part 1/1. Output follows verbatim.Independent review7, sources and filesystems explicitly identified in the output. crash-comparison.log, part 1/2. Output follows verbatim.
Independent review7, sources and filesystems explicitly identified in the output. crash-comparison.log, part 2/2. Output follows verbatim.
Independent review7, head
f42cf5ab53. independent.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. discovery-matrix.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. discovery-corrected.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. stale-actions-both.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. duplicate.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. limits.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. sequential-limits.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. global-fd.log, part 1/1. Output follows verbatim.Independent review7, sources and filesystems explicitly identified in the output. storage-baseline-comparison.log, part 1/2. Output follows verbatim.
Independent review7, sources and filesystems explicitly identified in the output. storage-baseline-comparison.log, part 2/2. Output follows verbatim.
Independent review7, head
f42cf5ab53. staging-final-source.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. perf-final-source.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. stress-overlay-complete.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. filesystems.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. ext4-proof.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. stress-interruption.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. stress-ext4-complete.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. stress-ext4-interrupted.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. staging-cleanup.log, part 1/1. Output follows verbatim.Independent review7, head
f42cf5ab53. perf-cleanup.log, part 1/1. Output follows verbatim.Independent review round 7 of #641. Head
f42cf5ab53; base origin/dev8b30062e1c; previous reviewed head8a6b39f83c. Reviewed the fix6 delta and the complete branch diff. Verdict: do not merge.Ranked findings:
Review6 verification:
Release XFS warm measurements, all six requested samples, seconds:
Every new warm sample meets <=0.75 seconds. The author's earlier same-head 0.792543-second outlier remains in 62453–62455. These new passes do not erase it or convert the failed complete harnesses into passes. Both runs use the unchanged permanent harness and a fresh dedicated release target, with /root/perf-vm.lock held. All 1,007 tracked source files match the reviewed head before and after the runs.
Notes crash attribution: the required 20 head and 20 origin/dev executions of kill_nine_mid_append_on_a_long_note all pass, each running exactly one test. An additional 20 origin/dev direct-ext4 executions also pass. The reported title-comparison flake was not independently reproduced, so these experiments cannot confirm its pre-existing attribution. Comment 62319's historical evidence is retained, not relabeled as our own baseline failure. No assertions or timeouts changed.
Required gates: fmt passes; clippy --workspace --all-targets -- -D warnings passes; all ten folder suites pass, each 88 passed/0 failed/5 ignored. Complete workspace runs 1 and 3 pass 869/0/7; run 2 completes all packages but fails 868/1/7 at storage_startup::single_root_upgrade_backup_split_cache_delete_and_rollback, line 300, failing to reacquire the Home lock. That is a separate failure from the author's notes title comparison. Twenty focused and twenty complete baseline storage_startup suite repetitions pass; the new lock failure remains unclassified and the original workspace gate remains failed. Full fmt/Clippy/workspace/folder logs are posted verbatim in 62755–62765 and 62772–62781. The crash comparison and independent probes are also posted verbatim.
All added probes and artifacts are external scratch evidence. The first physical-namespace scratch test incorrectly required Home at exactly tick 1,563; its corrected <=1,563 bound passes while the nested worst-phase assertion stays exactly 1,563. The original failed probe output remains retained. No product or permanent harness content was edited. No commits, pushes, merges, deployments, issue closure or production access occurred.
Cleanup is complete. All owned staging containers used --rm; the named stopped containers, ext4 fixtures and owned source/target copies are removed. Staging is 25% disk after cleanup (highest observed 36%, always below 60%). Perf VM cleanup held the shared lock and removed only the owned /mnt/z4-nvme/folderids-review7 directory and its verified target symlink. Evidence remains outside the repository and in issue comments. Original worktree is clean and HEAD/base are unchanged.
Gate driver output, verbatim (the workspace-2 failure is retained; the required aggregate is FAIL):
Performance driver output, verbatim (individual failed statuses are retained):
Final stress results, verbatim:
Starting fix round 7 on issue/folder-ids-fix7, from origin/issue/folder-ids-fix6 at
f42cf5ab53. Merging origin/dev reports already up to date. I will centralize live identity verification for readers, allocation reuse and mutations, retain opened handles, make review7 reproductions permanent, fix descriptor and thread fallback behavior, investigate the storage lock failure, and profile the unchanged XFS harness. Evidence and raw gate logs stay outside the repository. No PR, merge, deployment or production access.Fix7 audit finding: marker content is also insufficient after an ID's old row has been removed. The current index/cache forget deleted allocations, so a copied old marker can claim that ID in another directory generation after a later reconcile/restart. I am retaining an ID-to-generation registry separately from the live path index and checking it in reconciliation. This is lasting identity state, not a scan artifact.
The strict atomic rename requirement has a kernel limitation: Linux renameat2 accepts parent descriptors and source/destination names, but has no AT_EMPTY_PATH or compare-and-rename primitive for a held directory descriptor. Openat2 containment and held parent/source descriptors allow marker writes to stay bound and reject stale paths/parents before rename; they cannot make the final source-name lookup and identity comparison atomic against a concurrent external rename. I will document and test the checks and report this remaining limitation explicitly. I am continuing the authorized work and gates without waiting for input.
Fix7 storage lock investigation: storage_startup line 300 reacquires Home after a storage::re_pair lock was dropped. DataLock is unchanged from origin/dev and releases flock ownership only through File close. A fork/exec overlapping another test can inherit the same open file description briefly; CLOEXEC closes it at exec, but close in the parent alone does not release a lock retained by that description. A deterministic duplicate-descriptor test models this kernel ownership condition: a duplicated _file keeps a dropped lock busy before the fix. Explicit File::unlock in DataLock::drop releases ownership immediately, while a live DataLock still rejects a second owner. The new regression passes in the focused fsio suite. This is an inherited lock-release weakness, not introduced by folder identity work. It is a plausible mechanism for the old intermittent failure; I am not claiming that the original run captured proof of that precise fork timing. The full workspace repetitions will remain independently reported.
Fix7 evidence: baseline-lock.log, part 1/1. Verbatim output:
Fix7 evidence: property.log, part 1/1. Verbatim output:
Fix7 profile: the unchanged
f42cf5amixed XFS harness was profiled under /root/perf-vm.lock after its warm samples. The sampled test process attributes 62.67% inclusive cycles to poll_uncovered and 30.13% to verify_namespaces (639 samples, zero lost). Folder::names accounts for 13.54% inclusive. This is diagnostic sampling, not an acceptance run: the profiler adds overhead and its recorded child was intentionally terminated after the 120-second capture. The three pre-profile warm samples were 0.534010, 0.573685 and 0.533276 seconds.The first targeted change streams borrowed entry names instead of building and cloning a complete name list, and reuses a prefix buffer for nested paths. The 64 namespaces/tick budget, 1,563-tick bound and 36-tick metadata schedule remain unchanged. The unchanged acceptance harness will determine whether this saves enough CPU; no pass is claimed from the profile.
Fix7 retained earlier gate results: workspace run 1 passed. Workspace run 2 completed all packages but failed rapid_replacement_must_reinstall_the_watch_at_the_same_path at its fallback-poll assertion and the new wide-reader test's exact process-fd count. These are retained failures, not discarded by restarting gates.
The shared permit calculation still shrank unused capacity to the most recent caller's requested batch. A small Home asking for one probe could revoke almost all free anchor capacity previously reserved by another Home, unnecessarily forcing that Home into polling. The pool now represents all safe descriptor headroom while the returned per-call batch stays bounded. The wide-reader resource test permanently checks that a one-probe request does not shrink that capacity. Its process-fd leak assertion is isolated in a subprocess so unrelated tests cannot close descriptors during the measurement; the failed run had 6 after versus 7 before, rather than a leak. The pids=3 and nofile=32 standalone executions already passed.
I stopped only the recorded owned staging driver PID after these findings and the additional Trash-enrollment fix, and cancelled only the recorded owned queued perf flock PID to rebuild the revised source. The old release measurement had not begun. Complete workspace and filesystem gates are restarting on the final snapshot; partial and failed logs remain outside the repository and will be posted verbatim.
Fix7 evidence: earlier-workspace-2-failed.log, part 1/2. Verbatim output:
Fix7 evidence: earlier-workspace-2-failed.log, part 2/2. Verbatim output:
Fix7 progress at
6bda54c273: fmt and workspace Clippy pass; all three complete workspace runs pass. Both machines match all 1,010 tracked files. Overlay folder repetitions are passing; ext4 and XFS repetitions remain in progress/queued. Staging is 34% disk.Additional caller finding now covered permanently: ensure_trash_locked could previously take an existing copied valid marker and publish it as Trash's ID before duplicate reconciliation, stealing a live or historical allocation. Trash enrollment now checks the immutable historical owner before publishing, and Home::resolve also applies that constraint to source and ancestor candidates. The permanent trash_enrollment_cannot_steal_an_existing_or_retired_marker_id test passes in the complete workspace runs, alongside stale get/list, source, parent and restore cases.
Release build/measurement is waiting behind other jobs on the shared perf VM lock. No competing job was stopped. No release acceptance pass is claimed while queued. The final rename comparison remains explicitly non-atomic against an outside rename; ADR 0061 states that limitation and the full strict mutation invariant is not claimed satisfied.
Pushed issue/folder-ids-fix7 at
6bda54c273. No PR was opened. Correctness repetitions are passing; release acceptance remains queued.Fix7 caller audit. The complete production search was
rg -n 'path_of\(|id_at\(|by_id\(|by_path\(|read_marker\(|same_generation\(' crates/folders/srcplus a workspace search for the same names andmove_directory.Public ID/path consumers:
Reconciliation and repair:
Address hints and bookkeeping, without authority over directory contents:
Fix7 caller-audit finding: watch anchor enrollment called Folder::open_strict, whose documented implementation creates missing path components. A stale watch candidate could therefore recreate a deleted folder (or parent) before even installing the watch. This is another path-to-directory mutation outside the identity resolver, rather than an ID-cache comparison bug. The watcher now uses the new open_existing_strict helper; watch_enrollment_never_creates_a_missing_directory is permanent and checks that a missing nested parent is also untouched. ADR 0061 states the read-only enrollment rule.
Pushed the additional fix as
e09c2bcon issue/folder-ids-fix7. No PR. Before this revision, head6bda54cpassed all three workspace commands, ten overlay folder suites and the first ext4 suite. The second ext4 run was deliberately interrupted by stopping only its recorded owned driver PID; those logs are archived separately. Final gates restart at the new head. The perf release build had not acquired its lock before the updated source was installed, so no acceptance measurement is discarded or relabeled.Fix7 recovery audit, now at
9904ab1: a stale pending plan can pair a historical ID with a newer cache signature during replay. Checking only that newer cached generation in duplicate repair/materialization is still insufficient. The central resolver now accepts the proposed ID's immutable historical owner and compares it to the live directory before acting. Pending materialization and duplicate repair pass that owner too; duplicate repair refuses historical IDs as fresh-ID candidates. The permanent replay_and_materialization_cannot_rebind_a_historical_id_to_new_cache_evidence test covers a poisoned allocation and an old plan beside newer cache evidence.The prior
e09c2bcsnapshot passed fmt, Clippy and the first two complete workspace commands; its third was deliberately interrupted by stopping only recorded owned driver PID 2275008. Those logs are archived separately. Final gates restart at9904ab1. The perf release build is still queued behind other jobs; updated source was installed before its compilation began. No PR, merge or deployment.Fix7 final ownership rule at
c3ec4178f8: an ID surviving only in the index is reserved with an unmatchable owner when both cache and historical evidence are missing. A marker at the old path cannot fill in that lost generation history. Reconciliation retires the ambiguous allocation once; the permanent index_without_generation_history_cannot_authorize_a_copied_marker test verifies a replacement directory and convergence across restart.The preceding
9904ab1snapshot passed fmt, Clippy and its first full workspace command, including the replay/materialization regression. Its next command was deliberately interrupted to run the final source. All earlier gate output remains archived. Both machines now match all 1,010 tracked files atc3ec417. The new head is pushed to issue/folder-ids-fix7; no PR. The release build is next behind the current perf lock owner. The documented final rename race remains unresolved; passing tests will not be presented as proof of the strict atomic mutation invariant.Fix7 evidence: fmt.log, part 1/1. Verbatim output:
Fix7 evidence: clippy.log, part 1/1. Verbatim output:
Fix7 evidence: workspace-1.log, part 1/2. Verbatim output:
Fix7 evidence: workspace-1.log, part 2/2. Verbatim output:
Fix7 evidence: workspace-2.log, part 1/2. Verbatim output:
Fix7 evidence: workspace-2.log, part 2/2. Verbatim output:
Fix7 evidence: workspace-3.log, part 1/2. Verbatim output:
Fix7 evidence: workspace-3.log, part 2/2. Verbatim output:
Fix7 evidence: c3-mixed-1-failed.log, part 1/1. Verbatim output:
Fix7 exact
c3ec417release XFS acceptance failed, retained as exit 101. Streaming borrowed namespace names was insufficient. Unchanged harness SHA256: 05e6d068a1a70cffd7eb102536497d3a905c6ef31f495a8fa6cda26f81199fb0. All three individual warm samples pass (0.629264, 0.680549, 0.735376 seconds), but the first 120.926-second idle window is 0.6533%, above 0.5%. The harness stops at that assertion, so no later idle or publication result is claimed. Raw output is posted verbatim separately.I am checking safe metadata batching options against the profile's dominant polling cost. No timing window or assertion is being weakened. Correctness gates continue while this measured failure is investigated.
Final verification is continuing on
c3ec4178f8. The bounded namespace-cursor CPU prototype was rejected and is not on the branch. Its unchanged XFS mixed harness failed before idle measurement: warm_s=0.722712, 0.795305, 1.007155; mean_warm_s=0.841724, exit 101. A staging-only diagnostic had reduced its first idle window from 0.4063% to 0.3484%, but those incomplete runs are not acceptance evidence. The committed version's earlier XFS idle failure, 0.6533%, remains a failure.Blocked requirement: Linux renameat2 names the source under a parent fd; it cannot atomically compare that name with the verified source fd. This patch retains verified source and parent handles and revalidates immediately before the fd-relative rename, but an external rename between that check and the syscall remains possible. The ADR states this explicitly. The strict no-other-generation-mutation requirement is therefore not fully implemented. Randomized tests cannot establish atomicity absent from the mutation primitive. No PR or merge will be made.
Head
c3ec4178f8on issue/folder-ids-fix7.Fix7 caller audit. The complete production search was
rg -n 'path_of\(|id_at\(|by_id\(|by_path\(|read_marker\(|same_generation\(' crates/folders/srcplus a workspace search for the same names andmove_directory.Public ID/path consumers:
Reconciliation and repair:
Address hints and bookkeeping, without authority over directory contents:
Home::relevant_path uses id_at only to decide whether an event should trigger reconciliation. It does not return an identity or mutate a folder.
Index::path_of/id_at/rows/page/by_id/by_path, moved_subtree and same_as maintain candidate addresses. Every public consumer above verifies them. Internal moves update cache keys with index keys.
scan::folders, Probe polling, namespace_matches, coverage queues and scan-workspace topology inspect discovery hints. Public rows and marker writes never inherit their authorization from those hints alone.
Historical old_by_path/old_by_id maps are used for journal comparisons and candidate allocation lookup, with generation checks before reuse.
Home::open rebuilds historical constraints from durable owners and saved cache evidence, reserving any remaining index-only identities without evidence. It does not trust an index path to enroll an owner.
Home::materialize_markers snapshots immutable ownership constraints for each pending allocation; replay cannot replace the plan's ownership with a new occupant's cache proof.
FolderWatcher::watch opens existing directories through Folder::open_existing_strict. Watch enrollment cannot create a directory from a stale cached name.
watch token anchors and metadata probes retain only globally permitted descriptors. They authorize shortcuts for change detection, never an ID-addressed mutation.
The broader workspace search also found note-file identity APIs under crates/notes and their callers in crates/daily. Those are a different file-ID index, not consumers of the folder-ID index or Folder::move_directory, and were left outside #641's folder identity change.
The address checks above do not provide an atomic comparison with renameat2. The final outside-writer source-name swap race remains documented and unresolved. This caller inventory must not be read as proof of the stronger mutation invariant.
Fix7 evidence: gate-status.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-1.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-10.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-2.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-3.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-4.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-5.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-6.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-7.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-8.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-9.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-1.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-10.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-2.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-3.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-4.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-5.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-6.log, part 1/1. Verbatim output:
Fix7 evidence: prototype-mixed.log, part 1/1. Verbatim output:
Fix7 evidence: prototype-status.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-7.log, part 1/1. Verbatim output:
Fix7 evidence: pids3-final.log, part 1/1. Verbatim output:
Fix7 evidence: nofile32-final.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-8.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-9.log, part 1/1. Verbatim output:
Continuing round 7 on branch issue/folder-ids-fix7, head
c3ec4178f8, original basef42cf5a. I have read the previous job instructions and saved state, without opening review finding files. I am auditing all folder address callers, checking the reliability fixes and existing gate evidence, and investigating the remaining unchanged XFS idle CPU failure. The saved report explicitly leaves a final external source-name swap race unresolved; I will not label that invariant complete without a supporting primitive and tests. No PR, merge, deployment or protected-branch push.Caller and reliability audit finding: scan::run_paths currently attempts generation attribute repair only when trustworthy native birth time is unavailable. On direct ext4 and XFS, a writable oversized or malformed private attribute is left unusable indefinitely, although identity remains stable through native birth evidence. I added an assertion to the permanent missing/corrupt evidence matrix that requires a valid repaired attribute in those cases. I am checking the failure on ext4 before changing the repair path. The CPU candidate is saved outside git and remains an experiment.
Attribute repair regression confirmed and fixed in
4265320. Before the fix, the new ext4 assertion failed with: writable oversized generation attribute was not repaired on native_births=true. The bounded reader now distinguishes missing evidence from read errors and invalid UTF-8. Changed directories repair unusable existing attributes on native-birth filesystems as well as overlay, retaining the opened handle and flushing evidence before publication. The permanent matrix now covers missing, oversized, invalid UUID, invalid UTF-8 and empty attributes with both valid and foreign markers. An explicit attribute change event bypasses discovery shortcuts, as required on mounts with colliding timestamps. The final matrix passes on overlay and ext4 and focused clippy passes. Raw red and green output follows separately. The earlier first green attempt used mismatched experimental source files and failed compilation; the next attempt exposed a metadata shortcut in the test, so the final test includes the explicit attribute event. No failed attempt is counted as a pass.Fix7 evidence: attribute-red.log, part 1/1. Verbatim output:
Fix7 evidence: attribute-green-event.log, part 1/1. Verbatim output:
Watch setup audit finding and fix: linux_watch::Watcher::watch opened a directory to establish its anchor, then inotify_add_watch resolved the pathname again. A permanent test replaces that name after opening the expected directory. The old registration produced ["replacement"] instead of ["verified"], exit 101. Registration now follows only /proc/self/fd for the still-open directory, preserving the strict no-symlink open of the supplied path. Every registration, including native-birth mounts and alias re-enrollment, uses that handle. Known ambiguous mounts acquire the shared descriptor permit before opening the next retained anchor. Four watcher regressions and focused clippy pass. This closes the registration race; it does not change the separate, unresolved renameat2 source-name race.
Fix7 evidence: watch-binding-red.log, part 1/1. Verbatim output:
Fix7 evidence: watch-binding-green.log, part 1/1. Verbatim output:
CPU investigation: the bounded namespace cursor plus rolling 36-tick metadata ranges did not meet acceptance. The unchanged release XFS mixed harness ran with warm_s=0.604041, 0.527918, 0.600393 (mean 0.577451), then failed its first 120-second idle window at 0.5794%, exit 101. It stopped before publication checks. The code remains uncommitted. A fresh diagnostic perf capture on
c3ec417attributes 67.27% of sampled work to poll_uncovered and 21.92% to namespace verification. That profiled run measured 0.9824% while perf was attached and is diagnostic only, not an unprofiled budget result. I am measuring safe io_uring stat batching in a standalone prototype before deciding whether it belongs in the product. The unchanged harness SHA256 remains 05e6d068a1a70cffd7eb102536497d3a905c6ef31f495a8fa6cda26f81199fb0.Fix7 evidence: mixed-trial-failed.log, part 1/1. Verbatim output:
The descriptor audit found two more paths around request headroom. With eight Homes filling anchors, creating sixteen later watchers raised fd usage to 4158 under hard nofile=8192, leaving fewer than the reserved 4096 request fds. The expanded permanent regression fails there. Watcher creation now acquires four permits for its inotify fd, poll clone and wake pair before opening them; they return after shutdown and closure. The fixed test reports later_watchers=0, fds=4094 and successfully opens all 4096 request fds.
A second permanent regression holds a two-descriptor permit before those descriptors are created, then lets another Home recalibrate the pool. The old code widened capacity from 1044475 to 1044477 by counting that reservation twice. Pool capacity now grows only by a real soft-limit increase while permits remain outstanding; empty pools can recalibrate afresh. Missing markers cannot re-lend their reserved slot, and an unavailable descriptor count refuses new retention. Both regressions and focused clippy pass. Commit
699ef98. Raw failures and fixed output follow.The final native property corpus will use real ext4 and XFS mounted on private RAM-backed loop devices. The comparison run took 21.36 seconds for ten cases on native ext4 and 78.10 seconds on disk-backed loop ext4 while other native cases were active. Product sync calls and all identity assertions remain enabled; this changes the storage backing for logical filesystem tests. Release budget acceptance remains on the perf VM XFS disk, under its lock. Staging remains below 60 percent disk usage.
Fix7 evidence: budget-red.log, part 1/1. Verbatim output:
Fix7 evidence: budget-inflight-red.log, part 1/1. Verbatim output:
Fix7 evidence: budget-green.log, part 1/1. Verbatim output:
Source review found another descriptor-budget recovery problem at current head
699ef98. If both /proc/self/fd and /dev/fd enumeration fail, reserve_metadata_handles clears HANDLE_LIMIT. With a live Home cursor holding a permit and no soft-limit increase, later successful enumeration derives its ceiling from that zero, so admission cannot recover. New allocations must remain blocked while enumeration is unavailable, but the previous conservative calibration must survive. A regression is being run before the fix. The current immutable filesystem and CPU snapshots remain unchanged; their results will be identified separately from the final revision.The strict external-swap-before-renameat2 limitation described earlier remains open. A retained directory handle and final source check do not make a named directory rename conditional on the checked inode. I will not report the stronger no-other-generation-mutation invariant as proved.
The 10,000-case release corpus passed on actual container overlay, but failed on direct ext4 and XFS backed by owned RAM block images on staging. These are real kernel ext4/XFS filesystems, with product durability calls unchanged. ext4 returned content generation 8 for an ID previously owned by generation 6; XFS returned generation 23 for an ID previously owned by generation 19. Both failed the public lookup assertion, before 10,000 cases completed. The native failures are correctness failures, not passing gates. I am adding failing-seed and saved/live generation diagnostics to reproduce and isolate them. Raw outputs follow.
Fix7 evidence: pre-recovery-property-overlay.log, part 1/1. Verbatim output:
Fix7 evidence: pre-recovery-property-ext4.log, part 1/1. Verbatim output:
Fix7 evidence: pre-recovery-property-xfs.log, part 1/1. Verbatim output:
Fix7 evidence: recovery-red.log, part 1/1. Verbatim output:
Fix7 evidence: recovery-green.log, part 1/1. Verbatim output:
The native failure is now reproduced with saved/live evidence. In ext4 case seed 230, step 7, a foreign-marker directory replacement reused device 1794, inode 18921, birth 1792598546313696066 and every recorded directory and marker stat field. Both historical owner and live signature had generation=None. The central comparison therefore accepted birth equality and returned the old ID for user-content generation 8 instead of 5. The old native-birth assumption is false even on ext4/XFS, not only overlay. One XFS folder-suite repetition also failed the existing recycled-inode pending-allocation regression.
The fix requires a durable directory nonce before publishing any allocation on every supported filesystem, including native ext4/XFS, and never accepts a saved nonce-free allocation merely because birth metadata agrees. Native birth mismatch remains an additional rejection. Missing attributes are installed and flushed before publication; when that is impossible, the stable outcome is to withhold the address. This may retire a legacy nonce-free allocation once. Marker bytes are preserved during safe repair. A deterministic equal-stat/equal-birth/no-nonce regression and the native corpora will validate it. Raw reproduction follows.
Fix7 evidence: native-reproduce.log, part 1/1. Verbatim output:
Code review identified a durability retry gap: nonce installation followed by a later scan or syncfs error leaves the new attribute on disk, but generation_created was only local to that failed call. A retry sees the existing nonce and can skip the required barrier before publishing. This previously affected non-native mounts and must also be fixed for mandatory native nonces. The correction will keep a barrier owed whenever the final opened candidate generation is not already matched by a published cache row. A failed scan leaves that cache unchanged, so retry must flush again even when nonce creation did not occur in the retry. A permanent injected-barrier failure/retry regression is being run red before the correction.
Fix7 evidence: native-collision-red.log, part 1/1. Verbatim output:
Fix7 evidence: barrier-red.log, part 1/1. Verbatim output:
Fix7 evidence: barrier-green.log, part 1/1. Verbatim output:
Snapshot verified2 (base
4e86b12plus pending CPU changes; manifest 11450f0b9f1c2366cc1840231ed9947aa34279192ccc4def49bc52569bda3e0f) passed the wide-reader resource regressions in two fresh containers: a three-task cgroup, forcing thread-creation fallback, and RLIMIT_NOFILE=32. Both exact tests ran one test, passed, and exited zero. The test also checks enumeration order, no descriptor leak, and shared reservation behavior. No local heavy command was run. Full raw commands and outputs follow.Fix7 evidence: verified2-pids3.log, part 1/1. Verbatim output:
Fix7 evidence: verified2-nofile32.log, part 1/1. Verbatim output:
Another watcher descriptor edge was confirmed in source review. Unknown/native watch enrollment opened its temporary candidate before acquiring a metadata permit; only retained ambiguous anchors were charged. Existing watchers could therefore transiently consume serving headroom after the metadata pool was committed. The fallback beneath traversal can also hold two extra directory descriptors at once. I am making candidate admission unconditional before open, with a second temporary permit held during traversal. After opening, only ambiguous mounts retain the candidate permit; native candidates close before returning that permit. A subprocess regression physically fills the admitted pool, then asserts that enrollment never calls its directory opener. The immutable verified2 runs are still useful intermediate evidence, but final gates will be rerun on the corrected source.
Fix7 evidence: watch-open-red.log, part 1/1. Verbatim output:
Fix7 evidence: watch-open-green.log, part 1/1. Verbatim output:
The native nonce fix passed its isolated 10,000-case ext4 corpus and 10,000-case XFS corpus: both exact tests ran one test, completed every case and exited zero. This is the recovery-source isolation run, before the later retry-barrier and temporary-watch-admission changes; it is not substituted for final head gates. The complete verified3 corpus and gate batch are now running from manifest 8b8ede05431ae7ce5227e94ef79e7d2dae3cf4f76922622aaea605a3135e9290 (base
2c8e789plus pending CPU changes). Raw isolation results follow.Fix7 evidence: nonce-isolation-property-ext4.log, part 1/1. Verbatim output:
Fix7 evidence: nonce-isolation-property-xfs.log, part 1/1. Verbatim output:
The final performance gates are temporarily blocked on the shared perf VM lock. Our recorded waiter PID 1434272 has waited over an hour behind existing jobs; the verified3 driver has not started, so there are no new accepted CPU or publication measurements yet. No other job was interrupted. I am keeping the queue position and continuing to wait. The driver checks the exact source manifest and unchanged harness before running two mixed and two fully watched release XFS budgets, with every individual warm, idle and publication sample checked.
Functional status for manifest 8b8ede05431ae7ce5227e94ef79e7d2dae3cf4f76922622aaea605a3135e9290: fmt, workspace clippy, three workspace runs, ten overlay folder suites and 10,000 overlay cases passed. The final ext4/XFS corpora and their folder repetitions remain in progress.
The separate strict final source-name swap before renameat2 remains unresolved as already documented; passing randomized tests will not be presented as proof that this kernel race is absent.
All functional gates passed for frozen snapshot verified3, manifest SHA-256 8b8ede05431ae7ce5227e94ef79e7d2dae3cf4f76922622aaea605a3135e9290. This is branch issue/folder-ids-fix7 at base head
2c8e78966cplus the pending CPU changes. The final commit will be compared byte-for-byte with this source manifest.Overlay was the actual staging container filesystem. ext4 and XFS were real kernel filesystems on owned RAM-backed block images; product sync calls and assertions were unchanged. This kept staging below 60% disk and made rapid native inode reuse reproducible. The performance acceptance runs remain on the perf VM's native XFS storage. All heavy commands ran remotely with cargo -j4.
Raw functional gate output is posted verbatim in the following comments. No evidence or artifacts are committed. Performance has not run yet because the shared perf lock is still held by earlier jobs. The strict final source-name swap before renameat2 remains unresolved; these serial corpora do not prove that concurrent kernel race absent.
The storage-startup lock failure belongs to the inherited close-only flock lifetime class, not folder identity reuse. DataLock previously relied on its last open file description closing. An overlapping child spawn can briefly inherit that description until exec, so dropping the owner did not necessarily make the Home immediately available. The permanent duplicate-description regression in crates/fsio/src/tests.rs:293 deterministically models that condition; the earlier job recorded it failing without the fix and passing with it. Commit
6bda54cexplicitly unlocks on DataLock drop (crates/fsio/src/lib.rs:222). This fixes the demonstrated class. The exact fork/exec timing of the one historical workspace failure was not captured, so its individual cause remains an inference, not a proven reconstruction. All three final workspace runs and twenty exact storage-test repetitions passed; their raw output follows.Fix7 evidence: source-check.log, part 1/1. Verbatim output:
Fix7 evidence: fmt.log, part 1/1. Verbatim output:
Fix7 evidence: clippy.log, part 1/1. Verbatim output:
Fix7 evidence: workspace-1.log, part 1/3. Verbatim output:
Fix7 evidence: workspace-1.log, part 2/3. Verbatim output:
Fix7 evidence: workspace-1.log, part 3/3. Verbatim output:
Fix7 evidence: workspace-2.log, part 1/3. Verbatim output:
Fix7 evidence: workspace-2.log, part 2/3. Verbatim output:
Fix7 evidence: workspace-2.log, part 3/3. Verbatim output:
Fix7 evidence: workspace-3.log, part 1/3. Verbatim output:
Fix7 evidence: workspace-3.log, part 2/3. Verbatim output:
Fix7 evidence: workspace-3.log, part 3/3. Verbatim output:
Fix7 evidence: folders-overlay-1.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-2.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-3.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-4.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-5.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-6.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-7.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-8.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-9.log, part 1/1. Verbatim output:
Fix7 evidence: folders-overlay-10.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-1.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-2.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-3.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-4.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-5.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-6.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-7.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-8.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-9.log, part 1/1. Verbatim output:
Fix7 evidence: folders-ext4-10.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-1.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-2.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-3.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-4.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-5.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-6.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-7.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-8.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-9.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-10.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-11.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-12.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-13.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-14.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-15.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-16.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-17.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-18.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-19.log, part 1/1. Verbatim output:
Fix7 evidence: storage-lock-20.log, part 1/1. Verbatim output:
Fix7 evidence: property-overlay.log, part 1/1. Verbatim output:
Fix7 evidence: property-xfs.log, part 1/1. Verbatim output:
Fix7 evidence: folders-xfs-1.log, part 1/1. Verbatim output:
Fix7 evidence: folders-xfs-2.log, part 1/1. Verbatim output:
Fix7 evidence: folders-xfs-3.log, part 1/1. Verbatim output:
Fix7 evidence: folders-xfs-4.log, part 1/1. Verbatim output:
Fix7 evidence: folders-xfs-5.log, part 1/1. Verbatim output:
Fix7 evidence: folders-xfs-6.log, part 1/1. Verbatim output:
Fix7 evidence: folders-xfs-7.log, part 1/1. Verbatim output:
Fix7 evidence: property-ext4.log, part 1/1. Verbatim output:
Fix7 evidence: folders-xfs-8.log, part 1/1. Verbatim output:
Fix7 evidence: folders-xfs-9.log, part 1/1. Verbatim output:
Fix7 evidence: folders-xfs-10.log, part 1/1. Verbatim output:
Fix7 evidence: pids3.log, part 1/1. Verbatim output:
Fix7 evidence: nofile32.log, part 1/1. Verbatim output:
Fix7 evidence: verified3-gates.log, part 1/1. Verbatim output:
Fix7 evidence: verified3-properties.log, part 1/1. Verbatim output:
Fix7 evidence: resource3-build.log, part 1/1. Verbatim output:
Verified3 is not an accepted CPU fix. The first complete mixed run passed: warm 0.306795–0.343892 s, idle 0.3236/0.4309/0.3967%, publication 36.923265–37.346704 s. The second run failed its first idle window at 0.5446%, despite warm scans 0.321201–0.389579 s. I paused only our recorded driver PID 1553309 and stopped its recorded superseded watched child (timeout 1555665, test 1555666), retaining our outer perf lock PID 1434272 for diagnosis. All other jobs are untouched.
The next diagnostic failed fixture creation because the shared XFS volume was full (295 MB free, df 100%). I am removing only this job's explicitly recorded scratch trees, under our held lock, before repeating the profile. This setup failure is distinct from the real 0.5446% CPU failure. The source and unchanged harness remain frozen while diagnosing. Raw mixed outputs follow.
Fix7 evidence: v3-mixed_100k_budgets-1.log, part 1/1. Verbatim output:
Fix7 evidence: v3-mixed_100k_budgets-2.log, part 1/1. Verbatim output:
The fresh V3 diagnostic profile captured 305 samples. Kernel entry/return, security_inode_getattr, xfs_vn_getattr and fdget_raw dominate. This is diagnostic profiling, not an accepted budget sample. A standalone safe-Rust comparison over 500,000 held-inode lookups showed no consistent improvement from statx BASIC_STATS, a smaller mask, or DONT_SYNC; the query implementation is unchanged.
The next candidate keeps the 36-tick directory/marker deadline, pairing metadata in six contiguous batches six ticks apart. It avoids tiny syscall bursts on every wakeup while retaining the same number of checks and all namespace/content verification bounds. A permanent test checks every phase and mixed-set size boundary: each path is visited exactly once in every 36-tick window. Focused cadence test, fmt and clippy passed.
Frozen V4 manifest: 32063fcd632beb1136bd89476974a96ffa4a5f34a2413d0dc302e5efc15da3b1. Full functional gates, all three 10,000-case corpora, and two complete mixed plus two fully watched release XFS budgets are rerunning. Our original lock PID 1434272 remains held while the superseded driver PID 1553309 is stopped; only this job's tests were terminated. Other perf jobs are untouched. The new driver runs under a 90-minute timeout inside that owned lock.
Fix7 evidence: v3-profile-stat-probe.log, part 1/1. Verbatim output:
Fix7 evidence: v3-profile-flat.txt, part 1/1. Verbatim output:
Fix7 evidence: v3-profile-profile-setup-full.log, part 1/1. Verbatim output:
The six-batch/36-tick candidate V4 failed: idle windows 0.4968%, 0.4966%, 0.5050%. Its functional partial runs were stopped as superseded, with only this job's exact PIDs recorded and signalled. The failed perf driver PID 1556890 and its timeout/test children 1558507 and 1558508 were retired; our original outer lock 1434272 remains held by the stopped original driver 1553309. Other jobs are untouched.
The next candidate uses a 40-tick cold period in five contiguous batches eight ticks apart. This explicitly changes the earlier nominal 36-tick discovery bound while retaining the user-required 43-second end-to-end publication budget. It leaves three nominal seconds for metadata work, debounce and reconciliation; recently changed paths still poll each tick, and namespace/content/larger-set bounds are unchanged. The ADR records the tradeoff.
A cadence test checks all starting phases and sizes: every path is visited exactly once per 40 ticks. The repeated marker/child regression now exercises the full cold phase and reported [40,32,40,32,40,32] detection ticks. Both tests, fmt and focused clippy passed. A new separate ignored release test targets the END OF THE FIRST cold batch, requiring the full 40 tick delay and checking both marker and child publication below 43 seconds. This runs in addition to the original untouched harness; perf_tests.rs still has SHA256 05e6d068a1a70cffd7eb102536497d3a905c6ef31f495a8fa6cda26f81199fb0.
Frozen V5 manifest 8d2b3ecf755ee601edd480c2c61f65be36dffe59e1e7fb426eac942726b67b5f. Full functional gates and three 10,000-case corpora are rerunning on staging; worst-phase and two mixed plus two fully watched budgets run under our held perf lock. This remains a candidate until all measurements complete.
Fix7 evidence: v4-mixed-failed.log, part 1/1. Verbatim output:
The 40-tick experiment is rejected. The additional worst-phase test measured 43.252089 seconds including reconciliation and debounce, exceeding the unchanged 43-second publication limit. I restored the earlier 36-tick source snapshot, whose 1,010 tracked source files exactly match the snapshot that passed all functional gates. Neither the 40-tick change nor its altered test bounds will be committed.
Idle CPU is still blocked. The restored snapshot completed one unchanged mixed release run with idle windows 0.3236%, 0.4309% and 0.3967%, but the second attempt failed at 0.5446%. The six-batch 36-tick experiment also failed at 0.5050%. The profile is dominated by kernel syscall entry/exit, getattr and descriptor lookup. The measured statx variants did not improve this consistently, and the tested native io_uring batch implementation used roughly three times the CPU of direct fstat. These results do not meet the requested reliable margin.
The strict mutation invariant remains blocked too. Linux renameat2 accepts parent handles and a source name, without a compare-and-rename operation on the opened source directory. An outside writer can swap that final name after validation and before rename. The ADR states this limitation; the randomized tests do not prove the race absent. I will publish the safe fixes and their passing evidence, and report these requirements as unresolved.
The later rejected-snapshot workspace attempts exposed two additional intermittent failures: an upload crash test connection reset at attachments_crash.rs:216, and a note save/history assertion at notes/src/room/save/review.rs:76. The original three workspace runs for the restored snapshot passed. I am checking these failures separately and will retain their raw output rather than count the failed attempts as passing gates.
Caller audit for pushed head
9439893279. Every tracked source file at this head matches the tested verified3 snapshot. CPU and the final atomic rename invariant remain unresolved, as stated below.Searches:
rg -n 'path_of\(|id_at\(|by_id\(|by_path\(|read_marker\(|same_generation\(|generation_matches\(|identity::resolve|move_directory|watch_beneath' crates/folders/src crates/fsio/src/beneath.rs, then a workspace search for folder-ID consumers and the same address APIs. Tests were separated from production callers.Live authority and public consumers:
crates/folders/src/identity.rs:11: shared generation predicate; a saved nonce is required on all filesystems. Native birth mismatch adds a rejection. Equal native stat/birth fields alone do not authorize reuse.crates/folders/src/identity.rs:48: the live resolver opens candidate source/parent, verifies nonce, marker and immutable historical ownership, returns retained handles.identity.rs:87revalidates held directory, parent position and marker; marker reads are atidentity.rs:62andidentity.rs:111.crates/folders/src/lib.rs:626: Home::resolve obtains the candidate path at line 631; it checks immutable owner constraints at line 659, resolves the source at line 671 and each indexed ancestor at line 685.crates/folders/src/lib.rs:186->lib.rs:696: public get -> Home::get -> Home::resolve (line 698).crates/folders/src/lib.rs:195->lib.rs:703: page obtains candidate rows and calls get for every returned identity.crates/folders/src/lib.rs:240->lib.rs:722->lib.rs:728: move resolves source at line 731 and destination parent at line 734, retains both bindings, calls move_bound at line 761.crates/folders/src/lib.rs:255->lib.rs:775: Trash resolves source at line 779 and Trash destination at line 788, calls move_bound at line 801. The origin record is written first for crash recovery.crates/folders/src/lib.rs:815: existing Trash id_at at line 824 is verified at line 827. New Trash enrolls marker at line 830, establishes/flushes a nonce, checks historical owner at line 851, then uses the live resolver at line 862 before index publication.crates/folders/src/lib.rs:260->lib.rs:885: restore resolves source at line 889. Saved origin supplies a candidate parent ID at line 916; the parent is verified at line 923, then move_bound runs at line 929.crates/folders/src/lib.rs:1766: move_bound uses the verified directory handles and revalidates beforecrates/fsio/src/beneath.rs:689Folder::move_directory. The latter compares the named entry to the retained source and uses fd-relative renameat2 with NOREPLACE. The final comparison and named rename are not atomic; the strict invariant remains blocked.crates/folders/src/actions.rs:31,actions.rs:46,actions.rs:60,actions.rs:86,actions.rs:106: list/get/move/Trash/restore forward to those same public methods. No separate API, CLI or MCP folder resolver was found.Repair, reconciliation and enrollment:
crates/folders/src/lib.rs:382: startup rebuilds owners from durable history and cache proof. Its index-only keys at line 411 reserve IDs without proof as unmatchable owners; an old path or marker cannot fill lost ownership evidence.crates/folders/src/lib.rs:1006: reconciliation discovery (scan::folders, line 1079), generation-checked unchanged shortcut (line 1149), and scan::run_paths (line 1156). Candidate address maps at lines 1158/1159 do not authorize an operation.crates/folders/src/scan.rs:381: discovery walks opened parents; directory metadata and watch coverage are hints. It does not return authoritative public bindings.crates/folders/src/scan.rs:488/scan.rs:512: run_paths and its injected-barrier implementation discover marker candidates on opened directories (read_marker, line 588), establish generation nonces before publication, and share the generation predicate through Cached::same_generation at lines 124/125. Reuse checks are at lines 554 (unchanged), 608 (barrier debt), 613 (owned truncation), 635 (same-path index-only), 641 (external rename), 662 (pending allocation), 698/715/723 (historical ownership), 734/736 (replacement plan and its owner). A failed scan does not erase nonce barrier debt.crates/folders/src/scan.rs:758: duplicate/historical-copy repair invokes the live resolver before touching its marker, with the proposed replacement ID's historical owner. Marker preservation, exclusive placement and reads at lines 771/780/786 use that binding's directory handle.crates/folders/src/lib.rs:1275/lib.rs:1314: materialization snapshots historical constraints and calls scan::materialize_owned.crates/folders/src/scan.rs:309/scan.rs:315: materialize_owned uses the live resolver with Allocation policy and owner proof before held-handle exclusive placement/truncation repair; marker read at line 339 stays on that handle. The line-306 wrapper is test-only.crates/folders/src/scan.rs:859/scan.rs:860: content verification uses the same live resolver with Owned policy. The shared bounded marker reader itself is at scan.rs:969.crates/folders/src/scan.rs:850: ensure_marker is used only for new system Trash, and the enrollment is verified as described above before its ID becomes addressable.Watch and metadata observers:
crates/folders/src/lib.rs:1684/lib.rs:1701: cover enrolls through the retained Home root; watch_token at line 1672 only records discovery coverage, not folder-ID authority.crates/folders/src/linux_watch.rs:186/linux_watch.rs:204: watch_beneath/watch_opening open existing candidates beneath that root.linux_watch.rs:316registers inotify through the opened directory's /proc/self/fd address. Every candidate open reserves capacity first, including the two-descriptor peak of fallback traversal. Replacement of Home's old absolute name or a candidate name cannot redirect that enrollment. The absolute path is only an event hint. The absolute-path watch wrapper at line 180 is test-only.crates/folders/src/lib.rs:1449andlib.rs:1525: polling and namespace verification inspect metadata hints; they cannot authorize an ID-addressed operation. Probe uses held metadata descriptors (scan.rs:134), and namespace checks are at scan.rs:872. Home cursor and polling/watch permits use one process-global pool (beneath.rs:192), including four watcher infrastructure descriptors, pending reservations and cursor handles.Candidate bookkeeping:
crates/folders/src/lib.rs:585/lib.rs:616: relevant_path uses id_at only to decide whether an event warrants reconciliation.crates/folders/src/lib.rs:944: successful internal subtree moves update both index and cache addresses.crates/folders/src/index.rs:42,index.rs:46,index.rs:50,index.rs:54,index.rs:62,index.rs:76,index.rs:85,index.rs:108,index.rs:112,index.rs:122: candidate path/id maps, updates, move bookkeeping, rows/page and comparisons. Every public folder identity consumer is listed above.crates/perf/src/bin/folder-scan.rs:43calls the public page method.crates/calternal/src/app.rs:12,plugins.rs:18andisolation.rs:71construct or register the same Folders service. Generated web actions forward to the plugin methods above.This inventory distinguishes enrollment/discovery hints from live authority. It does not certify the strict final rename invariant: Linux has no compare-and-rename operation for an opened directory. The last outside source-name swap before renameat2 remains documented and unresolved.
Fix7 evidence: mixed_100k_budgets-1.log, part 1/1. Verbatim output:
Fix7 evidence: mixed_100k_budgets-2.log, part 1/1. Verbatim output:
Fix7 evidence: watched_100k_budgets-1.log, part 1/1. Verbatim output:
Fix7 evidence: results.json, part 1/1. Verbatim output:
Fix7 evidence: worst-phase.log, part 1/1. Verbatim output:
Fix7 evidence: workspace-1.log, part 1/3. Verbatim output:
Fix7 evidence: workspace-1.log, part 2/3. Verbatim output:
Fix7 evidence: workspace-1.log, part 3/3. Verbatim output:
Fix7 evidence: workspace-3.log, part 1/3. Verbatim output:
Fix7 evidence: workspace-3.log, part 2/3. Verbatim output:
Fix7 evidence: workspace-3.log, part 3/3. Verbatim output:
Pushed issue/folder-ids-fix7 to
9439893279. No PR, merge or deployment was performed. This is a partial result; the task is not complete.Every one of the 1,010 tracked files at HEAD matches the verified3 functional snapshot (manifest SHA256 8b8ede05431ae7ce5227e94ef79e7d2dae3cf4f76922622aaea605a3135e9290). The rejected 40-tick changes and relaxed test bounds are absent. The source retains 36-tick paired directory and marker polling, the bounded Home namespace cursor, and the native ext4/XFS fresh link-count leaf proof. The unchanged release budget harness hash is 05e6d068a1a70cffd7eb102536497d3a905c6ef31f495a8fa6cda26f81199fb0.
The final source passed fmt, clippy, three workspace runs, ten folder-suite runs on each of overlay/ext4/XFS (112 passed, zero failed, five ignored each), 10,000 randomized identity cases on each filesystem (30,000 cases, 1,920,000 interleaved operation attempts), isolated thread and descriptor exhaustion tests, and twenty extra exact storage-startup test repetitions. Raw full functional logs were posted starting at comments 63359 through 63434. The verbatim result inventories follow below.
The reported Home-lock failure was investigated with an inherited/duplicated open file description. The prior close-only release could leave flock held after the owning DataLock was dropped; explicit unlock before close fixes that demonstrated class, with a permanent regression. The exact original fork/exec timing was not captured, so attributing that individual intermittent failure to this class is an inference. All three final workspace runs and twenty exact repetitions passed.
The caller inventory is in comment 63616. Public reads, moves, Trash, restore, repair and verification share the live resolver and retain verified directory handles. Discovery and watch metadata are hints, with watch registration bound to the opened candidate beneath the held Home root. This does not meet the strict final atomic rename requirement: an outside writer can still swap the source name after the last validation and before renameat2. The ADR states that limit. Passing serialized randomized cases do not prove that race absent.
Release budgets did not pass reliably. The first complete mixed run passed: warm 0.343892/0.306795/0.325673 s, idle 0.3236/0.4309/0.3967%, all six publications 36.923265 through 37.346704 s. The second mixed attempt failed at idle 0.5446%. A superseded watched run was interrupted and does not count as a pass. Thus two complete passing budget runs are NOT provided. The six-batch experiment failed at 0.5050%, and the rejected 40-tick experiment exceeded the worst-phase publication limit at 43.252089 s. All those failures are preserved in this issue. No success claim is based on averaging or dropping failed windows.
The perf lock was released after cleaning only this job's recorded fixtures. The shared requested CARGO_TARGET_DIR was preserved. Additional rejected-snapshot workspace flakes and staging cleanup will be reported separately once their baseline check finishes.
Verbatim gate-results.json:
Verbatim properties-results.json:
Verbatim resource-results.json:
Final follow-up for pushed head
9439893279(issue/folder-ids-fix7).The original base
f42cf5apassed twenty repetitions of the complete attachments_crash suite and twenty repetitions of the exact note save-after-SIGKILL test. Neither additional rejected-snapshot workspace failure reproduced. Their individual causes remain unconfirmed; these passing baseline repeats do not establish that the failures predate this branch. No speculative changes were made to the upload or note-save code. The final source still has the three clean workspace runs reported in comment 63630.Both owned native test filesystems were normally unmounted after all containers exited. Their loop backing files were checked against the recorded paths before removal, and the owned RAM image tmpfs was unmounted. Staging is at 45% disk, below the 60% limit. The perf lock is released, its owned paused driver and flock process are gone, and only recorded owned scratch trees were removed. No other job's processes or data were changed.
The task remains incomplete: the second mixed release attempt failed the idle CPU limit at 0.5446%, and the last outside source-name swap before renameat2 is not prevented. Two complete passing budget runs are not claimed. The final head, complete caller list, all final functional gate results, and raw passing and failing measurements are in comments 63616 through 63630 and the earlier full functional output linked there. No PR was opened and the issue remains open.
Verbatim baseline result inventory:
Verbatim cleanup record:
Round 7c started on issue/folder-ids-fix7, base
9439893279. Fetched origin and merged origin/dev first (already up to date). Reading comments 63616 and 63630. Will profile mixed idle cost before changing polling, implement journaled same-parent move staging, and run the requested gates. No PR, deployment or protected-branch push.Round 7c finding: the existing move uses a final named rename after checking a retained handle, so a source-name swap can still move an unrelated directory. I am replacing that operation with a journaled, unique same-parent staging name, generation verification there, exclusive destination placement, and restart recovery before scanning. All existing destinations are rejected (the product does not support replacing folders).
Boundary: Linux still cannot condition a named rename on an opened inode. An outside writer with permission to rename the private temporary name can interfere there too. Tests will inject original-name and temporary-name interference at each boundary; the ADR must distinguish these from an atomic compare-and-rename guarantee. If rollback finds a newly occupied original name, NOREPLACE must preserve both entries and retain the journal instead of overwriting the outside writer.
The perf profile is waiting for /root/perf-vm.lock, behind other jobs. No other process has been stopped.
Round 7c finding with test evidence: the journaled staging implementation passes all six new tests in the staging Rust container on overlay. The tests cover original-name swaps at Prepared/Staged/Verified/Committed, substitutions of the private name, a generation nonce change on the same inode, simulated process exits at all four boundaries, occupied rollback and racing destination names. Output:
This is an intermediate snapshot, not the final gates. The randomized filesystem suite now injects an original-name swap at a randomly selected move boundary in every case, using user-content payloads as its independent oracle. The budget harness is unchanged.
The earlier locked profile at /root/folderids-fix7/v3-profile-logs/report.txt shows polling fstat/kernel metadata overhead dominating the samples. A new profile and a narrow-statx comparison remain queued under the required VM lock. No polling implementation change has been made before profiling.
Round 7c finding: a crash after returning a substituted directory to its original name, but before clearing the move intent, needs an explicit abort decision in the journal. Otherwise recovery can mistake a completed rollback for an unresolved commit when the intended generation was moved aside by the outside writer.
The journal now saves rollback=true before returning any staged entry. Recovery repeats an unfinished rollback exclusively and clears an already completed rollback without trying to commit it. The new crash-after-rollback regression passes. The retryable folder_changed catalogue response is HTTP 409. All eight move regressions passed on the updated staging snapshot, followed by
cargo clippy -j4 --workspace --all-targets --locked -- -D warningswith exit 0.The new perf capture remains blocked on the shared /root/perf-vm.lock queue. Local build slots also remained occupied; after remote validation passed I stopped only my own recorded, still-queued build-slot waiter (PID 2190451). No other process or job was stopped. Staging is at 45% root disk usage; new source, targets and filesystem fixtures are on its separate HDD or in bounded RAM-backed filesystem images.
Round 7c polling finding and implementation: the earlier locked perf profile is from the exact baseline source. I compared SHA256 for lib.rs, scan.rs, fsio/beneath.rs and perf_tests.rs against commit
9439893and the VM's verified3-source; every file matched. That profile attributes the large majority of sampled idle cost to polling fstat calls and kernel metadata work (including syscall entry/return, security_inode_getattr and xfs_vn_getattr). The fresh 120-second capture and narrow-statx microbenchmark remain queued under the required VM lock.The adaptive scheduler now retains the established cadence for fifteen quiet minutes, then doubles each unchanged path's interval, with stable hash phases across ticks and rounds. Mixed mode caps at 1,152 ticks; the larger fallback caps at 896. Coverage-period changes clamp the cap and retain absolute poll debt. Activity or a changed reconciliation baseline resets only the affected path. Unrelated scans retain quiet age. Larger sets now spread work over ticks rather than doing full-set bursts. Backed-off visits always check both directory and marker metadata, avoiding a parity trap that could otherwise omit some markers forever.
This preserves the unchanged harness's publication samples after six idle minutes. It does not yet establish CPU margin in the initial active period: that still requires the budget runs and the metadata comparison. I will not claim that long-term back-off alone fixes every early idle window.
The adaptive folder snapshot passed 124 tests, with five ignored. The later targeted run passed all six polling tests, including an actual filesystem change after aging, unrelated reconciliation retaining cold debt, and a hot marker edit detected on the next tick. Workspace clippy passed after those changes. Full fmt/clippy/workspace 3x/folder 10x-per-filesystem gates and a fresh 30,000-case corpus are now running against an immutable source snapshot. The release harness remains unchanged at SHA256 05e6d068a1a70cffd7eb102536497d3a905c6ef31f495a8fa6cda26f81199fb0.
Round 7c finding: recovery must retain marker ownership checks as well as directory generation. A new regression changed a staged marker to another valid UUID, then simulated process exit. The generation-only recovery in local head
938de42incorrectly committed it to Destination. This is not a different directory generation, but it weakens the live operation ownership policy. The red reproduction follows verbatim:The fix records the verified source cache/ownership policy and historical owner proof in the intent, resolves the staged directory through identity::resolve with Owned policy, retains that binding through commit, and verifies the committed occupant. A stage with changed marker ownership is rolled back exclusively. The initial snapshot passed all three workspace repetitions, but it is superseded by this correction; final gates and the release artifact will be refreshed for the corrected head.
Recovery correction is now committed at
e93eba0703. The rebuilt code passes all ten move regressions and workspace clippy.The first attempted green invocation reused the old red binary because its copied source timestamps preceded the compile timestamp. It does not count as validation. All final gate snapshots now verify source hashes and then touch every Rust source before compilation.
The first rebuilt regression restored Source and withheld the old identity, but its immediate replacement-ID assertion failed when the in-place marker write had identical metadata within one filesystem timestamp tick. The fixture now atomically replaces the marker with an inode created while the old marker is still linked, so its fingerprint differs independently of clock granularity. It retains the assertions that Source is restored, Destination is absent, the old ID is withheld, and the replacement ID resolves to Source.
The first ownership correction also failed clippy for an unnecessary expect after is_ok. That failure follows verbatim; it was fixed with a direct pattern match.
Only this job's recorded superseded staging driver PIDs were stopped: 2802533, 2797174 and 2844985. Their unfinished corpus and folder repetitions do not count toward final gates. Initial head
938de42passed all three workspace runs, but final gates have restarted from the corrected head.The successful fresh recovery/clippy check follows verbatim:
Final-head workspace attempt 3 failed (exit 101) in type_over_the_websocket_and_read_it_back, while attempts 1 and 2 passed. The HTTP fixture got ConnectionReset while reading a response. I am checking baseline
9439893in a separate target and source tree before attributing this. The failing target output follows verbatim. No failure is being dropped or averaged away.Folder repetitions and the final 30,000-case corpus continue independently on head
e93eba0703. The perf VM lock remains occupied by another job.Baseline
9439893279reproduced the HTTP ConnectionReset at notes_live.rs:79 on repetition 33. It occurred in joining_a_missing_note_fails_politely; the final-head workspace failure occurred in type_over_the_websocket_and_read_it_back at the same shared HTTP helper. This establishes that the fixture-reset class predates the folder changes. The exact socket race behind the original failure remains unproven. Baseline used a separate source tree, separate target, forced fresh compilation, and the same Rust 1.99.1 staging image.Verbatim baseline output:
Three full workspace runs with --test-threads=1 are now running on
e93eba0703. This changes execution order without altering assertions. The earlier exit-101 workspace result remains part of the recorded gate history. Folder suites and the 30,000-case corpus continue separately. Staging root disk remains at 45%.The first serialized final-head workspace run also failed (exit 101), this time because the storage_startup integration process received SIGBUS during single_root_upgrade_backup_split_cache_delete_and_rollback. The baseline HTTP reset explanation does not explain this distinct failure. I am running the exact storage test on baseline
9439893in the separate baseline target. No root cause is claimed yet. Verbatim failing target output:The remaining two serialized full workspace runs continue, as do folder suites and the randomized corpus. No failing attempt is being counted as a pass.
Baseline
9439893also reproduced SIGBUS, on repetition 87 of the full storage_startup target with --test-threads=1. The timeout process returned -7 (SIGBUS) during single_root_upgrade_backup_split_cache_delete_and_rollback, matching the final-head target and signal. The individual test passed 100 isolated baseline repetitions; running the complete integration target supplied the reproducer. This establishes that this SIGBUS class predates the folder changes. It does not establish the exact mmap/SQLite race; no root cause is claimed.Verbatim baseline target output:
Verbatim result row:
Final-head workspace-serial-2 passed. The current full workspace runs remain on
e93eba0703, with no source or assertion changes to those unrelated tests. Additional full repetitions will supply three complete passing runs; every earlier failure remains recorded. All ten overlay folder suites have passed, and native suites plus randomized cases continue.Three consecutive COMPLETE workspace runs now pass on
e93eba0703: workspace-serial-2, workspace-serial-3, workspace-serial-4. All use cargo test -j4 --workspace --no-fail-fast --locked -- --test-threads=1. The confirmation inventory includes the earlier SIGBUS failure and follows verbatim:The original parallel workspace attempt 3 failed with the preexisting HTTP fixture-reset class (baseline reproduction in63739); serialized attempt1 failed with the preexisting storage SIGBUS class (baseline reproduction in63757). Those outputs remain recorded. No code or assertion change was made for either baseline flake. Full raw gate logs will also be posted.
All ten final-head overlay folder suites and all ten ext4 suites have passed. XFS and the 30,000-case corpus continue. The fresh baseline profile and all six final release budget tests remain queued under /root/perf-vm.lock; no CPU acceptance result is claimed.
All 30 COMPLETE folder suites passed on
e93eba0703: ten overlay, ten ext4, ten XFS. Each suite reported 126 passed, zero failed and five ignored. The result rows below are the recorded folder entries. Full stdout/stderr will follow with the complete gate evidence.The overlay randomized suite has also completed 10,000 cases with all new move-boundary injections and exit0. Native ext4 and XFS randomized cases continue with no failures so far. Three consecutive final workspace confirmation runs (serial2/3/4) passed, as recorded in63776; earlier baseline flakes remain documented. Perf acceptance remains pending on the shared VM lock.
Gate output for
e93eba0703: fmt.log, part 1/1. SHA256 of the complete file: d5ddb0e259934fdfe73eadb05794199083763caba321f5385de0a7f4f311c693. Verbatim captured output follows.Gate output for
e93eba0703: clippy.log, part 1/1. SHA256 of the complete file: 91c3d409158b15d6285361f357a6efd44f63a3546f375f6decaaa5bc9427430a. Verbatim captured output follows.Gate output for
e93eba0703: workspace-1.log, part 1/3. SHA256 of the complete file: a7f0f3c896e1d3ba41137e0c4dbd0916937b4503cce7c02361b95ef879fe487b. Verbatim captured output follows.Gate output for
e93eba0703: workspace-1.log, part 2/3. SHA256 of the complete file: a7f0f3c896e1d3ba41137e0c4dbd0916937b4503cce7c02361b95ef879fe487b. Verbatim captured output follows.Gate output for
e93eba0703: workspace-1.log, part 3/3. SHA256 of the complete file: a7f0f3c896e1d3ba41137e0c4dbd0916937b4503cce7c02361b95ef879fe487b. Verbatim captured output follows.Gate output for
e93eba0703: workspace-2.log, part 1/3. SHA256 of the complete file: 33cd13bb57ca1203fafb0c4258279f1e3754a9b983a8cf92dc22de566a082d59. Verbatim captured output follows.Gate output for
e93eba0703: workspace-2.log, part 2/3. SHA256 of the complete file: 33cd13bb57ca1203fafb0c4258279f1e3754a9b983a8cf92dc22de566a082d59. Verbatim captured output follows.Gate output for
e93eba0703: workspace-2.log, part 3/3. SHA256 of the complete file: 33cd13bb57ca1203fafb0c4258279f1e3754a9b983a8cf92dc22de566a082d59. Verbatim captured output follows.Gate output for
e93eba0703: workspace-3.log, part 1/3. SHA256 of the complete file: 8b500a764247ba9a661e1c726450b300871720d3d857a60722ddc20c77283cd0. Verbatim captured output follows.Gate output for
e93eba0703: workspace-3.log, part 2/3. SHA256 of the complete file: 8b500a764247ba9a661e1c726450b300871720d3d857a60722ddc20c77283cd0. Verbatim captured output follows.Gate output for
e93eba0703: workspace-3.log, part 3/3. SHA256 of the complete file: 8b500a764247ba9a661e1c726450b300871720d3d857a60722ddc20c77283cd0. Verbatim captured output follows.Gate output for
e93eba0703: folders-overlay-1.log, part 1/1. SHA256 of the complete file: b0da1203a5f229ea17b87a5d79c6654b355a9baf9af4c29688e4d919c4a47bf6. Verbatim captured output follows.Gate output for
e93eba0703: folders-overlay-2.log, part 1/1. SHA256 of the complete file: 3570e971ad9b01ccc3f71d4f7b01efc0ceb3b0966a6f719acccdb4bfca3b3adf. Verbatim captured output follows.Gate output for
e93eba0703: folders-overlay-3.log, part 1/1. SHA256 of the complete file: 9a7bccbef2df2ebd0874a71759ceca25af0b79620f327b0a6d1c9d67a4973276. Verbatim captured output follows.Gate output for
e93eba0703: folders-overlay-4.log, part 1/1. SHA256 of the complete file: 3c6ba1454684a4899c815dba698b140c33810fd3cec84a7a2d96a6d43fb3a725. Verbatim captured output follows.Gate output for
e93eba0703: folders-overlay-5.log, part 1/1. SHA256 of the complete file: afd554e5391c7cf6f129faee2b7d6afbd92d23fc597eb854a2f007d2f7956f9f. Verbatim captured output follows.Gate output for
e93eba0703: folders-overlay-6.log, part 1/1. SHA256 of the complete file: 8c958f42a63bfb97e0b9c3bbed96bb89e01a9065d11ab4a79a1f473efe19355d. Verbatim captured output follows.Gate output for
e93eba0703: folders-overlay-7.log, part 1/1. SHA256 of the complete file: 4e9633c93fe2fced2f639a0502555ffcc60bbe03290755c1700c69d9c4b34412. Verbatim captured output follows.Gate output for
e93eba0703: folders-overlay-8.log, part 1/1. SHA256 of the complete file: f719d2c248f9a9f9a1777baa34a2900e372568b86bcae5d885b5055829c99fbf. Verbatim captured output follows.Gate output for
e93eba0703: folders-overlay-9.log, part 1/1. SHA256 of the complete file: f9a5d149b41e3c24584510ba22ced500f56e89377840aa3c90c254ad87e2665c. Verbatim captured output follows.Gate output for
e93eba0703: folders-overlay-10.log, part 1/1. SHA256 of the complete file: a0711698ed33c1a282bebf5af6aa7408ed37eadc1e5b793564d86d007ecd5f78. Verbatim captured output follows.Gate output for
e93eba0703: folders-ext4-1.log, part 1/1. SHA256 of the complete file: b487bc9dc9858742e4730c26fc13d36d9d3b7ae3f650c597f5d4d834837e062f. Verbatim captured output follows.Gate output for
e93eba0703: folders-ext4-2.log, part 1/1. SHA256 of the complete file: a02f4e22c3bb16e5b0e7411de09e5229da7d18d39a43024e45a0aef0f239e3d5. Verbatim captured output follows.Gate output for
e93eba0703: folders-ext4-3.log, part 1/1. SHA256 of the complete file: 06f5714219f27648954208f2277eb8ab49d070941179ebd57f1baf1391f97bc3. Verbatim captured output follows.Gate output for
e93eba0703: folders-ext4-4.log, part 1/1. SHA256 of the complete file: 9f09466d0d3ed3adaa603201b50fb5e5307e57f7479692a2ad16bb33cfb19fc5. Verbatim captured output follows.Gate output for
e93eba0703: folders-ext4-5.log, part 1/1. SHA256 of the complete file: b229fc81b5e3a883989273e5052988f74e8d22c05cfaf087740601e896e24c87. Verbatim captured output follows.Gate output for
e93eba0703: folders-ext4-6.log, part 1/1. SHA256 of the complete file: 9897cce073cb7b69aa318f4418a82b78887efeb954bfbae2aa31b02893182eae. Verbatim captured output follows.Gate output for
e93eba0703: folders-ext4-7.log, part 1/1. SHA256 of the complete file: 3803088a7debe360fa20353072ee49caea2412eff50983c3a1f94df371d497bc. Verbatim captured output follows.Gate output for
e93eba0703: folders-ext4-8.log, part 1/1. SHA256 of the complete file: 6256e7a3b520ed5f8c86313863a22aa65fd5b564ea9fd89b5df6f45385e6fdd2. Verbatim captured output follows.Gate output for
e93eba0703: folders-ext4-9.log, part 1/1. SHA256 of the complete file: 20a7b7b05710dd4aeb0f28726c5853c6ff78f0e20838e63340fc85204e213deb. Verbatim captured output follows.Gate output for
e93eba0703: folders-ext4-10.log, part 1/1. SHA256 of the complete file: 099f9d6e24078748655d201fe622054b0bc54e1756844a6ce9065f4c8d45a6cc. Verbatim captured output follows.Gate output for
e93eba0703: folders-xfs-1.log, part 1/1. SHA256 of the complete file: 543750c635578dd58a34c3672b729d30adc623fa15544b29a2e62375bba7ba8a. Verbatim captured output follows.Gate output for
e93eba0703: folders-xfs-2.log, part 1/1. SHA256 of the complete file: 51915cb94943c51c076225e855fc2c9f53e34f39ea6e62c0296c68c7ba713a5b. Verbatim captured output follows.Gate output for
e93eba0703: folders-xfs-3.log, part 1/1. SHA256 of the complete file: 7be56f76f58c0cac4eab5a9325eb0ee639c4e4f975812025f3212de25ea457a2. Verbatim captured output follows.Gate output for
e93eba0703: folders-xfs-4.log, part 1/1. SHA256 of the complete file: 80f87dd367a5098a97743edffb93d62f61da381eb95b996142a87198baa67bf0. Verbatim captured output follows.Gate output for
e93eba0703: folders-xfs-5.log, part 1/1. SHA256 of the complete file: 83410b7c02f11b91c8c8afeac5dd1d0a516613dfa0ad7bca5510bf0c0f0f9162. Verbatim captured output follows.Gate output for
e93eba0703: folders-xfs-6.log, part 1/1. SHA256 of the complete file: d1cde374d8c1994e2d0537c2f4036b42c7346d5a91732049d1e0708e01ecb39c. Verbatim captured output follows.Gate output for
e93eba0703: folders-xfs-7.log, part 1/1. SHA256 of the complete file: c383080453807c4429f9091ba7409bcb9894cd0e000534af0f98f7ec63b44f03. Verbatim captured output follows.Gate output for
e93eba0703: folders-xfs-8.log, part 1/1. SHA256 of the complete file: d93b2ca82e1513383f9354f0e0bb0d5d21a6c2dbd653ad2855e1466a2858290c. Verbatim captured output follows.Gate output for
e93eba0703: folders-xfs-9.log, part 1/1. SHA256 of the complete file: 8e334d0dd94f6753fd08c50a76e1639b60dd6b3dc98d6196751bb069c9e7ca57. Verbatim captured output follows.Gate output for
e93eba0703: folders-xfs-10.log, part 1/1. SHA256 of the complete file: 60102b03c6ada1ea3886da8e979591608b2a46265812a01b7d8244416d48e302. Verbatim captured output follows.Gate output for
e93eba0703: property-overlay.log, part 1/1. SHA256 of the complete file: a6db32b7f11b4566b937a4eed641484055fab5999960dbe19ac949f9c38e47b5. Verbatim captured output follows.Gate output for
e93eba0703: property-ext4.log, part 1/1. SHA256 of the complete file: 924743239458eb15aea380e9f6236cceaf76510d49cf8fe2ffc24bf6e784a371. Verbatim captured output follows.Gate output for
e93eba0703: property-xfs.log, part 1/1. SHA256 of the complete file: e28760efe3ead6f5075d3f6a84cd2019a3499415223471b7fe70b4ceed483a5b. Verbatim captured output follows.Gate output for
e93eba0703: workspace-serial-1.log, part 1/3. SHA256 of the complete file: bbab1c1daed3d62603ae446c23b94f3dc0a8b7d8e90a30e6b7b145fd6ae134d1. Verbatim captured output follows.Gate output for
e93eba0703: workspace-serial-1.log, part 2/3. SHA256 of the complete file: bbab1c1daed3d62603ae446c23b94f3dc0a8b7d8e90a30e6b7b145fd6ae134d1. Verbatim captured output follows.Gate output for
e93eba0703: workspace-serial-1.log, part 3/3. SHA256 of the complete file: bbab1c1daed3d62603ae446c23b94f3dc0a8b7d8e90a30e6b7b145fd6ae134d1. Verbatim captured output follows.Gate output for
e93eba0703: workspace-serial-2.log, part 1/3. SHA256 of the complete file: 701b17337dc4ddd8569904519543542cea7a61b4c05691a956986e7573bd262a. Verbatim captured output follows.Gate output for
e93eba0703: workspace-serial-2.log, part 2/3. SHA256 of the complete file: 701b17337dc4ddd8569904519543542cea7a61b4c05691a956986e7573bd262a. Verbatim captured output follows.Gate output for
e93eba0703: workspace-serial-2.log, part 3/3. SHA256 of the complete file: 701b17337dc4ddd8569904519543542cea7a61b4c05691a956986e7573bd262a. Verbatim captured output follows.Gate output for
e93eba0703: workspace-serial-3.log, part 1/3. SHA256 of the complete file: 8e21cd31f2fdd7c74f88f7087cf62582c37e1fc84e69dfd5e027ba94f5423dfa. Verbatim captured output follows.Gate output for
e93eba0703: workspace-serial-3.log, part 2/3. SHA256 of the complete file: 8e21cd31f2fdd7c74f88f7087cf62582c37e1fc84e69dfd5e027ba94f5423dfa. Verbatim captured output follows.Gate output for
e93eba0703: workspace-serial-3.log, part 3/3. SHA256 of the complete file: 8e21cd31f2fdd7c74f88f7087cf62582c37e1fc84e69dfd5e027ba94f5423dfa. Verbatim captured output follows.Gate output for
e93eba0703: workspace-serial-4.log, part 1/3. SHA256 of the complete file: 7a05850ea2dadb11c9a0238bfd47a6bf7c2fd1f18de9ecf986af52dfb397b8d0. Verbatim captured output follows.Gate output for
e93eba0703: workspace-serial-4.log, part 2/3. SHA256 of the complete file: 7a05850ea2dadb11c9a0238bfd47a6bf7c2fd1f18de9ecf986af52dfb397b8d0. Verbatim captured output follows.Gate output for
e93eba0703: workspace-serial-4.log, part 3/3. SHA256 of the complete file: 7a05850ea2dadb11c9a0238bfd47a6bf7c2fd1f18de9ecf986af52dfb397b8d0. Verbatim captured output follows.Gate output for
e93eba0703: gate-results.json, part 1/1. SHA256 of the complete file: e8ac42b08800ac27f172c38c6b182d1e2fb6ca95c109211734ba30f3c116c0f6. Verbatim captured output follows.Gate output for
e93eba0703: properties-results.json, part 1/1. SHA256 of the complete file: e3fc4fd0f36b7909a3d3262dba5ba1722b5fdfc542035cbaf1f24f8c55f52af9. Verbatim captured output follows.Gate output for
e93eba0703: workspace-confirmation-results.json, part 1/1. SHA256 of the complete file: 8d4c55cdb6fc78a5ef567e8b835607a4d89fa2c7037b9a3b0e649159730d9c97. Verbatim captured output follows.Gate output for
e93eba0703: functional-summary.json, part 1/1. SHA256 of the complete file: 8fca9b505b6a9292f084db10cd9ec555274997880edafe2ce72ea27d368e448c. Verbatim captured output follows.Functional verification is complete on local head
e93eba0703: fmt/clippy, three consecutive complete workspace confirmations, ten folder suites on each of overlay/ext4/XFS, and 30,000 complete randomized cases. Raw output was posted in 60 comments ending63868, including the earlier workspace failures and their baseline reproductions. The test snapshot and working tree match for all1,014 source files.Performance verification remains blocked on the shared perf VM lock. The current holder is another job, PID1558999. Our fresh baseline profile waits as flock PID1561621, and our final release budget driver waits as flock PID1569922. No other job has been interrupted. No CPU or publication acceptance result is claimed. The final driver will compile natively under the lock with the same Rust1.98.1 compiler as the baseline before running three complete mixed and three complete watched budget tests.
This job's completed staging RAM/native filesystem fixtures have been unmounted and its private baseline target removed. Shared build caches and the requested worktree target were preserved. Staging root usage is46% and its separate HDD is28%, both under60%. The branch has not yet been pushed while performance verification remains pending. No PR, merge or deployment has been performed.
The fresh baseline perf capture completed under flock -o /root/perf-vm.lock. It recorded 360 cpu-clock samples over120seconds with zero lost samples. The kernel capped the requested sampling rate at750Hz; no shared kernel setting was changed. The diagnostic child was terminated after capture and is not an acceptance run. The exact baseline source comparison and earlier profile remain as reported.
The dominant sample locations are polling metadata and its syscall/kernel handling. Top flat sample locations:
I also measured50,000 directory/marker pairs, matching the mixed polling set, with37-byte markers and syncfs before timing. Each row measures600,000 metadata calls. Requesting fewer statx fields was slower than fstat in every repetition, including DONT_SYNC, so I am retaining fstat. This rejects that optimization hypothesis; no syscall change was made to product code. Verbatim comparison:
Verbatim capture output:
The profile lock was released after cleaning only this job's recorded fixtures. Another job (PID1561853) now holds the lock ahead of our final budget driver (PID1569922). That driver will natively build the final head with the baseline compiler, run the unchanged release XFS harness, and stop on any failed required window. No release CPU acceptance result is claimed yet.
The first
e93eba0native mixed budget run was deliberately interrupted after one passing idle window while preparing the independent topology/marker debt refinement. It is INCOMPLETE and does not count toward acceptance. Only the recorded child timeout PID 1589641 was terminated; its supervisor retained the perf lock through fixture cleanup and then released it. No other process was terminated. The partial control measured idle 0.3732%, with warm samples below 0.323 s. There are no publication samples. The false idle_pass/publication_pass fields below mean missing required samples, not a measured limit violation. Full gates will be rerun on the refined committed source.The profile motivated avoiding unchanged directory stats while preserving fast marker probes. Startup is a quiet topology baseline; later enrollment and any observed metadata activity keep both probes fast for fifteen quiet minutes. Quiet directory discovery remains bounded by the existing roughly 26 minute debt limit.
Committed independent topology and marker debt on issue/folder-ids-fix7 at
8cd56adf43. The fresh profile showed repeated metadata checks dominate; narrow statx was slower in all three comparison repetitions and was rejected. Quiet startup directory probes now back off independently while marker probes retain the initial fifteen-minute fast cadence. Later enrollment or observed metadata activity keeps BOTH probes fast for fifteen quiet minutes, including when coverage maintenance clears the recent list. Quiet discovery remains capped below the roughly 26 minute limit. ADR 0061 documents that startup choice and the distinction between quiet discovery and recently active publication.The new workload-model test measured 104167 directory probes and 166667 marker probes in the first 120 ticks, 18.75% fewer metadata calls than paired checks. Its initial estimate of fewer than 60% directory probes was wrong (actual 62.5%); the corrected test requires fewer than two thirds, at least one sixth fewer total calls. The initial new-test failure is retained outside the repo in final3-check.log. No original test or budget harness was changed. New tests also cover atomic marker replacement, activity restoring directory cadence, and bounded work per tick.
Preflight full folder suites and workspace clippy passed. All gates are now rerunning from a hash-verified immutable source archive for this commit: fmt, clippy, workspace three times serialized, folder suites ten times per overlay/ext4/XFS, 10000 randomized cases per filesystem, and native release XFS budgets three complete mixed and three complete watched runs. Performance jobs are queued under flock; no final CPU claim yet. Harness SHA256 is unchanged: 05e6d068a1a70cffd7eb102536497d3a905c6ef31f495a8fa6cda26f81199fb0.
Preflight captured output:
Final head
8cd56adf43has now passed fmt, workspace all-target clippy, and THREE consecutive COMPLETE workspace runs, all three on their first attempt for this commit, with --test-threads=1. Folder suites and the 30000-case native/overlay corpus have started. Native release XFS budgets remain queued under the shared perf lock; there is no acceptance CPU result for this head yet. Earlier-head failures and baseline reproductions remain recorded above. Full captured gate output will follow when the train finishes. Current driver results, verbatim:Head
8cd56adf43: all THIRTY folder suite runs passed, ten each on overlay, ext4 and XFS, including the move swap/crash hooks and independent-debt regressions. Fmt, clippy and three complete workspace runs also passed. The separate overlay randomized worker has completed all 10000 cases and exited 0. Ext4 and XFS randomized workers are still running, so the 30000-case gate is not complete yet. Release budget acceptance remains queued under flock. Full captured outputs will follow. Current gate results and complete overlay randomized output, verbatim:Gate output for
8cd56adf43: fmt.log, part 1/1. SHA256 of the complete file: d5ddb0e259934fdfe73eadb05794199083763caba321f5385de0a7f4f311c693. Verbatim captured output follows.Gate output for
8cd56adf43: clippy.log, part 1/1. SHA256 of the complete file: ef41a1db40b05f72189c270ddc6674ccafe1beb43fbf24dd2fb6871e08734a32. Verbatim captured output follows.Gate output for
8cd56adf43: workspace-1.log, part 1/3. SHA256 of the complete file: 6902fa7380ac48971a7e2d5edffef920a4475050b1c68fe1c440695b8cc0f560. Verbatim captured output follows.Gate output for
8cd56adf43: workspace-1.log, part 2/3. SHA256 of the complete file: 6902fa7380ac48971a7e2d5edffef920a4475050b1c68fe1c440695b8cc0f560. Verbatim captured output follows.Gate output for
8cd56adf43: workspace-1.log, part 3/3. SHA256 of the complete file: 6902fa7380ac48971a7e2d5edffef920a4475050b1c68fe1c440695b8cc0f560. Verbatim captured output follows.Gate output for
8cd56adf43: workspace-2.log, part 1/3. SHA256 of the complete file: c82742a26a05aa2d89be28870595f9a4879798c6b72a4704646f5faf9f737399. Verbatim captured output follows.Gate output for
8cd56adf43: workspace-2.log, part 2/3. SHA256 of the complete file: c82742a26a05aa2d89be28870595f9a4879798c6b72a4704646f5faf9f737399. Verbatim captured output follows.Gate output for
8cd56adf43: workspace-2.log, part 3/3. SHA256 of the complete file: c82742a26a05aa2d89be28870595f9a4879798c6b72a4704646f5faf9f737399. Verbatim captured output follows.Gate output for
8cd56adf43: workspace-3.log, part 1/3. SHA256 of the complete file: 378d8f89b2db17094ccfdb45f19a1f72dcb57ce7dbbcbd202e5e42ed00f24734. Verbatim captured output follows.Gate output for
8cd56adf43: workspace-3.log, part 2/3. SHA256 of the complete file: 378d8f89b2db17094ccfdb45f19a1f72dcb57ce7dbbcbd202e5e42ed00f24734. Verbatim captured output follows.Gate output for
8cd56adf43: workspace-3.log, part 3/3. SHA256 of the complete file: 378d8f89b2db17094ccfdb45f19a1f72dcb57ce7dbbcbd202e5e42ed00f24734. Verbatim captured output follows.Gate output for
8cd56adf43: folders-overlay-1.log, part 1/1. SHA256 of the complete file: 0d87f812190a38f72dc2a2f8e014c56d632b618c4c2fff905549ab21ab4c1a22. Verbatim captured output follows.Gate output for
8cd56adf43: folders-overlay-2.log, part 1/1. SHA256 of the complete file: 4242511edf38a47432989d242940a5ef5157dbfec49392ef275732da8bdb17db. Verbatim captured output follows.Gate output for
8cd56adf43: folders-overlay-3.log, part 1/1. SHA256 of the complete file: d02d21569c88737a5af7100d154434b62c1db9f4966f1ce95fe9e4d851702898. Verbatim captured output follows.Gate output for
8cd56adf43: folders-overlay-4.log, part 1/1. SHA256 of the complete file: b312711d8926f7524856c63b16ac1b85588032d981c20c61460e8fac8eceea3c. Verbatim captured output follows.Gate output for
8cd56adf43: folders-overlay-5.log, part 1/1. SHA256 of the complete file: 51476ee17d10534dece4f5cffbc197dbefdb38c5e501641222722ea1b76eb1a4. Verbatim captured output follows.Gate output for
8cd56adf43: folders-overlay-6.log, part 1/1. SHA256 of the complete file: 33e6e3f8ecb3e5b707ba50530bba2351116bd01ac17d1eb23634d48f65f67cae. Verbatim captured output follows.Gate output for
8cd56adf43: folders-overlay-7.log, part 1/1. SHA256 of the complete file: 857097f482886fbf7593f49bb340cb956025e0ec1afb15e015cc422db5d387d2. Verbatim captured output follows.Gate output for
8cd56adf43: folders-overlay-8.log, part 1/1. SHA256 of the complete file: b8a3853287587d999f995967c4840d75485c21a207880eb3e0075cdeb2379685. Verbatim captured output follows.Gate output for
8cd56adf43: folders-overlay-9.log, part 1/1. SHA256 of the complete file: d36b18982ce50ba0c3543ca25f03fafd96915779ebedcd09ef834f124efa9bd9. Verbatim captured output follows.Gate output for
8cd56adf43: folders-overlay-10.log, part 1/1. SHA256 of the complete file: 31b764d4207853ea0a4e6941122c55c051b17cb76a05779fcd113527bbb25613. Verbatim captured output follows.Gate output for
8cd56adf43: folders-ext4-1.log, part 1/1. SHA256 of the complete file: f35bf2b5837d69e2d38268e03cd3e8507b9e6191eb4bf5fd01874fe03c974e38. Verbatim captured output follows.Gate output for
8cd56adf43: folders-ext4-2.log, part 1/1. SHA256 of the complete file: 7ead02665e53c196aa2cd37ec84c93d26bfca8bdad336261f9e7ce9301341469. Verbatim captured output follows.Gate output for
8cd56adf43: folders-ext4-3.log, part 1/1. SHA256 of the complete file: d3485b1deee3ad430b0212d76d496dd913d4e4713b76488e2fcedb692bb878f9. Verbatim captured output follows.Gate output for
8cd56adf43: folders-ext4-4.log, part 1/1. SHA256 of the complete file: 1098f5e126e62ddf3bdaacd82b95bd5cbac8783a08434d3634cab52cd1ea72ed. Verbatim captured output follows.Gate output for
8cd56adf43: folders-ext4-5.log, part 1/1. SHA256 of the complete file: db6072f3c3d56776e099591ec332e070ea93cc03dcc343b343fbeef9379d7299. Verbatim captured output follows.Gate output for
8cd56adf43: folders-ext4-6.log, part 1/1. SHA256 of the complete file: 6c8f9b8484e8d5204fb23fd00e2225e6306301117161e5163cdf78849e5e350c. Verbatim captured output follows.Gate output for
8cd56adf43: folders-ext4-7.log, part 1/1. SHA256 of the complete file: 02de4ce805bf867b64073c88c25607cd757c8b8ecf373776d5b6cc70ea622e16. Verbatim captured output follows.Gate output for
8cd56adf43: folders-ext4-8.log, part 1/1. SHA256 of the complete file: ba8e94516c9ba33dcb5e697386e1ae8409c8d9110b3bc6f08c2bcf79da2fa33f. Verbatim captured output follows.Gate output for
8cd56adf43: folders-ext4-9.log, part 1/1. SHA256 of the complete file: 5b4acac1d01fec6f8f2e5e7ba4a106b5526e6d4fdd9362d2c130b40c35095672. Verbatim captured output follows.Gate output for
8cd56adf43: folders-ext4-10.log, part 1/1. SHA256 of the complete file: 2f7d92bf562389b41de198216c36bf31fc9c0d3da5bbb082a83717e8a8a085e1. Verbatim captured output follows.Gate output for
8cd56adf43: folders-xfs-1.log, part 1/1. SHA256 of the complete file: 86b8c72ced23696c73f0836444103af1e638c45b43224f0761c5ae22fe245c6b. Verbatim captured output follows.Gate output for
8cd56adf43: folders-xfs-2.log, part 1/1. SHA256 of the complete file: 1a1287224ef61d284952f8a44bb6be958043096718c88615dcc9ff8599756af3. Verbatim captured output follows.Gate output for
8cd56adf43: folders-xfs-3.log, part 1/1. SHA256 of the complete file: a3d929be629fe4b2a762acf865ceb993f1b731226fc2ab05b017710d4471029b. Verbatim captured output follows.Gate output for
8cd56adf43: folders-xfs-4.log, part 1/1. SHA256 of the complete file: f618ea18fbc4cb9181b1aaa60489b84def442b4dcae17c41c69513d638130234. Verbatim captured output follows.Gate output for
8cd56adf43: folders-xfs-5.log, part 1/1. SHA256 of the complete file: d5b07f1946196e23a32e73efd6e34a7e42e16a4f00d895e6c16e79bf105f64ed. Verbatim captured output follows.Gate output for
8cd56adf43: folders-xfs-6.log, part 1/1. SHA256 of the complete file: cef4a5b774b1c86c3a3097157b73225a13d434b49bc11edd89aaccc5423b200d. Verbatim captured output follows.Gate output for
8cd56adf43: folders-xfs-7.log, part 1/1. SHA256 of the complete file: b945e66bbfab1f13327560a313a1b8139166496bf6485ec7752bc7f124b8b7ec. Verbatim captured output follows.Gate output for
8cd56adf43: folders-xfs-8.log, part 1/1. SHA256 of the complete file: f8716e9f0ee01b6c2d0438f8e541b493836dbd76a493f9f0468dc2a06ff5b84e. Verbatim captured output follows.Gate output for
8cd56adf43: folders-xfs-9.log, part 1/1. SHA256 of the complete file: 9fe5bd031758795102d3b0e92add8386403982e4a0c38bc964f3851f0cdac15d. Verbatim captured output follows.Gate output for
8cd56adf43: folders-xfs-10.log, part 1/1. SHA256 of the complete file: de0c901327adee8906f391b069aff4ac80a4b4e12bea37d59b382a9bbebc4356. Verbatim captured output follows.Gate output for
8cd56adf43: property-overlay.log, part 1/1. SHA256 of the complete file: 1debd04e00ed34f18a800dc32eb09088adfa9c3fcbbd6b71ca49346043e6654c. Verbatim captured output follows.Gate output for
8cd56adf43: property-ext4.log, part 1/1. SHA256 of the complete file: ae0536b51a8e79036cd6005faad96c84ce8e5fb5d1d19b568899a94f73503f32. Verbatim captured output follows.Gate output for
8cd56adf43: property-xfs.log, part 1/1. SHA256 of the complete file: 8ff8ad38210eeb8f952dcb5a888f9243e9061a0949b1c684506cef61293f4a9d. Verbatim captured output follows.Gate output for
8cd56adf43: gate-results.json, part 1/1. SHA256 of the complete file: eeaf4d284c42216b387a5877f6d9521716547f60072ab252cee141004cb29fa8. Verbatim captured output follows.Gate output for
8cd56adf43: properties-results.json, part 1/1. SHA256 of the complete file: e3fc4fd0f36b7909a3d3262dba5ba1722b5fdfc542035cbaf1f24f8c55f52af9. Verbatim captured output follows.Gate output for
8cd56adf43: functional-summary.json, part 1/1. SHA256 of the complete file: 85cbcd494aec9942f9d4f37f6d3f18890ac0db92ca92b4bb8a029e13d7a22699. Verbatim captured output follows.Head
8cd56adf43: the complete functional train PASSED. Fmt; workspace all-target clippy; three consecutive complete workspace tests; ten complete folder suites each on overlay, ext4 and XFS (129 passed and 5 ignored each); and all 30000 randomized cases, 10000 per filesystem. All 1014 source hashes still match the immutable manifest after the train. The complete raw outputs are posted in 47 comments ending at 64111, including the unchanged harness hash and filesystem mount proof. Earlier failures and baseline reproductions remain visible above. Only this job's finished native fixtures were unmounted; staging disks remain 46% and 28%, below the 60% cap.The remaining release XFS budget gate is blocked on the shared perf VM lock. Our queued flock PID is 1590958; it will build the exact committed source with the native baseline toolchain and run three complete mixed plus three complete watched harness tests, requiring every warm, idle and publication window to pass. No acceptance performance result exists for this head yet. I am preserving the queue and continuing unattended; no other process or lock has been touched. Lock snapshot:
Found and fixed a recovery transition in adaptive polling, committed as
0404dc3119on the same branch. A folder can remain absent until its missing probes have backed off. If reconciliation sees it return before the next due poll, None -> readable was incorrectly treated as another startup baseline, leaving both schedules slow despite observed recovery. Only the initial tick-zero baseline now receives the quiet exception; later recovery restores both probes to the fast cadence. ADR 0061 states this rule.The new regression uses actual filesystem edits: move a folder away, unlink its held marker so absence is unambiguous, age 4000 logical ticks, restore its marker and name, reconcile, then create a child. It checks that recovery restores both schedules and the child wakes the next regular poll even after the recent list is cleared. The initial rename-only fixture did not wake the metadata poll, so it was corrected to make absence observable. The corrected fixture failed at the intended activity assertion before the product fix, then all 13 polling tests and workspace all-target clippy passed. Both red outputs and the green output are below.
All functional passes posted above apply to
8cd56ad. EVERY gate is rerunning on this corrected head, with a fresh immutable manifest/archive and native ext4/XFS fixtures. The pending perf driver was updated atomically only after all versioned input hashes were verified and its flock was confirmed waiting; its queue position and PID 1590958 were preserved. No performance run for either candidate has started. The release harness remains byte-for-byte unchanged. No other process was stopped.final4-baseline-red.log, verbatim:
final4-baseline-red2.log, verbatim:
final4-baseline-green.log, verbatim:
Latest head
0404dc3119has passed fmt, workspace all-target clippy and THREE consecutive COMPLETE workspace test runs, all on their first attempt with --test-threads=1. The restored-baseline regression is included. Folder repetitions and the 30000 randomized cases are running now. Staging remains 46% root and 28% data disk. The native release XFS train is still queued under the same flock PID 1590958, with the corrected source selected atomically before it starts. It has waited 1h13m; the shared lock and other jobs have not been disturbed. No CPU acceptance result exists yet. Current gate results, verbatim:Gate output for
0404dc3119: fmt.log, part 1/1. SHA256 of the complete file: d5ddb0e259934fdfe73eadb05794199083763caba321f5385de0a7f4f311c693. Verbatim captured output follows.Gate output for
0404dc3119: clippy.log, part 1/1. SHA256 of the complete file: e48e3bf85c9e9a4d8ddf3c697c4e28795b9d9cb3eff1cef8d88947848f6c324d. Verbatim captured output follows.Gate output for
0404dc3119: workspace-1.log, part 1/3. SHA256 of the complete file: d671447efb4fcad3c8ba85b3ff686e75356c0cb455d02d5b9ddc2e1960ff91c9. Verbatim captured output follows.Gate output for
0404dc3119: workspace-1.log, part 2/3. SHA256 of the complete file: d671447efb4fcad3c8ba85b3ff686e75356c0cb455d02d5b9ddc2e1960ff91c9. Verbatim captured output follows.Gate output for
0404dc3119: workspace-1.log, part 3/3. SHA256 of the complete file: d671447efb4fcad3c8ba85b3ff686e75356c0cb455d02d5b9ddc2e1960ff91c9. Verbatim captured output follows.Gate output for
0404dc3119: workspace-2.log, part 1/3. SHA256 of the complete file: b05ca1a0e93adbbabc281eb299aee605b0ed141c8831f342f259bedf7803e75e. Verbatim captured output follows.Gate output for
0404dc3119: workspace-2.log, part 2/3. SHA256 of the complete file: b05ca1a0e93adbbabc281eb299aee605b0ed141c8831f342f259bedf7803e75e. Verbatim captured output follows.Gate output for
0404dc3119: workspace-2.log, part 3/3. SHA256 of the complete file: b05ca1a0e93adbbabc281eb299aee605b0ed141c8831f342f259bedf7803e75e. Verbatim captured output follows.Gate output for
0404dc3119: workspace-3.log, part 1/3. SHA256 of the complete file: 149312b97c55c8ccf546f36dc417f7f2911463275d26c53b96c6b7eb471ed8ee. Verbatim captured output follows.Gate output for
0404dc3119: workspace-3.log, part 2/3. SHA256 of the complete file: 149312b97c55c8ccf546f36dc417f7f2911463275d26c53b96c6b7eb471ed8ee. Verbatim captured output follows.Gate output for
0404dc3119: workspace-3.log, part 3/3. SHA256 of the complete file: 149312b97c55c8ccf546f36dc417f7f2911463275d26c53b96c6b7eb471ed8ee. Verbatim captured output follows.Gate output for
0404dc3119: folders-overlay-1.log, part 1/1. SHA256 of the complete file: d982c92d78da543b0df04119aa26d8f1ca94fb28554500d9556fc4be3c5420a8. Verbatim captured output follows.Gate output for
0404dc3119: folders-overlay-2.log, part 1/1. SHA256 of the complete file: 78d17fee249567406cfaeec99edf7f1732f17edd871ca39b18e739e716a599c8. Verbatim captured output follows.Gate output for
0404dc3119: folders-overlay-3.log, part 1/1. SHA256 of the complete file: 4a35d54692eb0aeba2fb04ee30f97344c98d5c3acff45e7870080590d835a02f. Verbatim captured output follows.Gate output for
0404dc3119: folders-overlay-4.log, part 1/1. SHA256 of the complete file: dbd45e1153a06aa1d611ce6167312508b52374bf7fb1d34433a54b4d9ef257b4. Verbatim captured output follows.Gate output for
0404dc3119: folders-overlay-5.log, part 1/1. SHA256 of the complete file: e4a96e87de6454ea43e9ce393b4e02fb18f3fc4870dea2b7030fe843c1c1c236. Verbatim captured output follows.Gate output for
0404dc3119: folders-overlay-6.log, part 1/1. SHA256 of the complete file: 098c607256b4554397391bb905369d49bec72ad19016a807303e2560d5b58d74. Verbatim captured output follows.Gate output for
0404dc3119: folders-overlay-7.log, part 1/1. SHA256 of the complete file: 6b81dd51145b828c1d16ff7b1a0072af9541fc42a4ef6774763865734c1e7b18. Verbatim captured output follows.Gate output for
0404dc3119: folders-overlay-8.log, part 1/1. SHA256 of the complete file: 18f60bc24966cec1f821e914962ef9fbac07898f69613f0ea577579f447db2a5. Verbatim captured output follows.Gate output for
0404dc3119: folders-overlay-9.log, part 1/1. SHA256 of the complete file: faff57994fdde36bf1232e9f1094a48e2b3178678a4a796b3bdc3d8eeb9f2f26. Verbatim captured output follows.Gate output for
0404dc3119: folders-overlay-10.log, part 1/1. SHA256 of the complete file: b12075e393169f2d0558f8ce8e84a2c7eb67ddee878d73a9bb2bb1a227b66567. Verbatim captured output follows.Gate output for
0404dc3119: folders-ext4-1.log, part 1/1. SHA256 of the complete file: 8d747c939ddd761e902ac167c8a48d03f37b72e3192d41660db6f8d2038896ca. Verbatim captured output follows.Gate output for
0404dc3119: folders-ext4-2.log, part 1/1. SHA256 of the complete file: ffef764566b8c3102695a403aeccf35e5f5799e119247f98047f519425beca2e. Verbatim captured output follows.Gate output for
0404dc3119: folders-ext4-3.log, part 1/1. SHA256 of the complete file: 39e7c69704d732a15f9d0f9d3ed5d7b4d7c6fec0ce949921bd40880d09f2cf0d. Verbatim captured output follows.Gate output for
0404dc3119: folders-ext4-4.log, part 1/1. SHA256 of the complete file: e6a03f66336b5b1efd2026eb9e7573376174ec970227ca510ec9bf3f0240b4d6. Verbatim captured output follows.Gate output for
0404dc3119: folders-ext4-5.log, part 1/1. SHA256 of the complete file: 73e087b482e0073ec21b92c92092dd34d61b9dd755ae0eabafd136e6a993292a. Verbatim captured output follows.Gate output for
0404dc3119: folders-ext4-6.log, part 1/1. SHA256 of the complete file: 2ee826aab89b6d8bf6fc23b96202ed99b908a1b7dc8a5b5927e2e6b5d20e725e. Verbatim captured output follows.Gate output for
0404dc3119: folders-ext4-7.log, part 1/1. SHA256 of the complete file: eba55620ad8a8cee683fb10b900451ff887e985f726a1883f07c51bd5d3688da. Verbatim captured output follows.Gate output for
0404dc3119: folders-ext4-8.log, part 1/1. SHA256 of the complete file: c3c2b6ef659cca306e2df299e865459c9fd92786831b5c55771a2a18032dbeb9. Verbatim captured output follows.Gate output for
0404dc3119: folders-ext4-9.log, part 1/1. SHA256 of the complete file: f50f4a51aac189b38a77105eb4ec01e4290261a9f689dfa7ef28d2f97360d042. Verbatim captured output follows.Gate output for
0404dc3119: folders-ext4-10.log, part 1/1. SHA256 of the complete file: 34810e97d0d8009b1ea34a1abfc3b2d679326541a4be1e0b95823469638b465c. Verbatim captured output follows.Gate output for
0404dc3119: folders-xfs-1.log, part 1/1. SHA256 of the complete file: ce4cb7059e92e9f0240ddb315f10cc269089986ff61bb054b0b5b73b0115a3c7. Verbatim captured output follows.Gate output for
0404dc3119: folders-xfs-2.log, part 1/1. SHA256 of the complete file: 31674086f67b36ac27e9e2185171c140d545aed75b7a773db5f80d6eab3582a8. Verbatim captured output follows.Gate output for
0404dc3119: folders-xfs-3.log, part 1/1. SHA256 of the complete file: 33406d4887716efdaa5d365a7d69d275e70b1c615db51d8efccf40b04c8117c2. Verbatim captured output follows.Gate output for
0404dc3119: folders-xfs-4.log, part 1/1. SHA256 of the complete file: 13bd8b2a4d1c4466d450a8768cc5f634894f9108542f4daa7b949833b14f4117. Verbatim captured output follows.Gate output for
0404dc3119: folders-xfs-5.log, part 1/1. SHA256 of the complete file: deafdedbb290ab455456f1bbc9dbe87d1010f7e76d2bae8f40eb8794f22cc262. Verbatim captured output follows.Gate output for
0404dc3119: folders-xfs-6.log, part 1/1. SHA256 of the complete file: fa86f750488bf83690dafab632e69eb7519b45a8b09f1aafcc8e08acb8839b92. Verbatim captured output follows.Gate output for
0404dc3119: folders-xfs-7.log, part 1/1. SHA256 of the complete file: e7e367278897203a5d293c7e3d406aac8382a89f820771b019ae3b5f004d9e15. Verbatim captured output follows.Gate output for
0404dc3119: folders-xfs-8.log, part 1/1. SHA256 of the complete file: 2c6dd4c80dfdbcea171577b98c19fe8dbeb8d07af84d0f84f5088f6434ea9d4c. Verbatim captured output follows.Gate output for
0404dc3119: folders-xfs-9.log, part 1/1. SHA256 of the complete file: c26ce4fbf3cce7223d325621c0319711ad6d495d63bf2c5d037c07c15fcce3b8. Verbatim captured output follows.Gate output for
0404dc3119: folders-xfs-10.log, part 1/1. SHA256 of the complete file: cdacef2b3559d6b51c3b58817ea3362afa2f600827bee4645348ab4aaab7d16b. Verbatim captured output follows.Gate output for
0404dc3119: property-overlay.log, part 1/1. SHA256 of the complete file: 69dfeca51f4bfd6ee1e3c0320a74c794a329ac3f7ea05f13faae1e0338ab4d5a. Verbatim captured output follows.Gate output for
0404dc3119: property-ext4.log, part 1/1. SHA256 of the complete file: 37f6cce8a59521a2ce1b085830fc4cef3daa22e91ec16278023c98da79bc2537. Verbatim captured output follows.Gate output for
0404dc3119: property-xfs.log, part 1/1. SHA256 of the complete file: 4ccfac713c0fcf138350c9d61fb41e1223f086185f973e1f9a49e6e611dafd08. Verbatim captured output follows.Gate output for
0404dc3119: gate-results.json, part 1/1. SHA256 of the complete file: eeaf4d284c42216b387a5877f6d9521716547f60072ab252cee141004cb29fa8. Verbatim captured output follows.Gate output for
0404dc3119: properties-results.json, part 1/1. SHA256 of the complete file: e3fc4fd0f36b7909a3d3262dba5ba1722b5fdfc542035cbaf1f24f8c55f52af9. Verbatim captured output follows.Gate output for
0404dc3119: functional-summary.json, part 1/1. SHA256 of the complete file: 9c9e3c5757d951037b6b0289f73b797054272decb769d097b015a8916b23c391. Verbatim captured output follows.Latest head
0404dc3119has completed ALL functional gates: fmt; workspace all-target clippy; THREE complete consecutive workspace runs; TEN complete folder suite runs EACH on overlay, ext4 and XFS (130 passed, 5 ignored per run); and all 30000 randomized cases, 10000 per filesystem, including the move swap hooks. All 35 gate rows and all three corpus rows exited 0, with aggregate PASS. Every one of the 1014 tracked source hashes still matches after the train. The complete captured output is posted verbatim in 47 comments ending at 64262. Earlier failures and baseline reproductions remain preserved above.Only this job's completed native test mounts were unmounted. Staging remains below the disk cap, at 46% root and 28% data disk. The remaining gate is blocked on access to the shared perf VM. Our flock PID 1590958 is still queued, now behind holder 1584410 and two earlier waiters. It will build the exact committed source with the native baseline toolchain and run three complete mixed and three complete watched XFS tests, requiring every warm, idle and publication sample to pass. No acceptance CPU measurement for this head exists yet. A queue-deadline check will defer before any build or measurement if the outer timeout leaves less than 90 minutes, so an incomplete train is not presented as acceptance. The source and release harness are unchanged while waiting.
Lock snapshot:
Closed the disappearing-source retry path in
887bff428aon issue/folder-ids-fix7. The new regression first returned non-retryable InvalidInput instead of FolderChanged. Correcting the error class exposed a second failure: after the source moved away before staging, the unused prepared intent made Home startup fail with "generation absent". A fresh lookup could not retry the move. Both red outputs are below.The journal now durably records the staged phase before any destination commit, including commits made by recovery. With both parent generations still matching, a prepared intent with no temporary entry cannot have begun a destination commit, so recovery clears it without moving anything. Ordinary reconciliation finds the original generation at the outside writer's new name. Staged intents retain the existing generation checks and refusal to guess. Missing generations and changed parent bindings report retryable FolderChanged for actions.
The regression covers both an ordinary source-name gap and a simulated process exit before staging, checks payload preservation, reopens the Home, locates the same ID at Owner-aside, and successfully retries the move by fresh ID lookup. A new Renamed injection boundary sits after the source-to-temp rename and parent flush, before the staged phase is saved. Source-name swaps, private-name substitutions, crash tests, and every randomized case now include five possible boundaries. ADR 0061 records the phase argument.
Preflight full folder tests passed: 131 passed, 5 ignored; workspace all-target clippy passed. ALL gates are rerunning from a fresh hash-verified immutable archive for this new head. Earlier full functional passes apply to
0404dc3and remain recorded, not reused as validation of this commit. The still-waiting native driver was updated atomically after all versioned inputs were verified and its flock was confirmed waiting; PID 1590958 and its queue position are unchanged. The release harness is unchanged. No acceptance CPU run for these candidates has started.final5-name-gap-red.log, verbatim:
final5-name-gap-red2.log, verbatim:
Selected captured green output lines, verbatim:
Latest head
887bff428a: fmt, workspace all-target clippy, THREE consecutive COMPLETE workspace runs and all THIRTY folder suite runs have passed on their first attempts. The folder matrix is ten each on overlay, ext4 and XFS; every log reports 131 passed, 0 failed and 5 ignored. This includes the five move boundaries and the ordinary/crashed disappearing-source retry regression. The separate overlay worker completed all 10000 randomized cases and exited 0; native workers remain in progress (last reported ext4 7000, XFS 8000), so the 30000-case gate is not complete yet. Native release budgets are still queued, after 2h52m of waiting; no CPU acceptance result exists for this head. Staging remains below the disk cap at 48% root / 43% data. Complete raw gate output will follow when the corpus finishes.Verbatim current driver results:
Verbatim log check:
Gate output for
887bff428a: fmt.log, part 1/1. SHA256 of the complete file: d5ddb0e259934fdfe73eadb05794199083763caba321f5385de0a7f4f311c693. Verbatim captured output follows.Gate output for
887bff428a: clippy.log, part 1/1. SHA256 of the complete file: a623505b6c21f4ebae3e7829536611e9bbb8730316fefdd5395e7049681c35cf. Verbatim captured output follows.Gate output for
887bff428a: workspace-1.log, part 1/3. SHA256 of the complete file: 8181941cef01c72986d242c43d367405f9841933ae4ecb69137b5fc9e8ea1747. Verbatim captured output follows.Gate output for
887bff428a: workspace-1.log, part 2/3. SHA256 of the complete file: 8181941cef01c72986d242c43d367405f9841933ae4ecb69137b5fc9e8ea1747. Verbatim captured output follows.Gate output for
887bff428a: workspace-1.log, part 3/3. SHA256 of the complete file: 8181941cef01c72986d242c43d367405f9841933ae4ecb69137b5fc9e8ea1747. Verbatim captured output follows.Gate output for
887bff428a: workspace-2.log, part 1/3. SHA256 of the complete file: 044a80487addf5fd08c6a63f45fba9aa18d91690d4920655cb5356122301b0fc. Verbatim captured output follows.Gate output for
887bff428a: workspace-2.log, part 2/3. SHA256 of the complete file: 044a80487addf5fd08c6a63f45fba9aa18d91690d4920655cb5356122301b0fc. Verbatim captured output follows.Gate output for
887bff428a: workspace-2.log, part 3/3. SHA256 of the complete file: 044a80487addf5fd08c6a63f45fba9aa18d91690d4920655cb5356122301b0fc. Verbatim captured output follows.Gate output for
887bff428a: workspace-3.log, part 1/3. SHA256 of the complete file: 727b5d1bdeb33ccb2fe11a3da72e17de47a57f5c9d3b8c60c2b061c17dba896c. Verbatim captured output follows.Gate output for
887bff428a: workspace-3.log, part 2/3. SHA256 of the complete file: 727b5d1bdeb33ccb2fe11a3da72e17de47a57f5c9d3b8c60c2b061c17dba896c. Verbatim captured output follows.Gate output for
887bff428a: workspace-3.log, part 3/3. SHA256 of the complete file: 727b5d1bdeb33ccb2fe11a3da72e17de47a57f5c9d3b8c60c2b061c17dba896c. Verbatim captured output follows.Gate output for
887bff428a: folders-overlay-1.log, part 1/1. SHA256 of the complete file: cc72e5bb9245f41e2a3efe6acf806e8e57714b44b4dc5fece9f161bf9caa8bce. Verbatim captured output follows.Gate output for
887bff428a: folders-overlay-2.log, part 1/1. SHA256 of the complete file: 346d5ad6198863d0ddc5e3b54be08a8b1b07b4fa32d97e56d4ad620f4a0580d6. Verbatim captured output follows.Gate output for
887bff428a: folders-overlay-3.log, part 1/1. SHA256 of the complete file: 75cf10d3cb66bba4d7cd5cf9e820c41c1375333a77b0f5b790080fd7a7497496. Verbatim captured output follows.Gate output for
887bff428a: folders-overlay-4.log, part 1/1. SHA256 of the complete file: 763d6dc6d54883065eb94830d33d0c1adb36a530b6db533f313623103d0f402b. Verbatim captured output follows.Gate output for
887bff428a: folders-overlay-5.log, part 1/1. SHA256 of the complete file: 294cc25320e1e6bb22b794a1816fe40b11254a1dc419eda84a2097ebceb0ce50. Verbatim captured output follows.Gate output for
887bff428a: folders-overlay-6.log, part 1/1. SHA256 of the complete file: 2dd914dc7a764d5ca50329b157bf59ca3b4ebb4cd8ba40dde66260fbcfeb8742. Verbatim captured output follows.Gate output for
887bff428a: folders-overlay-7.log, part 1/1. SHA256 of the complete file: 0cf80bf2da2a689548a274e92ca493724315a6c4a1f7deca0693c48ed89fcb4d. Verbatim captured output follows.Gate output for
887bff428a: folders-overlay-8.log, part 1/1. SHA256 of the complete file: 7b72a17cd0928737499bcf19058b1135f30cc6aa676f2270c5418b21672f81c0. Verbatim captured output follows.Gate output for
887bff428a: folders-overlay-9.log, part 1/1. SHA256 of the complete file: 71f61109a4819413b4c6029293af2ca067e86d11aaf45c0539d15639d1562aaf. Verbatim captured output follows.Gate output for
887bff428a: folders-overlay-10.log, part 1/1. SHA256 of the complete file: 2c950520cc24cd111adba7df885bc95e80afcb75a839cb70ecee975c980fd293. Verbatim captured output follows.Gate output for
887bff428a: folders-ext4-1.log, part 1/1. SHA256 of the complete file: 654e95578c53a0b23b01a0319ea9d177e141e0c46ff9f73dadb898cea2c7497d. Verbatim captured output follows.Gate output for
887bff428a: folders-ext4-2.log, part 1/1. SHA256 of the complete file: 8a556987963fc2c494b73ab062065d1ad9363a5b982902ae758c3e154ba42fde. Verbatim captured output follows.Gate output for
887bff428a: folders-ext4-3.log, part 1/1. SHA256 of the complete file: c53b59f4ed08d3541a67e1619317fa60f3ad25566652cf0a7cbc17e3b69d8eb6. Verbatim captured output follows.Gate output for
887bff428a: folders-ext4-4.log, part 1/1. SHA256 of the complete file: e3e21d4c4482d0860085cd874decfbc27ee2cf21b6b40a895b81949bcf9fe588. Verbatim captured output follows.Gate output for
887bff428a: folders-ext4-5.log, part 1/1. SHA256 of the complete file: c74348a972c59ac893c8a6761888a2ef0ffadde5ad03efcae66ab8bcf28daf3c. Verbatim captured output follows.Gate output for
887bff428a: folders-ext4-6.log, part 1/1. SHA256 of the complete file: 0ac4096871b999118088a0b37df65a067c3c59b8cec74b51b6825bcd3d4f48e3. Verbatim captured output follows.Gate output for
887bff428a: folders-ext4-7.log, part 1/1. SHA256 of the complete file: d79dba0d2d67e84b58590e9497b0efc9145deda60654435c1741044ae1558313. Verbatim captured output follows.Gate output for
887bff428a: folders-ext4-8.log, part 1/1. SHA256 of the complete file: 428730d622b5f13fd4e1c1b6ff732148b69982c3142c38af34b91d220a93eb07. Verbatim captured output follows.Gate output for
887bff428a: folders-ext4-9.log, part 1/1. SHA256 of the complete file: ac9582d3ebca52fdf0587e1061f7147f5d7759ec0121e603e6db0df14e6c0a48. Verbatim captured output follows.Gate output for
887bff428a: folders-ext4-10.log, part 1/1. SHA256 of the complete file: 33f257bfeaaf0c605c3eb6463a9e2223a6df4c0312bde8369069d47c89c5229a. Verbatim captured output follows.Gate output for
887bff428a: folders-xfs-1.log, part 1/1. SHA256 of the complete file: dc3a28f18949556047d8b86335467d81ed2aa5811795b58f773451b35373dd30. Verbatim captured output follows.Gate output for
887bff428a: folders-xfs-2.log, part 1/1. SHA256 of the complete file: e385a286e8f2f89c14a9bfffa3a98ba83838ff53298a00eb54e05c896cc8826f. Verbatim captured output follows.Gate output for
887bff428a: folders-xfs-3.log, part 1/1. SHA256 of the complete file: 52ee25aa94bb66cbccc60bcd81a6de56515fd1b622382bce4e9da71fda0ba9ed. Verbatim captured output follows.Gate output for
887bff428a: folders-xfs-4.log, part 1/1. SHA256 of the complete file: 1693d3d529e285ebc5c0618af3dc5837efabe761b75c1556f1e7b8de8331c070. Verbatim captured output follows.Gate output for
887bff428a: folders-xfs-5.log, part 1/1. SHA256 of the complete file: e76bd559f6dac470a66f2070c84f63794a77ce70e55b92ea16afc8f2377bb1ac. Verbatim captured output follows.Gate output for
887bff428a: folders-xfs-6.log, part 1/1. SHA256 of the complete file: cb7895557f7ad90aada9a2be65a879bd89b0535dfa39148849f2e6d936c6ad2b. Verbatim captured output follows.Gate output for
887bff428a: folders-xfs-7.log, part 1/1. SHA256 of the complete file: f4e8b5e1ed05f4e5e2ed410e11e46833b5717839db7e302ad2fd57f86c2f176c. Verbatim captured output follows.Gate output for
887bff428a: folders-xfs-8.log, part 1/1. SHA256 of the complete file: 0312c06d41eaea6ea1ef149821e7914ff1de3dda42cea6123234ea8a87c84ee8. Verbatim captured output follows.Gate output for
887bff428a: folders-xfs-9.log, part 1/1. SHA256 of the complete file: 07c4baf61d251ffc0259c32a197a9e987bd117039195ed3af1ff1eae9e086856. Verbatim captured output follows.Gate output for
887bff428a: folders-xfs-10.log, part 1/1. SHA256 of the complete file: 80a4d7073288a1b2c2fc9b33b5d0acd40d3250a5bca73353d77a0ee4a57cd93e. Verbatim captured output follows.Gate output for
887bff428a: property-overlay.log, part 1/1. SHA256 of the complete file: 4fb32fd901b7f024a56e43d5b0331383434ad9d3135745058f3f2bb55732ea8f. Verbatim captured output follows.Gate output for
887bff428a: property-ext4.log, part 1/1. SHA256 of the complete file: 7d0f79857659311db66ee754caaa646cc338266c51639223b6ba54fc30d9f6ea. Verbatim captured output follows.Gate output for
887bff428a: property-xfs.log, part 1/1. SHA256 of the complete file: 1b67ab346901276eb69711336efa68dc66c1fd45038fae1c9802494cf70c584f. Verbatim captured output follows.Gate output for
887bff428a: gate-results.json, part 1/1. SHA256 of the complete file: eeaf4d284c42216b387a5877f6d9521716547f60072ab252cee141004cb29fa8. Verbatim captured output follows.Gate output for
887bff428a: properties-results.json, part 1/1. SHA256 of the complete file: e3fc4fd0f36b7909a3d3262dba5ba1722b5fdfc542035cbaf1f24f8c55f52af9. Verbatim captured output follows.Gate output for
887bff428a: functional-summary.json, part 1/1. SHA256 of the complete file: fcf0fe47575aebcccfc034ee950ced6caf545fc7212efb3c70967f9105f92c6d. Verbatim captured output follows.Latest head
887bff428ahas now completed ALL functional gates: fmt; workspace all-target clippy; THREE complete consecutive workspace tests; TEN complete folder suite runs EACH on overlay, ext4 and XFS (131 passed and 5 ignored each); and all 30000 randomized cases, 10000 per filesystem, including all five move boundaries. Every gate row and corpus worker exited 0, aggregate PASS, with no failed gate attempt on this commit. All 1014 tracked source hashes still match the immutable manifest after the train. Complete captured output is posted verbatim in 47 comments ending at 64464. Earlier failures and baseline reproductions remain preserved above.Only this job's completed native fixtures were unmounted after all its containers exited. Staging is below the disk cap at 48% root and 44% data disk. The sole remaining gate is blocked on the shared perf VM lock. PID 1590958 remains queued after roughly three hours, behind holder 1586079 and earlier waiter 1589988. It will build the verified
887bff4source with the native baseline toolchain and run three complete mixed plus three complete watched XFS tests, enforcing every sample: warm at most 0.75 s, idle strictly under 0.5%, publication strictly under 43 s. No acceptance CPU sample exists for this head yet. The verified code and unchanged release harness are frozen while waiting. The queue-deadline guard defers before measuring if fewer than 90 minutes remain in the outer deadline.Lock snapshot:
The perf train acquired its shared VM lock after about 3h29m waiting. The exact
887bff428asource was rebuilt natively under the lock with Rust/Cargo 1.98.1, matching the baseline toolchain. Source manifest and driver hashes were checked against the local inputs; all 1014 source hashes were verified before compilation and Rust source mtimes were forced to prevent stale Cargo reuse. The first mixed-mode test has started. This is progress, not a completed acceptance result; all six complete tests and every window must still pass. Captured provenance and filesystem proof:Head
887bff428a: FIRST COMPLETE native release mixed XFS budget run PASSED, exit 0, 644.23 seconds. Every individual sample passed: warm 0.468529 / 0.524118 / 0.419658 seconds; idle 0.4385 / 0.3888 / 0.3395 percent; all six publications at most 39.030175 seconds. The maximum idle sample leaves 0.0615 percentage points below the 0.5% cap. The unchanged harness, verified native binary and source provenance are recorded above.This is one of the three required complete mixed runs. Mixed run 2 has started; two mixed and three watched runs still need to complete. No sample has been dropped or averaged to decide a gate. Complete captured first-run output, verbatim:
Driver results, verbatim:
RELEASE CPU GATE FAILED on head
887bff428a. Mixed run 1 completed and passed, but mixed run 2 failed its FIRST 120-second idle window at 0.6232%, above the strict 0.5% cap. Its three warm samples were 0.701104, 0.458103 and 0.625705 seconds; no publication sample was reached in that failed run. The driver stopped immediately, cleaned only its own fixture while holding the lock, and released the lock. The batch is FAIL, not acceptance; the single complete passing run does not satisfy the three-run requirement. No failing window was dropped or averaged away.The native toolchain and source/binary/driver hashes remain those recorded above. All functional gates passed on this head; the CPU requirement remains unsatisfied. I am continuing with a profile of this exact failed candidate and stronger quiet-topology scheduling, preserving fast marker checks and the recently active publication bound. Any product correction will get every required gate again.
mixed_100k_budgets-1.log, verbatim:
mixed_100k_budgets-2.log, verbatim:
results.json, verbatim:
The failed native mixed run is preserved in comment 64542. A complete prior run passed, but the next run used 0.6232% CPU in its first idle window, so this snapshot does not pass. No failed window has been dropped.
The existing perf profile showed metadata calls dominating idle cost; replacing fstat with statx was slower in all three comparisons and was rejected. I queued a new 120-second perf capture of the exact failing native binary (SHA256 3b93f916b4765d5379bb11d633e7f09500752d1572b6ff2d983bc97e48ff5760), under the shared perf lock.
The next candidate uses the completed initial scan as the large-set topology baseline. Initial directory probes begin eight base passes apart with stable phases, then back off exponentially within the existing discovery cap. Initial marker checks stay fast. Observed activity restores both fast schedules for fifteen minutes. An explicit initial-coverage flag also keeps folders enrolled before the first maintenance tick active. ADR 0061 records these choices. New filesystem tests exercise 4,097 uncovered paths, marker replacement after six quiet minutes, restoration of fast child discovery, and enrollment before the first tick. Focused tests and clippy passed; these are preflight results, not the final gates. The unchanged release harness remains authoritative.
Verbatim preflight output:
New candidate frozen at
201328bda7on issue/folder-ids-fix7, based on9439893279(origin/dev merge was already up to date). Nothing has been pushed. Source manifest SHA256 7457ecfa6fc8415282067a3ca6fbfc7575ba19243c93c8e6c57cc67362e1b39b; unchanged release harness SHA256 05e6d068a1a70cffd7eb102536497d3a905c6ef31f495a8fa6cda26f81199fb0.All required functional gates are running again on staging, using native ext4 and XFS loop filesystems plus container overlay. The randomized workers will each complete 10,000 cases with the five swap boundaries. Native release build and three mixed plus three fully watched budget runs are queued on the perf VM under the shared flock, behind the diagnostic profile of the failed binary. No older head passes will be counted for this candidate. The queue wait has a separate limit from the build and individual runs. Staging remains below 60% disk. The failed 0.6232% CPU window remains recorded in comment 64542.
kayg referenced this issue2026-11-05 23:21:12 +00:00