Skip to content

Every held card checkout goes through airc's ensure_card_clone: an unanchored clone holding nothing unpublished is re-allocated (card 7f824214) - #5873

Merged
joelteply merged 3 commits into
canaryfrom
7f824214/a-held-card-clone-with-no-creation-ancho
Nov 8, 2026
Merged

joelteply merged 3 commits into
canaryfrom
7f824214/a-held-card-clone-with-no-creation-ancho

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Kimi on the Windows node, 2026-11-08: a clean, weeks-old card clone (e5fe473) with no
allocation evidence was handed back to her as-is by stage_for_card's early return, so her hands
sat on old code and work/submit could never name a base. airc e05c44d (#1668) makes
ensure_card_clone re-allocate such a clone when nothing in it is unpublished (HEAD and every branch
tip on the remote, clean tree, no stash) and refuse naming what it holds otherwise. The early
return is deleted, so every existing checkout reaches it (the linked-worktree migration of #1582
needed the same path), and a re-allocation is probed as card.checkout.reallocated.

Bumps the airc pin 22c9c0e -> e05c44d (6 commits; IPC_PROTOCOL_VERSION unchanged at 6).

Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…anchored clone holding nothing unpublished is re-allocated (card 7f824214)

Kimi on the Windows node, 2026-11-08: a clean, weeks-old card clone (e5fe473) with no
allocation evidence was handed back to her as-is by stage_for_card's early return, so her hands
sat on old code and work/submit could never name a base. airc e05c44d (#1668) makes
ensure_card_clone re-allocate such a clone when nothing in it is unpublished (HEAD and every branch
tip on the remote, clean tree, no stash) and refuse naming what it holds otherwise. The early
return is deleted, so every existing checkout reaches it (the linked-worktree migration of #1582
needed the same path), and a re-allocation is probed as card.checkout.reallocated.

Bumps the airc pin 22c9c0e -> e05c44d (6 commits; IPC_PROTOCOL_VERSION unchanged at 6).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply and others added 2 commits November 8, 2026 07:54
… through the stager too (Codex on #5873)

Two more paths handed an existing checkout back as-is, so Kimi's anchorless clone never reached
ensure_card_clone: restage_held_linked_checkout returned early for any present non-linked
checkout, and next_after_submission submitted from any found path. One predicate,
card_checkout::lacks_allocation_evidence (airc's allocation_evidence, off the runtime threads), is
true unless evidence decodes against its creation anchor; both paths now send such a checkout to
the stager (re-allocate, or refuse naming what it holds). A checkout with its evidence keeps the
fast path. Test: none, valid, then the anchor deleted. continuum-mind card_checkout + card_staging:
12 passed (IntelMac, --features metal).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…hored one predating the full allocation record keeps working (#5873 CI)

32ea routed any checkout without airc's full allocation record to ensure_card_clone, which refuses
one holding unpushed work: a checkout with its creation anchor but from before airc wrote the record
(continuum-core's a_checkout_derived_submit_publishes_her_patch_and_records_its_issuer) could no
longer submit. Submit needs only the anchor. The predicate is now card_checkout::lacks_creation_anchor:
Kimi's clone has none and still goes to the stager; an anchored one is reused. stage_for_card keeps
its early return for an anchored, non-linked clone, so a claim never sends old anchored work to that
refusal. Tests: none / anchor only / anchor gone; card_checkout + card_staging 12 passed, the failing
continuum-core test passes (IntelMac, --features metal).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply merged commit 8dfe0ba into canary Nov 8, 2026
45 checks passed
@joelteply
joelteply deleted the 7f824214/a-held-card-clone-with-no-creation-ancho branch November 8, 2026 15:22
joelteply added a commit that referenced this pull request Nov 8, 2026
… one already off it back keeping her work (Kimi, card f76005e8) (#5877)

* Arrival never moves a card checkout off its creation anchor, and puts one already off it back, keeping her work (card f76005e8)

Kimi on the Windows node, 2026-11-08 16:11Z (Codex da817b0e): after #5873 re-allocated her clone at
canary bcbd4aa, arrival fetched her old card branch (e5fe473, off another line), the remote won,
and her anchor left HEAD, so work/submit refused.

workspace_transfer:
- arrive_over: a remote whose tip does not contain the creation anchor is RemotePredatesAllocation
  (tree untouched); unproven ancestry (shallow clone, missing commit) is AncestryUnknown, never
  adopted on a guess. proven_ancestry answers only with complete history and both commits present.
- arrive -> realign_to_anchor first: a checkout whose HEAD provably left its anchor keeps HEAD whole
  (dirty edits committed, no hooks) under a stranded ref, counts the commits no remote carries, and
  goes back on the anchor (Realigned). Her work is never replayed for her.
- ArrivalOutcome::notice says what she must know; Staging::Ready carries the notable arrival,
  ClaimWorkspace::Ready shows it, and a submit right after a realignment refuses with it (her work
  is on the stranded ref).
callers: off_creation_anchor (no anchor, or HEAD not descended from it) routes claim staging and
submit through the stager; a held turn restages only an anchorless checkout, since a realignment
there could not tell her.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* CANDIDATE (airc pin = unmerged #1669 head; tests pending on the IntelMac): proven ancestry with exit codes, history completed for a shallow departed checkout, arrival under the checkout lock, AncestryUnknown said (Codex e302c1d0, f37a1861)

- GitError carries git's exit code; is_ancestor: exit 0 yes, exit 1 no, anything else no answer.
- proven_ancestry: a yes is proof in any clone; a no only with complete history.
- arrive_locked: CHECKOUT_SYNC held across the arrival; first complete_history_if_departed
  (shallow + anchor + exit-1 no -> airc complete_card_history under airc's network bound), then
  the arrival within ARRIVE_BOUND. Every git keeps the lock until it has ended.
- realign: an unproven departure is AncestryUnknown, never realigned; its notice reaches her and
  a submit refuses with it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* Arrival split into workspace_transfer/arrival.rs; the history fetch holds the checkout lock in its blocking task; arrival runs under the claim's hands admission (Codex b7194c2c)

- workspace_transfer.rs 1030 -> 658: the arrival concern moved whole to arrival.rs (380).
- complete_history_if_departed moves an Arc of the lock guard INTO spawn_blocking, so an
  arrival dropped mid-fetch keeps the checkout locked until airc's git ends. The completer is a
  fn parameter (prod: airc complete_card_history). Test: a dropped arrival leaves the lock held
  until a 600 ms stand-in fetch ends; without the guard in the task it fails.
- arrive_for takes the claim's HandsContext and runs arrive_locked under hands_gate::admitted:
  continuum_process::holding needs an admission, and card staging had none, so without it every
  arrival would have failed 'holding needs an admission'. No claim / closing hands = a named failure.
- shallow test: the anchor is an older commit fetched at depth 1 (present, cut off from the tip).

Ratchets: blocked only on four inherited text matches in touched files (git_bridge out_of_time,
workspace_transfer classify_push_error / is_missing_remote_ref, a [..8] cut) that #5867 replaces;
asked Fable to land that slice first.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* Pin airc to a3a7396 (#1669 merged: complete_card_history)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* Classify checkout Git outcomes through the runner and account layer writes

Integrates the typed outcome and porcelain portions of Fable PR5867 into the split arrival owner. Preserve off-anchor WIP, cancellation custody, and the real WorkSubmit recovery fixture. Route citizen metadata through the existing citizens disk class.

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant