Skip to content

debug/prompt-reuse replay + the deaf-kickoff root fix (say it IN the round's room) - #2350

Merged
joelteply merged 1 commit into
canaryfrom
feat/prompt-reuse-replay
Aug 21, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/prompt-reuse-replay

Conversation

@joelteply

@joelteply joelteply commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Two tightly-coupled repairs from the same investigation:

  1. debug/prompt-reuse — playback half of the prompt-capture recorder: scores predicted KV prefix reuse (char-LCP) between consecutive calls per persona, naming each divergence with excerpts from both sides. Offline iterate-to-refine for the ordering work; same corpus feeds the future training set.

  2. Deaf-kickoff root fix — two dispatches today reported kickoffs: 1, zero addressees received one: the voice's plain say() targets HER current room, not the round's. Atlas solved a gym exercise she could see while her pre-claimed SWE card sat silent (zero edits in any staged tree all day). The voice now joins the round room and publishes via publish_text_in_room(round_room_id). Completes Evaluate Qwen3.5-35B-A3B as local inference model — Opus reasoning distilled, 3B active #417 + P0 20b44763.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…ration (Joel: "record and playback so we could iterate to refine")

The record half already existed and is on by default: JsonlPromptCaptureSink
writes the VERBATIM system + message thread of every deliberation call, per
persona (1,598 capture files on this box). This adds the playback half as
`debug/prompt-reuse`: walk a persona's calls chronologically, score char-level
LCP between consecutive first-generation calls (predicted KV prefix reuse), and
name every divergence point with a ±20-char excerpt from BOTH sides — the
analysis done by hand on 2026-08-19 (divergences at chars 8216/7879/8133, the
#266 ordering defect), now a repeatable query any operator can run with no agent.

Honest proxy, stated in every result: char LCP ≈ tokens×4 ranks assembly
variants and locates mutation; ACTUAL slot reuse remains the
inference.prefill.complete probe. High predicted + low actual = the loss is
between assembly and the slot (routing/eviction), which is itself diagnostic.

Same scope posture as debug/probes/query (reads every citizen's verbatim
prompts → Privileged, off the persona vocabulary). Iteration>0 re-prompts are
excluded — within-turn prefix share is trivial and would inflate the score.

The same corpus now serves three consumers: this refinement loop, the eventual
training set (each capture is a real prompt/response/tool-trace triple for L1
lifting + LoRA distillation — Joel's "might actually allow it to learn"), and
incident forensics. Record once.

3 tests: divergence lands on the exact mutated char; stable-head reuse scores
high; field separation prevents cross-boundary LCP credit.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) August 21, 2026 20:31
@joelteply
joelteply merged commit 145b233 into canary Aug 21, 2026
5 checks passed
@joelteply
joelteply deleted the feat/prompt-reuse-replay branch August 21, 2026 20:43
@joelteply joelteply changed the title debug/prompt-reuse: record/playback scoring for KV iteration debug/prompt-reuse replay + the deaf-kickoff root fix (say it IN the round's room) Aug 21, 2026
joelteply added a commit that referenced this pull request Aug 22, 2026
…work and room-board leave the stable head (#2359)

debug/prompt-reuse (the replay scorer, #2350) on tonight's live captures: the
worst consecutive-turn pairs scored 4-10% predicted reuse, and every divergence
excerpt named the same spans — [active-work] flapping between "card X [Claimed]"
and "[work] Your claim on card X…", and [room-board] churning card states — at
~char 7,900 of 90-185k-char prompts. A mutating span parked at the TOP of the
prompt invalidates the KV of everything behind it; these two sources were the
single largest remaining re-prefill cause.

Root cause: SaliencePolicy::StandingFraming conflated two axes — selection
priority (the attention floor; correct for these sources) and stable-tier
PLACEMENT (correct only for byte-stable content). GroundingSource now carries
volatile_content: importance keeps the floor, placement follows content
stability. active-work and room-board serialize in the volatile tail nearest
generation, where their mutation costs only itself; roster/doctrine/map/wall
stay in the cacheable head.

Expected receipt: cached/total on inference.prefill.complete climbing from
~0-30% toward the stable-head+conversation share on consecutive same-room turns
(which FOCUS, #2358, now makes the common case).


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