fix: restore macOS Rust gates and portable lifecycle assertions #1013

Closed
kayg wants to merge 0 commits from fix/macos-rust-gates into dev
Owner

restores the macOS Rust gates from dev cd7f84432febfc63b788fbb9b9f9950452982d74 (#1009), without skipping tests.

root causes and fixes:

  • storage_startup.rs:147: the non-Linux readiness check called Child::try_wait() through &Child. both platform helpers now take &mut Child.
  • storage clippy: only Linux disk diagnostics consumed an unconditional owned state capture. clone it only on Linux. the Linux diagnostics and scheduling are unchanged.
  • Daily's three directory assertions: APFS aliases originals Notes and private state notes in the shared fixture root. use separate original/state roots and retain the complete, already sorted inventories. this was path aliasing, not dirent ordering.
  • engine idle-user test: /proc/self/task is Linux-only and its global writer count raced unrelated tests. observe the specific writer-owned journal head through a weak reference, retaining eviction, replay and reopen checks.
  • further full-workspace failures had the same portability causes: split the executor/Home/Tasks/search/HTTP fixtures so private journals cannot alias originals; check original-file absence rather than case-sensitive directory absence; replace the auth recount's /proc/self/fd race with the existing after-walk hook behind test-hooks; observe the notes timer's owned join handle at shutdown.
  • fsio tests assumed case variants were separate entries and a case-only rename always entered staging. assert the filesystem's actual alias semantics and either native atomic success or the existing staged rollback guarantees. atomic fixture sequences also prevent coarse-clock collisions between parallel tests.
  • #991 reproduced on dev and this branch. traces show new test tabs typed into an empty CRDT before their first sync, placing words before the properties fence. the save guard correctly refused that text. wait for the initial full sync before typing, retaining offline typing after initial load and every loss/duplication/disk/restart assertion. no retry loop masks the refusal.

no production directory-list, rename, disk-walk or journal algorithm changes. the recount hook is feature-gated for tests. the supported split-root layout is used in affected fixtures; storage migration/default-layout policy is unchanged.

validation at 3ab5aa57f3199b64d8b6d2c57495579fa9ce2a7a: ten crash-typing repeats per platform, cargo fmt --all --check, cargo test --workspace --locked -j4 --no-fail-fast, and cargo clippy --workspace --all-targets --locked -j4 -- -D warnings passed on both Linux and macOS through Nix and build slots. exact commands and attached logs.

startup ABAB ×5 and its dev-vs-dev control are complete. performance evidence, the initial failed run, larger follow-up and measurement limits are recorded in comments. all requested gates are complete. no merge.

restores the macOS Rust gates from dev `cd7f84432febfc63b788fbb9b9f9950452982d74` (#1009), without skipping tests. root causes and fixes: - `storage_startup.rs:147`: the non-Linux readiness check called `Child::try_wait()` through `&Child`. both platform helpers now take `&mut Child`. - storage clippy: only Linux disk diagnostics consumed an unconditional owned `state` capture. clone it only on Linux. the Linux diagnostics and scheduling are unchanged. - Daily's three directory assertions: APFS aliases originals `Notes` and private state `notes` in the shared fixture root. use separate original/state roots and retain the complete, already sorted inventories. this was path aliasing, not dirent ordering. - engine idle-user test: `/proc/self/task` is Linux-only and its global writer count raced unrelated tests. observe the specific writer-owned journal head through a weak reference, retaining eviction, replay and reopen checks. - further full-workspace failures had the same portability causes: split the executor/Home/Tasks/search/HTTP fixtures so private journals cannot alias originals; check original-file absence rather than case-sensitive directory absence; replace the auth recount's `/proc/self/fd` race with the existing after-walk hook behind `test-hooks`; observe the notes timer's owned join handle at shutdown. - fsio tests assumed case variants were separate entries and a case-only rename always entered staging. assert the filesystem's actual alias semantics and either native atomic success or the existing staged rollback guarantees. atomic fixture sequences also prevent coarse-clock collisions between parallel tests. - #991 reproduced on dev and this branch. traces show new test tabs typed into an empty CRDT before their first sync, placing words before the properties fence. the save guard correctly refused that text. wait for the initial full sync before typing, retaining offline typing after initial load and every loss/duplication/disk/restart assertion. no retry loop masks the refusal. no production directory-list, rename, disk-walk or journal algorithm changes. the recount hook is feature-gated for tests. the supported split-root layout is used in affected fixtures; storage migration/default-layout policy is unchanged. validation at `3ab5aa57f3199b64d8b6d2c57495579fa9ce2a7a`: ten crash-typing repeats per platform, `cargo fmt --all --check`, `cargo test --workspace --locked -j4 --no-fail-fast`, and `cargo clippy --workspace --all-targets --locked -j4 -- -D warnings` passed on both Linux and macOS through Nix and build slots. [exact commands and attached logs](https://git.kayg.org/kayg/calternal/pulls/1013#issuecomment-86140). startup ABAB ×5 and its dev-vs-dev control are complete. [performance evidence, the initial failed run, larger follow-up and measurement limits](https://git.kayg.org/kayg/calternal/pulls/1013#issuecomment-86284) are recorded in comments. all requested gates are complete. no merge.
test(engine): observe the evicted writer without Linux procfs
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled
81e818da6f
Author
Owner

baseline reproduced on the mac vm at unchanged dev cd7f84432febfc63b788fbb9b9f9950452982d74, through Nix and ~/bin/slot, holding /tmp/mac-bench.lock with an EXIT trap.

complete reproduction log

command result
cargo test --locked -j4 -p calternal --test storage_startup --no-run exit 101, E0596 at storage_startup.rs:147
cargo clippy --locked -j4 -p calternal --bins -- -D warnings exit 101, unused state in storage.rs:265
cargo test --locked -j4 -p calternal-daily --lib exit 101, 21 passed / the three reported inventory assertions failed; entries include history/meta SQLite files and indexes
cargo test --locked -j4 -p calternal-engine --lib an_idle_user_is_released_and_comes_back_with_nothing_lost exit 101, /proc/self/task read fails with NotFound

The Daily fixture already sorts filenames. APFS case folding aliases its co-located Notes and notes paths. The fix uses distinct supported data/state roots and retains the exact inventory assertions. The Engine replacement observes only the evicted writer's journal-head allocation, avoiding both Linux-only paths and unrelated threads' exits.

Full gates are pending. The Linux startup diagnostic is the only production function touched; its Linux statements are unchanged after cfg expansion. A perf-VM startup ABAB ×5 and dev-vs-dev control will still run. No merge or main-checkout changes.

baseline reproduced on the mac vm at unchanged dev `cd7f84432febfc63b788fbb9b9f9950452982d74`, through Nix and `~/bin/slot`, holding `/tmp/mac-bench.lock` with an EXIT trap. [complete reproduction log](https://git.kayg.org/attachments/0a766965-3d23-409e-8273-2c82aa94605b) | command | result | | --- | --- | | `cargo test --locked -j4 -p calternal --test storage_startup --no-run` | exit 101, E0596 at `storage_startup.rs:147` | | `cargo clippy --locked -j4 -p calternal --bins -- -D warnings` | exit 101, unused `state` in `storage.rs:265` | | `cargo test --locked -j4 -p calternal-daily --lib` | exit 101, 21 passed / the three reported inventory assertions failed; entries include history/meta SQLite files and indexes | | `cargo test --locked -j4 -p calternal-engine --lib an_idle_user_is_released_and_comes_back_with_nothing_lost` | exit 101, `/proc/self/task` read fails with NotFound | The Daily fixture already sorts filenames. APFS case folding aliases its co-located `Notes` and `notes` paths. The fix uses distinct supported data/state roots and retains the exact inventory assertions. The Engine replacement observes only the evicted writer's journal-head allocation, avoiding both Linux-only paths and unrelated threads' exits. Full gates are pending. The Linux startup diagnostic is the only production function touched; its Linux statements are unchanged after cfg expansion. A perf-VM startup ABAB ×5 and dev-vs-dev control will still run. No merge or main-checkout changes.
Author
Owner

The complete macOS workspace run exposed failures beyond the original audit's targeted packages. Discovery log. Two Home executor tests waited indefinitely for publication hooks that were never reached after the executor refused the aliased layout; their exact owned test process was stopped so --no-fail-fast could continue. This discovery run is not a passing gate.

Additional root causes and fixes:

  • The split-storage isolation assertion tested whether state/.../Notes exists. On APFS that resolves to the legitimate notes state directory. Assert that the actual original note path is absent from state instead.
  • The auth recount race unconditionally read /proc/self/fd. It now injects the directory move after the initial walk and before publication using the existing fsio test-hooks feature. The normal recount/retry path and all byte-accounting assertions remain exercised, without timing an OS handle race.
  • fsio's directory test assumed differently cased filenames could coexist. It now verifies the actual directory's alias/distinct-entry behavior while retaining all current-name, replacement and collision assertions. APFS also performs a case-only exclusive rename atomically, so its staging hook legitimately never runs; that path now asserts atomic success and intact original bytes, while the fallback path still checks collision rollback and retained bytes.
  • Concurrent fsio fixture names used only PID and wall-clock timestamp. Add an atomic sequence to avoid sharing a directory when timestamp resolution is coarser than concurrent creation.
  • Home executor, Tasks, search-generation and HTTP task fixtures co-located Notes originals and notes/write-executor state. APFS aliases those paths, and the executor correctly refuses a private journal inside originals. Those fixtures now use separate state and retain that layout across restarts and crash children. The executor's private-journal refusal is unchanged.
  • The Notes shutdown probe also used /proc/self/task. It now checks the owned timer join handle, matching the existing history-writer join assertion. Its no-late-create inventory now uses separate state and sorted original filenames, so SQLite WAL cleanup cannot change the asserted original-file set.
  • Two real SyncClient tests found Bun but lacked y-protocols in the fresh VM checkout. Installed the frozen dependencies through Nix/slot; no test is disabled and no environment failure is reported as a product fix.

No test was cfg-skipped or newly ignored. Production listing, rename, disk-walk and journal safety algorithms are unchanged. The only production change remains making the Linux-only startup diagnostic capture conditional. Full gates and startup perf qualification are still in progress. The earlier Linux run encountered the existing #991 crash-typing not_saved_yet failure; the final run and repeat diagnosis will determine its disposition.

The complete macOS workspace run exposed failures beyond the original audit's targeted packages. [Discovery log](https://git.kayg.org/attachments/f1ae8294-1c7c-4e82-b39c-833c57027fc0). Two Home executor tests waited indefinitely for publication hooks that were never reached after the executor refused the aliased layout; their exact owned test process was stopped so `--no-fail-fast` could continue. This discovery run is not a passing gate. Additional root causes and fixes: - The split-storage isolation assertion tested whether `state/.../Notes` exists. On APFS that resolves to the legitimate `notes` state directory. Assert that the actual original note path is absent from state instead. - The auth recount race unconditionally read `/proc/self/fd`. It now injects the directory move after the initial walk and before publication using the existing fsio test-hooks feature. The normal recount/retry path and all byte-accounting assertions remain exercised, without timing an OS handle race. - fsio's directory test assumed differently cased filenames could coexist. It now verifies the actual directory's alias/distinct-entry behavior while retaining all current-name, replacement and collision assertions. APFS also performs a case-only exclusive rename atomically, so its staging hook legitimately never runs; that path now asserts atomic success and intact original bytes, while the fallback path still checks collision rollback and retained bytes. - Concurrent fsio fixture names used only PID and wall-clock timestamp. Add an atomic sequence to avoid sharing a directory when timestamp resolution is coarser than concurrent creation. - Home executor, Tasks, search-generation and HTTP task fixtures co-located `Notes` originals and `notes/write-executor` state. APFS aliases those paths, and the executor correctly refuses a private journal inside originals. Those fixtures now use separate state and retain that layout across restarts and crash children. The executor's private-journal refusal is unchanged. - The Notes shutdown probe also used `/proc/self/task`. It now checks the owned timer join handle, matching the existing history-writer join assertion. Its no-late-create inventory now uses separate state and sorted original filenames, so SQLite WAL cleanup cannot change the asserted original-file set. - Two real SyncClient tests found Bun but lacked `y-protocols` in the fresh VM checkout. Installed the frozen dependencies through Nix/slot; no test is disabled and no environment failure is reported as a product fix. No test was cfg-skipped or newly ignored. Production listing, rename, disk-walk and journal safety algorithms are unchanged. The only production change remains making the Linux-only startup diagnostic capture conditional. Full gates and startup perf qualification are still in progress. The earlier Linux run encountered the existing #991 crash-typing `not_saved_yet` failure; the final run and repeat diagnosis will determine its disposition.
Author
Owner

additional baseline failure traced: #991 is not a transient file-save delay. the server trace and note text show typed words before the opening properties fence. the safety guard correctly refuses to save that document. the mac dev/head repeats failed 8/10 on dev and 6/10 on the pre-fix branch.

4fd5289a2 makes a new test tab wait for its first full document sync before typing, matching a loaded editor. offline typing after that first sync remains enabled; no save guard or loss/duplication assertion is weakened. exact-head repeats and full gates are queued on both VMs.

an intermediate mac exact-head gate wrapper was interrupted during lock diagnosis; its remaining processes were stopped by their exact owned PIDs. its results will not be used. the final run is queued under a fresh shared-lock wrapper. no other lane's lock or process was changed.

additional baseline failure traced: #991 is not a transient file-save delay. the [server trace and note text](https://git.kayg.org/attachments/c19b3760-0237-44eb-a4d2-127d6fbfe6cb) show typed words before the opening properties fence. the safety guard correctly refuses to save that document. the [mac dev/head repeats](https://git.kayg.org/attachments/8d02248d-e983-4d13-918c-23c805f40d09) failed 8/10 on dev and 6/10 on the pre-fix branch. `4fd5289a2` makes a new test tab wait for its first full document sync before typing, matching a loaded editor. offline typing after that first sync remains enabled; no save guard or loss/duplication assertion is weakened. exact-head repeats and full gates are queued on both VMs. an intermediate mac exact-head gate wrapper was interrupted during lock diagnosis; its remaining processes were stopped by their exact owned PIDs. its results will not be used. the final run is queued under a fresh shared-lock wrapper. no other lane's lock or process was changed.
Author
Owner

final-head macOS verification passed at 4fd5289a2b01732e975a3f4aff784bf2f8def490 under the shared Mac lock, Nix and ~/bin/slot:

  • cargo fmt --all --check: exit 0.
  • cargo test --locked -j4 -p calternal --test notes_crash_typing -- --nocapture: 10/10 separate runs, all exit 0.
  • cargo test --workspace --locked -j4 --no-fail-fast: exit 0, including doctests.
  • cargo clippy --workspace --all-targets --locked -j4 -- -D warnings: exit 0.

complete mac gate logs and repeat logs. the working tree is clean and the gate wrapper has exited, releasing its lock. Linux full gates and the performance comparison remain pending.

final-head macOS verification passed at `4fd5289a2b01732e975a3f4aff784bf2f8def490` under the shared Mac lock, Nix and `~/bin/slot`: - `cargo fmt --all --check`: exit 0. - `cargo test --locked -j4 -p calternal --test notes_crash_typing -- --nocapture`: 10/10 separate runs, all exit 0. - `cargo test --workspace --locked -j4 --no-fail-fast`: exit 0, including doctests. - `cargo clippy --workspace --all-targets --locked -j4 -- -D warnings`: exit 0. [complete mac gate logs and repeat logs](https://git.kayg.org/attachments/7375a7f2-14e7-4e61-9988-6e4d9176a113). the working tree is clean and the gate wrapper has exited, releasing its lock. Linux full gates and the performance comparison remain pending.
Author
Owner

final-head Linux verification also passed at 4fd5289a2b01732e975a3f4aff784bf2f8def490 on the build VM, through Nix and ~/bin/slot:

  • cargo build --release --locked -j4 -p calternal --bin calternal: exit 0.
  • cargo fmt --all --check: exit 0.
  • cargo test --locked -j4 -p calternal --test notes_crash_typing -- --nocapture: 10/10 separate runs, all exit 0.
  • cargo test --workspace --locked -j4 --no-fail-fast: exit 0, including doctests.
  • cargo clippy --workspace --all-targets --locked -j4 -- -D warnings: exit 0.

complete Linux gate logs, release build and repeat logs. the build worktree is clean; all three owned gate/diagnostic units have finished. the final release hash matches the branch binary on perf-01: 0acfa729cc8f56f90f52802873feded99dac4e895b7e9db3a09917937442888b.

both platforms now pass. startup ABAB ×5 plus its dev-vs-dev control remain queued behind the shared performance lock. no merge.

final-head Linux verification also passed at `4fd5289a2b01732e975a3f4aff784bf2f8def490` on the build VM, through Nix and `~/bin/slot`: - `cargo build --release --locked -j4 -p calternal --bin calternal`: exit 0. - `cargo fmt --all --check`: exit 0. - `cargo test --locked -j4 -p calternal --test notes_crash_typing -- --nocapture`: 10/10 separate runs, all exit 0. - `cargo test --workspace --locked -j4 --no-fail-fast`: exit 0, including doctests. - `cargo clippy --workspace --all-targets --locked -j4 -- -D warnings`: exit 0. [complete Linux gate logs, release build and repeat logs](https://git.kayg.org/attachments/943c66a0-8428-4660-8373-8db70d538210). the build worktree is clean; all three owned gate/diagnostic units have finished. the final release hash matches the branch binary on perf-01: `0acfa729cc8f56f90f52802873feded99dac4e895b7e9db3a09917937442888b`. both platforms now pass. startup ABAB ×5 plus its dev-vs-dev control remain queued behind the shared performance lock. no merge.
Author
Owner

review follow-up 3ab5aa57f adds an explicit non-vacuity assertion to the crash-typing test: every tab must have received the initial document and typed at least one word. this guards against a future initial-sync failure causing a zero-word pass. fresh full Linux/macOS gates and ten repeats each are running at that exact head.

only the integration-test file changed after the passing 4fd5289a2 runs. optimized server sources are identical, so the verified release binary for the queued startup comparison remains applicable. the existing perf holder has not released the shared disk locks; no measurements have started.

review follow-up `3ab5aa57f` adds an explicit non-vacuity assertion to the crash-typing test: every tab must have received the initial document and typed at least one word. this guards against a future initial-sync failure causing a zero-word pass. fresh full Linux/macOS gates and ten repeats each are running at that exact head. only the integration-test file changed after the passing `4fd5289a2` runs. optimized server sources are identical, so the verified release binary for the queued startup comparison remains applicable. the existing perf holder has not released the shared disk locks; no measurements have started.
Author
Owner

fresh gates after the final review assertion all passed at 3ab5aa57f3199b64d8b6d2c57495579fa9ce2a7a.

gate linux build VM macOS VM
cargo fmt --all --check exit 0 exit 0
cargo test --locked -j4 -p calternal --test notes_crash_typing -- --nocapture, ten separate runs 10/10, exit 0 10/10, exit 0
cargo test --workspace --locked -j4 --no-fail-fast exit 0 exit 0
cargo clippy --workspace --all-targets --locked -j4 -- -D warnings exit 0 exit 0

all commands ran through Nix and build slots, with the shared Mac lock. the worktrees are clean and both gate jobs have exited. linux logs, mac logs. these replace the earlier head's gate evidence.

no tests received new platform skips or ignores. only the integration-test assertion/documentation changed after the verified optimized binary was built, confirmed with git diff --exit-code 4fd5289a2b01732e975a3f4aff784bf2f8def490 HEAD -- . ':!crates/calternal/tests/notes_crash_typing.rs'.

startup performance remains pending behind the existing shared lock holder. no merge.

fresh gates after the final review assertion all passed at `3ab5aa57f3199b64d8b6d2c57495579fa9ce2a7a`. | gate | linux build VM | macOS VM | | --- | --- | --- | | `cargo fmt --all --check` | exit 0 | exit 0 | | `cargo test --locked -j4 -p calternal --test notes_crash_typing -- --nocapture`, ten separate runs | 10/10, exit 0 | 10/10, exit 0 | | `cargo test --workspace --locked -j4 --no-fail-fast` | exit 0 | exit 0 | | `cargo clippy --workspace --all-targets --locked -j4 -- -D warnings` | exit 0 | exit 0 | all commands ran through Nix and build slots, with the shared Mac lock. the worktrees are clean and both gate jobs have exited. [linux logs](https://git.kayg.org/attachments/840361e7-6517-4ca2-b980-c18bf815adbf), [mac logs](https://git.kayg.org/attachments/7018d864-1983-40e3-ba91-2c4052bd0ff5). these replace the earlier head's gate evidence. no tests received new platform skips or ignores. only the integration-test assertion/documentation changed after the verified optimized binary was built, confirmed with `git diff --exit-code 4fd5289a2b01732e975a3f4aff784bf2f8def490 HEAD -- . ':!crates/calternal/tests/notes_crash_typing.rs'`. startup performance remains pending behind the existing shared lock holder. no merge.
Author
Owner

startup performance is still pending after more than two hours queued for the first shared perf lock. the existing mail matrix remains active under that lock; no measurements have started and no regression claim is being made.

all Rust gates at 3ab5aa57f3199b64d8b6d2c57495579fa9ce2a7a remain passed: exact-head Linux/macOS evidence. both build VMs are cleaned up. the prepared binary pair, Nix Python harness, ABAB ×5 comparison and dev-vs-dev control are ready. continuing the lock wait required by the brief. no merge.

startup performance is still pending after more than two hours queued for the first shared perf lock. the existing mail matrix remains active under that lock; no measurements have started and no regression claim is being made. all Rust gates at `3ab5aa57f3199b64d8b6d2c57495579fa9ce2a7a` remain passed: [exact-head Linux/macOS evidence](https://git.kayg.org/kayg/calternal/pulls/1013#issuecomment-86140). both build VMs are cleaned up. the prepared binary pair, Nix Python harness, ABAB ×5 comparison and dev-vs-dev control are ready. continuing the lock wait required by the brief. no merge.
Author
Owner

first startup comparison completed under both shared locks; both holders were stopped immediately afterward. all raw samples and summaries.

phase metric A (ms) B (ms) B/A delta
dev/dev control p50 54.629 54.959 +0.60%
dev/dev control p95 62.063 60.824 -2.00%
dev/dev control max 79.497 78.287 -1.52%
dev/head p50 54.736 54.325 -0.75%
dev/head p95 61.614 71.660 +16.31%
dev/head max 70.545 79.271 +12.37%

this does not pass the no-regression gate. each phase used ABAB ×5, ten fresh starts per segment, 100 observations per arm. the tail moves across the 95th-percentile cutoff with only a few slow launches: 3/100 dev and 6/100 head launches exceeded 65 ms; most paired block medians favor head.

a second fixed run is now measuring 100 fresh starts per segment, 1,000 observations per arm, with another dev/dev control in the same locked session. this is a precision increase to distinguish tail noise from a repeatable change; the first result remains recorded and will not be discarded. optimized inputs are unchanged. all Rust gates remain passed; performance remains pending.

first startup comparison completed under both shared locks; both holders were stopped immediately afterward. [all raw samples and summaries](https://git.kayg.org/attachments/7df46d88-01d7-4055-b3a3-c2eed27613be). | phase | metric | A (ms) | B (ms) | B/A delta | | --- | --- | ---: | ---: | ---: | | dev/dev control | p50 | 54.629 | 54.959 | +0.60% | | dev/dev control | p95 | 62.063 | 60.824 | -2.00% | | dev/dev control | max | 79.497 | 78.287 | -1.52% | | dev/head | p50 | 54.736 | 54.325 | -0.75% | | dev/head | p95 | 61.614 | 71.660 | +16.31% | | dev/head | max | 70.545 | 79.271 | +12.37% | this does **not** pass the no-regression gate. each phase used ABAB ×5, ten fresh starts per segment, 100 observations per arm. the tail moves across the 95th-percentile cutoff with only a few slow launches: 3/100 dev and 6/100 head launches exceeded 65 ms; most paired block medians favor head. a second fixed run is now measuring 100 fresh starts per segment, 1,000 observations per arm, with another dev/dev control in the same locked session. this is a precision increase to distinguish tail noise from a repeatable change; the first result remains recorded and will not be discarded. optimized inputs are unchanged. all Rust gates remain passed; performance remains pending.
Author
Owner

startup qualification completed on perf-01 under both shared perf locks, through the Nix Python runner and ~/bin/slot. both holder units are stopped. complete raw samples, hashes and summaries.

The larger fixed follow-up used ABAB ×5, 100 fresh split-root server starts per segment, 1,000 observations per arm, and /healthz readiness. The dev/dev control ran first in the same locked session. Baseline remains dev cd7f84432; head is 3ab5aa57f3199b64d8b6d2c57495579fa9ce2a7a. The server sources match the previously built/hashed head binary; the later commit only adds a test non-vacuity assertion.

phase metric A ms B ms B/A delta
dev/dev control p50 54.982 55.131 +0.27%
dev/dev control p95 75.629 76.638 +1.33%
dev/dev control max 108.337 120.507 +11.23%
dev/head p50 76.004 75.919 -0.11%
dev/head p95 111.593 108.860 -2.45%
dev/head max 222.577 216.871 -2.56%

The larger comparison shows no startup regression at p50, p95 or max. Absolute latency rose between the control and comparison phases, so cross-phase absolute timings are not interpreted as a code effect; each comparison uses its interleaved A/B arms. The earlier 100-observation result, including its +16.31% p95 increase, remains recorded. The follow-up was a fixed precision increase, not a code change or a discarded failure. These measurements cover empty split-root startup, the only production path touched; no listing algorithm changed.

Final functional evidence remains the exact-head Linux/macOS gates: cargo fmt --all --check, ten crash-typing repeats, cargo test --workspace --locked -j4 --no-fail-fast, and cargo clippy --workspace --all-targets --locked -j4 -- -D warnings, all exit 0 on both platforms. Both VM worktrees are clean and their private build targets were removed. No platform skips were added, no main checkout was changed, and nothing was merged. No Forgejo reviews have been submitted yet.

startup qualification completed on perf-01 under both shared perf locks, through the Nix Python runner and `~/bin/slot`. both holder units are stopped. [complete raw samples, hashes and summaries](https://git.kayg.org/attachments/4c4cf4de-a680-44c4-a028-bfcbbde4b011). The larger fixed follow-up used ABAB ×5, 100 fresh split-root server starts per segment, 1,000 observations per arm, and `/healthz` readiness. The dev/dev control ran first in the same locked session. Baseline remains dev `cd7f84432`; head is `3ab5aa57f3199b64d8b6d2c57495579fa9ce2a7a`. The server sources match the previously built/hashed head binary; the later commit only adds a test non-vacuity assertion. | phase | metric | A ms | B ms | B/A delta | | --- | --- | ---: | ---: | ---: | | dev/dev control | p50 | 54.982 | 55.131 | +0.27% | | dev/dev control | p95 | 75.629 | 76.638 | +1.33% | | dev/dev control | max | 108.337 | 120.507 | +11.23% | | dev/head | p50 | 76.004 | 75.919 | -0.11% | | dev/head | p95 | 111.593 | 108.860 | -2.45% | | dev/head | max | 222.577 | 216.871 | -2.56% | The larger comparison shows no startup regression at p50, p95 or max. Absolute latency rose between the control and comparison phases, so cross-phase absolute timings are not interpreted as a code effect; each comparison uses its interleaved A/B arms. The [earlier 100-observation result](https://git.kayg.org/kayg/calternal/pulls/1013#issuecomment-86274), including its +16.31% p95 increase, remains recorded. The follow-up was a fixed precision increase, not a code change or a discarded failure. These measurements cover empty split-root startup, the only production path touched; no listing algorithm changed. Final functional evidence remains [the exact-head Linux/macOS gates](https://git.kayg.org/kayg/calternal/pulls/1013#issuecomment-86140): `cargo fmt --all --check`, ten crash-typing repeats, `cargo test --workspace --locked -j4 --no-fail-fast`, and `cargo clippy --workspace --all-targets --locked -j4 -- -D warnings`, all exit 0 on both platforms. Both VM worktrees are clean and their private build targets were removed. No platform skips were added, no main checkout was changed, and nothing was merged. No Forgejo reviews have been submitted yet.
Author
Owner

Merged into dev (U1): cargo test + clippy -D warnings green on Linux and macOS, startup ABAB ×5 shows no regression (p50 −0.11%, p95 −2.45%, control ±1.3%). Changes are test portability plus a Linux-only disk-diagnostic capture.

Merged into dev (U1): cargo test + clippy -D warnings green on Linux and macOS, startup ABAB ×5 shows no regression (p50 −0.11%, p95 −2.45%, control ±1.3%). Changes are test portability plus a Linux-only disk-diagnostic capture.
kayg closed this pull request 2026-11-08 04:24:00 +00:00
Some checks failed
CI / server (pull_request) Has been cancelled
CI / rust (pull_request) Has been cancelled
CI / web (pull_request) Has been cancelled
Markdown extraction contract / markdown-native-contract (pull_request) Has been cancelled
Markdown extraction contract / markdown-editor-contract (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!1013
No description provided.