Skip to content

Her warm pass names her act's view end, so the engine keeps her resume point (the M5's ~100k-token re-prefills) - #6085

Merged
joelteply merged 3 commits into
canaryfrom
fable/warm-pass-keeps-her-view
Nov 16, 2026
Merged

joelteply merged 3 commits into
canaryfrom
fable/warm-pass-keeps-her-view

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Serves path step 1, Fast (median act under 60 s), and order-of-work line 2 (prefix reuse at least 80%).

Measured (live M5, engine b5534b5, 2026-11-16)

  • About 8.3M tokens prefilled; 6.4M of them were re-prefills behind a matched prefix.
  • 83 of the 95 pages saved without a view end followed a warm pass. The warm pass clones the request template, which never carries view_messages; the act sets that per request (contribute.rs).
  • Example: one mind resumed at the head checkpoint 9,655 with 109,197 tokens matched, re-prefilling 99.5k tokens. Its previous act's prefill took 1,076 s.

Change

warm_request (extracted pure) carries her act's view.resumes_at(). The engine half is fork CambrianTech/llama.cpp#123: a request that names no view end keeps the previous one inside the reused prefix.

Tests

the_warm_pass_names_her_acts_view_end. CI is the compiler: a local cargo test builds the vendored engine beside the live residents (plan rule 2). contribute.rs stays at 993 lines.

Measured after deploy

Owner: Fable. Same serving-down window as llama.cpp#122/#123. Prefix reuse on the health line (68% now), the full-vs-restored prefill split from the engine log, and median act time.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply and others added 2 commits November 16, 2026 10:59
…e point (the M5's ~100k-token re-prefills)

Serves plan path step 1, "Fast" (median act under 60 s), and line 2 (prefix reuse >= 80%).

The warm pass (prefill during the tool) cloned the request TEMPLATE, which never carries
view_messages (the act sets it per request, contribute.rs). So every warm pass sent her prompt with no
view end, the engine recorded her view end as unknown, and the page saved next dropped the checkpoint
where her next prompt diverges. Measured on the live M5 (engine b5534b5, 2026-11-16): 83 of the 95
pages saved without a view end followed a warm pass; one mind then resumed at the head checkpoint
9,655 with 109,197 tokens matched, re-prefilling 99.5k tokens.

warm_request carries her act's view_messages (view.resumes_at(), the value her act sent). The engine
side is fork llama.cpp#123 (a request that names no view end keeps the old one inside the reused
prefix); either alone closes this path, together any caller is safe.

Test: the_warm_pass_names_her_acts_view_end (warm_request is extracted pure for it). contribute.rs
stays at 993 lines. Compiled and tested in CI: a local cargo test builds the vendored engine beside
the live residents (plan rule 2).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ir one owner), not two positional values (Codex: contract_shape 2187 -> 2188; now passes locally)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@github-actions github-actions Bot removed the size: L label Nov 16, 2026
@joelteply

Copy link
Copy Markdown
Contributor Author

Independent Codex review of exact 6235798: no blocking findings in this narrow change. The caller passes the same assembled DeliberationPromptView; messages and resumes_at() therefore come from one snapshot. warm_request replaces the template's absent/stale view boundary, retains its other generation fields, and preserves the existing one-token/new-request-id behavior. None stays explicit when this view has no resumable boundary. Source-hygiene and Windows lib/tests checks are green; remaining selected tests must finish successfully before merge.

This is source approval, not an after-deploy performance claim. Fable owns the recorded-load and live prefix-reuse/act-time comparison with the engine integration. The added unit regression verifies request propagation; it does not by itself prove saved-page restoration.

@joelteply
joelteply merged commit daddf2b into canary Nov 16, 2026
17 checks passed
@joelteply
joelteply deleted the fable/warm-pass-keeps-her-view branch November 16, 2026 17:32
joelteply added a commit that referenced this pull request Nov 16, 2026
…ept on a warm pass, placed checkpoints, draft KV once per page, async page IO (#6086)

Serves the residents' acts directly (plan path step 1, "Fast"; order-of-work lines 2-3b): the engine stops
re-prefilling a mind's context and stops copying state it already holds.

b5534b531..f39cf25fb (CambrianTech/llama.cpp, codex/s4-per-mind-integration), each independently reviewed:
- #123 a request that names no view end keeps the mind's view end inside the reused prefix (the ~100k-token
  re-prefills seen on the M5); pairs with canary's #6085 (the warm pass names the view end).
- #127 placed checkpoints keep her head through a full store; the rules are pure and proven natively.
- #130 a page carries the draft's KV once; checkpoints stop copying it.
- #118 a KV page's file IO runs on a worker; in-flight page bytes are admitted against one runtime budget
  (0 until the core sets one: one switch's bytes at a time, still off the task loop).

## Measured after deploy
Owner: Fable, in one serving-down M5 window (residents saved first, engine rebuilt with serving down, restart
through the supported lifecycle). Read for 15 minutes against the hour before: acts/h, median act, prefix
reuse and re-prefill tokens from the [health] line; worse than canary goes back at once.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Opus 5.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