Move CI runners, deploys and staging to the new ci VM (8by64-compute01) #686
Open
opened 2026-10-26 14:44:47 +00:00 by kayg
·
496 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#686
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?
Move CI, deploys and staging off the old VMs onto
8by64-compute01(the new ci VM). Approved by kayg on 26 Oct.forgejo-runner(capacity 4, label docker) andforgejo-runner-webmove from calternal-dev to 8by64-compute01, keeping the same registration.deploy/next/deploy.sh,remote.shandrollback.shswitch fromssh root@10.69.69.83tonetbird ssh. This lands as a PR and isn't run yet.next.calternal.cloud(:8080, data/srv/calternal-next/data) andpreview.calternal.cloud(:8081,/srv/calternal-preview/site). The hand-applied k8s Services/EndpointSlice change from 10.70.3.158 to the new VM.Starting approved unattended CI/staging migration to 8by64-compute01. Inspecting both runner registrations and staging units first; production remains read-only. Notes and final evidence will be recorded in ci-move.
Step 1: inspection complete. Both runner identities use v13.2.0 and separate registrations; preparing the same units/images on compute01 with ci.slice CPUWeight=1000. No cutover yet. Step 3 inspection found 120K next data and 97M preview site, served rootlessly by Podman/Caddy; old v0 assets will remain untouched.
Step 2: relay deploy/rollback scripts now originate every NetBird hop on the orchestration host, with configurable transport and a staging target on compute01. Production has not been contacted. Verification found a pre-existing build-slot lock permission issue (repairing group permissions) and direct Kubernetes API timeout; testing a NetBird local forward through the old build host. API and attempted web rerun endpoints returned 404; fallback smoke branch will need a draft PR because CI only triggers on dev/main pushes or pull requests.
Step 1 cutover: both old runners are disabled/inactive before registration transfer; configs/registrations on compute01 are owned by forgejo-runner mode 600. CI images transferred successfully; warm 35G target cache still relaying before new daemons start. Smoke draft PR #687 contains only an empty commit. Step 3: old next service stopped for consistent data copy; next data and preview site are relaying now. Kubernetes control-plane NetBird API access is blocked, but LAN API via a local NetBird SSH forward is being tested.
Blocked on durable staging routing: contrary to the plan, calternal-staging-backend-vm is actively managed by Argo CD application calternal, with automated prune and selfHeal enabled. calternal-preview-backend-vm is hand-applied as expected. There is also an Argo-managed staging-edge EndpointSlice at old 10.70.3.158 for mail ports 10993/10465. I will not change Argo policy, production, or the edge objects. Continuing runner migration, deploy PR #688, local next verification, and the authorized preview endpoint move; recording the staging routing/deletion dependency explicitly.
Step 3 progress: new preview is active and https://preview.calternal.cloud/review/index.html returns 200 after an address-only patch to its hand-applied EndpointSlice (10.70.3.158 -> 10.70.3.14). Old next and preview services are now stopped and preserved. origin/dev
a779a46f42built successfully on compute01 through build-slot.sh; running the actual TARGET=next relay deploy now. Staging public routing remains blocked by Argo-managed source, as recorded above. Deploy PR: #688 (unmerged).Step 1: new runners are active, same v13.2.0 registrations, configs/.runner mode 600, both daemons and Docker jobs in ci.slice (CPUWeight=1000). Smoke run https://git.kayg.org/kayg/calternal/actions/runs/485 is running all three jobs on the moved runners. Step 2: both tagged-image relay and default remote build mode deployed staging successfully (
a779a46f42andbc25169a3e); snapshot and health checks passed. Public next remains 502 because the requested staging EndpointSlice is Argo-managed with selfHeal enabled; preview is 200 on the new VM, confirmed by packet capture to 10.70.3.14:8081.Smoke result so far: server passed; web failed on unchanged dev source at the existing bundle-size gate: all_js_brotli 308 KB > 260, first_css_brotli 22.7 KB > 22.1, first_js_brotli 255 KB > 240. Rust job is still running; watching it to completion. This verifies both moved runner identities actually execute jobs, but CI is not green. No app/budget changes will be made in this infrastructure migration.
Deletion audit: do not delete calternal-staging yet (Argo staging HTTP and mail endpoints still target it, plus v0/archive assets remain there). calternal-dev no longer runs CI, but has unrelated kayg developer sessions/workspaces/ops scripts to preserve. perf-test has no running containers, but four perf/*-vm.sh wrappers still default to 10.69.69.63 and test datasets remain there; those workflows were not changed by this job. Final report will avoid claiming these whole VMs are fully retired.
Smoke 485 is still finishing two long Rust property tests; hundreds of tests have passed with no Rust test failure reported. Cancelled only duplicate PR CI run 486 (started by this job, already failed at the same web bundle gate) so the required smoke run gets capacity. No unrelated run/process touched.
Finished this unattended migration pass. Runners now execute on compute01; smoke run 485 completed server=success, rust=success, web=failure on unchanged-dev bundle budgets (308>260 KB JS total, 22.7>22.1 CSS initial, 255>240 JS initial). Temporary ci/runner-smoke branch deleted. Both old runners disabled/inactive. Local next and preview are healthy on compute01; preview public HTTP 200, traffic confirmed at 10.70.3.14. Tagged and default-build NetBird staging relay deploys passed; bash -n and compute01 shellcheck passed. PR #688 remains open/unmerged. IMPORTANT: public next is still 502 because its EndpointSlice is actively Argo-managed/self-healing, contrary to the plan; it was not patched. Durable routing needs homelab-private k8s/hatsuna/calternal updated; staging mail endpoints still point to the old VM too. Both old staging services remain stopped/preserved. No production connection/write/deploy. No whole-VM deletion is yet unconditional: dev retains developer work, staging retains Argo routes/v0 archives, and perf wrappers still target perf-test. Full changes, verbatim evidence, address-only diff and deletion/dependency audit: /home/kayg/codex-jobs/ci-move/result.md; ongoing notes: notes.md. No issue closed or PR merged.
The GitOps change is done (homelab-private
9b58d23, by kayg's k8s agent):10.70.3.14:8080.Checked on 26 Oct: next.calternal.cloud/healthz and calternal.cloud/healthz both return 200; preview returns 200. calternal-staging is no longer used and can be deleted once its v0 copy (
/srv/calternal) is no longer needed.Starting the perf VM move on branch
issue/perf-move, based on origin/dev ata779a46f4299ade3a222aab7448d11db84b6c0d2. I will make local runs use /usr/local/bin/perf-lock.sh, preserve budgets, measure the four gate runners on 10by32-01-std, and open a PR into dev.The old runners default to root@10.69.69.63 and /root/perf-vm.lock. They also require /mnt/b/hdd-ext4, /mnt/z4-nvme and sdb/sde device identities. None exist on the new Studio VM. /tmp is tmpfs here, so the new default scratch and build directories will be under the current user's ~/.local/share/calternal-perf on the VM disk.
The current user cannot write /proc/sys/vm/drop_caches, and passwordless sudo is unavailable. Non-root runs will explicitly report retained host caches. PERF_DROP_CACHES=1 will require write permission and fail clearly if unavailable. The budgets and test assertions stay unchanged; these measurements cannot be compared as a disk-cold HDD baseline.
Sibling coordination is temporarily blocked: both netbird ssh and regular ssh to agent@10by32-02-std.vpn.kayg.org timed out (20 seconds and 12 seconds). No perf measurements have started. I am checking the OrbStack host control path before deciding whether safe measurement is possible.
Sibling coordination is resolved through OrbStack host control (the direct SSH path still times out). The sibling has no cargo, rustc, browser, Calternal, or test jobs running. I separately acquired its /var/lock/calternal-perf.lock exclusively, through a session limited to two hours, so its build-slot jobs cannot start during these measurements. This is a separate lock on that VM, not an assumption that local flock spans VMs.
All runners now compile through build-slot.sh before measurement and take perf-lock.sh only for the measured phase. The auth gate compiled successfully with -j3. Measurements are starting now.
Auth gate passed: 20 full sign-ins during repeated 50,000-file recounts, p50=15.224698ms, max=21.594897ms, against max <50ms. Exit 0.
The ordinary runner reached the unchanged invite-failure timing test and exited 101. Median timings were wrong=135418ns, expired=410835ns, malformed-prefix=112625ns, revoked=364710ns, used=421086ns. The ratio is 3.739 (421086/112625), above its unchanged 3x limit. This is a new-hardware observation, not a reason to loosen the assertion. The runner still stops on its first failing test, as before. I will run the already-compiled remaining ordinary tests separately under perf-lock.sh so the issue gets their numbers as well.
Correction to my preceding comment: the invite-failure median ratio limit is strictly below 2.5x (the assertion uses min * 5 / 2), not 3x. The observed 3.739x ratio breaches that unchanged 2.5x limit. The underlying timings and failure report were correct.
At 10k notes, the tasks gate reports two breaches with unchanged limits: first-touch update p95=77.535331ms and warm update p95=57.626693ms versus <=40ms; cold-index growth=36.059323846% versus <=10% (plain median 976.542687ms, tasks median 1328.677377ms). List worst p95=1.204589ms versus <=10ms, counts p95=0.12475ms versus <=5ms, and describe p95=0.014917ms versus <=0.2ms all pass. The 100k case is still running; the new runner preserves a failure exit while continuing to collect the other requested size.
The seven ordinary tests after the invite-ratio failure all passed in a separate perf-lock.sh session. Startup=144.215776ms; live empty search=0.1ms; 200k-event job worst other-user action=459.585us and same-user action=528.585us; 10k outage checks=15.753451ms; 10k/100k save checks=13.19048ms/84.35003ms; tag rename worst typing=73.63677ms; first query during indexing=58.479573ms.
Tasks runner completed at both default sizes with exit 1. Budgets are unchanged.
10000 notes: list worst p95=1.204589ms (limit 10ms), counts p95=0.124750ms (limit 5ms), describe p95=0.014917ms (limit 0.2ms), update first-touch/warm p95=77.535331/57.626693ms (limit 40ms), cold-index growth=36.059324% (limit 10%). Plain/tasks index median=976.542687/1328.677377ms.
100000 notes: list worst p95=5.722360ms (limit 25ms), counts p95=0.889838ms (limit 5ms), describe p95=0.015833ms (limit 0.2ms), update first-touch/warm p95=133.556141/62.141887ms (limit 40ms), cold-index growth=19.971432% (limit 10%). Plain/tasks index median=9746.423937/11692.924403ms.
The final runner layout keeps each build inside its unique run directory. A shared target directory could let another queued checkout replace the benchmark executable after compilation but before this run acquires the measurement lock. The measurements collected here all use this one checkout; the final layout prevents that race for future runs. Compilation still uses one build-slot job with -j3, and measurements use perf-lock.sh separately.
The remote transport check passed with a failed synthetic gate: the report was retrieved, exit 17 was preserved, and spaces, quotes and shell metacharacters remained literal. Non-root PERF_DROP_CACHES=1 is rejected clearly before compilation or measurement. Shell syntax and git diff whitespace checks pass.
Full server gate completed with exit 1 at all default sizes, five warm and three cold runs per size. There were no scenario failures. The three unchanged blocking-budget breaches are:
100000 notes: idle.cpu_pct p95=0.32999648637451123 % vs limit 0.1 % (noise 0.0%).
100000 notes: idle.rss p95=112.78515625 MB vs limit 100 MB (noise 0.0%).
100000 notes: open.api_get p95=54.008225 ms vs limit 50 ms (noise 39.33440636577556%).
All other blocking server budgets passed. Full gate output will follow with the committed head SHA. Host page caches were retained; both storage roots were on the Studio VM disk. No thresholds were adjusted.
Auth gate. Committed head:
31c49e8b601ebe11469b9994e769b67184616061. Gate output verbatim:Ordinary gate, through its first failed assertion. Committed head:
31c49e8b601ebe11469b9994e769b67184616061. Gate output verbatim:Remaining seven ordinary assertions, separate perf-lock.sh session. Committed head:
31c49e8b601ebe11469b9994e769b67184616061. Gate output verbatim:Tasks gate at 10k and 100k. Committed head:
31c49e8b601ebe11469b9994e769b67184616061. Gate output verbatim:Full server gate at 1k, 10k and 100k. Committed head:
31c49e8b601ebe11469b9994e769b67184616061. Gate output verbatim:Finished the perf VM move. PR: #691
Branch
issue/perf-move, basea779a46f, committed head31c49e8b601ebe11469b9994e769b67184616061. Nine script and documentation files changed. The worktree is clean. No evidence files, budgets or product test assertions were changed in the commit.All four default runners were measured here. Auth passed. Ordinary had one failed assertion out of 13 (invite-failure median ratio 3.739x vs <2.5x); the seven tests after that failure were measured separately and passed. Tasks breached update p95 and indexing-growth limits at both default sizes. The full server gate had no scenario failures and breached three 100k budgets: idle CPU 0.329996% vs 0.1%, idle RSS 112.785156MB vs 100MB, and API note-open p95 54.008225ms vs 50ms. The latter has 39.3% noise; this is the requested single gate run, not a confirmed regression after a rerun. Thresholds were not changed.
Complete verbatim gate outputs for this head are in the five preceding comments. Final runner lines, verbatim:
The runners now run locally through perf-lock.sh after build-slot.sh compilation; PERF_HOST selects netbird ssh. Host page caches are retained for non-root Studio runs and reported explicitly. Scratch and builds use the VM disk, not /tmp. Sibling coordination was resolved through OrbStack, held separately throughout measurement, and released afterward. Shell syntax, whitespace, transport quoting/report retrieval/exit-code checks, compilation-failure cleanup and nested-lock rejection all passed. The remote transport checks used a local SSH stub; the perf measurements were local on 10by32-01-std.
No merge or deployment was performed. The issue remains open.
Deployed latest dev
01505c2a03452d3d49d3984c13887d8d8ec77a27to https://next.calternal.cloud successfully.Completed: 2026-10-27T03:58:29+05:30 (IST).
CI: Forgejo Actions API has no run or commit status for this merge SHA. Its Git tree
3803dbf51040fd5467fcdc7f37b2e134f0062915exactly equals PR #696 commitc4af6afea49a9aba06bbe70b813644fa50a5fe2b, tested in run 490 (API id 62372): server success, rust success, web failure. Deployed using that identical-tree evidence and the approved web-failure exception; no claim that the merge SHA itself has a passing run. Dev head was rechecked after deployment and remained unchanged.Procedure:
/home/kayg/calternal-deploy-next-20261026/repo. Verified clean HEAD and origin/dev at the pinned SHA; no keys or credentials transferred.bc25169a3e5c4076d3e4e1dda7c91fab1e3cf98f. First ranremote.sh stopthenstartagainst next, saving/srv/calternal-next/snapshots/20261026T222625Zbefore the build/deploy./etc/calternal/env.shand running/usr/local/bin/build-slot.sh sudo docker build -q -f deploy/Containerfile -t localhost/calternal-next:01505c2a0345 .from the fresh checkout. Built nothing on the orchestration host.TARGET=next pr688/deploy/next/deploy.sh 01505c2a0345from the orchestration host. The script relayed Docker save/zstd through this host into rootless calternal Podman, installed the next quadlet, preserved the old image as rollback, stopped next, snapshotted data, and switched/start-health-checked the image. Automatic rollback remained available.Final deployment snapshot:
/srv/calternal-next/snapshots/20261026T222705Z. Both snapshots were verified present. The rollback image matches the original running image. Only next was deployed; production access consisted solely of health GET requests.Verification output, verbatim:
Health exposes version
0.1.0without a commit field. Deployment identity was verified through the clean pinned build checkout, tagged/running image identity, matching ordered Docker/Podman filesystem layers, and public HTML/asset checksums matching files inside the running container. Docker and Podman image identifiers differ after import; their six filesystem layer digests match exactly.Rollback command from the orchestration host (restores the previous image):
To also restore the data from the final deployment snapshot, append
--data. This uses/srv/calternal-next/snapshots/LAST, currently the final snapshot above; run before any later deployment changes the rollback tags or LAST pointer. Rollback was prepared, not executed.Starting perf-arm64 on branch
perf/arm64-fixes, base SHA31c49e8b601ebe11469b9994e769b67184616061, in an isolated worktree on 10by32-01-std. The requestedperf/moveref does not exist; PR #691 usesissue/perf-move, and its exact approved head is the base. I will repeat each failing gate three times before and after changes under perf-lock, retain all limits, and record evidence here. No merge or deployment.Idle profiling finding at base
31c49e8b: while the 100k server is quiet, a 37.003493547439575-second per-thread /proc sample shows 20 CPU ticks in the unnamed quota background thread and zero ticks in the search writer, history writer, id writer, native watcher, journal writer and idle unload worker. On this host 100 ticks are one second, so one quota recount uses about 0.20 CPU seconds. The implementation repeats it every 60 seconds, which predicts 0.333333% idle CPU, matching the reported 0.329996% failure. Each recount opens every file, checks its type, reads its metadata again, closes it, and allocates a new map of full absolute paths. This is product work at idle rather than scheduler noise. Preparing a metadata-only walk through the anchored folder handles and relative path keys; quota drift checks and their cadence stay intact. The three baseline repetitions continue with saved, unmodified binaries. All evidence remains outside the repository.First unmodified server repetition at 100k notes (five warm runs, original 300-second idle interval, perf-lock held):
The first disk-backed invite repetition passed: medians were wrong 149459 ns, expired 288876 ns, malformed-prefix 148209 ns, revoked 283210 ns, used 267418 ns. Ratio 1.9491124020808452, unchanged limit 2.5. Two more repetitions are pending. Early tmpfs control runs are excluded from the before/after gate table.
Separate diagnostic syscall run at 10k notes, excluded from the untraced baseline: 2400 task updates caused 4800 file/directory syncs and 5074 history WAL syncs across warm setup, updates, background saves and shutdown. Thus the existing history append is not the only disk barrier in this workload. Deferred file saves run while other task updates wait for their durable history append. History WAL sync p50/p95 were 11.09/20.337 ms; note-file/directory sync p50/p95 were 12.437999999999999/23.59 ms under tracing. The current save protocol requires a durable pending snapshot before file replacement and durable promotion afterwards. I am retaining those crash guarantees while checking safe coalescing opportunities and disk controls. These traced times are diagnostic and are not substituted for the three untraced gate runs.
Cold-index code finding: the task pass currently parses CommonMark for any note containing
[, including notes with only links or a frontmatter tag list. Preparing a candidate-line check that still uses CommonMark to distinguish actual list items from code. The existing cold-fill equivalence test will check derived rows after moving derived-value completion ahead of secondary-index creation.Resuming the unattended arm64 fixes job in the existing worktree /home/agent/calternal-arm64-fixes on perf/arm64-fixes. Base and current HEAD:
31c49e8b60(PR #691). Earlier uncommitted fixes are present; I will inspect and continue them, repeat the failing gates three times before and after under perf-lock, preserve all limits, and open a new PR. No merge or deploy.Three unmodified, disk-backed invite repetitions are complete, each under perf-lock with the saved base binary. These pass here, but still show different work for absent and present hashes. The consistency/defensive change will read a fixed-shape result from one covering index and perform the digest comparison for all classes, including malformed tokens. No delay or threshold change is used.
Two of the three unmodified server repetitions are complete at 100k notes (five warm runs each, original 300-second idle interval, perf-lock held). No scenario failed. The idle CPU breach repeats. RSS varies across the 100 MB boundary. API note-open is 50.527412 ms in repetition 2, with 39.74962200517652% noise, after passing repetition 1. Waiting for repetition 3 before deciding whether note-open needs a code change.
Unchanged limits: CPU ≤0.1%, RSS ≤100 MB, API note-open p95 ≤50 ms.
Validation so far: 36 fsio, 426 notes and 29 tasks library tests passed; 6 existing notes tests remain ignored. Auth migration and security checks are running. Added a deterministic quota test for a directory rename racing a recount, because stored path keys are changing to relative paths.
Disk control, under perf-lock on 10by32-01-std: 220 synced overwrites of one 4 KB block per repetition, first 20 excluded, three disk and three tmpfs repetitions. This is a diagnostic control, not a replacement gate. The same Python pwrite + fdatasync code ran on both roots. Verbatim results:
The before syscall trace was parsed including unfinished/resumed syscalls. The 2400 real task changes, plus warm initialization and shutdown, performed 5074 history WAL syncs (2.1141666666666667 per change over that whole phase) and 4800 note file/directory syncs (2 per change). Each task change's durable history append is already one FULL SQLite transaction; automatic file saves add pending and promotion transactions and file/directory barriers. The code change lets the pending and promotion receipts share an arriving edit's transaction, keeps receipt completion after commit, and continues live property edits while promotion is pending. File placement still waits for durable pending history and promotion still waits for its commit. Explicit flush/shutdown writes stay immediate. The new receipt/transaction test and the existing save/crash tests pass.
First changed 10k task gate at
b499f9a258still fails. This is not a completion claim; I am continuing with cold-fill stage profiling and a syscall count. Limits remain fixed.The list, count and describe assertions still pass. Separate diagnostics use separate fixtures and are excluded from the gate table.
Cold-fill stage profile at 10k, under perf-lock, separate fixtures and excluded from gate repetitions:
The first change removes the repeated index-maintenance work, but elapsed time remains at transaction/checkpoint boundaries. Both plain and task fills use SQLite's ordinary 1000-page automatic checkpoint cadence while loading an empty store; the larger task fill copies changing pages more often. I am testing coalesced checkpoints during only that empty-store fill, with a bounded bulk WAL, a final passive checkpoint included before completion, and restoration of the ordinary setting on both success and error. NORMAL metadata-store synchronization and FULL durable-history synchronization are unchanged. No gate, budget, assertion or file-flush schedule is changed. A new failure-path test checks restoration after an index-build error. The original three before and first-change repetitions continue with their saved binaries; a separate verified binary will measure the next change.
All three unmodified task repetitions at each size are complete. Each invocation used the original three alternating cold comparisons and 2400 real writes under perf-lock. No limits changed. Verbatim report JSON numbers:
Lists, counts and describe pass in every repetition. Updates and index growth fail in every repetition. The first-change and bulk-checkpoint measurements are separate from these saved-base measurements.
App-state media control, three repetitions at each size under perf-lock. The same checkpoint candidate binary and the same disk-backed note fixture are used; only app state is placed on tmpfs. FULL history synchronization and all assertions remain enabled. This is diagnostic evidence, not a substitute gate or a proposed production storage change.
The update assertions pass in all six media-control runs. Disk-backed app state still misses the update budget. The separate syscall trace confirms that 2400 real changes plus setup/shutdown now cause 2656 FULL history WAL syncs, down from 5074, while retaining 4800 note file/directory syncs. Each task edit already uses one primary durable history transaction; extra background pending/promotion work now shares those commits. A synced 4 KB overwrite on this host measures 6.40374–6.8618045 ms median in the separate disk control. Slow app-state sync also lengthens each round through 60 notes beyond the 750 ms quiet-save interval, so background file saves recur throughout the disk-backed workload; the fast media control avoids that feedback. I am keeping all durability barriers and the existing file-flush schedule.
The task-index changes now pass the first untraced 10k cold-index growth check (9.599860112647926%), pending the remaining repetitions and the 100k results. The precise value will be quoted from JSON in the final before/after table. The quota recount diagnostic predicts only 0.10222222222222223% for the first implementation, which is too close to the 0.1% limit; a streaming directory walk and totals accumulated per Home are being verified before the full server idle repetitions.
Current committed head:
d5aa104306, clean worktree. Product changes now include streaming quota traversal and per-Home totals; fixed-shape invite validation; grouped background save bookkeeping; candidate-only checkbox parsing; one transaction for derived fill values and indexes; a bounded bulk checkpoint cadence restored on errors; omission of unused closed/checklist rows; compact closed tag membership; and tag membership stored by its primary key instead of a redundant index. Task cache version is bumped so existing derived rows rebuild.The three state-media control repetitions at each size all pass update latency. The full-precision control table is in the preceding finding. FULL history remains enabled. The syscall finding is 5074 → 2656 history WAL syncs for 2400 real changes plus setup/shutdown; the two file/directory barriers per save remain. Disk-backed updates still breach the limit; the control establishes the app-state media cost, not a proposed relocation of durable state.
The streaming quota diagnostic, under perf-lock on the same 100k Home, is verbatim:
This is a direct recount diagnostic, not a substitute for the three full server idle gates. The full 300-second idle repetitions are still pending.
Cold-index growth is not finished. The first untraced current-head repetition is 11.157435145589156% at 10k and 36.00877350614075% at 100k, with all list/count/describe checks passing. I am profiling 100k stages and physical I/O now; no budget or assertion has changed. The anchored-folder test had one cleanup-only ENOENT after its containment assertions; it passed three isolated reruns, then the complete fsio suite passed all 37 tests. Metadata failure-path, cold-fill equivalence, task tests and targeted lint also pass.
Temporarily waiting for the shared host: another job holds perf-lock while running
timeout 5400 bash perf/web.sh --gate(held since about 12:53:53 IST, observed at 13:00:46 IST). My corrected build is queued through build-slot, and all measurements remain queued through perf-lock. I will not bypass the lock or stop that job; the runners continue automatically after release. Only my own preliminary waiting loop was stopped, using its recorded and verified PID 151322, so it cannot start obsolete repetitions later.While waiting, the next code includes allocation-free borrowed property reads, direct checkbox tuple serialization, a CommonMark-equivalent fast path for unambiguous bullet boxes, empty-label LF/CRLF coverage, and larger subsequent cold-fill batches after the first visible batch. All budgets are unchanged. The already completed task/pass and property checks passed; the corrected build adds the LF/CRLF regression and will rerun them before measuring. The current after results are archived as intermediate failures, not reported as final success.
Pushed the new branch
perf/arm64-fixesatbfc879f0e5using the required SSH identity. No PR is open for it yet, so final test fixes can still be pushed before opening the new PR. No merge or deployment.The last code change removes duplicate property-entry parsing/value copies and checkbox JSON intermediates, retains CommonMark for ambiguous contexts, and groups later cold-fill writes after the first 4096-row visible batch. The equivalent Markdown check passed 2000 generated cases; LF/CRLF empty-checkbox regressions passed. Conservative CR/BOM guards were added afterward, and the exact final guard recheck/build is queued behind another job's second locked web gate (started around 13:04 IST). I am waiting for that lock, not claiming those final checks have run. The ready runner will run all requested failing gates three times on the exact final binary, then the two state-media controls, then the three full 100k server idle repetitions. All evidence remains outside Git; all limits remain unchanged.
New committed/pushed head:
1340a68106on perf/arm64-fixes. No PR opened yet; no merge/deploy.The first property edit previously settled its disk seed in one FULL transaction before appending the edit and API receipt in another. The actor now lets only an untouched disk seed join the first property request; versioned reads and base-version patches still settle normally. The existing history lane commits the seed, edit and idempotency receipt together, and the action answers only after that commit. A no-op first property request explicitly settles its seed before returning its version. This removes one first-touch commit without removing a durability barrier. The test verifies exactly one transaction, both history updates and the API receipt visible to a separate reader, the original note file still unchanged before its deferred save, and correct text after reopening. The no-op regression verifies the returned seed version is already durable.
The complete notes regression suite passed: 429 passed, 6 existing ignored. Tasks: 33 passed, including 2000 generated CommonMark equivalence cases and LF/CRLF empty-box labels. Auth security: 14 passed, one existing ignored perf test. Targeted lint and release compilation passed. The three ignored invite timing gate repetitions have now passed on this exact binary. The final task and full 300-second server idle repetitions are continuing; I will report their actual results, including any remaining host-specific misses. Limits and file-flush timing remain unchanged.
Intermediate findings at
1340a68106(not final gate results):The full 100k server gate now reports idle RSS 62.8 MB, but idle CPU 0.18% still exceeds 0.1%. The first API note-open p95 is 18.7 ms. No API-specific change is justified by the three baseline repetitions: 19.876192, 50.527412 and 12.484923 ms.
History tracing reduced WAL syncs from 5074 to 2656 for 2400 changes plus setup/shutdown; file and directory syncs remain 4800. First disk seed and the first property edit now share one FULL history transaction. New regressions verify the receipt, seed and edit survive reopening and a no-op returns a durable seed version. The full notes test suite passed 429 tests with 6 ignored; task tests and auth security regressions passed.
The physical app-state disk still gives variable warm-update failures. Moving only app state to tmpfs, leaving note files on disk and FULL synchronous history enabled, gives 10k first/warm p95 0.76/0.47 ms and 100k 1.11/0.56 ms. However, cold growth still exceeds 10% in those controls, so I am treating that remaining cold-index overhead as product work and continuing the optimization.
The quota recount still runs every 60 seconds. I am testing snapshot path reuse rather than changing its cadence or the gate limit. All measurement artifacts remain outside the repository.
First server output, verbatim:
Finding at
473b6282: the task index now avoids allocating closed checkboxes, task checklists, and note fields that it never stores. Its general-purpose checkbox parser keeps its existing behavior. A new regression verifies checklist visibility when task status is removed and restored. All 34 task tests pass, including the 2000-case differential parser check.The quota counter now reuses two bounded snapshots of relative paths. It still stats every file every 60 seconds, merges concurrent application writes, retries directory-move races, and recognizes outside edits and removals. All 37 filesystem tests and all 429 notes tests pass (6 notes tests ignored); auth security regressions pass 14 with 1 ignored; lint and release builds pass.
Same-Home quota CPU comparison under perf-lock, verbatim (diagnostic, not the full idle gate):
The first lean task gate at 10k passed all assertions: warm update p95 35.437129 ms, first-touch p95 37.467175999999995 ms, cold growth -2.291721955006272%. Three final server repetitions have been queued with per-thread CPU sampling to attribute any remaining idle work. No limit or durability setting changed.
Finding and measurement wait update at
bc354f92: task description was rebuilding a general YAML value tree solely to validate common display properties. Display reads now recognize a conservative subset of simple ASCII mappings and flat lists; all other syntax falls back to the existing YAML parser. Writes still always use the full validator. Duplicate keys and YAML boolean/null key aliases, complex values, control characters and large numeric scalars are excluded from the shortcut. Differential tests compare validity with the full parser, including 5000 generated cases per property test.Validation output, verbatim:
The previous full idle run at
473b6282still measured CPU 0.1833307261699656% and RSS 64.91796875 MB. Per-thread samples show only the quota recount consuming CPU during the quiet span: approximately 10–12 ticks each 60 seconds, with search/history writers idle. Continuous hot recounts are faster, so a paired physical-filesystem/tmpfs metadata control at the real 60-second cadence is queued. Task controls and three final repetitions are also pending.Measurement is temporarily waiting on the shared performance lock held by the independent lists-perf2 before run. No other job or process was stopped. All artifacts remain outside Git, no limits changed, and no PR has been opened yet.
Host filesystem evidence for the remaining idle CPU miss:
The full server's quiet-period per-thread samples at
473b6282show the quota worker alone using 10–12 CPU ticks each minute; other persistent workers are idle. The full idle result was 0.1833307261699656% CPU and 64.91796875 MB RSS. The earlier hot-loop recount projection understated this cost.A separate paired control runs the same quota code at the actual 60-second cadence against the physical Home and a tmpfs tree with identical filenames and logical lengths. It uses the deployment allocator setting (two glibc arenas) and disables transparent huge pages as the server does. File contents are sparse in tmpfs because quota reads metadata only. The directory count and three results are verbatim:
The physical filesystem's CPU cost reproduces the full-server miss; the tmpfs control reaches the 0.1% target. This isolates a filesystem-dependent component of the remaining quota cost without changing cadence, quota correctness, or the gate. These are diagnostic controls, not claims that the physical server gate passes.
Task cold growth still fails in RAM at 13.143122398945673% (100k) and 15.6% (10k), so I am continuing to fix it rather than assigning it to storage. The next change removes a redundant GROUP BY sort over checkbox rows already unique by note, and builds the final task-path lookup before membership resolution so SQLite can reuse it instead of making a temporary IN index. A cold-vs-normal rebuild regression now covers both plain and non-task linked boxes on the same note.
Additional auth verification passed: 29 unit tests, 3 host-cookie tests, 8 invite tests and 1 migration test, plus lint.
Task findings at
dd30abbe:The index no longer duplicates note title, path, tag JSON or update time. It joins the authoritative note row only for selected page ids and individual reads; the covering sort pass stays intact. Closed tags are expanded only for the bounded set of ids kept during a visit. The derived task cache is version 9. Fresh metadata reads overlap one bounded write batch, and the finite derived fill checkpoints explicitly before completion; FULL history commits and receipts are unchanged.
Validation: 434 notes tests passed (6 ignored), 34 task tests passed, 14 auth security regressions passed (1 ignored), lint and release build passed. The task kill-at-acknowledgement regression passed.
The first physical 10k repetition at
8ead234fpassed all gates, with cold growth 6.031605127833991%. The 100k repetition still failed at 18.61351680801126%. Later controls reduced absolute indexing time but did not meet the 100k ratio consistently. These remain failures, not passes.The same-code I/O control at
dd30abbe, verbatim:A subsequent control read the VM cgroup counters. The VM has a 10-CPU quota and 32 GiB memory limit despite reporting 30 CPUs and 63 GiB globally. Both cold phases recorded zero throttled periods and zero throttled microseconds, so CPU throttling does not explain this control.
Cross-host comparison is temporarily blocked: a 20-second bounded SSH probe to root@10.69.69.63 failed with
ssh: connect to host 10.69.69.63 port 22: Connection timed out. No remote changes were made. Local measurements continue.Next check: feed fresh identity reads and commit batches in id order to keep primary-key B-tree writes local instead of scattering them in read-completion order. The first visible commit stays at 4096 notes. No performance limit changed, and no evidence was committed.
CPU-profile finding from the ordered-read candidate, before the current buffer changes:
Software profiling of the task cold phase recorded 12.325 CPU seconds. Allocator lock wakes took 1.545 seconds and lock waits 0.870 seconds. Caller data attributes the waits to realloc and allocator internals, and the wakes mainly to vector growth, metadata description and search description. This is an allocation cost, not CPU-quota throttling.
The current candidate preallocates the bounded coordinator and reader vectors, shares the immutable identity list instead of cloning ids and paths per chunk, and skips constructing search's full cleaned body when only metadata fields are needed. Search itself keeps the full body. No history, source-file or receipt durability change is involved. The first visible commit stays at 4096 notes.
Profile output, verbatim:
Allocator caller output, verbatim:
The final wired body-skip build and physical controls are running. Earlier intermediate controls still failed the 100k cold ratio; no claim that it passes yet. All evidence stays outside Git.
The final candidate is pushed at
5ed9dcc7e3on perf/arm64-fixes. No PR has been opened yet, so all measured changes are already on the branch before the forge freezes PR branch updates.Further profiling found avoidable metadata body construction and allocation growth in the cold scanner. Metadata now reads the same normalized note without building the unused full search body, and bounded reader/writer batches reuse their reserved capacity. Task membership for linked checkbox lines is derived from the indexed task paths instead of copied and rewritten per line. Regression coverage includes shared folded task paths. Fresh derived-index builds keep disposable SQLite sort runs in memory, then restore the ordinary temporary-store, cache and checkpoint settings before completion. This does not change the history store's FULL durability or its receipt barrier.
The final build passes 434 notes tests, 36 task tests and 14 authentication security tests (existing ignored tests remain ignored), plus notes/tasks all-target clippy and the release build. The final three gate repetitions are in progress under perf-lock with the original limits. The first physical-storage task repetition still fails update latency and cold growth; this is not being reported as a passing result. The same binaries will also be measured with only application state on tmpfs, leaving note files on the T7, to separate storage effects from remaining index overhead.
Final-binary storage control at
5ed9dcc7e3. Each run used perf-lock, identical disk-backed note files and unchanged FULL history synchronization. Only application state moved to tmpfs. These are diagnostic controls, not replacement gates.All six update gates pass in this control. All six cold-growth gates still fail. The storage control therefore explains the update-latency failure but does not establish a complete host explanation for cold indexing. The final server repetitions are running; a whole-fixture tmpfs control will follow them to test the remaining note-filesystem contribution. All original physical-storage results will be retained.
The final physical-storage task repetitions at
5ed9dcc7are complete. At 100k notes the warm-update p95 values are 43.137468999999996, 46.799526 and 45.971055 ms (limit 40), versus 53.378344, 59.007161 and 62.134015 ms before. Cold-index growth is 17.73856159846792, 18.119036543359808 and 15.62365618772192% (limit 10), versus 29.42160246620531, 26.104970871107636 and 33.71806537305705% before. All list, count and describe gates pass.The state-on-tmpfs control isolates the update failure to storage. It does not fully explain cold indexing, whose 100k growth remains 14.823036130798897, 15.417888412442442 and 15.402591111864735% in that control. The remaining cold-index gate is therefore still unresolved; I will not claim it passes or attribute it wholly to the host without the whole-fixture control. That control is queued after the full server repetitions, so measurements never overlap.
Task gates, repetition 1. Before is
31c49e8b60; after is5ed9dcc7e3. Original output follows verbatim. Every invocation used perf-lock, the original three cold pairs and 2400 writes.File:
tasks-before-1-10k.logFile:
tasks-balanced-1-10k.logFile:
tasks-before-1-100k.logFile:
tasks-balanced-1-100k.logTask gates, repetition 2. Before is
31c49e8b60; after is5ed9dcc7e3. Original output follows verbatim. Every invocation used perf-lock, the original three cold pairs and 2400 writes.File:
tasks-before-2-10k.logFile:
tasks-balanced-2-10k.logFile:
tasks-before-2-100k.logFile:
tasks-balanced-2-100k.logTask gates, repetition 3. Before is
31c49e8b60; after is5ed9dcc7e3. Original output follows verbatim. Every invocation used perf-lock, the original three cold pairs and 2400 writes.File:
tasks-before-3-10k.logFile:
tasks-balanced-3-10k.logFile:
tasks-before-3-100k.logFile:
tasks-balanced-3-100k.logInvite-failure consistency gate, three before and three after repetitions under perf-lock. Before is
31c49e8b; after is5ed9dcc7. The original 3.74x failure did not reproduce in these three baseline repetitions, but the defensive change gives all five classes the same validation operations. Limits and assertions are unchanged. Original output follows verbatim.File:
invite-disk-before-1.logFile:
invite-balanced-1.logFile:
invite-disk-before-2.logFile:
invite-balanced-2.logFile:
invite-disk-before-3.logFile:
invite-balanced-3.logServer baseline evidence at
31c49e8b60. Three separate perf-lock reservations, 100k notes, five warm runs and the original 300-second idle stretch in every repetition. API note-open exceeded 50 ms in only one repetition (19.876192, 50.527412, 12.484923 ms); no API-specific change was made. Original report and gate output follows verbatim.File:
server-before-1.mdFile:
server-before-1.logFile:
server-before-2.mdFile:
server-before-2.logFile:
server-before-3.mdFile:
server-before-3.logFirst final server repetition at
5ed9dcc7: idle CPU 0.1699971169021631% (limit 0.1), idle RSS 58.54296875 MB (limit 100), API note-open p95 38.585519999999995 ms (limit 50). The original gate exits 1 for idle CPU. Two repetitions remain.Independent thread sampling over a 300.3090879917145-second quiet interval records 52 CPU ticks: 51 on the quota recount thread, 1 on a Tokio worker, and 0 on the authentication, note history, search writer, note IDs and inotify threads. This agrees with the gate's 51-tick idle measurement; the sampling interval is diagnostic and is not substituted for the gate.
The same 99,950-file quota walk at the original 60-second cadence cost 12/11/12 CPU ticks on disk versus 6/5/5 on tmpfs in the earlier three-pair media control. The remaining idle cost is still the full metadata reconciliation on this filesystem; no polling or history/search work was hidden or moved outside the idle window.
Validation for ARM64 performance changes at
5ed9dcc7e3.The final build ran the notes and tasks unit suites with PROPTEST_CASES=5000, authentication security regressions, all-target notes/tasks clippy, and release builds for the server and perf binaries. Original summary lines:
The unchanged authentication migration/cookie/invite code also passed 29 unit, 3 host-cookie, 8 invite and 1 migration tests. The final quota implementation passed all 37 fsio tests and fsio clippy when introduced; its source has not changed since. cargo fmt --all -- --check and git diff --check
31c49e8bpass on the final tree.The cross-host comparison is blocked by SSH connectivity. Bounded read-only probes to the perf VM and staging both failed before any remote command ran:
Each probe used BatchMode, ConnectTimeout=10 and a 20-second outer timeout. The production VM was not contacted. Local measurements continue under perf-lock. Whole-fixture tmpfs controls still show cold-index overhead above 10%, so the remaining cold-index gate is unresolved rather than proven to be solely this host. I will preserve that failure explicitly in the final report and PR.
Whole-fixture tmpfs controls at
5ed9dcc7, three repetitions per size under one perf-lock reservation. Both note files and application state are on tmpfs; fixture bytes and all harness limits are unchanged. These are diagnostic controls.All six cold-growth assertions still fail. The 100k growth is 13.66131435098374–14.887311787618978%, compared with 15.62365618772192–18.119036543359808% on the physical filesystem. Storage contributes, but these controls disprove a complete storage-only explanation. The remaining task-index cost needs more work; this branch will be presented as a draft with the cold-growth gate unresolved. Both comparison hosts are unreachable, as recorded in the previous comment.
Head:
5ed9dcc7e3604be3835fd87f7354d3e3f60610bb. Base:31c49e8b601ebe11469b9994e769b67184616061. Each numbered row is a separate gate repetition under perf-lock; the three invite repetitions share one lock reservation. Server repetitions use five warm runs and the original 300-second idle window. Each task repetition uses the original three alternating cold comparisons and 2400 real writes. Task size labels mean N ordinary notes plus N task notes, as printed by tasks-bench. Host page caches retained. No limits were changed. Values below preserve the report JSON precision. Invite ratios are calculated from the five printed medians; the original medians are quoted verbatim in the second table.Final server evidence at
5ed9dcc7e3. Three separate perf-lock reservations; original budgets, five warm runs and 300-second idle window. All three exit 1 for idle CPU. Idle RSS and API note-open pass all three repetitions. Original reports and gate output follow verbatim.File:
server-after-1.mdFile:
server-after-1.logFile:
server-after-2.mdFile:
server-after-2.logFile:
server-after-3.mdFile:
server-after-3.logStorage and quota controls
Head:
5ed9dcc7e3604be3835fd87f7354d3e3f60610bb. Base:31c49e8b601ebe11469b9994e769b67184616061. Original gate output follows verbatim.File:
tasks-balanced-state-ram-1-10k.logFile:
tasks-balanced-state-ram-1-100k.logFile:
tasks-balanced-state-ram-2-10k.logFile:
tasks-balanced-state-ram-2-100k.logFile:
tasks-balanced-state-ram-3-10k.logFile:
tasks-balanced-state-ram-3-100k.logFile:
quota-cadence-control.logFile:
disk-control.jsonWhole-fixture tmpfs controls and final sync counts
Head:
5ed9dcc7e3604be3835fd87f7354d3e3f60610bb. Base:31c49e8b601ebe11469b9994e769b67184616061. Original gate output follows verbatim.File:
tasks-balanced-all-ram-1-10k.logFile:
tasks-balanced-all-ram-1-100k.logFile:
tasks-balanced-all-ram-2-10k.logFile:
tasks-balanced-all-ram-2-100k.logFile:
tasks-balanced-all-ram-3-10k.logFile:
tasks-balanced-all-ram-3-100k.logFile:
tasks-sync-final-summary.jsonThis run produced a draft change, not a complete resolution of the ARM64 performance job. The remaining 100k cold-index growth is 17.73856159846792, 18.119036543359808 and 15.62365618772192% against the unchanged 10% limit. Whole-fixture tmpfs controls still show 14.887311787618978, 13.66131435098374 and 14.061664749113273%, so a complete host explanation has not been established. Comparison hosts 10.69.69.63 and 10.69.69.192 both timed out on bounded SSH probes.
Idle RSS passes all three final repetitions: 58.54296875, 73.25390625 and 66.8984375 MB. Invite failure ratios pass all three repetitions after the consistency and defensive validation change. The original invite timing failure did not reproduce in the three baseline repetitions. API note-open failed only one baseline repetition and passes all three final repetitions; no API-specific change was made.
Idle CPU remains about 0.17%, versus about 0.32% before. Quiet thread sampling attributes the remaining work to quota reconciliation. The identical 99,950-path recount at the original 60-second cadence costs 12/11/12 CPU ticks on the disk filesystem and 6/5/5 on tmpfs. This is host filesystem evidence; the cadence and detection coverage remain intact.
Task warm-update p95 improves to 43.137468999999996, 46.799526 and 45.971055 ms at 100k, but exceeds 40 ms. Keeping physical note files and moving only application state to tmpfs passes all six update gates, with first-touch p95 below 1.04 ms and warm p95 below 0.59 ms. FULL history synchronization and the receipt barrier remain enabled in every control. The final syscall trace records 2542 history WAL syncs for 2400 changes plus setup and shutdown (1.0591666666666666 per change), versus 5074 before; the 4800 file/directory syncs remain. A regression test verifies that a seed, first property edit and receipt share one primary history transaction. Traced timings are not replacement gates.
Validation passes: 434 notes tests, 36 task tests, 14 authentication security tests, 37 fsio tests, 41 additional authentication tests, relevant clippy checks, formatting and release build. Existing ignored tests stay ignored. Every gate and control measurement used perf-lock. Budgets and the performance harness are unchanged. All evidence is outside Git. No merge or deployment was performed.
Run finished with draft PR #703. Head:
5ed9dcc7e3604be3835fd87f7354d3e3f60610bb. Base:31c49e8b601ebe11469b9994e769b67184616061. Branch:perf/arm64-fixes.This is a partial result: 100k cold-index growth still exceeds 10% and is not fully explained by the host. RSS, invite timing assertions and API note-open pass all three final repetitions. Idle CPU and task update gates still fail on disk; their filesystem controls are documented in the assessment. The final trace records 2542 history WAL syncs versus 5074 before, with all 4800 file/directory syncs retained. Tests and lint pass. No limits were changed. No merge or deployment was performed; the issues remain open.
The complete local report is
/home/agent/codex-jobs/perf-arm64/report/result.md, outside Git. Complete original outputs are posted in this issue: task run 1, task run 2, task run 3, invite runs, server baselines, final server runs, state controls, whole-fixture controls and final sync counts.Head:
5ed9dcc7e3604be3835fd87f7354d3e3f60610bb. Base:31c49e8b601ebe11469b9994e769b67184616061. Each numbered row is a separate gate repetition under perf-lock; the three invite repetitions share one lock reservation. Server repetitions use five warm runs and the original 300-second idle window. Each task repetition uses the original three alternating cold comparisons and 2400 real writes. Task size labels mean N ordinary notes plus N task notes, as printed by tasks-bench. Host page caches retained. No limits were changed. Values below preserve the report JSON precision. Invite ratios are calculated from the five printed medians; the original medians are quoted verbatim in the second table.Final gate output, verbatim terminal lines:
tasks-balanced-1-10k.logtasks-balanced-1-100k.logtasks-balanced-2-10k.logtasks-balanced-2-100k.logtasks-balanced-3-10k.logtasks-balanced-3-100k.logserver-after-1.logserver-after-2.logserver-after-3.loginvite-balanced-1.loginvite-balanced-2.loginvite-balanced-3.logStarting perf-arm64-2 on branch
perf/arm64-fixes, head5ed9dcc7e3604be3835fd87f7354d3e3f60610bb, original base31c49e8b601ebe11469b9994e769b67184616061. Continuing the existing worktree and draft PR #703. I read the round-one report and comments 66160 and 66164. Round-one final measurements are the before measurements for this continuation; finished controls will be reused. Remaining work is idle wakeups, durable task updates, cold index growth, and equal work for invite failure classes, followed by three final repetitions and workspace checks. Limits stay unchanged. Evidence stays outside Git. No merge or deployment.Invite finding: the previous implementation performed two separate database worker round trips on every failure and prepared the validation SQL afresh. Both stores now run in one read transaction with cached statements. Every invite failure still performs the covering-index lookup, fixed-shape row materialization, constant-time hash comparison and legacy setup lookup. Lifecycle flags do not bypass these operations.
Three candidate timing runs under perf-lock report these medians in nanoseconds:
Round-one ratios were 2.431, 2.411 and 2.467. The unchanged limit is below 2.5. These are candidate results, not the final gates. The measured test also checks identical response bodies. Full authentication tests remain to run after the quota watcher change.
Idle finding: a separate 300-second syscall sample of the round-one binary, after notes.list and search.query reported complete, records 399,828 newfstatat calls, 470 getdents64 calls, four clock_nanosleep calls, 35 futex calls and 12 epoll_pwait calls. This matches four full quota recounts of the roughly 100,000-file Home during the window. The trace also records three fdatasync calls; their source is not determined by the summary. The syscall sample is diagnostic and does not replace the untraced gate runs.
The candidate replaces the quota timer with a native recursive watcher and incremental path refreshes. Tree moves, watcher overflow and watcher errors trigger a complete repair. The watcher ignores access events and temporary files, does not follow symlinks, and is owned by the counter so teardown stops it. The original 60-second repair remains only if native watching cannot be installed. A snapshot after watcher registration covers the startup handoff. Deterministic tests cover outside writes, directory moves between people, and error-triggered repair. Final idle measurements and an after trace are still required.
Task diagnosis after the first candidate: the candidate still fails at 100k, with first-touch p95 100.14028 ms, warm p95 46.507394 ms and cold-index growth 22.24213088507688%. This run is diagnostic, with metadata debug logging enabled, and is not a replacement final gate.
The cold stage trace records roughly 152–157 ms of tasks row insertion work, 80–84 ms of tasks completion, and 104–105 ms of tasks secondary-index creation per fill. The final round-one SQLite file keeps 32,038,912 bytes of checkbox rows, 13,119,488 bytes of linked task lines and 11,956,224 bytes of task rows, plus task indexes. Cold growth therefore includes extra parsed task properties and derived B-tree pages; it cannot be attributed wholly to the disk. A CPU sample of the candidate records 8.200 seconds total sampled CPU, compared with 12.325 seconds in the earlier round-one sample. Allocator wait/wake samples decreased from 2.415 seconds to 0.395 seconds after bounding metadata readers, but the cold ratio still fails.
The directory-only barrier did not establish a gate improvement and has been removed. Every successful atomic note placement renames or exchanges a directory entry, so its directory fsync is required. The next candidate queues file preparation and placement before the blocking pool, limiting competing note-file flushes while primary FULL history commits remain independent. It keeps every file and directory fsync, pending-history barrier, receipt, and save deadline. Cold readers will also feed primary keys in order across batches, so the larger task fill does not repeatedly dirty the same random B-tree pages.
The first notes regression run passed 433 tests and failed one shutdown assertion that checks /proc thread disappearance immediately after join. The assertion and timeout are unchanged; a full rerun is in progress. The release build will proceed only after the suite passes.
The next index candidate brought 100k first-touch p95 to 39.47 ms (limit 40), with warm p95 41.92 ms and cold growth 15.77%, which still fail. Opening a new disk seed now checks the exact file stamp before rewriting its already-current derived fields. Changed stamps still re-describe; a regression verifies both cases. Task field edits retain unchanged inbound-link membership instead of temporarily moving linked boxes into Untracked and back; actual membership changes still update counts. The full notes and tasks suites passed these changes.
Property keys now borrow their note instead of allocating discarded strings, and the lightweight display validator accepts ordinary printable Unicode while deferring line separators, BOMs and forbidden codepoints to the full YAML validator. The 5,000-case parser differential checks passed. The format's writer and full validation rules remain unchanged. Additional duplicate key/date copies and unchanged metadata-index writes have been removed in the current candidate, which is awaiting final gates.
Five cold-only concurrency controls each used the original three alternating plain/task comparisons, stopping their owned benchmark process after the sixth completed cold measurement and before task mutations. At 32, 8, 64, 16 and 4 readers respectively, growth was 10.119683315205297%, 27.49997979980927%, 16.3124703573561%, 13.658557342268086% and 21.048940440563445%. None passes. Sixteen had the lowest combined median fill time, 5.792560394 + 6.583740577 seconds, improving both phases over 64 readers in this control. The diagnostic environment override has been removed; the candidate uses the measured 16-reader setting. These controls are not final gate repetitions.
The first whole-workspace attempt used PROPTEST_CASES=5000 and hit the daily-note generator's existing 1024-rejection cap after 1833 successes. No assertion or rejection cap was changed. The requested workspace run is being repeated with its normal configuration; elevated case counts remain confined to the relevant parser checks. Evidence remains outside Git.
Resuming perf-arm64-2 after the host reboot on branch perf/arm64-fixes-2b, base
5ed9dcc7e3. Reviewing and preserving the round-two uncommitted work file by file. All pre-reboot measurements are void for this job. macOS is now 27.2; both the before revision and candidate will be measured again on this OS, alternating before and after, after VM load stays below 1.0 for five minutes. Limits and harness commands remain unchanged. No merge or deployment.File review complete. The inherited changes retain FULL history commits, note-file and directory fsyncs, receipt barriers and save deadlines. Found an unfinished quota-watcher hot path in crates/fsio/src/usage/watch.rs: removed-directory recognition used state.files.keys().any, scanning the entire cached vault for an event. Replaced it with a directory hash-set lookup, populated during the existing recount and updated along changed-path ancestors. No extra pass over notes on edits. The existing directory-move regression will exercise recognition. Detailed per-file review is saved outside Git; fresh validation and all post-reboot gates are next.
Resuming perf-arm64-2 after two host reboots on branch perf/arm64-fixes-2c, base
5ed9dcc7e3. Preserving the inherited round-2 changes and using the completed file-by-file review in perf-arm64-2b/review.md. All pre-reboot measurements are void as gates. The host is now macOS 27.2 (coordinator supplied); both base and candidate will be rebuilt and measured on this OS, alternating before and after. Measurement starts only after VM load1 remains below 1.0 for 300 seconds under perf-lock; noise and guest load will be recorded. Original limits and durability remain unchanged. No merge or deployment.The inherited round-2 candidate builds and passes the requested code checks after the reboot. Workspace totals: 1181 passed, 20 ignored (unchanged ignored tests). Filesystem suite: 38 passed. Validation output verbatim:
Web typecheck reports 0 errors and 14 existing warnings in 8 files. No limit, harness or test rejection cap changed. perf-lock now holds every build slot; guest load1 is cooling down from compilation and the required 300-second quiet interval has not yet started. All earlier perf numbers remain void.
First post-reboot pair at 10k notes (provisional; repetitions 2 and 3 still pending). Base
5ed9dcc7and candidatec929a719were rebuilt on the macOS 27.2 host. perf-lock held all build slots, and the guest load1 stayed below 1.0 continuously for 300.15 seconds before measurement (final load1 0.07). The candidate passes all five gates in this pair. No limit changed.File tasks-before-1-10k.log
File tasks-after-1-10k.log
First post-reboot server baseline (
5ed9dcc7) reproduces the idle failure under perf-lock. Five warm runs and the original 300-second idle window, macOS 27.2 host. Original relevant output:The candidate run has started. The first 100k candidate task pair improves first-touch p95 from 77.861 to 22.260 ms, but warm p95 is 41.188 ms versus the unchanged 40 ms limit and cold growth is 12.862% versus 10%. Remaining two repetitions and fresh sync controls are still pending; these misses are retained in the report.
First post-reboot 100k server pair: the candidate
c929a719passes every enforced budget with no scenario failures. Idle CPU drops from the rebuilt baseline to zero measured ticks over the original 300-second window. Two more paired repetitions remain. Original relevant output follows verbatim.File server-before-1.log
File server-after-1.log
Second post-reboot pair confirms zero measured idle CPU ticks on the candidate over 300 seconds; all enforced server gates pass and there are no scenario failures. Baseline idle CPU is 0.17666121361198772%. The candidate still misses warm task updates at both sizes and cold growth at 100k. The final paired repetition is running. Relevant original output follows verbatim.
File server-before-2.log
File server-after-2.log
File tasks-after-2-10k.log
File tasks-after-2-100k.log
All three post-reboot task and invite pairs are complete at
c929a719. First-touch updates improve substantially, but the task gates are not all green. Warm updates still exceed 40 ms in five of six candidate size/repetition combinations. At 100k, cold growth exceeds 10% in two of three repetitions, and first-touch exceeds 40 ms in one. All candidate invite timing tests pass, although the third disk-backed ratio remains close to 2.5. Fresh disk/tmpfs and syscall diagnostics are queued after the last server pair; there is no complete host explanation yet. No limits or harness changes.Code inspection found one lifetime issue in the event-driven quota candidate: refresh and moved always added paths to State.changes, but only recount cleared that map. Once native watching removes periodic recounts, repeated creation/deletion of unique names retains tombstones indefinitely. The current
c929a719binaries are still completing their measurements and are unchanged. A small follow-up journals writes only while the recount mutex is held, using try_lock under the state lock so it never waits in the reverse lock order. An idle journal is also cleared after a failed walk. A regression creates and deletes 512 distinct paths without recounting and checks that no files or changed paths remain. Existing write-during-recount and directory-move tests will be retained. The final code will be rebuilt, validated and measured again; current results will not be mislabeled as final-head results. No limits, timers, durability barriers or harness code are changed.Fresh post-reboot diagnostics for the intermediate candidate
c929a719(before the pending quota-journal cleanup). These are traced controls, not replacement gate timings. Atomic note placement still replaces a directory entry, so every note retains its file sync and directory sync. No durability barrier was removed. Both traces cover 2400 updates plus setup and shutdown.The final cold metadata file is 388182016 bytes before and 381452288 bytes after. Checkbox payload rows shrink from 32043008 to 23801856 bytes, plus a new 1818624-byte lookup index. This reduces overflow storage while retaining the same JSON and unique lookup. Task row, tag and linked-line indexes remain extra work over the plain fill.
The sampled indexed fill reports 10.220 total CPU seconds, including 1.785 seconds in sqlite3VdbeExec and 0.450 seconds in TasksDescriber::describe. A large libc sample remains unresolved and is not attributed to a specific lock. The disk/tmpfs controls are still pending. Storage does not yet completely explain the remaining cold-growth misses. Selected original CPU output:
Post-reboot controls at intermediate
c929a719, all under perf-lock. Baseline idle strace records 401422 total syscalls; candidate records 415, with no repeated full quota walks. The candidate trace includes startup/shutdown housekeeping (including three fdatasync calls); the untraced gate waits for rooms to close and records zero idle CPU ticks in all three candidate repetitions.The unchanged 4 KiB pwrite+fdatasync control has disk p95 7.630203, 7.581619 and 9.278586 ms versus tmpfs p95 0.002083, 0.002084 and 0.002042 ms (200 measured samples per run after 20 warmups).
Keeping physical note files and moving only application state to tmpfs passes every first-touch and warm update assertion, with the same FULL history durability. This isolates a large storage contribution to task latency, but does not explain every cold-index miss. These are diagnostic controls, not replacement gate runs.
Idle before, original strace summary:
Idle after, original strace summary:
Validation was briefly blocked by a runner error: I edited the queued shell wrapper while it was starting, causing
syntax error near unexpected token fiafter formatting and the filesystem tests. I replaced it with a fresh script, checked it with bash -n, and restarted all requested validation under one build slot. The product diff is still only the quota-journal cleanup and its regression. The zlib prototype measured 18878258 raw JSON bytes to 12980329 stored bytes at 0.197564 CPU seconds, but no compression format or dependency was added because there is no measured gate improvement. Final measurements will use the validated committed binary after another 300-second quiet check.Final candidate committed as
f1d6bb1289. The quota-journal cleanup passes all 39 filesystem tests, including the 512-path retention regression and existing recount races. Whole-workspace totals: 1182 passed, 20 unchanged ignored. All validation passed. Original summary output:The final measurement runner has started under perf-lock. It checks a clean committed tree and completed validation, waits for another continuous 300-second load1<1.0 interval, then alternates rebuilt base
5ed9dcc7and final candidate at each size for three complete repetitions. The earlierc929a719set and traced controls remain intermediate evidence. No compression code, budget changes, merge or deployment.Final-head finding at
f1d6bb1289: the first disk-backed invite timing repetition FAILS. Ratio 2.602183299389002 exceeds the unchanged <2.5 limit. The first final 100k task pair also still misses updates and cold growth. All failures are retained.The full setup_start path was inspected: invalid classes each enter setup::check, perform the covering invite lookup plus constant-time comparison and legacy setup lookup in one read transaction, then return the same error. There is no extra name check or target bucket on these failures. The timing fixture in security_regressions.rs updates the row through a separate SQLite connection before expired/revoked/used requests; wrong/malformed requests follow without that write. Cache invalidation is a possible contributor, not an established explanation. A separate before/after tmpfs timing control is queued after the complete disk-backed gates, alongside a settled idle trace on the final binary. The original timing fixture, limits and commands remain unchanged.
Original output:
First final-head server pair at
f1d6bb1289: idle CPU passes with zero ticks over 300 seconds, but the complete server gate FAILS on open.long_note. No scenario failures were reported. Both remaining repetitions will run unchanged; the long-note miss will not be omitted. Original relevant output follows verbatim.File server-before-1.log
File server-after-1.log
Final-head task and invite results are complete at
f1d6bb1289. Resolution remains blocked by failed budgets. At 10k, first-touch updates pass all three candidate runs; warm updates fail all three and cold growth fails one. At 100k, both update classes and cold growth fail all three. The final cold-growth ratio regresses relative to the re-measured base in all three 100k pairs; no successful cold-index fix is claimed. The absolute fill times are included below so the faster plain denominator and task-fill variation remain visible. Invite timing fails two of three disk-backed runs. The last server pair and additional controls remain running. No limits or harness code changed.Final candidate update p95, original output:
File tasks-after-1-10k.log
File tasks-after-1-100k.log
File tasks-after-2-10k.log
File tasks-after-2-100k.log
File tasks-after-3-10k.log
File tasks-after-3-100k.log
Long-note regression is confirmed on the server, with a short separate cross-check under perf-lock. These quick controls are diagnostics, not replacement gates. The same baseline harness opens a 50000-word note in 13.997860 ms on the base server and 240.735757 ms on the candidate. With the candidate harness, the base server takes 25.626416 ms and the candidate 235.492152 ms. The final full-gate medians also regress, not just the worst run: base medians 12.20–19.31 ms versus candidate 214.28–239.43 ms. This blocks claiming completion.
The root branch remains
f1d6bb1289. An isolated detached worktree at /home/agent/wt/perf-arm64-2c-probe is building a diagnostic variant with short-lived store readers restored and stage timings for large room loads. No probe code or artifacts are committed. The measured final branch is unchanged while the cause is isolated.Follow-up fix committed as
21180d0b2a. The long-note probe isolated the delay to metadata commit: 206917 microseconds after backlink rewrites. Comparing the actual stored backlink multiset and retaining identical rows reduces that commit to 544 microseconds; the same baseline harness opens the 50000-word note in 21.487856 ms with the fix, versus 240.735757 ms onf1d6bb12. This is diagnostic evidence; the full original gates are now restarting on the new head.The comparison preserves duplicate counts, detects changed targets/lines and malformed derived values, and uses the source index. It falls back to the original replacement path while that index is dropped during a fresh fill. It does not use file timestamps as proof of equality. Primary history, receipt barriers and file/directory syncs are unchanged. Three deterministic regressions cover no writes for identical multisets (including reordered duplicates), changed/corrupt row replacement and missing-index fill behavior.
Workspace: 1185 passed, 20 unchanged ignored. Validation output:
Cold controls at 16/32/64 readers and with batching disabled did not establish a reliable ≤10% growth fix. The warmed 16-reader repeat had the fastest absolute plain/task medians but still 16.410951261667893% growth; existing 16 readers and batching are retained. No limit or harness changes.
f1d6bb12full results remain archived as an intermediate failed candidate; the new complete alternating before/after set uses21180d0b.Final-head measurements, repetition 1, head
21180d0b2a. Both binaries rebuilt on macOS 27.2; alternating before/after after 300.22 seconds continuously below load1 1.0 under perf-lock. No limits changed.The candidate passes both cold-growth gates in this repetition, but misses the warm update limit at both sizes and first-touch at 100k. List, counts and describe pass throughout. Both invite timing tests passed. Server gates are running; these are partial results, not a completed gate set. Prior disk/tmpfs controls remain documented in this issue; durability barriers have not been weakened. Full verbatim outputs will follow with all three repetitions.
Final-head server gates, repetition 1, head
21180d0b2a. Alternating rebuilt before/after binaries on macOS 27.2, original 100k fixture, five warm runs and 300-second idle windows under perf-lock.The candidate server gate exits0; the baseline exits1 for idle CPU only. The unchanged-backlink fix brings long-note open back under its budget in the complete gate, following the isolated commit/checkpoint trace. Task update misses remain as reported in comment66281. Two more complete alternating repetitions are running. Full outputs, including noise, will be posted when the set completes.
Verbatim baseline gate output:
Final-head task and invite gates, repetition 2. Head
21180d0b2a; alternating rebuilt before/after on macOS 27.2 under perf-lock. Limits unchanged.Invite median max/min ratios: before 2.02151972282597; after 2.119139511243709; limit <2.5. Both tests pass. Candidate list/counts/describe pass at both sizes. Warm update p95 still misses; the remaining repetitions are required before assessment. The second server pair has started. Full verbatim outputs follow after the complete set.
Acceptance is still blocked by the unchanged task update and cold-index limits. At final head
21180d0b, the first two candidate warm update p95 values are 48.15/43.16ms at 10k and 46.10/43.99ms at 100k, against 40ms. Candidate 100k cold growth is 7.97% then 11.45%, against 10%; one pass is not acceptance. Exact measurements are in comments 66281 and 66314.The disk/tmpfs controls in comment 66245 isolate a substantial state-storage cost: moving only application state to tmpfs passes all six first-touch and warm control runs while keeping physical note files and primary FULL durability. These controls do not replace the disk gates and do not explain every cold miss. File and directory syncs remain because atomic note replacement and history recovery require the current barriers. No limit or durability guarantee will be loosened to turn these failures green.
The final three-pair measurement set is continuing unchanged. The new PR will remain draft with every remaining miss recorded. The first candidate server gate passed; it does not remove the task blockers.
Final-head server gates, repetition 2, head
21180d0b2a. Same alternating before/after protocol on macOS 27.2, perf-lock, five warm runs and 300-second idle windows.Candidate server exit 0; baseline exit 1 for idle CPU only. Both completed candidate server gates pass all gated budgets. The third complete task/invite/server repetition has started. Task acceptance blockers in comment 66319 remain. Full verbatim outputs including noise follow after the complete set.
Verbatim baseline gate output:
Final-head task and invite gates, repetition 3. Head
21180d0b2a; alternating rebuilt before/after on macOS 27.2 under perf-lock. Limits unchanged.Invite median max/min ratios: before 2.4229784584892355; after 2.1583686822923767; limit <2.5. Both tests pass. All six invite gate tests pass across the three before/after pairs; the candidate remains around 2.1–2.2 rather than near 1. All six candidate task gates fail because warm p95 exceeds 40ms. List/counts/describe pass throughout. The complete server pair 3 has started. Full verbatim outputs and final tables follow after it completes.
Cold indexing remains unresolved at final head
21180d0b. At 100k, the before plain/task medians in ms are 5947.162162/6697.851854,5978.891019/6799.888103,6449.533610/6981.198403. Candidate plain/task medians are 5937.225685/6410.183681,6204.413850/6915.038645,5901.724779/7215.556644. Candidate growth 7.97%,11.45%,22.26% passes only one of three; run 3 regresses against its paired baseline 8.24%. The ratio reflects variation in both plain and task time; it cannot be called fixed or explained entirely by disk latency.The earlier measured storage change saves about 6.4 MiB in the indexed fixture (388182016 to 381452288 bytes), chiefly by replacing the wide checkbox primary key with rowid storage and a narrow lookup index. CPU profiling still attributes substantial time to SQLite execution while task plugin B-trees are populated. Reader/batching controls did not establish a consistent passing setting: 16 readers with fresh batching was the fastest warmed task control; 32/64 readers did not improve it reliably. These are labeled diagnostics, not acceptance runs. No cold budget, fixture or harness has been changed. The draft must retain this blocker.
Task gate evidence, repetition 1
Head:
21180d0b2a82b8003cb1f1ee117a0a300ba5edaa. Original output follows verbatim.File:
tasks-before-1-10k.logFile:
tasks-after-1-10k.logFile:
tasks-before-1-100k.logFile:
tasks-after-1-100k.logTask gate evidence, repetition 2
Head:
21180d0b2a82b8003cb1f1ee117a0a300ba5edaa. Original output follows verbatim.File:
tasks-before-2-10k.logFile:
tasks-after-2-10k.logFile:
tasks-before-2-100k.logFile:
tasks-after-2-100k.logTask gate evidence, repetition 3
Head:
21180d0b2a82b8003cb1f1ee117a0a300ba5edaa. Original output follows verbatim.File:
tasks-before-3-10k.logFile:
tasks-after-3-10k.logFile:
tasks-before-3-100k.logFile:
tasks-after-3-100k.logServer gate evidence, repetition 1
Head:
21180d0b2a82b8003cb1f1ee117a0a300ba5edaa. Original output follows verbatim.File:
server-before-1.logFile:
server-after-1.logServer gate evidence, repetition 2
Head:
21180d0b2a82b8003cb1f1ee117a0a300ba5edaa. Original output follows verbatim.File:
server-before-2.logFile:
server-after-2.logServer gate evidence, repetition 3
Head:
21180d0b2a82b8003cb1f1ee117a0a300ba5edaa. Original output follows verbatim.File:
server-before-3.logFile:
server-after-3.logInvite gate evidence
Head:
21180d0b2a82b8003cb1f1ee117a0a300ba5edaa. Original output follows verbatim.File:
invite-before-1.logFile:
invite-after-1.logFile:
invite-before-2.logFile:
invite-after-2.logFile:
invite-before-3.logFile:
invite-after-3.logCode validation
Head:
21180d0b2a82b8003cb1f1ee117a0a300ba5edaa. Original output follows verbatim.File:
validation-console.logFile:
fsio-tests.logFile:
parser-tests.logJob perf-arm64-2c finished measuring and publishing. Performance acceptance is blocked; this is not a passing performance result.
Branch:
perf/arm64-fixes-2c. Pushed and verified head:21180d0b2a82b8003cb1f1ee117a0a300ba5edaa. New draft PR: #710. Base:issue/perf-moveat31c49e8b601ebe11469b9994e769b67184616061. Supersedes draft #703, which remains untouched. No merge or deployment.Performance acceptance remains blocked. At head
21180d0b2a82b8003cb1f1ee117a0a300ba5edaa, candidate warm task update p95 is 48.152, 43.162, 42.290 ms at 10k and 46.100, 43.995, 46.104 ms at 100k; all six exceed the unchanged 40 ms limit. First-touch at 10k is 24.177, 15.132, 22.687 ms and passes all three; at 100k it is 40.909, 39.967, 32.814 ms, with one miss. Cold growth is 6.079, 7.862, 8.566% at 10k and 7.966, 11.454, 22.262% at 100k. The 100k cold gate fails two of three repetitions and regresses in the third paired comparison. It is unresolved.Candidate idle CPU is 0.000, 0.000, 0.000% across the three original 300-second windows. Long-note open p95 is 20.571, 20.747, 24.110 ms after preserving identical backlinks. Candidate invite max/min median ratios are 2.245, 2.119, 2.158, all below 2.5, but still above the near-1 goal. Application validation operations are equalized; the disk timing difference is not claimed eliminated.
Code validation passed: 1,185 workspace tests, 20 ignored; clippy for the workspace and all targets with warnings denied; fmt; editor and web checks; 5,000 parser cases; 39 targeted fsio tests. The web check has 14 existing warnings.
The disk/tmpfs controls isolate substantial state-storage cost without weakening primary FULL durability or file/directory barriers. They do not replace the disk gates or explain every cold miss. Measured control heads are labeled in comments 66244, 66245 and 66375. The settled native-watcher trace at
f1d6bb12records five syscalls in 300 seconds, without recurring vault scans. No limits changed. No evidence or diagnostic code is committed. No merge, deployment, main/dev push or issue closure.Head:
21180d0b2a82b8003cb1f1ee117a0a300ba5edaa. Re-measured base:5ed9dcc7e3604be3835fd87f7354d3e3f60610bb. Host is now macOS 27.2 (coordinator supplied), Linux OrbStack guest. All pre-reboot measurements are void. Both binaries were rebuilt and measured on the new OS, alternating before and after for each size and repetition. perf-lock held all three build slots. Before measurement, load1 remained below 1.0 continuously for 300.22 seconds, ending at 0.0. Original commands, fixture, budgets, 300-second idle window, five server warm runs, and three alternating task cold comparisons are unchanged. Host page caches retained. No limits changed. No artifacts committed. No merge or deployment.Full original outputs, including all samples and noise:
Verbatim command exits:
Verbatim task gate lines:
tasks-before-1-10ktasks-after-1-10ktasks-before-1-100ktasks-after-1-100ktasks-before-2-10ktasks-after-2-10ktasks-before-2-100ktasks-after-2-100ktasks-before-3-10ktasks-after-3-10ktasks-before-3-100ktasks-after-3-100kVerbatim server budget failures:
server-before-1server-before-2server-before-3Verbatim code validation output:
Starting perf-arm64-3, round 3 of #686. New branch: perf/arm64-fixes-3. Base and starting head:
21180d0b2a, continuing draft #710. I read the prior result report and comment 66391. First I will measure five unchanged-base repetitions for noise, trace the durable history commit and note barriers, and inspect index storage. Then I will run three repetitions before and after and the workspace, crash/recovery, clippy and type checks. All limits and durability guarantees stay unchanged. Evidence will remain outside the repository and be posted here. No merge or deployment.Initial source and inherited-trace finding, before fresh measurements: the 22.861 ms history WAL p95 in round 2c is the duration of individual fdatasync calls, not a count of three sync calls inside each ordinary commit. That trace has 2,541 history WAL syncs and 26 history database checkpoint syncs for 2,400 updates plus setup/shutdown. The bundled SQLite full_fsync implementation uses fdatasync on this Linux guest; F_FULLFSYNC is an Apple compile-time path. History remains synchronous=FULL. I am measuring append/allocation and concurrent note-write controls before changing anything.
The existing save already queues the pending-history record before preparing the temporary note and waits for both before placement (crates/notes/src/room/save.rs). Atomic exchange then checks the replaced inode to preserve racing outside writes (crates/fsio/src/swap.rs). The directory barrier and pending-before-placement order cannot simply be removed. The fresh five unchanged-base repetitions are now waiting through the same five-minute quiet period as the prior gates.
Primary SQLite reference: https://sqlite.org/wal.html. Fresh controls and exact settings will follow; this is not a passing result.
Five unchanged-base repetitions are complete on
21180d0b2a. The immutable tasks-bench binary hash is 346cc56b07fc53977890ec7735326fb3467977b1a45b5a989e50630d403beaf7, verified against the prior final manifest. Each repetition used the original 100k fixture and command with --runs 3, under perf-lock, after load1 stayed below 1.0 for 300.190 seconds. Host caches were retained, as before. No source changes were made for these runs.Limits remain 10 percent growth and 40 ms updates. All five warm gates fail; four of five growth gates fail. The spread crosses the growth limit on unchanged code, so one passing repetition cannot establish a fix. The guest filesystem is Btrfs mounted with nodatacow and nodatasum on the VM disk. The task harness registers Notes and Tasks only: it does not register the search plugin, so Tantivy/FTS segments are not part of this cold-fill comparison.
Original cold samples and gate output:
Run 1
Run 2
Run 3
Run 4
Run 5
Resource wait: the five unchanged-base measurements are complete and published in comment 66400. The throwaway probe rebuild is now queued behind another job holding perf-lock on this shared host. An initial probe-only compile error from a shadowed drop function was corrected before any diagnostic measurement; the product branch is still unchanged. I am leaving the other job and its processes alone and will resume controls once the lock is released.
Three fresh storage-control repetitions are complete under perf-lock on the disk-backed job directory. These controls use system SQLite 3.46.1, so they isolate storage behavior rather than replace measurements of the bundled application. All SQL controls retain synchronous=FULL (2), 4096-byte pages and journal_size_limit=-1. Fullfsync and checkpoint_fullfsync are both 0. The no-auto control alone sets wal_autocheckpoint=0; ordinary controls use 1000. Each SQL control samples 580 of 600 real commits after 20 warmups. Raw controls sample 180 of 200 write-plus-fdatasync operations.
A FULL WAL commit alone is close to one raw disk flush here, not inherently three. Turning off checkpoints or reserving 16 MiB of WAL blocks does not consistently improve p95, so neither change is justified for the product. With-note controls measure total time until both the commit and an atomic note replacement with file and directory fsync have completed. Issuing those operations concurrently is not consistently faster on this shared backing device. The real save already overlaps temporary-file preparation with the pending-history commit and retains pending-before-placement ordering.
I will preserve the current FULL mode and every file/directory barrier. The real-task sync traces and cold storage/cache snapshots are next. These controls are not passing gates and do not prove that all warm-update latency has been explained.
Fresh cold-fill storage finding, measured at the list-complete point before shutdown with the base code and 32 MiB temporary cache. This is an instrumented control, not a replacement gate. All six alternating fills have freelist_count=0. Plain fills use about 74,453–74,485 pages; task fills use 93,125–93,159 pages, all 4 KiB. This is a stable extra roughly 73 MiB of live derived data, not a growing freelist. WAL sizes at measurement are about 327 MiB plain and 402 MiB with tasks.
The first plain fill records 83,346 page writes and 27,713 cache spills; the first task fill records 102,388 page writes and 33,728 spills. The measured plugin row-storage stage adds about 113 ms, after-fill work about 81 ms, and task secondary indexes about 110 ms. Total cold time grows by more than those stages alone, so final checkpoint/I/O and reader work still need separation. Larger cache and ordered input are under test; no cache change has been selected. Source snapshots and counters are held outside Git. No search plugin is registered in this harness.
Fresh real-task tracing control: serialize fsync calls while retaining every call and return/error. This is an external preload experiment against the unchanged base binary, not a product change or acceptance gate. Both traces use the original 10k fixture and 2,400 real field updates, with one alternating cold pair.
The normal control observes up to 15 fsync calls in flight; serialized observes one. Both retain a file barrier and a directory barrier for each atomic placement. The slight placement-count difference is ordinary timed-save coalescing; the interposer skips no calls. History WAL syncs are not serialized by the control and still use FULL commits. Checkpoint counts are low and similar. Serializing file barriers reduces the WAL syscall p95 as well, consistent with storage contention rather than SQLite issuing three syncs for every commit.
This is one traced pair, so it does not establish a passing fix. I am testing a small fsio policy that bounds file barriers per backing device, leaves different devices independent, and keeps all existing durability/order checks. The existing crash/recovery matrices and three untraced before/after repetitions must still pass.
Three repetitions of each cache/order control are complete, using the same original 100k fixture and three alternating plain/task cold pairs per repetition. These instrumented controls use base product behavior; only cache size or fresh input ordering is varied. They are not acceptance gates.
None establishes a reliable pass at the unchanged 10 percent limit. I am rejecting these cache/order changes for the product rather than selecting a favorable ratio. The next control changes only new derived SQLite page sizes and records the final checkpoint duration, to test the cost of the extra live task pages without touching primary history durability. The fsio concurrency test failed as intended before the policy was implemented: 11 operations overlapped where the assertion requires one.
Resource wait update: the base/noise, storage, sync and three-repetition cache/order controls are complete and published. The fsio test-first failure and implementation review are complete; no durability barrier or limit has changed. The green fsio suite and page-size probe build have been queued for more than six minutes while another shared-host performance window owns perf-lock. I am leaving its processes untouched. Final acceptance remains pending, and I will continue when the lock becomes available.
The page-size controls are complete, with three repetitions per size and three alternating plain/task cold fills inside each repetition. The probe changes only new derived metadata cache pages; primary history settings and all barriers are unchanged. These are instrumented controls, not replacement gates.
No tested page size passes the unchanged 10 percent growth limit in all three repetitions. Some wider pages reduce absolute indexed time, but the ratios remain inconsistent. I am leaving the product page size unchanged. Final checkpoint work remains substantial and increases with the stable extra task pages. The next isolated control uses FULL-durability rollback journaling during a fresh cache fill, then restores ordinary WAL behavior; it does not change history durability or any budget.
The final fresh-cache journal controls are complete. They compare the unchanged metadata WAL/NORMAL fill against TRUNCATE/FULL and PERSIST/FULL during the fill, restoring WAL/NORMAL before completion. History stays FULL WAL throughout. Page size, cache size, journal-size limit and original fixture remain unchanged. Each row below is a repetition containing three alternating plain/task fills.
Both rollback-journal controls make absolute task indexing slower. They are rejected; no journal, page-size, cache-size or ordering experiment is being committed.
Cold-growth acceptance remains blocked. Five unchanged-base runs proved large run-to-run spread, and table/WAL snapshots show stable extra live task storage rather than a freelist leak. None of the measured safe cache controls establishes a reliable improvement meeting 10 percent. This is unresolved, not a passing result and not a reason to relax the limit.
The final product candidate contains only bounded full file/directory sync admission per identified Unix filesystem device. Its 43 fsio tests pass, and independent review found no blocking correctness issue after the portability/error-path corrections. Workspace, crash/recovery, clippy and type checks are now running. I will finish all original before/after gates three times and publish the new draft and actual outcome, including failures.
Validated fsio candidate committed as
795b4ad20con perf/arm64-fixes-3. The product change bounds concurrent full file and directory sync requests per identified Unix filesystem device. Every original sync and error result is retained; atomic exchange and pending-history-before-placement ordering stay intact. Non-Unix behavior is unchanged. No history setting or budget changed.Workspace validation: 1,189 passed, zero failed, 20 ignored. All 43 fsio tests pass. The existing real-process crash/recovery tests pass, including mid-save, after save reply, acknowledged typing during split HDD saves, concurrent typing, long-note append, rename/import/delete/restore and disk-full recovery. The ignored slow-disk measurements and unrelated release stress tests remain explicitly labeled as ignored, not claimed run. Independent review found no remaining blocking issue.
Verbatim validation output:
Selected verbatim crash/recovery output:
Performance acceptance is still pending. One isolated lossless-checkbox codec probe is testing the identified stored payload; it has not been copied into the product. Original before/after gates will still run three times at the final committed head, and the new PR will remain a draft if any limit fails.
The isolated checkbox codec control is complete. It losslessly compresses only derived checkbox JSON when the representation is smaller, with a single format-owner module and legacy TEXT reads. All existing task tests plus five codec tests passed in the probe. No codec/dependency/schema change was copied into the product.
The compressed rows reduce the checkbox table from about 23.8 MB to 14.8 MB, but do not establish a three-repetition pass at 10 percent. This control is rejected for the current candidate. The production task format, dependencies, SQLite configuration and budgets remain unchanged.
The final measured candidate is the fully validated fsio change at
795b4ad20c. The original before/after gates are now queued/running under perf-lock, including another continuous five-minute quiet period. Cold-growth acceptance remains unresolved; it will be reported from the actual final runs without selecting favorable samples.The first untraced 100k pair rejects candidate
795b4ad20c. Warm update p95 is 43.200 ms before and 49.063 ms after; first-touch is 33.492 before and 57.858 after. Both candidate update values exceed 40 ms and regress. Cold growth is 5.767 percent before and 13.718 after, exceeding 10 percent after. The 10k pair passes all gates (warm24.665 before,29.976 after). Invite timing failed before and passed after. This is not a passing fix.I stopped this unfinished sweep during server-before-1, using only explicitly recorded owned PIDs and preserving all output under attempt-795 outside Git. No other job was signaled. The partial server measurement is not claimed complete. The full three-repetition sweep will run again only at the final refined head. No PR has been opened and no branch has been pushed yet.
The isolated file-sync-only serialization was insufficient at100k. The next control schedules latency-sensitive history WAL commits ahead of queued file syncs, while still executing every call and preserving save ordering. No limit or durability setting is changing.
Completed task gate output for the rejected candidate:
tasks-before-1-10k
tasks-after-1-10k
tasks-before-1-100k
tasks-after-1-100k
The full 100k control rejects sync-call priority as a sufficient fix. Every original fsync/fdatasync still executes. Three repetitions alternate normal and priority order under perf-lock. All six fail the 40 ms warm limit.
Next diagnostic admits bounded temporary-file create/write/sync alongside history COMMIT. It does not admit application callbacks or BEGIN IMMEDIATE, and changes no SQLite durability setting. Product acceptance remains blocked; no branch has been pushed. Raw logs are priority-control-*-100k.log in the job directory.
The broader device-admission prototype is rejected after three full 100k pairs under perf-lock. It admits bounded temp-file creation/write/full-sync and history COMMIT on the same device, leaving callbacks and BEGIN IMMEDIATE outside. Every original barrier, FULL setting and recovery ordering remains. All six runs fail warm update; admission supplies no repeatable improvement.
The isolated prototype passes 43 file-I/O and 441 notes tests (6 ignored), but correctness tests do not establish a performance fix. It is not ported. The earlier sync-only product change
795b4ad2is reverted ata65f2605, so the product tree again matches starting21180d0b. Neither scheduling change will be published as a fix.The next isolated experiment removes temporary owned checkbox text before JSON serialization, preserving exact JSON and parser rules. An application-level no-autocheckpoint diagnostic keeps FULL and records WAL size/shutdown work. Acceptance remains blocked.
Application controls are complete: three rotating repetitions of unchanged base, borrowed checkbox serialization, and borrowed serialization with history autocheckpoint disabled. All commands use original 100k --runs3 and perf-lock. FULL stays 2, pages 4096, fullfsync 0, checkpoint_fullfsync 0.
Every command still fails task update and cold growth. Disabling autocheckpoint improves warm p95 in this application control, but not all three warm repetitions pass, every first-touch repetition fails, and it leaves about 103 to 104 MB of history WAL. Normal WAL is about 4 MB. The failing harness exits before all reader connections drop, so writer close timing does not count the final checkpoint. Deferred checkpoint work will be measured separately under perf-lock. This unbounded configuration is rejected for product use.
Borrowed serialization is committed locally at
e837280e03, with 41 task tests passing. It removes redundant text copies with unchanged JSON and parser rules, but these controls do not establish a budget fix. Full validation is running before the final gate set. Remaining diagnostics test one overlapping fresh-cache checkpoint and coalesced pending directory barriers; both retain the original final durability boundary. No budgets or durability barriers have been weakened. No branch has been pushed.The bounded early-cache-checkpoint experiment is rejected as a cold-growth fix. Three alternating pairs use the original cold path with three fills per case, stopping before unrelated warm work. A single independent PASSIVE checkpoint starts halfway through a fresh fill; it is joined before unchanged end_fresh, which still performs its final checkpoint. Two deterministic progress/error tests pass. These are diagnostic measurements, not acceptance gates.
Some absolute times improve, but growth still exceeds 10 percent. No cache-checkpoint change is ported.
Deferred history checkpoint controls also completed under perf-lock. With autocheckpoint disabled, 103 to 104 MB WAL files checkpoint and close in 44.6 to 66.1 ms; normal roughly 4.2 MB WAL files take 14.6 to 31.3 ms. Final history databases are about 1.95 MB. This shows many repeated WAL page versions and accounts for deferred work, but does not justify an unbounded product configuration. System SQLite 3.46.1 performs this post-run control; the application uses bundled SQLite.
Product
e837280e03has now passed the full workspace: 1188 passed, 0 failed, 20 ignored; crash/recovery matrices pass. Clippy with warnings denied, formatting, editor/web checks, and 5000 parser cases all exit 0. Final performance gates remain pending. No branch has been pushed.Directory barrier coalescing is rejected as a sufficient warm-update fix after three full pairs under perf-lock. The controlled C interposer groups only same-inode directory requests that arrived before the shared fsync starts. File syncs and every history sync are unchanged. The deterministic boundary/error self-test passes.
Every warm result remains above 40 ms. Coalescing removes about 15 percent of directory calls but supplies no budget pass. No directory coalescer is ported to product. Its per-descriptor writeback-error semantics would require further design even if timing were useful; the benchmark reports no errors.
One last measured hypothesis is queued: begin bounded background history PASSIVE checkpoints before the current threshold, while preserving the exact configured threshold fallback and FULL commit syncs. The original bundled SQLite callback ignores every checkpoint return code; the diagnostic preserves that behavior. It does not use the rejected unbounded no-autocheckpoint configuration. Final gates follow this comparison. No branch pushed.
The early history checkpoint control has a concrete scheduling defect. Its first enabled run measures warm p95 38.23 ms versus 45.07 ms normal, but first touch still fails at 43.00 ms. It performs 446 background checkpoint attempts plus 261 threshold fallbacks, reaches 1,509 WAL frames and retains 6.22 MB of WAL versus 4.17 MB normal. The second enabled warm run is 40.99 ms and also fails. This version is not a product fix.
The original threshold remains 1,000 and FULL is unchanged, but repeatedly hinting above 900 creates extra checkpoint contention. I am revising the diagnostic to send only one early hint when the WAL crosses 900, never at or above 1,000, and rearm only after the WAL frame counter rewinds. The original configured-threshold fallback remains unchanged. Current version one repetitions will finish against their immutable binary; version two gets a separate binary and artifact names. No limit will be changed and no durability barrier removed.
All three version one pairs are complete. Version one is rejected.
The one-hint history checkpoint revision is rejected after all three full pairs under perf-lock. It fixes version one's excess scheduling: one hint on crossing 900, no hints at/above the unchanged 1,000 fallback, rearmed only after WAL rewind. FULL and every file/directory barrier remain unchanged. Ten focused and 451 enabled notes tests pass, 6 ignored.
WAL returns to normal size, but the third latency pair regresses and no enabled warm run meets 40 ms. This is not ported. The prepared production checkout is also left unmerged. No filesystem or history scheduling change remains in the product diff.
Performance acceptance is blocked. The final head is
e837280e03: only borrowed checkbox serialization relative to starting21180d0b. It preserves exact JSON/parser rules and removes temporary text allocations. Full code validation passed 1188 tests, 0 failed, 20 ignored; crash/recovery matrices, clippy, formatting, editor/web checks and 5000 parser cases all pass. This does not establish a performance fix.The complete original 24-command gate sweep is now running under perf-lock, including fresh before/after x3 at 10k/100k, invite timing and server gates. It will finish every repetition even if the first task gate fails. No limit is changed; no durability barrier is removed. No branch pushed, merge or deployment.
Final gate sweep, first task repetition. Head
e837280e03; before21180d0b. These are the original commands and unchanged budgets under perf-lock, after the original 300-second quiet requirement passed.Both invite timing commands pass. Server before run one is now active. Performance acceptance remains blocked; every remaining repetition will still run. This head includes no synchronization or SQLite tuning change, and no artifact is committed.
Resuming round 3 as perf-arm64-3b on perf/arm64-fixes-3, head
e837280e03; base21180d0b2a(PR target issue/perf-move31c49e8b60). All recorded owned PIDs are gone; no stale owned process holds a slot or perf lock. Disk exhaustion interrupted tasks-before-2-100k; ten completed gate exits survive, including both first server gates passing. I will retain completed results, remove only this job’s fixture directories, resume the remaining original commands with immediate fixture cleanup, and publish a new draft superseding #710. Candidate code validation already passed. No limits or durability settings change.Round 3b recovery finding. Removed 111 old fixture directories; no recorded owned process was still running. Metadata mkdir probe succeeds and evidence job directory remains about 540 entries. Ten complete gate exits were retained; the interrupted eleventh was rerun after a fresh 300-second quiet period under perf-lock. Scratch fixtures use the original paths via same-filesystem symlinks and are deleted after each result. Commands, binaries, limits and durability are unchanged.
Repetition two task results:
Both first server gates passed, including the after result that survived beyond the prior saved resume note. Both repetition-two invite gates pass. Fourteen of 24 commands complete. Performance acceptance remains blocked by cold growth and the first 100k warm result; all remaining commands will finish. Candidate head
e837280e03; code validation remains 1188 passed, zero failed, 20 ignored, with all six code check exits zero.Second before-server gate completed: exit 0, all hard budgets pass. Selected p95: idle.cpu_pct=0.0, idle.rss=69.7265625, open.api_get=17.735579, sync.save_ack=18.110793. Original 100k / five warm runs / cold-runs 0 command under perf-lock. Fixture deleted immediately after result; evidence job entries 548. Second after-server command is running. Fifteen of 24 commands complete; full raw output and before/after table follow at finish. Head
e837280e03.Second after-server gate completed: exit 0, all hard budgets pass. Selected p95: idle.cpu_pct=0.0, idle.rss=57.16796875, open.api_get=14.997861, sync.save_ack=14.339068. Both second server gates pass under the original commands. Fixture deleted after recording results; job directory 558 entries. Sixteen of 24 commands complete; third repetition started. Performance acceptance remains blocked by task/cold gates already reported. Head
e837280e03.All original task and invite gates are now complete, under perf-lock. Twenty-two of 24 commands complete; final server pair running. Performance acceptance is blocked. Head
e837280e03.After warm 100k p95 is 43.918 / 29.091 / 42.332 ms versus 40 ms; after cold growth remains above 10 percent in all three. The first-touch values pass for after 100k. All list/count/describe gates pass. All six invite commands pass. Every completed fixture was deleted, with the evidence directory below 600 entries. No durability or limit change. Full verbatim logs will be posted with the completed server pair.
Third before-server gate completed: exit 0, all hard budgets pass. Selected p95: idle.cpu_pct=0.0, idle.rss=59.22265625, open.api_get=14.307611, sync.save_ack=14.321454000000001. Fixture deleted; job entries 581. Twenty-three of 24 original commands complete; final after-server gate started. No limits/durability changed. Head
e837280e03. Disk cleanup occurred between repetitions after the prior interruption, so the latency spread is not proof of a code effect. Performance acceptance remains blocked on recorded task/cold failures.Task gate evidence, repetition 1
Head:
e837280e03fa2763121639222efee8c575494d17. Original output follows verbatim.File:
tasks-before-1-10k.logFile:
tasks-after-1-10k.logFile:
tasks-before-1-100k.logFile:
tasks-after-1-100k.logTask gate evidence, repetition 2
Head:
e837280e03fa2763121639222efee8c575494d17. Original output follows verbatim.File:
tasks-before-2-10k.logFile:
tasks-after-2-10k.logFile:
tasks-before-2-100k.logFile:
tasks-after-2-100k.logTask gate evidence, repetition 3
Head:
e837280e03fa2763121639222efee8c575494d17. Original output follows verbatim.File:
tasks-before-3-10k.logFile:
tasks-after-3-10k.logFile:
tasks-before-3-100k.logFile:
tasks-after-3-100k.logServer gate evidence, repetition 1
Head:
e837280e03fa2763121639222efee8c575494d17. Original output follows verbatim.File:
server-before-1.logFile:
server-after-1.logServer gate evidence, repetition 2
Head:
e837280e03fa2763121639222efee8c575494d17. Original output follows verbatim.File:
server-before-2.logFile:
server-after-2.logServer gate evidence, repetition 3
Head:
e837280e03fa2763121639222efee8c575494d17. Original output follows verbatim.File:
server-before-3.logFile:
server-after-3.logInvite gate evidence
Head:
e837280e03fa2763121639222efee8c575494d17. Original output follows verbatim.File:
invite-before-1.logFile:
invite-after-1.logFile:
invite-before-2.logFile:
invite-after-2.logFile:
invite-before-3.logFile:
invite-after-3.logCode validation
Head:
e837280e03fa2763121639222efee8c575494d17. Original output follows verbatim.File:
validation-console.logFile:
workspace-validation-summary.txtFile:
parser-tests.logRound three finished. Blocked on performance acceptance.
Head:
e837280e03fa2763121639222efee8c575494d17. Branch:perf/arm64-fixes-3. Draft PR: #716, superseding #710.Workspace tests: 1188 passed, 0 failed, 20 ignored. Crash/recovery matrices, formatting, clippy with warnings denied, editor and web typechecks, and 5,000 parser cases passed.
After commands failing: tasks-after-1-10k (exit 1), tasks-after-1-100k (exit 1), tasks-after-2-10k (exit 1), tasks-after-2-100k (exit 1), tasks-after-3-10k (exit 1), tasks-after-3-100k (exit 1).
No limit or durability barrier was changed. Atomic note replacement still waits for file sync, required directory sync and durable FULL history. All scheduling, journal, cache, page-size, compression and checkpoint experiments were rejected and remain outside the product diff.
Hard metrics emitted by the original commands. Existing nonblocking targets remain in the raw output.
Investigation controls, all retained outside Git. These do not substitute for the final gates.
Five unchanged-base 100k repetitions gave warm p95 45.545 / 46.175 / 43.233 / 42.618 / 43.357 ms and cold growth 27.057 / 24.474 / 26.250 / 6.191 / 13.829 percent. The spread crosses the 10 percent limit on unchanged code.
The remaining warm cost on this disk is USB SSD flush latency and contention while making the atomic note replacement and FULL history durable. Raw 4 KiB overwrite-plus-fdatasync p95 was 9.330 / 7.433 / 10.955 ms. FULL SQLite WAL alone was 8.475 / 8.596 / 12.483 ms. A traced history fdatasync p95 of 22.861 ms is one slow syscall, not three ordinary commit barriers. Checkpoints add occasional work; Linux uses fdatasync, not Apple's F_FULLFSYNC. Note preparation and pending history already overlap. Atomic rename-over still requires the directory barrier, and an in-place overwrite would lose the existing whole-image and outside-write crash contract.
Rejected warm changes:
795b4ad2ata65f2605The deferred no-autocheckpoint WAL cost was measured too: 44.6–66.1 ms to checkpoint/close versus 14.6–31.3 ms normally. Work cannot simply be omitted from the accounting.
Cold storage adds about 73 MiB of live task pages: checkbox table about 23.8 MB, task lines 13.1 MB, tasks 12.0 MB, plus indexes. Freelist is zero. WAL at the fill measurement is about 327 MiB plain and 402 MiB with tasks. No Tantivy/FTS plugin is registered by this harness.
Rejected cold changes:
The retained borrowed-checkbox change avoids temporary owned strings and preserves exact JSON/parser behavior; it does not establish a budget fix.
The history writer already groups queued jobs into one FULL transaction (crates/notes/src/history.rs). Still possible without weakening durability: extend that existing opportunistic batching with bounded coordination of independent saves and their history phases, so a shared history flush can cover more records. Acknowledge each only after its own file, required directory barrier and history record are durable. Preserve pending-before-placement recovery ordering and external-write conflict checks, and prove the crash matrices again. Single-save latency still includes physical flushes; coordinated batching alone cannot promise a win for a strictly serialized stream. This is future work, not an implemented or measured fix. For cold growth, reducing the stable derived representation/index write volume remains possible, but none of the measured controls proves compliance. No limit or durability barrier has changed.
Round 3b recovery retained ten complete command results and resumed the interrupted eleventh command after a fresh five-minute quiet period. The prior disk-full partial log is preserved as interrupted output. Every remaining fixture is deleted after recording its numbers, using same-filesystem scratch behind the original paths; evidence directories stay below 200k entries. No previous diagnostics were repeated.
Measurement limitation: the first ten commands preceded the disk-full interruption; later commands followed removal of accumulated fixture homes and a fresh quiet period. The metadata headroom changed between repetitions. These are faithfully retained original results, but their latency spread must not be attributed solely to the code diff. Both final-head 100k warm failures remain failures, and all three 100k cold-growth results fail.
Raw evidence archive, SHA256
5d61debc7998e04e11a3c3edc94657cf33108c1e0aeb6e1a3c73c5c8b27f1d55.Full original output
Code validation output, verbatim
Gate driver output, verbatim
No merge or deployment. Issue remains open.
Starting cold-growth-gate on branch perf/cold-growth-gate from
e837280e03in a new worktree. I will instrument the unchanged cold comparison, run five repetitions under perf-lock, keep the 10 percent limit, check a throwaway 15 percent growth injection, and remove each measurement state after recording it. Evidence stays outside Git.Harness finding: tasks-bench computes 100 * (median(tasks durations) - median(plain durations)) / median(plain durations), using three alternating samples per side by default. The timer starts before Notes::with_state and ends when list_incomplete becomes false; shutdown and its TRUNCATE checkpoint are outside it. MetaDb::end_fresh already runs a PASSIVE checkpoint before scan completion, so this is not a simple before/after-checkpoint endpoint race. PASSIVE result rows are currently discarded. The prior noisy runs did not use --drop-caches; that flag writes the global kernel knob and is unavailable to this unprivileged job. Instrumenting checkpoint frame completion, ready/shutdown time and dirty/writeback pages without changing product behavior. Filesystem is Btrfs with nodatacow/nodatasum; shared backing storage writeback remains a possible cause.
Execution choice: perf-lock.sh itself takes the perf lock and all three local build-slot locks. Its documented contract prohibits nesting it inside build-slot.sh, and nesting build-slot.sh inside it would deadlock on the same slots. Builds and checks use build-slot.sh; measurements use perf-lock.sh directly, which reserves all three slots. Scratch fixture homes live outside the evidence directory and are removed after each repetition; no measurements are committed.
Five unchanged-product repetitions on
e837280eare complete with temporary probes. Only the harness was instrumented; no checkpoint policy changed. Each used the original three alternating samples per side, retained caches and perf-lock. Each freshly generated 100k + 100k fixture was removed after recording.Spread: -12.040 to 15.682 percent, 27.722 percentage points. All 30 PASSIVE checkpoints returned busy=0 and checkpointed every reported WAL frame. Checkpoint time was 2.074 to 3.271 s. Shutdown added 31.018 to 583.713 ms. First plain samples are slower after fixture creation; dirty/writeback pages and retained file cache differ across samples. The old ratio is therefore sensitive to sample preparation and too few samples; no checkpoint completion race was observed.
Testing a measurement-only correction: sync -f before each sample, timed shutdown and final sync -f, an empty-WAL assertion, 15 alternating pairs, and raw ready/settled samples plus database and WAL sizes. The limit remains 10 percent. Product code is restored exactly to
e837280e.The first corrected 100k repetition is complete: 15 alternating pairs, plain settled median 6042.864 ms, tasks 7041.627 ms, growth 16.528 percent. GATE cold.index growth <= 10%: FAIL. Plain list-ready median is 5963.081 ms and tasks list-ready median 6953.067 ms. Shutdown and final filesystem writeback remain accounted for; the measurement does not turn the existing task cost into a pass. Four more full repetitions are running on the same unchanged product binary. All 30 samples in this repetition ended with an empty WAL; its fixture and state were removed after recording.
Five corrected repetitions are complete on unchanged
e837280eproduct code, with harness commit7c4b85d08e. Same immutable binary for every repetition, retained caches, 15 alternating pairs per repetition, sync -f before each sample, timed shutdown and final sync -f. Every sample asserted an empty WAL at the measured endpoint. No product policy or 10 percent limit changed.Spread: 14.388 to 16.528 percent, 2.140 percentage points (old instrumented measurement: 27.722 points). All five results still fail the unchanged 10 percent limit. Each fixture and state was removed after recording its numbers.
The first plain sample after fixture generation was 7078–10353 ms in the old runs, versus 6160 ms median for subsequent plain samples. Plain time outside the measured checkpoint ranged 3509–7921 ms, while checkpoint time ranged 2074–3271 ms. This supports settling preparation/writeback as well as increasing the sample count; it does not support changing the product checkpoint trigger. The old runs all copied every WAL frame before list completion.
Now building a throwaway positive control: both sides register the same tasks plugin, then one side waits for 15 percent of its measured elapsed time before the timer ends. That isolates detection of an injected signal from the existing real task-index growth. The patch will be restored before push and will not be committed.
Cold index growth measurement completed. Head
7c4b85d08e, branch perf/cold-growth-gate, basee837280e03. Product code is unchanged.The old instrumented measurement ranged from -12.040 to 15.682 percent in five repetitions, a 27.722 percentage-point spread. All 30 checkpoint probes completed every WAL frame; the large first-fill effect also occurred outside the checkpoint window. The harness now settles filesystem writes before each sample, times through shutdown and final writeback, asserts an empty WAL, retains list-ready times and database/WAL sizes, and uses at least 15 alternating pairs. Cache mode is reported explicitly; these runs retained caches.
Five corrected repetitions measured 16.528, 15.357, 14.629, 14.388, 16.093 percent: 2.140 percentage points of spread. The limit stays 10 percent and all five still FAIL. This fixes the measurement; it does not claim a product performance fix.
A throwaway control ran the identical tasks-enabled workload on both sides and added a real delay equal to 15 percent of elapsed indexing/shutdown/writeback time to one side. It measured plain 7029.642 ms, delayed 8050.449 ms, growth 14.521 percent, and correctly FAILed the 10 percent gate. The patch was never committed; restored source hashes match the measured candidate. Raw patch and output are in the evidence.
Formatting, both targeted harness tests, and targeted clippy with warnings denied passed. Test output, verbatim:
Gate output, verbatim, grouped by measurement:
Every fixture home and state was removed after recording. The evidence directory remains below 200,000 files. Measurements held perf-lock, which reserves all three build slots; builds and checks used build-slot. No merge or deployment. Issue remains open.
Draft PR: #717
Raw evidence and reproduction scripts, SHA256
56aad0ba544956911e914e1abc6f44868da4b37eaf9ff83118d888de46010850.Starting cold-growth-fix on perf/cold-growth-fix from
7c4b85d08e. I have read #717 and the prior cold storage, page, cache and codec findings. I will attribute task storage by table, index and column, reduce redundant derived storage, compare query plans and timings, and run the requested cold, warm, server and recovery checks. The 10 percent limit stays unchanged. Measurements run on 10by32-01-std under perf-lock; fixture homes are deleted after recording. No merge or deployment.Fresh unchanged-base repetition 1 completed with the corrected 15 alternating pairs: cold growth 12.788 percent (FAIL at the unchanged 10 percent limit). Task list/count/describe/update gates pass; warm update p95 is 31.134 ms. The baseline database snapshot is retained outside Git for table/index/column attribution; its fixture home was deleted. Two more baseline repetitions are running.
Source finding: task lists depend on the existing covering indexes, so this candidate keeps them. The checkbox index copies display text already present in source notes. I am testing line-location storage and bounded page-only live/file reads through the same Notes reader as backlink snippets. This removes redundant text rather than applying the previously rejected compression codec. Untracked latency and restart/display correctness will be checked before accepting it.
Fresh dbstat attribution on unchanged
7c4b85d0, after the 100k task gate and before fixture deletion. This is a retained SQLite snapshot, not a separate cold timer. Row counts and average row payload include the SQLite record header; average column lengths below count non-null UTF-8 values.The 40,475 checkbox rows average 466.42 bytes of copied JSON plus a 36-byte note id. The 80,663 linked rows average 79.14 bytes of copied display text, 36 bytes of note id and 26.93 bytes of membership target. The 100,000 task rows average 111.17 bytes of record payload; their ids average 12 bytes and path keys 32.76 bytes. Task tags have 40,068 rows. These figures identify copied display words as the largest removable payload without changing list sort fields.
The candidate keeps task list fields and covering indexes. Checkbox rows instead retain line-number arrays; linked rows retain note, line and membership target. The smaller checkbox rows use one WITHOUT ROWID primary-key tree instead of keeping another note-id index. Source text is still owned by the note and read only for Untracked display pages. All 42 task tests pass, including rebuild/display parity and kill/recovery. First candidate measurements are running; no passing performance result is claimed yet.
The first location-only candidate
a66ec3ebis rejected as sufficient. Its corrected 15-pair cold growth is 11.648 percent, still above 10. Untracked p95 increases from 3.489 to 4.160 ms, and warm update p95 is 45.090 ms. Database and WAL snapshots are about 29 MB smaller, but that does not establish acceptance. All output and the original candidate binary remain outside Git under attempt-locations-a66ec3eb; the fixture was removed.Continuing with compact integer source keys for linked lines. The source row now also owns its untracked count and update-order index, eliminating the separate untracked_notes table and avoiding a scan through unrelated notes to choose a page. Identical raw/normalized date strings are shared losslessly, and list day projections use the format parser's normalized values; SQL does not parse dates. Task list covering indexes remain. The refined candidate is rebuilding and will receive fresh gates. No limit, history setting or barrier changes.
The
e65173c7phase probe completed 15 alternating pairs, with checkpoint timing only in an isolated worktree. It is diagnostic output, not an acceptance gate. Median measured stages:The compact source-only candidate
e65173c7still failed cold growth at 11.852 percent. Untracked improved to 0.550 ms p95 and its update gate passed, but virtual day projections also lost the covering-index annotation. That candidate is retained outside Git.The next head is
44f6d720fa. The generic Notes interface now passes stable cache keys, so tasks do not keep a second source UUID index. Task point lookups reuse Notes id lookup and the shared primary key; the now-unused tasks_id index is removed. Parsed days and small sort fields use compact native values, with one format codec and one documented SQL projection module. Raw values, task ordering, source text and every history/file barrier are preserved. Cache upgrades rebuild derived rows, links and counts together.First complete corrected cold gate at this head: 8.387 percent, PASS below the unchanged 10 percent limit. Untracked p95 is 0.553 ms. First-touch p95 is 38.935 ms and warm update is 45.673 ms; the warm failure remains a failure. Two more cold/task runs, server checks, workspace/recovery, clippy and type checks remain.
Query-plan finding after
44f6d720: task views regained covering indexes, but Notes exclusion used ROWID SEARCH ON TABLE tasks FOR IN-OPERATOR while walking notes_updated/notes_title. The supplemental SQL control accumulated 258 GB of cached reads and over 63 million reads before being stopped; its timings are not passing evidence. I stopped only the recorded owned diagnostic PID 237814 and queued validation PID 237805, and removed the fixture.The revised head is
d6f21d9bb5. It retains the narrow tasks_id tree and the original public-id visibility query, rather than trading note-list speed for space. Shared cache keys still remove copied source UUIDs and support point lookups. Task field edits now update rows and unchanged tag memberships in place, retaining id/path indexes and badge counts. A regression check aborts if a real priority edit recounts unchanged tags; all 45 task tests pass. Three fresh complete 100k gates are running at this head. Full workspace/recovery, clippy, type checks, matched 10k gates and three server pairs follow. Every cold sample still has 15 alternating pairs, shutdown/writeback accounting and the unchanged 10 percent limit.The retained-index candidate
d6f21d9bmeasured cold growth 10.187407%, 8.546408%, and 7.508714%; one of three still failed the unchanged 10% limit. Warm update gates also failed (p95 43.571837/40.208852/39.698361 ms; first-touch p95 13.240814/43.282786/49.289992 ms). These results remain in the evidence.Head
0ea217c7now shares a lazy CommonMark structural pass between backlinks and task descriptions, through a generic Notes interface. Cached and uncached parser/link parity tests pass: Notes 442 passed, 6 ignored; Tasks 45 passed. This removes repeated parsing without changing format rules or durability. Fresh matched unchanged/candidate 100k runs x3 are underway, followed by workspace checks, matched 10k task gates x3 and server gates x3. No limit has changed.First final-head matched 100k run,
0ea217c7against unchanged7c4b85d0, under perf-lock with 15 alternating cold pairs and unchanged limits:All 184 query shapes have EXPLAIN QUERY PLAN from the application bundled SQLite. Task list selection retains covering indexes; Notes visibility retains the necessary narrow tasks_id index. The remaining two matched runs and final checks are still pending; this is not an x3 acceptance claim. Fixture homes were deleted before supplemental SQL diagnostics.
Second final-head matched 100k result: baseline cold growth 16.797844%; candidate
0ea217c7growth 7.844195%. Candidate gate output:Warm p95 is 35.887259 ms versus the paired baseline 32.023648 ms; first-touch p95 26.490295 versus 13.900318 ms. Both pass the existing budget, but this pair is slower on those write tails and is retained without omission. The first candidate had lower write tails than its baseline. Third matched run is underway.
Final head
0ea217c7passed the unchanged 100k cold gate in all three matched runs.All candidate list/count/description/update gates pass x3. Baseline update gate failed in run 3 and is retained. Median p95 across runs improved for every task view except child-tag grouping, which varied by +0.50% (5.914195 to 5.943654 ms); all remain within existing gates. Untracked median p95 fell 83.95%. All sidebar counts are equal. Workspace validation is now running, with formatting passed; 10k task and server gates follow. No acceptance claim yet for those remaining gates.
Validation on final head
0ea217c7completed under one build slot, cargo -j3:Workspace totals: 1195 passed, 0 failed, 20 ignored by their existing annotations. Passing recovery cases include real-server SIGKILL during append, long-note append, tag rename, concurrent typing and upload; Notes mid-save/file/history recovery and the title-precedence matrix; Tasks SIGKILL during field writes. Ignored slow-disk measurements are not claimed as passing. Web typecheck reports 0 errors and 14 warnings. Matched 10k task gates and 100k server gates are now running under perf-lock.
Matched 10k task gates completed x3 at
0ea217c7. Every candidate gate passes.All three matched sidebar counts agree. The baseline cold gate failed in run 1 at 10.074169%; that result remains. The paired 100k server runs have started. No source files, history, budgets or cold endpoint semantics changed.
First matched 100k server pair completed: both baseline and candidate exit 0, 45 metrics each, no scenario failures, five warm runs each, unchanged budgets.
All server gates pass for this pair; variation in search and memory is retained rather than omitted. Fixture homes were deleted after both measurements. The second matched server pair is running; the complete x3 result is still pending.
Second matched 100k server pair completed. Baseline and candidate both exit 0, 45 metrics each, no scenario failures; all existing gated budgets pass.
Both measured fixture homes were deleted. The final matched server pair is now running. Candidate server gates pass 2/2 so far; the x3 claim remains pending.
Finished the cold-growth implementation at head
0ea217c7e4b188255e49291dba5f447d79aae79b. Draft PR: #721, based on #717.Cold growth passes x3 at 100k: 8.269005%, 7.844195%, 7.835925%, with the unchanged 10% limit. Task gates pass x3 at both sizes; all original server budgets pass x3. Workspace/recovery tests, clippy, formatting, typechecks and property checks pass. Live SQLite pages fall by 41.34 MiB. All measurement fixture homes are deleted; the evidence job has fewer than 250 files.
Some server metrics are higher: median tag-list p95 30.934012 -> 34.891111 ms and idle RSS 56.566406 -> 63.515625 MB. These are review considerations, not omitted results. Passing unchanged budgets is not a claim that every metric improved.
Raw evidence archive includes all run JSON, DBSTAT/column data, query plans and logs. The PR contains 21 product/test files and no evidence artifacts. The issue remains open.
Final head:
0ea217c7e4b188255e49291dba5f447d79aae79b. Base:7c4b85d08ecfc7d796ae52f84a6c8a27ccfc638e(#717).Measurements ran on 10by32-01-std under perf-lock, unchanged budgets and cold limit. The 100k task corpus is the existing harness corpus: 100k fixture notes plus 100k task notes; plain and indexed variants use the same files. Each task result uses 15 alternating cold pairs, then real list/count/description and 60 first-touch plus 2340 warm writes. Fixture homes are deleted after every result. Baselines are interleaved with candidates; earlier failed attempts remain in the evidence.
100k matched results (times in ms):
100k API query p95, ms (all three runs):
Cold ready-point median sizes, MiB (settled timing includes shutdown, empty WAL and sync -f):
10k matched results (times in ms):
10k API query p95, ms (all three runs):
DBSTAT after warm measurement, bytes per table/index, 4096-byte pages. Storage inspection uses system SQLite; all plans and query timings use application bundled SQLite.
Actual table row counts and average SQLite payload bytes per row (DBSTAT payload / COUNT(*)):
The checkboxes table now also owns linked-only sources and their untracked counts, replacing untracked_notes; its row count grows because those source sets are merged. Task count, linked-line count and sidebar counts are unchanged.
Column attribution: before checkboxes copied mean 466.418 bytes of line JSON plus 36-byte source UUIDs; after mean line-number JSON is 21.070 bytes. Before linked rows copied 79.144 bytes of words and 36-byte source UUIDs, plus marks; after they store integer source, line and target. Column JSON details are in storage-before/after.json; cast-to-blob column lengths for integers are decimal display lengths, not SQLite serial storage bytes. Raw scheduled/due strings are retained when they differ from normalized days. Public IDs and source files are unchanged.
Time attribution probe on intermediate compact head
e65173c7, instrumented diagnostic only (not an acceptance run). Apply includes plugin store, so those rows must not be added together. Parsing runs in parallel readers outside these writer timers. The remaining work includes plugin writes/index construction and extra checkpoint bytes; the final head also shares the repeated Markdown structural parse.Supplemental SQL timings, ms: 20 measured samples after five warmups; these isolate query shapes and complement the API measurements above. Every one of 184 variants has EXPLAIN QUERY PLAN.
Plan review: task ranges retain COVERING tasks_list/tasks_upcoming/task_tags_list; task full/kept lookups use Notes public-ID lookup and integer task primary key; Notes visibility uses tasks_id FOR IN-OPERATOR; Untracked walks checkboxes_untracked and probes integer source keys. Group/order temporary trees already present before remain where needed. No task-table scan was introduced. Removing tasks_id was rejected after its random full-row probes slowed Notes lists. All plans and SQL are retained in query-plans-before/after.json.
100k server gates use five warm scenario runs per result, original budgets, and one initial cold setup. Idle/typing/soak use their original sample schedules.
Server comparison: median p95 across the three full reports, with each report and budget verdict reproduced verbatim below.
All original gated budgets pass for each candidate report. This is not a blanket claim that every server metric improved: median tag-list p95 is 30.934012 -> 34.891111 ms and idle RSS 56.566406 -> 63.515625 MB. These increases remain review considerations; no budget or tolerance was changed.
Validation status:
Workspace tests: 1195 passed, 0 failed, 20 ignored by existing annotations. Recovery includes real-server SIGKILL during append, long-note append, typing, tag rename and upload; Notes save/history recovery and title precedence; Tasks SIGKILL field writes. Ignored slow-disk measurements are not claimed as passing. Web typecheck: 0 errors, 14 warnings. The 5000-case property run passed 20 tests.
Gate output verbatim:
before-final-1.log
before-final-2.log
before-final-3.log
after-1.log
after-2.log
after-3.log
before-10k-1.log
before-10k-2.log
before-10k-3.log
after-10k-1.log
after-10k-2.log
after-10k-3.log
server-before-1.md (verbatim server report)
server-after-1.md (verbatim server report)
server-before-2.md (verbatim server report)
server-after-2.md (verbatim server report)
server-before-3.md (verbatim server report)
server-after-3.md (verbatim server report)
Server process exits (recorded by the driver):
Starting cold-growth-fix2 on branch
perf/cold-growth-fix2from0ea217c7e4b188255e49291dba5f447d79aae79b(#721), comparing against #7177c4b85d08ecfc7d796ae52f84a6c8a27ccfc638e. I will attribute tag-list latency and idle RSS with query plans and memory breakdowns, retain the cold-growth win, and run unchanged gates on 10by32-01-std under perf-lock. No merge or deployment.Read comment 66677, its raw evidence archive, and all 21 files of #721. The original three repetitions overlap, so the aggregate increases alone do not identify a causal change:
The retained bundled-SQLite plans for the common-tag page and count are identical: page walks notes_updated; count scans covering notes_created, probes tasks_id for membership, and probes covering tags_by_id for each note. No dropped tag index or new page decode appears in the diff. The count still examines the entire note set for a tag-only request with plugin visibility. I am isolating this count and capturing allocator allocations, free space, mmap bytes and /proc RSS mappings across the full server scenario sequence before choosing a fix.
The current host is already 10by32-01-std. Its perf-lock script explicitly forbids nesting build-slot and reserves all three build slots itself. Measurements therefore use perf-lock directly, as the prior job did; builds and checks use one build-slot. Diagnostic allocator instrumentation is separate from acceptance results.
Heap attribution update from the instrumented full server scenario sequence. #717 and #721 use the same 2 MiB ordinary SQLite caches; the diff adds no persistent in-memory map. At the final post-room-close trim, #717 had 31.462 MiB live arena allocations plus 9.441 MiB mmap allocations; #721 has 31.754 MiB plus the same 9.441 MiB. The 0.292 MiB live-allocation difference does not explain the earlier 6.949 MiB RSS median increase.
Reserved arena sizes differ (84.273 versus 89.465 MiB), but free arena bytes are not necessarily resident. The sampled anonymous RSS is actually lower for #721 at this point (60.469 versus 61.574 MiB); file-backed RSS is still decaying during the idle window. I will not equate free virtual arena space with resident memory or claim a new live cache explains the old RSS numbers.
The #717 instrumented run finished successfully with tag-list p95 28.499388 ms and idle RSS 62.125 MiB. #721 is still completing its matching original idle window. A separate control will pin glibc's mmap threshold, and a second control will remove only the final shared-Markdown commit, to distinguish allocator layout effects from that code change. GNU libc documents the adaptive default and the fixed-threshold control here: https://sourceware.org/glibc/manual/latest/html_node/Malloc-Tunable-Parameters.html . These diagnostic runs are not acceptance gates.
The bundled SQLite timing probe now isolates the tag-list cost on the retained 100k server databases (five warmups, 20 timed samples per query):
The original plans are identical on both heads: count scans covering notes_created, tests tasks_id membership and probes tags_by_id for every note; page walks notes_updated with the same two membership checks. The old count's p95 does not regress in this control. The API tail increase is not evidence of a new join, decode or missing index in #721.
I will use the narrow hidden-tag-member count for tag-only requests: subtract it from the existing tag range total for Notes, or return it for the plugin view. This uses the existing generic plugin visibility SQL, needs no new index or cached counter, and avoids both a full note scan and unnecessary note-row lookups. Additional kind/date filters retain their existing query shape. New coverage verifies common tags, nested tags, plugin visibility, date combinations and cursor totals; the two targeted common-tag tests pass.
The full instrumented #721 run finished with tag-list p95 32.458711 ms and idle RSS 61.898438 MiB, versus #717 28.499388 ms and 62.125000 MiB. The idle RSS regression did not reproduce in this pair. Raw allocator and RSS evidence is retained; allocator and shared-parser controls still follow before acceptance runs.
The fixed-threshold allocator control lowers anonymous resident memory after the same scenario sequence and room closure:
The short control still has about 10 MiB of file-backed residency, unlike the long-window runs; its total RSS is not acceptance evidence. Its anonymous residency falls by 6.582 MiB with essentially the same live allocator bytes (40.936 versus 41.195 MiB). This supports allocation placement and arena fragmentation as an actionable memory cost, not a new persistent map or a larger configured SQLite cache.
The candidate prepares the allocator in the existing memory module, keeping glibc's initial mmap threshold fixed so medium transient buffers can release their own mappings. The existing huge-page policy stays in that module. No cache size, budget, cold limit or durability setting changes. Acceptance will run the actual built server with the original 300-second idle window, no preload or environment override.
The count refinement walks the selected tag's covering range and compares plugin membership with a bound flag for both views. This avoids driving all plugin IDs for a selective tag and avoids a subtraction across separate SQLite snapshots. Requests with additional filters keep their original count shape. The final candidate is queued for build after the shared-parser control.
Resuming cold-growth-fix2b on branch perf/cold-growth-fix2, base SHA
0ea217c7e4(#721). I have read the original brief and prior findings. I will retain sound uncommitted changes, finish the memory fix, run the original acceptance gates, and open a new draft PR superseding #721. Completed diagnostics d1 through d6 will not be repeated. No merge, deployment, or limit changes.The resumed release build and validation completed successfully.
Workspace test totals: [1196, 0, 20] (passed, failed, ignored). Recovery and SIGKILL tests are included in the workspace run. The acceptance sequence is now running under perf-lock on 10by32-01-std, with interleaved #717 and candidate server reports and task reports; each fixture home is removed after its measurement.
The first fresh #717 server report completed with exit 0 and no scenario failures, using the original budgets, five warm runs, and 300-second idle window. Tag-list p95: 31.211484 ms. Idle RSS: 57.16015625 MiB. This reproduces the original #717 memory level (median 56.566406 MiB) on the current host. The candidate report is now running; no acceptance claim is made from the diagnostic controls. Its fixture homes were deleted before starting the candidate.
First candidate acceptance report, original server budgets and idle window: tag-list p95 4.114394 ms versus fresh #717 31.211484 ms; idle RSS 57.230469 MiB versus 57.160156 MiB. RSS differs by 0.070313 MiB and is 0.664063 MiB above the historical #717 median, within the historical three-run spread (54.753906 to 64.347656 MiB).
One gated budget failed, so this is not an all-gates pass:
The report has no scenario failures. I am retaining the result, completing the planned repetitions, then checking reproducibility before deciding whether a code change or a replacement gate run is justified. No limits changed.
Second candidate server report passed all original gated budgets (exit 0; no scenario failures). Tag-list p95 is 4.285229 ms versus paired #717 32.103952 ms. Idle RSS is 59.078125 MiB versus paired #717 60.746094 MiB. API-open p95 is 28.335679 ms, below its unchanged 50 ms budget, so the first-report budget failure did not reproduce. It remains higher than the baseline API tail; all reports will be retained, including the failure and an additional full candidate repetition. The third paired baseline/candidate sequence is running next.
The first three candidate server reports give tag-list p95 4.114394 / 4.285229 / 3.135891 ms (median 4.114394), versus fresh #717 median 31.211484 ms. Idle RSS is 57.230469 / 59.078125 / 57.238281 MiB (median 57.238281), versus fresh #717 median 60.746094 MiB and historical median 56.566406 MiB. Candidate RSS spread / median is 3.23%; fresh baseline spread is 8.48%, historical baseline spread is 16.96%. This meets the two requested values within measured memory noise.
Completion is blocked by a repeated API-open budget failure: p95 54.678108 / 28.335679 / 74.275156 ms against the unchanged 50 ms limit. All three reports have no scenario failures. I will retain every report and isolate the allocator setting from scenario timing before accepting a final candidate. Task/cold measurements are continuing under the existing lock; the task binary does not call the server allocator preparation routine. No completed d1-d6 diagnostic is being repeated.
The API-open regression reproduces with the final fast tag count even when the allocator threshold setting is suppressed: five-warm-run diagnostic API p95 64.528481 ms. Raising the threshold from 128 to 256 KiB gives 63.054560 ms. Both controls retain tag p95 around 3.5–4.2 ms. They use LD_PRELOAD for diagnosis only, no idle window, and are not acceptance gates. Their fixtures have been deleted.
This evidence does not support blaming the fixed 128 KiB threshold for the API tail. Faster tag queries advance the subsequent open workload by hundreds of milliseconds; warm reconciliation and room-open metadata refresh share a lock. A diagnostic build now times room opening stages to test where the delay occurs. No product change or budget change has been made for this new finding.
The API tail investigation isolates the wait at the FULL history transaction boundary. Diagnostic examples match version-read settlement to history transaction time: 55.572 ms vs 55.489 ms, 68.051 ms vs 67.880 ms, and 52.237 ms vs 51.600 ms. The allocator-default and 256 KiB controls both retain high API tails, so changing the threshold does not address this. These timings identify storage waits; they do not establish that the scan-state write alone caused every stall.
The candidate now avoids redundant warm-scan I/O: when the stat snapshot is unchanged, it keeps the already persisted derived scan-state file, avoiding a vault-sized serialization and atomic write. First and changed scans still persist normally; FULL history commits, checkpoints and durability barriers are unchanged. The existing comparison loop detects the change, without another vault pass.
The new integration test failed before the fix because the unchanged scan replaced the state inode. It passes after the fix and verifies that a real outside edit still replaces and updates the state file. The candidate is rebuilding and running validation before fresh final server gates. All initial reports and failures remain in an attempt-initial evidence directory. All diagnostic fixture homes are deleted.
First final server acceptance report after avoiding unchanged scan-state writes passed all original gated budgets (exit 0, no scenario failures). Tag-list p95: 3.728602 ms; idle RSS: 56.117188 MiB; API-open p95: 43.977261 ms. Idle RSS is back at the historical #717 median of 56.566406 MiB in this run. The API tail remains higher than the fresh #717 comparison, though below its unchanged 50 ms budget; all three final reports will be shown. No claim is made that every metric improved.
The bundled SQLite 3.53.2 plan for the exact final membership-flag count is the same for both views: SEARCH tags USING PRIMARY KEY (tag=?), USING INDEX tasks_id FOR IN-OPERATOR. This walks the selected tag range for both membership values, with no Notes scan. Final report two is now running; the completed fixture home has been deleted.
Second final server report passed all original gated budgets, exit 0 and no scenario failures. Tag-list p95: 3.238852 ms. Idle RSS: 55.484375 MiB. API-open p95: 20.463696 ms. The first two final idle measurements (56.117188 and 55.484375 MiB) are both below the historical #717 median 56.566406 MiB. The third original-window report is running. Each completed fixture home is deleted.
All three final server reports pass every original gated budget, each exit 0 with no scenario failures. Tag-list p95 is 3.728602 / 3.238852 / 4.580684 ms, median 3.728602, versus fresh #717 median 31.211484 ms. Idle RSS is 56.117188 / 55.484375 / 68.859375 MiB, median 56.117188, versus fresh #717 median 60.746094 and historical median 56.566406 MiB. Range / median noise is 35.99% for candidate tag tails and 23.83% for candidate RSS; fresh baseline noise is 2.91% and 8.48% respectively.
The third RSS value is retained. The monitor snapshot matching that exact RSS has the following breakdown (KiB):
This separates anonymous memory from file-backed residency; it does not discard the high total RSS sample. API-open p95 is 43.977261 / 20.463696 / 28.706775 ms, median 28.706775, versus fresh baseline 12.144227 ms. It passes the unchanged 50 ms budget but remains a higher tail for review. Earlier API budget failures and all controls remain in the evidence. Task and settled cold-growth gates are now running. Completed server fixture homes have been deleted.
First final 100k task/cold report completed with exit 0. Settled cold growth is 9.26725651820167%, below the unchanged 10% limit, using 15 alternating plain/task pairs with shutdown, empty WAL and sync -f included. Verbatim gates:
The fixture home is deleted, and the second 100k repetition is running.
The three final 100k task reports passed list/count/description/update gates, but settled cold growth is 9.26725651820167%, 11.36730190654847%, and 11.033013435878914%. The latter two fail the unchanged 10% gate. Plain medians are 5983.034471 / 5951.157993 / 5982.022281 ms; task medians are 6537.497623 / 6627.644089 / 6642.019603 ms. These failures remain in the evidence; this is not completion.
The remaining 10k reports are finishing. I am reusing the existing storage and phase evidence, rather than repeating d1-d6. One candidate for further reduction is task_lines: it has a rowid table plus a separate note-key index, although all source lookups use note and the format emits one linked checkbox location per source line. I will verify the data invariant and page reduction before changing it. No gate or durability limit changes.
The retained, hash-verified #721 binary (
0ea217c7; tasks-bench SHA256 249cf1daf8fb34f29e79a36b041f41a2902dae3b56bd4101677728389de0edc8) also fails the current settled cold gate: 10.167749134517928%, plain median 5882.036428 ms, task median 6480.107136 ms. The control uses 15 alternating pairs and the original settled endpoint; all task-operation gates pass. Its fixture home is deleted. This shows the old passing cold result is not stable on the current host; it does not prove that every candidate timing difference is environmental.The separate linked-line layout pilot preserved all 40334 unique source/line rows, but saved only 286720 bytes and increased fill/index time from 60.11 to 68.10 ms. It was rejected and no task schema change was made.
I will publish the requested draft with the tested tag/RSS changes, all gate output and the unresolved cold failures marked explicitly. The cold acceptance requirement remains unmet; no budget or durability limit changes, merge, deployment, or issue closure.
Published draft #727 superseding #721, head
135a01a9df0fc4ea162ecf63be1701cd88a72767, base7c4b85d08ecfc7d796ae52f84a6c8a27ccfc638e(#717), branchperf/cold-growth-fix2.Acceptance remains blocked. The requested tag-list and median idle-memory recovery is measured, and all three final server reports and all task-operation reports pass. But 100k settled cold growth is 9.267257% / 11.367302% / 11.033013%, so only one of three passes the unchanged 10% limit. The retained unchanged #721 binary also fails its new control at 10.167749%. API-open median p95 is higher (12.144227 -> 28.706775 ms); the 68.859375 MiB idle-RSS outlier is retained. The draft is not ready to merge.
Raw evidence archive includes initial failed attempts, all final reports, exact query plans, allocator/RSS breakdowns, the rejected storage-layout pilot and binary hashes. The worktree is clean, the PR contains 25 Rust product/test files and no evidence artifacts. All fixture homes are deleted; the evidence job is under 300 files. No merge, deployment, limit changes or issue closure.
Verbatim final gate output and before/after measurements follow.
Acceptance is blocked: 100k cold growth fails repetitions 2 and 3. Head
135a01a9df. The unchanged #721 control also fails at 10.167749134517923%. All final server-budget and task-operation gates pass, but this is not ready to merge. API-open tails remain higher than the fresh baseline.Measurements on 10by32-01-std under perf-lock, unchanged budgets and original idle window. Each server report has five warm runs; task reports have 15 alternating settled cold pairs. Fixture homes are removed after every report.
Original #717 values: tag p95 32.104772 / 25.250001 / 30.934012 ms; idle RSS 64.347656 / 56.566406 / 54.753906 MiB. Original #721 values: tag p95 31.697495 / 35.845592 / 34.891111 ms; idle RSS 65.441406 / 63.515625 / 59.980469 MiB.
Validation output:
tasks-100k-717-1.log
tasks-100k-after-1.log
tasks-100k-after-2.log
tasks-100k-after-3.log
tasks-10k-after-1.log
tasks-10k-after-2.log
tasks-10k-after-3.log
server-717-1.md
server-717-2.md
server-717-3.md
server-after-1.md
server-after-2.md
server-after-3.md
Recorded process exits:
Starting round 3 on branch perf/cold-growth-fix3, from
135a01a9df(PR #727); comparison base #717 is7c4b85d08e. Same worktree /home/agent/calternal-arm64-fixes. The request both asks to push the open PR branch and says those pushes are ignored; following the explicit hard rule, I will publish a new branch and replacement draft PR, and update #727 with a link. No budgets or gate parameters will change. Profiling and query-plan comparison come before product changes. Current host is the perf VM 10by32-01-std; measurements use perf-lock directly, which reserves all build slots. Fixtures are removed after every measurement. Initial codex-jobs file count: 106369.Before changing product code, repeated the retained round-2 instrumented server workload on the perf VM under perf-lock (three warm runs; diagnostic idle window zero, not an acceptance run). Metadata query plans against the retained 100k databases show covering point reads for notes IDs/shared integer keys and tasks IDs, indexed stamp lookup, and primary-key tag lookup. No new full scan or missing point-lookup index appears. Fresh GET trace examples: 9.248 ms GET settlement / 9.208 ms history transaction, 14.995 / 14.931, 11.721 / 11.661, 9.279 / 9.234. This reproduces waiting at the FULL history commit boundary; it does not justify weakening it. Earlier controls already show that suppressing the allocator threshold does not fix the tail. The tag-count optimization advances opens relative to startup background I/O; I will retain that speedup. Further attribution will compare a fresh #717 server control in this session.
Host cleanup removed the previous codex-jobs directories and binaries while this job was running. This job directory and active processes survived. Restored the round-2 evidence archive from attachment 4fd75f7b-7104-4b89-9f47-d4b7baf581f8. Rebuilding candidate and #717 controls from the recorded Git revisions under one build-slot job, into this job's own target directory. Current codex-jobs file count dropped from 106369 to 80 during the external cleanup; none of this job's fixture homes are inside codex-jobs. No process was killed. This is recoverable and work continues.
The unchanged round-2 binary's fresh instrumented cold control completed all 15 alternating pairs: plain settled median 6289.391192 ms, tasks settled median 6813.728555 ms, growth 8.336854%. This is a diagnostic control with debug tracing, not a final acceptance report. Compared with the previous 9.267257 / 11.367302 / 11.033013% final reports, it confirms session variability and the need for three final repetitions. Representative task after-fill work is 67–73 ms and task secondary-index construction 88–91 ms. Plugin batch-store work is about 100 ms total per task fill. No sample, limit, barrier or gate code changed. The first candidate replaces the duplicate wide task-tag covering index with a narrow ID index and uses a tag-first covering table. Existing task tests will run before its measured pilot.
The instrumented unchanged cold-profile report also ran task operations: list, counts, description and cold gates passed; task update failed (first-touch p95 43.035712 ms, warm p95 34.089501 ms). This failed diagnostic is retained in full; debug tracing is enabled for its metadata commits, so it is not a final acceptance report. The candidate's 45 task tests pass, zero failed. Ordinary release candidate, count-query control and fresh #717 binaries are rebuilding after the external cleanup. No limits changed.
The first tag-first table pilot passes all ordinary release task gates and cold growth at 8.880230%, but it does not demonstrate an improvement over the unchanged instrumented control's 8.336854%. The settled plain/tasks medians are 6247.668483/6802.475796 ms. The new table saves about 1 MiB overall but increases the observed fill WAL by about 4 MiB. Its standalone insertion strategy is rejected as the final fix. Tag p95 is 2.829852 ms. Exact plans: {"SELECT id,flags,tday,time,created,sched_day,due_day FROM task_tags WHERE tag='errands' AND state<2": , "SELECT tag FROM task_tags WHERE id='task-0000001' ORDER BY tag": }. The fixture was deleted immediately after its report. The next pilot stages fresh tag memberships in the writer's temporary table and publishes them in primary-key order in after_fill; hot list queries keep the covering table. A rollback/retry test checks that failed publication does not lose staged rows or duplicate membership.
The existing cold-fill-versus-ordinary-fill equivalence test rejected the first temporary-staging attempt: SQLite's temp_store switch during begin_fresh deletes temporary tables created at connection open. That failed test output is retained as experiment2-tests-red.log. Fixed the lifecycle through a generic Describer::before_fill hook called after temporary storage is configured; the tasks plugin owns creation and ordered publication of its staging table. after_fill remains repeatable for interrupted-fill repair. The new test checks transaction rollback retains staged rows, retry publishes exactly one membership and badge, repeat completion is idempotent, and ordinary updates retain the published tag. No app-specific rule was added to core code.
The ordered-publication pilot passes every ordinary release task gate. Settled 100k cold growth is 8.458585% (plain 6076.877708 ms; tasks 6590.895602 ms), with the unchanged 15 alternating pairs and shutdown/empty-WAL/sync-f endpoint. The first layout pilot was 8.880230%; the unchanged instrumented control was 8.336854%, so one pilot does not establish a stable causal win against that control. Fresh task WAL samples are about 378 MB, versus 384 MB for the unbuffered tag-first pilot. Tag-list p95 is 2.808223 ms. Covering plans: {"SELECT id,flags,tday,time,created,sched_day,due_day FROM task_tags WHERE tag='errands' AND state<2": , "SELECT tag FROM task_tags WHERE id='task-0000001' ORDER BY tag": }. All fixture files were deleted after measurement. Final three repetitions and fresh #717 server controls remain required.
Static recovery review found the temporary-staging pilot unsafe across process restart: completed note batches have current stamps, while temporary tag memberships disappear, so after_fill cannot recover them. The 8.458585% temporary-staging pilot is rejected and will not count toward final acceptance. Reverted the generic before_fill interface and its Notes change. The next candidate stays entirely in the tasks plugin: append only (tag, shared note key) to a compact persistent staging table in each existing batch transaction, then join committed task fields and publish covered tag rows in primary-key order. after_fill clears staging in its existing transaction and remains repeatable. The added reopen test verifies a new database connection can complete staged memberships and badge counts. The ordinary full-row staging approach and both temporary-table attempts are listed as rejected experiments. No durability barriers or gate parameters changed.
The fresh #717 server control passes all original server budgets: open.api_get p95 10.708348 ms, home.page_tag p95 31.631220 ms, idle.rss 58.578125 MiB. The release diagnostic restoring only the old count path returns API p95 12.913444 ms and tag p95 32.303255 ms, versus the three-warm-run fast-count profile's API 30.622847 ms / tag 2.547013 ms. Both diagnostics skip idle; they are not final acceptance reports. Together with GET-settlement/history-commit timings and unchanged indexed point-read plans, this supports the faster count shifting opens into storage contention, rather than a new API read join or decode.
Code review found a remaining writer on clean opens: compact checkbox-source rows always pass through clear/store, while only task-note rows have an equality fast path. The candidate compares actual parsed source locations, folded targets, plain-line JSON and ordering timestamp against indexed rows. Clean sources and wording-only edits retain their rows and counts; real structural/timestamp changes and transitions into or out of task notes retain the ordinary update path. This avoids competing metadata WAL writes without slowing tag queries, trusting stamps as proof of equality, or weakening FULL history commits. New tests protect unchanged rows with aborting SQL triggers and verify link/tick/status changes still update membership and counts.
The new staged-edit regression test failed before cleanup: a task changed from work to home during the fill later published both home and obsolete work memberships. Fixed this by discarding the note's staged memberships before an ordinary store or removal, with an index on the shared note key so edits never scan staging for the vault. The same test covers deletion followed by note-key reuse. Persistent compact staging, rollback, repeat completion and reopening are covered separately. The earlier full validation passed workspace tests, clippy, both typechecks and 5000 parser cases, but failed formatting on the newly added test file; that output is retained. Formatting and the complete final validation are rerunning after this functional fix, before fresh final binaries are frozen.
Final candidate code gates passed. Verbatim summary:
Workspace totals (including recovery tests): 1201 passed, 0 failed, 20 existing ignored. Task crate: 49 passed. Parser checks used PROPTEST_CASES=5000. The earlier formatting failure and staged-edit red test remain in the evidence. Fresh source/binary hashes are recorded in candidate-manifest.json before perf. No budget, sample count, idle window or gate file changed.
The persistent staging candidate failed the ordinary release cold pilot: 10.792370% growth. All task-operation gates passed, but the cold goal did not. The unchanged-source optimization also did not restore API tails: diagnostic API p95 26.882302 ms, tag p95 2.777764 ms. Reverted staging, the generic fill hook, and the checkbox-source comparison experiment. Their logs, tests and failures remain in the evidence. Long final reports are deferred, not presented as passing.
The next cold candidate changes task_tags' primary key from (textual public id, tag) to (shared note key, tag), keeping public ids in the existing covering read index. Core assigns increasing keys as it writes a fresh batch, while textual ids are scattered across batches. This avoids repeatedly dirtying the entire membership primary tree without a staging table, deferred data or a new read join. All membership updates/deletes use the shared key. Tests cover tag edits, public ids and key reuse. Further API profiling will trace actual file sync/write timing and scan progress alongside the existing history transaction timings.
The file-I/O trace identifies the remaining API regression precisely. Warm run 1 has an unchanged scan and no scan-state rewrite; API GET settlement p95 is 13.008 ms. Warm runs 2/3 follow the benchmark's edits, so scan-state changes and the round-2 optimization still rewrites the entire stat file. Their GET-settlement p95 values are 27.212 / 24.767 ms; history fdatasync p95 is 26.871 / 24.481 ms.
A 32.513 ms GET waits for a 32.304 ms history-WAL fdatasync while two syncs of the scan-state temporary file overlap (21.485 / 30.564 ms). A 30.196 ms GET similarly overlaps scan-state syncs of 21.257 / 27.784 ms. No metadata-DB write bytes occur inside those history waits. This disproves the checkbox-rewrite hypothesis and explains why restoring the slow count query hides the tail: it gives the whole stat rewrite time to finish. Exact query plans still use indexed point reads.
The candidate now appends only changed/deleted stat records to the existing derived cache and syncs its data and length before discovery completes. First snapshots and bounded compaction keep the existing atomic write path; no work moves beyond the settled endpoint. Parsing, tombstones, tail repair, serialization and compaction are owned by scan/state.rs. Tests cover incremental edits/deletions, compaction, ignoring/truncating a torn tail, unchanged scans and actual outside edits. FULL history commits and all gates remain unchanged.
The shared-key membership pilot passes all operation gates and cold growth at 9.076570%; it still needs three final repetitions and clearer margin. One subsequent targeted-task run hit the existing kill-test scheduling race: the parent killed after reading SENT 41, but the child had already committed a later value. The output is retained; retry uses the round-2 RUST_TEST_THREADS=3 setting. No crash-test code or allowed values were changed.
The incremental stat-log diagnostic reports open.api_get p95 14.798765 ms and home.page_tag p95 3.676261 ms (three warm runs, idle skipped; diagnostic only). This improves API p95 from 30.622847 ms in the fast-count diagnostic and 26.882302 ms in the rejected source-comparison experiment, while retaining the round-2 tag speed. It is inside the earlier #717 three-report API range (11.270682 / 12.144227 / 15.725245 ms), but the fresh control is 10.708348 ms, so final five-warm-run reports and fresh controls remain necessary before claiming within-noise recovery. No history barriers, budget limits, sample counts, idle windows or gate files changed.
The cache encoding pilot reduced the task database by about 2.5 MB and ready WAL by about 4 MB, but cold growth was 10.49%, so it did not clear the gate by itself.
The allocator trace found automatic malloc_trim running during every timed cold indexing sample. The old bulk fill called after_burst before starting the reader/writer pipeline. Its two-second quiet timer therefore fired while bulk work was still allocating. A scoped bulk-work guard now arms the same existing quiet timer when the operation ends. It changes no budget, idle window, sample count, cache size, sync barrier, or gate code.
Under perf-lock, the otherwise matching comparison measured 10.496656% before and 5.611307% after. Before: 30 trims inside timed samples, 290.763 ms total trim time. After: zero trims inside timed samples. All indexing, joined shutdown, empty WAL and sync -f remain inside the unchanged endpoint. The guard also covers nested bulk work and unwind; focused tests pass.
This is a diagnostic, not final acceptance. The after report failed tasks.update: warm p95 41.627123 ms against the unchanged 40 ms limit (first touch 42.412210 ms). List, counts, describe and cold gates passed. I am keeping the failure and proceeding with fresh, uninstrumented required reports and complete code checks. Fixture homes from both measurements have been deleted. The jobs tree has 11,526 files.
The final source passed all required code checks. Workspace tests: 1,206 passed, zero failed, 20 existing ignored. Clippy with warnings denied, format check, editor typecheck, web typecheck and PROPTEST_CASES=5000 parser tests all exit 0. No perf harness, budget, limit, idle window or sample count changed.
The source and release binaries are frozen by SHA-256 for the required reports. The uninstrumented run is now under perf-lock: fresh #717 task control, three 100k and three 10k task reports at --runs 15, then three 100k server reports at five warm runs and the original idle window, interleaved with two more fresh #717 server controls. The earlier fresh #717 server control is retained as control 1. Each fixture home is removed in a finally block immediately after its report.
Performance acceptance remains pending; the 41.627123 ms diagnostic task-update failure remains part of the evidence.
Fresh #717 task control in the same perf-lock session, rebuilt from
7c4b85d08e, completed with exit 1. Cold growth is 18.944509565388%. Task-update warm p95 is 47.727029 ms and first-touch p95 52.496303 ms. This is the unchanged base, not a candidate pass or permission to change a budget.Verbatim gate output:
The control fixture has been deleted. The frozen candidate's fresh three-report measurements are continuing, with unchanged acceptance limits. This control documents current host behavior; candidate failures will remain failures.
The first two fresh uninstrumented 100k candidate reports pass cold growth at 8.134407% and 8.472078%, against the unchanged 10% limit. Both pass list, counts and description gates. Both fail the task-update gate; report 1 warm p95 is 42.180419 ms against 40 ms. The fresh #717 warm p95 is 47.727029 ms, also failing, but this does not turn a candidate failure into a pass.
Task-update acceptance is blocked pending the remaining measurements and investigation. The full required three reports at both sizes and server reports are continuing, with no source or binary changes between reports. All completed fixture homes have been deleted.
The frozen candidate has completed all 15 alternating cold pairs in each required fresh 100k report. Settled growth: 8.134407066242305% / 8.472077869882636% / 8.099290% (third value rounded from completed samples; its final JSON is pending the task-operation section). Three of three pass the unchanged 10% cold gate, with median 8.134407%, meeting the requested <=8.5% median aim.
The first two task-operation reports fail the unchanged 40 ms update gate, with warm p95 42.180419 / 45.886105 ms. The fresh #717 control also failed at 47.727029 ms. This remains an acceptance blocker; it is not discounted as noise. The third task section, all three 10k reports and server comparisons are continuing without source/binary changes. Gate output and all raw samples will be retained verbatim.
All six required task reports are complete, with 15 alternating cold pairs per report.
100k cold growth passes 3/3, with 8.134407% median. All list, counts and describe gates pass at both sizes. All 10k gates pass 3/3. The unchanged 100k task-update gate fails 3/3, and acceptance remains blocked on it. The same-session #717 control failed warm updates at 47.727029 ms. No gate result is discarded. All six fixtures and the control fixture have been deleted. Server reports and fresh server controls are now running with the original idle window.
The first required full server report on the frozen candidate failed its unchanged gate (exit 1). open.api_get p95 is 73.332409 ms, above the 50 ms budget and far from the requested #717 level. Its p50 is 8.848127 ms, max 122.651483 ms, reported noise 45.443459%. home.page_tag p95 is 5.051067 ms; settled idle RSS is 56.593750 MiB.
The earlier three-warm-run API diagnostic at 14.798765 ms did not establish full-run acceptance. I am retaining this failure without treating it as a pass. Fresh #717 control 2 and the remaining required reports are continuing unchanged, after which the current binary will be traced to distinguish the new tails from the already-proven full scan-state rewrite stalls. API recovery and 100k task updates remain blocked.
The second frozen candidate server report also fails its unchanged gate (exit 1). open.api_get p95 is 64.638606 ms, confirming the full-run API tail is repeated. home.page_tag p95 is 3.950770 ms and idle RSS is 56.3515625 MiB. The second same-session #717 control passes (exit 0), with API p95 15.649266 ms, tag p95 31.035612 ms and idle RSS 65.7265625 MiB.
This candidate does not meet API acceptance despite the 3/3 cold-growth improvement. The final control and candidate report are continuing unchanged, then I will profile the current binary and reject or revise the change responsible for the new tail. All failed reports remain evidence; no limits or measurement windows are changed.
Round 3 first complete series: not accepted. Cold growth passes 3/3 with 8.134407% median, but API p95 median is 64.638606 ms against fresh #717 median 15.649266 ms. Two of three server budget reports fail API; all three 100k task-update gates fail. All 10k task gates and all code checks pass. No failed report is discarded.
Tag-list p95 median 3.950770 ms and idle RSS median 56.593750 MiB retain the earlier improvements. Source and binary hashes, raw reports, code checks and the full comparison are preserved outside the repository as attempt1. No source has changed during these reports. All fixture homes were deleted. The next step is a trace of this exact source across HTTP, dispatch, room load, history and cache syncs, using the original idle window. This job is continuing; API recovery and 100k updates remain blocked.
Round 3 measurements. Three independent reports per candidate series; all original budgets, idle windows, sample counts and settled endpoints are unchanged.
100k task and cold report comparison:
10k task and cold report comparison:
All server p95 metrics:
Verbatim report and gate output:
Code checks, verbatim:
tasks-100k-717-control
tasks-100k-after-1
tasks-100k-after-2
tasks-100k-after-3
tasks-10k-after-1
tasks-10k-after-2
tasks-10k-after-3
server-after-1
Machine: Homes: Linux 7.2.12-orbstack-00394-gbecdd6130068 · 30 CPUs · 63Gi RAM · disk /dev/vdb1 btrfs (rotational) · state: Linux 7.2.12-orbstack-00394-gbecdd6130068 · 30 CPUs · 63Gi RAM · disk /dev/vdb1 btrfs (rotational)
100000 notes (10000 daily, 422 MB, 50 long notes)
server-after-2
Machine: Homes: Linux 7.2.12-orbstack-00394-gbecdd6130068 · 30 CPUs · 63Gi RAM · disk /dev/vdb1 btrfs (rotational) · state: Linux 7.2.12-orbstack-00394-gbecdd6130068 · 30 CPUs · 63Gi RAM · disk /dev/vdb1 btrfs (rotational)
100000 notes (10000 daily, 422 MB, 50 long notes)
server-after-3
Machine: Homes: Linux 7.2.12-orbstack-00394-gbecdd6130068 · 30 CPUs · 63Gi RAM · disk /dev/vdb1 btrfs (rotational) · state: Linux 7.2.12-orbstack-00394-gbecdd6130068 · 30 CPUs · 63Gi RAM · disk /dev/vdb1 btrfs (rotational)
100000 notes (10000 daily, 422 MB, 50 long notes)
717-control-1
Machine: Homes: Linux 7.2.12-orbstack-00394-gbecdd6130068 · 30 CPUs · 63Gi RAM · disk /dev/vdb1 btrfs (rotational) · state: Linux 7.2.12-orbstack-00394-gbecdd6130068 · 30 CPUs · 63Gi RAM · disk /dev/vdb1 btrfs (rotational)
100000 notes (10000 daily, 422 MB, 50 long notes)
717-control-2
Machine: Homes: Linux 7.2.12-orbstack-00394-gbecdd6130068 · 30 CPUs · 63Gi RAM · disk /dev/vdb1 btrfs (rotational) · state: Linux 7.2.12-orbstack-00394-gbecdd6130068 · 30 CPUs · 63Gi RAM · disk /dev/vdb1 btrfs (rotational)
100000 notes (10000 daily, 422 MB, 50 long notes)
717-control-3
Machine: Homes: Linux 7.2.12-orbstack-00394-gbecdd6130068 · 30 CPUs · 63Gi RAM · disk /dev/vdb1 btrfs (rotational) · state: Linux 7.2.12-orbstack-00394-gbecdd6130068 · 30 CPUs · 63Gi RAM · disk /dev/vdb1 btrfs (rotational)
100000 notes (10000 daily, 422 MB, 50 long notes)
The full five-warm-run trace reproduces the API regression (reported p95 69.590845 ms). HTTP, action dispatch and Notes.get agree within tens of microseconds, ruling out response transport as the source.
Warm run 2: one GET is 120.299 ms total, with 101.582 ms in room metadata refresh, 18.427 ms in history settlement and only 0.215 ms before refresh. The metadata apply itself is 0.126 ms. Another GET is 69.466 ms total while room load is 1.797 ms and history settlement 7.117 ms; about 60 ms is before the room task can run. Warm runs 3-5 reproduce 94.7-108.3 ms metadata waits. No malloc_trim overlaps any of the slow GETs. The new scan-state append syncs take only 6.8-12.3 ms, with deltas of 32-33 records, so a cache-storage redesign is not justified by this trace.
Source inspection identifies the remaining startup critical sections: sync_meta clones all 100k identities while holding Home.index's mutex, then compares every stamp and checks every room on the async worker while retaining meta_update. MetaDb.stamps also copies every row under its writer connection mutex. The fast tag count brings API opens into this work; #717's slower count lets it finish first. Point-query plans remain indexed lookups.
I am revising startup metadata planning to run off the async worker, copy identities and stamps in bounded chunks with short locks, and retain meta_update only for revalidation and actual commits. Candidates must be rechecked against current identities and open rooms so a concurrently announced edit or restore cannot be overwritten. All work remains before scan completion and the unchanged settled cold endpoint. The earlier file-append cache experiment is retained for its separately proven flush improvement; the speculative SQLite cache redesign is rejected.
The contention fix passes its first complete uninstrumented server report (100k, five warm runs, unchanged 300-second idle window, unchanged budgets, exit 0). API p95 is 16.386208 ms, versus same-session #717 controls 10.708348 / 15.649266 / 20.072722 ms (median 15.649266). Tag-list p95 is 4.243649 ms and idle RSS 56.9609375 MiB.
This follows the trace-proven startup contention fix: stamp reads use bounded key ranges through the existing reader, identity copies and comparisons run off async workers with short index locks, and only changed candidates are rechecked under meta_update before their actual commit. Classification's full folded-path set is also built off the async workers and outside the index mutex. No format rules, budgets, cache sizes, quiet/idle windows or sample counts were changed. All work is still awaited before scan completion.
The new race tests cover a pin announced after scan selection and an identity returning after removal selection; the complete Notes library result is 452 passed, six existing ignored, zero failed. The 100k task preflight is still running. Three complete reports and final workspace/clippy/typechecks/parser checks remain necessary for acceptance; the failed attempt1 reports are retained.
The contention-fix preflight also passes the full 100k task report at the original 15 alternating cold pairs. Settled cold growth is 8.419620149571236%. Task-update first-touch p95 is 15.929366 ms and warm p95 is 29.496097 ms, both below the unchanged 40 ms limit.
Verbatim gate output:
Both the full server report and full 100k task report now pass on the same frozen source and binaries. These exact, unchanged-parameter reports will serve as report 1 of the final three-report series if no source changes are needed. I am running all final workspace/clippy/fmt/typecheck/parser checks now, then the remaining two 100k task reports, three 10k reports and two server reports. The three same-session fresh #717 controls and every failed attempt1 report remain available. Both preflight fixture homes have been deleted.
Final source checks are complete: workspace tests 1,211 passed, zero failed, 20 existing ignored. All six required check commands exit 0:
The source and binaries still match the passing preflight manifest. Its complete server report and complete 100k task report serve as report 1 of the final series with identical original parameters. The remaining two 100k task reports, three 10k reports and two server reports are now running under perf-lock. The fresh #717 controls and every failed attempt1 report are retained. No source, budget, sample, cache-size or idle-window changes are planned during this series.
The metadata contention fix retains API recovery: server report 2 passes with API p95 15.027487 ms, tag p95 4.498730 ms and idle RSS 56.078125 MiB. Report 1 passed at API 16.386208 ms; fresh #717 median is 15.649266 ms. The last server report is still running.
Cold/update consistency is not accepted. The full task reports are:
All list, counts and describe gates pass at both sizes. All 10k gates pass. Cold growth fails one 100k report and updates fail two, so this source is not ready for acceptance. All failures are retained.
The earlier cold profile separates the added cost: task row storage about 97.7 ms, task finalization/index creation about 158.1 ms, and additional settled I/O beyond those phases. The measured tag cache stores about 4.4 MB in a table and covering index that duplicate flags, dates, time, creation time and public ids already in task rows. Every ordinary priority/deadline edit rewrites that payload despite unchanged tag membership. I am investigating a membership-only tag cache joined through the existing integer note key, with read latency checked against the unchanged task budgets. No data, index work or flushes will be moved beyond the cold endpoint.
The membership-only tag cache passes its first uninstrumented full 100k task report (15 alternating cold pairs). Cold growth is 8.025938%. Update p95 is 15.138530 ms first-touch and 27.910258 ms warm. All five original task gates pass.
Measured tag cache table plus index bytes fall from 4,395,008 to 1,486,848, a 2,908,160-byte reduction. The derived cache version is 16. All task fields and public ids stay in the existing task row; unchanged tag membership has zero writes during priority/deadline edits, enforced by the new regression test. All 51 task library tests pass.
The read tradeoff is explicit: task tag-list p95 is 6.247113 ms and child-tag grouping 10.332799 ms, versus earlier diagnostics about 2.82 and 6.63 ms. Both pass the unchanged task budgets. Query plans use the covering membership range by tag, then the existing integer primary-key lookup for current task fields. The separate Notes home.page_tag path is unchanged and must retain its earlier level in the final server reports.
The full required checks and three-report series are still pending on this source. The instrumented old-source update trace passed at warm p95 28.622786 ms, but does not erase the uninstrumented 42.056118 / 45.100224 ms failures. It measured lookup p95 0.199 ms, engine overhead p95 0.630 ms, and large tails overlapping history syncs, metadata checkpoints and atomic file flushes. The smaller cache removes redundant writes rather than weakening those flushes. All profile and pilot fixtures have been deleted.
The first workspace run on the smaller cache failed the existing crash test at SENT 41: the child had advanced to a later Deadline before the parent was scheduled to kill it. The same race occurred earlier in this job and is retained in the logs. No acknowledged write was missing; the asserted marker and actual kill point differed.
The test now gives the child one byte of permission after each observed ACK before starting the next write. A selected SENT write can still be in flight or just committed, but no later write can run ahead of the parent. All six kill points, all expected values, write count and recovery checks are unchanged. There are no sleeps and no performance gate changes. The focused crash test passes.
This is test-only synchronization. Rebuilding the release targets produced byte-for-byte identical server and benchmark binaries; source/binary equivalence is recorded with both old and new manifests, so the uninstrumented membership-cache pilot remains valid. The complete workspace/check series is running again on the final test source.
Round 3 validation finding: the workspace retries exposed two intermittent failures in unchanged tests: fsio
temp_files_persist_without_replacing_and_vanish_when_dropped(directory listing was empty), and notesshutdown_closes_the_home_history_writer_before_returning(the joined worker still appeared in /proc). The complete fsio suite and the focused shutdown test both passed on immediate reruns without source changes. Their failed workspace logs and rerun output are retained separately; another complete workspace run is underway. No production shutdown/filesystem behavior or assertions were changed to hide either failure. The task crash synchronization correction described earlier remains test-only, with byte-identical release binaries for the first membership-cache measurement.The second complete 100k report on the membership-only cache passed all five unchanged gates. Settled cold growth is now 8.025938% / 8.713593% for the first two reports. Its warm task-update p95 is 38.765579 ms. The third 100k report, three 10k reports and three server reports remain in progress under perf-lock. The completed full workspace run passed 1,212 tests, 0 failed, 20 existing ignored; fmt, clippy, both typechecks and 5,000-case parser properties all exit 0. Complete raw reports and the earlier failures remain retained; no final acceptance claim until all repeats finish.
All three full 100k task reports on the validated membership-only candidate passed all five unchanged gates. Cold growth: 8.025938% / 8.713593% / 9.695898%; median 8.713593%. Warm task-update p95: 27.910258 / 38.765579 / 28.917047 ms. This passes 3 of 3 under 10%, but the 8.5% median aim is missed by 0.214 percentage points and the worst report has only 0.304 percentage points of headroom. I am preserving those exact margins rather than claiming the variability is gone. The remaining three 10k and three server reports are still running. Fixtures from completed 100k reports have been deleted; final acceptance still depends on the remaining gates and API/tag/RSS results.
Final task-report tradeoff, compared with the actual round-2 reports: 100k tasks.tag p95 rises from 2.401470 / 2.401012 / 2.432885 ms to 6.247113 / 7.407064 / 6.094736 ms. tasks.anytime_by_child_tag rises from 6.433282 / 6.091989 / 5.903440 ms to 10.332799 / 13.012457 / 10.754173 ms. Membership-only rows need integer-key task lookups instead of duplicating every task field. All three unchanged tasks.list gates pass. This is an explicit read-cost tradeoff for less cold storage and fewer membership writes; it is separate from the home.page_tag metric whose round-2 improvement must remain. All six 100k/10k task reports passed every gate; the three home/server reports are still running.
The first complete server report on committed head
7328f1004bpassed the unchanged server budget gate (exit 0), but its values are above the desired round-2 levels: open.api_get p95 21.972434 ms, home.page_tag p95 5.061194 ms, idle.rss 59.7578125 MiB. The fresh #717 API controls were 10.708348 / 15.649266 / 20.072722 ms. Two reports remain; this first budget pass alone does not establish the requested API/tag/RSS recovery. All raw output is retained, and no source or measurement settings have changed between reports.The second server report also passed the unchanged budget gate (exit 0): open.api_get p95 21.592284 ms, home.page_tag p95 4.957940 ms, idle.rss 55.26953125 MiB. RSS is back near the round-2 level; API and tag tail latency remain elevated. The third report is running. I will then run one additional full #717 control with exactly the same five warm runs, 300-second idle window, budgets and gate to compare the current measurement window. The earlier three #717 controls remain retained; no claim that budget passes alone satisfy API recovery, and no source/settings changes during this series.
Starting setup-perf for perf-test-01, perf-test-02 and perf-test-03 only. Branch, base SHA and head SHA: not applicable; this is host provisioning from /home/kayg/codex-jobs/setup-perf, outside a git checkout. I will copy and adapt setup-builders/setup-std without changing the originals, install server tools, enforce one job and 4 CPU/8G limits, and report storage probes here. No product build, push, merge or deployment. No dedicated issue number was supplied, so this update uses #686, the existing infrastructure migration issue.
Storage preflight finding on all three targets: only two 107374182400-byte disks exist. scsi0 is the mounted ext4 OS SSD (perf-test-01 /dev/sdb1, perf-test-02 and 03 /dev/sda1), with EFI partitions; scsi1 is a whole-disk ext4 HDD at /mnt/hdd containing only empty lost+found (20K). The SSD cannot safely be partitioned and formatted as XFS while it is the live OS. I will preserve it, leave /srv/state absent to prevent accidental baselines on ext4, and prepare only the empty HDD as XFS at /srv/homes. A separate SSD or an offline OS relocation is required for the requested SSD mount.
Cache finding: both disks on every VM currently report
write backin /sys/block/sd*/queue/write_cache. This does not establish the hypervisor configuration or ZFS ARC policy. I will retain flush semantics and measure guest-cold versus guest-warm reads; guest drop_caches cannot clear backup01's ARC. Production-faithful cold disk numbers remain unverified until the owner checks the backing zvol primarycache and QEMU cache settings.All nine candidate budget reports passed on committed head
7328f1004b: all 30 task gate lines PASS, three server exits 0, all six code checks exit 0, frozen source and binary hashes match, clean tree, completed final fixtures deleted. Server reports: API p95 21.972434 / 21.592284 / 21.777851 ms; home.page_tag 5.061194 / 4.957940 / 3.435808 ms; idle RSS 59.7578125 / 55.26953125 / 56.828125 MiB. RSS median 56.828125 MiB is near round 2; tag median 4.957940 ms is above round-2 median 3.728602 ms. API median 21.777851 ms is consistently higher than the earlier fresh #717 median 15.649266 ms. Budget passes do not settle the additional recovery requirement. One additional full #717 report has started in the current window with all original settings. No push or new PR yet; further code investigation remains conditional on that comparison.perf-test-01 probe completed under /perf.slice/user@1002.service/perf.slice. Each disk used 300 timed 4 KiB write+fsync operations and a fresh incompressible 2 GiB file; page caches were dropped under the exclusive lock, then the same file was read twice. SSD (the preserved ext4 OS disk /dev/sdb1): fsync p50/p95 4.089/4.541 ms, guest-cold 484.6 MB/s and warm 15057.8 MB/s. HDD (XFS /dev/sda1 at /srv/homes): 3.991/4.567 ms, cold 483.5 MB/s and warm 15417.7 MB/s. Cold passes accounted for at least 2147483648 guest block-read bytes each; both warm passes accounted for zero. This verifies guest page-cache eviction, not backup01 ARC eviction. Similar SSD/HDD throughput is another reason to verify the backing storage and cache policy before accepting production baselines.
perf-test-02 probe completed under perf.slice with the same sequential procedure. Preserved OS SSD /dev/sda1 (ext4): fsync p50/p95 5.543/8.207 ms; cold/warm 485.5/13692.6 MB/s. XFS HDD /dev/sdb1 at /srv/homes: 4.681/5.862 ms; cold/warm 478.1/15324.0 MB/s. Both cold passes issued at least 2 GiB in guest block reads and both warm passes issued zero. Guest cold reads are much slower than RAM but host ARC remains unverified. No SSD data partition was created because scsi0 is the live OS disk.
perf-test-03 probe completed under perf.slice with the same procedure. Preserved OS SSD /dev/sda1 (ext4): fsync p50/p95 5.837/8.078 ms; cold/warm 476.9/15093.8 MB/s. XFS HDD /dev/sdb1 at /srv/homes: 3.987/4.246 ms; cold/warm 507.1/15295.7 MB/s. Both cold passes issued at least 2 GiB in guest block reads and both warm passes issued zero. The separate SSD and hypervisor cache checks remain blocked on owner changes to backup01; no changes were made to that host.
Finished the available setup-perf provisioning on perf-test-01, perf-test-02 and perf-test-03. Storage acceptance is BLOCKED; these are not yet the requested final SSD/HDD perf hosts.
Branch, base SHA and head SHA for provisioning: not applicable (scripts live outside a git checkout). The read-only dev checkout on each target is clean at
3d0c6e33d5. No commits, pushes, PRs, merges or deploys. No other VM was configured. Source setup directories were only read/copied. Adapted scripts remain in /home/kayg/codex-jobs/setup-perf. Evidence is in these comments, with no evidence committed to the repo.All three: Debian GNU/Linux 13.7 (trixie), x86_64, 4 vCPU, 8262787072 bytes guest RAM, no swap. kayg UID 1001; agent UID 1002 with linger. Both users log in with NetBird SSH. Private Codex, Forgejo and git credentials were transferred directly through private tar pipes from the orchestration host and verified owner-only mode 600. Both users pass Codex login status and Forgejo issue access checks. The existing full Codex installer was reused and its pinned x86_64 official package checksum passed. No Playwright browser dependencies were installed. Existing dotfiles activation was omitted on these server-only hosts to avoid unrelated services; the explicit tool profile and shell environment are installed for both users.
All tools on all three, for both users: Codex standalone 0.164.0 (including code-mode host), bun 1.4.2, Rust 1.99.0 with clippy/rustfmt and wasm target, gitleaks 8.30.1, forgejo-cli 0.6.0, sccache 0.18.0; Nix 2.35.3 (Determinate installer 3.24.1). OpenSSL/pkg-config use x86_64-linux-gnu paths in /etc/calternal/env.sh. A shared sccache service is active.
Each HDD was empty except for an empty lost+found. It is now GPT-partitioned, formatted with mkfs.xfs -m reflink=1 -s size=4096 and mounted at /srv/homes with noatime via its new unique UUID. cp --reflink=always and byte comparison passed on all three. The writable probe directory is /srv/homes/perf. Each SSD is the live cloud-init OS disk, preserved as ext4 at / plus its EFI partitions. SSD reflink is not provided; /srv/state is deliberately absent so jobs cannot silently use the wrong filesystem.
perf-lock.sh is exclusive; build-slot.sh has exactly one slot using the same lock. perf-run.sh --cold -- COMMAND takes the lock, drops guest caches, and runs agent's command in a user scope nested under the root-owned system perf.slice. agent's user manager is itself placed in that system slice, so user scope settings cannot raise the outer ceiling. Verified effective cgroup files: cpu.max=400000 100000, cpuset.cpus.effective=0-3, memory.max=8589934592, memory.swap.max=0. The only agent sudo rule allows /usr/local/sbin/perf-drop-caches with no arguments; the helper is root-owned, mode 755, has no setuid bit, and only runs sync then writes 3 to drop_caches. Generic sudo and helper arguments were denied. Lock contention and nested-lock rejection passed.
Probes were run sequentially across the three VMs, under perf-run.sh. Each disk: 300 individual 4 KiB write+fsync iterations (nearest-rank p50/p95); fresh incompressible 2 GiB file; sync and guest cache drop; one cold and one warm buffered read. Throughput uses decimal MB/s. SSD numbers below are OS-ext4 observations, not a substitute for the requested XFS data SSD.
Every cold read issued at least 2147483648 bytes in the guest block counters, while every warm read issued zero. Thus guest cold reads hit the virtual disk and are far slower than RAM. This does not establish a miss in backup01's ZFS ARC. Both disks on every VM report
write backin /sys/block/sd*/queue/write_cache; QEMU settings, lower-layer cache and power-loss durability cannot be proven from these guest measurements. SSD/HDD cold speeds are similar, so these results must not be accepted as independently verified physical disk baselines.Remaining owner work on backup01:
zfs set primarycache=metadata <perf-zvol>for the perf disks. Verify each disk's actual pool, volblocksize=4K, QEMU cache=none, and flush/durability behavior; investigate the guest write-back reports. This job did not access backup01.Final provisioning gate command was
netbird ssh root@perf-test-0N.vpn.kayg.org 'bash -s' < verify.sh. Each exited 0. The separate storage status explicitly remains BLOCKED. Gate stdout/stderr follows verbatim:perf-test-01:
perf-test-02:
perf-test-03:
Started perf-oneflush on perf/one-flush-save, based on origin/dev at
3d0c6e33d5. I will count flushes before changes, preserve durable acknowledgements, and record measurements and gate results here. No merge or deploy.Starting perf-baseline on perf-test-01. Branch: detached HEAD (read-only baseline; no branch creation or push requested). Base and build source: origin/dev
3d0c6e33d5, clean checkout at /home/agent/wt/perf-baseline. No product edits, pushes, merges or deploys.Using the job-specific host instruction perf-test-01 instead of the older generic Mac VM instruction. Homes: /srv/homes (XFS HDD); state: /home/agent/perf-state (OS SSD ext4). Every measurement will use perf-run.sh --cold (exclusive perf-lock, 4 CPU/8 GiB slice, guest cache drop). Three complete server reports at 10k and 100k (five warm and three cold starts per size), three task reports per size including cold growth, and three targeted list-search reports. Budgets remain unchanged. Evidence stays outside git and fixture Homes will be deleted after every report.
Preflight finding: both unchanged Rust harnesses write /proc/sys/vm/drop_caches directly, but agent can only invoke the root-owned cache-drop helper through sudo. Checking an external runtime adapter for that exact path; cold samples will not be labelled valid without successful helper calls. Comment 66811 is saved for metric-by-metric comparison; its server-after values are the requested Mac reference, with missing metrics marked unavailable.
Measurement choices for this unattended job:
3d0c6e33d5; detached HEAD is preserved.Finding: issue #686 is titled “Move CI runners, deploys and staging to the new ci VM (8by64-compute01)”, rather than the storage issue described by this job. Following the approved job's storage scope and requested comment destination; no infrastructure changes will be made.
Code inspection at
3d0c6e33shows the warm tasks.update durability chain: Room::commit_admitted_with commits notes/history.db; Room::event_with_stamp refreshes notes/meta.db (NORMAL, rebuildable) and awaits Engine::record's notes.changed commit in users//index.db; Engine::Owned::run then commits tasks.updated and the idempotency result in index.db. These are sequential waits, so merely grouping queued writer messages cannot combine the three commits of one isolated request. I am measuring syscall counts before changing anything. Lowering synchronous for the durable stores would violate the job's durability rule and is excluded.Correction to the initial code-inspection finding: crates/store/src/schema.rs configures index.db with WAL and synchronous=NORMAL, not FULL. Its two sequential journal transactions therefore do not imply two durable flushes per save. notes/history.db uses FULL. No code or durability setting has been changed. The syscall probe will establish which transactions actually issue fsync/fdatasync; the earlier three-commit observation must not be read as three measured flushes.
The additional full #717 control completed with exit 0: API p95 15.109148 ms, home.page_tag 39.323584 ms, idle RSS 73.046875 MiB. The candidate API median is 21.777851 ms, so I am treating API recovery as still unmet despite all nine candidate budget reports passing. The nearby baseline also confirms RSS variability is not unique to the candidate (whose median is 56.828125 MiB). I preserved this complete source/report/check series as attempt3 and am building a separate diagnostic binary to trace foreground metadata-lock waits and startup commit intervals before changing more product code. It will use the original five warm runs and idle window. No push or PR publication yet; earlier controls and every candidate result remain retained.
Release build passed on unchanged origin/dev
3d0c6e33d5: cargo build --release --locked -j3 -p calternal -p calternal-perf -p calternal-fixtures, inside build-slot.sh; finished in 4m 13s. Executable hashes retained outside git.Cache-control adapter preflight passed under perf-run.sh --cold. Verbatim output:
The exact /proc cache-control open is forwarded to the allowed helper before continuing; no Rust or repository changes. Effective outer limits: cpu.max=400000 100000; memory.max=8589934592. Homes are /dev/sda1 XFS, app state /dev/sdb1 ext4. Lower-layer no-cache/ZFS policy is as provided in this job, not independently verified from this guest.
The raw archive linked from comment 66811 was retrieved. It supplies exact task-operation values and server values at 100k only. It contains no 10k server or list-search baseline, so those comparisons will say unavailable. Mac candidate cold endpoint is settled shutdown/empty WAL/sync -f; current fetched dev times list completion. Those cold values will be labelled as different endpoints, not treated as a controlled hardware comparison.
Measured finding at base
3d0c6e33: strace -f -ttt -yy -e trace=fsync,fdatasync,sync_file_range around isolated real HTTP operations, Homes on /srv/homes/perf and state under /home/agent/perf-state, already counts ONE durable flush for a warm tasks.update (history.db-wal fdatasync; 13.73 ms with tracing). contacts.update also counts ONE (12.13 ms). notes.save counts 4: history WAL pending + completion (2), Home temporary file fsync + directory fsync (2). Creating a task through notes.create counts 4: Home file + directory (2), history WAL (1), ids.jsonl (1). CALTERNAL_NOTES_SAVE_MS=600000 keeps deferred writes out of the warm acknowledgement window. These are syscall counts, not inferred transaction counts; timings with strace are diagnostic only.The job's three-flush warm-update premise is not reproduced on origin/dev at this SHA. I will repeat the probe, run unchanged perf gates and 500+ SIGKILL recovery cycles, and add a lasting regression test. I will not weaken durability or change the unrelated CI infrastructure issue. Evidence remains outside git.
Browser prerequisite blocker resolved without system package changes: Chromium's shared libraries were missing on this server-only VM. Required Debian packages were downloaded and unpacked under /home/agent/perf-evidence-686/browser-libs. Chromium launches and opens a page successfully using that private library path. The release Rust build and production web build both exited 0. Original build warnings are retained.
Homes use the pre-existing writable /srv/homes/perf subdirectory on the same XFS HDD: /srv/homes/perf/issue-686/. State remains /home/agent/perf-state/issue-686/ on the OS SSD. The first orchestrator invocation stopped before any measurement because the mount root is root-owned; it created no Home and produced no sample. The corrected path avoids changing mount ownership. No measurement failures or samples have been discarded.
Baseline performance finding (tasks-bench, unchanged 40 ms limit, perf-run.sh -> build-slot.sh, rotational ext4 Home /srv/homes/perf, SSD state /home/agent/perf-state): all three 10k-note repetitions passed tasks.update. First-touch/warm p95 in ms: 15.51/9.70, 18.18/6.50, 13.70/6.57 (2,340 real warm writes per repetition). All passed tasks.list, tasks.counts and tasks.describe. All failed the existing cold.index growth <= 10% gate. This is a pre-change failure; budgets are unchanged. The 100k repetitions are still running. No storage code has been changed because the measured warm path already has one flush.
The separate round-9 trace reproduces API p95 22.523 ms in its first warm run. Foreground metadata-lock waits are at most 2 us; startup commit has stale=0/removes=0 and holds the lock for 15 us. The slow API requests instead wait through history WAL fdatasync calls of 12–13 ms; after startup comparison ends, requests settle in about 7–9 ms. No allocator trim overlaps these requests. Room metadata work is sub-millisecond for the two slowest GETs. Startup stamp comparison still streams the 65,753,088-byte notes table. EXPLAIN confirms the current key-range query reads INTEGER PRIMARY KEY rows, while a covering (note_key,id,stamp) index uses COVERING INDEX notes_stamps. I have prepared this small index experiment, including dropping it during fresh fill and rebuilding it with the existing index stage. It preserves every comparison and durability barrier, with no cache or measurement-setting changes. The original profile is still running unchanged; the new source is not yet built or accepted. I will measure index storage and absolute cold/build time as well as API and task-update effects, and revert if the tradeoff does not help.
Finding: the full save cycle reproduces the reported three STATE flushes. A task update plus explicit Home placement counts [4, 3, 3] state flushes and [2, 2, 2] Home flushes over three samples; the first cycle additionally normalizes server metadata. The warm acknowledgement alone counts [1, 1, 1]. notes.append and contacts.update also count [1, 1, 1] state / [0, 0, 0] Home; explicit notes.save counts [2, 2, 2] state / [2, 2, 2] Home; task creation counts [2, 2, 2] state / [2, 2, 2] Home. The two extra state flushes in placement are set_pending_queued and promote in crates/notes/src/room/save.rs, not journal transaction fsyncs.
The new regression harness passed 501 SIGKILL cycles. After each restart it checks tasks.get BEFORE opening the note room, then verifies every acknowledged append exactly once, the latest task metadata and exact idempotency replay. All 1,002 acknowledged edit receipts remain in durable history. This is process-crash testing, not power-cut emulation.
Remaining gap: the full-cycle one-flush optimization has NOT been implemented. Simply dropping the durable pending or completion record would invalidate the current crash/outside-edit protocol. I am leaving storage settings unchanged and preparing a draft test PR with this limitation clearly stated. The draft is not a completed one-flush implementation.
Probe gate output, verbatim:
Environment correction: findmnt reports /srv/homes is /dev/sdb1, XFS, and /home/agent/perf-state is /dev/sda1, ext4. The virtual disks report rotational=1 and rotational=0 respectively. My earlier “ext4 Home” description was incorrect. Runs use the requested /srv/homes mount on perf-test-03, but this is NOT the ext4 Home filesystem required for an official ADR 0062 gate. I will label all measurements accordingly. I will not reformat or change the shared VM mount.
Validation finding: fmt and Clippy passed. The first workspace run stopped at one notes durability test because this fresh worktree had no installed JS dependency y-protocols/sync. Its summary was “424 passed; 1 failed; 6 ignored” in calternal-notes; cargo exited 101. I installed the existing bun.lock with bun install --frozen-lockfile under perf-lock.sh -> build-slot.sh (118 packages, no tracked-file changes) and am rerunning the workspace gate. No product fix or dependency update was made.
Initial gate output, verbatim:
The workspace gate now passes after installing the locked JS dependencies. Formatting and Clippy also passed. The final strict syscall/crash run and three post-change performance repetitions per size are running. This remains a test-only draft: no storage code or durability setting was changed, and the full-cycle three-to-one reduction is not implemented.
Gate output, verbatim:
server-1 completed on unchanged origin/dev
3d0c6e33d5. Exit 1; 1307.4 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 17; perf-run.sh also dropped caches before the report.Notes 10000; scenario failures: [].
Notes 100000; scenario failures: [].
Gate output verbatim:
Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
The covering-index experiment is not acceptable as-is: full 100k report exits 1 because first-touch task-update p95 is 42.202475 ms (unchanged gate); warm update p95 is 36.660242 ms. Cold growth passes at 9.155295%, but absolute settled medians rise to 6345.352918 ms plain / 6926.288702 ms tasks, versus preceding pilot 5958.935939 / 6437.196453 ms. notes_stamps occupies 18,071,552 bytes; actual fixture EXPLAIN confirms the narrow covering-index read. The server report is still running to determine whether the read path helps API latency. This source will not be accepted without removing its storage/write penalty or reverting it. All barriers, cache limits and measurement settings remain unchanged; failures retained in experiment10-* artifacts.
Final harness finding: the revised regression test passed another 501 SIGKILL cycles. The strict full-save gate explicitly fails, so the passing acknowledgement check cannot be mistaken for completion of the requested full-cycle reduction. Across the two successful crash runs there were 1,002 SIGKILL cycles. Storage code remains unchanged.
Final harness output, verbatim:
Post-change performance finding so far (test-only change; identical server and tasks-bench binaries): 10k first-touch/warm p95 ms across three repetitions are 37.35/10.78, 44.21/11.02, 44.07/7.74. The first 100k repetition is 41.75/9.19. Warm values remain under 40 ms, while first-touch failures and the cold-index growth failures remain. These XFS Home runs are not the official ext4 ADR gate. Two 100k repetitions remain. No speedup is claimed from these variations.
Finished this run at head
ca723a3d0d, branch perf/one-flush-save, based on3d0c6e33d5. Draft PR: #738 (draft status verified). The only committed change is the regression harness perf/save-flushes.py. No artifacts, storage changes, merge, issue closure or deployment.The requested full-save optimization remains INCOMPLETE. Warm acknowledgements already use one state flush; full warm task save plus Home placement still uses three state flushes. The strict full-save gate is red. Both successful crash runs passed 501 SIGKILL cycles each. Formatting, Clippy and workspace tests passed after the locked dependency install. These XFS Home measurements do not satisfy the official ext4 ADR gate. No durability setting or budget was changed.
Performance table: each repetition includes 2,340 real warm writes; before and after use identical executables because this is a test-only change. Warm p95 is under the unchanged 40 ms limit in all 12 repetitions. First-touch failures and cold-index growth failures remain. No speedup is claimed.
Gate output, verbatim (the initial workspace dependency failure is included, followed by its successful rerun):
before performance command exits, verbatim:
before, 10k notes + 10k tasks, repetition 1, gate output verbatim:
before, 10k notes + 10k tasks, repetition 2, gate output verbatim:
before, 10k notes + 10k tasks, repetition 3, gate output verbatim:
before, 100k notes + 100k tasks, repetition 1, gate output verbatim:
before, 100k notes + 100k tasks, repetition 2, gate output verbatim:
before, 100k notes + 100k tasks, repetition 3, gate output verbatim:
after performance command exits, verbatim:
after, 10k notes + 10k tasks, repetition 1, gate output verbatim:
after, 10k notes + 10k tasks, repetition 2, gate output verbatim:
after, 10k notes + 10k tasks, repetition 3, gate output verbatim:
after, 100k notes + 100k tasks, repetition 1, gate output verbatim:
after, 100k notes + 100k tasks, repetition 2, gate output verbatim:
after, 100k notes + 100k tasks, repetition 3, gate output verbatim:
One measured warm complete-save trace, verbatim (three state fdatasync calls, two Home fsync calls):
The completed index-only server pilot passed budgets and improves API p95 to 17.992739 ms (from candidate median 21.777851), with home.page_tag 3.930141 ms and idle RSS 66.46484375 MiB. Its 18 MB index, slower absolute cold times and failed first-touch task gate make it unacceptable unchanged. The next measured variant stores a compact 43-byte full BLAKE3 file-stat fingerprint instead of duplicating the relative path in every stamp and covering-index row. Size, nanosecond time and exact path remain inputs; this does not replace content hashes or relax live-edit checks/barriers. One module now owns metadata conversion and stamp construction for both metadata and search, replacing their duplicated formatters. Metadata cache schema 6 rebuilds old derived rows; search refreshes rows whose opaque stamps change once. Three format tests cover fixed vectors, field/path distinctions and filesystem nanosecond conversion. All 455 notes tests passed, 6 existing ignored; release build is finishing. The compact variant is not accepted until original full cold/task/server reports establish storage and latency costs. The failed index-only variant and all earlier failures remain retained.
server-2 completed on unchanged origin/dev
3d0c6e33d5. Exit 1; 1270.8 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 17; perf-run.sh also dropped caches before the report.Notes 10000; scenario failures: [].
Notes 100000; scenario failures: [].
Gate output verbatim:
Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
server-3 completed on unchanged origin/dev
3d0c6e33d5. Exit 1; 1245.7 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 17; perf-run.sh also dropped caches before the report.Notes 10000; scenario failures: [].
Notes 100000; scenario failures: [].
Gate output verbatim:
Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
All three unchanged-dev server reports have finished with exit 1 and no scenario failures at either size. Each completed report had exactly 17 successful internal cache drops; all three completed fixture Homes and app-state directories were deleted before the following report.
The third report's RSS breach is easy to miss in the harness's rounded line
idle.rss p95 100 > 100: its exact value is 100.421875 MB against the unchanged 100 MB limit. Its 100k home.page_tag p95 is 56.332953 ms, idle.cpu_pct 0.5999978333558239%, and open.note p95 56.061057 ms. All 10k blocking budgets pass in this third report, including open.note at 14.285745 ms; the first two 10k open.note failures remain retained.The first 100k task report has started. Full three-value/median/budget and Mac-comparison tables will follow for every measured metric after the complete series.
tasks-100000-1 completed on unchanged origin/dev
3d0c6e33d5. Exit 1; 790.7 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 30; perf-run.sh also dropped caches before the report.Cold indexing: {"growth_pct": 14.60243846578634, "plain": 22265.350739999998, "plain_runs": [25319, 22581, 22212, 22265, 22090, 22178, 22182, 22258, 22575, 22347, 22517, 22136, 22530, 22293, 22228], "tasks": 25516.634881, "tasks_runs": [25586, 25690, 25401, 25465, 25224, 25328, 25723, 25516, 25450, 25610, 25593, 25475, 25316, 25705, 25672]}
Gate output verbatim:
tasks-100000-2 completed on unchanged origin/dev
3d0c6e33d5. Exit 1; 893.1 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 30; perf-run.sh also dropped caches before the report.Cold indexing: {"growth_pct": 11.615869386347228, "plain": 25864.782558000003, "plain_runs": [28508, 25927, 25793, 26081, 26034, 25902, 25369, 25452, 25739, 25819, 25954, 25613, 26085, 25329, 25864], "tasks": 28869.201917000002, "tasks_runs": [29457, 29149, 28590, 28869, 28681, 28791, 28397, 28838, 28995, 28923, 29217, 28811, 29091, 28768, 28906]}
Gate output verbatim:
tasks-100000-3 completed on unchanged origin/dev
3d0c6e33d5. Exit 1; 818.9 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 30; perf-run.sh also dropped caches before the report.Cold indexing: {"growth_pct": 13.916053847101011, "plain": 23268.830608, "plain_runs": [25746, 23148, 23396, 23094, 23595, 23268, 23142, 23031, 23242, 23489, 23336, 23554, 23460, 23128, 23251], "tasks": 26506.933605000002, "tasks_runs": [26255, 26156, 26506, 26213, 26526, 26528, 26600, 26143, 26666, 26714, 26605, 26791, 26431, 26473, 26430]}
Gate output verbatim:
tasks-10000-1 completed on unchanged origin/dev
3d0c6e33d5. Exit 1; 74.3 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 30; perf-run.sh also dropped caches before the report.Cold indexing: {"growth_pct": 18.73075971824084, "plain": 1597.6663119999998, "plain_runs": [1221, 1699, 1597, 1593, 1593, 1494, 1610, 1586, 1607, 1646, 1583, 1601, 1602, 1602, 1596], "tasks": 1896.9213499999998, "tasks_runs": [2514, 2035, 1901, 1900, 1871, 1896, 1905, 1876, 1883, 1854, 1884, 1915, 1847, 1824, 1933]}
Gate output verbatim:
tasks-10000-2 completed on unchanged origin/dev
3d0c6e33d5. Exit 1; 74.7 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 30; perf-run.sh also dropped caches before the report.Cold indexing: {"growth_pct": 18.10708597820219, "plain": 1622.641105, "plain_runs": [1165, 1742, 1685, 1595, 1645, 1622, 1587, 1634, 1627, 1548, 1624, 1615, 1644, 1616, 1588], "tasks": 1916.454125, "tasks_runs": [1514, 2770, 1929, 1927, 1911, 1918, 1896, 1937, 1898, 1940, 1895, 1916, 1888, 1832, 1917]}
Gate output verbatim:
tasks-10000-3 completed on unchanged origin/dev
3d0c6e33d5. Exit 1; 74.8 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 30; perf-run.sh also dropped caches before the report.Cold indexing: {"growth_pct": 20.03763504731213, "plain": 1604.2163970000001, "plain_runs": [1191, 1730, 1733, 1644, 1622, 1604, 1634, 1601, 1686, 1617, 1592, 1596, 1581, 1568, 1499], "tasks": 1925.663424, "tasks_runs": [1473, 2939, 1988, 1928, 1921, 1956, 1927, 1936, 1822, 1871, 1941, 1874, 1853, 1835, 1925]}
Gate output verbatim:
list-search-1 completed on unchanged origin/dev
3d0c6e33d5. Exit 1; 6.8 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 0; perf-run.sh also dropped caches before the report.Gate output verbatim:
list-search-2 completed on unchanged origin/dev
3d0c6e33d5. Exit 1; 6.1 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 0; perf-run.sh also dropped caches before the report.Gate output verbatim:
list-search-3 completed on unchanged origin/dev
3d0c6e33d5. Exit 1; 6.2 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 0; perf-run.sh also dropped caches before the report.Gate output verbatim:
List-search is temporarily BLOCKED by another browser prerequisite, not a product performance result. All three initial attempts exited 1 before producing any list-search metric. Chromium launched successfully in the earlier blank-page probe, but rendering app text aborts with:
All three failed attempts, browser errors and wrapper output are retained under their original list-search-1/2/3 evidence names. Their fixture Homes and app state have been deleted. The bundle gates passed, but no search pass/fail can be claimed from these attempts. I will add private fallback fonts and a private fontconfig file outside the repo, then collect three actual list-search reports with new list-search-final-1/2/3 labels. No source or budget change.
All six task reports are complete: every task list/count/describe/update gate passed. Cold growth failed all six reports: 100k 14.60243846578634 / 11.615869386347228 / 13.916053847101011%; 10k 18.73075971824084 / 18.10708597820219 / 20.03763504731213%. Each report used 15 cold pairs and exactly 30 successful internal cache drops. Fixture cleanup is complete.
list-search-final-1 completed on unchanged origin/dev
3d0c6e33d5. Exit 0; 32.4 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 0; perf-run.sh also dropped caches before the report.Gate output verbatim:
list-search-final-2 completed on unchanged origin/dev
3d0c6e33d5. Exit 0; 32.1 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 0; perf-run.sh also dropped caches before the report.Gate output verbatim:
Browser prerequisite resolved with private DejaVu fallback fonts and FONTCONFIG_FILE=/home/agent/perf-evidence-686/fonts.conf; no system or repository package/config edits. The first final list-search report renders and completes successfully: 128 measured key samples, p95 7.00 ms against the original 8 ms limit, blank frames 0 against 0. The separately reported 32 warm-up samples have p95 11.9 ms and are not a gate. All bundle gates also pass; process exit 0. Fixture Home and state deleted. Two final repeats are still required; the three earlier prerequisite failures remain retained with no search samples.
list-search-final-3 completed on unchanged origin/dev
3d0c6e33d5. Exit 0; 32.1 seconds. Fixture Home and app state deleted. Successful internal helper cache drops: 0; perf-run.sh also dropped caches before the report.Gate output verbatim:
Server baseline: 10000 notes, source
3d0c6e33d5. Three full reports; each report uses 5 warm starts, 3 cold starts and the original 300-second idle window. Values are each report’s p95 except throughput minimum gates, which use p50. Results are shown for every repetition, so a median cannot hide a failing report. Unbudgeted metrics are labelled ungated; nonblocking targets stay nonblocking. Mac reference is server-after-1/2/3.json in comment 66811’s linked archive; unavailable means that size/metric is absent. Changes compare medians and flag absolute differences over 20%, including improvements. Hardware, source and cache policy all differ; this is not a hardware-only A/B.Server baseline: 100000 notes, source
3d0c6e33d5. Three full reports; each report uses 5 warm starts, 3 cold starts and the original 300-second idle window. Values are each report’s p95 except throughput minimum gates, which use p50. Results are shown for every repetition, so a median cannot hide a failing report. Unbudgeted metrics are labelled ungated; nonblocking targets stay nonblocking. Mac reference is server-after-1/2/3.json in comment 66811’s linked archive; unavailable means that size/metric is absent. Changes compare medians and flag absolute differences over 20%, including improvements. Hardware, source and cache policy all differ; this is not a hardware-only A/B.Task baseline: 100000 notes plus 100000 task notes, three unchanged-dev reports, each with 15 alternating cold pairs and at least 2,000 real warm writes. Source
3d0c6e33d5. All five original gates retained. Mac reference: tasks-100k-after-1/2/3.json from comment 66811’s archive. Caution: this dev harness ends cold timing at list completion; the Mac candidate reports settled shutdown, empty WAL and sync -f completion. Cold durations/growth below are reported side by side but are not equivalent endpoints. Source/cache/hardware differ as well; the percentage flag is descriptive, not attribution to HDD speed.Task baseline: 10000 notes plus 10000 task notes, three unchanged-dev reports, each with 15 alternating cold pairs and at least 2,000 real warm writes. Source
3d0c6e33d5. All five original gates retained. Mac reference: tasks-10k-after-1/2/3.json from comment 66811’s archive. Caution: this dev harness ends cold timing at list completion; the Mac candidate reports settled shutdown, empty WAL and sync -f completion. Cold durations/growth below are reported side by side but are not equivalent endpoints. Source/cache/hardware differ as well; the percentage flag is descriptive, not attribution to HDD speed.List-search baseline: 10k notes, Chromium with the unchanged 6x CPU throttle, three targeted reports, one worker, unchanged 8 ms key p95 and zero blank-frame gates. Warm-up samples are separate diagnostics. Shared web wrapper also reports bundle sizes, retained below with their original budgets. Comment 66811 contains no list-search or bundle reference, so these comparisons are unavailable.
Finished perf-baseline on perf-test-01. Branch: detached HEAD. Base and head SHA:
3d0c6e33d5. Fetched origin/dev built unchanged; no code changes, commits, pushes, PRs, merges, deployment or issue closure. The worktree is clean, source/budget and binary hashes match the pre-run manifests, all 12 valid reports completed (plus three retained browser prerequisite failures with no search samples) and all fixture Homes and per-report app state are deleted. Evidence remains outside git under /home/agent/perf-evidence-686.Baseline outcome: all three server reports fail blocking budgets; task list/count/describe/update gates pass in all six reports, but cold-growth fails all six; final list-search and bundle gates pass in all three reports. Cold-growth medians: 100k 13.916054%, 10k 18.730760%, against 10%. List-search key p95 values: 7.0 / 7.1 / 6.7 ms, median 7.0 ms, against 8 ms; blank frames are 0 / 0 / 0.
Three full server reports each include 10k and 100k, five warm starts, three cold starts and the original 300-second idle windows. Six task reports each include 15 alternating cold pairs and original operation/write gates. Three final targeted 10k Chromium list-search reports use private fontconfig/fallback fonts after fixing the prerequisite and one worker and the original 6x throttle. Every measured report ran through perf-run.sh --cold and build-slot.sh, with the exclusive perf lock and effective 4 CPU/8 GiB/no-swap limits. All 51 expected internal server cache drops and all 180 task cache drops succeeded through the audited external helper adapter; each of the 12 valid wrappers also dropped caches before its report. The three earlier browser prerequisite attempts each used the same wrapper/cache drop and produced no search samples; all three failed attempts remain retained and are included in the gate transcript below.
Metric tables (three values, median, unchanged budget, per-report result, exact Mac reference values, percentage change, and flags over 20%):
The tables flag 68 of 77 comparable metric rows with absolute median differences over 20%, including improvements and diagnostics. Unavailable rows are excluded from that count.
The Mac comparison uses the final server-after and tasks-after JSON in comment 66811’s archive. Its 10k server and list-search values are absent and marked unavailable. Hardware, cache policy and source differ. In particular this unchanged dev task harness times list completion; the Mac candidate used settled shutdown/empty WAL/sync -f. Cold values are therefore different endpoints, not a controlled hardware-only speed comparison. The lower-layer no-cache/ZFS settings are supplied by the job and cannot be independently established from this guest.
Build output verbatim:
server-1 — process exit 1
Gate output verbatim:
server-2 — process exit 1
Gate output verbatim:
server-3 — process exit 1
Gate output verbatim:
tasks-100000-1 — process exit 1
Gate output verbatim:
tasks-100000-2 — process exit 1
Gate output verbatim:
tasks-100000-3 — process exit 1
Gate output verbatim:
tasks-10000-1 — process exit 1
Gate output verbatim:
tasks-10000-2 — process exit 1
Gate output verbatim:
tasks-10000-3 — process exit 1
Gate output verbatim:
list-search-1 — process exit 1
Gate output verbatim:
list-search-2 — process exit 1
Gate output verbatim:
list-search-3 — process exit 1
Gate output verbatim:
list-search-final-1 — process exit 0
Gate output verbatim:
list-search-final-2 — process exit 0
Gate output verbatim:
list-search-final-3 — process exit 0
Gate output verbatim:
Final evidence checks: FINAL_INTEGRITY=PASS. Gate failures above are retained as baseline findings; no limit was changed and no failing repetition was replaced. The shared web wrapper’s bundle gate is reported separately from its list-search timings in the table.
Starting perf-open-note on perf-test-03. Branch perf/open-note-cold, base origin/dev
d83e54dbe5. I will profile disk-cold note opens, reuse the tag range work in #727, and retain unchanged budgets and durability. No merge or deploy.Starting perf-idle on branch perf/idle-honest from origin/dev. I will record the exact base SHA after fetch, measure sleep and empty-Home controls, inspect idle wakeups and RSS, and run the requested gates under perf-lock. No budget changes, merge, or deploy.
Starting perf-727-honest on perf-test-01. Checkout starts at fix3
73bbcbfa45(detached HEAD); requested comparison source is PR #727 head135a01a9df. I will create local perf/cold-growth-fix3 for changes. Dev reference is3d0c6e33d5, comments 68146–68149 and 68151.The job-specific perf-test-01 instruction overrides the older generic Mac-backed VM instruction. Homes stay on /srv/homes; state and evidence stay on the OS SSD. Every report uses perf-run.sh --cold, including its exclusive perf lock; local work uses build-slot.sh. I will repeat the baseline server and task commands three times per source, preserving limits, sample counts and idle windows. Candidate cold timing includes shutdown, empty WAL and sync -f, while dev's historical endpoint is list-ready; both endpoints will be called out. The baseline's external cache helper adapter will be recreated and audited without changing the candidate source. No evidence will be committed. No merge, deploy or protected-branch push.
If fix3 already has an open PR, the forge requires a new branch and new PR for any update. I will preserve the requested fix3 branch and use a new review branch in that case.
Base SHA confirmed:
d83e54dbe5on perf/idle-honest, freshly branched from origin/dev. This differs from the earlier3d0c6e33baseline only by documentation merges. Host is perf-test-02, Homes disk is XFS at /srv/homes. The local perf-run.sh wrapper is available and will provide the required exclusive lock and perf.slice limits. The old perf-test-01 SSH name does not resolve here; exact baseline configuration is taken from comments 68146–68151 until that evidence can be reached.Profiling prerequisite finding: private perf 6.12.113 runs, but even
perf stat -e task-clock,context-switches,page-faults -- trueis denied by this guest's perf_event_paranoid=3. I will not change host security policy. Private strace 6.13 runs; I will use syscall wall-time summaries, process CPU accounting and the existing metadata stage tracing to distinguish I/O stalls from CPU work. Profiled runs will be labelled diagnostics and kept separate from uninstrumented gate reports.Measurement setup: using job-specific perf-test-03 as the baseline job did on perf-test-01; this overrides the older generic Mac VM instruction. Homes are on /srv/homes/perf (XFS /dev/sdb1); state is on the OS SSD. perf-test-01 is not resolvable from this VM, so its job files are currently unavailable. Comments 67045, 67047, 67072 and 68151 provide the settings: five warm starts, three cold starts, 300-second idle window, default storm, both 10k and 100k, unchanged budgets, and the external adapter for the exact /proc/sys/vm/drop_caches open. I am reproducing those settings; every helper success will be logged. The 10by32 host was checked read-only and lacks this disk layout and perf-run.sh, so no measurement ran there.
Tag-list investigation confirms the query shape addressed by #727. On the equivalent minimal schema, SQLite EXPLAIN QUERY PLAN for the current common-tag count begins SCAN n and probes tags for each note. The #727 count begins SEARCH tags USING PRIMARY KEY (tag=?), with plugin membership checked through its existing id query. This explains vault-size work in the tag-only total. I will reuse its covering-range query, retain the current filter and cursor semantics, and test plugin visibility. Diagnostic plans:
Profiling limit: perf stat/record cannot run in perf-test-02 because /proc/sys/kernel/perf_event_paranoid is 3; perf reports that performance monitoring is limited without CAP_PERFMON, CAP_SYS_PTRACE or CAP_SYS_ADMIN. No kernel policy was changed. Continuing with strace -f -c, per-thread /proc sched/runtime/context-switch deltas, I/O counters, inotify descriptors, and smaps_rollup. The run reports XFS rotational Homes on /dev/sdb1 and ext4 non-rotational state on /dev/sda1; perf.slice is cpu.max=400000 100000, memory.max=8589934592, memory.swap.max=0.
The unchanged base bootstrap run completed at 100k notes with one cold and one warm run, idle disabled only for this fixture/bootstrap diagnostic. Homes are on XFS and state is separate ext4. Three audited internal cache drops succeeded. Its gate exited 1 with:
These failures are retained, not replaced. Required final reports will use five warm starts, three cold starts, both 10k and 100k sizes, and the unchanged 300-second idle windows. The empty-Home and sleep controls are now running; a loaded-Home control follows.
The first controls reproduce a size-dependent idle cost. Untraced 300-second empty-Home window: 1 CPU tick (0.0033332% of one CPU), 0.489217 ms summed per-thread scheduler runtime and 5 context switches; the concurrent sleep control used 0 ticks, 0 scheduler runtime and 0 context switches. Empty-Home RSS stayed 20.48 MiB (3.66 MiB anonymous). In the loaded 100k Home, the first untraced 60-second sample used 36 ticks, or 0.6% CPU; concurrent sleep remains at 0. Loaded RSS is 94.33 MiB, with 77.07 MiB anonymous and 17.25 MiB file-backed mappings. The source has a usage-counter recount every 60 seconds which opens/stats every Home file; the remaining window and syscall trace will test that attribution. These controls do not support subtracting 0.6% as a VM floor. Raw snapshots remain outside git under /home/agent/codex-jobs/perf-idle/evidence. The empty-Home strace attempt had a missing shared-library prerequisite after its valid untraced window; that attempt is retained, and the library path has been fixed for the loaded-Home trace.
Both requested sources built unchanged with release fat LTO and three Cargo jobs, through build-slot.sh. Fix3
73bbcbfabuilt in 3m 43s. PR #727135a01a9built in 2m 50s. Binaries were saved separately before the next build.Cache-helper preflight printed CACHE_ADAPTER=PASS. The first server report confirms Linux 6.12.113+deb13-amd64, four CPUs, 7.7 GiB RAM, rotational /dev/sda1 XFS Homes and non-rotational /dev/sdb1 ext4 state.
Binary SHA-256 checksums:
No product or budget edits. Every server report uses the unchanged dev budget file (the candidate revisions differ only in the unused web total-JS budget).
Root cause confirmed on unchanged
d83e54db, before production changes. The loaded 100k Home used 183 ticks over 300.015527 s = 0.609968% CPU. Its usage worker (TID 85841) used 1839.700051 ms scheduler runtime and made 31 context switches; all other surviving server threads used zero additional scheduler runtime. The concurrent sleep process used zero ticks, runtime and switches. Server I/O deltas were zero for rchar, wchar, syscr, syscw, read_bytes and write_bytes, ruling out data reads, journal flushes and SQLite writes during this window. RSS was 96592 KiB: 78924 KiB anonymous, 17668 KiB file-backed; huge pages and swap were zero.A separate 65-second strace window caught a partial periodic metadata walk:
The owner is crates/fsio/src/usage.rs: Usage::background recounts all files every 60 s. In an isolated process on the same 100k Home, with the deployed two-arena allocator and THP disabled: initial RSS 2080 KiB; live Usage after trim 26816 KiB; second recount 49504 KiB; after trim 27076 KiB; dropping Usage and trimming 2496 KiB. Recount took 348.6 / 351.9 ms. Thus the live map costs about 24 MiB and a recount leaves about 21.9 MiB reclaimable allocator memory; this is anonymous heap, not file-backed cache. Code already reports application writes incrementally, but the change journal currently keeps updates until the next periodic recount.
The new outside-edit/directory-move regression fails on base in 5 seconds (test exit 101); it also requires a single file event to update quota while a full recount is blocked. I will use native filesystem events for incremental updates and directory/overflow repair, keep polling only when native watching fails, keep concurrent-update history only while a recount is in progress, and trim freed recount memory through the existing memory module. No gate subtraction is proposed: sleep measured zero and the empty-Home server is orders of magnitude below the failure. No budget changes.
Implementation and review update: filesystem events now update individual usage paths; directory moves/removals and coalescing overflow request a full repair. Native watching excludes access events and symlinks. Startup installs the watcher before the initial walk, and a weak worker plus watcher ownership on Usage allows shutdown when the counter drops. Unsupported or failed native watching retains the 60-second fallback. Only writes overlapping a recount retain reconciliation history, and the existing memory module trims freed recount maps after a quiet burst.
Read-only review found and fixed fallback starvation under steady events and relative-directory-symlink double accounting. A third deterministic regression checks that gathering stops at its deadline under queued events. All three tests failed before their fixes, then passed. Full fsio suite: 42 passed, 0 failed. Coverage includes outside file edits without a recount, cross-person directory moves and deletes, users-tree creation/replacement, symlink exclusion, concurrent writes/deletes during a recount, bounded history after a failed recount, and expired fallback/gather deadlines. Tests use condition checks and channels, with no fixed sleeps. The configured data root is assumed stable for the server lifetime; users subtree replacement is supported. No material review findings remain.
fmt, clippy, workspace tests and a release build are now running under perf-run.sh/build-slot.sh and the exclusive perf lock. Final three reports will retain every failure and use unchanged budgets.
Full before report on
d83e54db(product/perf code identical to baseline3d0c6e33) completed at 10k and 100k with the original five warm runs, three cold runs and 300-second idle windows. No scenario failure; 17 successful internal cache helper calls plus the outer cache drop. The 100k cold-open and tag-list failures reproduce. Existing idle CPU and RSS failures are retained. Full report is saved outside git and will accompany the final comparison. Gate output verbatim:727-server-1 on perf-test-01, source
135a01a9df. Process exit 1; elapsed 1268.4 seconds. Successful internal cache drops: 17; perf-run.sh also dropped guest caches before the report.Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
Fixture Home and app state deleted. Gate output verbatim:
PR #727 first server repetition finding (
135a01a9; two repetitions still pending): at 100k, home.page_tag p95 is 6.067 ms versus dev median 58.0718 ms, and idle CPU/wakeups are both zero versus dev about 0.6% CPU. Idle RSS is 71.45 MiB. Note-open p95 is 25.463 ms, still over 15 ms. New budget failures versus all three saved dev reports: cold.startup 952.833 ms versus dev 140.251 / 326.884 / 131.427; open.long_note 862.964 ms versus 168.838 / 148.392 / 130.451; startup.healthz 505.097 ms versus 244.965 / 145.564 / 213.388. These are observed source-level differences, not isolated hardware attribution. At 10k all blocking budgets passed. No scenario failures at either size. Full report and verbatim gate output: #686 (comment) . I will retain this repetition and collect the remaining two, then compare fix3 separately.Cold-open profiling finding on the unchanged binary: the 24 join intervals average 51.125 pread64 calls on meta.db and 56.292 pwrite64 calls on meta.db; note files are opened twice per join. History averages 5.625 page reads (0.108 ms aggregate syscall time per join), versus metadata page reads 8.817 ms and note-file read syscalls 18.069 ms. These are traced timings, not gate numbers. Intervals include concurrent background work, especially the first join; they are not exclusive per-request CPU attribution. Source confirms every room load calls live_meta, which rereads, describes and applies note/tag/link/plugin rows even when the saved file and list stamp already agree. A regression test now checks that a clean indexed open makes zero metadata writes; it is running against the old behavior before the fix.
Perf profiling is BLOCKED by host policy. The attempted perf record exits 255: perf_event_paranoid is 3 and performance monitoring is denied. I will not change host policy. strace -c and detailed -T traces succeeded and remain outside git.
Actual fixture database query plans (system SQLite version shown; no data values printed):
The clean-open regression failed on the old code exactly as intended: metadata total_changes increased from 4 to 7 for one unchanged indexed file. After the focused change, all three clean/stale/invalidated-open tests pass, and the adapted #727 tag visibility/cursor/filter test passes (including a rare tag). The fast path still verifies the current file against the room saved hash, then checks its existing indexed id/path/stamp/title. Dirty text or a changed, missing or invalidated row still goes through the existing format and plugin describers. History synchronization, write ordering and recovery code are unchanged. Live metadata code moved into a small module so meta.rs shrinks. Release measurement is next; no performance success claimed yet.
Old behavior regression output verbatim:
New targeted output verbatim:
Code frozen at
5286d9af91on perf/idle-honest. Working tree is clean; only product code and tests were committed. Review has no remaining material findings. Final code gates ran under perf-run.sh and build-slot.sh, with cargo -j3. Workspace tests: 1161 passed, 0 failed, 20 ignored across 87 test summaries. Final clippy used --workspace --all-targets --locked -- -D warnings and emitted no warnings.Gate status verbatim:
Release build output verbatim:
The fixed loaded-Home control and three full server reports are now running on that frozen source. Each report uses 10k and 100k Homes, 5 warm runs, 3 cold runs, 300-second idle windows, separate XFS Homes/ext4 state, and cache drops before every start. Binary and unchanged-budget hashes are captured before and after the run batch. The branch has not been pushed yet.
Controlled before/after result on frozen head
5286d9af91. Same 100k fixture Home, same data/state paths, two-arena allocator, THP disabled, caches dropped before each server start, 65 seconds settling and an untraced 300-second window:Each concurrent sleep control used zero ticks, scheduler runtime and context switches. RSS fell by 29.375 MiB (31.1%); anonymous memory fell by 29.25 MiB. File-backed RSS stayed essentially unchanged (17.25 / 17.13 MiB). The corrected loaded window was 300.016008 seconds.
The following 65-second strace -f -c attached successfully to the fixed server and reported no completed syscalls (empty summary). The base trace recorded 369169 calls, almost entirely a periodic metadata walk. The fixed server did not scan, checkpoint, flush, or wake in its untraced window. The unchanged idle.cpu_pct and idle.rss budgets are met by this control. No floor subtraction is warranted: sleep was zero and the empty-Home cost is far below the budget. Three full reports are now running; control success does not replace those gates. Evidence stays outside git.
First candidate pilot completed with exit 0. This diagnostic uses three warm starts, one cold start and no idle window, so it is not one of the three required full reports. 10k open.note/tag p95: 3.759413/5.464012 ms. 100k: 11.858287/5.516104 ms, against unchanged 15/50 ms budgets. This supports the metadata-write diagnosis.
Review found a correctness gap before final gates: a same-size outside edit preserving mtime could reuse stale tags. The regression failed with [work] instead of [play]. Row reuse now also requires the cached raw file hash to match the verified saved bytes. Hashes are computed on file descriptions, not on live keystrokes or search-only reads, and reused from the existing save hash after flushing. The derived cache schema is versioned to populate them.
The schema-upgrade test also exposed an existing rebuild bug: dropping notes left the old total and backlinks. It failed with total 1 instead of 0 on an empty rebuilt store. Rebuild now resets the derived counts and links with the rows. The final fixture uses standard markdown links; an initial test fixture used unsupported wiki syntax and that failed test attempt is retained. The five open-path tests (including BOM/CRLF and saved history), upgrade test and #727 tag test now pass. A release build including a real version-4-shaped cache upgrade test is running, then the pilot and full gates will be repeated. The first candidate and every failed test/report remain in the evidence.
Preserved-mtime failure verbatim:
Cache-upgrade failure verbatim:
Final targeted results:
727-server-2 on perf-test-01, source
135a01a9df. Process exit 1; elapsed 1271.5 seconds. Successful internal cache drops: 17; perf-run.sh also dropped guest caches before the report.Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
Fixture Home and app state deleted. Gate output verbatim:
The revised hash-verified candidate passes the second diagnostic pilot (exit 0; three warm starts, one cold start, idle omitted). 10k open.note/tag p95 = 3.685094/4.395566 ms; 100k = 9.863236/4.706921 ms. All nine internal cache drops succeeded; no scenario failures. The 100k cold index is 17.835289 s versus 16.794351 s in the full before report; cold writes are 784.982016 versus 771.387392 MB, and cold peak RSS is 175.726563 versus 178.058594 MiB. These are diagnostics with different repetition counts, not the final three full gates. The schema upgrade test with an actual old column layout passes. An after trace is running, then fmt/clippy/workspace tests and three full unchanged server reports.
The first after trace produced no open samples: its 180-second readiness deadline expired while strace traced the version-4 cache upgrade and full refill of the retained before fixture. The diagnostic wrapper then terminated only its own recorded server process group. Logs and the failed trace are retained. This is not a server gate failure; the revised untraced pilot completed 100k cold indexing in 17.835289 s. I am repeating the open-count trace against the already indexed version-5 pilot fixture, with the same fixture seed and note sample ids, to isolate opens instead of the upgrade. Traced wall-clock values remain diagnostic; full gate timing will be untraced.
The after trace on the indexed version-5 pilot fixture completed all 24 opens and shut down normally. Across those join intervals, metadata page reads fall from 51.125 to 3.125 per open and metadata pwrite64 calls fall from 56.292 per open to ZERO across all 24 intervals. Metadata read syscall time falls from 8.817 to 0.256 ms per interval; history reads remain small (4.958 per interval, 0.091 ms aggregate syscall time). Each note is still opened twice and read from its Home; no note-content cache was added. Slow tail syscalls are now note-file reads. These traced times are diagnostics, not budget results.
Before and after traces use distinct instances of the same seeded 100k fixture and the same sample ids. Both have overlapping background stat work, so interval counts are not exclusive per-request CPU measurements. The clean-open regression independently verifies zero metadata writes. CPU perf sampling remains blocked by host policy.
The exact new cache check uses the note primary key, not a vault scan:
Fmt, clippy and workspace tests are now running serially under perf-lock/build-slot with cargo -j3.
Final source and binary integrity checks pass. Fmt, clippy with warnings denied, and the full locked workspace test suite all exited 0 under perf-lock/build-slot (cargo -j3; workspace test threads 3). The frozen candidate-2 binary and unchanged budget hashes match their manifests. Starting three complete server reports now: 10k and 100k, five warm starts, three cold starts, original 300-second idle windows and storm settings. Every report outcome will be posted, including existing idle budget failures or any new regression.
Clippy gate terminal output verbatim:
Workspace result lines verbatim (full log retained for attachment):
Fmt output was empty; process exit=0.
Full server report 1/3 completed on frozen head
5286d9af91. server-1 exit 1. Each size uses 5 warm runs, 3 cold runs and the original 300-second idle window.Scenario failures: none.
Gate output verbatim:
Audited internal cache drops: 17 of 17 expected. No repetition or budget was replaced. Raw JSON, markdown and stderr remain outside git; the complete evidence archive will be attached when all reports finish.
Read-only code review found one minor normalization edge, reproduced before changing code. The scanner removed all leading BOM characters while the live format decoder removes one. With two BOMs, frontmatter and a matching later H1, byte/hash/stamp/title equality could retain pinned fields parsed from different normalized text. The regression failed because pinned remained true when the room text did not recognize that frontmatter. The scanner now calls the existing text::decode format module, removing the duplicate normalization rule. Tests are running before another release build.
I cancelled the candidate-2 full report after its first 10k warm start began, to avoid completing reports for code that needed this correction. Only the recorded coordinator PID 143352 and its recorded timeout PID 143364 were signalled; ownership, command arguments and process start times were checked and recorded first. The timeout stopped its own harness/server group. No unrelated process was touched. Partial output is retained as candidate-2-full-aborted.log/exit=143 and will not count as a full gate. Final reports will restart on one corrected binary.
The first reproduction fixture incorrectly assumed the generated daily id and failed NotFound; that attempt is retained too. The corrected regression used the indexed id and failed on the intended pinned-field assertion. Its output verbatim:
727-server-3 on perf-test-01, source
135a01a9df. Process exit 1; elapsed 1271.9 seconds. Successful internal cache drops: 17; perf-run.sh also dropped guest caches before the report.Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
Fixture Home and app state deleted. Gate output verbatim:
727: server, 10000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
727: server, 100000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
Further correctness review found a reachable accounting inconsistency in preliminary head
5286d9af: recount skipped directory aliases, but application writes and move bookkeeping could still insert alias keys. A 3-byte file written through an alias to 5 bytes was charged as 8 bytes; reversing a move into an alias was charged as 13 instead of 8. Those failures were reproduced before their fixes. Writes, known-size bulk writes, deletes and both file/directory move prefixes now use the same normalized real-file key. Existing real directory parents take one set lookup and no additional filesystem calls; only new or alias parents resolve, without a vault walk.Only this job’s recorded process IDs were stopped, with parent and start-time checks saved in evidence/stopped-preliminary-pids.json. The complete first report at
5286d9afremains retained under evidence/preliminary-5286d9af, including all failed budgets. The second report was stopped and is retained as incomplete, not counted as a final gate. The queued long-note diagnostic was cancelled before it started. No shared or unrelated process was killed.All 43 fsio tests pass after the correction, including application writes, bulk writes, deletes and file/directory moves through aliases. Code gates and three full reports will be rerun on a new frozen head. The earlier empty/sleep controls and before/after CPU/memory/syscall evidence retain their original source labels; they are diagnosis, not substitutes for the final reports. No budgets changed and nothing has been pushed, merged or deployed.
Corrected candidate-3 is now frozen. The scanner delegates to the same text format decoder as rooms; the double-BOM regression passes and the reviewer confirmed the correction closes the finding. Fresh fmt, clippy (all targets, warnings denied) and full locked workspace tests all exit 0. Candidate-3 source and binary, frozen before binaries and unchanged budget hashes all pass integrity checks. Three complete reports have restarted with the original settings; the cancelled candidate-2 partial run remains separately retained. Final report 1 is running.
Clippy terminal output verbatim:
Workspace result lines verbatim:
Fmt output was empty; process exit=0.
727-tasks-100000-1 on perf-test-01, source
135a01a9df. Process exit 0; elapsed 829.9 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
Fresh workspace validation caught counter_concurrent_mutations_drift_and_restart with 16577 bytes charged instead of 16440, exactly one 137-byte file too many. Review confirmed that a concurrent walk can observe both names around a rename. Move bookkeeping removed the source, then overwrote an already-cached destination without subtracting its old charge. Subsequent refreshes preserved that excess.
A deterministic regression reproduced the same invariant failure (6 bytes charged for one 3-byte file) before the fix. Move bookkeeping now subtracts the destination’s prior cached size before adding the moved size. The recount write journal and cleanup ordering were also reviewed; no separate material race was found. Full fsio suite: 44 passed. The original concurrent auth-counter test then passed 10 consecutive targeted runs. The failing workspace output is retained under evidence/alias-validation-failure; expected red tests and all later results are retained too.
Fresh fmt, warnings-as-errors workspace clippy, workspace tests and release build are running again. Three final full reports will start only after those gates pass and the new head is frozen. No budgets, merges, deployment or issue state changed.
Final source frozen at
7c2e78cc33on perf/idle-honest. Working tree is clean. The fresh full workspace gate passed: 1163 tests, 0 failures, 20 ignored across 87 summaries. Strict workspace/all-target clippy used -D warnings. Alias writes, both move directions, directory prefixes and replacement of an already-counted move target are covered by regressions that failed before their fixes; the concurrent auth counter test also passed 10 targeted repetitions.Code gate output verbatim:
Release build output verbatim:
Three fresh full server reports have started on this head, each with 10k and 100k Homes, 5 warm runs, 3 cold runs, the original 300-second idle windows, separate XFS Homes/ext4 app state, audited cache drops before every server start and unchanged budgets. Hashes are captured around this batch. The complete preliminary report at
5286d9afand its interrupted second run are retained separately and will not count toward these three final reports. The earlier sleep/empty controls and syscall/memory diagnosis keep their original source labels. No push, PR, merge or deploy has happened yet.Completed evidence is attached to this issue. These are the full current before report and the fresh code-gate outputs for corrected candidate-3; both code gates exited 0. Formatting also exited 0 with empty output.
The three full server after reports are still running. The comparison and final head SHA will follow when all three finish.
727-tasks-100000-2 on perf-test-01, source
135a01a9df. Process exit 0; elapsed 893.8 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
perf-open-note, branch perf/open-note-cold. Candidate binary SHA256: 2850fdebd3591b1c5f29a17156d6529dc6d67e91e1bc7da22276843daeeba274
Final full server report 1 of 3 on the frozen candidate-3 binary. Both 10k and 100k; original five warm starts, three cold starts, 300-second idle windows and budgets. Internal cache helper successes: 17/17. Process exit 1.
10000 notes: open.note p95 10.383151 ms; home.page_tag p95 5.119303 ms; idle.cpu_pct 0.07333314467648534%; idle.rss 35.91796875 MiB; scenario failures [].
100000 notes: open.note p95 23.904924 ms; home.page_tag p95 5.657342 ms; idle.cpu_pct 0.6333297225875857%; idle.rss 100.453125 MiB; scenario failures [].
Gate report and budget stderr verbatim:
First final report follow-up: 100k open.note p50/p95 = 7.535720/23.904924 ms (309.6% spread in run medians). Cold index p50/p95 = 22.311515/62.251971 s, versus current-before 16.198034/16.794351 s. This fails the requested open target and adds a cold-index breach; it is not a successful final repetition. Tag-list p95 passes at 5.657342 ms.
Read-only indexed lookups after the completed report found all first 350 fixture sample rows present with a file hash, file stamp and matching path. For the first four open-sample groups, stored titles and hashes also match the prior pilot cache; the pilot legitimately deleted the fifth group in its shorter trash scenario. The snapshot does not prove cache-hit timing during the measured opens, but no missing-hash explanation emerged. A brief passive process/CPU observation during report 2’s 10k idle phase showed no competing local heavy process, no swap, and 99% guest CPU idle in the last two intervals; that observation does not establish load during the earlier 100k measurements.
Reports 2 and 3 continue unchanged on the same frozen binary. I will retain every result and investigate the remaining foreground wait if the target still fails; no threshold or durability change.
727-tasks-100000-3 on perf-test-01, source
135a01a9df. Process exit 0; elapsed 944.1 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
727: tasks, 100000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
727-tasks-10000-1 on perf-test-01, source
135a01a9df. Process exit 0; elapsed 81.8 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
Full server report 1/3 completed on frozen head
7c2e78cc33. server-1 exit 1. Each size uses 5 warm runs, 3 cold runs and the original 300-second idle window.Scenario failures: none.
Gate output verbatim:
Audited internal cache drops: 17 of 17 expected. No repetition or budget was replaced. Raw JSON, markdown and stderr remain outside git; the complete evidence archive will be attached when all reports finish.
727-tasks-10000-2 on perf-test-01, source
135a01a9df. Process exit 0; elapsed 75.9 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
727-tasks-10000-3 on perf-test-01, source
135a01a9df. Process exit 0; elapsed 68.1 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
727: tasks, 10000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
PR #727 source
135a01a9measurement series is complete on perf-test-01: three full server reports and three task-operation reports per size. Every task gate passed in all six reports. Cold-growth values: 100k 3.2116746197507746 / -2.86300513466233 / -3.026769012303095%; 10k 6.16228997218805 / 2.36535385442853 / 7.838109551294546%. Each task report has 15 alternating pairs and 30 audited successful internal cache drops. Negative ratios reflect variability in these elapsed-time medians, not negative task work. Historical dev uses a different cold endpoint (list-ready), so absolute cold numbers/growth are labelled accordingly.Server budgets fail in all three reports. At 100k, tag-page p95 improves from dev median 58.0718 to 5.654592 ms, idle CPU is zero in every report, and idle RSS is 71.45 / 74.09 / 74.42 MiB. Note-open p95 remains over 15 ms in every report (25.463 / 23.839 / 17.965). Readiness fails every 100k report, cold startup fails two, and long-note open fails one. The third report also has a 10k readiness failure. No scenario correctness failures. All original failures and samples remain retained.
Metric-by-metric dev comparisons:
All dedicated fixture Homes and state from this source have been deleted. Fix3
73bbcbfanow runs through the same series. No code or limit change.perf-open-note, branch perf/open-note-cold. Candidate binary SHA256: 2850fdebd3591b1c5f29a17156d6529dc6d67e91e1bc7da22276843daeeba274
Final full server report 2 of 3 on the frozen candidate-3 binary. Both 10k and 100k; original five warm starts, three cold starts, 300-second idle windows and budgets. Internal cache helper successes: 17/17. Process exit 1.
10000 notes: open.note p95 13.393766 ms; home.page_tag p95 5.012968 ms; idle.cpu_pct 0.06999970780488636%; idle.rss 35.06640625 MiB; scenario failures [].
100000 notes: open.note p95 34.379729 ms; home.page_tag p95 5.218831 ms; idle.cpu_pct 0.626663364207137%; idle.rss 100.40625 MiB; scenario failures [].
Gate report and budget stderr verbatim:
Full server report 2/3 completed on frozen head
7c2e78cc33. server-2 exit 1. Each size uses 5 warm runs, 3 cold runs and the original 300-second idle window.Scenario failures: none.
Gate output verbatim:
Audited internal cache drops: 17 of 17 expected. No repetition or budget was replaced. Raw JSON, markdown and stderr remain outside git; the complete evidence archive will be attached when all reports finish.
fix3-server-1 on perf-test-01, source
73bbcbfa45. Process exit 1; elapsed 1272.2 seconds. Successful internal cache drops: 17; perf-run.sh also dropped guest caches before the report.Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
Fixture Home and app state deleted. Gate output verbatim:
perf-open-note, branch perf/open-note-cold. Candidate binary SHA256: 2850fdebd3591b1c5f29a17156d6529dc6d67e91e1bc7da22276843daeeba274
Final full server report 3 of 3 on the frozen candidate-3 binary. Both 10k and 100k; original five warm starts, three cold starts, 300-second idle windows and budgets. Internal cache helper successes: 17/17. Process exit 1.
10000 notes: open.note p95 2.252483 ms; home.page_tag p95 4.516166 ms; idle.cpu_pct 0.05999984549699786%; idle.rss 36.41015625 MiB; scenario failures [].
100000 notes: open.note p95 15.004543 ms; home.page_tag p95 5.322661 ms; idle.cpu_pct 0.6266648375489833%; idle.rss 99.71875 MiB; scenario failures [].
Gate report and budget stderr verbatim:
Candidate 3 full reports are complete; none passes the unchanged open-note target. At 100k, open.note p95 is 23.904924, 34.379729 and 15.004543 ms. Tag-list p95 passes all three at 5.657342, 5.218831 and 5.322661 ms. Every report has 17 successful cache drops and no scenario failures. Cold.index breaches its 60 s budget in report 1; cold.startup breaches 500 ms in report 3. Existing idle CPU failures remain. All results are retained; no cherry-picking or budget changes.
The next diagnostic read 120 actual Home files with only inode metadata prepared, across five groups of 24 matching the report sample offsets. Each control used perf-run.sh --cold and build-slot.sh. Median group p95 read costs were 18.938856 ms, 6.379891 ms, 0.486192 ms. This varies too much to establish a mandatory 15 ms file-I/O floor, and two controls are below it. I am measuring server phase waits using an external diagnostic binary and the unchanged Rust report harness. The Python probe had a different scan barrier, prelude, client decode endpoint and socket setting, so its latency cannot substitute for the full harness. No new product change yet.
Full candidate 3 reports and every-metric comparison:
The comparison marks all unchanged absolute budget results, values from all three runs, and changes above 20%. New blocking cold.index and cold.startup failures remain visible. These are failed reports, not approval evidence.
Acceptance gate blocked: the current change does not make open.note pass 3 of 3. The full candidate reports remain failed.
The diagnostic binary used the unchanged Rust report harness and its exact list/query/journal/open prelude, five warm runs and one cold indexing run, with idle omitted. It is a diagnostic, not another final report. Every group contains all 24 intended opens; logs are segmented by server restart to exclude other scenarios and earlier groups. File-read phase p95 by group: 23.277638 ms, 22.170169 ms, 29.569108 ms, 15.603143 ms, 20.316609 ms. Median file-read p95 is 22.170169 ms; median summed load-phase p95 is 24.211427 ms; Rust harness open.note p95 is 24.594597 ms. All five file-read phase p95 values alone exceed 15 ms. History checks are about 0.1 ms; reader/index/update lock waits are negligible in these samples. Metadata lookup p95 varies from 0.77 to 4.44 ms. The earlier syscall trace also shows actual Home file read calls taking 20.367, 21.011 and 21.875 ms, rather than a metadata lock wait.
This establishes where this measured tail remains; it does not establish a universal disk floor, since the separate raw controls varied. Removing the remaining read would require a content-cache/freshness design beyond this verified metadata reuse change. I am preserving freshness and durability, retaining every failed result, and publishing a partial draft PR. No budget or harness changes. Temporary timing edits were restored exactly; the final product source and frozen candidate binary hashes match the three full reports. fmt, clippy and workspace tests passed on that source. CPU perf sampling remains unavailable because perf_event_paranoid=3.
Finished this unattended job with partial draft PR #751.
Head:
7dadf737b5. Branch: perf/open-note-cold. Base:d83e54dbe5. The remote PR head matches; draft=true, base=dev, merged=false. The worktree is clean. No merge, deployment or issue closure.The requested acceptance gate remains blocked. Tag-list passes all three full runs, but open.note at 100k is 23.904924, 34.379729 and 15.004543 ms, all above 15 ms. Every full report failed. New cold.index/cold.startup outliers and existing idle failures are recorded below and in the full comparison. Do not treat this draft as performance approval.
The code reuses verified clean metadata through the existing plugin interfaces and reuses PR #727's independent covering tag-count query. Correctness regressions and cache upgrade tests pass. The remaining measured tail is dominated by actual Home file reads: the separate five-group diagnostic has median file-read p95 22.170169 ms. Attribution and limits.
Evidence archive includes before/after reports, all-metric comparison, query plans, syscall counts, phase analysis, commands and hash manifests. Individual full reports. Artifacts are outside the repository; only product code and tests are committed. Source and frozen binary integrity checks passed after restoring diagnostic edits. CPU perf sampling was denied by host policy (perf_event_paranoid=3).
Gate output verbatim, including the report tool's rounding:
Cleanup finished: removed only this job's seven cloned Home folders and seven matching state folders. Retained server logs. The bounded log watcher exited on its own timeout; no unrelated processes were stopped.
Full server report 3/3 completed on frozen head
7c2e78cc33. server-3 exit 1. Each size uses 5 warm runs, 3 cold runs and the original 300-second idle window.Scenario failures: none.
Gate output verbatim:
Audited internal cache drops: 17 of 17 expected. No repetition or budget was replaced. Raw JSON, markdown and stderr remain outside git; the complete evidence archive will be attached when all reports finish.
Startup follow-up on the same indexed 100k Home and state paths, alternating 10 baseline/candidate pairs with caches dropped before every server start, two-arena allocator and the same perf lock. The probe times spawn to the first successful /healthz, then stops only its recorded child. All 20 starts completed.
This short control did not reproduce the 406/412 ms startup outliers from final report 1. It does not replace or clear those failed full-report gates. Raw per-start values, process IDs, logs and exact commands are retained. The candidate is frozen head
7c2e78cc; baseline is the saved unchangedd83e54dbbinary.The final long-note maximum in report 3 was 491.464338 ms while its median was 137.720717 ms (five single samples). A same-harness base/candidate comparison with five warm runs and idle disabled is now running under the perf lock to check that outlier without repeating the 300-second windows. Those diagnostics will not replace any full report.
perf-open-note-2 started. Branch perf/open-note-state-evaluation-2, base
7dadf737b5(draft PR #751). Evaluating whether SSD state can prove the Home revision current before bypassing HDD reads. Checking never-opened notes, edits while stopped, watcher lag, same-size edits preserving mtime, renames and Trash. This job uses perf-test-03 and the prior HDD Home/SSD state layout as requested. No merge or deployment. The forge ignores pushes to open PR branches, so changes will use this new branch and a replacement draft PR linked to #751.State-copy investigation: the proposed current-revision proof does not exist in today's storage interface. room/load.rs reads Home before settling against NoteRow.base_hash; base_hash identifies the last materialized bytes, not the current file. search::stamp and scan-state.tsv contain only size, mtime and path, all of which an outside writer can preserve. watch.rs batches notifications for 150 ms and explicitly permits missed events. Neither a completed scan nor the latest app journal position excludes an unreported outside write. Also, an imported file has no history row until first open (room/load.rs::seed); the unchanged perf harness deliberately opens different imported notes each run (scenarios/mod.rs::Ctx and scenarios/open.rs). Thus the proposed history fast path cannot cover the measured first opens even if freshness were solved. Search keeps stripped Markdown, not an exact recoverable file copy.
I am adding deterministic regression cases for an unchanged history row with changed Home bytes, offline edits preserving the scan stamp, missed removal, offline rename and Trash/restart. I will temporarily inject a state-only bypass to verify those cases detect stale reads, then restore the safe product path and run fmt, clippy and workspace tests. No unvalidated cache will be shipped. The prior full reports remain the runtime baseline; no speedup or new before/after candidate is claimed. Next best option is #731 placing claimed text on SSD while keeping direct Home verification. A separate byte-cache would need import coverage and an actual filesystem version/exclusion contract, rather than watcher silence.
fix3-server-2 on perf-test-01, source
73bbcbfa45. Process exit 1; elapsed 1363.9 seconds. Successful internal cache drops: 17; perf-run.sh also dropped guest caches before the report.Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
Fixture Home and app state deleted. Gate output verbatim:
The correctness experiment rejected the state-only shortcut. All 6 new tests pass on the existing Home-verifying path. A temporary bypass that reconstructs saved history and publishes it before reading Home fails 4/6: missed outside edit, offline edit, offline rename with changed bytes, and missed removal. For both edit cases the old and new file have identical size, mtime and path; the stored history row is still unchanged. The missed-removal case returns an old successful Snapshot instead of NotFound. Trash/restart stays closed through existing identity checks. The temporary fault was restored byte-for-byte; only regression tests and a lasting comment explaining the Home check remain.
Exact mutation gate summary:
Blocking condition for this idea: current state, journal and scan stamps do not prove the current file revision, and never-opened imported notes have no history copy. No passing performance result is claimed. Since no runtime optimization survives correctness, there is no distinct before/after binary to measure. I am retaining the prior three full reports as baseline evidence and running fresh code gates. Repeating six full reports of identical runtime code would not evaluate a state fast path. The next best option is SSD text placement (#731), or a separately scoped filesystem revision contract plus import snapshots.
Fix3
73bbcbfaserver repetition 2 adds an observed cold-index budget failure at 100k: p95 69.755234016 s against the unchanged 60 s limit. This repetition is retained; it will not be replaced. Its 100k cold-startup 535.578499 ms also fails 500 ms, note-open 25.47969 ms fails 15 ms, and readiness 662.029796 ms fails 300 ms. At 10k readiness is 303.877481 ms, narrowly over 300. All scenario correctness checks pass, tag paging and idle pass. Full report and gates: #686 (comment). I will compare all repetitions and profile the cold path before claiming the candidate has no regressions. A 61-second plain task sample was also observed in the preceding PR #727 series; storage variability is a hypothesis to test, not a reason to discard this failure.perf-open-note-2 finished its evaluation; the 15 ms acceptance target remains unmet.
Head:
bdd5b6fa52on perf/open-note-state-evaluation-2. Pushed only this new branch. Draft PR #752: #752 continues #751, which remains unchanged and open. No merge, deployment or issue closure.The proposed shortcut cannot safely use the current journal, watcher and scan stamps as proof of the Home revision. Imported files also lack history before their first open, including the notes opened by the unchanged benchmark. A temporary state-only bypass failed four tests by returning stale bytes after missed/offline edits and an offline rename, or returning content after removal. The safe Home-verifying path passes all six. The mutation was restored before final gates; only six regression tests and a lasting code comment were committed. A separate read-only review found no important issues and agreed this conclusion applies to the current evidence, not every possible state-backed design.
Fresh validation: fmt, clippy with warnings denied, and locked workspace tests all exit 0. Workspace aggregate: 1,168 passed, 20 ignored across 87 suites. Targeted tests: 6 passed. Budgets and perf harness are unchanged. Full logs, exact commands, and the failed mutation output are attached: https://git.kayg.org/attachments/07cb8b40-a95c-45c3-af04-49f56e3b4b6f
Fresh gate output verbatim:
No new full server before/after reports were run: no distinct runtime optimization survived correctness evaluation. The prior frozen-runtime full reports remain the baseline, not fresh results: 100k open.note p95 23.904924 / 34.379729 / 15.004543 ms, all above 15; tag-list passed 3/3. Prior full reports and all budget failures: #686 (comment). Prior measured file-read tail: #686 (comment).
Next best option: #731 placing claimed text on SSD while keeping Home verification. On today's layout, overlapping independent history loading with the Home read is a smaller experiment, but it cannot remove the already measured file-read tail and is not claimed to meet the budget. A separate SSD snapshot cache needs exact import snapshots and an enforceable filesystem revision or writer-exclusion contract before a safe bypass can be measured. Watcher silence alone is insufficient.
Final follow-up diagnostic, same harness with 100k notes, 5 warm runs, 1 cold run, original workload repeats and idle disabled, caches dropped before every server start. Both runs are retained, including every failed gate.
baseline diagnostic gate output verbatim:
candidate diagnostic gate output verbatim:
The unchanged baseline also fails the long-note and startup budgets on this guest. This comparison did not reproduce the final candidate’s 491 ms long-note outlier. It does not establish a cause for every wall-time outlier, and none of the three failed full reports was replaced or cleared. All final idle CPU, wakeup and 100k RSS gates passed. Full raw diagnostics and commands will be attached with the final evidence archive.
Finished perf-idle. Pushed branch perf/idle-honest from base
d83e54dbe5. Head:7c2e78cc33. Draft PR: #753 (draft flag verified). No merge, deploy, budget change or issue closure.The idle cost was real application work: storage usage walked the whole Home every 60 seconds. Unchanged loaded control used 183 ticks over 300.015527 seconds (0.609968% CPU), while concurrent sleep used zero. Empty Home used one tick and only 0.489217 ms scheduler runtime. No VM-floor subtraction is proposed. Strace attributed the loaded work to a metadata walk, not journal flushes or SQLite writes. The isolated counter kept about 24 MiB live and a recount left about 21.9 MiB reclaimable heap. Filesystem events now keep the counter asleep; repairs retain concurrent-write history only while walking, and freed maps use the existing memory module. Alias writes/moves and already-observed move targets are covered by regressions.
Final three full reports, all on the head above, each with 10k/100k Homes, 5 warm runs, 3 cold runs, 300-second idle windows, XFS Homes and separate ext4 state:
All final idle CPU, wakeup and 100k RSS gates pass. The full reports still exit 1 for other server budgets; none was replaced or cleared. All 51 expected internal cache drops succeeded, plus the wrappers’ drops. The six idle windows total 1800 seconds, with zero measured CPU ticks and wakeups. Binary, harness and budget hashes stayed unchanged, source is clean, and FINAL_INTEGRITY=PASS.
Code gate output verbatim:
Workspace tests: 1163 passed, 0 failed, 20 ignored across 87 summaries. The 44-test fsio suite passed; the concurrent auth counter regression passed 10 targeted repetitions. Expected red tests, the complete preliminary report and interrupted preliminary run, and the failed validation that exposed counter drift are retained separately in the archive.
Release output verbatim:
server-1 — exit 1. Gate output verbatim:
server-2 — exit 1. Gate output verbatim:
server-3 — exit 1. Gate output verbatim:
Follow-up controls do not replace these gates. Twenty alternating cold startup checks had baseline/candidate p95 160.166 / 127.831 ms, all below 300 ms. The five-warm diagnostic had baseline/candidate long-note p95 274.361 / 156.376 ms and startup p95 334.951 / 123.924 ms; the baseline also fails those budgets. The final report’s 491 ms long-note outlier was not reproduced in that comparison. These samples do not establish a cause for every wall-time outlier. Perf record was denied by kernel policy; successful strace, scheduler counters and smaps supplied the diagnostic evidence. Underlying host cache policy is supplied by the job; guest drops were verified.
Complete raw JSON, reports, stdout/stderr, proc snapshots, traces, expected failing regressions, validation logs, command scripts and a SHA-256 manifest: evidence archive. Archive SHA-256: 8aef16e0b0a61916ae816a0af6794781ddec1d7059d8f85801235eaf080aa239.
Cleanup: only this job’s disposable Homes and state were removed; 9 server logs were retained. Only recorded own measurement processes were stopped during the earlier correctness correction. No evidence or artifacts were committed. The repository contains only product code and tests for this change.
Independent review started for PR #753. Worktree: review-753, detached HEAD at
7c2e78cc33(source branch perf/idle-honest), base dev. No branch will be pushed. I will independently test storage-count correctness and recovery, idle behavior, and repair memory, and record findings as they are reproduced.Review base confirmed: dev
d83e54dbe5; reviewed head7c2e78cc33, detached review worktree. Evidence will stay uncommitted in findings.md and review scratch files.Independent review: PR #753
Head:
7c2e78cc33. Base:d83e54dbe5(dev).No pushes, merges or deployments. Evidence and temporary tests are uncommitted.
P1: hard-link writes leave quota permanently stale on a healthy watcher
Location: crates/fsio/src/usage/watch.rs:185-187 (path-only refresh) and run's event-only wait at lines 62-64.
Reproduction (native Linux watcher; no mocked events): create
users/a/Notes/awith 3 bytes and hard-link it asusers/a/Notes/alias; start Usage and wait for its initial background recount (6 bytes). Overwriteain place with 10 bytes using std::fs::write. Wait for a marker event in another Home to prove batch delivery. Cached usage is 13 bytes; explicit fresh recount is 20 bytes.hard_link_in_place_change_must_match_walkfails with left 13 / right 20.The watcher refreshes only the name in the event. The second name still has size 3 in the path map although both names now have length 10. The fresh walk intentionally counts both names, so this violates the existing logical-byte definition. No error or overflow is generated; healthy mode has no periodic repair. Unrelated file events do not fix the alias. This can undercount arbitrarily large writes (or overcount truncations) indefinitely, affecting quotas. Track affected inode aliases or provide a recovery mechanism for mutations that native directory events cannot fully describe.
Verification in progress
A first draft of the random-operation test had an invalid barrier (it compared a Home total containing unrelated files with just the marker size). That timeout is a test-harness error and is not a product finding. The barrier will use a separate Home before rerunning.
Second quota drift reproduced with an injected native-shaped event batch: initialize on empty Notes, create new directory, write new/a through write_atomic (7 bytes counted), outside-move the directory out of users, process its gathered creation/removal path. Cached=7, fresh walk=0. In watch.rs:128-137 Pending discards EventKind; at :176-188 the removed directory is absent from both the last snapshot's directory set and disk, so refresh(directory) leaves its cached children behind. A new recursive watch may miss child events before the move. Native reproduction is being checked before the final severity/verdict. Proposed fix: preserve folder event kind and repair on directory removals/renames regardless of cached/current directory status.
P1 confirmed with real native events, no event injection: prepare_new_directory([Notes/just-imported/attachment.bin = 7 bytes]); publish it and immediately outside-rename the new directory to data/exported in the publication callback; wait for an unrelated marker event in a separate Home. Cached usage is 7, fresh walk is 0. native_publish_then_outside_move_must_match_walk fails left 7 / right 0. This confirms the new-directory removal issue at watch.rs:128-137,176-188 can leave quota permanently overcharged.
Counter-only idle/memory measurement on 10by32-01-std under perf-lock.sh, 100,000 files, 65-second idle window:
MEASUREMENT_START cached=700030 retained_before_repairs=19159104 retained_after_five_repairs=19247824
IDLE seconds=65.006 cpu_seconds=0.002003 cpu_pct=0.003081 voluntary_context_switches=1 involuntary_context_switches=0 (includes one main-thread measurement timeout)
DRIFT_AFTER_65S cached_before=700030 cached_after=700030 fresh_walk=700040
MEMORY retained_after_counter_drop=251472
Only the measurement thread's timeout contributed a voluntary context switch; no additional background wakeups were observed. The tiny measured CPU total includes measurement bookkeeping and stdout. Retained allocator bytes stayed about 19.2 MB across five repairs and fell to about 0.25 MB after dropping the counter. The hard-link undercount remained unchanged beyond the former 60-second sweep interval. This measures the usage counter, not the full server or full performance gate.
P2: the PR's new deadline test is flaky and fails the unmodified targeted gate on this host. cargo test -j3 -p calternal-fsio --locked --lib -- --test-threads=1: 43 passed, 1 failed, gathering_stops_at_its_deadline_even_with_queued_events at watch.rs:211 (left Err(Empty), right Ok(())). It also failed in the first complete run. The same test passed in isolation.
Root cause: the test passes Instant::now() as a deadline and assumes the next clock read is strictly later. A standalone 10,000-iteration probe on this host found 6,872 consecutive Instant reads equal; an observed checked_duration_since result was Some(0ns). gather_until legitimately enters with zero remaining duration and recv_timeout(0) consumes the already queued item, invalidating the assertion. Give the test a deadline definitely in the past, without a sleep, or define the equality boundary explicitly. This is a test reliability finding, not evidence of an unbounded production gather loop.
Formatting and targeted clippy with -D warnings passed. The product tree has been restored to the exact reviewed head; only untracked review evidence remains.
Actual kernel IN_Q_OVERFLOW was verified after a finite burst of 2,100,000 alternating metadata operations while the native callback was deliberately blocked. No sysctl or other global host setting was changed. The real callback produced rescan=true, failed=true and cleared pending paths; apply repaired the total to a matching fresh-walk value of 6 bytes. The production run loop switches to 60-second polling on failed=true, with a deadline check that prevents continuous events from starving repair. Native watches are not automatically restarted; fallback remains enabled until the counter is reopened. The initial smaller burst was insufficient for this host's event queue capacity and was replaced by this successful run.
Independent review finished. Verdict: fix first. Reviewed head
7c2e78cc33, base devd83e54dbe5. Product tree restored to the exact head; no commits, pushes, merges, deployments or issue closure. Two P1 quota drift findings and one P2 flaky test are recorded in findings.md and posted above.The following gate output is verbatim. Full workspace, browser and full-server perf gates were not run.
baseline-gates.log
review-final-gate.log
idle-memory.log
deadline-gate.log
PR verdict posted and verified: #753 (comment)
Verdict: fix first. Forgejo returned HTTP 422 for formal REQUEST_CHANGES review creation; the verdict was delivered as a PR comment instead. Final head remains
7c2e78cc33. No tracked product changes or commits. Verbatim gate output is in the preceding finish comment.Starting perf-idle-2 from perf/idle-honest at
7c2e78cc33. I will fix hard-link accounting, moved-out published folders, and the equal-clock deadline test; add permanent reproductions and 10,000 randomized operation sequences; run the required gates and three server measurements. The job hard rule says updates to an open PR branch are ignored, so I will publish a new perf/idle-honest-2 branch and PR, and comment with the results on PR #753. The supplied perf VM hostname currently fails DNS resolution; checking the configured peer address.fix3-server-3 on perf-test-01, source
73bbcbfa45. Process exit 1; elapsed 1235.8 seconds. Successful internal cache drops: 17; perf-run.sh also dropped guest caches before the report.Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
Fixture Home and app state deleted. Gate output verbatim:
fix3: server, 10000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
fix3: server, 100000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
Reproduced all three quota failures in permanent regression tests before the fix: hard-link overwrite cached 13 / fresh 20; outside hard-link write cached 3 / fresh 10; published then moved-out folder cached 7 / fresh 0. Expected failing run: 2 passed, 3 failed. Equal-clock deadline handling will now stop at equality as well as after the deadline, without a sleep.
The device/inode index now propagates shared-file observations to every charged name. Logical bytes retain the existing full-walk definition (each name charged). Directory kinds and rename uncertainty retain repair scopes; repairs walk the affected Home, and overflow repairs the root. To observe writes via hard links outside the watched directory, the native watcher also watches file inodes. Watching only currently multiply linked files would miss a link created outside the watched tree after startup, so singleton inodes need coverage too. This adds watch memory and startup work; measurements will report that cost. Healthy watchers remain event-only at idle.
The perf VM is reachable at NetBird IP 10.69.69.73. Its findings were read. It has perf-lock.sh but no perf-run.sh; I will use a job-owned copy of the supplied wrapper there, under the existing lock, without changing global scripts.
The 10,000-sequence full-walk comparison found a second hard-link edge case at seed 2820: write a shared inode, then unlink or replace the event name before the batch is applied. A surviving name kept its old length (cached Home total 336 versus fresh 359). An absent shared name is not an exact file deletion: the batch now repairs every affected Home found through the device/inode index. This has a separate permanent write-then-unlink regression. After the fix, all 10,000 sequences and the native reproductions pass. Current targeted suite: 53 passed, 0 failed.
The permanent native tests also check an external hard link created after watcher startup, followed by an atomic replacement that detaches the charged name. The repair scope test deliberately makes an unrelated Home too deep to walk, confirming a missing published folder repairs only its own Home.
Measurement limitation found: 10by32-01-std (10.69.69.73) is an OrbStack btrfs guest, has perf-lock.sh, and lacks perf-run.sh and the privileged cache-drop helper. sudo is unavailable without a password. The previous job's full cold-cache server reports were on the current perf-test-02 VM with the supplied perf-run.sh. I will retain the standard reports on this VM and separately exercise the requested 10by32 VM under its perf lock. I will label the different host/cache conditions explicitly.
Focused code review caught a performance issue in the first fix: a native rename event for an ignored .calternal-tmp-* source could promote repair to the users root. This is corrected before publication. Ignored paths are filtered before selecting repair scopes, and repairs now operate on the exact file or directory subtree. Exact-file repair uses a safe beneath-folder open and direct indexed removal; it does not scan every file or directory key. New published files register their parent directory shape immediately so an absent published directory still clears its cached descendants. A permanent regression makes another Home unwalkably deep and verifies both temporary-source events and real file rename events stay local.
The requested watcher lifecycle test also passes: remove or move the particular hard-link name chosen as the native watched representative, wait for coverage to transfer to the surviving name, then write through a new external hard link with no marker traffic or recount. The surviving Home catches up and the removed Home is zero.
Correction to the previous measurement note: the hard location rule takes precedence, so I will make the three new measurements on 10by32-01-std only. Previous cold-cache reports remain preserved; comparable new cold-cache reports are blocked on that VM's unavailable cache-drop helper. The unchanged 300-second idle windows can still be measured there.
Workspace formatting and clippy passed. Full workspace tests passed: details and exact counts will be included in the finish comment. The native ARM64 counter suite also passed (26 tests), with matching source hashes. Release builds and the 100-repeat counter gate are in progress. Three server reports are running sequentially on 10by32-01-std under its perf lock, using the job-owned copy of perf-run.sh; idle and budget source hashes are unchanged. These reports deliberately omit --drop-caches because that VM has no permitted cache-drop helper; they are labeled as unindexed starts without cache-drop control, not replacements for the earlier cold-cache reports.
fix3-tasks-100000-1 on perf-test-01, source
73bbcbfa45. Process exit 1; elapsed 812.4 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
List regression investigation for fix3
73bbcbfa: the first 100k tasks report has anytime_by_child_tag p95 30.95129 ms against 25 ms, while PR #727 passed all three corresponding reports. All other task gates pass, including cold growth 5.234338231530991%. Full failure: #686 (comment) .Source comparison shows child_tags changed from a covering tag range to a tag range plus one full task-row lookup for every child membership, even though it only needs the stable public id. This happens before the list filter. A read-only SQLite query-plan probe using the exact current schema confirms:
Hypothesis: retaining only the stable id beside tag membership, covered by the existing tag range index, will remove these random row lookups while retaining fix3’s compact membership and avoiding field rewrites. Proposed diagnostic plan (not yet implemented or measured):
Both probes use an empty in-memory database and establish access paths only; they are not performance measurements. I will finish the unchanged fix3 repetitions before implementing and re-measuring any fix. Limits remain unchanged.
fix3-tasks-100000-2 on perf-test-01, source
73bbcbfa45. Process exit 1; elapsed 792.2 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
The preliminary 100k server run found a real watch-install race absent from the small fixtures. A file removed between indexing and installing its inode watch makes Notify return ErrorKind::PathNotFound (message: "No path was found."). The transient handler covered io::ErrorKind::NotFound but missed this distinct variant, enabling the 60-second fallback permanently. The server log recorded it repeatedly at 23:09:44–23:09:52 UTC. This must be fixed to keep healthy idle event-only. I will add a deterministic test that removes an indexed file before the actual native watch install.
The same preliminary run sampled about 190–200 MiB RSS for the 100k server. The current design duplicates long paths in both the inode index and Notify's per-file watch maps. I will share index paths and use a compact Linux inode-watch adapter, while keeping Notify's recursive directory coverage and other-platform backend. The paused own report-loop PID is 730735; its current report continues to completion so its failed gate remains evidence. No other job was stopped. All 100 preliminary usage repetitions passed, but this VM finding correctly prevents publication of that candidate.
Preliminary report retained in full; neither this failure nor its gate output will be replaced by the final runs. The preliminary run completed both Home sizes with no scenario failures. Its gate exposed the transient-watch fallback and memory cost. The orchestration was stopped with exit143 after that report completed, before starting reports2/3.
Gate output verbatim:
The compact adapter and shared-path index now pass 28 targeted tests and clippy, including deterministic disappearing-file install and continuous-write teardown tests. Full workspace gates, 100 repetitions, and the ARM rebuild are rerunning. The three final server reports will use the corrected candidate.
fix3-tasks-100000-3 on perf-test-01, source
73bbcbfa45. Process exit 1; elapsed 795.1 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
fix3-tasks-10000-1 on perf-test-01, source
73bbcbfa45. Process exit 0; elapsed 70.3 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
fix3: tasks, 100000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
fix3-tasks-10000-2 on perf-test-01, source
73bbcbfa45. Process exit 0; elapsed 70.8 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
fix3-tasks-10000-3 on perf-test-01, source
73bbcbfa45. Process exit 0; elapsed 67.6 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
fix3: tasks, 10000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
Diagnostic profile fix3-profile-10k finished on unchanged fix3
73bbcbfa. Exit 0; elapsed 179.7 seconds. This is instrumented evidence and is excluded from the three uninstrumented gate repetitions. The fixture Home and state are deleted.strace syscall wall-time summary (sums across traced threads/processes, not percentages of elapsed time):
Final process accounting and output verbatim:
Code gates completed at
81e6141a2eon perf/idle-honest-2. Product-only commit: 8 files; evidence remains untracked. Workspace tests: 1176 passed, 0 failed, 20 ignored. Both x86_64 and ARM64 release builds passed. All 100 usage repetitions passed (28 tests each), executing 1,000,000 seeded operation sequences and 2,000,000 per-Home comparisons against independent full walks. This includes the real native hard-link and publication reproductions, the watch-install race and teardown under continuous writes.The three corrected server reports are still running on the specified VM. No publication, merge or deployment has occurred.
Code gate output verbatim:
Diagnostic profile fix3-resource-100k finished on unchanged fix3
73bbcbfa. Exit 0; elapsed 746.4 seconds. This is instrumented evidence and is excluded from the three uninstrumented gate repetitions. The fixture Home and state are deleted.Final process accounting and output verbatim:
Cold profile on perf-test-01, unchanged fix3
73bbcbfa, 100k base notes plus 100k task notes. Thirty diagnostic passes, same 15 alternating cold pairs, with successful cache drops. Counters are captured outside the timed section at each cache-helper boundary. Their enclosing window includes the following cache-state cleanup/sync control, so CPU/I/O deltas are diagnostics rather than replacement gate timings. File open/read/pread/fsync/fdatasync durations are instrumented sums across threads; they may overlap and are not percentages of elapsed time. Kernel read_bytes/write_bytes and process CPU counters are reported directly. No gate repetition was replaced by this profile.All profiled passes:
Cold profile interpretation for fix3
73bbcbfa: plain/tasks settled medians are 22.6573 / 23.9560 seconds. Median kernel-reported reads are identical at about 1.19665 GB per pass. CPU totals are 20.2598 / 22.0921 seconds across all threads, and summed read-call wall time is 196.841 / 199.264 seconds across concurrent readers. This supports a large I/O wait component in the cold pipeline, with additional task CPU and writes: median write_bytes rises from 705.364 to 763.507 MB. Task store, after_fill and index-build stages contribute about 0.262 / 0.144 / 0.213 seconds respectively.The elapsed-time sum is not a CPU utilization percentage; thread waits overlap. The enclosing resource windows include the next cleanup/sync control. All 30 diagnostic passes remain available in the posted table: #686 (comment) . The strace summary is at #686 (comment) .
Largest settled diagnostic pass: 25116.662791 ms. The earlier 69.755-second server cold tail was not reproduced here and was not instrumented when it occurred, so I cannot prove its cause or claim it fixed. That failed report stays retained. Cold growth already passes all six original fix3 task reports; the product change will address the reproducible child-tag list regression while rechecking the same growth limit.
Server report 1 for
81e6141a2e. server-1 exit 0.10by32-01-std, ARM64, same-root btrfs. The standard wrapper is copied into the job folder and uses the existing perf lock. The VM lacks the privileged cache-drop helper: unindexed starts are included, but these are not cold-cache comparisons with the earlier split-root VM. Idle windows remain 300 seconds.
Scenario failures for 10000 notes: [].
Scenario failures for 100000 notes: [].
Gate output verbatim:
Raw JSON, full metric tables and stdout/stderr are retained for the final issue attachment. The failed preliminary report is retained separately.
Verification prerequisite blocker after the small child-tag fix: cargo test -p calternal-tasks -p calternal-notes -p calternal-memory exited 101. Memory passed 3/3. Notes passed 454, failed 1, ignored 6. The failure is room::save::tests::review::history_durability::independent_652_real_syncclient_joining_snapshot_is_not_saved at history_durability.rs:464 (empty JSON). Its Bun helper stderr gives the cause:
The focused field-edit/child-tag behavior test passed before the production change, and cargo fmt --all --check passed after it. I will install the checked-in Bun lockfile through the local build slot, then rerun the same scoped Rust tests. No dependency version or product rule will be changed to bypass this failure.
Child-tag fix is implemented in the tasks plugin only: live membership now retains its stable public id in the existing covering tag index. Child groups read that id directly, eliminating the per-membership full task-row lookup. Mutable sort fields stay in tasks, so field edits still leave unchanged tag memberships untouched. The derived-cache version is bumped to 17 for a rebuild through the existing describer mechanism.
The existing real Notes/Tasks field-edit test now also checks child-tag groups and counts while insert/delete/update triggers forbid membership rewrites. It passed on the original WIP before the production change and passes after it. The failing performance case is preserved in all three original 100k fix3 reports: child-tag p95 30.95129 / 25.139199 / 27.988104 ms, against 25 ms.
After installing the frozen Bun dependencies, the same scoped Rust command passes: memory 3, notes 455, tasks 51; six existing ignored notes tests. The previously failed real SyncClient test now passes. Formatting also passes. The new SQL plan is:
Lint/release checks and fresh performance reports follow. No performance limit, fixture rule or markdown format was changed.
Strict lint found one pre-existing WIP test issue: crates/notes/src/file_stamp.rs:83 uses std::fs::File::create for its temporary metadata fixture, triggering clippy::disallowed_methods under -D warnings. The repository already allows that lint locally for scratch-file tests. I added the same allowance to this one test function with a comment explaining the fixture; production file writes and lint policy are unchanged. The full scoped tests had passed before this test-only annotation. I will rerun the file-stamp tests, strict lint and release build.
Fresh validation starts at head
1d03e06f4aon perf/cold-growth-fix3, based on73bbcbfa. The committed diff contains product code, tests and code comments only (four files); no evidence or budget change. Formatting, strict clippy for notes/tasks/memory with -D warnings, release build, 509 scoped tests (six ignored), and the four affected file-stamp tests pass.I will run three full task reports at both 100k and 10k (15 alternating cold pairs each), then an additional full server report covering both sizes. The originally requested sources each retain their three full server reports. All new results use separate labels and this exact head; no original failure is replaced. The final task-only change adds stable ids to the existing covering tag index and removes child-tag row lookups.
Binary checksums:
final-tasks-100000-1 on perf-test-01, source
1d03e06f4a. Process exit 0; elapsed 763.1 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
First fresh report at head
1d03e06f4a, 100k base notes plus 100k task notes, passes every task gate. Child-tag grouping p95 is 16.223772 ms versus original fix3 30.95129 / 25.139199 / 27.988104 ms. The real field-edit/child-group test also passes while triggers prohibit unchanged-membership writes.Cold-growth remains inside the original 10% limit at 3.3486658448443194% (plain/tasks settled medians 22462.055423 / 23214.234601 ms), with all 15 alternating pairs and 30 audited internal cache drops. Counts, describe and both update gates pass. Full samples and verbatim gates: #686 (comment) . This is the first of three required fresh 100k reports; 10k and the final server check remain pending.
Server report 2 for
81e6141a2e. server-2 exit 0.10by32-01-std, ARM64, same-root btrfs. The standard wrapper is copied into the job folder and uses the existing perf lock. The VM lacks the privileged cache-drop helper: unindexed starts are included, but these are not cold-cache comparisons with the earlier split-root VM. Idle windows remain 300 seconds.
Scenario failures for 10000 notes: [].
Scenario failures for 100000 notes: [].
Gate output verbatim:
Raw JSON, full metric tables and stdout/stderr are retained for the final issue attachment. The failed preliminary report is retained separately.
final-tasks-100000-2 on perf-test-01, source
1d03e06f4a. Process exit 0; elapsed 842.1 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
Server report 3 for
81e6141a2e. server-3 exit 0.10by32-01-std, ARM64, same-root btrfs. The standard wrapper is copied into the job folder and uses the existing perf lock. The VM lacks the privileged cache-drop helper: unindexed starts are included, but these are not cold-cache comparisons with the earlier split-root VM. Idle windows remain 300 seconds.
Scenario failures for 10000 notes: [].
Scenario failures for 100000 notes: [].
Gate output verbatim:
Raw JSON, full metric tables and stdout/stderr are retained for the final issue attachment. The failed preliminary report is retained separately.
final-tasks-100000-3 on perf-test-01, source
1d03e06f4a. Process exit 0; elapsed 761.3 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
final: tasks, 100000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
final-tasks-10000-1 on perf-test-01, source
1d03e06f4a. Process exit 0; elapsed 65.7 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
final-tasks-10000-2 on perf-test-01, source
1d03e06f4a. Process exit 0; elapsed 65.8 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
Finished perf-idle-2. New PR #754 uses
perf/idle-honest-2, head81e6141a2e, based on reviewed head7c2e78cc33. The requested finding → fix → test comment on PR #753 includes the full idle table.The counter shares observations by device and inode, handles link-count changes and outside hard-link writes, and repairs uncertain events at the affected file or subtree. Published folders moved out of Home release their charge. Equal deadline readings are expired. Compact Linux inode watches and shared paths keep healthy idle event driven and avoid the preliminary watch-memory regression.
Code checks: workspace tests 1176 passed, 0 failed, 20 ignored; 100 counter repetitions passed, 28 tests each. They execute 1,000,000 operation sequences with 2,000,000 per-Home comparisons against fresh full walks. ARM64 native tests and both release builds passed. The local cached release was refreshed after separating VM and local log filenames; its binary hashes remained unchanged.
All three server gates passed. Six unchanged 300-second idle windows measured zero CPU ticks and zero wakeups.
Measurements ran on 10by32-01-std, ARM64, same-root btrfs, using the supplied wrapper copied into the job folder and its existing performance lock. Its privileged cache-drop helper is unavailable, so unindexed starts have no controlled cache drops. The full non-gated disk-write warnings remain in the reports.
Code gate output verbatim:
Report 1, gate output verbatim:
Report 2, gate output verbatim:
Report 3, gate output verbatim:
Measurement integrity output verbatim:
The binary and budget hashes match before/after; source hashes match between local and ARM64 worktrees, including the unchanged idle scenario.
Evidence archive contains original failing regressions, developmental and preliminary failures, the full failed preliminary report, all corrected reports, gate logs, last-warm server logs, source/binary hashes and a SHA-256 manifest. Download verified. Archive SHA-256:
ae082d6ca8ee71b37c69d52e5792ca3d2bb62902c016581ce6df11df9d10331d. No evidence or artifacts were committed.Only the new branch was pushed. No merge, deployment, issue closure or change to the reviewed PR #753 branch was made.
final-tasks-10000-3 on perf-test-01, source
1d03e06f4a. Process exit 0; elapsed 65.3 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
final: tasks, 10000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
final-server-1 on perf-test-01, source
1d03e06f4a. Process exit 1; elapsed 1233.6 seconds. Successful internal cache drops: 17; perf-run.sh also dropped guest caches before the report.Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
Fixture Home and app state deleted. Gate output verbatim:
Final head
1d03e06f, additional full server check at 10000 notes. This is one final report (5 warm starts, 3 cold starts, 300-second idle window); the requested original PR #727 and WIP sources each retain three complete reports. Dev values are saved rounded medians from comments 68146–68147. Sources ran sequentially on perf-test-01 under the exclusive lock; backing-storage/host variability remains, so every change is not necessarily caused by code. No original failure was replaced.Full final server report and gate output: #686 (comment)
Final head
1d03e06f, additional full server check at 100000 notes. This is one final report (5 warm starts, 3 cold starts, 300-second idle window); the requested original PR #727 and WIP sources each retain three complete reports. Dev values are saved rounded medians from comments 68146–68147. Sources ran sequentially on perf-test-01 under the exclusive lock; backing-storage/host variability remains, so every change is not necessarily caused by code. No original failure was replaced.Full final server report and gate output: #686 (comment)
Final task results at head
1d03e06f4a. All five original task gates pass in each of the six fresh reports. Cold growth is ≤10% in 3/3 reports at both sizes, and the child-tag regression is fixed. Each report uses 15 alternating cold pairs and 30 audited internal cache drops. All original source reports and failures remain retained. Historical dev cold timing ends at list-ready; the candidate timer includes shutdown, empty WAL and sync -f. Those cold endpoints are not equivalent.Metric-by-metric final task comparisons against dev:
Finished perf-727-honest on perf-test-01. Pushed branch perf/cold-growth-fix3; head SHA
1d03e06f4a; starting WIP/base SHA73bbcbfa45. Opened draft PR #755 against perf/cold-growth-fix2: #755. No merge, deployment or issue closure. The committed change contains product code, tests and code comments; all evidence stays outside git and in these comments.Cold-growth target is met at the final head: ≤10% in 3/3 fresh reports at both sizes. Every other task gate also passes in all six fresh reports. The reproducible child-tag regression is fixed by retaining only the stable id in a covering membership index, while mutable fields stay in tasks and unchanged memberships are not rewritten.
Blocking server budgets remain at 100k in the additional final-head server check: open.note p95 18.335974 ms > 15 ms, startup.healthz p95 590.658554 ms > 300 ms. All other blocking budgets and scenario correctness pass in that check. The PR remains draft; this is not an all-green server series. The earlier WIP cold-index tail of 69.755234016 seconds is retained and its cause is not proven. It did not recur in the final check (cold.index 14.842916745 seconds), which does not erase that earlier failure.
Measurement coverage: three full server reports and three task reports per size for PR #727
135a01a9, the same for original WIP73bbcbfa, then three task reports per size plus one additional full server report at final head1d03e06f4a. Total: 25 reports, plus two explicitly separate diagnostic profiles. Every task report has 15 alternating cold pairs; all 30 internal helper cache drops succeed. Every server report has five warm and three cold starts per size, 300-second idle windows, and 17 successful internal cache drops. Each wrapper also drops guest caches. All dedicated fixture Homes/state are deleted. No failed source repetition was replaced. Historical dev cold timing stops at list-ready; candidates include shutdown, empty WAL and sync -f, so cold comparisons carry that endpoint caveat. Limits are unchanged.Cold profiles show about 1.197 GB of kernel-reported reads per pass in both variants; tasks add CPU and writes. Median CPU totals are 20.260 / 22.092 seconds across all threads, with settled medians 22.657 / 23.956 seconds. Read waits overlap across workers, so their wall-time sum is not a percentage of elapsed time. perf counters are denied in this guest; strace and process/I/O counters provide the diagnostic evidence. Instrumented results are excluded from the three gate repetitions. Profile table: #686 (comment) .
Verification: 509 scoped Rust tests passed across memory (3), notes (455) and tasks (51), with six existing ignored notes tests. The four affected file-stamp tests pass. Formatting, strict clippy with -D warnings and release build pass. The initially missing Bun dependency was resolved with frozen-lockfile installation; the real SyncClient tests now pass. The inherited scratch-file test lint is allowed only on that test function, following the repository convention. Those earlier failures remain recorded in comments 68635 and 68638.
Final verification output verbatim:
Metric-by-metric comparisons against dev and across candidates:
Final task summary: #686 (comment) . Evidence files and retained logs: /home/agent/codex-jobs/perf-727-honest/evidence (outside the repository).
Gate output verbatim for every report:
727-server-1; source
135a01a9df; #686 (comment)727-server-2; source
135a01a9df; #686 (comment)727-server-3; source
135a01a9df; #686 (comment)727-tasks-100000-1; source
135a01a9df; #686 (comment)727-tasks-100000-2; source
135a01a9df; #686 (comment)727-tasks-100000-3; source
135a01a9df; #686 (comment)727-tasks-10000-1; source
135a01a9df; #686 (comment)727-tasks-10000-2; source
135a01a9df; #686 (comment)727-tasks-10000-3; source
135a01a9df; #686 (comment)fix3-server-1; source
73bbcbfa45; #686 (comment)fix3-server-2; source
73bbcbfa45; #686 (comment)fix3-server-3; source
73bbcbfa45; #686 (comment)fix3-tasks-100000-1; source
73bbcbfa45; #686 (comment)fix3-tasks-100000-2; source
73bbcbfa45; #686 (comment)fix3-tasks-100000-3; source
73bbcbfa45; #686 (comment)fix3-tasks-10000-1; source
73bbcbfa45; #686 (comment)fix3-tasks-10000-2; source
73bbcbfa45; #686 (comment)fix3-tasks-10000-3; source
73bbcbfa45; #686 (comment)final-server-1; source
1d03e06f4a; #686 (comment)final-tasks-100000-1; source
1d03e06f4a; #686 (comment)final-tasks-100000-2; source
1d03e06f4a; #686 (comment)final-tasks-100000-3; source
1d03e06f4a; #686 (comment)final-tasks-10000-1; source
1d03e06f4a; #686 (comment)final-tasks-10000-2; source
1d03e06f4a; #686 (comment)final-tasks-10000-3; source
1d03e06f4a; #686 (comment)Diagnostic profiles, excluded from gate repetitions:
fix3-profile-10k
fix3-resource-100k
Starting the startup regression investigation on perf/cold-growth-fix3, base and current head
1d03e06f4a. I will compare cold startup on dev and this head at 100k notes using perf-run.sh, cache drops, strace and process I/O counters, and post the cause before changing code. Then I will run three fresh full server reports at each size and the task and Rust gates. The final task instruction to push only this branch takes precedence over the generic new-branch instruction. No merge or deployment.Startup cause found before the fix: Auth::open_with_state calls Usage::background on the readiness path. Since #727, background synchronously calls notify watcher.watch(parent, RecursiveMode::Recursive). That call walks every directory entry before returning; only the subsequent quota recount is on a background thread. Dev starts quota work entirely in a background thread. This is repeated on every server start, not a database migration or checkpoint.
Fresh 100k-note startup profiles on perf-test-01, perf-run.sh + perf lock + build slot, approved cache-drop helper before each launch, glibc arena_max=2. Compared saved dev
3d0c6e33with PR #755 head1d03e06f. Both used the same fixture and split state. strace -f -c was stopped at the first successful /healthz, so it includes background work concurrent with readiness.Detailed #755 trace: recursive registration starts at 1793236089.303428, walks Notes and Archive, finishes directory reads at 1793236089.379924; the next auth log is 1793236089.381495 and ready is 1793236089.406725. This places approximately 77 ms of tree traversal directly before auth returns. No fsync or fdatasync appears in either readiness trace. These instrumented probes isolate the extra walk; they are not replacements for the prior full-report 591 ms measurement or for the required fresh gates. Raw traces, process I/O samples and timestamped logs remain outside the repo under evidence/startup.
Fix: move native watcher registration itself to the quota background worker, preserving registration-before-recount order and fallback polling. Upload admission already waits for Usage::ensure and must continue to do so. Add a deterministic blocked-registration test plus a real-server first-upload quota test to prove that readiness cannot admit bytes from an uninitialized usage count.
Starting idle measurement of PR #754. Branch perf/idle-honest-2; base and measured head
883b8ac8ae. Worktree /home/agent/wt/idle-754 on perf-test-02. I will reuse the previous idle method, hold the perf lock, run through perf-run.sh, measure 10k and 100k notes with six 300-second idle windows each, and record three cold startup.healthz samples per size. No code changes or pushes.Finding: measurement host and cold-cache limitation. The previous job measured on 10by32-01-std (aarch64, 10.69.69.73), so I will run there under perf-lock.sh and the previous perf-run.sh wrapper. Raw helper check: ls: cannot access /usr/local/sbin/perf-drop-caches: No such file or directory; sudo: a password is required. Cache drops are unavailable. Fresh-process startup samples will be reported explicitly without controlled cache drops, matching the previous job limitation. I interpret the requested six windows as six per size (12 total); all repetitions, including failures, will be retained. Dedicated idle measurements will use the previous quiet criteria, 65-second room-close wait, /proc CPU ticks and per-thread context switches, plus 1-second RSS sampling to capture the idle maximum. No full workload scenarios are needed for this idle-only task.
The quota registration fix and readiness tests are implemented. The blocked-registration test failed before the fix (startup waited for watcher registration) and now passes, including initial accounting while registration is blocked. All 40 fsio tests pass. A real-binary test also passes: /healthz answers, the first upload is rejected with storage_quota when existing Home files fill the allowance, and an upload succeeds after the allowance is raised. Existing startup tests pass.
Strict clippy initially rejected direct File::create in the new test; it now uses the existing atomic write helper. Fresh fmt and strict clippy for memory, notes, tasks, fsio and calternal now pass. Scoped tests pass: memory 3, notes 455 with 6 existing ignored, tasks 51. Auth quota tests pass 2 with 1 existing ignored perf-only test. Independent read-only code review found no critical or important issues; it checked register-before-recount, initial admission, fallback polling and weak-reference ownership. The release build and final perf reports follow. No budget or format rules changed.
Patched startup profile at committed head
6d801fc35c: strace -f -c cold healthz is 127.97 ms (dev 118.88, previous head 194.77); ready_ms is 65. Process read_bytes at healthz is 16334848 (dev 16207872, previous head 20267008), write_bytes is 40960 in all three. The detailed timestamp trace is noisier: fixed healthz 222.84 ms and ready_ms 149, versus previous head 204.09 and 138, so I am not treating that single trace as a performance gate. Recursive registration now runs on its own worker; admission still waits for a full count. Final startup tests passed again after the atomic-write test correction: 5 existing startup tests and the new first-upload quota test, with the existing latency test ignored for the shared test runner. The profiling Home and state are deleted. The three full server reports and six task reports now begin, without replacing repetitions.Perf preflight stopped before launching any report because my integrity check compared the saved dev budget file with this older branch snapshot. The only difference is an unrelated web all-JS bundle budget (dev 300 KB, branch 260 KB); every server budget is identical. I corrected the check to verify the saved baseline against dev
3d0c6e33, matching all prior reports, and separately verify that this fix changes no budget file. Measurements will still use the exact original baseline-budgets.json (SHA-256 719266cf043e49cfc54cdaf9cd5b17114c44c753b452595885d13ece83d68d8d). No report had started, so no repetition was removed or replaced.Starting the final startup validation at
6d801fc35c. Three fresh full server reports, each with both 10k and 100k sizes, 5 warm starts, 3 cold starts, the original 300-second idle window and unchanged budgets. Then three task reports at each size with 15 alternating cold pairs and the settled shutdown/empty-WAL/sync endpoint. Every report will be retained and posted, including any failure; no replaced repetitions.PR #754 head
883b8ac8, raw measurement finding on 10by32-01-std. Completed 300-second idle window; no repetition replaced.PR #754 head
883b8ac8, raw measurement finding on 10by32-01-std. Completed 300-second idle window; no repetition replaced.Finding: same-client 10k-note startup samples are complete, three fresh processes per version and state. Raw numbers are quoted without rounding. Cache drops remain unavailable; these are not controlled cold-cache results. p95 is nearest rank (maximum for n=3). Head indexed samples are idle repetitions 1–3; remaining startup samples will also be retained. These samples do not establish a startup regression or improvement: the cache is uncontrolled and the sample count is small.
883b8ac881e6141a883b8ac881e6141aPR #754 head
883b8ac8, raw measurement finding on 10by32-01-std. Completed 300-second idle window; no repetition replaced.PR #754 head
883b8ac8, raw measurement finding on 10by32-01-std. Completed 300-second idle window; no repetition replaced.startup-server-1 on perf-test-01, source
6d801fc35c. Process exit 1; elapsed 1217.7 seconds. Successful internal cache drops: 17; perf-run.sh also dropped guest caches before the report.Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
Fixture Home and app state deleted. Gate output verbatim:
PR #754 head
883b8ac8, raw measurement finding on 10by32-01-std. Completed 300-second idle window; no repetition replaced.PR #754 head
883b8ac8, raw measurement finding on 10by32-01-std. Completed 300-second idle window; no repetition replaced.Finding: 100k-note unindexed startup samples, measured with the same client. These are fresh-process starts with uncontrolled page cache because the VM cache-drop helper is unavailable. Raw numbers are unrounded; p95 is nearest rank, the largest of three samples. All head starts settled successfully. The small sample count and uncontrolled cache do not establish a startup regression or improvement.
883b8ac881e6141astartup-server-2 on perf-test-01, source
6d801fc35c. Process exit 1; elapsed 1219.3 seconds. Successful internal cache drops: 17; perf-run.sh also dropped guest caches before the report.Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
Fixture Home and app state deleted. Gate output verbatim:
PR #754 head
883b8ac8, raw measurement finding on 10by32-01-std. Completed 300-second idle window; no repetition replaced.PR #754 head
883b8ac8, raw measurement finding on 10by32-01-std. Completed 300-second idle window; no repetition replaced.Finding: 100k-note indexed startup.healthz, same client and fixture, three fresh processes per version. Raw numbers are unrounded; p95 is nearest rank, the largest of three samples. Head samples are idle-process starts 1–3. Cache is uncontrolled; the small sample count does not establish a startup regression or improvement. All starts settled successfully.
883b8ac881e6141aPR #754 head
883b8ac8, raw measurement finding on 10by32-01-std. Completed 300-second idle window; no repetition replaced.PR #754 head
883b8ac8, raw measurement finding on 10by32-01-std. Completed 300-second idle window; no repetition replaced.startup-server-3 on perf-test-01, source
6d801fc35c. Process exit 1; elapsed 1220.5 seconds. Successful internal cache drops: 17; perf-run.sh also dropped guest caches before the report.Server report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
Fixture Home and app state deleted. Gate output verbatim:
All three fresh full server reports are complete at
6d801fc35c. startup.healthz p95 passes 3/3 at both sizes: 10k 99.726909 / 101.744509 / 79.749679 ms; 100k 155.622284 / 136.358095 / 150.769641 ms, all against the unchanged 300 ms budget. These are full reports with 5 warm starts, 3 cold starts and the 300-second idle window per size; 17 internal cache drops per report plus the perf-run preflight drop. No repetitions were replaced.Each report exits 1 solely for the known 100k open.note budget failure. Gate output verbatim:
The complete raw report tables and output are in comments 68786, 68804 and 68836 on #686. The first of six fresh task reports is now running. Those will verify cold growth, all five task gates and child-tag p95 before the branch is pushed.
PR #754 head
883b8ac8, raw measurement finding on 10by32-01-std. Completed 300-second idle window; no repetition replaced.PR #754 head
883b8ac8, raw measurement finding on 10by32-01-std. Completed 300-second idle window; no repetition replaced.Finished idle measurement of PR #754 head
883b8ac8ae, origin/perf/idle-honest-2. The source worktree on perf-test-02 is unchanged. The release build ran on 10by32-01-std (aarch64) through build-slot.sh with cargo -j3; measurements ran there in perf.slice through the previous perf-run.sh and current perf-lock.sh, holding all three VM slots. Homes and state used the same-root btrfs filesystem, as in the previous job.All twelve idle windows pass CPU <= 0.1% and RSS <= 100 MB. Every window recorded zero CPU ticks and zero context-switch wakeups. Maximum sampled idle RSS was 27.89453125 MiB at 10k notes and 90.3203125 MiB at 100k notes (94707712 bytes, also below decimal 100 MB).
Six 300-second windows per size, twelve total. Each window used a new indexed server process, the previous Home and search quiet criteria, and the previous 65-second room-close wait. CPU is process user plus system ticks divided by CLK_TCK=100 and elapsed seconds, as a percentage of one CPU. Wakeups use the previous per-thread voluntary plus involuntary context-switch deltas; they are a proxy for wakeups. RSS max is sampled once per second throughout idle, including both boundaries. RSS MB follows the previous harness convention (KiB / 1024, MiB). Process lifetime high-water RSS is retained separately in raw data and is not substituted for idle RSS. Allocator setting: glibc.malloc.arena_max=2. This dedicated idle run omits the earlier full workload and typing scenarios, so its memory values are for settled read-only Homes.
All raw idle numbers, without rounding:
Startup comparisons use three fresh unindexed starts per size and three indexed starts per size. For the head, the indexed samples are the first three of the six idle-process starts; all six startup samples remain in the raw data. The preserved
81e6141arelease binary matches the previous evidence hash bc36c66b5a7703ff611031ebac472c3c36f1dd2c3386619c16e903dd6b289d1c. Both versions were measured with this run's same HTTP client and fixtures; baseline ran before the indexed head samples. Startup measures process spawn to the first successful /healthz response, polling at 1 ms as in the previous method. The Python client differs from the previous Rust client, so use the same-client table for this comparison.The samples are too few and their cache state too uncontrolled to establish a startup regression or improvement.
Cache drops are UNAVAILABLE: /usr/local/sbin/perf-drop-caches is absent and sudo -n reports that a password is required. These are fresh-process, unindexed starts with uncontrolled page cache, not controlled cold-cache results. The requested controlled cold-cache measurement could not be completed on this VM. No failed repetition was replaced.
883b8ac881e6141a883b8ac881e6141a883b8ac881e6141a883b8ac881e6141aHistorical
81e6141anumbers from issue #686 comment 68678's original reports, quoted verbatim for context. The previous harness called unindexed healthz time cold.startup and indexed healthz time startup.healthz:Gate output verbatim:
Measurement failures retained: 0. Fixture Homes and state were deleted. No code changes, commits, pushes, merges, deployments, or issue closure.
Raw evidence archive, SHA-256 e1fa13216b69d40a1a468436f6207cdf4b538c2567d92f6e857c755971d57c1d. Upload download verified. The archive includes every raw sample, server and build logs, harness and wrapper, hashes, cleanup event, and gate output. No artifacts were committed.
startup-tasks-100000-1 on perf-test-01, source
6d801fc35c. Process exit 0; elapsed 780.6 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
startup-tasks-100000-2 on perf-test-01, source
6d801fc35c. Process exit 0; elapsed 819.3 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
startup-tasks-100000-3 on perf-test-01, source
6d801fc35c. Process exit 0; elapsed 779.5 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
startup-tasks-10000-1 on perf-test-01, source
6d801fc35c. Process exit 0; elapsed 66.1 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
startup-tasks-10000-2 on perf-test-01, source
6d801fc35c. Process exit 0; elapsed 66.4 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
startup-tasks-10000-3 on perf-test-01, source
6d801fc35c. Process exit 0; elapsed 66.5 seconds. Successful internal cache drops: 30; perf-run.sh also dropped guest caches before the report.Cold comparison (all raw samples and both endpoints):
Fixture Home and app state deleted. Gate output verbatim:
startup: server, 10000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
startup: server, 100000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
startup: tasks, 10000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
startup: tasks, 100000 notes on perf-test-01. Three full repetitions, unchanged limits. Comparison uses saved dev
3d0c6e33values in comments 68146–68149 (rounded in those tables). Each candidate task report uses 15 alternating cold pairs and reports settled shutdown + empty WAL + sync -f; historical dev cold values stop at list-ready, so cold durations and growth are not equivalent endpoints. Candidate raw samples and gate output are in the individual result comments. Server settings match baseline, including the 300-second idle window.Report comments:
Startup regression fix finished at
6d801fc35c, on perf/cold-growth-fix3. Recursive quota watcher registration now runs on the quota worker rather than inside auth construction. Registration still precedes its repair recount, and upload admission still waits for initial accounting. Root cause profiles were posted before the fix in comment 68725.Three fresh full server reports, with no replaced repetitions, the original 5 warm starts and 3 cold starts at each size, and the 300-second idle window:
Fresh task reports, each with 15 alternating cold pairs, cache drops and the original settled-shutdown, empty-WAL, sync endpoint:
Readiness tests: blocked native registration cannot block startup or initial usage accounting (failed before the fix, passed after); the real binary rejects the first upload after healthz when existing files fill quota and accepts it after quota increases. Fsio tests pass 40; existing startup tests pass 5 with 1 existing ignored latency test, plus the new quota test. Memory 3, notes 455, tasks 51 pass, with 6 existing ignored notes tests. Auth quota tests pass 2 with 1 existing ignored perf test. Independent review found no critical or important issue.
The known open.note storage-tiering failure is retained in the server gate output below and was not chased. No budget changed. Fixture Homes and state are deleted. Only product code and tests were committed; evidence remains in issue comments and the job evidence folder. No merge or deployment.
Rust gates, verbatim:
Report and integrity gates, verbatim:
Full report comments:
Push result, verbatim:
Forgejo PR #755 head after push:
6d801fc35c.Starting cache-dropped idle and startup measurement on perf-test-02. Worktree /home/agent/wt/idle-754b is clean at origin/perf/idle-honest-2, head/base
e8a99a6fee. Comparison revision: devd83e54db. No code changes or pushes. Using the previous method from comment 68858, perf-run.sh and its perf-lock.sh, and successful cache drops before every cold repetition.Findings before measurement: 10by32-01-std still has no /usr/local/sbin/perf-drop-caches or installed perf-run.sh. This task specifically requests perf-test-02 and requires verified cache drops, so I am using perf-test-02 for both releases rather than repeat the old uncontrolled-cache run. Its installed perf-run.sh invokes perf-lock.sh and perf.slice. Each local heavy command will also use build-slot.sh. Six idle windows per size means 12 total. Source inspection at
e8a99a6f: crates/fsio/src/usage/reconcile.rs logs failures but no successful reconciliation timestamp; crates/fsio/src/usage/watch.rs also has no success log. I will retain logs and report reconciliation timing as unavailable unless an existing log provides it, without modifying the binary. Health will be checked through account.storage-health.Finding: all six 10k cold-start cache drops exited 0. Raw startup.healthz samples (ms), same run/client/fixture: [{"kind": "dev-cold", "rep": 1, "startup.healthz_ms": 87.04084700002568, "cache_drop": true}, {"kind": "dev-cold", "rep": 2, "startup.healthz_ms": 83.3353529960732, "cache_drop": true}, {"kind": "dev-cold", "rep": 3, "startup.healthz_ms": 78.9145499948063, "cache_drop": true}, {"kind": "head-cold", "rep": 1, "startup.healthz_ms": 85.57564200600609, "cache_drop": true}, {"kind": "head-cold", "rep": 2, "startup.healthz_ms": 84.42939299857244, "cache_drop": true}, {"kind": "head-cold", "rep": 3, "startup.healthz_ms": 93.90227599942591, "cache_drop": true}]. All four Health checks so far returned HTTP 200, error null, unmeasured_entries 0. First 300-second idle window is preparing after the previous 65-second room-close wait. Quota reconciliation log timing remains blocked: this release emits no successful completion event, so the requested time cannot be derived from its logs without changing the binary. Continuing every other measurement unchanged.
Starting the combination on branch perf/cold-growth-on-754, from #755 base head
6d801fc3onto #754 heade8a99a6f. I will preserve reviewer tests, fix admission before watch registration, and run the required correctness and perf gates. Fetching current refs before making changes.Combined #755 with #754 head
e8a99a6fand merged reviewer testsedba00ec. Conflicting resolver, scan, inode accounting and recovery files retain #754 implementation, including its reviewer branches. Native invalid UTF-8 and backslash names now pass without a separate scanner. The reviewer tests were adapted only to the replacement background-state mutex.Admission now recounts the uploading Home through the bounded resolver on every admission before native registration and its closing recount succeed. This deliberately does not cache across unobserved outside changes: those cannot advance an application generation. Readiness and reads still do not wait for registration. Fallback keeps fresh admission enabled until coverage recovers.
Targeted regression output verbatim:
Full workspace and performance checks follow; these targeted results are not performance certification.
The first full workspace run found an integration requirement retained by #754: known storage measurement failures must block all admissions until a full successful recount clears Health. The new Home-only path initially bypassed an unrelated retained failure. Evidence verbatim:
I preserved the test and restored that contract: admission retries a full recount when there is a retained failure, then uses a fresh per-Home recount while registration is incomplete. No failure is cleared by a scoped success. The complete workspace gate will be run again.
Measurement progress for head
e8a99a6fon perf-test-02. 1/12 idle windows complete. New raw results, without rounding:Each RSS gate uses 100000000 bytes and CPU uses 0.1%. Cache drops: 6 attempted, 6 exited 0. Health: 6 checks, 6 returned HTTP 200 with zero unmeasured entries. Measurement failures retained: 0.
Measurement progress for head
e8a99a6fon perf-test-02. 2/12 idle windows complete. New raw results, without rounding:Each RSS gate uses 100000000 bytes and CPU uses 0.1%. Cache drops: 6 attempted, 6 exited 0. Health: 8 checks, 8 returned HTTP 200 with zero unmeasured entries. Measurement failures retained: 0.
Full workspace tests at head
30f65caf: 1302 passed, 0 failed, 21 ignored. The Tasks abrupt-stop test passed on the first run; no #757 rerun was needed. Output verbatim, part 1/4:Full workspace tests at head
30f65caf: 1302 passed, 0 failed, 21 ignored. The Tasks abrupt-stop test passed on the first run; no #757 rerun was needed. Output verbatim, part 2/4:Full workspace tests at head
30f65caf: 1302 passed, 0 failed, 21 ignored. The Tasks abrupt-stop test passed on the first run; no #757 rerun was needed. Output verbatim, part 3/4:Full workspace tests at head
30f65caf: 1302 passed, 0 failed, 21 ignored. The Tasks abrupt-stop test passed on the first run; no #757 rerun was needed. Output verbatim, part 4/4:Gate output verbatim:
Correctness and build gates passed at head
30f65cafb0. The workspace run passed 1302 tests with 21 ignored and no failures; full output is posted in the preceding four comments. The known Tasks abrupt-stop test passed on its first run.Gate output verbatim:
Strict clippy output verbatim:
Perf harness tests verbatim:
Release build output verbatim:
Starting three fresh full server reports at each of 10k and 100k, plus three 15-pair task comparisons per size, under perf-run.sh and its perf lock. The binaries are snapshotted in the job evidence folder and hashed. Every cold sample requires a successful sudo perf-drop-caches call. Budget SHA-256 is unchanged from #754: 719266cf043e49cfc54cdaf9cd5b17114c44c753b452595885d13ece83d68d8d. All reports, including any failed gates and open.note values, will be retained.
The first measurement driver launch stopped before creating a fixture or starting a report: /srv/homes itself is root owned and mkdir returned PermissionError. The writable shared perf parent is /srv/homes/perf, on the same HDD xfs mount. The driver now creates a unique job-owned child there; no other job directory is read or removed. Measurements have restarted there with the same head and binaries. No failed or warm-cache sample has been counted.
Measurement progress for head
e8a99a6fon perf-test-02. 3/12 idle windows complete. New raw results, without rounding:Each RSS gate uses 100000000 bytes and CPU uses 0.1%. Cache drops: 6 attempted, 6 exited 0. Health: 10 checks, 10 returned HTTP 200 with zero unmeasured entries. Measurement failures retained: 0.
Measurement progress for head
e8a99a6fon perf-test-02. 4/12 idle windows complete. New raw results, without rounding:Each RSS gate uses 100000000 bytes and CPU uses 0.1%. Cache drops: 6 attempted, 6 exited 0. Health: 12 checks, 12 returned HTTP 200 with zero unmeasured entries. Measurement failures retained: 0.
Finding: head
e8a99a6fat 10k notes, indexed warm startup.healthz raw ms (all five requested samples, unchanged): 16.186341003049165, 5.410058001871221, 5.4032159969210625, 5.35294899600558, 7.553593000920955. Nearest-rank p95: 16.186341003049165 ms <= 300 ms PASS. These are process-spawn to first successful /healthz with the same client as the cache-dropped cold comparisons. The sixth start will be retained as an extra, as in the previous method. Idle collection continues.Measurement progress for head
e8a99a6fon perf-test-02. 5/12 idle windows complete. New raw results, without rounding:Each RSS gate uses 100000000 bytes and CPU uses 0.1%. Cache drops: 6 attempted, 6 exited 0. Health: 14 checks, 14 returned HTTP 200 with zero unmeasured entries. Measurement failures retained: 0.
Measurement progress for head
e8a99a6fon perf-test-02. 6/12 idle windows complete. New raw results, without rounding:Each RSS gate uses 100000000 bytes and CPU uses 0.1%. Cache drops: 6 attempted, 6 exited 0. Health: 15 checks, 15 returned HTTP 200 with zero unmeasured entries. Measurement failures retained: 0.
Fresh full server report 1/3 on perf-test-01, head
30f65cafb0. HDD Homes /srv/homes (xfs), SSD state (ext4). Five warm starts, three unindexed starts, full scenarios and a 300-second idle window per size. Run through perf-run.sh, perf-lock.sh and build-slot.sh. Cache drops succeeded before the outer command and 17 times inside the harness; expected internal count is 17. Elapsed 1240.8 seconds. Fixture Homes and state for this report have been deleted. No budgets changed.Report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
100000 notes (10000 daily, 422 MB, 50 long notes)
Gate output verbatim:
Binary and budget SHA-256:
First report at
30f65caffound 100k idle RSS 101.2421875 MB, above the unchanged 100 MB budget. Startup passed at 103.0548 ms (10k) and 124.030435 ms (100k); idle CPU and wakeups were zero. Known open.note remains over at 17.608797 ms. Full report and gates are retained in comments 68984/68985. I stopped only the recorded PID of my own driver after its current 10k task child finished with exit status 0, before it could start more repetitions. All of this attempt’s fixture Homes and state are deleted.The completed 10k task comparison passed all five gates, with 30 successful internal cache drops and cold growth 2.6819931549055687%. Gate output verbatim:
I am removing duplicate per-inode watch bookkeeping while keeping the resolver, watch coverage and event policy unchanged, then rebuilding and rerunning the required three reports at each size. The failed attempt remains evidence.
RSS follow-up: the inode registry duplicated an Arc already retained by the event index. The registry now stores only the watch token, and checks the selected native path plus inode identity in that event index. This removes 16 bytes per hash bucket on x86_64, about 2 MiB at 100k entries, without reducing coverage or adding scans. The existing alias-removal/move regression still checks the selected event name and then writes through an outside hard link; its private introspection now reads the event index rather than a removed field. All assertions remain. The first compile correctly caught those two stale test field references; they were adapted and the full workspace gate is running again.
The completed first-attempt 10k comparison had child-tag p95 2.949991 ms and cold growth 2.6819931549055687%, with all five gates passing. Its full raw measurements are retained here:
Finding: all twelve requested cold-start cache drops exited 0. 100k raw startup.healthz samples (ms), same run/client/fixture: [{"kind": "dev-cold", "rep": 1, "startup.healthz_ms": 87.45171099872096, "cache_drop": true}, {"kind": "dev-cold", "rep": 2, "startup.healthz_ms": 129.11793799867155, "cache_drop": true}, {"kind": "dev-cold", "rep": 3, "startup.healthz_ms": 94.55018399603432, "cache_drop": true}, {"kind": "head-cold", "rep": 1, "startup.healthz_ms": 313.30598299973644, "cache_drop": true}, {"kind": "head-cold", "rep": 2, "startup.healthz_ms": 82.38098199944943, "cache_drop": true}, {"kind": "head-cold", "rep": 3, "startup.healthz_ms": 116.80540799716255, "cache_drop": true}]. dev-cold nearest-rank p95=129.11793799867155 ms <= 300 ms PASS. head-cold nearest-rank p95=313.30598299973644 ms <= 300 ms FAIL. No repetitions were replaced. The final cold process is settling; six 100k idle windows and five warm samples follow.
Full workspace tests after the RSS correction, head
d23e80b9. 1302 passed, 0 failed, 21 ignored. The Tasks abrupt-stop test passed first try again; no #757 rerun. Output verbatim, part 1/4:Full workspace tests after the RSS correction, head
d23e80b9. 1302 passed, 0 failed, 21 ignored. The Tasks abrupt-stop test passed first try again; no #757 rerun. Output verbatim, part 2/4:Full workspace tests after the RSS correction, head
d23e80b9. 1302 passed, 0 failed, 21 ignored. The Tasks abrupt-stop test passed first try again; no #757 rerun. Output verbatim, part 3/4:Full workspace tests after the RSS correction, head
d23e80b9. 1302 passed, 0 failed, 21 ignored. The Tasks abrupt-stop test passed first try again; no #757 rerun. Output verbatim, part 4/4:Gate output verbatim:
Measurement progress for head
e8a99a6fon perf-test-02. 7/12 idle windows complete. New raw results, without rounding:Each RSS gate uses 100000000 bytes and CPU uses 0.1%. Cache drops: 12 attempted, 12 exited 0. Health: 21 checks, 21 returned HTTP 200 with zero unmeasured entries. Measurement failures retained: 0.
Restarting measurement at head
d23e80b949. Full workspace tests passed again (1302 passed, 0 failed, 21 ignored; verbatim output in comments 68995–69009). The Tasks abrupt-stop test passed first try, so no #757 rerun.Gate output verbatim:
Clippy output verbatim:
Release build output verbatim:
Each size now gets its own complete server report, starting with 100k so an RSS breach is detected earlier. This still runs three fresh reports per size with five warm starts, three cold starts and a 300-second idle window, plus three task comparisons per size. Each single-size server report requires 9 successful internal cache drops; each task comparison requires 30. Fixture path depth and length match the first attempt; no shorter path is used to obtain a pass. Budgets are unchanged. Unexpected gate failures stop the driver between workloads after recording evidence. Known open.note remains fully gated and reported but does not prevent collecting the remaining requested reports.
Measurement progress for head
e8a99a6fon perf-test-02. 8/12 idle windows complete. New raw results, without rounding:Each RSS gate uses 100000000 bytes and CPU uses 0.1%. Cache drops: 12 attempted, 12 exited 0. Health: 22 checks, 22 returned HTTP 200 with zero unmeasured entries. Measurement failures retained: 0.
Measurement progress for head
e8a99a6fon perf-test-02. 9/12 idle windows complete. New raw results, without rounding:Each RSS gate uses 100000000 bytes and CPU uses 0.1%. Cache drops: 12 attempted, 12 exited 0. Health: 25 checks, 25 returned HTTP 200 with zero unmeasured entries. Measurement failures retained: 0.
Fresh full server report 1/3 at 100000 notes on perf-test-01, head
d23e80b949. HDD Homes /srv/homes/perf (xfs), SSD state (ext4). Five warm starts, three unindexed starts, full scenarios and a 300-second idle window. Run through perf-run.sh, perf-lock.sh and build-slot.sh. Cache drops succeeded before the outer command and 9 times inside the harness; expected internal count is 9. Elapsed 680.0 seconds. Fixture Homes and state for this report have been deleted. No budgets changed.Report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
100000 notes (10000 daily, 422 MB, 50 long notes)
Gate output verbatim:
Binary and budget SHA-256:
Measurement progress for head
e8a99a6fon perf-test-02. 10/12 idle windows complete. New raw results, without rounding:Each RSS gate uses 100000000 bytes and CPU uses 0.1%. Cache drops: 12 attempted, 12 exited 0. Health: 27 checks, 27 returned HTTP 200 with zero unmeasured entries. Measurement failures retained: 0.
Finding: head
e8a99a6fat 100k notes, indexed warm startup.healthz raw ms (all five requested samples, unchanged): 16.89317700220272, 8.83206900471123, 8.710842004802544, 4.311869000957813, 8.948848997533787. Nearest-rank p95: 16.89317700220272 ms <= 300 ms PASS. The 100k cache-dropped cold p95 remains 313.30598299973644 ms FAIL; it has not been replaced. Ten idle windows are complete, with two more to collect.Measurement progress for head
e8a99a6fon perf-test-02. 11/12 idle windows complete. New raw results, without rounding:Each RSS gate uses 100000000 bytes and CPU uses 0.1%. Cache drops: 12 attempted, 12 exited 0. Health: 29 checks, 29 returned HTTP 200 with zero unmeasured entries. Measurement failures retained: 0.
Tasks report 1/3 at 100000 base notes plus 100000 task notes on perf-test-01, head
d23e80b949. The cold comparison uses 15 alternating pairs and includes shutdown, an empty WAL and sync -f. Successful internal cache drops: 30, expected 30. The outer perf-run.sh cache drop also succeeded. Elapsed 736.4 seconds. Fixture Homes and state deleted.Output verbatim:
All measurements and raw cold samples:
Gate output verbatim:
Measurement progress for head
e8a99a6fon perf-test-02. 12/12 idle windows complete. New raw results, without rounding:Each RSS gate uses 100000000 bytes and CPU uses 0.1%. Cache drops: 12 attempted, 12 exited 0. Health: 30 checks, 30 returned HTTP 200 with zero unmeasured entries. Measurement failures retained: 0.
Finding from final coverage verification: the zero wakeup proxy is incomplete in all twelve idle windows. Each start/end per-thread sample loses at least one thread that exited during the window. The proxy records zero for surviving threads but cannot recover exited threads final context-switch counters, so zero total wakeups is not established. All twelve wakeups-thread-coverage gates fail. Process-wide CPU ticks are valid and remain zero. No repetition was replaced. Evidence, unchanged raw values:
The final 100k RSS gate also failed: 106921984 bytes > 100000000. The 100k cold-start p95 failed at 313.30598299973644 ms > 300. The finish report will retain all failures and distinguish coverage limits from the zero harness-exception count.
Observed budget or integrity gate failures: 100000 notes repetition 6: idle.rss_max_bytes FAIL 106921984 <= 100000000; 100000 head-cold startup.healthz_p95_ms FAIL 313.30598299973644 <= 300.
Wakeup coverage is incomplete in every idle window. The raw proxy records zero for surviving threads, but each window lost at least one thread between boundary samples; those exited threads have no final context-switch counter. All twelve wakeups-thread-coverage gates fail, so zero total wakeups is NOT established. The previous proxy is retained verbatim, with its coverage limits explicit. Process-wide CPU ticks remain valid at zero. These coverage failures are separate from harness exceptions, whose count is zero.
Quota reconciliation completion time is unavailable because the measured head emits no success log event. Full raw results and verbatim gates follow.
Finished idle and startup measurement of PR #754 head
e8a99a6fee, origin/perf/idle-honest-2. Comparison: devd83e54dbe5. Both release binaries were built with --release --locked -j3 and measured on perf-test-02 (x86_64) in this run. No code changes, commits, pushes, merges, deployments or issue closure.The task-specific instruction to use perf-test-02 was selected over the generic 10by32-01-std instruction because the required working cache-drop helper is on perf-test-02. The old VM still lacks that helper. This changes the machine and architecture from comment 68858; compare these two revisions within this run, not against the old absolute numbers.
Measurements ran under /usr/local/bin/perf-run.sh, which holds perf-lock.sh and enters perf.slice. The harness ran through build-slot.sh inside that held lock. Every cold repetition used sudo -n /usr/local/sbin/perf-drop-caches immediately before launch; all twelve helper return codes are retained. Cold starts use separate fresh unindexed copies of the same seed-1 fixture. Warm starts use the head's indexed copy. The first five of six indexed process starts supply the requested warm samples, and all six supply separate idle windows. p95 uses nearest rank: the maximum of three or five samples. Failed repetitions are retained and never replaced.
Same idle method as comment 68858: notes.list complete and search.query no longer indexing, then a 65-second room-close wait, then 300 seconds of idle. CPU is process user plus system ticks / CLK_TCK / actual elapsed seconds, percent of one CPU. Wakeups are the previous proxy: summed per-thread voluntary plus involuntary context-switch deltas, not hardware wakeups. RSS is sampled every second including boundaries; MiB is KiB / 1024, and the gate also enforces decimal 100 MB (100000000 bytes). Process lifetime high-water RSS remains separate in raw records. GLIBC_TUNABLES=glibc.malloc.arena_max=2. Homes and state share one root, as before. This is settled read-only idle, not a full workload run.
Raw idle numbers, without rounding:
Raw startup numbers, without rounding:
d83e54dbe8a99a6fe8a99a6fd83e54dbe8a99a6fe8a99a6fAdditional sixth warm-start samples, excluded only from the requested n=5 startup statistic and retained verbatim: [{"event": "startup", "notes": 10000, "kind": "head-warm", "rep": 6, "startup.healthz_ms": 5.2609189951908775, "cache_drop": false, "pid": 310006, "startup_sample": false, "observed_utc": "2026-10-29T03:48:49.548636+00:00"}, {"event": "startup", "notes": 100000, "kind": "head-warm", "rep": 6, "startup.healthz_ms": 8.069229996181093, "cache_drop": false, "pid": 311677, "startup_sample": false, "observed_utc": "2026-10-29T04:34:03.237064+00:00"}]
Quota reconciliation completion from log timestamps is UNAVAILABLE. At this exact head, Usage::background starts the usage-events worker, which calls recount and installs inode watches, but neither successful recount nor completed initialization emits a log event (crates/fsio/src/usage/watch.rs and reconcile.rs). Logs are retained with calternal and calternal_fsio at info. Health zero is not proof that background initialization has finished: storage_failure reports retained failures and does not expose readiness. No timing is inferred from Health or note indexing, and no binary or source was modified to add instrumentation. This requested metric remains incomplete.
Health responses for every head start after notes/search settle, and again after every idle window:
Gate output verbatim:
All measurement failures retained verbatim:
Fixture Homes and state were deleted. Raw samples, server logs, build logs and measurement scripts are retained outside the repository at /home/agent/wt/idle-754b-evidence. No artifacts were committed.
Raw evidence for head
e8a99a6feeand comparisond83e54dbe5: download archive. SHA-256 ec13f259020a4dbbbc0abfd144ef398d911147cb5eb37a058af67853ab7dba6c. Upload download verified. The archive contains every raw sample, cache-drop return code, server and build logs, gates, scripts, binary hashes and a file manifest. It contains no fixture Homes or state; those were deleted. No evidence was committed. The complete raw tables and verbatim gate output are in the finish comments immediately above. Quota reconciliation completion timing remains unavailable because the exact measured release has no success log event.Fresh full server report 1/3 at 10000 notes on perf-test-01, head
d23e80b949. HDD Homes /srv/homes/perf (xfs), SSD state (ext4). Five warm starts, three unindexed starts, full scenarios and a 300-second idle window. Run through perf-run.sh, perf-lock.sh and build-slot.sh. Cache drops succeeded before the outer command and 9 times inside the harness; expected internal count is 9. Elapsed 541.9 seconds. Fixture Homes and state for this report have been deleted. No budgets changed.Report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
Gate output verbatim:
Binary and budget SHA-256:
Tasks report 1/3 at 10000 base notes plus 10000 task notes on perf-test-01, head
d23e80b949. The cold comparison uses 15 alternating pairs and includes shutdown, an empty WAL and sync -f. Successful internal cache drops: 30, expected 30. The outer perf-run.sh cache drop also succeeded. Elapsed 67.7 seconds. Fixture Homes and state deleted.Output verbatim:
All measurements and raw cold samples:
Gate output verbatim:
Fresh full server report 2/3 at 100000 notes on perf-test-01, head
d23e80b949. HDD Homes /srv/homes/perf (xfs), SSD state (ext4). Five warm starts, three unindexed starts, full scenarios and a 300-second idle window. Run through perf-run.sh, perf-lock.sh and build-slot.sh. Cache drops succeeded before the outer command and 9 times inside the harness; expected internal count is 9. Elapsed 687.8 seconds. Fixture Homes and state for this report have been deleted. No budgets changed.Report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
100000 notes (10000 daily, 422 MB, 50 long notes)
Gate output verbatim:
Binary and budget SHA-256:
Tasks report 2/3 at 100000 base notes plus 100000 task notes on perf-test-01, head
d23e80b949. The cold comparison uses 15 alternating pairs and includes shutdown, an empty WAL and sync -f. Successful internal cache drops: 30, expected 30. The outer perf-run.sh cache drop also succeeded. Elapsed 740.0 seconds. Fixture Homes and state deleted.Output verbatim:
All measurements and raw cold samples:
Gate output verbatim:
Fresh full server report 2/3 at 10000 notes on perf-test-01, head
d23e80b949. HDD Homes /srv/homes/perf (xfs), SSD state (ext4). Five warm starts, three unindexed starts, full scenarios and a 300-second idle window. Run through perf-run.sh, perf-lock.sh and build-slot.sh. Cache drops succeeded before the outer command and 9 times inside the harness; expected internal count is 9. Elapsed 541.6 seconds. Fixture Homes and state for this report have been deleted. No budgets changed.Report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
Gate output verbatim:
Binary and budget SHA-256:
Tasks report 2/3 at 10000 base notes plus 10000 task notes on perf-test-01, head
d23e80b949. The cold comparison uses 15 alternating pairs and includes shutdown, an empty WAL and sync -f. Successful internal cache drops: 30, expected 30. The outer perf-run.sh cache drop also succeeded. Elapsed 68.5 seconds. Fixture Homes and state deleted.Output verbatim:
All measurements and raw cold samples:
Gate output verbatim:
Starting the requested idle and startup measurement on perf-test-02. Worktree /home/agent/wt/idle-754c is clean and detached at origin/perf/idle-honest-2, head/base SHA
a6b1fa14d2. Comparison devd83e54dbe5. No branch will be created or pushed: this is measurement only. Following comment 69074 fixture and idle method, with 3 cold and 5 warm starts for each revision at 10k and 100k, and six 300-second head idle windows per size. Raw failed repetitions will remain. Evidence stays outside the repo; fixtures will be deleted. perf-run.sh takes the lock. Each cold launch requires a successful cache drop. Using the specifically requested perf-test-02 rather than the generic machine instruction.Fresh full server report 3/3 at 100000 notes on perf-test-01, head
d23e80b949. HDD Homes /srv/homes/perf (xfs), SSD state (ext4). Five warm starts, three unindexed starts, full scenarios and a 300-second idle window. Run through perf-run.sh, perf-lock.sh and build-slot.sh. Cache drops succeeded before the outer command and 9 times inside the harness; expected internal count is 9. Elapsed 692.0 seconds. Fixture Homes and state for this report have been deleted. No budgets changed.Report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
100000 notes (10000 daily, 422 MB, 50 long notes)
Gate output verbatim:
Binary and budget SHA-256:
Measurement setup finding at
a6b1fa14: account.storage-health returns only unmeasured_entries and error (crates/auth/src/quota.rs). Usage::storage_failure reads retained failure scopes, while watch.rs sets an internal initialized flag after recount and watch setup; that flag is not exposed. There is no existing environment-controlled success log. I will report the requested Health polling fallback at 250 ms until one second of unchanged scope count, both immediately after healthz and after note/search catch-up. These are observed stabilization timings; an initial zero cannot prove reconciliation completion. No code instrumentation will be added. perf is absent and perf_event_paranoid=3, so complete per-thread /proc/TID/sched nr_switches coverage will use kernel clone and exit stops; raw counters include observer overhead.Finding for
a6b1fa14on perf-test-02: 1/12 idle windows recorded. Raw result, without rounding:CPU gate PASS: 0.0 <= 0.1 percent. RSS gate PASS: 29921280 <= 100000000 bytes. Scheduler counter coverage PASS. Context-switch counts include the observer boundary stops and exit-stop overhead; these are the complete scheduler-counter proxy, not literal hardware wakeups.
6 cold cache drops recorded, 6 successful. 6 normal-fixture Health checks recorded, 6 with zero unmeasured entries. Failed repetitions are retained and never replaced.
Tasks report 3/3 at 100000 base notes plus 100000 task notes on perf-test-01, head
d23e80b949. The cold comparison uses 15 alternating pairs and includes shutdown, an empty WAL and sync -f. Successful internal cache drops: 30, expected 30. The outer perf-run.sh cache drop also succeeded. Elapsed 784.5 seconds. Fixture Homes and state deleted.Output verbatim:
All measurements and raw cold samples:
Gate output verbatim:
Finding for
a6b1fa14on perf-test-02: 2/12 idle windows recorded. Raw result, without rounding:CPU gate PASS: 0.0 <= 0.1 percent. RSS gate PASS: 29732864 <= 100000000 bytes. Scheduler counter coverage PASS. Context-switch counts include the observer boundary stops and exit-stop overhead; these are the complete scheduler-counter proxy, not literal hardware wakeups.
6 cold cache drops recorded, 6 successful. 8 normal-fixture Health checks recorded, 8 with zero unmeasured entries. Failed repetitions are retained and never replaced.
Finding for
a6b1fa14on perf-test-02: 3/12 idle windows recorded. Raw result, without rounding:CPU gate PASS: 0.0 <= 0.1 percent. RSS gate PASS: 31854592 <= 100000000 bytes. Scheduler counter coverage PASS. Context-switch counts include the observer boundary stops and exit-stop overhead; these are the complete scheduler-counter proxy, not literal hardware wakeups.
6 cold cache drops recorded, 6 successful. 10 normal-fixture Health checks recorded, 10 with zero unmeasured entries. Failed repetitions are retained and never replaced.
Fresh full server report 3/3 at 10000 notes on perf-test-01, head
d23e80b949. HDD Homes /srv/homes/perf (xfs), SSD state (ext4). Five warm starts, three unindexed starts, full scenarios and a 300-second idle window. Run through perf-run.sh, perf-lock.sh and build-slot.sh. Cache drops succeeded before the outer command and 9 times inside the harness; expected internal count is 9. Elapsed 542.0 seconds. Fixture Homes and state for this report have been deleted. No budgets changed.Report verbatim:
Machine: Homes: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sda1 xfs (rotational) · state: Linux 6.12.113+deb13-amd64 · 4 CPUs · 7.7Gi RAM · disk /dev/sdb1 ext4 (non-rotational)
10000 notes (3000 daily, 35 MB, 5 long notes)
Gate output verbatim:
Binary and budget SHA-256:
Tasks report 3/3 at 10000 base notes plus 10000 task notes on perf-test-01, head
d23e80b949. The cold comparison uses 15 alternating pairs and includes shutdown, an empty WAL and sync -f. Successful internal cache drops: 30, expected 30. The outer perf-run.sh cache drop also succeeded. Elapsed 68.0 seconds. Fixture Homes and state deleted.Output verbatim:
All measurements and raw cold samples:
Gate output verbatim:
Finished at head
d23e80b949. New draft PR: #760. Measured integration base:e8a99a6f. PR target: perf/idle-honest-2, now ata6b1fa14.The measured integration base is the task’s explicitly requested
e8a99a6fee. During this run, the target branch perf/idle-honest-2 advanced toa6b1fa14d2. PR #760 is a draft with conflicts against that newer head in crates/auth/src/quota.rs, crates/fsio/src/usage.rs and crates/fsio/src/usage/watch.rs. The tested source remainsd23e80b9one8a99a6f. Newer quota retry and admission changes are outside these measurements; integration witha6b1fa14remains follow-up work. The open-PR branch rule requires a new branch and PR for any further code update.Quota admission and native-name regressions are fixed; all reviewer assertions remain enabled. All requested startup, cold growth, task, child-tag and idle gates pass 3/3 per size. Known open.note remains over its unchanged 15 ms budget: 100000 notes report 1: 19.793982 ms; 100000 notes report 2: 20.753939 ms; 100000 notes report 3: 18.815419 ms. This is kept visible in the server gate output.
Budgets are unchanged. Every server report recorded 9 successful internal cache drops; every task comparison recorded 30. The outer perf-run.sh drops also succeeded. Each full server report has five warm starts, three cold starts and a 300-second idle window; task comparisons use 15 alternating cold pairs. All fixture Homes and state are deleted. The failed earlier RSS report remains in comments 68984/68985. No pull request was merged and nothing was deployed.
Correctness and build gate output verbatim:
Workspace total: 1302 passed, 0 failed, 21 ignored. The Tasks abrupt-stop test passed first try; no #757 rerun. Full workspace output is in comments 68995–69009.
server-10000-1 gate output verbatim:
tasks-10000-1 gate output verbatim:
server-10000-2 gate output verbatim:
tasks-10000-2 gate output verbatim:
server-10000-3 gate output verbatim:
tasks-10000-3 gate output verbatim:
server-100000-1 gate output verbatim:
tasks-100000-1 gate output verbatim:
server-100000-2 gate output verbatim:
tasks-100000-2 gate output verbatim:
server-100000-3 gate output verbatim:
tasks-100000-3 gate output verbatim:
The measured integration base is the task’s explicitly requested
e8a99a6fee. During this run, the target branch perf/idle-honest-2 advanced toa6b1fa14d2. PR #760 is a draft with conflicts against that newer head in crates/auth/src/quota.rs, crates/fsio/src/usage.rs and crates/fsio/src/usage/watch.rs. The tested source remainsd23e80b9one8a99a6f. Newer quota retry and admission changes are outside these measurements; integration witha6b1fa14remains follow-up work. The open-PR branch rule requires a new branch and PR for any further code update.The final fetch found these new base commits, all after the approved
e8a99a6f:Read-only merge-tree output verbatim:
The task requested
e8a99a6f, so this job preserves that measured integration and records the concurrent target movement. No additional code was pushed after opening the draft. Final headd23e80b949; draft #760. All measured results and original failed attempts remain in this thread. Fixture Homes and state are deleted; evidence is outside commits.Finding for
a6b1fa14on perf-test-02: 4/12 idle windows recorded. Raw result, without rounding:CPU gate PASS: 0.0 <= 0.1 percent. RSS gate PASS: 30539776 <= 100000000 bytes. Scheduler counter coverage PASS. Context-switch counts include the observer boundary stops and exit-stop overhead; these are the complete scheduler-counter proxy, not literal hardware wakeups.
6 cold cache drops recorded, 6 successful. 11 normal-fixture Health checks recorded, 11 with zero unmeasured entries. Failed repetitions are retained and never replaced.
Startup finding at 10000 notes on perf-test-02,
a6b1fa14versus devd83e54db. Requested three cold and five warm starts per revision are complete. Every cold launch had a successful cache drop. Raw numbers without rounding; nearest-rank p95 is the maximum for these sample counts. Failed repetitions remain.Finding for
a6b1fa14on perf-test-02: 5/12 idle windows recorded. Raw result, without rounding:CPU gate PASS: 0.0 <= 0.1 percent. RSS gate PASS: 30511104 <= 100000000 bytes. Scheduler counter coverage PASS. Context-switch counts include the observer boundary stops and exit-stop overhead; these are the complete scheduler-counter proxy, not literal hardware wakeups.
6 cold cache drops recorded, 6 successful. 14 normal-fixture Health checks recorded, 14 with zero unmeasured entries. Failed repetitions are retained and never replaced.
Backend cold-growth + fast-startup port onto #764 is ready as draft #767: #767
Branch perf/cold-growth-on-764; head
2df9787047; based ond0e6d6f6. Production quota/watch code keeps #764's whole-Home recount and inotify barrier. Startup remains asynchronous and admission verifies never-counted Homes. Supersedes #760.On 10by32-02-std arm64, heavy builds/tests used build-slot.sh and cargo -j8. fmt and clippy -D warnings pass; workspace: 1,342 passed / 27 ignored; cold/task correctness: 527 passed / 6 ignored; five quota properties passed 50,000 cases each; upload-retry reviewer JS tests: 2 passed. CALTERNAL_INODE_REUSE_DIR=/srv/inode-reuse was set and the physical inode reuse regression passed. The ignored non-linearizable fallback contract also passed explicitly. Tasks abrupt-stop passed on the first run; no #757 rerun needed. Initial fresh-worktree missing y-protocols/sync was resolved with bun install --frozen-lockfile and the correctness gate passed on rerun.
No performance measurements ran here and perf-test-* machines were untouched. The coordinator still needs the x86 build and fresh perf-VM measurements; prior #760 numbers are not evidence for this head. No merges or deploys. Local target cleanup and heartbeat shutdown follow this handoff.
kayg referenced this issue2026-11-05 23:21:12 +00:00