Skip to content

Framing by importance, volatile by content: active-work + room-board leave the stable head - #2359

Merged
joelteply merged 1 commit into
canaryfrom
perf/volatile-content-tier
Aug 22, 2026
Merged

joelteply merged 1 commit into
canaryfrom
perf/volatile-content-tier

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Replay scorer convicted both on live captures (worst pairs 4-10% reuse, divergence at ~char 7,900 of 90-185k prompts). New GroundingSource::volatile_content decouples the attention floor from stable-tier placement. Receipt to watch: cached% climbing on consecutive same-room turns.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…work and room-board leave the stable head

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).

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 14:07
@joelteply
joelteply merged commit 0735b95 into canary Aug 22, 2026
5 checks passed
@joelteply
joelteply deleted the perf/volatile-content-tier branch August 22, 2026 14:17
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