Skip to content

Her window is her served slot, computed on her node; the one-machine 49,152 knee is deleted (ONE-BUDGET slice 6) - #5612

Closed
joelteply wants to merge 1 commit into
canaryfrom
fable/computed-working-window
Closed

joelteply wants to merge 1 commit into
canaryfrom
fable/computed-working-window

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

It serves the minds by sizing every resident's window from her own node's measured capacity rather than a number replayed on one machine. Goal 7, slice 6 of #5607.

Why: WORKING_WINDOW_TOKENS = 49_152 was a knee replayed on the M5's captures on 10-28. On any other machine (a 3090, an M4 32 GB, an unknown box) it is that box's constant.

The math under #5610's derived start:

  • An epoch lives about (W/2) ÷ a acts, where a is her measured append per act.
  • Each turnover re-prefills about W/2.
  • So amortized prefill per act is about 2a for any W. W only moves the size of the turnover act's spike.

Replay at half start (M5 captures, Aiko, 2026-10-29):

Window Median view prefill Mean view prefill Turnovers
49,152 41,420 chars 40,382 chars 29
60,672 (the served slot) 32,122 chars 47,746 chars 21

Change: her window is binding.context_window, the served slot. The serving plan computes it on her node from that engine's measured KV capacity and memory, and it's narrowed only by the provider's measured feedback. Deleted:

  • WORKING_WINDOW_TOKENS;
  • ContextBudget::working_window(_when) and its test;
  • prompt_fit_served;
  • the working-window-exceeded rebuild branch;
  • the faculty's working_window().

Deploy order: after #5610, as its own deploy, measured on its own.

Measured

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

… measured KV capacity and memory: the 49,152 knee replayed on one machine's captures is deleted, with the second fitting path it needed

Under the derived half start (#5610) an epoch lives (W/2)/a acts and re-prefills ~W/2,
so amortized prefill per act is ~2a whatever W is; W only moves the turnover act's spike.
Replay at half start (M5 captures, 2026-10-29, Aiko): 49,152 vs the 60,672 slot: median
view prefill 41,420 vs 32,122 chars, mean 40,382 vs 47,746, turnovers 29 vs 21.

Deleted: WORKING_WINDOW_TOKENS, ContextBudget::working_window(_when) and its test,
prompt_fit_served, the working-window-exceeded rebuild in contribute.rs, the faculty's
working_window(); the tool surface's warning reads the served window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 30, 2026
…ver deleted bare (agrees with ONE-BUDGET contract 7; #5612 folds into L3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Held in the 2026-10-30 triage: ONE-BUDGET contract 7 says the 49,152 knee becomes a measured prefill-cost term, not a bare deletion, and the replay in this PR's own body showed a bare slot-sized window raised mean view prefill (47,746 vs 40,382 chars). The window becomes L3's measured decision (HOW-A-MIND-GETS-WHAT-SHE-NEEDS section 5); this PR folds into that work.

joelteply added a commit that referenced this pull request Oct 31, 2026
…e; the window knee folds into L3 (#5615)

* Render receipt: a render is not a send (the receipt binds at successful submission); an unreadable stored whole is a typed Unavailable to the allocator, never an implicit pointer; wakes need submission, Whole, Resident/Loaded and a matching hash and incarnation (Codex)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* HOW-A-MIND: the 49,152 knee is replaced by L3's measured decision, never deleted bare (agrees with ONE-BUDGET contract 7; #5612 folds into L3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@joelteply

Copy link
Copy Markdown
Contributor Author

Held by the 10-30 triage and stale now: a bare slot-sized window raised view prefill on replay (47,746 vs 40,382 chars), and the knee is to become a measured term in the one budget (ONE-BUDGET contract 7), not a deletion. It would also conflict with #5666 and #5670.

@joelteply joelteply closed this Oct 31, 2026
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