Repository navigation
debug/prompt-reuse replay + the deaf-kickoff root fix (say it IN the round's room) - #2350
Merged
Merged
Conversation
…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
enabled auto-merge (squash)
August 21, 2026 20:31
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]>
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.
Two tightly-coupled repairs from the same investigation:
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.
Deaf-kickoff root fix — two dispatches today reported
kickoffs: 1, zero addressees received one: the voice's plainsay()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 viapublish_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