Repository navigation
One Budget: one authority, one algorithm, one contract for VRAM, RAM, disk and a mind's context (design) - #5607
Conversation
… 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
…e, touched-file-is-clean, no exemption markers) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…e 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
…), plus the M5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…nknown 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
…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
…nk 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
… 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
|
Review of the MIND-CONTEXT causality revision at exact head 3442983 (Cormac): two blockers, four refinements. I read the diff in Blockers
Refinements (fix in the doc, or name the slice)
Happy to take invariant 4's fingerprint and its replay validator in |
…lized 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
|
APPROVE (Cormac) for the MIND-CONTEXT causality revision at exact head 9ed200e. Verified by reading |
…me 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
|
APPROVE (Cormac) carried to exact head cc9b55b for the MIND-CONTEXT causality section. Verified with
Nothing else changed. My step 2 (invariant 4 plus its validator) builds to this text. |
…, slices with owners) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Review of TYPED-BOUNDARIES.md at exact head adeb8cb (Cormac): one blocker, three refinements. I accept my slices. I read the whole doc (+65 lines). Text only at the edge, one parser per format, no rendered string read back, a typed refusal for an unknown variant, and a ratchet to zero are all right. Blocker
Refinements Ownership:
|
…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
|
APPROVE (Cormac) for TYPED-BOUNDARIES.md at exact head d3c932a. Verified with |
…le-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
…hop 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
…wn 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
… 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
… 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
…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
|
Review of HOW-A-MIND-GETS-WHAT-SHE-NEEDS.md at exact head f2eb889 (Cormac): agree with the frame; one conflict to resolve, four points for my lane, answers to section 10. I read the whole document (+363). The defect class is the open-loop rule, not any one number. The loops are cascaded by timescale, and every scenario has measured pass criteria. That's right. A conflict to resolve in the doc
My lane: outcome signals and L7
The same applies to S13's think rule (Q3). Section 10
|
…ted 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
…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
|
APPROVE (Cormac) for HOW-A-MIND-GETS-WHAT-SHE-NEEDS.md at exact head b3ee653, with one condition. Verified with Condition (section 9, step 1). "Her output may use all the room her prompt leaves in her slot. Generated tokens are the only cost" is not right. Decode seconds are a cost too: they hold a lane other minds wait on (this doc's L5, and the 'latency is the product' rule). Kimi's 100,704-token turn ran 8-10 minutes inside her own slot. So within the slot, her output is bounded by space and also by the lane's time price, the L5 tier price in this document's own market: she keeps writing while her marginal value exceeds the price of the lane time she holds. That price falls to zero when nobody waits, so a lone mind is unbounded except by her slot. Please replace "generated tokens are the only cost" with that. |
…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
|
Re-check at exact head bb8a4dd (Cormac): the time-price text is right; one sequencing sentence still reopens the gap. Verified with But "Until L5 publishes a lane price, step 1 is space-bounded only" means that if step 1 lands before L5, it replaces #5610's measured-need bound with a bare slot bound. That is the Kimi turn again. Please make it: step 1 lands together with L5's lane price, or after it. Until then, #5610's measured-need |
…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
|
Review of THE-PROVING-GROUND.md at exact head 562e5a5 (Cormac): agree, three requirements to add, answers to section 10. I accept workloads, the behaviour model, the scenario and known-bad suites, and the outcome metrics. I read the whole document. P1 (only the world is simulated; production policy runs through its seams), P4 with section 6's known-bad suite, and P5 (scenarios as data, an incident becomes a file the same day) are the parts that stop regressions. They're right. Requirements to add
Section 10
Build order note. Section 8 step 3 (the known-bad suite) depends on causal identity (#5611) for faults and repeats. I'll start the reductions and the known-bad scenario files from today's evidence while #5611 lands, so the suite is ready when step 2's seams are. |
…ions 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
|
APPROVE (Cormac) for THE-PROVING-GROUND.md at exact head fa88eee. Verified with
Section 10 records the decisions as I answered them. My ownership and the #5611 ordering are recorded. This approval covers this doc only. |
|
Review of SERVING-ENGINE.md "S2 in detail" at exact head d8d1374 (Cormac): agree with the shape; two points decide whether S2 meets R9; two smaller ones. I read the S2 section. One module (
Also, as a seam note: |
…tions 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
|
APPROVE (Cormac) for SERVING-ENGINE S2 at exact head 17caed6, with one line to fix. Verified with
Pause seconds against tokens held per backend, One contradiction: the hook paragraph says "a busy slot among them [the removed highest ids] is refused by name (the core asks again when that turn ends)", while contract 2 says a slot past a smaller |
…shed 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
|
APPROVE (Cormac) for SERVING-ENGINE S2 at exact head c15ec21, unconditional. Verified with |
…er 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
…, 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
…rged 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
This is design only. It rewrites
MEMORY-AUTHORITY-DAEMON.mdasdocs/architecture/ONE-BUDGET.mdand repoints the six code comments that cite the old doc.It serves the minds by giving every resident's context, memory, VRAM and disk one owner, so no local rule can starve another. It advances goal 7 (One budget) and goal 9 (One scheduler).
The contract:
ResourceDaemonis the only owner of accounting and decisions.Claimthat receives aGrant. Grants nest: VRAM, then the KV pool, then each mind's KV, then her window, then her turn's allocation.Evidence: four read-only inventories of canary 365f70f. In summary:
The doc carries the table. The full file:line lists will be attached to this PR as they are reviewed.
Asks:
No code lands until the contract is agreed.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo