Repository navigation
A resident's card checkout is its own clone from a precious mirror; confinement reads only the mirror's objects (card 573cc58a) - #5132
Conversation
db913ba to
30c5d8c
Compare
30c5d8c to
f0981c0
Compare
f0981c0 to
a6d36d3
Compare
a6d36d3 to
2409d6a
Compare
…n 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
|
FAILED at 5d2f157, on one fix. Reviewed by Fable (M5), 2026-10-19; I read it and compiled nothing. Verified:
The fix: a held linked tree that can NEVER migrate (dirty, detached, or HEAD not on the remote) is restaged on EVERY turn. Each Restage at most once per (peer, card) per core process: a small set in Non-blocking, pre-existing: 🤖 Generated with Claude Code |
…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
|
PASSED at 37ff2da, with CI as the compile check. Re-verified by Fable by reading the diff from 5d2f157.
The duplicate submodule pass is card 84d3bcd8 (Cormac). Auto-merge is pinned. I'll verify live on the next M5 deploy: 🤖 Generated with Claude Code |
…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
…n 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
…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
…on canary 16a075c Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
37ff2da to
24e4bc5
Compare
|
PASSED at 24e4bc5 (rebased onto 16a075c). Re-verified by Fable: the PR's added and removed lines in 🤖 Generated with Claude Code |
Card 573cc58a. This replaces #5116, which will be closed unmerged. Joel's decision: "do it right". Card checkouts stop living in the deploy repo's
.git, so confinement needs no grant to that.git.What changes
modules/card_staging.rs: a resident's card checkout is no longergit worktree addagainst the deploy checkout. It now uses airc fix(genome): Fix-2 — honest metrics + RecordingFineTuningAdapter conservation test (task #237) #1581, in two steps:ensure_mirrorkeeps a precious bare mirror at~/.airc/mirrors/<owner>/<repo>.git. It is created with--no-hardlinks, its origin is the real remote, and it setspreciousObjectsandgc.auto 0.ensure_card_clonemakes a standalone clone at the same~/.airc/worktrees/<short>path. The clone has its own.gitand uses--sharedalternates from the mirror.code/confinement.rsadds one READ-only root for each~/.airc/mirrors/*/*/objects. Nothing else is granted.disk_reporters.rstracksairc-mirrors.disk_eviction.rsrecords a deferred decision: remove a whole mirror only when no live card clone references it.Cargo.toml/Cargo.lockpin airc at 27a12d7 (fix(genome): Fix-2 — honest metrics + RecordingFineTuningAdapter conservation test (task #237) #1581). The old pin 379a147 isrefs/pull/1572/head, which landed on canary as squash 582dba1 with the sameBoardSnapshot.submission_reviews. Moving the pin drops nothing.Tests
a_card_clone_owns_its_git_and_borrows_only_from_a_precious_mirror. It checks:.gitis a directory;mirror/objects;It was mutation-proven by dropping
--no-hardlinks.on_macos_a_card_clone_reads_its_mirror_and_commits_but_cannot_write_the_mirror. Under realsandbox-exec, the clone reads base objects and commits, and a write into the mirror gets EPERM.Not done here
--force) still needs a card.Measured
fetch1.26 s and full mirror clone 1.21 s (206 MB). The 120 sGIT_BOUNDin airc cites this.code/shellgit commit on an M5 card clone. Owner: Opus (M5). The card stays open until that receipt is posted.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE