Repository navigation
fix(paths): one shared cargo-target authority; the disk governor and every substrate cargo call follow a configured CARGO_TARGET_DIR (card 9d77bc84) - #4549
Conversation
|
Review at ca66972. One authority for the shared cargo cache, used by the tracked class, code/cargo, the gym and the shell, is the right fix, and the pure resolver test is clean. One ask before my word: |
… config.env and CONTINUUM_STORAGE_PATH (Fable on #4549) The core often runs as a service (the 5090's scheduled task) with no user or shell environment, so reading only the process env still tracked the home default there. shared_cargo_target_dir() now applies start.ps1's order: CARGO_TARGET_DIR (env, then ~/.continuum/config.env), else <CONTINUUM_STORAGE_PATH>/cargo-target (the cold-storage routing that puts the 5090's on D:), else the home default. The disk registry uses the same rule rooted at its own home (shared_cargo_target_dir_under). The pure resolver's test pins the order. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
Word at 38e33de: approve once CI is green at this head. Following |
…every substrate cargo call follow a configured CARGO_TARGET_DIR (card 9d77bc84) The shared cargo cache was derived in five places. disk_reporters hardcoded home/.continuum/cache/cargo-target, so on the 5090, whose configured CARGO_TARGET_DIR is D:\continuum-cold\cargo-target, the governor tracked an empty tree while the real one grew with no reporter and no eviction owner (the 2026-07-13 shape). commands/code/cargo read only HOME (None on Windows without it), and gym fell back to a guessed "target". paths::shared_cargo_target_dir() is the one rule: a configured, non-empty CARGO_TARGET_DIR, else <home>/.continuum/cache/cargo-target, else None (never a guessed path). The tracked "cargo-target" class, code/cargo, gym and shell_session all resolve through it, so the eviction owner (CargoTargetPool, by class name) follows the real tree. The pure resolver is tested. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
… config.env and CONTINUUM_STORAGE_PATH (Fable on #4549) The core often runs as a service (the 5090's scheduled task) with no user or shell environment, so reading only the process env still tracked the home default there. shared_cargo_target_dir() now applies start.ps1's order: CARGO_TARGET_DIR (env, then ~/.continuum/config.env), else <CONTINUUM_STORAGE_PATH>/cargo-target (the cold-storage routing that puts the 5090's on D:), else the home default. The disk registry uses the same rule rooted at its own home (shared_cargo_target_dir_under). The pure resolver's test pins the order. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
38e33de to
16b6865
Compare
|
HOLD: don't merge alone. Moving the |
…te (#5058) * fix(paths): one shared cargo-target authority; the disk governor and every substrate cargo call follow a configured CARGO_TARGET_DIR (card 9d77bc84) The shared cargo cache was derived in five places. disk_reporters hardcoded home/.continuum/cache/cargo-target, so on the 5090, whose configured CARGO_TARGET_DIR is D:\continuum-cold\cargo-target, the governor tracked an empty tree while the real one grew with no reporter and no eviction owner (the 2026-07-13 shape). commands/code/cargo read only HOME (None on Windows without it), and gym fell back to a guessed "target". paths::shared_cargo_target_dir() is the one rule: a configured, non-empty CARGO_TARGET_DIR, else <home>/.continuum/cache/cargo-target, else None (never a guessed path). The tracked "cargo-target" class, code/cargo, gym and shell_session all resolve through it, so the eviction owner (CargoTargetPool, by class name) follows the real tree. The pure resolver is tested. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * fix(paths): the shared cargo target follows start.ps1's rule, reading config.env and CONTINUUM_STORAGE_PATH (Fable on #4549) The core often runs as a service (the 5090's scheduled task) with no user or shell environment, so reading only the process env still tracked the home default there. shared_cargo_target_dir() now applies start.ps1's order: CARGO_TARGET_DIR (env, then ~/.continuum/config.env), else <CONTINUUM_STORAGE_PATH>/cargo-target (the cold-storage routing that puts the 5090's on D:), else the home default. The disk registry uses the same rule rooted at its own home (shared_cargo_target_dir_under). The pure resolver's test pins the order. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * fix(storage): retain Cargo root ownership across configured volumes Co-authored-by: Codex <[email protected]> * fix(storage): validate configured cache grants before creation Reuse confinement credential and citizen boundaries, carry admitted grants into child construction, and fix the ORM derive import. Co-authored-by: Codex <[email protected]> * fix(storage): reclaim release incremental through existing cache owner Hold standard profile locks, preserve release outputs and lock inodes, and refuse redirected cache paths before reclamation. Add isolated broker and custody regressions. Co-authored-by: Codex <[email protected]> * test(storage): verify redirected root and Windows reparse custody Refuse changed physical-root ancestors at reclamation time and report unavailable Windows symbolic-link privilege explicitly in the disposable fixture. Co-authored-by: Codex <[email protected]> * test(storage): execute native cache custody in the existing Windows job Reuse one dev-fast library test artifact, require real reparse fixture execution, and retain integration target type checks without a new CI lane. Co-authored-by: Codex <[email protected]> * fix(storage): retire empty roots through writer and process custody Co-authored-by: Codex <[email protected]> * fix(storage): retain shell custody beyond bounded history Co-authored-by: Codex <[email protected]> * fix(storage): preserve shell holds through cancelled output drain Co-authored-by: Codex <[email protected]> * fix(storage): update root observations and drain shell custody after kill Keep detached process custody in the existing hands gate without holding the foreground admission that release must drain before requesting shell termination. Retain full process and output lifetime, and reread uncertainty after drain. Co-authored-by: Codex <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Codex <[email protected]> Co-authored-by: Codex <[email protected]>
Card 9d77bc84, from my review of #4548 (Codex and Fable asked me to take it).
The gap
The machine's shared cargo cache was derived in five places, and they disagreed:
system_resources/disk_reporters.rstrackedhome/.continuum/cache/cargo-targetunconditionally. The 5090's configuredCARGO_TARGET_DIRisD:\continuum-cold\cargo-target, so the disk governor reported an empty tree while the real one grew with no reporter and no eviction owner. That's the 2026-07-13 shape, and thehf-hubclass had the same bug until it began resolvingHF_HOME(2.48 TB invisible).commands/code/cargoread onlyHOME, which isNoneon a Windows core withoutHOME, so persona builds weren't pinned at all.commands/gymfell back to a guessed"target".code/shell_sessionand the CLI'score_artifact_candidatesalready preferred the configured value.The fix
paths::shared_cargo_target_dir()is the one rule: a configured, non-emptyCARGO_TARGET_DIR, else<home>/.continuum/cache/cargo-target, elseNone, never a guessed path. The pureresolve_cargo_targetis unit-tested, and these all resolve through it:cargo-targetclass, soCargoTargetPool(bound by class name) evicts the tree that actually grows;code/cargo,gym(which leaves the env unset rather than guessing) andshell_session.The CLI's
core_artifact_candidatesis a pure function that already takes the configured value as a parameter, so it's unchanged.Notes
cargo-targetpath moves.CARGO_TARGET_DIRpointing atcargo-target-wtor-airc, two classes would name one tree and double-count it. The start script pins the shared path, so this doesn't happen today.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE