Skip to content

fix(perception): board view honors claim leases — lapsed claims read claimable, not held (#264) - #2138

Merged
joelteply merged 1 commit into
canaryfrom
fix/board-lease-honesty
Aug 3, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/board-lease-honesty

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Kills the stale-lease loop attractor: RoomBoardSource told personas they HOLD cards whose leases expired days ago, contradicting the #156 lost-claim fact every wake (all 17 live board claims are stale — the conway/wordstats fixation substrate). One lease predicate (mirroring airc-lib's is_active_claim, doc-linked) applied at three sites: your-work lead counts only live leases; available-work lead includes lapsed cards (claimable via contention, previously invisible); per-card render states the lapse. 9/9 tests incl. new regression.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…claimable, never held (#264)

The stale-lease loop attractor, glass-boxed 2026-08-03: airc's roster correctly
drops an expired lease from active_claims (firing the #156 lost-claim fact once),
but RoomBoardSource kept rendering the same card as HELD — '[your work] you HOLD
n card(s)… They remain yours until finished' — every wake. One perception said
'your claim lapsed', the next said 'you hold it': the system argued with itself
and the residents re-oriented on dead work forever (all 17 board claims stale;
the conway/wordstats fixation).

Fix at the shared read surface (one predicate, three sites): claim_is_live
mirrors airc-lib's is_active_claim (doc-linked — continuum deps airc-protocol,
not airc-lib). (a) the your-work lead counts only live leases; (b) the
available-work lead includes lapsed non-terminal cards — they are genuinely
claimable via contention and were previously invisible as work, sticky as an
attractor; (c) per-card render says 'claim lapsed (was YOURS/{peer}) — claimable'.
Fixture cards now carry live leases by default with a lapse() helper for the
stale shape; regression test pins all three behaviors.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) August 3, 2026 17:41
@joelteply
joelteply merged commit 6bd2f0c into canary Aug 3, 2026
@joelteply
joelteply deleted the fix/board-lease-honesty branch August 3, 2026 17:41
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