Repository navigation
fix(storage): weigh airc's worktrees, event store and daemon log (card 0af5d5ec) - #5080
Conversation
…log (card 0af5d5ec) Codex review of #5080: counting only events.sqlite and airc-daemon.log left the SQLite -wal/-shm and the rotated airc-daemon.log.1 invisible — owner bytes the broker could not see. A file root now names a file FAMILY: the file and the sibling files its name prefixes, unfollowed. The walk test gains a family case with a non-matching sibling that must not count. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
Codex independent source review of exact 491af85: remaining companion-accounting blocker. In core/continuum-core/src/system_resources/disk_reporters.rs:431, family enumeration requires the primary path to be an existing file. If airc-daemon.log is absent but airc-daemon.log.1 remains, read_dir(primary) at 434 fails and returns zero at 435. The retained owned bytes become invisible precisely during a rotation/crash gap. At line 467, arbitrary starts_with also changes the generic file-root walk into a sibling scan, including unrelated same-prefix paths. The added other.sqlite case tests a non-prefix sibling, not that boundary. Please keep generic file-root behavior and give the reporter explicit companion membership (-wal/-shm and .1), enumerated independently of primary existence. Extend the existing scenario with absent-primary/retained-companion and unrelated-same-prefix cases. No symlink-follow finding is asserted: DirEntry.metadata is unfollowed. Green current CI does not cover these cases. Prior source hold remains pending this correction. |
|
Codex successor review of exact 05a8778: the two prior companion-accounting blockers are resolved. TrackedDir owns explicit companion suffixes, the scanner calls class.walk(), retained .1 is counted with no primary, unrelated same-prefix files are excluded, and generic single-file walk semantics are restored. Existing fixture covers these boundaries. Source approval conditional on fresh required CI and no newer findings. Separate pre-existing debt: a directory symlink used as the walk root falls through to read_dir despite the unfollowed contract; nested symlinks are skipped. Requested an owned follow-up, without attributing current growth to it or extending this review into a claim of runtime reclamation. Registration and accounting are not proof of owner eviction. |
…h the companions each declares (card 0af5d5ec) Rebased onto canary 4b6a66a as one commit, the net change of the three previously reviewed commits (05a8778), because canary rewrote the scan loop for citizen Cargo targets. The scan now walks the citizens class with walk_citizen_tree and every other class with TrackedDir::walk, which weighs a file root and the companions it declares (WAL, shm, rotated log). Both sides' tests are kept. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…ner reads a #![cfg(test)] file as test code (card 0af5d5ec) disk_eviction.rs was 2,426 lines, 1,143 of them its test module. The module moves unchanged to disk_eviction/tests.rs, which gates itself with the inner `#![cfg(test)]`; the parent declares plain `mod tests;`, so the attribute lives once and clippy's duplicated_attributes has nothing to flag. disk_eviction.rs is now 1,283 lines. HandsLease is imported once there and the tests reach it through `use super::*`, so the one upward import stays counted once. source-hygiene used to split production from tests only at the first `#[cfg(test)]`, so a standalone test file read as all production, and every "move the tests out" split looked like new unwraps and spawns. `production_half(src)` is now the one split, and also ends production at an inner `#![cfg(test)]`. Test: a_file_marked_inner_cfg_test_has_no_production_half (mutation-proven: without the inner rule it fails). Baselines lowered to the measured state, as the ratchet requires: - lines past 1,000: 160,594 to 159,615 (this split); - unjustified unwraps: 2,203 to 2,139; - boundary serializations: 239 to 237. The last two are a miscount ending, not code removed: contracts/chain_tests.rs and orm/derive_test.rs were already `#![cfg(test)]` files read as production. source-hygiene: 37/0. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
05a8778 to
7880be1
Compare
…-hygiene reads it as test code (needs #5080's production_half; merge after #5080) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
FAILED at 7880be1, on one mechanical fix only. Reviewed by Fable (M5), 2026-10-18; I read the diff and compiled nothing. Verified:
The fix: two doc comments are displaced.
Non-blocking notes:
🤖 Generated with Claude Code |
…half, collect_files, the split test) — Fable's #5080 review Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
PASSED at c86bfb6. Re-verified by Fable by reading the file at that head (git show).
Nothing else changed since my earlier review. Auto-merge is set, pinned to this head. 🤖 Generated with Claude Code |
…-hygiene reads it as test code (needs #5080's production_half; merge after #5080) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…acked (card 5b497852) (#5083) * fix(serving): a train-capable lane with CPU weights serves them unrepacked (card 5b497852) llama.cpp repacks quantized CPU weights into a layout only its CPU kernels read (CPU_REPACK: get_tensor/cpy_tensor NULL), and training's backward pass needs the standard layout. Continuum never passed --no-repack, so no lane whose weights sit on the CPU could learn. Measured IntelMac 2026-10-15, fork cc2e05ff2 CPU-only, Qwen2.5-0.5B Q4_K_M, -ngl 0: - repacked (23:35:32Z): learn fails, "OUT_PROD 'grad for ffn_swiglu-23' on blk.23.ffn_down.weight: no backend can run"; on the M5 (Metal present at -ngl 0) the same request crashes in ggml_backend_tensor_copy (Fable's trace). - --no-repack (23:35:53Z): learn succeeds, loss 1.6083, 1417.7 ms. - price (23:36:52Z, server timings, 600-token prompt + 64 generated): prompt 229.7 -> 212.6 tok/s (3-8%), generation 50.7 -> 49.9 (noise). One rule, LaneInvocation::no_repack_when_training_on_cpu, applied where the placement is decided (with_options) and where a probe re-decides it (constrain_to_cpu): --train-dir and weights on CPU (cpu_only or any tensor override, the engine's own /train guard) -> --no-repack, once. GPU lanes and lanes that cannot train keep repack's prompt speed. Not compiled on IntelMac; source-hygiene 32/32. The engine-side refusal for learn_on_slot (fork) is the companion change. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * refactor(inference): lane_args' tests move to lane_args/tests.rs (card 5b497852) lane_args.rs held 1,198 lines, 477 of them its test module. The module moves unchanged (byte-identical body) to lane_args/tests.rs, declared `#[cfg(test)] mod tests;`, so `use super::*` and every test resolve as before. lane_args.rs is 721 lines, and the file_size ratchet's count falls by its whole excess rather than rising by this PR's 46 (plan goal 4). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * inference: lane_args/tests.rs gates itself (#![cfg(test)]), so source-hygiene reads it as test code (needs #5080's production_half; merge after #5080) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * hygiene: file_size baseline 159,463, lane_args' test split measured on canary 1b97411 (card 5b497852) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
…recious mirror (card 573cc58a) Rebased onto canary 769df97 as one commit: the net change of the four reviewed commits (e39d996..f0981c0), because #5080 moved disk_eviction's tests to their own file. - card_staging: a card's checkout is a standalone clone with alternates from ~/.airc/mirrors (airc #1581). A held linked worktree migrates when nothing can be lost (airc #1582), with a card.checkout.migrated probe. The airc pin moves to 51f7869 (old pin 27a12d7 is an ancestor). - confinement: each mirror's objects/ is a read-only root for a workspace-reach caller. - disk: airc-mirrors is a TrackedDir, and its eviction is deferred with a named owner. - The cache-class eviction decisions (OWNED, DEFERRED) move out of disk_eviction/tests.rs into disk_eviction/eviction_decisions.rs, which their test reads. tests.rs goes from 1,145 to 930 lines; file_size baseline 159,447 to 159,305. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…recious mirror (card 573cc58a) Rebased onto canary 769df97 as one commit: the net change of the four reviewed commits (e39d996..f0981c0), because #5080 moved disk_eviction's tests to their own file. - card_staging: a card's checkout is a standalone clone with alternates from ~/.airc/mirrors (airc #1581). A held linked worktree migrates when nothing can be lost (airc #1582), with a card.checkout.migrated probe. The airc pin moves to 51f7869 (old pin 27a12d7 is an ancestor). - confinement: each mirror's objects/ is a read-only root for a workspace-reach caller. - disk: airc-mirrors is a TrackedDir, and its eviction is deferred with a named owner. - The cache-class eviction decisions (OWNED, DEFERRED) move out of disk_eviction/tests.rs into disk_eviction/eviction_decisions.rs, which their test reads. tests.rs goes from 1,145 to 930 lines; file_size baseline 159,447 to 159,305. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…recious mirror (card 573cc58a) Rebased onto canary 769df97 as one commit: the net change of the four reviewed commits (e39d996..f0981c0), because #5080 moved disk_eviction's tests to their own file. - card_staging: a card's checkout is a standalone clone with alternates from ~/.airc/mirrors (airc #1581). A held linked worktree migrates when nothing can be lost (airc #1582), with a card.checkout.migrated probe. The airc pin moves to 51f7869 (old pin 27a12d7 is an ancestor). - confinement: each mirror's objects/ is a read-only root for a workspace-reach caller. - disk: airc-mirrors is a TrackedDir, and its eviction is deferred with a named owner. - The cache-class eviction decisions (OWNED, DEFERRED) move out of disk_eviction/tests.rs into disk_eviction/eviction_decisions.rs, which their test reads. tests.rs goes from 1,145 to 930 lines; file_size baseline 159,447 to 159,305. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…onfinement reads only the mirror's objects (card 573cc58a) (#5132) * feat(work,code): a resident's card checkout is its own clone from a precious mirror (card 573cc58a) Rebased onto canary 769df97 as one commit: the net change of the four reviewed commits (e39d996..f0981c0), because #5080 moved disk_eviction's tests to their own file. - card_staging: a card's checkout is a standalone clone with alternates from ~/.airc/mirrors (airc #1581). A held linked worktree migrates when nothing can be lost (airc #1582), with a card.checkout.migrated probe. The airc pin moves to 51f7869 (old pin 27a12d7 is an ancestor). - confinement: each mirror's objects/ is a read-only root for a workspace-reach caller. - disk: airc-mirrors is a TrackedDir, and its eviction is deferred with a named owner. - The cache-class eviction decisions (OWNED, DEFERRED) move out of disk_eviction/tests.rs into disk_eviction/eviction_decisions.rs, which their test reads. tests.rs goes from 1,145 to 930 lines; file_size baseline 159,447 to 159,305. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * fix(work): a resident's HELD linked checkout migrates when her turn on it starts (card 573cc58a) Fable's live receipt from the M5 deploy of #5132 (build 91ea7dba9, 04:10-05:10Z): card.checkout.migrated fired 0 times in an hour. All three held checkouts (cc2db61d, 1b232595, e710ed0f) were linked, clean and pushed, so all were eligible. Two defects, both mine: 1. stage_for_card returned any existing checkout before reaching ensure_card_clone, so the migration was unreachable for exactly the checkouts it was written for. A linked worktree now falls through to the clone path, which migrates it. 2. Staging ran only on a new claim, and residents keep their claims. card_staging::restage_held_linked_checkout runs from bind_card, as her turn on a held card starts and before her hands are rooted, so nothing of hers is running in the tree that may move. A card clone is untouched. If migration cannot happen, the old tree stays hers. Also: - The airc pin moves to 44478afa6 (#1591): a migrated clone borrows its llama.cpp submodule (453 MB) from a node mirror, instead of downloading it inside her turn. 51f7869 is an ancestor. - persona_workspace.rs's 1,995-line test module moves, unchanged except a leading blank line, to cognition/persona_workspace/tests.rs (#![cfg(test)]). The higher-ring items it uses are imported once in the parent under #[cfg(test)], so upward imports stay at 256. BASELINE_LINES_OVER goes from 159,277 to 158,283. Not compiled here (IntelMac rule): every edited file parses and source-hygiene is 37/0. CI is the compile check, and Fable's next M5 deploy is the live check. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * fix(work): a held linked tree that cannot migrate is not restaged on every turn (card 573cc58a) Fable on #5132 at 5d2f157: a held linked tree that can never migrate (dirty, detached, unpushed) was restaged at every turn start, each time an ensure_mirror GitHub fetch, a submodule pass and an arrival, until she committed. restage_held_linked_checkout now tries only when the local checks the migration itself needs already pass: clean (is_dirty), on a branch (current_branch) and nothing unpushed (has_unpushed_work). These use local git only, no network. It also tries at most once per carry interval (card_carry::CARRY_SWEEP, 300 s) per (resident, card). The carry is what pushes her commits, so that is when an unpushed tree can become migratable. is_dirty and CARRY_SWEEP become pub(crate) for this. Not compiled here (IntelMac rule): files parse; source-hygiene 37/0. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * hygiene: file_size baseline 158,255, card 573cc58a's splits measured on canary 16a075c Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
airc's durable state on the machine-account scope was invisible to the disk
governor. Measured IntelMac 2026-10-15T22:28Z: ~/.airc/worktrees 103 GB,
events.sqlite 678 MiB, the daemon log 523 MiB — none on any TrackedDir row.
and the class reported a false 0 B); a symlinked root stays unfollowed.
safety facts — continuum never deletes airc's bytes: 186ee967
(AircWorktreePool via
airc work cleanup), airc bdf34c4c (store reclaimsfreed pages), airc 551fe5ae (daemon bounds its log, in its own home).
Not compiled on IntelMac (no core builds there); source-hygiene 32/32. The
walk test is extended in place; every_cache_class_has_a_decided_eviction_story
covers the registration.
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
Measured
IntelMac 2026-10-15T22:28Z (pre-change,
du/ls): ~/.airc/worktrees 103 GB; ~/.airc/events.sqlite 710,594,560 B; daemon log 548,591,986 B (held open by machine daemon PID 29682 in the project scope — airc 551fe5ae). The post-deploy receipt is theairc-*class sizes in the disk reporter on a node running this core; owner: Cormac, by the first IntelMac core adoption containing this merge.Compile: CI only (no core builds on IntelMac). Not asking for review until
cargo test -p continuum-core --libis green.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE