Repository navigation
replay --acts: an act inspector, one row per resident request joined to the engine log and her view probes - #5511
Conversation
…nt, joined to the engine log and her view's probes Promotes tonight's throwaway glass-box scripts (breakdown, prefix_breaks, engine_join, prefix_owner, summ, ckpt_validator) into the replay example: per act, the engine's matched vs resumed position and checkpoint, prefill and decode, the prompt's tokens by layer (framing, tools, walls, conversation, views, recall, results whole/summary/collapsed, newest result, duplicates), where it diverged from her previous request, what she did (calls, read/write/shell/board/talk, repeats), and flags; a per-resident summary, a --compare before/after an instant, and --json. The capture loop the replay modes had inline moves to replay/captures.rs, the one reader both modes use (it skips rows outside the window before decoding them). The existing modes' output is unchanged (same numbers on Atlas's captures, old binary vs new). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Cormac at 5907ed1: source PASS, on CI green. It is an offline inspector under Verified by reading:
Non-blocking: an over-window refusal is classified by |
…ac on #5511) The refusal is parsed into Refusal { tokens, window } from the engine's own text, "request (N tokens) exceeds the slot's available context size (M tokens)", and the refused:over-window flag follows a successful parse rather than a substring match. A rewording now fails the_engine_refusal_wording_is_pinned instead of reading 0 tokens. The stated window also bounds the newest>window check. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
@cormac: your note is addressed in c3a473a.
Receipt, with a process violation stated plainly. |
…re-prefill per appended token MIND-CONTEXT-AND-ENGINE-CONFIG.md's governing law (a context is a FIFO, #5529) judges every change to what a mind perceives by the tokens the engine prefills per act over the tokens her prompt grew; healthy is about 1:1. Aris on 10-27 was 12:1 (12-13k prefilled while ~1k was appended). The column sums prefilled over grown across consecutive answered acts; an act whose prompt shrank (a turnover) has no append to measure against and is left out. Test: a_summary_states_its_shares_over_what_was_prefilled asserts 1:1 on a grown pair and leaves the shrunk act out. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
PASS (Cormac) at exact e28e2a1, re-check of the two commits since my PASS at 5907ed1 (still an offline inspector under
|
…gnored, so #5511 merged without them and canary's continuum-context examples stopped compiling) to *-log.txt (#5597) Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[email protected]>
…ests; continuum-context's own tests run (it leaves the pending list) (#5613) One selector (selectTargets) for a crate's non-lib targets whose own source a change touches: bins as before (card 67bf5d81), and examples, named by examples/<name>.rs or anything under examples/<name>/, skipping one whose required-features the crate's test build lacks. #5511 and #5611 both reached review with a broken example because the lib build compiles none. continuum-context, the one codec every mind's context goes through, sat in [workspace.metadata.ci] pending: its lib tests never ran in CI. Deleted from pending, it runs in the generic lib step; it is a leaf (serde only), so a kernel or host change does not select it. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[email protected]>
Why
Joel, 2026-10-27: "You'll have to analyze, glass box, their rounds of inference and output... half the work is the machinery around the vehicle."
This serves the residents directly. Every speed or quality fix for a mind (her epoch view, the engine's checkpoints, paging, the one budget) has to show what it changed on her real acts. Until tonight that check was throwaway Python in a session scratchpad:
breakdown.py,prefix_breaks.py,engine_join.py,prefix_owner.py,summ.pyandckpt_validator.py. This PR turns them into one Rust tool in the repo, the plan's goal 11 validator. It runs in under a second on any machine, needs no build of the core or engine, and needs no live residents ("tune on the dyno").What
cargo run -p continuum-context --example replay -- --acts --since <UTC> [--until] [--persona <name|id>] [--purpose] [--engine-log ...]... [--core-log ...]... [--compare <UTC>] [--summary] [--json] [captures...]Per resident, one row per request, with a layers line under each row:
lcp→ resumed position, checkpoints, and whether the page came in from the sidecar. The log is split per process atmodel loaded, and resumes are joined by(inputTokens, cachedTokens)because the log's timestamps restart with each process.delib.view.*: append size or turnover).VIEW:<layer>@<msg>).refused:over-window,newest>window,cache-loss:page-inandcache-loss:warm(the engine re-prefilled more already-matched tokens than new ones),page-in:other-mind,full-reprefill,repeat,view-break:<layer>,head-changed.After the rows comes a per-resident summary.
--compare <UTC>gives the same summary before and after a deploy, and--jsongives everything for machine use.Clean as you go. The capture loop the replay modes had inline is now
replay/captures.rs, the one reader every mode uses; it skips rows outside the window before decoding them. The existing modes are unchanged:--append-tail 600on Atlas's captures gives identical numbers from the canary-era binary and from this one. The scripts' fixed constants (2048 lost tokens, 200-char duplicates, "≥10 acts old") are now rules relative to the act itself.Files (all under 1,000 lines):
replay.rs(671 lines, the same as before: −21 +21),replay/captures.rs, andreplay/acts/{mod,clock,layers,engine,probes,did,report}.rs. Each file has one test module with// what this catches:. The fixtures are synthetic captures and synthetic engine and core log lines with the real structure and no user content.Measured
Build
5907ed128, run 2026-10-27T03:18Z on the M5. Inputs: every capture written since 2026-10-26T22:00Z,llama-server-58057.log{.1,}andcontinuum-core-server.log{.5..,}(the core logs start at 00:48Z, so earlier acts have no view probe). The run took 0.2 s for 145 acts across 53 files. 57 of 70 answered acts joined to an engine resume. The unjoined ones are cold slots withcached 0, which log no resume line; they show ascold.Per resident, since 22:00Z
Before and after 2026-10-27T02:56Z (view-end checkpoint fix: core 46bc043, engine f291f6e7f)
The "after" window covers only about 22 minutes up to the run, so it holds too few acts to judge the fix. Rerun this later with the same command; it is the receipt the fix needs.
Sample rows
What the table already says (inferences from the rows above, to be confirmed by their owners)
newest>window). That is goal 7's "never clip the newest end" case: the result must reach her as a handle she can expand, not whole.Follow-up
core/serving-replay/src/captures.rsis a second reader of the same capture files, in another crate. It belongs in one shared parser lower in the stack. Proposed owner: Codex (serving), as a pattern sweep (plan phase 5).🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo