Skip to content

The live M5 stack: every change running on the residents, merged with canary - #5917

Merged
joelteply merged 111 commits into
canaryfrom
fable/a-forgotten-read-still-counts
Nov 11, 2026
Merged

joelteply merged 111 commits into
canaryfrom
fable/a-forgotten-read-still-counts

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The branch deployed on the M5 (live as 99919af before this merge), with canary merged in (not rebased). It carries every change measured live on 2026-11-10:

  • thoughts fold;
  • every turn with hands is an act;
  • thinking is never budgeted;
  • censored needs reach grants;
  • evicted reads count;
  • re-read weights;
  • forgotten reads count and thin ages read her own rate;
  • queued minds wait their turn, with reclaim and yield ending the turn instead of deadlocking;
  • embeddings lease per pool;
  • the stored-row decode;
  • a mind's children run below the engine.

Supersedes #5910, which closes as included.

Measured live: see the receipts on #5906, #5907 and #5910, and the 15-minute reads in this session.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply and others added 28 commits November 9, 2026 21:09
…d: 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, 709fe47,
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
…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
…er 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
…eads 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
… 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
…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 (51db8ff,
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
…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
…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
…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
On the M5 (26960c0) 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
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 (26960c0), 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
…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
…in 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
…bsent: 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
…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
…or 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
…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 (d0abbdd, 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
…es 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
…th 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
…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
…ry, the GPU hint caps a process, and an unreported memory mode is unknown"

This reverts commit 75f1ba7.
…ead-still-counts

# Conflicts:
#	core/continuum-context/src/view/tests.rs
#	core/continuum-engine/src/capacity/mind_window.rs
#	core/continuum-engine/src/capacity/window_grant.rs
#	core/continuum-engine/src/inference/backends/llamacpp.rs
#	core/continuum-engine/src/inference/backends/llamacpp/embedding_batch.rs
#	core/continuum-engine/src/inference/llamacpp_adapter.rs
#	core/continuum-engine/src/inference/mod.rs
…he one that served most

On the M5 (2026-11-10, 75f1ba7 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
joelteply and others added 15 commits November 10, 2026 21:49
…nds 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
…arning, 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
…raming 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
…l::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
…ed (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
…and repeat_of_newest deleted

An item whose element her epoch already shows whole under another key (her act's tail showed act k)
is covered for the epoch: never shown again, and read where her tail showed it (View::renders). The
caller's covers bookkeeping and the untyped sent-tail join are gone; her tail joins through
judge_tail/append_tail. Judged gains element(), level() and Judged::whole (no view to judge against).

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

context_streams/tail.rs is the one renderer of what follows her view: the working context, the
framing, the ask (or an empty room's world state), her statement, her words and calls, and their
results, keyed by what each is (act/{seq}/call, act/{seq}/result, turn/{key}/stimulus, and
framing/context/statement/world by content). Her result shares her act's element and carries its
identity and outcome hash, so a repeated reopen arrives as its repeat block on arrival, still the
tool result answering her call. The ask shares its turn's element.

prompt_view judges the tail after placing her view (what the allocation prices) and again after
fit_view; a paged result is its item's summary judged at Level::Page; view_served appends exactly
the judged items that were sent (attachments never held) and only then marks the act sent.

Deleted: SENT_TAIL, view_sent, view_covers, view_holds_sent, drop_what_she_was_sent, tail_covers,
newest_repeat, Streams::latest_act, Conversation::stimulus, and every hand-built prompt message
(prompt_messages_outside_the_view 7 -> 0).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ne is re-sat, and a repeat run survives a fold

Three stalls found on the M5 and IntelMac (2026-11-11):
- reclaim: rows a closed batch dispatch never handed back (Aris's code/owner correction on
  intent 1d75cba2) return to pending after the active-intent pass; first test of reclaim at all
  (card 997f7177).
- examiner: an Unexaminable receipt from an earlier core process is sat again (the refusal comes
  before any turn); Aris's code/owner gene was served unjudged for 55 h (card efcf6afb, part 1).
- action log: a record's repeat run is taken as it is pushed, from the room's last act, so it
  survives her view folding the earlier repeats out of RAM (IntelMac 0051cdcf re-read one handle
  ~45 times in 14 h; Cormac's read found the 3rd identical read told no run).

Tests: continuum-genome examiner 4 pass; continuum-dreaming durable 8 pass (new reclaim test);
continuum-cognition working_memory 64 pass (new run-across-fold test); check of the three crates
clean (M5, serving down, 05:23-05:29Z).

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

Copy link
Copy Markdown
Contributor Author

Stacked on this line (fast-forward, 7 commits, head bc94670):

Her act's tail is a view source (e60b7c4, e19a76c, 5b55ef0; MIND-CONTEXT revision 2026-11-11). The tail, which is everything after her view (the ask, the statement and her newest result), is now judged by the view before the send and held once served.

  • New: context_streams/tail.rs is the one builder of what follows her view.
  • Deleted: append_sent, covers, holds_sent, repeat_of_newest, SENT_TAIL, drop_what_she_was_sent, tail_covers, newest_repeat, latest_act, stimulus.
  • Tests: continuum-context 131 + 23 pass; continuum-cognition 306 pass (working memory, context streams, act observe, deliberation).
  • Replay of 226 captured acts across the four M5 residents: prefix reuse and fresh chars per act equal to the current path within 0.1 points.
  • Live on the M5 since 04:47Z: 44 to 95 acts/h depending on the window, 0 slot refusals, cache reuse holding.

Learning steps again (bc94670): stranded corrections return to pending (card 997f7177), an unexaminable gene is re-sat in a later process (efcf6afb, part 1), and a repeat run survives a fold (IntelMac 0051cdcf, 45 rereads in 14 h). Tests: continuum-genome examiner 4, continuum-dreaming durable 8, continuum-cognition working_memory 64; check clean. M5, serving down, 05:23 to 05:29Z.

Not yet in this PR: the memory board (494c99f1, Codex) that lets in-place learning admit at all.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply and others added 4 commits November 10, 2026 23:31
… sites at their owners

- act_observe/apply.rs: the action tally reads only the tool name, so the call's arguments are no
  longer serialized for it; the chain lock is parking_lot (no poison to launder); the missing-result
  and no-call defaults say why on the line; persona:act names its wire boundary.
- llm_deliberation_faculty.rs: an adapter that reports no window binds none (its own comment said
  0), not the planner's floor; the scripted test adapter reports its window like a real one.
- open_views.rs: an unknown length claims nothing unread, instead of an empty default.
- context_streams/tail.rs: a tail key is the whole digest, not an 8-byte head.
- llama_server/launch.rs: the child's own process group moves to continuum-host::own_group
  (unix.rs/windows.rs), out of the engine's logic.
- working_memory/action_log.rs: the run takes its restored value with get_or_insert.
- view/tests/repeats.rs: history as of act n is a named helper, not a literal slice.

Ratchets vs canary 16dead4: all pass. Tests: continuum-context 131, continuum-cognition 991 (3
skipped by name, pre-existing); check of host, engine, context, cognition clean (M5, serving down,
05:41-05:43Z).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply and others added 5 commits November 11, 2026 00:03
…e knows an unused seat yields

- verdict/contribute.rs: an act's allowance charges the prompt at calibration.for_input(view's
  input identity): the engine's count after a refusal for the same input, a fresh price for a
  changed one. Charged at the raw calibration, a small 'What changed?' after a refused oversized
  prompt inherited its density and was refused at 16,386 of 16,384 forever (window_feedback.rs:509;
  likely the shape of BigMama's Sahar, need 71,551 > ceiling 58,112 on d17b1a4).
- dyno/service/world.rs: a reclaim counts as taken when the waiter is granted by any path (an
  unused seat withdrawn without a handoff), and a ticket to a holder idle across the last
  publication is allowed (the unused-seat rule of 9e8f0c5); both oracle gaps found by
  seeded_schedules (seeds 109, 144).

Tests (M5, serving down, 06:12-06:20Z): continuum-engine lib 1564 pass; continuum-cognition lib 992
pass, 2 fail (capacity_and_wire:137 room update, window_feedback:306 refit), both red on the line
since 7ce4b78 and still open; ratchets vs canary pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ft to trim re-renders her view once at the engine's count

refit_rejected_prompt held view_len out of nothing: PromptRefit counted only the tail's history, so
split_off(history_len) handed her view blocks to fit_messages, whose oldest-first drop cut her
leading grounding (window_feedback.rs:306; the defect c19c213 documented after 9083157's
hold-out made every refit refuse). Now PromptRefit carries view_len; the refit fits only the tail
within its budget less her view's tokens and splices her view back; when the tail has nothing to
trim, contribute re-renders her view once at the measured calibration, so her own allocation
collapses oldest first at its levels; a second refusal still refuses. Also: the newest page's
ceiling subtracts the HISTORY grant (newest interaction stays whole, goal 7).

Tests (M5, serving down, 06:21Z): continuum-cognition lib 993 pass, 1 fails
(capacity_and_wire:137, the room update beside a 51,689-char result; open); ratchets vs canary
pass; verdict/contribute.rs 996 lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… turn that arrived this act and standing grounding leave only when they cannot fit

Two line regressions behind capacity_and_wire.rs (red since 7ce4b78):
- :137, a room message that reached her during this act dropped to its index beside a page of her
  older result: her conversation's floor on an act never counted it. Now the conversation marks
  the turn that arrived this act (Conversation::arrived), its view claim carries its cost
  (ViewClaim::arrived), and the allocation holds it whole before her newest result is sized
  (allocation::hold_arrived): whenever the window holds it beside every hard limit, her result's
  least page and her reply's need, her result pages around it; one past that leaves the floor as
  it was and its index names where it is (:387 oversized update; busy room's update 39 whole).
- :166, the activity's wall left the turn: the allocation offered grounding the empty choice
  whenever anything wanted its room, though standing grounding's last level is its minimum
  (grounding.rs). Now grounding leaves only when its handles cannot fit beside every hard limit,
  her newest result as shown and her reply's floor; a turn is never short for it.

Tests (M5, serving down, 06:38-06:40Z): continuum-context lib 133 pass (2 new: an arrived turn
held whole before the result pages / past the window leaves the floor; grounding leaves only when
its handles cannot fit) + replay example 23; continuum-cognition lib 994 pass, 0 fail; ratchets vs
canary pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…hen it must page, never refused

The IntelMac (a233f8b, 2026-11-11): Iris and Eitan refused 38 and 37 acts in a row ('prompt
capacity 43448 > 32768 ... parked'): a 29,618-token newest result restored with no active action,
so page_newest returned at a silent early exit (no working memory / no active action, before any
probe), the result was Newest::Whole, charged whole as her least, and every act refused. The same
rule kept a reported note whole and an unsaved result whole ('the turn is short').
Joel: 'These refusals are supposed to be impossible.' / 'never get stuck, obviously.'

page_newest now pages every slot: through its own saved whole when it has one, else saved now
through spill::LivePin::retain (content-addressed: saving what is already saved is the same
handle), probed delib.newest_result.saved_to_page. The silent exits and the reported-note and
unsaved special cases are gone; Newest::Whole is only a result whose save the store refused.
Docs updated in newest_result.rs and continuum-context allocation/newest.rs.

Test: an_unsaved_newest_result_is_saved_and_pages_instead_of_refusing (her 340k shape, custody
Unsaved: a first page naming the output it was saved as, no capacity error); the fixture's
memory_after now goes through memory_with(custody).
Tests (M5, serving down, 06:57Z): continuum-context 133 pass; continuum-cognition 995 pass, 0 fail;
ratchets vs canary pass. Card 4ec2818a (part: the newest result).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant