Repository navigation
feat(cognition): lost-claim transition fact — a lease that expires speaks, once (#156) - #2114
Merged
Merged
Conversation
…eaks, once (#156) The second half of tonight's flywheel physics (the Benchy case): his Millbrook lease expired, another peer legitimately re-claimed the card, and NOTHING told him — active_claims just stopped listing it, so he kept narrating 'I've already claimed…' and planning work on a card he no longer held. Held claims already ground every cycle (ActiveWorkSource is in the standing set and drives the world-state change detector); what was missing is the TRANSITION. ActiveWorkSource now keeps a diff memory of the last successful read (card_id → title, sync Mutex never held across await). A card that vanishes between successful reads emits one honest fact — '[work] Your claim on card X "title" is no longer held by you (lease expired or released). Do not continue work on it as yours — check the board before touching it again.' — then the baseline adopts: a transition, not a nag loop. Honest scoping: the fact never claims to know WHO holds it now (that needs a board read). Guards pinned by tests: losing your LAST card still speaks (the empty-claims path no longer swallows it); a DEGRADED read never fabricates loss (baseline survives errors, the fact fires only when a successful read shows the card gone); the first-ever read has no baseline to lose from. 3/3. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Aug 2, 2026
… receipt (#159-family rejection-amnesia fix) (#2120) Glass-boxed live 2026-08-02: e5f4141d's claim on card 44ebaa41 was rejected (held by 90e758b2) and she reported the rejection ACCURATELY for three turns — then, once the raw action receipt scrolled out of her 2-6 turn window, re-narrated 'I've already claimed the task' and planned work on a card she never held. The board's arbitration keeps the system safe; her turns are what burn. A rejection is WORK-STATE, not a transient tool result — it must outlive the context squeeze. - persona/claim_rejections.rs (NEW): per-persona rejection ring (process singleton, same shape as install_tracked_dirs). 10-min TTL — several polls past the receipt's window, never an eternal nag; capped at 4/persona (a claim-storm can't flood perception). Error text is carried VERBATIM (honest provenance, no paraphrase). - work/claim records each rejection under the caller's peer uuid — the same identity space ActiveWorkSource is bound to. - ActiveWorkSource renders the live entries as [work] claim_rejected facts beside the #2114 lost-claim diff — the two halves of the same contract: a claim you LOST and a claim you never GOT both stay in perception as long as the belief could resurface. Perception fact, never a gate. Tests: ring contract (per-persona + TTL expiry + cap) with injected clock; source integration (renders with ZERO claims — exactly the amnesia shape — and only for its persona). claim_rejections + active_work_source + prompt_assembly + modules::work all green. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5 <[email protected]>
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.
The Benchy silent-handoff case: a lease expires, the card vanishes from
active_claims, and the persona keeps working a card it lost. Now the vanish emits one[work] claim_losttransition fact (diff memory over successful reads), then the baseline adopts. Losing your LAST card still speaks; a degraded read never fabricates loss; first read has no baseline. 3/3 tests.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo