Skip to content

fix(work): a stale claim id names the live claim and the way out, not "something did not match" - #4310

Merged
joelteply merged 1 commit into
canaryfrom
fix/submit-refusal-names-the-live-claim
Sep 21, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/submit-refusal-names-the-live-claim

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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_id from bypassing ownership. Both halves of that guard shared one sentence:

submission requires your matching claim on this card

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 "read off the board when omitted", which makes it a fillable blank in the AI manual. Citizens demonstrably fill those: ab76eb848 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 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:

case refusal
another peer holds it card X is held by 3f9a21b7, not by you — only the holder submits
hers, id is stale the 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_id omitted, the None arm 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_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. 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 submission states 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::PeerId per card_holder.rs:68, ClaimId::from_uuid and short8 as already used in this file, uuid::Uuid fully qualified to match the sibling test at line 974, since this test mod has an explicit import list and no use super::*).

Close condition: a submit with a stale claim_id returns a refusal naming both ids and omit claim_id, and following that instruction succeeds.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

… "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
@joelteply

Copy link
Copy Markdown
Contributor Author

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 holder_guard whose two refusals each say what they saw: held-by-another names WHO; stale-id names BOTH ids and the corrective that actually works (omit claim_id, the caller reads the live claim off the board and this guard passes). The population reasoning is right: the guard only ever judges a citizen who SUPPLIED an id, and the likeliest supplied id is a stale one from a re-claim after a lapsed lease — Kimi's fourth opaque refusal of the night. The unclaimed case names that absence instead of printing an empty slot. The missing-staging sentence now says staging is claim-time work and not a verb, and tells her a failed re-claim is a substrate fault to report rather than work to redo — the exact false-instruction class #4309 removed, closed on its sibling. Test pins all three shapes and that the stale half never says 'only the holder submits' to the holder. Merge in the batch.

@joelteply
joelteply merged commit d7c0256 into canary Sep 21, 2026
5 checks passed
@joelteply
joelteply deleted the fix/submit-refusal-names-the-live-claim branch September 21, 2026 16:36
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