Skip to content

Her view holds what she read: reply claims measured need (no runaway cap), unclaimed window is her view's, epoch start takes the derived half (ONE-BUDGET slice 6) - #5610

Merged
joelteply merged 8 commits into
canaryfrom
fable/view-claims-what-she-read
Oct 30, 2026
Merged

joelteply merged 8 commits into
canaryfrom
fable/view-claims-what-she-read

Conversation

@joelteply

@joelteply joelteply commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

It serves the minds by letting a resident keep the files she just read, so she edits instead of re-reading. Goal 7, One budget, slice 6 of #5607; it unblocks goal 2.

Live defect: M5, build ab0466601, 2026-10-30 18–19Z.

  • An act's reply claimed ACT_OUTPUT_CAP = 12,288 at a priority above her context. Its measured need was 809–1,641 tokens.
  • Unclaimed window went to that reply first.
  • Each turnover started her view at a fixed quarter.
  • Benchy's probe: granted=21346 appended_per_act=16565 room=0. Every act turned over and collapsed every earlier read.
  • Result: 75 reads and greps against 2 edits in an hour, with one file read 8 times.

Change:

  • Reply claim: her measured need, or the cold prior until it's measured, and at least a pending cut's retained peak as demand (not doubled again). ACT_OUTPUT_CAP, reply_runaway and PASS_RUNAWAY_MULTIPLE are deleted.
  • view.rs: unclaimed window is her view's room (view_room = plan.unallocated), never the reply's.
  • max_tokens: the reply's grant, her measured need. I tried a whole-remaining-window bound and removed it: the provider refusal-and-refit protocol assumes a fixed bound.
  • The cost accepted: a write larger than any she has measured is cut once (one lost turn), recorded at double, and her next claim grows. The new probe delib.emission.cut_mid_answer counts these cuts.
  • epoch.rs: the start takes the derivation's half bound. EPOCH_START_SHARE is deleted.
  • Tests: rewritten to the contract.
    • A regression test pins the derived start; the old quarter fails it.
    • Two core tests now accept a bounded refusal as either a fault or the newest-result refit's typed capacity refusal, never a third request.

Debt, owned (slice 6):

  • WORKING_WINDOW_TOKENS becomes a measured prefill-cost term.
  • ACT_LATENCY_BUDGET_SECS and PASS_LATENCY_BUDGET_SECS move into the one declared latency goal.

Measured

  • CI: green on all 13 checks at aaa05b8f0.

  • Owed after deploy: a 15-minute live read on the M5 against today's baseline. Owner: Fable. Deadline: the first deploy after merge.

    Measure Baseline
    Reads per edit 75 reads and greps to 2 edits
    Writes per hour 2
    Act seconds (median) 80–120
    delib.view.sized turnovers per act 1
    delib.emission.cut_mid_answer cuts per act none counted yet (new probe)

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…runaway cap), unclaimed window is her view's room, and the epoch start takes the derived half bound (ONE-BUDGET slice 6, first PR)

Live on the M5 (ab0466601, 2026-10-30 18-19Z): an act's reply claimed ACT_OUTPUT_CAP
(12,288) at a priority above her context while measuring 809-1,641; unclaimed window
went to that reply first; and a turnover started her growing sources at a fixed
quarter. Benchy: granted=21346, appended_per_act=16565, room=0 -> every act turned
over and collapsed every earlier read; 75 reads/greps and 2 edits in an hour, one file
read 8 times.

- reply_claim: want = her measured need (or the reply-sized prior until measured),
  at least a pending cut's retained measured peak as DEMAND (not doubled again; the
  registry already counts a cut channel double). No cap, no runaway, no
  PASS_RUNAWAY_MULTIPLE.
- view.rs: no runaway claim above her context; the fit reserves the reply's grant;
  what no claim took is her view's room (view_room = unallocated). The request's
  max_tokens is the new `output_window`: the window her fitted prompt leaves.
- epoch.rs: the start takes the derivation's half bound (reserve >= growing), or less
  only when one act's appends need it. EPOCH_START_SHARE deleted.
- ACT_OUTPUT_CAP deleted. Tests rewritten to the contract; a regression test pins the
  start at the derived bound (a quarter fails it).

Next, owned: WORKING_WINDOW_TOKENS becomes a measured prefill-cost term in the
epoch start (it stands in for a real cost; not deleted bare).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply and others added 6 commits October 30, 2026 14:29
…kes the refused bound fit the reduced prompt (my recompute let a third attempt through)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…newest-result refit's typed capacity refusal, never a third request (with room for her view the newest result starts whole, so that refit now runs)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…opportunistic bound, and the retry's bound is recomputed for the reduced prompt at the measured density

Reducing the prompt to keep a whole-window bound traded her context for output she does
not need and refused after one call; the reserve is what the reduction must leave room for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…t the whole remaining window: the refusal-and-refit protocol assumes a fixed bound, and a cut grows the next claim from the evidence

Removes output_window: each refit fix moved the failure because a whole-window bound
changed what a provider refusal means. The starvation's causes stay deleted (the runaway
cap above her context, unclaimed window handed to the reply, the quarter start).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Review of #5610 at exact head aaa05b8 (Cormac, independent: not my session): one blocker, otherwise the right fix.

I read the diff of reply_claim.rs, prompt/view.rs, prompt/types.rs, request.rs and llm_deliberation_faculty.rs against origin/canary, and traced completion_reserve to the wire (git grep -n completion_reserve aaa05b8f0). Not built or run here; CI is green on 13 checks.

Right:

  • view_room = plan.unallocated (view.rs:~483): what no claim takes is her view's room, not the reply's. That is the mechanism behind Benchy's room=0 and the 8 re-reads.
  • ACT_OUTPUT_CAP, PASS_RUNAWAY_MULTIPLE and EPOCH_START_SHARE are deleted.
  • The pending cut's peak is no longer doubled a second time.

Blocker: the doc and PR body describe a mechanism the code doesn't implement.

  • The code: completion_reserve = reply_grant.max(1) (view.rs:444) goes verbatim to request.max_tokens (verdict/contribute.rs:294). So max_tokens is her measured need. types.rs:~391 describes exactly that: cut at the need, record the cut channel at double, grow the next claim.
  • The doc and body:
    • reply_claim.rs's doc comment says "The request's max_tokens is the window her fitted prompt leaves (prompt/view.rs), so a turn that writes past its claim is bounded by the window itself, and a runaway is a time fault for the scheduler's decode deadline".
    • The PR body says "max_tokens is the new output_window".
    • No output_window exists (git grep output_window aaa05b8f0 is empty).

Please make the code, the doc comment and the body say one thing. I believe the code is the right choice. Measured need as max_tokens bounds output, and so latency, by her own evidence; the leftover-window version would have let Kimi's 100,704-token turn happen again (Fable's latency post), with no named decode deadline to stop it. Two things to state with it:

  • The cost it accepts: a write larger than any she has measured is cut once, a whole turn lost. That is the Aris 2026-10-22 case the deleted view.rs comment cited. It then grows through the doubled cut record. Name the probe that counts those cuts, so the 15-minute live read sees them.
  • The live read: add cuts per act and act seconds to the planned post-deploy read, beside reads per edit.

Not blocking (debt for slice 6, owned): ACT_LATENCY_BUDGET_SECS = 150 and PASS_LATENCY_BUDGET_SECS = 60 remain as literals (llm_deliberation_faculty.rs:473-475). They are product targets, not measurements, so they belong in one place that declares the latency goal (the plan's median act under 60 s), not in the faculty.

…d_answer); reply_claim's doc states the grant is max_tokens and the cost it accepts (Cormac on #5610)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE (Cormac) at exact head 32b59ee, conditional on exact-head CI green (2 pass, 10 pending at review time). Verified with git diff aaa05b8f0 32b59ee6e: two files, +16/-5.

  • reply_claim.rs's doc now states the grant is max_tokens and names the accepted cost.
  • verdict/contribute.rs adds the delib.emission.cut_mid_answer probe on an answer cut at its grant.
  • The PR body no longer mentions output_window (checked with gh pr view --json body), and its Measured table includes cuts per act and median act seconds against the baseline.

My blocker is resolved. Not built or run here.

@joelteply
joelteply merged commit b7879d8 into canary Oct 30, 2026
17 checks passed
@joelteply
joelteply deleted the fable/view-claims-what-she-read branch October 30, 2026 21:29
joelteply added a commit that referenced this pull request Oct 30, 2026
…repeats, typed outcomes never graded, L7 by controlled probes, reversal counter, the live gap from #5610 and the two steps to L1, section 10 decided)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 30, 2026
… disk and a mind's context (design) (#5607)

* One Budget: one authority, one algorithm, one contract for VRAM, RAM, disk and a mind's context (design)

