Repository navigation
fix(persona): claim renewal is EARNED by cognition, not by breathing - #2323
Merged
Merged
Conversation
…451 follow-up) The presence-bound renewal ('her work stays hers while she breathes') fixed #331 by overcorrecting into lease-immortality-while-idle: overnight, 600/600 inbound events filtered non-turn, zero turn.starts for hours, three leases renewing on the minute — a stalled round reading as 'actively held' forever, with three finished artifacts the lapsed-claim sweeper could never recover. persona/cognition_pulse.rs (one concern, one module): per-persona 'when did she last THINK' stamps. Stamped at spawn (one lease-length of grace covers the post-boot deaf window, #412) and at every service-loop turn start — a turn that defers on serving pressure still counts; only true silence lapses. The renewal loop gates on it: no cognition within one lease-length → skip renewal (loud renewal_skipped_idle probe) → the hold lapses naturally → the card is re-claimable (#2286) and any written artifact gets graded by the sweeper. Contract pinned by a pure truth-table test. Same round, before this landed: Anon organically closed expr_eval and the grade tail posted RESOLVED:true in 1s — the citizen loop works; this fix makes its recovery path honest when a citizen goes silent. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… acts and turns (#414b, the Anwen regression) The missing feedback, measured from her own captures: act result bodies lived only in the K=1 last_action slot (any act overwrites — a list_files destroyed her compile error) and the settlement-gated pinned block (gone once she spoke). Heads persisted (slice B archive); RESULTS did not. She re-ran the same unfixed code three turns running, wandering discovery tools between, blind to the error she had already been given. recent_results: char-bounded deque of (seq, room, result TAIL) in working memory — window-derived share (ContextBudget::recent_results_chars, 1/32), tails are the result's final chars (errors/conclusions live at the end), eviction oldest-first by total chars. Rendered every turn as its own trailing block before the pinned full-latest — small, append-only, KV-prefix stable, deliberately NOT settlement-gated (the #139 full-dump objection doesn't apply to ~300-char tails). Snapshot/restore round-trips it (serde default for old snapshots). Regression test pins the contract: a finding survives later trivial acts; the buffer respects its bound. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…change probes (#399, overnight stalemate root cause) Two defects burned the night of 2026-08-15→16 (round stalled 'actively held', zero convergence, and the evidence rotated away before morning): 1. RESTART RESURRECTION: the honest-heartbeat birth grace stamped a cognition pulse at spawn, so every core restart re-armed 30 minutes of 'earned' claim renewals — and the renewal loop resurrected already-lapsed claims faster than the 180s sweeper could observe them. Convergence-by-lapse was structurally impossible across restarts. REMOVED: renewal is earned only by actual cognition (turn.start pulse); never-stamped ⇒ denied ⇒ holds lapse within one TTL of boot unless she thinks. Live-verified: leases lapsed at 08:30, sweeper closed+graded both artifacts 13s later, board went 4/4. 2. ARCHEOLOGICAL PROBE STREAM: serving.plan emitted identical rows per tick — measured 2.6 rows/s, 51% of the stream — so the probe file held 17 minutes of history and every incident became forensics on destroyed evidence. Emit-on-change everywhere (Joel: 'dynamic and easy to probe, not archeological'): - plan probe fires only when its fingerprint changes (windows quantized to 1k buckets in the fingerprint only — token-level free-memory wobble is noise, not a plan change) - warm-slot-oversubscribed moved OUT of the pure planner (called 2x/tick on different budgets — any per-call dedup alternates and floods) onto the daemon's adopted-plan path behind the same gate - renewal_skipped_idle fires once at the denial TRANSITION, with a paired renewal_resumed when cognition returns — not every 60s tick forever Measured after: 0.07 rows/s serving.plan (39x), renewal probe exactly one row per citizen, stream span 17min → hours. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…dband, oversubscribed probe on adopted plan (#399 final) Live measurement defeated the quantized fingerprint twice: served_window wobbles ~1k tokens/tick (1k buckets → 146 rows/3min) and usable_gb churns ±1-2GB live (GB granularity → 563 rows/15min). Trigger on DECISIONS only; measured fields ride as payload; window changes emit past a >1/8 relative deadband (the #415 deadband shape) — a real re-plan clears it, wobble never does. The warm-slot-oversubscribed probe (removed from the pure planner in the previous commit — plan_serving_stable calls it twice per tick on different budgets, defeating any per-call dedup, measured 260 rows/3min) lands here on the daemon's ADOPTED-plan path behind the same gate. Measured steady state after deploy: 0.07 rows/s (was 2.6/s). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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 presence-bound renewal ('her work stays hers while she breathes') fixed #331 by overcorrecting into lease-immortality-while-idle: overnight, 600/600 inbound events filtered non-turn, zero
turn.startfor hours, three leases renewing on the minute — a stalled round reading as actively held forever, with three finished artifacts the lapsed-claim sweeper could never recover.Fix:
persona/cognition_pulse.rs— per-persona when did she last THINK stamps. Stamped at spawn (one lease-length of grace covers the post-boot deaf window, #412) and at every service-loop turn start; a turn that defers on serving pressure still counts — only true silence lapses. The renewal loop gates on it: no cognition within one lease-length → skip renewal (loudrenewal_skipped_idleprobe) → the hold lapses naturally → card re-claimable (#2286), artifact graded by the sweeper. Contract pinned by a pure truth-table test.Context: same round, Anon organically closed
expr_eval→ RESOLVED:true in 1s. The citizen loop works; this makes its recovery path honest when a citizen goes silent.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo