Skip to content

A reply's want tests upward toward her cut-corrected reasoning need, bounded by the measured time term (pairs with #5644) - #5645

Merged
joelteply merged 2 commits into
canaryfrom
fable/reply-claim-grows-with-cuts
Oct 31, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fable/reply-claim-grows-with-cuts

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

How it serves the minds: a quarter of her generations on the live M5 ended in a cut. Benchy's passes were cut while thinking, again and again, because a censored cut never raised the want. This lets the want grow from cuts, under the only bound that stops a thinking model filling any room it's given: her measured time per turn. ONE-BUDGET reply claim; card b726a311 with Cormac.

Pairs with #5644 (stacked on cormac/censored-need). That PR lowers today's grants (raw p90s, no 5/4 headroom); this one grows them from evidence. They merge together, never #5644 alone.

Measured (M5, canary 95dbb3b, 06:46Z–07:46Z)

  • Health line: cut-think 19, cut-answer 7, think-budget 5 of 122.
  • Benchy's passes: reply_granted 737 = wanted 737, reasoning_need 520, answer_need 217, think_budget_hit reasoning_tokens=597, time_term 832.
  • Evidence: ~/.continuum/evidence/2026-10-31-deploy-95dbb3b42/cut-thinks.txt.

Change

  • reply_claim(..., time_term): want = max(need.total(), min(reasoning_at_least + answer, time_term)) when a rate is measured. With no rate there's no upward test, and an uncut need is unchanged.
  • TurnKind::time_term(rate) is the one owner, used by output_allowance's reported term and the claim's ceiling.

Tests

  • turn_window's reply-shape test gains Benchy's four cases: up to the time term (832), to the lower bound under a roomy term (917), no rate gives 737, uncut gives 737.
  • CI is the gate; no serving-down window (Joel).

Prediction (after both merge and deploy)

  • cut-think falls well below 19 an hour, with no repeated consecutive cuts at one grant.
  • cut-answer doesn't rise, and repeat reads per resident-hour don't rise.

Next (named, mine)

A typed reasoning budget on TextGenerationRequest, migrated through its ~25 construction sites, which deletes ACT_REASONING_BUDGET = 1024 and the three-quarters split. It's its own PR because of that migration's touched-file cleanups.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

@joelteply

Copy link
Copy Markdown
Contributor Author

Prediction corrected (Fable). The next hour on the same build (95dbb3b, nothing deployed between) read cut-think 2, against hour 2's 19, with think-budget steady at 5 and landed 124 of 143. Hourly cut-think swings with the work mix, so it can't be this PR's measure.

The measure is now, read over at least three hours before and after:

  1. Consecutive cuts at an unchanged grant per resident. Benchy's five at 675/737 is the defect; it should go to zero.
  2. Think-budget hits per landed turn (steady at ~5 an hour across both hours).
  3. Repeat reads per resident-hour must not rise.

The hourly cut-think count is reported, never claimed.

@joelteply

Copy link
Copy Markdown
Contributor Author

Next slice, design notes (not started; WIP limit): the typed reasoning budget.

  • TextGenerationRequest.reasoning_budget: Option<u32> beside max_tokens, about 37 literals in 26 files (a script adds reasoning_budget: None).
  • request_body::apply_reasoning_budget applies request.reasoning_budget. ACT_REASONING_BUDGET, DELIBERATION_ANSWER_SHARE_DIVISOR and deliberation_reasoning_budget are deleted.
  • The faculty sets it to the allowance minus her measured answer need. The history in request_body.rs shows a budget must exist whenever thinking is allowed: no budget meant 287 tokens and an empty answer. The classifier reads the sent value.
  • Open decision: vision descriptions (vision_describe.rs builds raw JSON with purpose and maxTokens) have no measured answer need to subtract. They need their own measured description length, or an explicit no-think request.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE #5645's top commit 54e2f13 (Cormac), on #5644 acec797. It isn't a merge approval yet: it's a draft, and see the condition below.

Verified:

  • The suite passes: cargo test --locked -p continuum-cognition --features metal --lib at 54e2f13 on enrico (2026-10-31): 956 pass, Cargo.lock unchanged.
  • One rate, one time term: TurnKind::time_term replaces output_allowance's inline derivation. view.rs and request.rs:336 both read decode_knee::rate_for(binding.requested_model()).tps, so the claim's ceiling and the reported term can't disagree.
  • The upward test matches the design: tested is nonzero only with both a bound and a measured rate, and it's min(at_least + answer, time_term). With no rate, it's the landed need. The act floor stays at the answer channel, so priority growth still runs above it, as in my An act's reply floor is what it needs to land: her measured thinking plus her answer #5642 review.

Condition for merging the pair: the 3/4 reasoning split must go in the same pair. With it still in place, Benchy's 832 grant gives a reasoning budget of 3/4 × 832 = 624. That's below his 700 bound, so every think hits the budget again (ThinkBudgetHit), and the upward test buys answer room he can't reach. Your message names deleting the split and ACT_REASONING_BUDGET; I'll verify that commit when it's pushed.

@joelteply

Copy link
Copy Markdown
Contributor Author

Cleanup before the reasoning-budget field (Cormac's plan (a), divided rather than serialized).

Adding TextGenerationRequest.reasoning_budget touches 25 files' struct literals (branch fable/reasoning-budget-field). The touched-file rule then requires these 23 sites clean (ratchet scan at origin/canary, 2026-10-31). Each owner lands their own PR; the field PR rebases last onto clean files; then #5644 + #5645 + the field merge together.

Cormac (working_set writes, cognition and academy head cuts)

  • continuum-cognition/src/cognition/working_set.rs:632, :789: fs::write of emission.json and demand.json (class handle or ORM; Codex's call)
  • continuum-cognition/src/cognition/should_respond.rs:266 .take(10); :448 .chars().take(100)
  • continuum-cognition/src/cognition/llm_deliberation_faculty/verdict/contribute.rs:745 .chars().take(200)
  • continuum-academy/src/cognition/dream_consolidation/distiller.rs:84 ContextBudget::from_window; :424 .min(120)

Codex (generate concurrency, engine fixture)

  • continuum-cognition/src/cognition/generate_response.rs:88 DEFAULT_GENERATE_MAX_CONCURRENCY = 4; :91 DEFAULT_GENERATE_MAX_COST_UNITS = 4
  • continuum-engine/src/ai/heuristic_adapter.rs:75 ECHO_CHARS = 200; :270 .take(4) (digest hex)

Fable (the rest of the reply path)

  • continuum-cognition/src/cognition/check_redundancy.rs:62 REDUNDANCY_CONVERSATION_WINDOW = 10; :356 MAX = 200
  • continuum-cognition/src/cognition/shared_analysis/mod.rs:54 CACHE_MAX_ENTRIES = 200
  • continuum-core/src/modules/agent.rs:303 [..8] (an id: shown_form); :457 .chars().take(500)
  • continuum-genome/src/genome/teach.rs:27 DEFAULT_MAX_FIX_ITERS = 4
  • continuum-mind/src/persona/rag_inspect.rs:62 CONTENT_PREVIEW_CHARS = 200; :73 DEFAULT_INSPECT_WINDOW = 32_768; :358, :371, :516, :529 head cuts. CLAUDE.md names rag_inspect as the bypass being removed, so deletion may beat cleaning; checking its callers first.

joelteply added a commit that referenced this pull request Oct 31, 2026
…ts in should_respond or contribute, no window-fraction default in the distiller (card 6bea9a9d) (#5648)

From the site list on #5645 (the field touches these files, and a touched file leaves with
no self-sized site):
- should_respond.rs: the gating prompt takes the history its caller's RAG context already
  sized (no second `.take(10)`), and a parsed reason is its whole line (no `.take(100)`).
- contribute.rs: a cut thought's fault text is its codec Output level (head and tail),
  else whole, never its first 200 chars.
- distiller.rs: SemanticDistiller::new takes the observation budget. Production always
  injected it (passes.rs), so default_max_observation_chars (a ContextBudget window
  fraction for an unwired build) and with_observation_budget's 2,000-char floor are
  deleted; observations_block already keeps one engram whole. The raw-verdict probe logs
  the whole line instead of a byte slice that panicked on a multi-byte char.

Receipts (enrico, 2026-10-31): continuum-academy --lib 192 pass, continuum-cognition
--lib 953 pass; ratchets exit 0 against origin/canary (touched-file gates clean, nothing
rose). 25 insertions, 49 deletions.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
joelteply added a commit that referenced this pull request Oct 31, 2026
…ect's window served not assumed, content whole (before the reasoning-budget field) (#5649)

* Reply-path cleanup before the reasoning-budget field: the dead cloud redundancy check deleted, rag_inspect's window served not assumed and its content whole, agent ids by the shared renderer

My share of the site list on #5645 (the files the reasoning-budget field touches must be clean):
- check_redundancy (cognition module + command + its two TypeScript types, 851 lines) deleted: not
  wired into the live loop and routed to a cloud model (groq); nothing calls it (self_repeat.rs
  records it as unwired). REDUNDANCY_CONVERSATION_WINDOW and its MAX go with it.
- rag_inspect: DEFAULT_INSPECT_WINDOW (32,768) and defaults_for deleted; persona/rag-inspect uses the
  window served now, or the caller's `context_window`, and refuses when neither exists.
  CONTENT_PREVIEW_CHARS deleted: the inspected item carries its content whole (`content_preview` ->
  `content`, wire and TypeScript); the logs report sizes, not a cut of the text; peer ids render
  through airc's shown_form.
- agent.rs: the handle's `[..8]` slice becomes shown_form; a recorded thought is kept whole.

Left for the resource authority (they need a grant, not a different constant): shared_analysis
CACHE_MAX_ENTRIES, genome teach DEFAULT_MAX_FIX_ITERS.

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

* Finish the check_redundancy deletion (continuum-mind's re-export, the dead slot-class arm, the docs that cited it); peer_id_prefix -> peer_id_shown; serving_guard's probe logs the degraded reason whole (its [..200] byte slice could panic on a multi-byte char) (Cormac on #5649)

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

* persona_rag_inspect tests name their window (nothing is served in a test, and the command no longer assumes one); a test pins the refusal when nothing is served and none is named

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

* protocol/typescript: RagInspectParams.ts regenerated doc (the drift CI's detector printed)

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]>
joelteply added a commit that referenced this pull request Oct 31, 2026
…orts the bound they set; working_set persists through the personas disk class (card b726a311)

Benchy on the M5 (2026-10-31): his reasoning need read 520 while every think past ~600 was cut,
and a cut was not recorded at all, so the need could never grow.

- CutMidThought and ThinkBudgetHit turns go into their own ring (cut_samples, cut_at_turn,
  cut_count), stamped with their turn; the landed rings never take them, so the landed need never
  moves on a cut (the contraction and the 8k -> 184k compounding on EmissionStop stay closed).
- OutputNeed::reasoning_at_least: the product-limit (Kaplan-Meier) p90 over landed turns and the
  cuts of her last 16 turns, reported only where it is higher than the landed need; with no cuts it
  is the landed p90 exactly; an old cut ages out. Exact integer ratios.
- The estimate reports raw p90s: MIN_NEED_TURNS and the 5/4 headroom are deleted (Fable agreed);
  the reply claim's priority growth is the headroom. need_of answers from the first landed turn.
  This lowers today's grants until the reply side (#5645) grows them: the two merge as a pair.
- The estimator moves to working_set/need.rs.
- Persistence goes through ClassWriter::of("personas").owned_by(persona) (#5651): staged, synced,
  placed; read back through the class; rehydrate_all lists owners(). personas_root, demand_path
  and emission_path are deleted. A registry given a class (with_store) uses it; otherwise the class
  resolves at each use, and before boot a write is a loud refusal, never a guessed path.

Tests: a_cut_think_raises_the_lower_bound_and_never_the_landed_need,
a_mind_that_fills_every_grant_stops_at_the_time_term,
the_product_limit_p90_is_the_landed_p90_without_cuts_and_only_rises_with_them; the restart test
uses its own class root. Mutations: not recording cuts fails 3, removing aging fails 1.
continuum-cognition --lib 931 pass; ratchets exit 0 against #5651.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Oct 31, 2026
…orts the bound they set; working_set persists through the personas disk class (card b726a311)

Benchy on the M5 (2026-10-31): his reasoning need read 520 while every think past ~600 was cut,
and a cut was not recorded at all, so the need could never grow.

- CutMidThought and ThinkBudgetHit turns go into their own ring (cut_samples, cut_at_turn,
  cut_count), stamped with their turn; the landed rings never take them, so the landed need never
  moves on a cut (the contraction and the 8k -> 184k compounding on EmissionStop stay closed).
- OutputNeed::reasoning_at_least: the product-limit (Kaplan-Meier) p90 over landed turns and the
  cuts of her last 16 turns, reported only where it is higher than the landed need; with no cuts it
  is the landed p90 exactly; an old cut ages out. Exact integer ratios.
- The estimate reports raw p90s: MIN_NEED_TURNS and the 5/4 headroom are deleted (Fable agreed);
  the reply claim's priority growth is the headroom. need_of answers from the first landed turn.
  This lowers today's grants until the reply side (#5645) grows them: the two merge as a pair.
- The estimator moves to working_set/need.rs.
- Persistence goes through ClassWriter::of("personas").owned_by(persona) (#5651): staged, synced,
  placed; read back through the class; rehydrate_all lists owners(). personas_root, demand_path
  and emission_path are deleted. A registry given a class (with_store) uses it; otherwise the class
  resolves at each use, and before boot a write is a loud refusal, never a guessed path.

Tests: a_cut_think_raises_the_lower_bound_and_never_the_landed_need,
a_mind_that_fills_every_grant_stops_at_the_time_term,
the_product_limit_p90_is_the_landed_p90_without_cuts_and_only_rises_with_them; the restart test
uses its own class root. Mutations: not recording cuts fails 3, removing aging fails 1.
continuum-cognition --lib 931 pass; ratchets exit 0 against #5651.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Oct 31, 2026
…orts the bound they set; working_set persists through the personas disk class (card b726a311)

Benchy on the M5 (2026-10-31): his reasoning need read 520 while every think past ~600 was cut,
and a cut was not recorded at all, so the need could never grow.

- CutMidThought and ThinkBudgetHit turns go into their own ring (cut_samples, cut_at_turn,
  cut_count), stamped with their turn; the landed rings never take them, so the landed need never
  moves on a cut (the contraction and the 8k -> 184k compounding on EmissionStop stay closed).
- OutputNeed::reasoning_at_least: the product-limit (Kaplan-Meier) p90 over landed turns and the
  cuts of her last 16 turns, reported only where it is higher than the landed need; with no cuts it
  is the landed p90 exactly; an old cut ages out. Exact integer ratios.
- The estimate reports raw p90s: MIN_NEED_TURNS and the 5/4 headroom are deleted (Fable agreed);
  the reply claim's priority growth is the headroom. need_of answers from the first landed turn.
  This lowers today's grants until the reply side (#5645) grows them: the two merge as a pair.
- The estimator moves to working_set/need.rs.
- Persistence goes through ClassWriter::of("personas").owned_by(persona) (#5651): staged, synced,
  placed; read back through the class; rehydrate_all lists owners(). personas_root, demand_path
  and emission_path are deleted. A registry given a class (with_store) uses it; otherwise the class
  resolves at each use, and before boot a write is a loud refusal, never a guessed path.

Tests: a_cut_think_raises_the_lower_bound_and_never_the_landed_need,
a_mind_that_fills_every_grant_stops_at_the_time_term,
the_product_limit_p90_is_the_landed_p90_without_cuts_and_only_rises_with_them; the restart test
uses its own class root. Mutations: not recording cuts fails 3, removing aging fails 1.
continuum-cognition --lib 931 pass; ratchets exit 0 against #5651.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Oct 31, 2026
…orts the bound they set; working_set persists through the personas disk class (card b726a311)

Benchy on the M5 (2026-10-31): his reasoning need read 520 while every think past ~600 was cut,
and a cut was not recorded at all, so the need could never grow.

- CutMidThought and ThinkBudgetHit turns go into their own ring (cut_samples, cut_at_turn,
  cut_count), stamped with their turn; the landed rings never take them, so the landed need never
  moves on a cut (the contraction and the 8k -> 184k compounding on EmissionStop stay closed).
- OutputNeed::reasoning_at_least: the product-limit (Kaplan-Meier) p90 over landed turns and the
  cuts of her last 16 turns, reported only where it is higher than the landed need; with no cuts it
  is the landed p90 exactly; an old cut ages out. Exact integer ratios.
- The estimate reports raw p90s: MIN_NEED_TURNS and the 5/4 headroom are deleted (Fable agreed);
  the reply claim's priority growth is the headroom. need_of answers from the first landed turn.
  This lowers today's grants until the reply side (#5645) grows them: the two merge as a pair.
- The estimator moves to working_set/need.rs.
- Persistence goes through ClassWriter::of("personas").owned_by(persona) (#5651): staged, synced,
  placed; read back through the class; rehydrate_all lists owners(). personas_root, demand_path
  and emission_path are deleted. A registry given a class (with_store) uses it; otherwise the class
  resolves at each use, and before boot a write is a loud refusal, never a guessed path.

Tests: a_cut_think_raises_the_lower_bound_and_never_the_landed_need,
a_mind_that_fills_every_grant_stops_at_the_time_term,
the_product_limit_p90_is_the_landed_p90_without_cuts_and_only_rises_with_them; the restart test
uses its own class root. Mutations: not recording cuts fails 3, removing aging fails 1.
continuum-cognition --lib 931 pass; ratchets exit 0 against #5651.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply force-pushed the fable/reply-claim-grows-with-cuts branch from 54e2f13 to 531edda Compare October 31, 2026 15:04
@github-actions github-actions Bot added size: XL and removed size: L labels Oct 31, 2026
joelteply added a commit that referenced this pull request Oct 31, 2026
…st.reasoning_budget), set from OutputNeed::reasoning_within; ACT_REASONING_BUDGET and the 3/4 split deleted; vision asks for none

Blocked by the touched-file cascade: 21 self_sized sites + working_set.rs's two fs::write across
the 25 files whose struct literals gain the field. Not a PR yet (WIP limit); referenced from #5645.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Oct 31, 2026
…: a typed grader outcome, failure identity, no 180-char error cut (DEFAULT_MAX_FIX_ITERS deleted; card a4bbae0a) (#5662)

* The teacher's fix loop stops on observed grader progress, not a count: a typed grader outcome, failure identity, no 180-char error cut (DEFAULT_MAX_FIX_ITERS deleted; card a4bbae0a)

genome/teach.rs DEFAULT_MAX_FIX_ITERS = 4 was the last unfixed touched-file blocker on the
reasoning-budget field (the cut-think chain: #5644 <- #5645 <- the field). Design agreed with Fable
and Codex 2026-10-31.

- gym_grader: `grade` / `grade_file` return a typed `Grade` (stage Refused|Compile|Run|Pass, the
  failure set by identity, the failing test line, the whole text). Compile failures come from
  rustc --error-format=json (identity = code + message); a run failure is located against the
  generated main (identity = the test line, so a later failing assertion is progress whatever the
  candidate's length). trunc_stderr's 180-char head cut is deleted: the teacher reads the whole
  error. `test_grade` / `test_grade_file` stay (bool, String) projections for callers that measure
  nothing, so they are untouched.
- teach: AttemptProgress continues a task only while its failure set is new AND it improves the best
  (stage, phase, measure): a run beats a compile; within a compile, getting past the parser (all
  errors coded) beats fewer errors, so a syntax fix that exposes three type errors is progress
  (Codex); then fewer errors; then a later failing test line. ONE sideways step per best level. A
  repeat, a regression, a second sideways step or a refusal ends the task, with the reason in its
  outcome. Terminates: the level rises finitely, one sideways step per level. max_fix_iters is an
  optional caller cap (Option<u32> through dreaming, academy and serving); no default.
- Disk classes (touched files leave clean): the grader's scratch goes through the eval-roots class
  (ClassWriter::of, one owner directory per grade); teach run ledgers through a new `progress` class
  (kept, with an eviction decision) and ONE writer, genome::teach::progress::write_teach_ledger, used
  by the live rows and dreaming's terminal row; academy's eval-run marker through eval-roots.
- Kernel (Fable's design): prepare_writer_fixture's test registry holds the real standard classes
  under its temporary home, and tracked_dir / ClassWriter::of resolve through writer_registry(), so a
  test in any crate gets the real class layout by calling the one existing fixture; boot's set-once
  TRACKED_DIRS and production are untouched (an unregistered class is still refused).

Tests: progress (converging, a repeat whatever its text, one sideways step then end, oscillation,
past-the-parser with more errors, refusal and regression end) and a real-rustc typed grade (E0308
compile identity with the whole text; a failing second assertion is test line 2 after 30 lines of
padding). Mutations: dropping the repeat check fails 1, an absolute panic line fails 1.

Receipts (enrico, 2026-10-31): continuum-genome --lib 345 + gym_grader 13, continuum-kernel --lib
1,336 (Metal skipped: wedged driver), serving teacher test passes, cargo check of academy, dreaming,
genome, kernel, serving with tests clean, ratchets exit 0. Two serving budget tests fail on IntelMac
with or without this change (host-dependent, card c4d84be3's class; CI's Linux serving job passes).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

* The teacher bridge's replay test grades through the test registry: the grader's scratch is the eval-roots class (CI on #5662: 'disk class eval-roots is not registered')

Receipt (enrico, 2026-10-31T17:34Z): continuum-dreaming --features metal --lib genome::teach 10 passed, including candidate_replay_preserves_acceptance_without_teacher_regeneration (failed on CI without the call); ratchets exit 0.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
joelteply added a commit that referenced this pull request Oct 31, 2026
…orts the bound they set; working_set persists through the personas disk class (card b726a311)

Benchy on the M5 (2026-10-31): his reasoning need read 520 while every think past ~600 was cut,
and a cut was not recorded at all, so the need could never grow.

- CutMidThought and ThinkBudgetHit turns go into their own ring (cut_samples, cut_at_turn,
  cut_count), stamped with their turn; the landed rings never take them, so the landed need never
  moves on a cut (the contraction and the 8k -> 184k compounding on EmissionStop stay closed).
- OutputNeed::reasoning_at_least: the product-limit (Kaplan-Meier) p90 over landed turns and the
  cuts of her last 16 turns, reported only where it is higher than the landed need; with no cuts it
  is the landed p90 exactly; an old cut ages out. Exact integer ratios.
- The estimate reports raw p90s: MIN_NEED_TURNS and the 5/4 headroom are deleted (Fable agreed);
  the reply claim's priority growth is the headroom. need_of answers from the first landed turn.
  This lowers today's grants until the reply side (#5645) grows them: the two merge as a pair.
- The estimator moves to working_set/need.rs.
- Persistence goes through ClassWriter::of("personas").owned_by(persona) (#5651): staged, synced,
  placed; read back through the class; rehydrate_all lists owners(). personas_root, demand_path
  and emission_path are deleted. A registry given a class (with_store) uses it; otherwise the class
  resolves at each use, and before boot a write is a loud refusal, never a guessed path.

Tests: a_cut_think_raises_the_lower_bound_and_never_the_landed_need,
a_mind_that_fills_every_grant_stops_at_the_time_term,
the_product_limit_p90_is_the_landed_p90_without_cuts_and_only_rises_with_them; the restart test
uses its own class root. Mutations: not recording cuts fails 3, removing aging fails 1.
continuum-cognition --lib 931 pass; ratchets exit 0 against #5651.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply force-pushed the fable/reply-claim-grows-with-cuts branch from 531edda to 804b00d Compare October 31, 2026 22:44
@joelteply

Copy link
Copy Markdown
Contributor Author

PASS at exact head 804b00d (Cormac; stacked on #5644 at de98015). Ran on enrico 2026-10-31T22:46Z: cargo test -p continuum-cognition --features metal --lib -- working_set reply_reserve turn_window reply_claim 47/0; ratchets 0. Read: want = max(need.total, pending_peak, floor, min(reasoning_at_least + answer, time_term)). It tests upward only under a measured rate and never past the time term, and time_term now has one owner (TurnKind::time_term, used by both the allowance and the claim). This is the bounded growth #5644's doc requires. Not blocking, mine to fix (card 01566069): when cuts hold the top tenth, #5644's estimate is just the largest cut, so each cut grows the want by about one answer (your test: 917 under a 2,000 term). A think that needs 2-3k loses several turns. I'll measure the options on replay of today's 62 cut acts.

joelteply added a commit that referenced this pull request Oct 31, 2026
…orts the bound they set; working_set persists through the personas disk class (card b726a311) (#5644)

Benchy on the M5 (2026-10-31): his reasoning need read 520 while every think past ~600 was cut,
and a cut was not recorded at all, so the need could never grow.

- CutMidThought and ThinkBudgetHit turns go into their own ring (cut_samples, cut_at_turn,
  cut_count), stamped with their turn; the landed rings never take them, so the landed need never
  moves on a cut (the contraction and the 8k -> 184k compounding on EmissionStop stay closed).
- OutputNeed::reasoning_at_least: the product-limit (Kaplan-Meier) p90 over landed turns and the
  cuts of her last 16 turns, reported only where it is higher than the landed need; with no cuts it
  is the landed p90 exactly; an old cut ages out. Exact integer ratios.
- The estimate reports raw p90s: MIN_NEED_TURNS and the 5/4 headroom are deleted (Fable agreed);
  the reply claim's priority growth is the headroom. need_of answers from the first landed turn.
  This lowers today's grants until the reply side (#5645) grows them: the two merge as a pair.
- The estimator moves to working_set/need.rs.
- Persistence goes through ClassWriter::of("personas").owned_by(persona) (#5651): staged, synced,
  placed; read back through the class; rehydrate_all lists owners(). personas_root, demand_path
  and emission_path are deleted. A registry given a class (with_store) uses it; otherwise the class
  resolves at each use, and before boot a write is a loud refusal, never a guessed path.

Tests: a_cut_think_raises_the_lower_bound_and_never_the_landed_need,
a_mind_that_fills_every_grant_stops_at_the_time_term,
the_product_limit_p90_is_the_landed_p90_without_cuts_and_only_rises_with_them; the restart test
uses its own class root. Mutations: not recording cuts fails 3, removing aging fails 1.
continuum-cognition --lib 931 pass; ratchets exit 0 against #5651.


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
joelteply and others added 2 commits October 31, 2026 18:20
…bounded by the measured time term (pairs with #5644)

The M5 on 95dbb3b: Benchy's passes were granted their whole want (737 = need 520 + 217) and cut
thinking at 597+ tokens, again and again: a cut think is censored, so the want never grew.
#5644 (Cormac) reports `reasoning_at_least` from the censored samples and drops the 5/4 headroom
and MIN_NEED_TURNS; this half consumes it:

- want = max(need, min(reasoning_at_least + answer, time term)) when a decode rate is measured;
  with no rate (after a restart) there is no upward test; an uncut need is unchanged.
- `TurnKind::time_term(rate)` is the one owner of the time term (the allowance's reported term and
  the claim's ceiling).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…laim argument (None: min_tokens is the floor and does not read the time term)

CI: E0061 at test_env/mind_integration/registry/deliberation/verdicts.rs:389. Measured on the M5:
continuum-core deliberation 18/0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the fable/reply-claim-grows-with-cuts branch from a1f1f2c to 01cf6b2 Compare October 31, 2026 23:21
@github-actions github-actions Bot added size: M and removed size: XL labels Oct 31, 2026
@joelteply

Copy link
Copy Markdown
Contributor Author

Merging at 01cf6b2: Cormac's PASS was at 804b00d; since then only (1) a clean rebase onto the squash-merged #5644 (fba9237) and (2) the test_env caller fix CI required (verdicts.rs:389 passes the sixth reply_claim argument, None: min_tokens is the floor and does not read the time term). CI fully green at this head, including lib tests continuum-core.

@joelteply
joelteply marked this pull request as ready for review October 31, 2026 23:42
@joelteply
joelteply merged commit e503013 into canary Oct 31, 2026
16 of 17 checks passed
@joelteply
joelteply deleted the fable/reply-claim-grows-with-cuts branch October 31, 2026 23:42
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