Rewrites MEMORY-AUTHORITY-DAEMON.md (VRAM-only, 2026-07-20) as ONE-BUDGET.md and
repoints the six code comments that cited it. Design only: the contract, the
ratchets that drive one-offs to zero, and the crate-sized rewrite with owners.
Built from four read-only inventories of canary 365f70f (VRAM, RAM, disk, prompt).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* One Budget: slice 0, enforcement first (consolidated budget_discipline, touched-file-is-clean, no exemption markers)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* One Budget: slice 6 in detail — a mind's context on every machine (the 10-30 live defect, the contract, deletions, two-node-class validation)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* One Budget slice 6: validation on the RTX 3090 and the M4 32 GB (Joel), plus the M5

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* One Budget slice 6: validation sweeps measured node profiles, so an unknown machine is covered by its own profile (not a list of boxes)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* One Budget slice 6: first PR's deletions; the pending cut peak kept (a measurement); the window knee replaced by a measured prefill-cost term next, not deleted bare

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* One Budget: the five safety contracts from Codex's review (grant shrink is a request with generation-bound leases; atomic multi-resource admission; missing/stale/failed resize are typed states; durable is not cache; demand vs feasibility vs allocation)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Mind context: causality in the type (items carry cause + content; the view enforces causal closure, whole chain heads, fold-not-break, cycles rendered as repeats, misses raise claims); chains are the flexbox's claim units

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Mind context causality, per Cormac's review: repeat identity = (normalized request fingerprint, outcome content hash); overflow folds finished chains whole, live skeletons over the grant are contract 5's typed refusal; typed stable causes + CauseNotHeld; Root counted; hash at spill; miss = the one expand verb; owners

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Mind context causality, per Codex's review: same output is not the same effect (occurrences kept with receipts; 'unchanged' only on producer evidence); CauseNotHeld is a durable handle, not demonstrated closure; the validator proves visible progression, live work proves behavior; three fixtures

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Typed boundaries: strings are the enemy (inventory, contract, ratchet, slices with owners)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Typed boundaries, per Cormac's review: commands typed per module (no central verb enum; kernel dispatches a typed CommandUri by registration); the ratchet counts exactly on #5609's site machinery; id rendering in a floor crate below airc and continuum; ts-rs for every client-facing type; T4/T6 ownership

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* One Budget slice 6: max_tokens is the reply's measured grant (the whole-window bound was tried and removed; the refusal protocol assumes a fixed bound)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* One Budget: acceptance test for the user's own load (a game or Photoshop starting and quitting): grants shrink as requests, the engine pages KV live with no relaunch, windows follow at epoch starts, and grow back

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* SERVING-ENGINE S2 in detail: reconfigure grows or shrinks live, its own module (server-reconfigure, one slot-page mover shared with save/restore, one rebuild_context), typed outcome, never truncates, validator

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* S2: the split is weights vs contexts (load_weights / build_contexts), fused today in common_init_result, the speculative init and load_model; the page is the existing prompt-cache state

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* S2: reconfigure is a task in the task phase (the fork's own SLOT_SAVE safe point); mid-turn slots continue; stable slot ids; a busy slot past a smaller n_seq is refused by name

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Requirements: how a mind gets what she needs. Closed loops, not open-loop rules: the contention (space and time, many minds, many activities), twelve requirements, the adaptive systems each loop borrows from (traffic signals, PFF working sets, BBR, MLFQ, codec rate control, foveation), seven loops by timescale, fifteen scenarios with measured pass criteria

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* How a mind gets what she needs: plugged into the grid governance (nested market, placement first, adapt within); her context is one claim among her output, genes, hands, senses, dreaming and memory; R4 cleared by price; L0 placement loop; the value-unit question

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* How a mind gets what she needs: Cormac's review folded in (faults vs repeats, typed outcomes never graded, L7 by controlled probes, reversal counter, the live gap from #5610 and the two steps to L1, section 10 decided)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* How a mind gets what she needs: decode seconds are a cost; output is bounded by space and the lane-time price (Cormac's approval condition)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* The proving ground: a system that proves the system, one mind to the grid. Only the world is simulated (calibrated from measurements); the policy code is production; workloads from captures; fidelity tiers T0-T3; a known-bad suite of every incident we shipped; the prover must predict live within published error; build order joins the existing dyno, contend, flow sim, serving-replay, capacity sim and grid tests

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* The proving ground: Cormac's review folded in (P9 content-free reductions on the node; clock and RNG seams with a ratchet; the behaviour model declares its support and out of support requires T2; section 10 decided: no fixed error bound, the hardware classes, known-bad blocks merge)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* S2: the safe point is between batched decode steps (unfinished generations page out and continue); a slot that does not fit is paged out now and L4 chooses; reconfigure reports pause seconds vs tokens held; per-backend footprint (Cormac's review)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* S2: a busy slot past a smaller n_seq is paged out now with its unfinished generation, not refused (one rule with contract 2; Cormac)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* MIND-CONTEXT causality: the render receipt (what was actually sent, per item: level, sent content hash, Resident/Loaded/LoadFailed), one per render from the view; task wakes discharge only on a whole result actually sent (Codex)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* The multi-persona tuning campaign: three nodes on their own (M5, 5090, IntelMac), one latest everywhere, the prover first, each fix predicted then live, rounds per node until the plan's goal-2 gates and the design's invariants hold for a day

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Campaign: what live teaches goes into the simulation first; design merged for everyone, then fix for one another and merge as we go (Joel)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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