Skip to content

Integration: the view stack, ratchets-vs-base, ~29.5k lines removed, unwraps 2353→2057, in one validated head - #5273

Merged
joelteply merged 134 commits into
canaryfrom
fable/integration
Oct 22, 2026
Merged

joelteply merged 134 commits into
canaryfrom
fable/integration

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

This replaces landing 13 PRs one at a time. Each merge was re-breaking the others on baseline lines, which was most of yesterday's merge work. This PR is canary plus all of them, with every conflict resolved once and the whole head validated together.

Included (each stays open until this merges, then closes as included)

Conflicts resolved

Fixed during integration

Measured (local, M5, head e27703e87)

ratchet canary head
unjustified_unwraps 2353 2057
lines_over 364 269
upward_imports 658 648
unjustified_serialization 247 236
underived_bounds 162 157
spawn_sites 131 127
hand_built_homes 92 87
head_cuts 185 183
excess_test_mods 13 12
unwired_machinery 54 52
modules_in_cycles 36 36
  • Size: 614 files changed, +6,254 / −35,787.

Live

This head is being built and deployed to the M5 as its running core. The residents' pace (seconds per act, cancels, writes) will be posted here against this morning's canary: 200–1,680 s per act, about a third cancelled at 600 s.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply and others added 30 commits October 18, 2026 13:54
…duction

The unwrap scanner split only on the outer #[cfg(test)], so files whose first
code line is #![cfg(test)] (orm/derive_test.rs, contracts/chain_tests.rs) were
counted as production unwraps. Match the inner attribute too.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
orm/: 71 unwrap/expect before, 0 after (28 production, 43 in derive_test.rs which
is #![cfg(test)] and now correctly excluded). contracts/: its 21 were all in
chain_tests.rs (#![cfg(test)]), cleared by the same scanner fix.
- 28 poisoned std lock unwrap/expect -> unwrap_or_else(PoisonError::into_inner)
  with same-line reason (entity registry, migration state, sqlite connections)
- 0 became ?/typed error, 0 let-else, 0 structural: lock poisoning here has a
  correct meaning (the data is the last state) and needs no new error path

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

The unwrap scanner split only on the outer #[cfg(test)], so files whose first
code line is #![cfg(test)] (orm/derive_test.rs, contracts/chain_tests.rs) were
counted as production unwraps. Match the inner attribute too.

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

The unwrap scanner split only on the outer #[cfg(test)], so files whose first
code line is #![cfg(test)] (orm/derive_test.rs, contracts/chain_tests.rs) were
counted as production unwraps. Match the inner attribute too.

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

The unwrap scanner split only on the outer #[cfg(test)], so files whose first
code line is #![cfg(test)] (orm/derive_test.rs, contracts/chain_tests.rs) were
counted as production unwraps. Match the inner attribute too.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
live/: 57 unwrap/expect before, 0 unjustified after (baseline 2257 -> 2076, includes the shared scanner fix commit for file-level #![cfg(test)]).
- 43 poisoned std Mutex/RwLock unwraps -> PoisonError::into_inner with same-line reason (bridge client, slot pool, avatar selection, bevy api, wgpu bridge)
- 14 structural / typed: STT/TTS/avatar registries now return the OnceCell value from init_registry (no get-after-init expect); Silero from_shape_fn (no shape error possible); avatar selection `if let Some(picked) = min_by_key` (no is_empty+unwrap); render-loop and Bevy thread spawn failures are logged, release the slot / mark not-ready and return None; bridge envelope let-else Err; GLB frame_len from a 4-byte array; call_server test-pattern source returns Option when the call lock is busy; capture.rs returns .next(); Metal missing class returns the existing null-texture path; wgpu missing pipeline logs and skips the dispatch
Tests: cargo test -p continuum-core --lib live:: = 398 passed, 9 ignored; source-hygiene unwrap_justification = pass, count 2076.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
modules/: 55 unwrap/expect before, 0 unjustified after (baseline 2257 -> 2078, includes the shared scanner fix commit for file-level #![cfg(test)]).
- 32 were in two files that only compile under cargo test (plasticity/validation.rs behind #[cfg(test)] mod; airc_runtime_e2e_tests.rs whose mod is commented out): now marked #![cfg(test)], counted as test code
- 2 poisoned lock unwraps -> PoisonError::into_inner with reason
- 5 justified in place (3 constant regex literals, resolve_continuum_root + SentinelModule::new need HOME or the process has no persistent state; resolve_continuum_root has 20+ callers in persona/ cognition/ ipc/, so its signature is left for a coordinated change)
- 16 structural/typed: embedding SIMD uses slice::as_chunks::<8>() (no try_into); generator name/ live.rs/ grid handlers let-else or if-let; AIProviderModule logger falls back to the component logger (std OnceLock::get_or_init) instead of panicking before initialize; DMR/ds4 probe addresses built as SocketAddr literals; nav serialize failure logged; plasticity compactor builds one Vec of tensors (no HashMap re-lookup) and serialize_tensors propagates TensorView errors with ?; sentinel checkpoint dir returns Result (all callers already Result); vdd module artifact_root is Option and the module exposes no commands (logged) when there is no home
Tests: cargo test -p continuum-core --lib modules:: = 1107 passed, 1 ignored; source-hygiene unwrap_justification = pass, count 2078.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
code/, commands/, concurrency/, context/, experience/, forge/, genome/, http/, ipc/, logging/, media/, memory/, model_registry/, paging/, perception/, resources/, routing/, runtime/, sdk_codegen/, system_resources/, vdd/ (every directory with fewer than 10, grouped into one PR): 59 unwrap/expect before, 0 unjustified after (baseline 2257 -> 2078, includes the shared scanner fix commit).
- 24 poisoned lock unwraps -> PoisonError::into_inner with reason
- 11 justified in place (embedded-recipe and constant-regex literals, codegen-time schema checks, a never-closed private Semaphore, citizen_home_path whose Agent-needs-provider contract has 23 callers incl. persona/ owned by another branch)
- 24 structural/typed: logging::logger() is now a GlobalLogger handle that falls back to the direct log sink (no panic before init_logger); SharedCompute::get_or_compute returns Option (a type clash was a process panic; MediaFrame maps it to a typed Err); OpenAIFineTuningAdapter::new and ArtifactWriter/TurnReplay continuum_default return Result (callers in ipc/ and the vdd bin handle it); http/messages_handler builds errors via one api_error() and no longer unwraps response build/serialize; shell_session kills the child and records a Failed state if pipes are missing; models/pull, lora_convert, command ident, help, placement, model_registry singleton, consolidation timestamp, presence/nav serialize, static_html title, module_logger (no HOME => no log file), resource broker (lease collision => Superseded refusal, available_parallelism => 1 CPU) all use let-else / ? / structural forms; sysctl key is a C-string literal
Tests: cargo test -p continuum-core --lib (code, commands, concurrency, context, experience, forge, genome, http, ipc, logging, media, memory, model_registry, paging, perception, resources, routing, runtime, sdk_codegen, system_resources, vdd) = 3341 passed, 7 ignored; source-hygiene unwrap_justification = pass, count 2078. Added test: SharedCompute type clash is None, not a panic.

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

The unwrap scanner split only on the outer #[cfg(test)], so files whose first
code line is #![cfg(test)] (orm/derive_test.rs, contracts/chain_tests.rs) were
counted as production unwraps. Match the inner attribute too.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ech/continuum into fable/no-unwraps-outside-the-mind

# Conflicts:
#	core/source-hygiene/src/unwrap_justification.rs
…anTech/continuum into fable/no-unwraps-outside-the-mind

# Conflicts:
#	core/source-hygiene/src/unwrap_justification.rs
…ech/continuum into fable/no-unwraps-outside-the-mind

# Conflicts:
#	core/source-hygiene/src/unwrap_justification.rs
… calls it)

The batch's GlobalLogger replaced the panicking logger() with an always-usable handle but carried
debug/info/error only; tests/logger_integration.rs calls warn and stopped compiling.

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

The shell admits its cargo root through the disk ownership registry. These tests only
passed in the full suite because an earlier test happened to install the test registry;
run filtered (cargo test -- hands_isolation) three failed with 'Cargo writer has no
installed disk ownership registry'. The shared call() helper now installs it (idempotent).

Measured on the M5 2026-10-19: before 3 failed / 6; after 6 passed / 6, filtered run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…it size the window let it grow to

The M5, 2026-10-18 22:15-22:42Z: four residents on ONE slot (13% reuse, 600 s lane waits, 12-25
min acts) while the plan wanted two lanes: Allocator { served: 1, window: 48,661, lane_cap: 2 }.
The need was the median post-fit size of held turns; the flexbox grows every prompt into the
window it is given, so on a 102k lane the need read ~48.6k and a second lane at ~46k was refused.
The need tracked the window, and the window the need.

window_allocator::turn_need sums the turn's budget claims' FLOORS (framing + tools, required
input, grounding floor, her last move and its outcome, the reply floor): what she cannot do
without. The allocator still grows each lane toward the wish; it now serves two lanes when memory
holds two windows above that floor (Joel: two residents per lane, never smaller windows to seat
more). The faculty calls it once and nets -1 line.

Tests: window_allocator, llm_deliberation_faculty and working_set suites: 158 passed, 0 failed
(M5, background QoS).

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

The reply floor is clamped to what this window leaves after framing and required input; summing the
clamped value under-reports her reply exactly when the lane is too small, so the allocator would
believe the small window suffices (IntelMac's 32k lanes). The need now adds the pre-clamp floor.

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

SqliteEpochWatermark opened its own rusqlite connection with its own DDL,
pragmas and raw SELECT/UPSERT/DELETE. It is replaced by OrmEpochWatermark
behind the unchanged EpochWatermarkStore trait: one GrantEpochWatermark
entity row per grantee (primary key = the grantee's PeerId), check-and-advance
and eviction under one in-process lock (the ORM has no compare-and-swap),
eviction as one atomic batch delete, and epochs above 2^53 refused (fail
closed) because a Number column is a double on Postgres.

- SqliteAdapter::open(path): the one way a store that owns its own file gets
  an adapter; admission_state (production) and seven test setups migrated off
  their hand-built AdapterConfig blocks.
- OrmStore::delete_all(ids): atomic multi-row delete through commit().
- act_observe's staged-credit test reads her longterm.db through
  OrmStore<StagedCredit>/<StagedCreditGeneration> instead of raw SELECTs.
- The watermark's concurrency test runs by default (64 interleaved high/low
  epochs, then a reopen) instead of only under stress-tests.

rg 'rusqlite::|sqlx::' core/continuum-core/src outside orm/: nothing.

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

No anti-replay reset on deploy (coordinator review of #5205). The one-time
import lives in orm/legacy_grant_watermark.rs (SQL stays inside the ORM):
on OrmEpochWatermark::open, if the legacy grant_epoch_watermark table exists
in the same file, every (grantee, epoch, updated_at_ms) row is upserted into
grant_epoch_watermarks keeping the HIGHER epoch (and later updated_at_ms),
then the legacy table is dropped, all in ONE transaction. A row that cannot
be carried exactly (grantee not a UUID, epoch not an integer, negative, or
above 2^53) aborts and rolls back the import and the open is REFUSED with
WatermarkError::LegacyImport(LegacyWatermarkImportError::CorruptRow); the
store never starts empty over real state. Probe "grant.watermark.migrated"
records the row count. WatermarkError is now a typed enum.

Tests (legacy fixture uses the deleted SqliteEpochWatermark's exact DDL):
- legacy_watermark_is_carried_forward_and_its_table_dropped: carried epochs
  survive, a replay below them is Superseded, the higher of ORM vs legacy
  wins, the legacy table is gone, a second open imports nothing.
- a_corrupt_legacy_watermark_refuses_the_open: non-UUID grantee, negative
  epoch, text epoch each refuse the open and leave the legacy table intact.

Concurrency test strengthened and mutation-proven: a barrier releases all
128 presentations at once over two grantees, one seeded (find-then-UPDATE:
a missing lock shows as a lost update) and one fresh (find-then-INSERT: a
missing lock shows as a duplicate-key failure). With the lock released
before the read (`self.store.lock().await.clone()`), the test failed 30/30
runs on the M5 (29 "lost update: the max epoch 64 is not the durable
watermark", 1 "concurrent decisions failed: UNIQUE constraint failed").
With the lock restored: 0/30 failures.

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

Codex's review of #5205 at 1e0a8c7: the async mutex guard lived in the
caller's future while SqliteAdapter ran the write on spawn_blocking, so a
cancelled presentation released the lock with its write still pending; a
newer presentation could then read the stale watermark and the orphaned
lower write could land after it. Same for eviction's select-then-delete.

The fix is an ORM-owned atomic primitive on StorageAdapter, so the compare
happens inside the write:
- upsert_monotonic(record, field): INSERT ... ON CONFLICT(id) DO UPDATE ...
  WHERE stored.field <= new.field, one statement, returns whether written.
- delete_matching(query): one DELETE whose filter is judged when it runs.
Implemented for SQLite (orm/sqlite/conditional.rs) and Postgres
(orm/postgres/conditional.rs), exposed as OrmStore::save_monotonic /
OrmStore::delete_matching. OrmEpochWatermark drops its Mutex entirely, which
also closes the over(adapter) gap (two stores over one adapter shared no
lock; now there is none to share).

Hygiene and owners:
- The row's insert shape (BaseEntity columns + data fields) is built once
  per adapter (conditional::insert_columns) and do_create/create_on use it;
  SqliteAdapter::open + writer() moved to orm/sqlite/file.rs. sqlite.rs
  1741 -> 1729, postgres.rs 2435 -> 2421.
- OrmStore::delete_all removed (superseded); OrmStore::find_eq added and the
  act_observe staged-credit test compressed (2509 -> 2497).
- Postgres ensure_schema built an index name from the schema-qualified table
  (`idx_ns.table_col`, a syntax error in any non-public namespace); it now
  uses the bare table name.

Tests:
- Regressions through a new cfg(test) GatedAdapter (orm/gated_adapter.rs:
  writes run detached like spawn_blocking; the next one can be held):
  a_cancelled_presentation_cannot_land_a_lower_epoch_later and
  a_cancelled_eviction_cannot_erase_a_grantee_advanced_after_it. Both FAILED
  on the previous code (lower epoch 7 landed over accepted 10; the eviction
  erased a grantee advanced after it selected) and pass now.
- pg_upsert_monotonic_never_lowers_and_delete_matching_judges_current_rows
  (ignored; CI runs orm::postgres --ignored): passed with all 11 existing
  Postgres tests against a local scratch database.
- Mutation: with the WHERE dropped from the SQLite upsert, the cancellation
  regression and the concurrency test each failed 30/30 runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…d unwraps 2,137 -> 2,135

#5205 grew orm/sqlite.rs and act_observe/mod.rs past canary (+22 lines past
1000). The row insert shape, SqliteAdapter::open and the conditional writes
now live in orm/sqlite/{file,conditional}.rs and orm/postgres/conditional.rs,
and the act_observe test reads through OrmStore::find_eq; net -54 against
canary. The GatedAdapter test fixture is a `#![cfg(test)]` file so orm/mod.rs
keeps one test mod; its expects and the conditional writer's join fallback
carry same-line justifications. Both baselines lowered to the measured values.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…n, co-authored)

Consolidates PERSONA-CONTEXT-PAGING, KV-CACHE-ECONOMY, KV-CACHE-AS-SHARED-BASE-LAYER
and CONTEXT-IS-A-CAPABILITY-AXIS into two faults and one owner each: an epoch-
versioned materialization of an append-only history (Codex's correction 1), and one
EngineConfig derived from what the engine reports. Design only; nothing built.

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

line_heads read only crate::<ident> one line at a time, so a crate::{...}
group (empty ident, skipped; and invisible across lines) and a super:: chain
that climbs to the crate root added no edge. Undercounting only lowers the
number: a new cycle written that way passed, and a peel could lower the count
by rewriting an import. Now the whole file's code is scanned (comment lines
still skipped); a group yields each top-level path's first identifier; a
super:: chain resolved against the file's module depth yields the identifier
after it when it reaches the root. Both trees are measured by these rules, so
the ratchet compares like with like. Test:
every_spelling_of_a_root_path_is_an_edge. Not compiled here (serving node).

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

Copy link
Copy Markdown
Contributor Author

#5273 at 58f53a6, Cormac, 2026-10-22. My FAILED at e27703e is resolved: all six items are fixed in the six commits since it (46fed7a..58f53a6). I WROTE those commits, so this is not a review of them. They need an independent verdict, and I've asked Codex. Fable reports on the M5: cargo check --tests clean, core lib 8541 passed / 0 failed, source-hygiene 47/47, modules_in_cycles 36 -> 36 under the whole-file scan. CI at this head: source-hygiene passed; core lib tests and Windows compilation were in progress when I read it.

Correction on rule 2: Fable built e27703e with serving stopped (continuum stop), which rule 2 allows. My flag assumed a build next to live lanes and was wrong.

…te stopped the lib test job before its tests ran

The ratchet fails on a fall the branch doesn't record ('warnings fell to 40 below
the baseline 44', run 39775185949 job 119812354437). Recording 40 locks the win
and lets CI actually run the lib tests at this head.

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

Copy link
Copy Markdown
Contributor Author

PASS #5273 at bb830dd, scoped: everything EXCEPT the seven commits I wrote, Cormac, 2026-10-22, source read plus CI. Those are 46fed7a..58f53a6, my six fixes, and bb830dd, the warnings baseline 44 -> 40. They need an independent verdict before merge (asked of Codex).

What I verified in Fable's integration work:

The six findings from my FAILED at e27703e are resolved by those commits. So with Codex's verdict on my seven, this is mergeable from my side.

@joelteply

Copy link
Copy Markdown
Contributor Author

PASS from Fable at exact head bb830dd, on Cormac's seven commits only (46fed7a..58f53a6 and bb830dd). I didn't write them. Cormac's scoped PASS covers the rest.

Claims verified, and how:

  • 46fed7a (the verdict store stays live): card_holder::standing_refusal_for_card (persona/card_holder.rs:184) → swe_verdict_sweep::standing_env_refusal → swe_bench::verdict_dir() = swe_cache_dir().join("verdicts") (swe_instance.rs:324). The grader reads it live, so archiving it would re-offer instances that can't be graded. The test now asserts the store stays and 4 paths move.
  • b953e48, 08530cf (Ratchets are judged against the base tree: no baseline in the source, no baseline conflicts #5267 docs and push base): the command named in the docs exists (--bin ratchets). A new branch's all-zero before, or an unreachable one, falls back to canary with a ::notice:: instead of erroring.
  • 54b5e9c (Her prompt's middle is one epoch that only appends (view replaces ring, ledger, fill cap, sticky collapse) #5255): a retained result with no handle now has its whole result as its pointer, so a turnover can never collapse it to a head that nothing reopens. The match arms read (handle, whole, head) in the right precedence, and the new test pins pointer == full.
  • 3e071e6: chat/history exists on the running core (continuum commands/list --filter chat/ → chat/history, chat/poll, chat/send), so the [context] fact names a real way back.
  • 58f53a6: crate::{…} groups and root-reaching super:: chains now count as edges, so it errs toward counting. Non-blocking: module_depth treats a file as one module, so a super:: chain inside an inline non-test nested mod stops one level short and can miss an edge. No such production chain exists today. Card it if it matters later.
  • bb830dd (warnings 44 → 40): gh pr checks 5273 at bb830dd shows all 13 pass, including cargo test -p continuum-core --lib, which runs the warnings gate.

@joelteply
joelteply merged commit 4a2e3a0 into canary Oct 22, 2026
13 checks passed
@joelteply
joelteply deleted the fable/integration branch October 22, 2026 15:20
This was referenced Oct 22, 2026
joelteply added a commit that referenced this pull request Oct 22, 2026
joelteply added a commit that referenced this pull request Oct 22, 2026
…wed kernel diff replayed on canary

Recording #5273's squash with -s ours (6f4f556) kept this branch's copies of files canary had
updated after its last merge (Codex's #5274 in continuum-cli-lifecycle among them), so they would
have been reverted. This merge's tree is exactly git diff bb830dd..9b8a782 (the reviewed kernel
work) applied onto canary ebd06d1: every canary change is kept, every kernel change is in.
Checked: kernel 1,217 and core 7,329 pass (one order-dependent failure,
legacy_adoption_recovers_committed_file_without_receipt, passes alone: the shared-state class of
card c4d84be3); ratchets vs canary hold.

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 22, 2026
…24a9a1) (#5280)

* An act's arguments render whole or plainly elided, never cut (card d624a9a1)

ledger.rs::archive_head cut each call's JSON arguments at 48 chars. On IntelMac
(2026-10-22) resident cf6b4df6 (qwen2.5-coder-1.5b) read
'code/read({"file_path":"/Users/joel/.continuum/citizens/pe)' in her step
list, emitted code/read('/Users/joel/.continuum/citizens/pe/ipc/mod.rs')
three times (refused: escapes workspace), then text imitating a tool
response. A cut value looks real, so a copying model reproduces it: goal 7's
repeat. #5273 removed the steps ledger, but archive_head still writes the
act's head, which the [actions] stream shows once the result ages out.

call_args renders every value whole, except that a string longer than the
budgeted trail_head_chars, or spanning lines (a write body), becomes an
explicit '<N chars>' marker. One head cut fewer. Test:
an_acts_arguments_are_whole_or_plainly_elided_never_cut. Not compiled here
(IntelMac serving; no coordinated stop for a two-file change); CI is the
compile.

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

* tests + doc: a placeholder home, not a real user's (tenant_neutrality)

source-hygiene's no_real_user_home_path_anywhere_in_the_tree failed on the
test fixture and the doc example quoting /Users/joel/...; both now use
/home/resident/. No logic change.

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 23, 2026
…play (#5296)

* ruling-a(0e0bbf21): rework onto canary tip 4a2e3a0 — deletion now compiles-clean

Rebased the continuation-resume deletion (sent back as 7fd45ab3: useful start,
did not compile) onto origin/canary after #5273's view-stack integration removed
~29.5k lines, including agent/solve and everything that referenced the cursor
machinery in commands/.

Net effect of this tree vs canary tip:
- ContinuationCursor type + RagDelivery.continuation field gone from rag_budget
  (substrate_context.rs); deliver_continuation removed from the RagSource trait
  and every owner (wall, viewstate, engram, cached, airc, awareness, active_work,
  room_board/doctrine/roster/workspace_map/media_perception sources).
- Truncation now signaled by RagDelivery.truncated alone; readers re-derive from
  scratch on the next deliver with a larger budget (no resumable handle).
- bc66becf's viewstate fingerprint refusal and db0aa5b2's wall skip-one-record
  surface both lose their machinery — closed by deletion, per Codex finding #4.
- mission_source.rs resolves to canary's stub form (#5273 retired agent/solve);
  its old struct/tests were on my side of the conflict and are dropped.
- Two no-op hunks stripped (agent_solve_2.rs / lesson_task_excerpt_chars.rs
  deletions — files already absent at canary tip).

Grep sweep: zero code references to ContinuationCursor/deliver_continuation in
core/continuum-core/src (only a card-title string literal and one doc line that
reads as current behavior).

* wip(0c69aa07): continuum act on node 2899097f-a6bd-425e-8e37-cecaca4da057

Co-Authored-By: Kimi <[email protected]>

* legacy decode (0e0bbf21): preserve pre-ruling-a continuation wire form

RagDelivery now deserializes both schemas: explicit truncated wins;
missing + continuation object => true (source stopped short); missing +
continuation null/absent => false. Old JSONL captures no longer drop as
parse failures in read_jsonl_captures. Tests cover all three old-schema
shapes through JSONL -> replay -> faculty notice.

* legacy decode tests (cc2f1962 send-back): missing-key + explicit-bool precedence lines through the JSONL reader; faculty notice path now rides read_jsonl_captures

---------

Co-authored-by: Kimi <[email protected]>
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