Repository navigation
A cut think is evidence: the need ring keeps censored samples and reports the bound they set (card b726a311) [WIP: writes gate; pairs with Fable's reply side] - #5644
Merged
Conversation
joelteply
force-pushed
the
cormac/censored-need
branch
2 times, most recently
from
October 31, 2026 12:56
7971e95 to
d5d7d67
Compare
joelteply
force-pushed
the
cormac/censored-need
branch
2 times, most recently
from
October 31, 2026 13:53
38957a5 to
37f2e17
Compare
joelteply
added a commit
that referenced
this pull request
Oct 31, 2026
#5651) * ClassWriter: the one writer of a disk class's files (ONE-BUDGET row 5, class handles) A writer names its class (TrackedDir::writer) and a path relative to it; the class owns the measured root and its eviction decision. replace / publish_new stage, sync and place through continuum_host::durable (no hand-rolled rename or directory sync); append opens a log; lock takes an exclusive lock file. A path outside the class (absolute, '..', '.', empty) is refused. This is the API writes_outside_a_class points writers at; it had no implementation, which is what blocked #5585 and #5644. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * ClassWriter::of(class): the one lookup (boot registry, resolved at use, NotFound before boot or for an unregistered class; tests inject TrackedDir::new(..).writer()); standard_tracked_dirs moves to disk_reporters/standard.rs (pure move, re-exported) so a caller's class row never edits a 1,000-line file Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Defaults derived, deltas spelled: a class's root comes from its name (kept: <home>/<name>, cached: <home>/cache/<name>; 17 rows), only real exceptions name a path; ClassWriter::owned_by(uuid) forms an owner's directory once, so a caller names only its file Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * ClassWriter::owners(): the mirror of owned_by, for a reader that rehydrates every owner at boot (uuid-named directories only; an unwritten class has none) (Cormac on #5651) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * durable owns staging, placement and locks once (Staging, fence_existing, lock); ClassWriter consumes them (its own staging and fs2 lock deleted); the write ratchet names the primitive as an owner, so a store under continuum-pack uses it instead of being exempted Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * durable::Staging skips a name a crashed writer left (retry on AlreadyExists with the next sequence), so a container's PID-1 core never fails its first write after a crash (Cormac on #5651) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Confinement is what the filesystem does, not a lexical check: continuum_host::confine walks every component below a root as a real directory (re-checked after create) and opens the final name without following it (O_NOFOLLOW / FILE_FLAG_OPEN_REPARSE_POINT); ClassWriter creates and appends through it and durable::lock opens without following (Codex on #5651) Tests: a linked directory and a linked final file inside the root are refused for replace, append and lock, and nothing lands outside (host test runs on Windows with a junction, no privilege). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * confine::dirs_within creates the root itself (a fresh install's class root does not exist yet); the host test starts from a missing root (Cormac on #5651: 4 of 6 class_writer tests NotFound) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Confinement holds a directory handle (cap_std::fs::Dir): ClassWriter opens its class root once per operation and stages, places, appends, locks and lists through it, so a parent swapped for a link mid-operation cannot send a write outside (Codex and Cormac on #5651) continuum_host::confine: open_root (the root may itself be a redirect, resolved once), subdir (created, held), plain (names only); re-exports Dir and OpenOptions so callers take no cap-std dependency of their own. durable::Staging is created in and placed within one held Dir (rename / hard_link relative to it, then os::sync_placed: POSIX syncs the directory, Windows flushes the placed file, which forces the NTFS log holding the rename); the path API (Staging::new_in, lock_path) opens the directory and delegates. The hand walk with metadata re-checks and the O_NOFOLLOW adapters are deleted. Tests: host nothing_below_a_held_root_reaches_outside_it (a linked dir, a linked file, and the swap: hold a/b, move it away, put a link to outside at its name, write through the handle: the bytes land in the moved real dir, nothing outside); staging skips 64 planted leftover names; the lock's free-again step waits (a child another test spawns shares the description until exec). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Windows CI runs continuum-host's fixtures (its durable/confine/file_identity/local_stream adapters never ran on Windows); sync_placed documents its Windows contract without claiming power-loss parity; the swap test asserts the guarantee on both (POSIX: the write follows the held dir; Windows: cap-std refuses moving a held dir, held without FILE_SHARE_DELETE) (Codex on #5651) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * durable sync_placed on unix opens the held directory for reading and syncs that: cap-std holds directories O_PATH on Linux, which fsync refuses with EBADF (every replace/publish failed on Linux CI; macOS has no O_PATH) 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
force-pushed
the
cormac/censored-need
branch
from
October 31, 2026 15:03
37f2e17 to
45d3f9a
Compare
Contributor
Author
|
APPROVE #5644 at exact head 45d3f9a (Fable). Verified (read):
Non-blocking, carried by my PersonaStore slice (next): |
joelteply
added a commit
that referenced
this pull request
Oct 31, 2026
…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
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]>
…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
force-pushed
the
cormac/censored-need
branch
from
October 31, 2026 22:42
45d3f9a to
de98015
Compare
joelteply
added a commit
that referenced
this pull request
Oct 31, 2026
…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
Contributor
Author
joelteply
added a commit
that referenced
this pull request
Oct 31, 2026
…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
joelteply
added a commit
that referenced
this pull request
Oct 31, 2026
…bounded by the measured time term (pairs with #5644) (#5645) * A reply's want tests upward toward her cut-corrected reasoning need, 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 * continuum-core's test_env reply-floor caller passes the sixth reply_claim 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 --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
How it serves the minds: a thinking mind whose thinks grew past her grant kept a need read only from the short turns that landed, so the grant never grew and she was cut again. Benchy on the M5 (2026-10-31): reasoning need 520 while his thinks ran 597+, cut each time. Path step 1 (fast) and 2 (useful); ONE-BUDGET's reply claim. Card b726a311.
Not mergeable alone: it pairs with Fable's reply side (#5645). #5651 (ClassWriter) has merged, and this is rebased onto canary.
Change
CutMidThoughtandThinkBudgetHitturns go into their own ring (cut_samples,cut_at_turn,cut_countonPersonaEmission), stamped with the turn they happened at. They never enter the landed rings, so the landed need does not move on a cut (the contraction and the 8k → 184k compounding recorded onEmissionStopboth stay closed).OutputNeed::reasoning_at_least: the product-limit (Kaplan–Meier) p90 over landed turns and her cuts from the last 16 turns, reported only where it's higher than the landed need. A cut's mass moves to longer turns, never shorter, so with no cuts it's the landed p90 exactly. When cuts hold her top tenth, it's the largest cut. An old cut ages out, so the bound falls again. Exact integer ratios, so nodes agree.MIN_NEED_TURNSand the 5/4 headroom are deleted (Fable agreed, 2026-10-31). The reply claim's priority growth above its floor is the headroom, derived.need_ofreturns a need from the first landed turn, andturnssays how far to trust it. This lowers today's grants until Fable's half grows them, which is why the two merge as a pair.working_set.rsintoworking_set/need.rs(969 lines left in working_set.rs).Fable's half (on top): reply floor =
need.total(); max =max(need.total(), min(reasoning_at_least + answer, time_term)), only when a decode rate is measured. Deleting the 3/4 reasoning split andACT_REASONING_BUDGET.Persistence through the disk class (#5651, merged)
budget_discipline's touched-file rule refused
working_set.rs's twofs::writes (emission.json, working-set.json). They now go throughClassWriter::of("personas").owned_by(persona).replace(..); reads use the class's path, andrehydrate_alllistsowners()(added to #5651 for this).personas_root,demand_pathandemission_pathare deleted. A registry given a class (with_store, the restart test's own root) uses it; production resolves at each use, and a write before boot is a loud refusal that keeps the measurement in memory, never a guessed path.Tests (enrico, 2026-10-31)
a_cut_think_raises_the_lower_bound_and_never_the_landed_need(Benchy's numbers: one cut in eleven doesn't raise it; two do, to 610; the landed need is unchanged; old cuts age out; a file without the cut ring loads with none),a_mind_that_fills_every_grant_stops_at_the_time_term(the composition with Fable's rule converges to the time term, never past it),the_product_limit_p90_is_the_landed_p90_without_cuts_and_only_rises_with_them.reply_reserveexpectations without headroom (3,125 → 2,500, 40,960 → 32,768, 12,500 → 10,000);a_think_only_cut_moves_nothing...compares the landed fields and requires the bound.Validator not yet run on live captures: Benchy's M5 captures stay on the M5; the replay there is Fable's to run once both halves are built.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE