Repository navigation
A turn's credit follows the claim she takes during it (card 12ddd78f) - #5523
Merged
Merged
Conversation
Kimi's initiative turn on the 5090 (2026-10-27) began holding nothing, then reopened 5c5b7a08, claimed it, committed and submitted. A turn's capture was decided once at its start, so nothing was staged; the submit's issuing generation (822892a8) bound to no row and the PASS review of c46cc5c6 held forever (training.credit.provenance_held). A turn that began on one claim and took another staged everything under the first. ClaimFollowingCapture rereads her held card after each board act (work/*). When the card or its claim changes, the current segment closes and a new one opens from that act, so no generation before a claim is credited to it. Both credited drivers (drive_in_held_card, the held-work turn) use it; each segment is an ordinary TurnCreditCapture, opened through TurnCreditCapture::opener. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…se it was (Codex on #5523) A failed active_claims read right after a claim kept staging under the old claim, crediting the new claim's work to it for good. Now the turn is unsettled from that act: nothing new stages, every later act reads again, and the answering read puts the boundary at the first unread board act (the new claim from the latest one; anything between two unread board acts goes to neither). Still unread at the end: only what came before is staged. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…dex on #5523) With a hold unread after claim Y, a next act that claims Z and reads Z opened Z back at Y's act, crediting Y's generation to Z. The answering board act is the latest that could have taken the claim it shows; the unread stretch before it goes to no claim. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…ch to no claim (Codex on #5523) Held A, claim B unread, release B answered as A: 'unchanged' restored B's generations to A. Unchanged proves no claim was taken only when one board act was in question; across several, A closes at the first unread act and resumes after the answering one. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…tests catch it Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A resident's reviewed work only reaches her training if the generation that issued her submission was staged under the claim she submitted with. This is plan path step 3 (Learning, goal 8), the learning lane: a reviewed correction that reaches her genome.
Kimi's PASS on submission c46cc5c6 (card 5c5b7a08, 5090, 2026-10-27) holds forever with
training.credit.provenance_held/Unresolved("generation 822892a8 ... must identify exactly one staged revision"). Codex read her store read-only and found:staged_credit_generationfor 822892a8 hastotal=0;cause=ambient;initiative_turn held0 active_claims0.Her initiative turn began holding nothing, so it opened no capture (
drive_in_held_card: "with no card held ... no capture"). In that same turn she reopened the card, claimed it, committed and submitted.apply_actstill stamped 822892a8 as issuing, so the pending binding names a generation that nothing would ever stage.The same defect, one step later: a turn that begins on one claim and takes another stages everything under the first claim. The submission's claim then matches no row.
What
training_producer/claim_following.rs(new),ClaimFollowingCapture:work/*; nothing else can change a hold), it rereads her held card through the samefocus_workspace_cardthe turn's rooting uses.CapturedCreditevidence floor).training.credit.claim_unreadable).training.credit.claim_uncertain_dropped).training.credit.claim_followed.TurnCreditCapture, opened through the newTurnCreditCapture::opener. This type decides only where segments begin and end.Both credited drivers use it:
card_hands::drive_in_held_card(room and initiative turns) and the held-work turn inact_question.drive_in_held_cardnow returns the last claim the turn stood on, so a turn that claimed mid-way is card-linked and its speech isn't also submitted as unlinked conversation.Not recovered: c46cc5c6 itself. Its generation was never staged, and nothing fabricates a binding.
Verified
Not built locally: enrico is serving and measuring a rollback, and IntelMac's builds go to CI.
follow(reader filtered toNone). Run 40477308653, job 122098699503: 1216 passed, 2 failed, both the new tests on their attribution assertions (Codex verified):a_claim_taken_during_a_turn_credits_from_that_act_on, staging.rs:479: the final record stages nothing;an_unread_claim_stages_nothing_until_a_read_says_whose_it_was, staging.rs:573: the old claim kept[before, claiming, unread, answered]where[before]was expected.git diff --quiet ea3409fc3 cc5cd08a0exits 0.Tests (real
DataModuleover SQLite):a_claim_taken_during_a_turn_credits_from_that_act_on:[claimed, issuing];resolve_pendingbinds the issuing generation to exactly the new claim's row.an_unread_claim_stages_nothing_until_a_read_says_whose_it_was(Codex's review cases):[before]; new claim[claiming, unread, answered];claim_following::tests: only board acts reread holds; a new claim on the same card is a new hold.Measured after deploy
Owner Cormac, by 10-29: on the first node running this, a resident submission made in a turn that claimed mid-way reaches
training.credit.transferredafter review, or its first missing step is named.Removed / added
+143 / -11 across 5 files; one new file of about 150 lines. No duplicate removed:
TurnCreditCapturestays the one staging owner, and both drivers' hand-builtfor_turncalls now go throughopener.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE