Repository navigation
fix(work): a stale claim id names the live claim and the way out, not "something did not match" - #4310
Conversation
… "something did not match" Follow-up to #4309, promised at review. #4309 correctly stopped a supplied `claim_id` from bypassing ownership, but both halves of that guard shared one sentence: "submission requires your matching claim on this card" Look at who that sentence can reach. The guard only ever judges a citizen who SUPPLIED a claim id — the caller resolves the claim off the board when it is omitted, and refuses there with its own two specific sentences. And `claim_id` is documented optional ("read off the board when omitted"), which makes it a fillable blank in the AI manual; citizens demonstrably fill those — ab76eb8 landed because they were sending `<string>`, and `is_placeholder_hash` in this very file exists for the same reason. So the population is "she supplied an id", and its likeliest defect is a STALE one from a re-claim after a lapsed lease — routine, not exotic, since a lease dies in any restart longer than its remaining TTL (Kimi lost hers twice on 2026-09-21). A citizen who OWNS the card and HOLDS a live lease was told only that *something* did not match: the fourth opaque refusal in a row for the citizen #4309 was written to unblock. Each half now says what it saw, and the stale-id half names the corrective that actually works — omitting `claim_id` makes the caller read the live claim off the board, and this guard then passes. Verified against that call path, because a corrective clause that does not perform the correction is the defect #4309 removed one layer down. The decision is extracted as the pure `holder_guard` so both refusals are pinned by a test rather than by a sentence nobody reads until it fires — the shape #4308 used for `partially_registered`. Also: `no staged checkout` now names an actor. It said staging "must be restored" by nobody, which is unactionable. Staging is claim-time work and not a verb a citizen can call, so the refusal says re-claim, and says plainly that a re-claim which still yields no checkout is a substrate fault to report rather than work to re-do — her patch is not the problem. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
APPROVE — reviewed at exact head ba60a00 (checks green). Mechanism unchanged from #4309's guard — owner must be me AND the board's claim must equal the supplied one, before any local work is read — now a pure |
Follow-up to #4309, promised at review and written in a worktree so the deploy tree stays on canary.
The sentence, and who it can reach
#4309 correctly stopped a supplied
claim_idfrom bypassing ownership. Both halves of that guard shared one sentence:The guard only ever judges a citizen who supplied a claim id — the caller resolves the claim off the board when it is omitted, and refuses there with its own two specific sentences. And
claim_idis documented"read off the board when omitted", which makes it a fillable blank in the AI manual. Citizens demonstrably fill those:ab76eb848landed because they were sending<string>, andis_placeholder_hashin this very file exists for the same reason.So the population is "she supplied an id", and its likeliest defect is a stale one from a re-claim after a lapsed lease — routine rather than exotic, since a lease dies in any restart longer than its remaining TTL. Kimi lost hers twice on 2026-09-21. A citizen who owns the card and holds a live lease was told only that something did not match: the fourth opaque refusal in a row for the citizen #4309 was written to unblock.
What changes
Each half now names what it saw, and the stale-id half names the corrective that actually works:
card X is held by 3f9a21b7, not by you — only the holder submitsthe claim id you passed (7c1e0f44) is not the live claim on card X — the board's claim is af0c8806. YOU DO HOLD THIS CARD; omit claim_id and submit again and the live claim is read off the board for you.I verified that corrective against the call path rather than asserting it: with
claim_idomitted, theNonearm resolves her live claim off the board and this guard then passes. A corrective clause that does not perform the correction is exactly the defect #4309 removed one layer down — I did not want to reintroduce it one layer up.The decision is extracted as the pure
holder_guardso both refusals are pinned by a test rather than by a sentence nobody reads until it fires — the shape #4308 used forpartially_registered. The test asserts the holder case names who, the stale case names both ids plus the way out, that the stale case does not say "only the holder submits" (she is the holder), and that an unclaimed card names that absence rather than printing an empty slot.Also: the staging refusal gets an actor
card X has no staged checkout on this node; staging must be restored before submissionstates a true condition and names nobody — restored by whom, with what command? Staging is claim-time work, not a verb a citizen can call, so the refusal now says re-claim, and says plainly that a re-claim which still yields no checkout is a substrate fault to report rather than work to re-do. Her patch is not the problem, and the refusal should not let her think it is.Verification
Not compiled here — no cargo on this serving node, CI is the compiler. Parse-checked, and the types were confirmed against their existing uses (
airc_core::PeerIdpercard_holder.rs:68,ClaimId::from_uuidandshort8as already used in this file,uuid::Uuidfully qualified to match the sibling test at line 974, since this test mod has an explicit import list and nouse super::*).Close condition: a submit with a stale
claim_idreturns a refusal naming both ids andomit claim_id, and following that instruction succeeds.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo