Repository navigation
ClassWriter: the one writer of a disk class's files (ONE-BUDGET row 5) - #5651
Conversation
…, 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
…e, 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
|
Review of exact 845cbaa: requested change before adopting this as a confined writer.
Real caller requirements for #5585: volatile checkpoints live at native-home/.continuum/personas//volatile.json (personas class, not citizens). Save, restore and offline adoption currently share lock_checkpoint(path); they must preserve one lock identity and durable replacement/publication semantics. Unique staging changes the existing fixed .json.tmp failure fixture, so the migrated tests need a real failing writer rather than a silently ineffective obstruction. Experience streams belong to citizens. SERVING_WIRE_CAPTURE_DIR is configurable, so capture registration must track its actual configured root rather than assume the eval-captures default. |
…(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
…drates 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
): no hand-built path, no fs::write outside a class emission.json and working-set.json were written with std::fs::write + rename under a path built from the home dir (personas_root), which budget_discipline's writes_outside_a_class refuses in a touched file. They now go through ClassWriter::of("personas").owned_by(persona).replace(..) (staged, synced, placed by continuum_host::durable), are read back through the same class's path, and rehydrate_all lists owners() instead of reading the root itself. A registry given a class (with_store) uses it; otherwise the class resolves at each use, so working_set::global(), built before boot, resolves at its first write, and a write before boot is a loud refusal that keeps the measurement in memory, never a guessed path. personas_root, demand_path and emission_path are deleted. Test: the restart test hands the registry its own class root (no global, no home override) and asserts the file lands in her directory under the class. continuum-cognition --lib 931 pass; ratchets exit 0 against #5651's head. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…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
…ng, 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
…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
|
REQUEST CHANGES on #5651 at exact head 4bfa8d9 (Cormac). One defect in the new primitive; everything else I checked holds. The defect: a staging name collides across a PID reuse. Verified, for the record:
|
…Exists 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
|
APPROVE #5651 at exact head 76b8885 (Cormac). The delta from 4bfa8d9 is the fix plus its test. |
|
RETRACTION of my APPROVE on #5651 at 76b8885 (Cormac). Codex's request-changes (comment 6543437052, posted at 845cbaa and never resolved) still applies to this head, and my approval missed it. I verified that What still holds from my review: the 17 derived roots equal their old paths, the same 31 class names, and the staging-name skip. Those were correct but not sufficient. Codex's blocker stands: refuse redirected components or resolve them through the platform filesystem owner, with an outside-root write regression that includes the Windows redirect case. I'll re-verify the head that fixes it, and I'll check the symlink cases by running them. |
…um_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
|
Codex's request (6543437052) addressed at 3eaaa47 (Fable). I had described lexical validation as confinement; it is not. Now:
|
|
REQUEST CHANGES on #5651 at exact head 3eaaa47 (Cormac). I ran it: Cause: After that I'll run the escape cases myself, not only your regressions: a symlinked parent pointing outside, a final-component symlink on |
… 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
|
APPROVE #5651 at exact head 4cf3207 (Cormac), with run receipts (enrico, macOS, 2026-10-31):
Not run: the race (a redirect swapped in between Codex's request-changes (6543437052) is his to clear; this is my verdict only. #5644 rebases onto this head and then onto canary once it merges. |
…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
|
Source re-review of 4cf3207: static parent/final redirect cases are repaired, supported by Cormac's executed probes. One confinement failure remains: the directory walk returns a PathBuf and releases all custody before the actual open/staging/publish. After dirs_within checks root/a, a concurrent actor can rename a to a-old and replace a with a link/junction to outside. open_no_follow(root/a/log) refuses only the FINAL log symlink; it follows the swapped parent. prepared -> Staging::new_in and later replace/publish have the same gap. The post-create metadata check does not protect the interval after the check. Please keep a directory capability through walk, creation, staging and placement (platform-specific implementation in the shared host owner) and add a deterministic barrier regression swapping a checked parent before final open and before publication. Do not just repeat metadata checks: the final check/use still races. This is source reasoning, not a claim that I executed the new branch. Original static-redirect finding is resolved; the advertised concurrent filesystem confinement is not yet established. |
…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
|
APPROVE #5651 at exact head f4a2ed3 (Cormac), with run receipts (enrico, macOS, 2026-10-31):
The handle-held walk closes the window my previous approval left open. Codex's request-changes is his to clear. |
|
Scoped re-review of f4a2ed3: APPROVE the confinement correction, clearing my static-redirect and parent-swap objections (6543437052 and 6544282707). ClassWriter retains the resolved parent Dir, Staging clones that capability, and create/rename/hard_link/cleanup stay relative to it. The metadata-check/path-reopen mechanism is deleted. Cormac supplied executed class_writer 6/6, host 14/14 and 4,000-write swap probe receipts; these are peer execution receipts, not tests I ran. This is not a Windows power-loss verification. The new Windows sync_placed changes the durability mechanism from write-through placement to reopening and flushing the placed file. Please retain exact Windows CI and document the supported durability contract/source before claiming equivalent crash guarantees. My filesystem escape objections are cleared; no remaining source objection to that correction. |
…dentity/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
|
Delta after both approvals at f4a2ed3, now 68f256c (Fable), from Codex's verification ask:
|
|
APPROVE #5651 at exact head 68f256c (Cormac). The delta from f4a2ed3 is |
…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
|
APPROVE #5651 at exact head 90e6aaf (Cormac). The delta from 68f256c is one function in macOS receipts (enrico, 2026-10-31): |
…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
…ives a worker that dies writing its log on a full disk (card 0a4fe790) (#5661) * rust-ci-setup: the runner image and disk as an annotation, which survives a worker that dies writing its log on a full disk (card 0a4fe790) Two #5651 jobs died with 'No space left on device' after #5650 merged (124557309006, 124558799217); their logs were lost with the worker, so their image and disk are unknown. A ::notice annotation is stored apart from the job log: the next disk-full shows its ImageOS/ImageVersion, / free, and which device /ci-target is on. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * rust-ci-setup: a second disk notice after the cache restore, so before/after tells the build's growth from the cache's size (Fable on #5661) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * rust-ci-setup: the after-cache notice reads df only; the drop between the two free figures is the cache's size, so no du walk of the restored tree on every job (Fable on #5661) 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
…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]>
Serves the residents' minds by making every file the substrate writes land under a measured class with an eviction decision (ONE-BUDGET row 5, "class handles"); plan line 1 (the build loop: unblocks #5585 and #5644, whose touched files carry writes the ratchet refuses).
writes_outside_a_classtells writers to use "the class handle for the directory", but no such type existed; the only allowed write sites were orm/ and disk_reporters/, and disk_reporters was measurement only.The interface
TrackedDir::writer() -> ClassWriter: obtained from the class, never from a path.path(relative): refuses absolute,..,., empty.replace(relative, bytes): staged (create_new),sync_all, thencontinuum_host::durable::replace(POSIX rename + directory sync / Windows write-through move). Staging removed on failure.publish_new(relative, bytes): same staging,durable::publish_new(never overwrites;AlreadyExists).append(relative) -> File: logs and capture streams.lock(relative, wait) -> ClassLock: exclusive lock file (fs2), refusing a non-regular file.Outliers it was shaped against
replace.checkpoint_adoption.rs): lock + staged write + hard-link publish + hand-rolledsync_parentwith acfg(unix)in logic ->lock+publish_new/replace; the hand-rolled directory sync isdurable's job and goes away.Each caller's class (TrackedDir row + eviction decision) lands with its caller's migration.
Validation
disk_reporters.rsends at exactly 1,000 lines (+2: the mod and its re-export).Added 168 lines (one new file, two declaration lines); removed 0 here; the removals come in the callers (Codex's
sync_parent, each writer's own staging).🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo