Skip to content

feat(cognition): lost-claim transition fact — a lease that expires speaks, once (#156) - #2114

Merged
joelteply merged 1 commit into
canaryfrom
feat/lost-claim-transition-fact
Aug 2, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/lost-claim-transition-fact

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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_lost transition 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

…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
joelteply merged commit efb769f into canary Aug 2, 2026
@joelteply
joelteply deleted the feat/lost-claim-transition-fact branch August 2, 2026 17:39
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]>
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