Repository navigation
Her need is the window her act chose: the priced optimum, never floors and never her uncollapsed overflow - #5833
Merged
Merged
Conversation
joelteply
added a commit
that referenced
this pull request
Nov 7, 2026
…nned through the faculty Cormac on #5833: an Unpriced act records no need sample, so is an unpriced mind left Measure::Wished, gating on her wish target? No: every act records her irreducible window (record_floor, NeedWindow-checked against the trained context), and resident_need reads it, so requirements_for gives Held { Exact(irreducible) }. Recording it again as an AtLeast sample would add nothing: resident_need excludes bounds by design. This pins it end to end: an unpriced act with enrichment far past what she must hold records no need sample, and the governor's need for her is exactly her irreducible window while her wish stays her target. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
force-pushed
the
fable/context-has-a-price
branch
from
November 7, 2026 18:47
761369c to
0186968
Compare
joelteply
added a commit
that referenced
this pull request
Nov 7, 2026
…nned through the faculty Cormac on #5833: an Unpriced act records no need sample, so is an unpriced mind left Measure::Wished, gating on her wish target? No: every act records her irreducible window (record_floor, NeedWindow-checked against the trained context), and resident_need reads it, so requirements_for gives Held { Exact(irreducible) }. Recording it again as an AtLeast sample would add nothing: resident_need excludes bounds by design. This pins it end to end: an unpriced act with enrichment far past what she must hold records no need sample, and the governor's need for her is exactly her irreducible window while her wish stays her target. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
force-pushed
the
fable/need-is-the-chosen-window
branch
from
November 7, 2026 18:48
40199f7 to
5a5123b
Compare
…s and never her uncollapsed overflow Aiko recorded a need of 902,158 tokens on a 262,144-token model (the M5, grid.mind.unservable 16:21Z): a held turn recorded every claim's floor (ActPlan::held_need), and a turn whose view overflowed recorded the window plus everything her view lacked uncollapsed (overflow_beyond), whole files and folded navigation she reaches by a pointer. Now the allocation owns her need (continuum_context::allocation::need): - ActNeed::Chosen: the priced optimum (value per second peaks), inside her grant; bounded below by what she must hold (every hard limit, her newest result whole, her reply's measured need). - ActNeed::Censored: the optimum lies past her grant (the search continues above the served window up to the model's trained context, inside the measured contexts), or what she must hold fills the window. - ActNeed::Unpriced: no measured act time; no need sample, her irreducible window stands. - ActNeed::BeyondTrained: a typed defect, probed (card bf3b6d68); a NeedWindow past the trained context cannot be built. Her irreducible floor goes through the same type. The trained context is the model row's (ModelBinding::trained_context). Deleted: ActPlan::held_need and its reply_need field, overflow_beyond and ViewFitted::beyond, the floors-as-need path in view.rs, and its test; flex::turn_need becomes flex::floors (its one use sums required floors). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…nned through the faculty Cormac on #5833: an Unpriced act records no need sample, so is an unpriced mind left Measure::Wished, gating on her wish target? No: every act records her irreducible window (record_floor, NeedWindow-checked against the trained context), and resident_need reads it, so requirements_for gives Held { Exact(irreducible) }. Recording it again as an AtLeast sample would add nothing: resident_need excludes bounds by design. This pins it end to end: an unpriced act with enrichment far past what she must hold records no need sample, and the governor's need for her is exactly her irreducible window while her wish stays her target. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
force-pushed
the
fable/need-is-the-chosen-window
branch
from
November 7, 2026 19:58
5a5123b to
d40d108
Compare
joelteply
added a commit
that referenced
this pull request
Nov 11, 2026
… canary (#5917) * Her thoughts fold into one line, and every source must decide its fold: no floor grows with everything she ever thought Benchy's, Aris's and Aiko's acts were refused before they reached the model (the M5, 709fe470f, 2026-11-09): on an act every view source's floor is required, and her thoughts had no fold, so each thought her memory shed kept its own pointer line in the floor, forever. `delib.payload.over_window` named the binding source `view/thoughts` for all three: Benchy 78,755 tokens (2,536 thought pointers at 31 each, from her volatile.json) against a 27,333 window; Aris 39,240 against 26,202; Aiko 45,318 against 21,352. Atlas fit only because his window is 102,232, and 1,704 collapsed thought pointers sat in it. Actions already fold (4-5k folded per resident), so the floor was all thoughts. - Thoughts::fold: the oldest run is ONE line, its first and last #n, how many, and how to reopen the newest of them (each was saved whole when shed). - Source::fold has no default: a source that does not decide floored every item at its pointer, silently. Each source now states its decision: tasks fold to one line; conversation, facts, notices, open views and held work say why they need none (no pointer, or superseded by key); test fixtures say they do not exercise folding. - Regression test: 1,000 shed thoughts floor at no more than 100 do, one line. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * view tests leave with no unwrap and no unjustified serialization: each returns its typed error, the checkpoint names its disk boundary Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A turn while she works a card is an act: her write is never cut at a short reply's cap and discarded is_work_turn asked only for a deliverable or her initiative, so a message arriving while she worked a card was a PASS with a short reply's ~400-token allowance, though her hands are the same on every turn. The write she was composing reached the cap before its call committed and the whole act was discarded ("tools/<cut at the output limit>"): 394 of Atlas's acts, 277 of Aiko's (the M5, 2026-11-09, volatile.json), while they went 392-542 acts without a write. Lane admission already ranked a held card as work (admission.rs); the cap now agrees. The new test fails without this (the turn stays a pass) and 984 pass with it. The touched file's six legacy ratchet sites (MIN_SERVE_CTX as a window, two latency constants, an image base64) are cleaned before merge. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Every turn she has hands for is an act: no card, deliverable or speaker decides what a mind may do Joel, 2026-11-09: "Minds aren't for cards, they're for thinking and doing, period." The previous commit made a held card turn a message turn into an act; that still let a system-picked class cap her. is_work_turn is now her capacity alone: hands. A mind with no hands can only speak, and takes a pass. Lane admission's held-card branch (holds_work_card) is gone with it. The test: a message turn with no card and no deliverable is an act for a mind with hands, and a pass for one without. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * An evicted read keeps its outcome hash, so her view measures the re-reads its collapse costs An act's outcome was hashed only while its body was in RAM; working memory moves bodies to their handles within a few acts, and an evicted read hashed as Absent, which is no occurrence (rereads.rs: only an observing act with a hashed outcome is one). A re-read of it never matched, so her view measured zero re-reads in every age bucket while Atlas re-read an identical file 103 times in 300 acts and 70-90% of every resident's file reads repeated one 3-5 acts old (the M5, 2026-11-09, volatile.json). Collapse looked free to the depth choice, her view collapsed what she had just read, and she read it again. - ActionRecord::stored_content: the whole's hash, taken as the body leaves RAM (shed_body), checkpointed with the record (ContentHash serializes). - action_renderings hashes a resident body, else the hash it kept: the same occurrence evicted. - Test: an evicted read renders the outcome hash it had resident, through the checkpoint's disk form too; it fails when the hash is not kept. - The touched working-memory files' unwraps each carry their reason. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A turn she has hands for is an act in the tests too, and an act's cap re-shrinks while the engine's count rises instead of giving up after one try With every turn she has hands for an act, the window-feedback tests exposed an act path that gave up: its cap shrank to the engine's measured room ONCE, so a second, larger count fell through to a view refit that refused, and the act she composed was parked. The cap now re-shrinks each time the engine's count rises (bounded by the window, so it ends) while her reply's grant still fits. The tests state an act's cap as the room past its prompt, at least her reply's grant, and each retry as measured progress (a smaller view, or the same view with a smaller cap); a mind with no hands takes the pass. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * An act thinks as far as its room allows: her think is bounded by the act's cap, never by her past thinks act_reasoning_budget took her reply's grant, sized from her measured past think and answer, so her reasoning could never grow past what she had already thought: on the M5 (51db8ffbe, 2026-11-09) the median act's think budget was 536 tokens (302-2,445) while its cap was the whole room past her prompt. The budget is now that cap past her measured answer, so the answer keeps its room and she thinks as far as her window lets her. A pass is unchanged (its cap is its grant). The test pins it: with the act's cap, the think budget is the cap less her answer; it fails with the grant-bounded budget. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her thinking is never cut or closed for her: no think budget is sent on her turns Joel, 2026-11-09: "If you cut off thoughts it totally ruins their mind"; "not forced to act by you or the system". The previous commit bounded her think by the act's room instead of her past thinks; it still closed her thought at a number. Her turns now send no reasoning budget (Think::ModelDefault): she thinks until she decides she is done, inside the room her window has. act_reasoning_budget has no caller and is deleted with its assertions; the test asserts no think budget is sent and the output-room receipt carries none. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her censored needs reach her grant: residency reads her need as need_tokens does, granted as its value resident_need dropped every censored sample (her act's priced window lay past her grant), so a mind whose own price chose more than her grant stayed pinned at that grant: every move down needs a way back up (Benchy's censored needs of 27-44k against a ~26k grant, the M5, 2026-11-09). The rule dated from 2026-11-04, when a censored sample was an uncollapsed overflow and the grant handed a bound a whole sequence; since #5833 a censored sample is her PRICED window. resident_need is now need_tokens' value, granted as a number (never a bound, never a whole sequence), within her wish with the sent headroom; contention stays the allocator's proportional sharing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her sources split her window by what she re-reads: a source's weight is its priority scaled by her measured re-reads of what it would collapse Her view's sources weighed flat constants (conversation, thoughts and actions all 5), so her acts, whose reads she kept asking for again, got the same share of her window as a conversation she did not re-read (the M5, 2026-11-09: 70-90% of her file reads re-read one 3-5 acts old). Pricing the window's size for forgetting cannot fix that: by her measured act time a larger window slows every act, and each re-read costs an act at that pace, so the lever is the split inside the window. - View::claims prices each collapsible item at HER measured re-read rate (her live view's clock; the free claims() has none). - Claim::weight = priority x (1 + her re-reads per act of what it would collapse); the window's one allocation weighs her view sources by it (epoch.rs). Unmeasured ages add nothing, so an unmeasured source keeps its priority. The start's fixed/growing split still reads the priority. Test: four items asked for again half the time weigh a priority-5 source at 15; unmeasured, 5. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A queued mind waits her turn, measured once, instead of failing it On the M5 (26960c09d) a mind queued behind others for room had her turn refused and re-measured every publisher beat: 186 settle.inference_failed an hour, each one a full view render. Queued, reclaiming, and an engine relaunching (Ungranted::awaits_room) now wait for a later evaluation with her demand standing; any other reason still refuses within one cadence, named. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * An embedding leases what its own context allocates, measured per token The embed lane leased a fixed 1,792 MiB (a 2,048-token context) for every call; with 1.5-1.7 GiB free on the M5, 758 of 834 embeddings in 3 h were refused (26960c09d), so her recall ran mostly dark. EmbeddingBatch tokenizes first and leases its padded window times the measured per-token cost (engine-c, Qwen3-Embedding-0.6B, linear within 0.1% at 256-2,048 tokens): a short text leases ~182 MiB. The standing floor is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The adapter an embedding lease touched leaves clean; llama's context padding has one owner - The lease's two attempts are explicit: a second refusal carries the availability it measured, never a defaulted 0. - The media path matches its one item instead of unwrapping it; genes and stop sequences flatten an absent list instead of defaulting it; display defaults and the trained-ceiling default say why; the lease TTL says it is a SIGKILL backstop only. - llama pads every context to 256 tokens (GGML_PAD in llama-context.cpp): ContextParams:: allocated_n_ctx in the llama crate is that fact's one owner, where EmbeddingBatch prices it. - The queued-mind test's closure moves the id it captures. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A read her view dropped still counts when she asks for it again; a thin age reads her own rate Her re-request measurement drained its index to what her sources still offered at each start, so asking again for a read her view had dropped, the costliest re-request, was never counted: on the M5 (2026-11-10) half her file reads repeated one from the same hour while the measurement counted 3 to 14 in 1,800 to 3,000 acts per resident. And with starts every 3 or 4 acts halving every tally, each age bucket held a few exposures and no event, so one assumed event priced it at 0.15 to 0.43 per act, a hundred times her own rate: the depth and the source weights read a prior, not her. - The index of her occurrences is kept with her view, including what a start dropped, out to one bucket past the oldest age her view holds; past that it drains. - Hazard::Measured carries her rate over every age (one more event than she made), and a bucket reads (events + prior) / (exposure + 1): a thin bucket reads what she does, a full one its own; a mind with no history still prices a re-read high. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * view/tests: the repeats module moves to its own file (pure move, under 1,000 lines) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A stored row has one decode, and a column the row predates reads as absent: her learning runs again Every reader of a DataRecord decoded it itself (serde_json::from_value(row.data), 15 production sites). A field an entity gained later with #[serde(default)] is NULL in every older row, which serde reads as a present null, so it failed: on the M5 (2026-11-10) the training trigger's recovery died every 30 s on 380 submissions with `learned` NULL ("invalid type: null, expected u32", 279 training.serving_wake.failed in 4 h), and no resident's in-place learning ran. DataRecord::decode (orm/record_decode.rs) is the one owner: strict first, borrowing the row, so a null a type can hold (Option, serde_json::Value) reads as written; only when that fails and the row holds NULLs are they read as columns the row predates, absent, so the field's default answers and a required field still refuses. All 15 sites migrate to it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * source-hygiene: a stored row is decoded only by DataRecord::decode (hard zero) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The decode's touched files leave clean; its test pins each NULL case on its own row - record_decode: an older row and a written null are separate cases; a row holding both refuses (documented: telling the two NULLs apart needs the field types). - orm/store.rs: find_all and find_eq are the verbs themselves, each caller counted where it reads (bounded: exemption); a failure without a message says so. - lived_examples: a call with no message yields no example, never an empty prompt. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * An embedding's memory is charged where it resides, and the lane's floor is what it embeds Joel, 2026-11-10: "It depends on where it's resident... We just can't assume any specific machine." The embed lane leased VRAM on every node, even for a context in host memory (a backend offloading no layer, or a build with no GPU), and its standing floor was a fixed 1,792 MiB VRAM bound reserved by the resolver, which knows neither the context's residence nor her texts. - LlamaCppBackend::context_pool: device memory when llama offloads to a GPU (llama::supports_gpu_offload) and the backend offloads any layer, else host memory. - inference/embed_lane_memory.rs owns the lane's memory: each lease in that pool, and the floor re-stated at each lease at the largest context the lane has embedded (the resolver's probe and calibration passes set it first). EMBED_LANE_VRAM_BYTES and the resolver's reservation are deleted; the lease code leaves llamacpp_adapter.rs (938 -> 848 lines). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A turn whose grant is being reclaimed ends instead of waiting on the reclaim it blocks The reclaim of a mind's grant takes her turn lock (MindTurn::reclaim), so a turn that waits for the reclaim inside itself waits on itself: on the M5 (d0abbddd1, 2026-11-10) Aris parked to the 1,500 s tick deadline five times and acted 3 times in 132 minutes. Reclaiming refuses again (her turn ends, the reclaim proceeds, she is regranted); queued and an engine relaunching still wait. Each wait now probes its reason (delib.window.waiting), which the loop had dropped. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A mind's children run below the engine that serves her: her build takes idle cores and yields On the M5 (2026-11-10) a resident's `cargo test` of the whole workspace ran at the engine's own priority beside serving: load 36, 4.5 GB swapped, decode at 3.4 tokens/s against 56 at rest, and the residents' acts fell from 39 to 10 per 15 minutes. Her build is never refused or capped for it; it is scheduled like an OS background job. - continuum-host process_class: Unix (macOS, Linux) lowers the child to the OS's lowest ordinary priority (PRIO_MAX), which still runs on every idle core; Windows gives it IDLE_PRIORITY_CLASS; elsewhere the parent's class. - The kernel's command_for, the one way a caller's child is spawned, applies it to every child, confined or not. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * An embedding context's bytes are charged to each pool they occupy, with a floor per pool Codex on #5910: one context's bytes are in two pools (KV and device compute on the device; the CPU's compute share and the output buffer on the host), a configured placement is not a measured one, and one process-wide floor was reused across pools. - Placement (configured, never measured: card 9bddda93) is Device, Host or Split. A split is not measured, so each pool is charged its upper bound. - ContextBytes { device, host } comes from rates written as receipts (MiB llama reported over the tokens measured), now including the host-resident context: CPU KV 224 and compute 1,200.97 MiB at 2,048 tokens (engine-c, -ngl 0, logs in evidence/replicate-2026-11-10). - embed_lane_memory leases each non-empty part in its pool, with a floor per pool. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Shared memory is one pool: both rows offer the same free memory, the GPU hint caps a process, and an unreported memory mode is unknown On the M5 (2026-11-10, resources/board) the VRAM row read 0 available while the RAM row read 3,165 MiB of the same unified memory: the VRAM ceiling was min(pool, Metal's working-set hint), netted against the whole system's usage, CPU-only processes included. A 4,096,000-byte learning step waited on it (training.admission.waiting) and every VRAM lease beyond a floor did. 1. Unified memory is one pool: both views carry the pool's ceiling and one measured usage. 2. The working-set hint bounds ONE GPU process (CapacitySource::per_process_cap, ResourceDaemon::per_process_cap): the serving plan sizes the engine under it as well as under what the pool has left; it never shrinks the pool. 3. Dedicated VRAM is unchanged (GpuCapacitySource, no per-process cap). 4. The memory mode is the backend's report: GpuMonitor/GpuDeviceProbe::memory_mode return Option, None is unknown. Metal reports hasUnifiedMemory, NVIDIA its dedicated framebuffer. An unreported mode leaves VRAM ungoverned and named (resources.memory_mode_unknown), never a guessed Discrete over what may be one pool (an AMD APU, an ARM iGPU). Tests: both rows of the M5's unified pool offer 3,165 MiB; the hint caps a GPU process, not the pool; the serving plan reads the pool and stays under the cap (simulated 32 GiB host, labelled). Card 13c81ced: the first resource-kind adapter in the shared-resources shape. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Revert "Shared memory is one pool: both rows offer the same free memory, the GPU hint caps a process, and an unreported memory mode is unknown" This reverts commit 75f1ba79bd880d7f95b6bf4fbe7a698f0b30c519. * A turn whose listed grant is yielding ends instead of waiting on the handoff it blocks (the M5, 15:01-16:05Z: holders parked to the 1,500 s deadline) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * An unused seat yields to a waiter, and the holder armed to yield is the one that served most On the M5 (2026-11-10, 75f1ba79b and after) two lanes served four residents, and Aiko and Benchy waited queued for ten minutes (49 and 55 delib.window.waiting) behind holders that were idle or slow. Only fresh service since a grant made a holder a yield candidate, and the armed yield was the first holder by id, so a slow or idle holder pinned the queue. - A holder idle across two evaluations (her seat from before the first, nothing in custody at either) is a handoff candidate whether or not she served since her grant; one that never served on this engine holds no KV here, so her seat is withdrawn with no physical handoff. - The holder armed to yield (yield_after) is the one that served most since her baseline. Tests: an unused seat goes to the waiter after two idle evaluations, never one; the holder that served most is armed, not the lowest id. Draft for Codex's review (his grant custody code). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * tests: her newest result pages after a restart and from another root (reproductions of Aiko's 2026-11-10 balloon) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The touched files leave clean, part 1: unwraps and floors say why, the image crosses its wire boundary named, and confinement reads the continuum root it was given Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A reply's size is measured, never guessed: her need, else the node's pooled need; nothing measured reserves nothing COMPLETION_COLD_PRIOR_TOKENS (MIN_SERVE_CTX) and COMPLETION_FLOOR_TOKENS (MIN_SERVE_CTX / 8) are deleted: a guessed reply size is the constant trap. - A reply claims her measured need, or before her first landed turn the node's pooled need (each channel's median across the minds here, WorkingSet::need_or_pooled). A pass's floor is its measured answer. - On a node where nothing is measured, the reply reserves and wants nothing, and its request carries the room its prompt leaves, once (request_allowance takes `measured`); its landing is the first measurement. - The faculty's private binding starts at the window its adapter reports, not MIN_SERVE_CTX. - min_window_for_agentic_surface closes against the engine's one free cell. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The sandbox mechanism moves to continuum-host: the contract once, one adapter per OS; the kernel keeps the policy Confinement's per-OS mechanism (macOS seatbelt, Linux landlock, none elsewhere) was selected by cfg lines inside the kernel's policy module (five OS branches in logic). continuum-host's `sandbox` now holds the contract (AllowList, Enforcement, the credential suffixes, the pure seatbelt profile) and one `confine()` whose OS adapter is chosen once by path; the kernel's confinement keeps only the policy (what a caller may reach) and calls it. landlock moves with its adapter. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her view orders every start by measured motion: the hand churn table is deleted `hand_churn_labels` goes from 3 sites to 0 and becomes a zero gate. The churn table (`churn_of`, `PromptChurn`) guessed per faculty id how often a grounding block's bytes change; `continuum_context::motion` already measures it per mind and orders every view start by it (`view/log.rs` arrange -> `Motion::rank`), so the labels only decided a new mind's first start. - deliberation_prompt.rs: the table goes; `stable_prefix_order` is name order, the one key an epoch needs (the same on every act, never salience or arrival); its doc says which owner decides what. - epoch.rs `view_sources`: one list, grounding blocks by name ahead of held work, actions, conversation, thoughts, tasks, views, notices, facts: the tie the view keeps among unmeasured sources. Motion re-ranks from the first turnover. - rag_source_faculty.rs: `stable` is standing framing; its one reader (the deferred reprojection's held salience) follows the contract that standing framing is topic-independent. The wall's deferred bid now holds its salience instead of a lexical rescale. - faculty_ids.rs: ENGRAMS and MISSION had no reader left; deleted. - replay example: `Order::ByName` beside the old orders; `today` and `--validate` run the core's rule. - Tests: the order test pins a first start (kanban < wall < map < my work < history < facts < clock < ask); the wall test pins it as a view block; the comparator test is gone (it tested str::cmp). To validate before deploy (needs a non-serving machine): `cargo run --release -p continuum-context --example replay -- <capture.jsonl>` compares SettledFirst and ByName. Unblocks the dead working-context deletion (fable/every-grounding-a-view-block), which must touch deliberation_prompt.rs, and then #5889. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A refit never cuts her view; the tests pin a first start's order and the turnover's motion CI on #5891 (job 129480710707) failed 8 cognition tests. Seven encoded the old first-start order (the churn table's guess). One was a real defect the new order exposed: - fit.rs `refit_rejected_prompt` handed her whole view to `fit_messages`, which drops oldest first, so a refit of a refused prompt cut the blocks leading her view (window_feedback: the frozen grounding block was gone after the refit, 0 of 1). The first fit never sees her view (view.rs holds it out); the refit now holds it out the same way and splices it back whole, with its result pointers, so a refit trims only her fresh tail (budget.rs: no fit step makes a prompt comply by dropping her view). - epoch test: a first start lays her blocks first; its turnover assertion (a turnover keeps what never changed at its front) is now the proof that motion reorders the start. - stable_prefix_first: nothing ahead of her history is a clock, a fact or a turn (structural, not a tag list); recall leads a first start by name. - tool_surface_and_fit: the presence contract block leads a first start. - reply_reserve: the dead renderer's stable tier is by name; the ring-before-recall test is deleted (its invariant, a churning block behind what held still, is the epoch test's turnover assertion under motion; within an epoch every act appends, so a first start's order costs at most that one turnover). - capacity_and_wire: her view (messages before grounding_at) holds the history, wherever a block sits in it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Revert the refit's view hold-out: her view holds her conversation, so the refit could shrink nothing; keep the ratchet falling and the role-test indexes The hold-out made every refit refuse (window_feedback: the refit never generated). The defect it aimed at is real and pre-existing: a refit front-drops her view, cutting whichever blocks lead it. The fix is a typed source per rendered message so a refit shrinks her conversation only (card follows). hand_churn_labels stays a falling ratchet (3 -> 0): the runner measures the base tree with the head's rules, so a zero gate fails until canary reads 0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * ONE-ACT dyno: fair service and the cold-prefill knee through the production owners on a virtual clock Serves goal 9 (one scheduler, every mind served) and order-of-work 3b/4b: the dyno now drives the production grant owner (fair publication, compare-and-reserve, terminal settlement, handoff receipts, engine fencing) on a virtual clock with scripted engine receipts, asserting conservation, custody and legal transitions after every event and section 4's feasible service opportunity at every publication. - dyno/service: virtual clock, seeded schedules (shared splitmix64, grid::churn), shrinker; the feasible-opportunity predicate; the composition; the recorded 2026-11-04 whole-pool window. Dyno 2 and 3 now run through publish_fair_grants (#5793) and are green; the superseded bare-policy composition is kept as the evidence of the 28 unserved completions. - Found: an engine replacement resets FairGrantState, so the oldest waiter loses her place (known-red); a cancellation after reserve and before POST is held unresolved until a fence (4a, known-red). - dyno/knee: the IntelMac knee derived from its curve (1); a service-curve model calibrated on the bench (prefill-only <=5%, mixed <=20%) and the M5 chunk sweep (gap <=10%); today's LaneAdmission violates the knee, warm eligibility, and aging/makespan (known-red). - dyno/batch: the fork's batch scheduler as a pluggable decision (slot-id fill, checkpoint splits, time-fair interleave, from server-context.cpp @0d7dda6ae) on the M5's recorded 2026-11-06 hour; calibrated for the residents' slots and median prefill within 20%; candidates (a)-(d) compared on the same arrivals. - Seams (test-only): window_grant::lease::dyno_seam, scripted ReclaimedGrant/RefusedGrant; record_refused moved onto Reservations (same behaviour). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * ONE-ACT dyno batch model: costs fitted from the whole log, dream traffic as its own class Serves order-of-work 4b: the fork policy is chosen from this comparison, so the baseline must reproduce the recorded hour first. - Prefill: one slot's chunk costs f0 + f1 d + t (g0 + g1 d), least squares over all 485 clean solo chunks of the generation (median residual 10%); the per-chunk term is the checkpoint-tail cost (3-token chunks take 0.4-9 s, growing with depth). - Decode: the step costs d0 + d1 n + d2 D, fitted to group medians of 4,025 decode-only windows (median residual 23%); each step yields the task's MTP mean accepted length from the log (median 2.98), not one token. Replaces the single 29.4 tok/s interval. - Dream traffic (every task not matched to a resident act) keeps its recorded arrivals; residents stay closed loop. Useful acts/h counts resident acts over their span. - (a)+(c) combination at the swept chunk sizes 512/1024/2048. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * ONE-ACT dyno batch: the pipeline scopes (e), (e*), (e-ready) with the 4c gate Sizes 4c (core encoders + dispatcher) the way (b) sized the fork change: the replay now has one device queue and per-mind host encoders, and reports the gate (device idle while device-ready work exists) plus host/device blocking. - batch/replay.rs: the replay, with a Pipeline scope. Today: nothing reaches the device before the go. (e): her reply and appended tool results stream into her live sequence during her gap (uniform; the captures record only submit and completion) for acts that change nothing inside the previous prompt, with page-in ahead. (e*): + stable prompts (in-prompt changes, view turnover and checkpoint-granularity tokens eliminated). (e-ready): the slot kept current continuously (no stale restore, no slot taken), the act is the moment decode starts; host encoders on independent cores (perf_cores 18). - SortKey scheduler: streamed tails, then warm tails whole when they fit, then cold at the knee; decode rides every frame, owed prompt time as in (b). - Fixture: per-act stream / unstable token classes from the cold-prefill investigation. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * ONE-ACT dyno batch: shadow next epoch and the append-only-collapse bound on the recorded turnovers - Shadow::Ahead { acts: k }: from the release of the act k before a recorded turnover, her next epoch is prefilled on a shadow sequence in otherwise-idle device time (one frame at a time, never taking a frame from other work); the turnover act pays only what it did not cover. - Shadow::CollapseSliceBound: the turnover re-prefills only the new collapsed slice; the slice size is not in the recording (the turnover probe carries chars and item counts), so it is scored at the bound where the slice costs nothing. - Fixture: per-act turnover tokens (the 13 acts at a recorded delib.view.turnover). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * ONE-ACT dyno batch: speculative prefetch scored on a held-out half A history-only predictor fitted on the first half of the recorded window and scored on the second: (1) next mind to act (last release + her median gap), (2) her next append size (median), (3) her next turnover (prompt + median growth reaching the depth her training turnovers followed). Turnover bets run as shadow epochs in otherwise-idle device time only (run_with_bets); prefetched, used and wasted device-seconds are scored per bet. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The dyno's recorded evidence moves out of src/ into continuum-engine/fixtures/dyno, and the dyno world reports a mind's settled state The three recorded data files (2026-11-04.json, 2026-11-04-prefill-knee.json and the 33,316-line 2026-11-06-m5-batches.json) are test-only inputs, read through include_str! by modules gated on cfg(test) / feature test-fixtures; they never reach a production build. They now live at the crate's fixtures/dyno/, the convention continuum-tool-protocol and expert-pager-policy already use, so src/ holds only source. Rebase onto canary: #5823 added Demand::settled ("completed a turn since her grant last changed"). The dyno world already tracks exactly that as completed_since_grant (set on a current-engine receipt, cleared when her grant changes), so the publish passes it through. Measured (M5, nice 19, own target dir): cargo test -p continuum-engine --features metal --lib dyno: 27 passed, 9 ignored (the known-red ONE-ACT reproductions); cargo test -p continuum-serving --features metal --lib dyno: compiles, 2 ignored. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her history is bounded by her view and drains: acts her view folded leave RAM for an archive that compacts and retires; bodies shed against their own copy; unchanged checkpoints write nothing The M5, 2026-11-10: each resident's working memory held her whole history (4,522-5,686 action records), her checkpoint was 12-46 MB of JSON rewritten whole every ~15 s per mind (120 writes per 30 min at 51-161 ms each), bodies never shed (a reopened act's body was proven against its raw source: 480 last_copy_kept mismatches in 90 min), and receipt_keys kept every handle live forever. - continuum-context: a view start records each source's fold edge (the newest item it folded); View::release forgets the ids of a run that left its owner. - working_memory: the action log is a seq-keyed ring drained at that edge at each start (release_folded); drained acts go to an outbox the checkpoint tick writes as one immutable segment (archive.rs). Compaction collapses one segment per tick past her measured reopen horizon into a span summary; retention is the tool-output class's pool; bodies no archived line names are deleted through the spill guard. A reopen of an archived act reads one segment; a compacted one answers ActOutputRefusal::Compacted with its span. - shed proof: an act's body is saved under its own content address (save_unsaved_bodies) and shed against that. - checkpoint: ticks the archive first, carries the resident part only, and a periodic write whose mark (memory instance + generation + stamped externals) has not moved is skipped with no snapshot and no serialization. The probe carries bytes and resident acts. - source-hygiene: resident_stores_without_a_drain, a hold-the-count ratchet. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Cargo.lock follows the sandbox's move into continuum-host (landlock), and a released fold edge never passes the act in flight The source-hygiene job failed on `cargo run --locked` since 093770e2a's parent: landlock moved from continuum-kernel to continuum-host without the lock. `cargo metadata --locked --offline` passes with this lock. The view now releases exactly the ids of the acts that left RAM. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her checkpoint resolves through the one continuum home and is placed by durable staging; the touched files' unwraps say why source-hygiene on e668e00ea: own_speech_persisted.rs built ~/.continuum by hand and wrote with File::create (hand_built_homes, writes_outside_a_class), and five pre-existing unwraps in files this change touched had no reason. The checkpoint path is paths::continuum_home()/personas, and the write is a durable::Staging in her held directory, synced and renamed over the file. The storage-failure test now puts a directory where the checkpoint goes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * continuum-cognition compiles: a reopen's newest-saved lookup ends before its lock, and a private binding takes the adapter's optional window as documented CI on fa76484f5 (lib tests continuum-cognition, continuum-core): E0597 in saved_handle (an iterator temporary outlived its guard) and E0308 at llm_deliberation_faculty.rs:257, where max_context_window became Option<u32>. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A private binding with no reported window keeps the minimum serving window it held before; act_room's unused import goes CI on 6103775cb: binding 0 for an adapter reporting no window starved 11 deliberation tests (PromptCapacityError budget 0, no generation); 5728bf07e had replaced MIN_SERVE_CTX with the adapter's Option<u32>. And continuum-core's warning count rose 12 -> 13 on act_room.rs's unused ActRoom import. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A pass begins in the engine's one free cell, her measured need is her want; tests follow; grid.rs unwraps say why 5728bf07e floored a pass at her whole measured answer, so a seat smaller than it refused her (measured_reserve_recovers: 32,768 floor on an 8,192 seat). A floor is the least room a reply begins in; her need is the want the allocation grows toward by priority. - The tests that pinned 0 read the one cell; a directed turn's check reads the contract in force (contracts are standing blocks of her view, once per epoch). - grid.rs: the dyno simulator's lock and a peer's seat count say why. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * What her live epoch already renders floors its claim: an act's other wants never take back what a re-prefill would cost On the M5 (2026-11-10, 205 landed act pairs, the engine's own counts): 1.28M tokens prefilled, 19% of them new; 65% of the re-prefill was epoch turnovers, one every second act (Aris epoch 2,113, Benchy 2,739). delib.view.sized showed why: room 0, the view held more than this act's allocation granted it (33,212 vs 28,482; 13,361 vs 12,785), because each act re-decided the view's grant from collapsed floors and the act's other claims took back the reserve a start left. - continuum-context `Claim::held`: what the live epoch renders for a source, superseded versions included (resident in the engine too); 0 at a start, which recomputes anyway. - The faculty's act claim floors each view source at max(collapsed floor, held): computed once, kept while the window can hold it; only a window that cannot is a turnover. - Test: a live claim holds its epoch's rendering; a start's holds nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A recorded cargo root is not re-observed every broker tick: the walk nothing read was 78% of the core's log open_records observed every tracked root's volume on every tick and used it only for a root not yet recorded. On the M5 (2026-11-10) that was ~270 filesystem resolutions a minute over 29 roots, each a disk.root.resolution line: 78% of the core's log, which rotated every ~25 minutes and lost the evidence of a 2.5 h serving wedge. Only unrecorded roots are observed now. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The pool-growth relaunch and its admission hold are deleted: one optional relaunch froze every mind for 2.5 h On the M5 (2026-11-10) `ensure_serving` waited 8,825 s with a healthy engine (/health, /props, /slots ~10 ms): the growth relaunch's drain queued the endpoint's fair writer lock, which readers holding no lane (warm-ahead, transient admissions, grant handoffs) can hold past both releases, while every new admission queued behind the writer and the pool-growth hold kept admission closed until the ensure returned. The same relaunch froze the node for ~1 h on 11-09. Its own header declared it S2 debt ("goes when the engine resizes live"); its recovery case (a relaunch after an exit coming back small) is held at launch by the proven pool (`launch.rs`, `a_relaunch_from_a_gap_budget_holds_every_seated_need_up_to_the_proven_pool`). A pool that launched small serves every mind; a freeze serves none. Upward resizing is S2/S4 live reconfigure (fork #105, the core's /reconfigure call sites). Deleted: llama_server/pool_growth.rs, serving_daemon/pool_growth.rs, resource_admission/quiesce.rs (admission entered a quiescer only for this hold), the reconcile's growth branch, the daemon's growth gate and hold release, the dyno's recorded hold (row 6 names the removal). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * lanes.rs keeps no doc comment for the deleted quiescer; the held-claim test counts blocks by Block::chars Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Every grounding contribution is a block of her view: the second assembled-context path is deleted No live act carried an assembled-context message (0 of 621 captured acts on the M5, 2026-11-10): every production grounding source already rides her view as a block (recall, rag sources, the board). The non-trailing path stayed alive for tests only, and it held the one hand-pushed prompt message in view.rs. A context contribution is now trailing by construction, so the path has nothing to carry, and it goes: - continuum-context: ActClaims.grounding, its part in the search, the second search that traded it against the reply, its claim and hard limit (allocation tests recomputed without its 300 handle tokens: pages 3,600 -> 3,900 and 1,600 -> 1,900). - cognition: GroundingOffer, render_grounding, assembled_context_cost, the working-context message and header, ContextComposition, the grant in the budget ledger; the tests of that renderer (the reply-reserve law test keeps its law and prompt-room checks). - the replay example folds [recall] into the view like any source. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A private binding with no reported window holds none, never the planner's smallest lane Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The cut's last references: three test literals and three imports that named the deleted grounding path Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Revert "A private binding with no reported window holds none, never the planner's smallest lane" This reverts commit 670c319d25d8ce6495be58baeb4985ec4f93b8d4. * The reply-priority test: the ambient pass is a mind with no hands (every turn she has hands for is an act, 60cf344aa) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Held content is her view's flex basis, never its floor; the touched files' unwraps say why; engine_install named by path, not a cfg'd re-export A floor of what the epoch held refused her turn when the window shrank (window_feedback tests): a window that cannot hold it turns the epoch over. As min_tokens it is still topped up before any other claim grows. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Revert "The cut's last references: three test literals and three imports that named the deleted grounding path" This reverts commit b26493f326301784a776e9ed22cf0581f71525ac. * Revert "Every grounding contribution is a block of her view: the second assembled-context path is deleted" This reverts commit a2c46d1314b3d8b6cce964d44ea29ba33d09b581. * engine_override is re-exported plainly, never behind an OS branch; engine_slots is left as it was Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Held content counts only what the engine received: an unsent epoch holds nothing; the directed-turn loop reads the contract in force A view that had just started held its whole receipt as its flex basis before any prompt carried it, and the act's newest room update collapsed to a pointer (capacity_and_wire: "room updates must survive"). `View::sent` records how many of the epoch's events the engine received; `held` sums only those, so a start (or a restored view before its next send) claims nothing it never sent. The directed-turn loop asserted a contract block's absence, which a standing block of her view keeps as history; it reads the in-force line, as the directed check above does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The reply-priority test pins the act's growth toward her pending cut; a pass and an act no longer share a faculty Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A replacement checkpoints only a running engine: an exited one holds no KV, and its refused save deferred every relaunch Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The price never holds less than her view already sent: resident context costs no prefill Live on the M5 (2026-11-10, c5c4542e2, 21:11-21:22Z): views granted 7.5k-13.5k tokens of 41k-49k windows with no room left, an epoch every second act. The price held the window where value per second peaks on her measured act time, and that time was measured while turnovers re-prefilled her whole view: a self-confirming squeeze. What her live view already sent is resident (computed once, no prefill), so it joins what she must hold (`least`), beside her held head levels and her newest result: the priced window never drops below it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * A whole file read inline names its handle, and one path spelling is one view: she reopens instead of re-reading The M5 (2026-11-10, friction read over 6 h): 20 identical re-reads cost 2,876 s; Atlas read one 666-line file four times. Her ledger said "read 1-752 (all of it)" with no content and no handle: only a paged read named one. An inline read that showed the whole file now names its own saved handle (a partial inline read keeps the handle already named, since its own covers only its range), and `./x` and `x` are one view. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The KV page disk tier has a governed owner: the broker frees it in value order kv-pages was DEFERRED: nothing could take a byte back under disk pressure. On the M5 (2026-11-10) it held 30 GB, ~3.1 GB of it restorable. KvPageStorePool (continuum-engine slots/page_store_pool.rs) frees, cheapest regret first: pages of model dirs no live slot pool serves; then pages the serving pool does not confirm; then the coldest confirmed pages of minds no slot holds, each forgotten through note_page_lost before its file goes. Never a resident's page, never saved-ledger.json, never a served page while page IO is in flight, the node stops or an endpoint transitions; unserved dirs wait while an engine launches. Budget: the derived-cache policy (cargo_target_budget_bytes of the volume); pressure includes the volume's. Registered after the cargo pools; kv-pages moves from DEFERRED to OWNED. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * SPEED-BRAINSTORM: the pipelined cache, Joel's ideas with the day's receipts Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her head changes only at a cold start: a growth turnover keeps the head the engine holds Live on the M5 (1ee16e3b4, 21:52Z): Benchy's tools changed at a view turnover and her act cached 0 of 25,228 tokens; the head renders ahead of every message, so adopting a new head recomputed her whole prompt where a turnover alone re-prefills only her view. The next head is adopted only by the act that started her view (the first after a start or restart, where nothing of hers is cached); verbs she picks up meanwhile ride her tail. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her need carries her view's growth: a reserve as large as what it sent, so her next acts append instead of turning over Live on the M5 (1ee16e3b4, 21:41-22:05Z): Aris was granted ~45-59k with her view at its edge (33,939 held vs 33,306 granted), an epoch every second act, while the grants publisher used 109k-168k of a 524k pool and 34 `persona.need.censored` said minds wanted more. Her need recorded only what one act held; the reserve her view's start leaves never reached the publisher. The need now grows by what her view already sent (`ActNeed::grown`), the same reserve the start leaves. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * SPEED-BRAINSTORM: newer input is never paged out (the room-update regression, measured) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The price learns from warm acts and collapses her view only when the rebuild repays Live on the M5 (2edea7a99, 23:44-23:56Z): with the cache holding, acts prefill 1-3k fresh tokens but decode at 9-10 tok/s over 65-88k held context, against ~15 at 20-30k, so a long-lived view slows every act. Two corrections: - Her fresh tokens per act are fitted on warm acts only (most of the prompt cached): cold and turnover acts re-prefill everything and taught the price that context costs a recompute every act. Decode and prefill rates per token still learn from every act. - Keep or collapse is a priced choice: keeping costs its measured seconds every act; collapsing to a smaller window costs that window's seconds plus re-prefilling it once, spread over the acts until her view grows back (size difference over her fresh tokens per act). The higher value per second wins (`priced::collapse`). Tests: cold acts never enter the fresh fit; she collapses when warm acts repay the rebuild and keeps when each act re-prefills a lot. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The price tests place keep where context costs nothing per act and collapse where it slows warm acts Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Revert "The price tests place keep where context costs nothing per act and collapse where it slows warm acts" This reverts commit 0b1450291063201337ac9cb12315ed927017be89. * Revert "The price learns from warm acts and collapses her view only when the rebuild repays" This reverts commit efadf34151187c4f408062d13bad2eefcc055a72. * A saved act-time fit without its fresh-token moments loads empty instead of refusing her checkpoint The revert of 0b1450291 left checkpoints saved without the field; every seat failed with "missing field `fresh`" (the M5, 2026-11-11 00:43Z). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The allocation dyno carries each resident's epoch, so cache-aware pricing is measured before a deploy `replay --allocate` priced every act as if nothing were resident. Live, her view is an append-only epoch: each view claim's basis is what the epoch already sent (`Claim::held`), the price holds it, and a grant below it is a turnover that re-prefills the view. - examples/replay/epoch.rs: per resident, in capture order, each view source's basis is what the plan kept of it on her previous act (at least its floor); a grant below it counts a turnover; each act's fresh tokens are predicted (cold, turnover re-prefill, or the new tail). - allocate.rs: an epoch plan beside the existing columns, priced by `--fit live` (default: her running fit fed each completed act as the core feeds it) or `--fit node`; prints turnovers (count, per act), mean held basis, predicted fresh per act beside the measured mean, and predicted s/act on the node curve at those fresh tokens. Reads acts through price.rs's `sample` (the duplicate parser is deleted); the message/loop parsing is one helper each. - price.rs: `ActTime::seconds_prefilling(context, fresh)`; `seconds` delegates to it. Not compiled here (serving node); CI compiles the example. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * SPEED-BRAINSTORM: collapse pricing on the dyno, measured; hysteresis next Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * SPEED-BRAINSTORM: Benchy's thrash traced on the dyno; price the cycle, not the act Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The allocation dyno reports each epoch plan's value beside its seconds The price trades value per second, so a collapse that buys her a better-leveled context is not a regression by time alone; the gate reads both. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The allocation dyno prices by a causal pooled fit: every resident's earlier acts on the model Act time is the engine's and model's, not one mind's; --fit pooled replays what a node-wide fit would price live, without the node fit's look at later acts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The dyno freezes her head inside an epoch, as the live core does A window growing inside an epoch changed the plan's head grants and the dyno replayed those acts cold (Aiko: 12 acts, 7% of her seconds); live, her head is adopted only when an epoch starts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * SPEED-BRAINSTORM: dyno fidelity steps and the collapse-pricing verdict so far Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * An empty fresh line prices her act cold instead of leaving her view unpriced Aris on the M5 (2026-11-11): the fresh line was added empty in 0cb138fd6, his fit stayed Unmeasured, his view filled the window (59k tokens), his acts grew too slow to finish under contention and restarts, so the line never filled. Every held token is now charged as prefilled until her own acts measure the line: the dearest reading, replaced by hers. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Unknown never means maximum: a price that cannot decide prices cold, and a view held past the measured contexts turns over into them The M5, 2026-11-11: Atlas and Aiko priced Unmeasured (their fresh lines mixed cold and warm acts into a noisy slope) and Aris before them (an empty line); unpriced served the whole window, their views grew to its ceiling (100k-token prompts in 104,857 windows), their reply room fell to 284 tokens and the engine refused them. Two rules in the price owner: - a fit with measured decode and prefill is always priced: the fresh line when measured and significant, else every held token fresh (the dearest honest reading); - a view whose held basis lies past every measured context is released to its floors and priced inside them (a turnover), never served the whole window. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * SPEED-BRAINSTORM: patterns, not leaves: one owner per fact, the bypasses found and their fixes Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The llama backend follows the machine: Metal on Apple Silicon, the CPU profile on an Intel Mac A plain `cargo check` / `cargo test` of any crate above llama refused on macOS without `--features metal` (Joel, 2026-11-11: "this should be automatic ... a better toml instead of failing"). Target-specific dependency tables in the two crates that depend on llama pick the backend by architecture; the Intel Mac keeps mac-cpu-only, where ggml-metal init hangs (#129). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her newest act is judged by her view like every arriving act, and a run of identical requests is a fact in her newest result The IntelMac loops (2026-11-11: 8faf9269, b6dcfc8e, 0d5c1ffa): one saved output reopened 20+ times, each byte-identical, her input equal to her last. Three owners, one fix each: - the view (MIND-CONTEXT invariant 4): her newest act rode whole after her view, outside its sources, so no act was ever judged on arrival; View::repeat_of_newest runs the same repeat::resolve, and her native tool_result carries the verdict. A reopen repeats only an identical reopen whose whole she holds (a first reopen still arrives whole); - the action log: a typed RepeatRun (consecutive identical requests with identical outcomes, any declared effect, undeclared too) rendered into her newest result only, so a third repeat differs from the second and a repeated shell command is signalled (Cormac's review); - the duplicate prose "[repetition] requested N times" notice in act_observe is deleted with its count map: it rode into stored results and its moving N defeated content identity. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The price uses the most specific measured curve: her whole act's seconds when its parts are noise Aris on the M5 (2026-11-11): decode and prefill per-token slopes inside their errors over 1,340 acts (contention hides the per-token trend), so the price stayed Unmeasured and his view grew unbounded (238k chars), though his whole act rose 1.26 s per 1k tokens held (+/- 0.21). A typed Curve (Composed | Whole) prices him from that measured curve; noise everywhere stays unmeasured. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * MIND-CONTEXT: her act's tail is a source, judged and rendered by the view before it is sent (design, for review) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * MIND-CONTEXT tail-as-source: Cormac's review (one prompt owner for learning, framing is the mutable end, restart is a classified cold start, restart replay gate) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * MIND-CONTEXT tail-as-source: Codex's engine-bytes conditions and the wire-token gate Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * MIND-CONTEXT tail-as-source: the code read's three points resolved (framing stays an item for prefix stability, no double count, the page is a level the allocation decides) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * MIND-CONTEXT tail-as-source: one element one occurrence replaces covers; the working-context block is a tail item; the learner already has one owner Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * MIND-CONTEXT tail-as-source: it joins after the allocation and before the send (View::append_tail), never as a start source Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The view takes her act's tail after the allocation: append_tail, Level::Page, one element one occurrence MIND-CONTEXT, 'her act's tail is a source': the tail is a Source for rendering, keys, element identity and repeat judgement but not a start source. View::append_tail (view/tail.rs) appends its arriving items after the act's allocation and before the send, judged by repeat::resolve against her history's items (whole by element, whichever key it arrived under), at the level the allocation decided (Level::Page for her paged newest result). The append path shows an element once: an item whose element the epoch already renders under another key is not appended (replaces covers). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her act's tail is judged before the send and joins her view once served (judge_tail, append_tail) An act can be rendered several times before one is served (a capacity refusal's refit, a grant that moved, an engine that cannot count it: verdict/contribute.rs), so a tail appended before the send would leave unsent tails in her epoch and pin the first attempt's levels. View::judge_tail is pure: every render judges afresh (repeat::resolve, one element one occurrence, the allocation's level); View::append_tail appends exactly the judged items the served prompt carried. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * MIND-CONTEXT tail-as-source: judge on every render, join on success; media at render while newest; framing and context keyed by content Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The view covers by element identity: append_sent, covers, holds_sent and repeat_of_newest deleted An item…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on canary (#5819 and #5822 have merged).
How this serves the minds: a mind's recorded need sizes her lane. An inflated need takes seats and pool from every other mind, and it marks her as unservable on a grid that could serve her. Her need is now the window her own act chose. This advances path step 1 (Fast) and order-of-work line 3 (KV capacity sized from measurement).
The defect
Joel (2026-11-07): "I feel like the mind needs are also hyperinflated unless you've already implemented the positronic rag budgeting and focus reductions." Collapse levels (#5814) and collapsed navigation (#5827/#5828) were live, but the need ignored them:
NeedSample::Exact(budget_floor), wherebudget_floor = ActPlan::held_need()= every claim's floor (the size each part requested).NeedSample::AtLeast { window + view_beyond }, whereview_beyondwas everything her view lacked uncollapsed (whole files, folded navigation).need_exact902,158 on a 262,144-token model (M5,grid.mind.unservable16:21Z), and the grid's demand read 23.6M.The fix: one owner,
continuum_context::allocation::needHer need is the window the act allocation CHOSE (#5822's priced optimum):
ActNeed::Chosen(w): the optimum lies inside her grant (value per second peaks atw). It is bounded below by what she must hold: every hard limit, her newest result whole, and her reply's measured need.ActNeed::Censored(w): her grant censored the optimum. When the choice sits at the top of the served window, the same ternary search continues above it, up to the model's trained context and inside the measured contexts. A higher rate found there is recorded asAtLeast { w }. A window smaller than what she must hold is censored at that least.ActNeed::Unpriced: no measured act time, or no window inside its measured contexts. No need sample is recorded (persona.need.unpriced), and her irreducible window (record_floor) still stands.ActNeed::BeyondTrained: past the trained context.NeedWindow::withinrefuses to build such a window, so it is a typed defect with a probe (persona.need.beyond_trained, card bf3b6d68), never a sample. Her irreducible floor goes through the same type.The trained context comes from the model's row (
ModelBinding::trained_context→model_registry::try_global().model(..).context_window), which is hydrated from the GGUF header or set by the catalog's correction. When no row exists it isUnreported: the need then stops at the grant, censored.Deleted (copies migrated to the one owner)
ActPlan::held_need()and itsreply_needfield: floors as need.overflow_beyond,ViewFitted::beyond,view_beyondand thewindow + beyondcensored sample inview.rs. Also its testan_overflow_measures_what_her_view_would_have_held, which pinned the deleted behavior.flex::turn_need("what one turn needs of a lane: the sum of its floors") is nowflex::floors. Its one remaining use sums required view floors forhard_limits. Its test is renamed to the allocator invariant it actually checks.NeedSample,held_need.rsandPersonaDemand::need_recentnow say what the ring holds.Lines: +377 / −150 across 17 files. That count includes the new
need.rs(85 lines) and 4 tests.Tests (
// what this catches:on each)In
allocation/priced/tests.rs:a_900k_overflow_records_her_need_at_the_priced_point_never_above_the_trained_context: her view's conversation wants 900,000 uncollapsed (claims sum above 900k), on a 262,144 window and trained context, at the M5's measured act time. Her need is exactlyChosen(held), the window the price held, and it is below her grant.a_grant_below_the_priced_point_records_that_point_censored: a grant between her least and the priced point recordsCensored. The value is past the grant, never past the trained context, and within 2% of the uncensored peak. An unreported model records the grant as the bound.a_need_past_the_trained_context_is_a_defect_and_an_unmeasured_price_records_none.The existing "planned as before" equalities also reset
need, because the plan itself is unchanged.Measured
Run locally on the M5 (nice 19, own target dir, serving untouched), head 8671795, 2026-11-07:
cargo test -p continuum-context --lib --examples: 114 + 21 passed. That is 111 on the Context has a price: her act holds the window where her value per second peaks (card 7b7a696a) #5822 head, plus 3 new.cargo test -p continuum-cognition --lib --features test-fixtures,metal: 973 passed, 0 failed, 1 ignored. That is 974 on the Context has a price: her act holds the window where her value per second peaks (card 7b7a696a) #5822 head, minus the one deleted overflow test.cargo test -p continuum-core --lib --features test-fixtures,metal -- deliberation: 19 passed.ratchets 761369c92(the Context has a price: her act holds the window where her value per second peaks (card 7b7a696a) #5822 head), from the repo root: exit 0, every count unchanged.tools/scripts/oversized-edits.sh 761369c92: clean. Every touched file is under 1,000 lines (view.rs 816, epoch.rs 795, allocation.rs 642).cargo clippy -p continuum-context --all-targets: no warnings in the files this touches. Two pre-existing warnings remain, innav.rsandprice.rs.persona.need.*classes, and each resident'sneed_recentread throughrequirements_for, are at or below 262,144.grid.mind.unservablenames no resident.delib.window.flex priced=Held{held}.What this does not fix
Her WISH is still the untrimmed demand:
view.rsdemand_tokens→record→peak_tokens/recent→ServingDemand.window_tokens(the planner'sdemand_window) and theLaneRequirementtarget. Every term there is uncollapsed by design. That path is the likely source of the 23.6Mdemand_window. This PR does not change it; it is follow-up work for the governor's owner.Review follow-up (Cormac at 8671795): the unpriced path. Head 40199f7
The concern: an Unpriced act records no need sample, so an unpriced mind would stay
Measure::Wished, andobserved_needwould return her wish target (window_allocator.rs:103) as her floor.What the code does: every act already records her irreducible window:
record_floor, checked against the trained context byNeedWindow::within(view.rs).resident_needreads it (held_need.rs), sorequirements_forgivesHeld { Exact(irreducible) }, never the wish.Why no AtLeast sample was added: the suggested
NeedSample::AtLeast(irreducible)would not produceHeld{AtLeast}.resident_needexcludes bounds by design (an_overflow_is_measured_as_a_bound_and_never_raises_her_residency). It would only record the same fact a second time.New test:
tests/verdicts/unpriced_need.rs::an_unpriced_minds_need_is_her_irreducible_window_never_her_wishruns through the faculty:requirements_forgivesMeasure::Heldwith need exactly herfloor_tokens, below her wish target.It passes on 8671795 unchanged: the path was already correct, and is now pinned.
Gap: if her irreducible window is past the trained context (
BeyondTrained), no floor is recorded. With no held sample either, she falls back toWisheduntil a priced act records a need. The probe names the defect, but the wish still gates her meanwhile.Where the wish (untrimmed assembly) still sizes things, for the planner's owner (cards 9ffcb1b5 / 68ffe0f0)
working_set.rs:833,842: the wish isrequirement_tokens(the median of untrimmed demands) ×SENT_HEADROOM.window_allocator.rs:201-206(held) keeps that target and clamps the need below it. The wish is never her floor once a floor or a held sample exists.(target, need)(window_allocator.rs:224-226,sized).largest_known(window_allocator.rs:231-233) is the shared window's growth target (window_allocator.rs:411) and the grid's undeclared-role window (grid_allocator.rs:425).demand_window.serving_daemon/demand.rs:207,213takeworking_set.ceiling()/ceiling_of(&live), which is the peak untrimmed demand (peak_tokens, recorded byview.rsrecord(demand_tokens), where every term is uncollapsed by design). It reachesServingDemand::new(lanes, demand)(demand.rs:232), andserving.planlogs it asdemand_window(planning.rs:552).Conclusion: the wish should not be a floor, and once a held need exists it no longer is one. It still drives lane targets and the planner's demand window, both of which are outside the need owner. I left them unchanged, for Cormac.
Measured at 40199f7:
cargo test -p continuum-cognition --lib --features test-fixtures,metal: 974 passed, 0 failed, 1 ignored (the new test included).ratchets 761369c92: every count unchanged.Rebased onto canary 97f73c4 (2026-11-07), head d40d108
#5822 merged as acaaf3f, so this PR is now based on canary and holds only its own two commits:
git rebase --onto origin/canary 018696870. No conflicts.git range-diffshows both commits identical to the 5a5123b head Cormac passed (ae54077 = ac95992, 5a5123b = d40d108). #5835's seated-mind sizing readsMeasure::Held, which this PR does not change, and it compiles and passes below.Measured at d40d108 (M5, local, nice 19, own target dir, serving untouched; llama.cpp submodule at canary's 54939d690):
cargo test -p continuum-context --lib --examples: 114 + 21 passed.cargo test -p continuum-cognition --lib --features test-fixtures,metal: 974 passed, 0 failed, 1 ignored.cargo test -p continuum-serving --lib --features metal -- serving_daemon: 128 passed, 0 failed, 2 ignored.ratchets origin/canary: exit 0, every count unchanged.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo