Skip to content

steps-ledger probe names its working-memory instance - #2356

Merged
joelteply merged 1 commit into
canaryfrom
feat/steps-ledger-identity
Aug 22, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/steps-ledger-identity

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

One-row witness for duplicate cycles: WorkingMemory gets a process-unique ordinal, perception.steps_ledger emits it. Found while diagnosing Atlas's split-brain (veteran taken=3389 vs newborn taken=0 alternating under one persona). Also records the despawn cognition-registry leak for follow-up.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…ance — a duplicate cycle becomes visible in one row

Diagnosing tonight's split-brain (Atlas's turns alternating between a veteran
WorkingMemory at taken=3389 and a newborn at taken=0 that told her "nothing has
executed yet" mid-claim) required correlating ANONYMOUS ledger rows by counter
arithmetic across a probe stream that also mixes personas. A ledger row that
cannot say whose ledger it is cannot witness a duplicate.

WorkingMemory now carries a process-unique construction ordinal (diagnostic
only), and perception.steps_ledger emits it as wm_instance. The next duplicate
shows as two instance ids under one persona's turns — one row, no archaeology.

Also on the record from the same investigation: persona/instances/despawn leaves
the cognition registry entry resident (cognition/personas still lists 4 after 3
despawns) — loops are aborted so the leak is idle, but eviction belongs in the
despawn teardown (follow-up).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) August 22, 2026 00:58
@joelteply
joelteply merged commit 85625c4 into canary Aug 22, 2026
5 checks passed
@joelteply
joelteply deleted the feat/steps-ledger-identity branch August 22, 2026 01:09
joelteply added a commit that referenced this pull request Aug 22, 2026
* feat(persona): FOCUS — a self-tick binds to the held claim's room, not home

Measured 2026-08-22 mid-round: a citizen holding a live claim alternated
home-room self-ticks with work-room turns, and every swap re-rendered the
room-scoped context (kanban, steps-ledger, room speech) through her ONE pinned
slot — `cached: 0` by her own hand, plus attention spent re-orienting in a room
her work is not in. The institution's version: you sit at your desk until the
job is done; the break room is for between jobs.

The self-cycle now resolves her freshest live claim (max claim_expires_at_ms —
most recently taken or heartbeated) to its round ROOM and composes there; no
claim, or a claim on an untracked card, falls back home exactly as before.
Probe: persona.selftick.focused fires on each non-home binding.

Card→room resolves through the bench-round registry tonight (a round IS its
room). Joel's correction stands as the follow-up seam: the kanban board is
airc's own room projection, so the durable answer to "which room holds this
card" belongs airc-side, native — the in-core registry is the interim mirror
and covers exactly the bench cards where the clobber was measured.

Also: perception.steps_ledger now carries persona (+ wm_instance from #2356) —
the duplicate-cycle signature is two wm ids under ONE persona, and without the
persona key tonight's read (three wm ids in one room) was unconvictable: it was
three personas legitimately sharing the round room.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* fix: justify the focus sort's unwrap_or on its own line — the ratchet is right, unknown is not a quantity

unknown expiry sorts LEAST-fresh: it can never win focus over a known-live
lease, and a lone expiry-less claim still focuses (better than home).

Co-Authored-By: Claude Fable 5 <[email protected]>
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