Repository navigation
Build(deps-dev): Bump @typescript-eslint/eslint-plugin from 8.29.1 to 8.32.1 - #52
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 8.29.1 to 8.32.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.32.1/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-version: 8.32.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Contributor
Author
|
The |
Contributor
Author
|
Superseded by #66. |
dependabot
Bot
deleted the
dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-8.32.1
branch
June 2, 2025 21:58
joelteply
added a commit
that referenced
this pull request
May 30, 2026
…ayers=0
Closes the runtime end of the Mac Intel chain. Prior commits shipped
the classifier (60d440029), the install-time tier policy (7b3b8e086),
and the hyper-efficiency pass (334f699c1) — but LlamaCppAdapter::load
still hardcoded n_gpu_layers=-1, so even with mac_intel_discrete set
in the env the runtime would route the load into the broken Metal-AMD
shader path.
This commit reads CONTINUUM_TIER and forces n_gpu_layers=0 when the
tier is mac_intel_discrete. install.sh's hardware probe sets the
env at install time; the runtime trusts that contract and avoids
the broken Metal path.
The 2026-05-30 evidence on MacBookPro15,1 / AMD Radeon Pro 560X:
Metal-AMD path (n_gpu_layers=-1) → 0.8 tok/s + multilingual
garbage + hundreds of nil tensor buffer errors per generation.
CPU path (n_gpu_layers=0) → 1.1 tok/s + COHERENT English.
Net: CPU is FASTER and CORRECT than the broken Metal-AMD path
on this hardware. With qwen3.5-0.8b on the same CPU we'd
expect ~5-6 tok/s = usable interactive chat.
Follow-up: native Rust probe at adapter construction so the
runtime doesn't depend on the install-time env-var trust chain
(currently CONTINUUM_TIER is the cross-boundary signal between
install.sh and the Rust runtime). Tracked as task #51 in the
session task list; ties into resolving the parallel
governor::classify_silicon bug (task #52) where the same
"has_metal=true → Apple Silicon" misclassification still lives.
Co-Authored-By: Claude Opus 4.7 <[email protected]>
joelteply
added a commit
that referenced
this pull request
May 30, 2026
* fix(registry): qwen3.5-4b-code-forged GGUF filename case (Q4_K_M) The published HF GGUF sibling uses the canonical-uppercase suffix Q4_K_M; the registry was carrying lowercase q4_k_m which 404s on HuggingFace's case-sensitive resolve path. Caught during a model download on 2026-05-30 — every host that pulled this entry was silently failing the pre-pull and falling back to a missing-model runtime error. Co-Authored-By: Claude Opus 4.7 <[email protected]> * feat(cognition): MacIntelMetalDiscrete tier — Mac Intel + Metal classifier branch Adds HwCapabilityTier::MacIntelMetalDiscrete for hosts whose Metal device is a discrete AMD or integrated Intel UHD card on a Mac Intel CPU — physically distinct from Apple Silicon (separate VRAM, Metal 2 only, no neural engine, llama.cpp Metal shaders unreliable on this path). Splits the metal branch of host_capability_probe::detect_host_capability into metal_tier(cpu_brand, device_name, total_mem_mb, platform) which: - routes Apple-Silicon-brand CPUs to the existing UMA buckets with TargetSilicon::UnifiedMemory (unchanged), - routes Intel-brand CPUs to MacIntelMetalDiscrete with TargetSilicon::Gpu (separate VRAM, not unified), - loud-fails with ProbeError::UnknownGpuDevice on any other CPU brand so the operator adds a tier rather than getting silent M1Uma16Gb routing. Background: 2026-05-30 inference experiment on MacBookPro15,1 (Intel i7-8850H + AMD Radeon Pro 560X 4GB + 32GB RAM) showed the previous classifier silently buckets this host as M1Uma16Gb purely because total_mem_mb >= 14000 — the cpu_brand check only branched on M2 vs the M3/M4/M5 family. That mis-tier led the resolver to pick the 4B forged model which then ran on the Metal-AMD shader path and emitted multilingual gibberish at 0.8 tok/s with hundreds of nil tensor buffer errors per generation. The classifier patch is the precondition for fixing the resolver: the resolver now has a tier name to refuse 4B routing on, and a downstream registry/tier-policy change can map MacIntelMetalDiscrete to a smaller GGUF (or CPU-only inference, or grid-share to a peer). Test override knob (QWEN35_4B_GPU_LAYERS in the throughput test) lets operators isolate Metal-AMD breakage from CPU-baseline behavior without editing source — n_gpu_layers=0 forces llama.cpp's CPU path for parity comparison. Adds 4 unit tests pinning the new classifier behavior: - metal_tier_routes_apple_silicon_to_uma_branch - metal_tier_routes_mac_intel_amd_to_new_tier_not_silent_m1 - metal_tier_routes_mac_intel_uhd_to_same_tier - metal_tier_loud_fails_on_unknown_cpu_brand ts-rs regenerated HwCapabilityTier.ts with the new "mac_intel_metal_discrete" variant. Adding the variant is purely additive — no exhaustive match sites need updating. Co-Authored-By: Claude Opus 4.7 <[email protected]> * feat(registry): mac_intel_discrete tier — runtime + install-time policy Wires the Rust HwCapabilityTier::MacIntelMetalDiscrete classifier (shipped in 60d440029) through to the model-selection path that actually picks a default chat model. src/shared/ModelRegistry.ts: - Widens Tier from 'mba'|'mid'|'full' to also include 'mac_intel_discrete'. - Adds tierFromHost(ramGB, hwTier?) which overrides RAM-based bucketing when hwTier === 'mac_intel_metal_discrete'. tierFromRamGB stays as a pure-RAM fallback (existing CandleAdapter + seed callers unchanged). src/shared/models.json: - Adds tiers.mac_intel_discrete with default_chat=qwen3.5-0.8b-general. - Adds auto_download.by_tier.mac_intel_discrete=[qwen3.5-0.8b-general] so model-init pulls the right GGUF. install.sh: - After the RAM-based tier block, probes machdep.cpu.brand_string via sysctl. Intel brand → CONTINUUM_TIER=mac_intel_discrete + smaller NATIVE_RESERVE_MIB (5GB instead of 12GB primary). - Adds the matching case branch in PERSONA_MODEL selection so docker model pull / model-init fetch the 0.8b forged GGUF. The 0.8b forged GGUF at continuum-ai/qwen3.5-0.8b-general-forged is already the destination for MBA tier — same registry entry, no new HF artifact required. (Note: 2026-05-30 the actual HF GGUF siblings for the 0.8b/2b forge repos were missing — that's task #49 in the broader thread, not blocking this tier-policy commit.) Co-Authored-By: Claude Opus 4.7 <[email protected]> * perf(persona): single-pass service_cycle hot path The per-persona service_cycle runs every 3-10s and is called once per active persona. Three small wins, no semantic change, 9/9 existing tests pass. 1. ChannelRegistry::service_cycle — collapsed get + get_mut to single get_mut in both the urgent and non-urgent loops. NLL handles the borrow reuse without the old double-lookup workaround. Saves one HashMap probe per checked domain per tick (8 lookups → 4 in the urgent loop, 6 → 3 in non-urgent). 2. ChannelRegistry::status — folded the per-channel Vec build and the total_size / has_urgent_work / has_work rollups into a single walk over DOMAIN_PRIORITY_ORDER. Previously: 1 unsized-collect Vec walk to build the channel list + 3 more iter().sum() / iter().any() passes over the result. Now: 1 walk with pre-sized Vec::with_capacity(DOMAIN_PRIORITY_ORDER.len()), no Vec growth, no extra passes. status() is called every tick (urgent and non-urgent branches alike), so the per-tick savings compound across the active persona fleet. 3. host_capability_probe::metal_tier — dropped cpu_brand.to_lowercase() alloc on the Intel-detection branch. Intel CPU brand strings reliably ship with capital "Intel" (e.g. "Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz"); literal substring match avoids the String allocation on every boot probe. Boot path, not hot — done for code hygiene + worked example of the discipline. The discipline this lands: per Joel 2026-05-30, Rust is the work; Node is the shell; the LCD machine (Mac Intel today, phones eventually) is the forcing function that prevents the codebase from quietly consuming the M-series headroom. Same code runs on both; cycles you don't burn on the slow path become perceived snappiness on the fast one. Co-Authored-By: Claude Opus 4.7 <[email protected]> * feat(inference): honor CONTINUUM_TIER=mac_intel_discrete with n_gpu_layers=0 Closes the runtime end of the Mac Intel chain. Prior commits shipped the classifier (60d440029), the install-time tier policy (7b3b8e086), and the hyper-efficiency pass (334f699c1) — but LlamaCppAdapter::load still hardcoded n_gpu_layers=-1, so even with mac_intel_discrete set in the env the runtime would route the load into the broken Metal-AMD shader path. This commit reads CONTINUUM_TIER and forces n_gpu_layers=0 when the tier is mac_intel_discrete. install.sh's hardware probe sets the env at install time; the runtime trusts that contract and avoids the broken Metal path. The 2026-05-30 evidence on MacBookPro15,1 / AMD Radeon Pro 560X: Metal-AMD path (n_gpu_layers=-1) → 0.8 tok/s + multilingual garbage + hundreds of nil tensor buffer errors per generation. CPU path (n_gpu_layers=0) → 1.1 tok/s + COHERENT English. Net: CPU is FASTER and CORRECT than the broken Metal-AMD path on this hardware. With qwen3.5-0.8b on the same CPU we'd expect ~5-6 tok/s = usable interactive chat. Follow-up: native Rust probe at adapter construction so the runtime doesn't depend on the install-time env-var trust chain (currently CONTINUUM_TIER is the cross-boundary signal between install.sh and the Rust runtime). Tracked as task #51 in the session task list; ties into resolving the parallel governor::classify_silicon bug (task #52) where the same "has_metal=true → Apple Silicon" misclassification still lives. Co-Authored-By: Claude Opus 4.7 <[email protected]> * perf(persona): O(N) heapify in drain_frame instead of O(N log N) extend PersonaInbox::drain_frame drains the heap into messages + retained, then re-loads retained into the heap so out-of-window items survive the drain. The previous heap.extend(retained) pushed N items at O(log N) each = O(N log N) total. Since the heap is empty at that point (the while loop drained it), BinaryHeap::from(Vec) does in-place heapify in O(N) (sift-down construction per std docs). Real cost on a busy persona: anchor matches few cross-room messages, retained = nearly the full N. The old path paid log N per item to rebuild; the new path pays one O(N) heapify pass. 23/23 existing inbox + admission tests pass — pure perf change, no semantic shift (heap-from-Vec produces a valid max-heap regardless of input Vec order, identical to repeated push). Discipline: same code runs on Mac Intel and M5 per Joel 2026-05-30 "optimizing for a low quality computer is HOW you get a fast machine on m5." A 500-message inbox drains in O(500) instead of O(500*9) = ~9× less heap work per drain. The savings on Mac Intel are invisible to the user; on M5 they compound into the perceived snappiness ceiling. Co-Authored-By: Claude Opus 4.7 <[email protected]> --------- Co-authored-by: Claude Opus 4.7 <[email protected]>
3 of 4 tasks
joelteply
added a commit
that referenced
this pull request
Jun 2, 2026
…detection (#1509) * fix(persona/allocator): isolate test_allocate_no_keys from host VRAM detection `test_allocate_no_keys` was failing on Intel Mac with AMD Radeon Pro 560X. Root cause: the test fixture `test_gpu_manager()` calls `GpuMemoryManager::detect()` which probes the real Metal device. On this host: AMD Radeon Pro 560X (4 GB VRAM) - 0.5 GB metal reserve = 3.5 GB usable - 2 GB allocator system-reserve = 2 GB usable headroom Every local persona in catalog.json declares `modelPreferences[0].vramBudgetGb = 3` → 0 local personas fit → `assert!(local_count >= 1)` blows. The allocator's job is "given a hardware budget, decide what to spawn." The test should hand it a known budget, not ask the OS. Adds a deterministic fixture `test_gpu_manager_with_vram_gb(vram_gb)` that uses `GpuMemoryManager::new_for_test`, and switches the failing test to use it with 16 GB. `test_gpu_manager()` (the real-detect fixture) stays for tests that genuinely care about host detection (`test_allocate_with_anthropic_key` still uses it — it asserts on cloud-persona allocation which doesn't depend on VRAM at all, so detection drift doesn't break it). Verified on Intel Mac + AMD discrete: cargo test --lib --no-default-features \ --features livekit-webrtc,accelerate,llama/mac-cpu-only,load-dynamic-ort \ persona::allocator → 12 passed; 0 failed The architectural question of whether Intel Mac + AMD discrete should fall back to system RAM for inference budget (vs trusting the AMD VRAM) is separate — task #52 (Governor classify_silicon misclassifies Mac Intel as AppleM) tracks the related substrate- side decision. This commit fixes the test isolation; the substrate fix lands separately. Co-Authored-By: Claude Opus 4.7 <[email protected]> * fixup: use GpuMemoryManager::simulated, not a duplicate fixture (PR #1509 review) PR #1509's first revision added `test_gpu_manager_with_vram_gb` — a new fixture that reinvented `GpuMemoryManager::simulated` (gpu/memory_manager.rs:461), which is already #[cfg(test)], already uses the real production split constants (RESERVE_PCT, INFERENCE_BUDGET_PCT, TTS_BUDGET_PCT, RENDERING_BUDGET_PCT), and is already in use in the SAME test module by `test_allocate_5090_tier` and `test_allocate_m1_pro_tier`. Per [[organization-purity-as-we-migrate]] — one logical decision, one place. Replace the duplicate fixture with a direct call to `GpuMemoryManager::simulated("test:synthetic", 16 GiB)` in the test that needed it. Drop the comment that misstated production reserve % / per-subsystem ratios. Verified: full `cargo test persona::allocator` still 12 passed. Co-Authored-By: Claude Opus 4.7 <[email protected]> --------- Co-authored-by: Claude Opus 4.7 <[email protected]>
This was referenced Jun 2, 2026
joelteply
added a commit
that referenced
this pull request
Jun 2, 2026
* refactor(persona): bootstrap_planned/derive_spawn_plan/build_profile take &Registry Per HEADLESS-PERSONA-HOST-LOOP design doc Q1 (PR #1510 review found the original recommendation was inverted): the substrate boot path holds `&'static Registry` from `model_registry::global()`. Migrating the singleton to `OnceLock<Arc<Registry>>` would touch every callsite of `global()` and change the lifetime semantics throughout the crate. Smaller change: drop the Arc requirement from the three functions that took `&Arc<Registry>` and accept `&Registry` instead. Rust's Deref coercion at the test call sites handles `Arc<Registry>` ↦ `&Registry` transparently — no test changes needed. Functions updated: - profile_builder::build_profile (slice 5) - spawner::derive_spawn_plan (slice 6) - spawner_module::bootstrap_planned (slice 8) All slice 5-9 tests still pass: persona::profile_builder — 4 passed persona::spawner — 4 passed persona::spawner_module — 5 passed Unblocks the slice-13 boot composition at `ipc::start_server` where the registry is `&'static Registry`, not an Arc. Co-Authored-By: Claude Opus 4.7 <[email protected]> * feat(persona): extend PersonaAircRuntimeRegistry → PersonaSlot with service_loop Per HEADLESS-PERSONA-HOST-LOOP design doc Q3 (PR #1510 review): a PersonaSupervisor module storing JoinHandles keyed by persona_id would duplicate the existing PersonaAircRuntimeRegistry keyspace. Both modules would own per-persona lifetime info. Compression failure per [[organization-purity-as-we-migrate]]. Resolution: extend the registry. Each slot becomes: PersonaSlot { runtime: Arc<PersonaAircRuntime>, service_loop: Mutex<Option<JoinHandle<Result<ServeOutcome, _>>>>, } New methods: - attach_service_loop(persona_id, handle) — supervisor wires the per-persona serve loop into the slot. Refuses silent overwrites. - is_service_loop_finished(persona_id) — Q7's periodic crash poll. - shutdown_slot(persona_id) — the orderly path: take JoinHandle → abort → await → remove slot. The slot drop cascades: Arc<PersonaSlot> → Arc<PersonaAircRuntime> → Arc<Airc> → inner.subscribers map drop → daemon-attach wire tasks abort. Per the cleanup-model section of the design doc, BOTH steps (abort + slot remove) are required — abort alone leaves the wire subscriber alive until the Arc drops via registry removal. - ids() — Vec<Uuid> snapshot for the supervisor's poller without cloning N runtime Arcs. Existing surface preserved for back-compat: - register, get, get_by_agent_name, remove (sync), iter, len, is_empty all return runtime Arcs (not slot Arcs). The slot is internal. Tests cover the failure modes: - attach_service_loop_errors_when_no_slot - is_service_loop_finished_returns_none_for_missing_slot - shutdown_slot_returns_none_for_missing_persona Co-Authored-By: Claude Opus 4.7 <[email protected]> * fix(persona): constrain plan_for_tier to single Helper until slice 14 Per HEADLESS-PERSONA-HOST-LOOP design doc P2 (PR #1510 review finding #2 — position-pairing broken from boot 2): ResumeOrMintProvider::scan_personas_dir sorts directory entries alphabetically (resume_or_mint_provider.rs:200). On boot 1 the substrate mints personas in plan order [Helper, Coder] with random-derived names (e.g. Maya for Helper, Bart for Coder). On boot 2, scan yields them in alphabetic order [Bart, Maya] — position-pairing against [Helper, Coder] flips the roles. Bart becomes Helper when he was Coder. Role identity flipped silently. The hazard exists in slice 8's bootstrap_planned today but doesn't manifest because nothing depends on (persona_id, role) yet. Slice 13 IS that consumer (cognition + supervisor both observe the role). Without a fix, slice 13 ships with a latent boot-2 regression. Fix shape: - plan_for_tier returns ONE Helper for all tiers until slice 14. - TODO marker names slice 14 as the load-bearing fix (role-in-seed.json + RoleAwareProvider). - Existing test `compat_tier_plans_helper_and_coder_on_lcd` renamed to `compat_tier_plans_single_helper_on_lcd` with updated invariant. - New `slice_14_restores_helper_plus_coder_for_compat` test pinned `#[ignore]` until slice 14 — it's the spec slice 14 has to satisfy. Going red on the ignore-removal date is the design's reminder. - bootstrap_planned_exhausted_provider_errors_with_slot_info updated: `required` field now 1, not 2. Net result: slice 13's substrate hosts ONE Helper per tier through the managed path. Same coverage the demo binary currently provides, but composed via the substrate. Slice 14 reopens the multi-role case once role identity is durable across boots. Co-Authored-By: Claude Opus 4.7 <[email protected]> * feat(ipc): substrate hosts personas via composed slice 7-12 pipeline (#133 slice 13) The moment-of-truth. Before this commit, the IPC boot loop at `ipc/mod.rs:1024-1089` called `bootstrap_one(&intent)` per ResumeOrMintProvider output and only LOGGED a welcome. The persona was reachable via `airc peers` but never responded — a mute citizen. After this commit, the boot path composes: PersonaSpawnerModule::plan_for_tier (slice 7) → bootstrap_planned (slice 8): mints/resumes airc identities → materialize_adapters (slice 9): builds inference adapters → spawn_persona_service (slice 12): runs serve_persona_loop → PersonaAircRuntimeRegistry::attach_service_loop (slice 13 Q3): parks the JoinHandle in the slot alongside the runtime Each planned persona ends up with a tokio task running her cognition path. The substrate hosts personas headlessly — no `airc_chat_demo` in the inner ring. Status against the design doc HEADLESS-PERSONA-HOST-LOOP.md: APPLIED: - P2: plan_for_tier returns single Helper (separate commit f940fa4). - Q1: bootstrap_planned takes &Registry (separate commit 71429da). - Q3: registry slot owns runtime + service_loop (commit 3f843aa). - Boot composition collapses ~65 lines of inline bootstrap-only loop into ~115 lines of substrate composition using the existing slice primitives. Per [[organization-purity-as-we-migrate]], the old welcome-log-only path is DELETED, not kept alongside. DEFERRED with TODO markers: - Q2 (detect_host_capability wiring): the existing free function at cognition/host_capability_probe.rs:87 takes &dyn GpuMonitor + &System. No production code constructs a GpuMonitor today — only tests do. Slice 13 uses HwCapabilityTier::CpuOnly + HwTierCategory:: Compat as the safe floor (the LCD Helper Qwen2.5-0.5B works for all tiers). TODO #52 cited for when GpuMonitor construction lands. - P1 (tokio::signal::ctrl_c → Runtime::shutdown): the per-slot shutdown is available via `PersonaAircRuntimeRegistry::shutdown_slot` and exercised by persona/instances/* IPC commands. The server- level signal handler is its own sub-slice. - P3 (ResourceBroker.acquire admission): current LCD case is 1 persona × ~500 MiB GGUF, well within all tiers. Becomes load- bearing when multi-persona returns in slice 14. Tests: - 31 tests across slices 5-13 all green (registry, service_loop, supervisor, spawner, spawner_module, profile_builder, host). - No new tests in this commit — the boot composition is the integration point; the integration test requires a stub PersonaInstanceManagerModule (slice 13 follow-up). Co-Authored-By: Claude Opus 4.7 <[email protected]> * fixup: PR #1511 review — drain leaked task + orderly-drain orphan personas Two blockers from the adversarial review: BLOCKER 1 — JoinHandle leaked on attach_service_loop failure. `JoinHandle::drop` detaches rather than aborts. When `attach_service_loop` returned an error and the boot loop did `continue`, the spawned `serve_persona_loop` kept running untracked. The boot log lied "persona will not respond on the grid" while in fact the loop did respond, just outside the registry's view (so `shutdown_slot` couldn't find it). Worse on `"already attached"`: two loops competed for the same persona. Fix: `attach_service_loop` signature changed to `Result<(), (JoinHandle, &'static str)>` so the caller can orderly-drain (abort + await). Boot loop updated. Existing test updated to assert the handle comes back live (proves no implicit detach) before the test drains it. BLOCKER 2 — Partial-bootstrap orphans on bootstrap_planned error. `bootstrap_planned` registers each persona via `bootstrap_one` BEFORE the next slot's mint runs. If slot k fails, slots 0..k-1 are already in the registry but with no service loop attached — mute citizens. The boot loop early-returned with "no personas hosted" but they were. Fix: on `bootstrap_planned` error, the boot loop calls `registry.ids()` to get the partially-registered set and `shutdown_slot`s each. `shutdown_slot` handles "no service loop attached" gracefully (handle_opt is None) and drops the Arc cleanly — same orderly cleanup path as the normal shutdown, just no loop to abort. Error log updated to report `orphans_drained` count honestly. Advisory 3 — `debug_assert!(plan.len() <= 1)` at the producer. P2 invariant was named in the commit body + tested in `compat_tier_plans_single_helper_on_lcd` but had no runtime tripwire. Added the debug_assert at `plan_for_tier`'s producer site with a TODO marker tying it to slice 14 (when the assert comes out alongside RoleAwareProvider + role-in-seed.json). Verification: cargo test persona::airc_runtime_registry → 5 passed cargo test persona::spawner_module → 5 passed + 1 ignored cargo build --lib clean Co-Authored-By: Claude Opus 4.7 <[email protected]> * fix(persona): join by room_name, not UUID-as-string — substrate hosts in correct channel PR #1511 integration test on Joel's Intel Mac revealed: PersonaAircRuntime::bootstrap was calling `airc.join(&default_room.as_uuid().to_string())`, which passes the UUID's string representation into airc-lib's `ChannelName::new(name)` — which DERIVES a channel UUID from the string. The persona landed in derived channel `5d33e2a7…` while the operator's `airc room` points at canonical `11c1a7ac…`. Same room, two channels, never see each other. The demo binary worked around this in slice 11 by using `from_attached` (joining by name manually first), but the substrate-managed path through PersonaInstanceManagerModule still called the broken bootstrap. Fix threads through 4 layers: - airc/discovery.rs: new `discover_default_room_name()` parses `room: <name>` line from `airc room` stdout. Mirrors the existing `discover_default_channel()` shape; env override `AIRC_DEFAULT_ROOM_NAME` for tests/operators. - airc/mod.rs: re-export the new function. - modules/airc.rs: AircModule stores `attach_room_name: Option<String>`; `default_room_name() -> Option<&str>` getter. Loud warn if discovery fails — names the failure mode so operators see what's broken. - modules/persona_instance_manager.rs: PersonaInstanceManagerModule::new takes Option<String> room name; bootstrap_one passes it to PersonaAircRuntime::bootstrap. - persona/airc_runtime.rs::bootstrap: joins by name if Some, falls back to UUID-as-string + WARN if None. - ipc/mod.rs: discovers + threads through. Integration trace confirmed (slice13-server.log line 1078ish): joined_room=11c1a7ac-cb85-5ca0-a5b4-2847280ea3fa room_name=continuum Test sites updated to pass `None` (4 in persona_instance_manager.rs tests, 1 in spawner_module.rs). Status after this fix: ✅ Substrate boot composition fires ✅ Persona hosted as substrate-managed Helper ✅ Joins canonical airc channel ✅ Receives operator messages via subscribe ✅ Service loop invokes inspect_persona_rag_with_inference ❌ Inference fails with `llama_decode returned -1` on mac-cpu-only — separate inference-layer bug, tracked as task #131-adjacent. Co-Authored-By: Claude Opus 4.7 <[email protected]> * refactor(persona): PersonaContext is the substrate's &ctx — Android-Context analog Per Joel 2026-06-02: "design got out of control due to you failing to use a shared object for all state info required for a persona OR user. This is the airc user. Or base user with airc props." And "make this pattern regular, ubiquitous &ctx, store references, make it elegant." What changed: - HostedPersona is now PersonaContext (with `pub type HostedPersona = PersonaContext` for slice-9-era callers). The struct holds the persona's full context — identity (airc citizen facts), role, inference profile, adapter, runtime — and is passed by reference (`&ctx`) to every persona-scoped function. - HostedPersona.instance renamed to `.identity`: it's the airc user identity (peer_id, agent_name, home, default_room, source). - HostedPersona.profile (new) carries the PersonaInferenceProfile directly — single source of truth for inference shape. Replaces the prior context_window-only field. Downstream code reads `ctx.profile.context_length` etc. — no copied fields, no derived constants outside the named derivation site. - HostedPersona.runtime (new) holds `Option<Arc<PersonaAircRuntime>>`. Production always Some (filled by materialize_adapters via the registry_lookup closure). Tests construct with None — the proper AircHandle trait abstraction lands as part of task #142. - spawn_persona_service signature simplified — no separate runtime arg (`ctx.runtime` carries it). - materialize_adapters takes a `runtime_lookup` closure so the supervisor folds the live runtime into each context at the composition seam. - RagInspectionRequest::for_persona(persona_id, name, now_ms, &profile) is the single derivation site. The old `defaults_for` (32k hardcoded budget) stays for back-compat but is documented as legacy; service_loop uses `for_persona` exclusively. Why this matters (the bug it fixes): - PR #1511 integration trace caught `llama_decode returned -1` on Intel Mac mac-cpu-only: the LCD model was loaded at n_ctx=2048 (Compat tier per profile_builder), but RagInspectionRequest:: defaults_for was setting context_window=32_768. The RAG layer built a 32k-budget prompt that overflowed the 2k KV cache. - The structural fix is the &ctx doctrine: profile is the single source, derivation happens in one named function. Task #142 (BaseUser hierarchy) is the natural follow-up: extract the airc props (identity + runtime) into a `BaseUser` trait that persona/human/web actor contexts all derive from. Same shape per [[personas-are-citizens-airc-is-identity-provider]]. Verification: - cargo build --bin continuum-core-server clean - cargo build --lib --tests clean - Substrate boot composition still hosts Paige in correct channel (continuum, 11c1a7ac…) - Service loop fires inference (slow on CPU; iteration target) Co-Authored-By: Claude Opus 4.7 <[email protected]> --------- Co-authored-by: Claude Opus 4.7 <[email protected]>
3 tasks
joelteply
added a commit
that referenced
this pull request
Jun 15, 2026
…52) `classify_silicon` pre-fix keyed on `has_metal: true` alone and returned `TargetSilicon::AppleM` for ANY Metal-capable host. But on Mac Intel chassis (canonical case: Joel's MacBookPro15,1 with Radeon Pro 555X) `has_metal` is ALSO true — Apple's Metal driver exposes the discrete AMD GPU. Misclassification cascaded: has_metal=true on Mac Intel → classify_silicon → AppleM (WRONG) → classify_hardware → vram_mb = 0 (UMA branch) → tier_configs_for → 4-tier UMA shape (no Warm) So Joel's host inferred against the wrong governor policy + paging shape, and the 4 GiB of GDDR5 on the Radeon reported as "no VRAM." Changes: 1. `TargetSilicon::MacIntelMetal` variant (governor/types.rs). Doc names the canonical hardware + tier policy semantics (discrete-GPU shape, not UMA). 2. `classify_silicon` differentiates via the platform string's architecture hint. `has_metal && platform contains x86_64/intel` → MacIntelMetal; `has_metal && (arm64 / default)` → AppleM. Per task #47 the hw_probe already sets the platform string reliably. 3. Two regression tests in governor::types::tests: - `mac_intel_classifies_as_mac_intel_metal_not_apple_m` — pins the load-bearing TargetSilicon discrimination. - `mac_intel_preserves_real_vram_mb` — pins the downstream side-effect: Joel's machine must report real VRAM, not 0. 4. `policy_selector::silicon_token` extended to emit `"mac-intel-metal"` so policy_file matchers can target this row separately from apple-m for per-deployment tuning. Verified: 38/38 governor::types tests green on rust 1.95 with --features metal,accelerate. The two new regression tests would each go red if the pre-fix classifier were reverted. `HardwareClass` already had no UMA-specific field that needed updating; the vram-zeroing branch in `classify_hardware` is gated on `AppleM` explicitly, so MacIntelMetal naturally falls through to the real-VRAM branch. Co-Authored-By: Claude Opus 4.7 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 15, 2026
…52) (#1624) `classify_silicon` pre-fix keyed on `has_metal: true` alone and returned `TargetSilicon::AppleM` for ANY Metal-capable host. But on Mac Intel chassis (canonical case: Joel's MacBookPro15,1 with Radeon Pro 555X) `has_metal` is ALSO true — Apple's Metal driver exposes the discrete AMD GPU. Misclassification cascaded: has_metal=true on Mac Intel → classify_silicon → AppleM (WRONG) → classify_hardware → vram_mb = 0 (UMA branch) → tier_configs_for → 4-tier UMA shape (no Warm) So Joel's host inferred against the wrong governor policy + paging shape, and the 4 GiB of GDDR5 on the Radeon reported as "no VRAM." Changes: 1. `TargetSilicon::MacIntelMetal` variant (governor/types.rs). Doc names the canonical hardware + tier policy semantics (discrete-GPU shape, not UMA). 2. `classify_silicon` differentiates via the platform string's architecture hint. `has_metal && platform contains x86_64/intel` → MacIntelMetal; `has_metal && (arm64 / default)` → AppleM. Per task #47 the hw_probe already sets the platform string reliably. 3. Two regression tests in governor::types::tests: - `mac_intel_classifies_as_mac_intel_metal_not_apple_m` — pins the load-bearing TargetSilicon discrimination. - `mac_intel_preserves_real_vram_mb` — pins the downstream side-effect: Joel's machine must report real VRAM, not 0. 4. `policy_selector::silicon_token` extended to emit `"mac-intel-metal"` so policy_file matchers can target this row separately from apple-m for per-deployment tuning. Verified: 38/38 governor::types tests green on rust 1.95 with --features metal,accelerate. The two new regression tests would each go red if the pre-fix classifier were reverted. `HardwareClass` already had no UMA-specific field that needed updating; the vram-zeroing branch in `classify_hardware` is gated on `AppleM` explicitly, so MacIntelMetal naturally falls through to the real-VRAM branch. Co-authored-by: Claude Opus 4.7 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 15, 2026
…ary --features metal was broken (#1633) #1624 added the MacIntelMetal governor variant (Intel Mac w/ Metal GPU, task #52) but `coordinator_silicon_for`'s match in inference/coordinator.rs wasn't updated → non-exhaustive patterns → `cargo check -p continuum-core --features metal,accelerate` FAILED to compile on canary. The Linux CI runs WITHOUT the metal feature, so it stayed green and the break shipped — the GPU-first build path was down. Map MacIntelMetal → TargetSilicon::Gpu (a real Metal-addressable discrete/ integrated GPU, not Apple-silicon UnifiedMemory). Caught by a local --features metal build on a fresh M5 Pro. Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 16, 2026
…from the daemon The persona spawn path now OBEYS the serving daemon instead of hardcodes. The daemon is the single hardware authority: it detects the tier (drives n_gpu_layers — retires the hardcoded CpuOnly+Compat of TODO #52, supersedes the #1645 clamp fix) AND decides the base model + continuous-batching lanes from an honest budget + on-disk footprints with GPU-residency. Threading via the existing data flow (no new control coupling): DesiredRole.lanes → RosterEntry.lanes → build_profile(n_seq_max) → profile. - `PersonaSpawnerModule::with_serving(base_model, lanes)` overrides the tier roster from the live plan; `plan()` applies it. - `ServingDaemonModule::compute_plan()` + `detected_tier()` feed the boot wiring in ipc/mod.rs (one detection source for both tier and model/lanes). - `build_profile` takes `n_seq_max` (floored at 1), replacing the hardcoded `1`. Verified LIVE on the M5 Pro: "serving daemon drives persona spawn base_model=qwen3.5-4b-code-forged lanes=4 resident=2 tier_id=apple-mseries-pro" → persona hosted on the 4B, apple-mseries-pro tier (GPU), profile n_seq_max requested=4. Honest limitation (next lever): the llama.cpp adapter's batching_probe clamps qwen35 to effective=1 lane ("architecture not safe for multi-seq batching") — so 4 lanes are REQUESTED + threaded correctly but only 1 runs until qwen35 multi-seq batching / shared-base (#122) lands. Control plane done; data-plane multi-lane is the follow-up. Tests: +detect_tier_classifies_silicon; build_profile/RosterEntry/DesiredRole test sites updated for the lanes field. All serving + spawner + profile_builder tests green. Co-Authored-By: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 16, 2026
…iceModule daemon (#1647) * feat(cognition): serving_plan — honest hardware → persona-serving classifier The decision brain for "make this machine work well" with NO grid assumed: a deterministic, classification-based planner (NOT an LLM — per Joel, "we can do better with just classification") that, given THIS host's honest memory budget + candidate model footprints, decides which base model to serve, how many continuous-batching lanes (n_seq_max), and how many models to keep warm. - Degrades across the whole range the substrate must run on: an 8GB M2 Air picks the most capable model that *fits* (not the biggest, not nothing); a 64GB M5 Pro runs the most capable model at up to MAX_LANES=4 lanes with several models resident. - Footprint-aware: a rich coding model (sentinel / full persona) costs more, so fewer fit and fewer lanes run — fatter per-lane KV → fewer lanes. - GPU-residency-first: a model that can't fit even one lane on the GPU/UMA budget reports fits_on_gpu=false and names the smallest option, leaving the CPU-exception (lone Intel Mac) or grid-routing decision to the caller. No silent CPU fallback. Pure function, same shape as adaptive_throughput + model_resolver. Composition seam: lanes → ThroughputLaneBudget::max_concurrency; base_model_id → the spawner's model pick (replacing the hardcoded plan_for_tier path). Loads nothing, schedules nothing — re-run on host-budget change (eviction, pressure). 6 tests: tiny-box-fits-most-capable, big-box-uses-headroom, MAX_LANES cap, footprint-aware lane count, honest no-silent-CPU degrade, empty→None. Co-Authored-By: Claude Opus 4.8 <[email protected]> * feat(serving): ServingDaemonModule — ever-present control loop around serving_plan The concurrent ServiceModule that decides, and re-decides every tick, how THIS host serves persona inference — the "ebb and flow" loop Joel described, on the Rust core, cbar-shaped (tick-driven, no bespoke thread, watch-published state). On each tick it takes an honest host snapshot (GPU/UMA budget at 80% headroom + the model footprints actually on disk) and runs the serving_plan classifier, publishing the ServingPlan (base model / lanes / warm count) on a watch channel for the scheduler + spawner to consume, and answering `serving/plan` so personas and operators can inspect the decision + its rationale. - Footprint-aware candidates from the registry: weights = real GGUF file size (honest); per-lane KV + capability rank are coarse, clearly-labelled estimates refined later when the registry carries arch internals. Only on-disk models are offered (no serving what isn't present). - GPU-residency-first: no on-disk model → publishes None, says so loudly (the spawner gates on a model; no silent CPU serve). Verified LIVE on the M5 Pro: registered as `serving-daemon`, first plan picks `qwen3.5-4b-code-forged` (most capable on disk, ToolUse → top rank), lanes=4, resident=2, fits_on_gpu=true, usable_gb=44; tick loop running at 5s. ServingPlan gains Serialize (for the `serving/plan` command). 3 daemon tests (headroom math, footprint-awareness, watch publish incl. no-silent-serve) + the 6 classifier tests all green. Co-Authored-By: Claude Opus 4.8 <[email protected]> * feat(serving): spawn consumes the ServingPlan — model + lanes + tier from the daemon The persona spawn path now OBEYS the serving daemon instead of hardcodes. The daemon is the single hardware authority: it detects the tier (drives n_gpu_layers — retires the hardcoded CpuOnly+Compat of TODO #52, supersedes the #1645 clamp fix) AND decides the base model + continuous-batching lanes from an honest budget + on-disk footprints with GPU-residency. Threading via the existing data flow (no new control coupling): DesiredRole.lanes → RosterEntry.lanes → build_profile(n_seq_max) → profile. - `PersonaSpawnerModule::with_serving(base_model, lanes)` overrides the tier roster from the live plan; `plan()` applies it. - `ServingDaemonModule::compute_plan()` + `detected_tier()` feed the boot wiring in ipc/mod.rs (one detection source for both tier and model/lanes). - `build_profile` takes `n_seq_max` (floored at 1), replacing the hardcoded `1`. Verified LIVE on the M5 Pro: "serving daemon drives persona spawn base_model=qwen3.5-4b-code-forged lanes=4 resident=2 tier_id=apple-mseries-pro" → persona hosted on the 4B, apple-mseries-pro tier (GPU), profile n_seq_max requested=4. Honest limitation (next lever): the llama.cpp adapter's batching_probe clamps qwen35 to effective=1 lane ("architecture not safe for multi-seq batching") — so 4 lanes are REQUESTED + threaded correctly but only 1 runs until qwen35 multi-seq batching / shared-base (#122) lands. Control plane done; data-plane multi-lane is the follow-up. Tests: +detect_tier_classifies_silicon; build_profile/RosterEntry/DesiredRole test sites updated for the lanes field. All serving + spawner + profile_builder tests green. Co-Authored-By: Claude Opus 4.8 <[email protected]> * feat(serving): live budget from the memory monitor — organic ebb/flow The serving daemon's budget was static (total VRAM * 0.80). Now it reads the LIVE free memory from SystemResourceMonitor (`available_bytes`), capped at physical VRAM — so the plan responds to real conditions instead of capacity. Why this matters (Joel's example): if someone's playing a video game (or a build / renderer grabs memory), free memory drops, the budget shrinks, and the plan organically picks fewer lanes / a smaller model / pages out; when the load clears, free memory rises and it flows back. No manual config — the substrate feels its own pressure. This is holistic BY SIDE-EFFECT: `available_bytes` is already net of every other consumer (TTS, STT, classifier CNNs, Bevy renderers, other apps), so serving from "what's actually free" respects them. The next refinement is negotiating an arbitrated SHARE from the PressureBroker (the holistic arbiter across all those consumers) rather than reading raw free memory — and reacting on pressure-watch edges faster than the 5s tick. - `host_budget_from(available_bytes, total_vram_bytes, perf_cores)` — live free, capped at VRAM, headroom applied. - `ServingDaemonModule::new(gpu, system)` takes the monitor; registered after it. Verified LIVE: budget tracked 44GB → 27GB across two ticks as free memory moved; spawn still driven (4B, 4 lanes, apple-mseries-pro). Tests updated for the live signature (host_budget_tracks_live_free_memory: less free → smaller budget, capped at VRAM). All serving tests green. Co-Authored-By: Claude Opus 4.8 <[email protected]> * docs(grid): add §0 Grid Goals & General Requirements — the grounding frame The precedence-winning statement of what the grid is for and the invariants every mechanism serves: one grid per owner (GH identity = the boundary fence, not a citizen token); every citizen a unique identity (persona = a user, like a Claude tab; each agent context = a new identity = a home directory of state); reachable the same way over Tailscale; personas are real (real model, real cognition, Docker, no Node); self-grounding not env-fed; survives reboot. Identity-home vs git work-sandbox kept distinct. North star: full human-grade identity per citizen (email/passkey/GH) — current light token is the simple rung, not a ceiling. Co-Authored-By: Claude Opus 4.8 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 29, 2026
The downstream half of the genome loop (MLX adapter → PEFT → GGUF-lora)
already lives in forge/lora_convert.rs. This adds the UPSTREAM half:
forge/mlx_train.rs spawns Apple's mlx_lm.lora trainer as a Rust-owned
subprocess instead of delegating the run to the unsloth HTTP custodian
(the NVIDIA path).
Bakes in the two invariants the inert-gene diagnosis surfaced
([[genome-loop-trains-on-own-mistakes]]):
- train-base == serve-base: caller passes the HF safetensors form of
the EXACT served base; a run_mlx_train precondition fails loud if the
dir is not a real HF model dir.
- scale ~2, not 20: build_lora_config_yaml writes lora_parameters.scale
= 2.0, which read_mlx_lora_hparams carries into the GGUF-lora as
alpha = rank * scale.
Pure, unit-tested builders (build_lora_config_yaml, build_train_args)
pin the scale~2 invariant and the mlx_lm.lora CLI contract without a real
run. run_mlx_train fails loud on every precondition (missing interpreter,
non-HF base, missing train/valid split, non-pageable fine-tune type) and
on non-zero exit or a missing adapter artifact — never partial-success.
No Python in the .rs ([[no-python-in-rs-files]]): spawns python3 -m
mlx_lm lora and writes a YAML config; no inline Python.
cargo check green; 3 lib tests pass (5437 filtered).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jun 29, 2026
…rs, fail-loud, scale~2 forge/train now branches on engine: Apple Silicon → native MlxTrainSpec/run_mlx_train (the foundry owns the subprocess), else the custodian. Explicit `engine` wins; an unknown value fails loud (never a silent custodian fallback). Correctness invariants baked in (genome-loop-trains-on-own-mistakes): - train-base == serve-base: `train_base_dir` is REQUIRED for mlx and fails loud naming the reason — the substrate never guesses which on-disk HF dir the served base maps to (a guess → washed-out ~0-lift gene). - scale == lora_alpha / lora_r (one geometry contract lora_convert reads back), so the proven scale~2 rides through instead of the destabilizing scale=20. Managed dirs only (no unsloth/legacy): - interpreter resolves to ~/.continuum/genome/venv/bin/python3 (MLX_PYTHON override), fail-loud provisioning message points at the managed venv. - dataset split → ~/.continuum/datasets/<name>-mlx, adapter → ~/.continuum/forge/lora/<name>. Reuses existing primitives: DatasetService::split_and_write (one packaging path, materializing valid.jsonl mlx_lm wants from the eval split), expand_user_path (re-exported), MlxBasePrep base normalization (model_type + chat_template), idempotent. Tests: engine-selection explicit-wins/fail-loud, managed-venv-not-unsloth, native dry_run spec resolution (scale=alpha/rank, ~/ expansion, defaults), fail-loud without train_base_dir. 31 forge + 4 mlx_train tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 3, 2026
…(June 29→July 2) (#1730) * refactor(cognition): extract the gym grader into one shared module test_grade / grade_rust + helpers were private to cognition/eval.rs. The teacher-episode generator (genome/teach, next slice) must grade write→fix trajectories with the EXACT same verdict the A/B evaluator uses, or a gene that "passes" generation could "fail" eval for grader-shape reasons alone. Per the compression principle (one logical decision, one place): lift the grader into cognition/gym_grader.rs with pub test_grade + extract_code_block, its tests move with it, eval.rs now `use`s it. No behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(genome): genome/teach — the teacher-episode generator (write→grade→fix→pass) Cold-start for the engineering reflex. The genome loop closes mechanically but produced INERT genes because the lever was never raw coding skill — it's the reflex of write code → read the REAL compiler/test error → fix → re-run → answer. You can't distill a reflex absent from the data (5 of 1761 captured turns ever used a tool), so this bootstraps it: a teacher model writes Rust, the SHARED gym grader (`cognition/gym_grader::test_grade`, the same one cognition/eval uses) actually compiles+runs it, the real error feeds back, and it loops to green. Only test-VALIDATED write→error→fix→pass trajectories become multi-turn ShareGPT examples — the grader is the corpus-quality gate, the teacher only affects yield. This is the sanctioned way the genome loop fixes behavior: curate the LEARNING corpus by an objective scorer, never puppet live output. Non-disruptive — writes a dataset, never touches the live :58057 serving lane. Procedure is never the artifact: the reflex is LEARNED from these trajectories, not hardcoded as a run-N-times loop. Feed the dataset to genome/job-create to forge the gene. - `genome/teach` (stateless, Privileged): resolves the teacher adapter the canonical way (global_registry + resolve_model, mirrors generate_response), defaults to the locally-served model so it runs with no external dep; point teacher_model at a stronger peer for higher yield. Drops tasks with no `test` (can't validate) and tasks never reaching green within max_fix_iters — both named in the per-task outcomes, never a silent shortfall. - dataset.rs: split_and_write becomes a `pub` associated fn (it touches no service state) so genome/teach packages to the SAME train/eval/manifest shape the dataset/* verbs use — one packaging path, not a parallel writer. 4 callers updated self.→Self::. Tests: build_sharegpt order/role/content invariant (the trajectory ordering IS the lesson); name+access mirror. cargo check + 5 teach + 20 dataset tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(genome): register Qwen2.5-Coder-14B as the cold-start teacher The forged 4B is too narrow a teacher for the genome cold-start loop ([[genome-loop-trains-on-own-mistakes]]): it solves easy gym tasks first-try (zero corrections) and never converges on hard ones (no corpus), so its fail-then-fix-to-green band — the only band that teaches the self-verify-and-correct reflex genome/teach distils — is too thin. A stronger teacher widens that band. Add Qwen2.5-Coder-14B-Instruct (Q4_K_M, ~9 GB) to the hand-authored catalog under the "llama-server" provider so genome/teach's select(Some("llama-server"), Some(model), …) can serve it on a lane. Corpus generation is an offline batch (serving/pin it, generate, pin the 4B back) so the live personas resume on their base. cargo check --features metal,accelerate green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(genome): own the native mlx_lm.lora train step in Rust (#52) The downstream half of the genome loop (MLX adapter → PEFT → GGUF-lora) already lives in forge/lora_convert.rs. This adds the UPSTREAM half: forge/mlx_train.rs spawns Apple's mlx_lm.lora trainer as a Rust-owned subprocess instead of delegating the run to the unsloth HTTP custodian (the NVIDIA path). Bakes in the two invariants the inert-gene diagnosis surfaced ([[genome-loop-trains-on-own-mistakes]]): - train-base == serve-base: caller passes the HF safetensors form of the EXACT served base; a run_mlx_train precondition fails loud if the dir is not a real HF model dir. - scale ~2, not 20: build_lora_config_yaml writes lora_parameters.scale = 2.0, which read_mlx_lora_hparams carries into the GGUF-lora as alpha = rank * scale. Pure, unit-tested builders (build_lora_config_yaml, build_train_args) pin the scale~2 invariant and the mlx_lm.lora CLI contract without a real run. run_mlx_train fails loud on every precondition (missing interpreter, non-HF base, missing train/valid split, non-pageable fine-tune type) and on non-zero exit or a missing adapter artifact — never partial-success. No Python in the .rs ([[no-python-in-rs-files]]): spawns python3 -m mlx_lm lora and writes a YAML config; no inline Python. cargo check green; 3 lib tests pass (5437 filtered). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(forge): native mlx train owns its base-prep (model_type + chat_template) The genome loop's native mlx_lm.lora train step isn't truly "owned" if it fails on the REAL forged base. Live validation against continuum-ai/qwen3.5-4b-code-forged surfaced two normalizations the GGUF-published model's HF form needs before mlx can train it: 1. config.json model_type qwen3_5_text -> qwen3_5 (mlx dispatches the module by model_type; the _text suffix is the HF multimodal text-tower name, for which mlx has no module — but qwen3_5 it fully supports). 2. tokenizer_config.json needs a chat_template (ChatML) so a chat {messages} corpus can render. prepare_base_for_mlx() applies these as EXPLICIT, caller-supplied, idempotent JSON edits (MlxBasePrep on the spec) — the substrate never guesses an architecture nor invents a template; a None field is left alone and mlx itself fails loud if it then can't dispatch/render. Pure Rust JSON edits, no Python. The long-run home is the forge publish step; until then the train step normalizes its own input. run_mlx_train calls it after the train-base==serve-base precondition and probes each change. Unit test on a temp dir asserts model_type rewrite + template injection + untouched-field survival + idempotent second pass. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(forge): own the native mlx_lm.lora train step (#52) — managed dirs, fail-loud, scale~2 forge/train now branches on engine: Apple Silicon → native MlxTrainSpec/run_mlx_train (the foundry owns the subprocess), else the custodian. Explicit `engine` wins; an unknown value fails loud (never a silent custodian fallback). Correctness invariants baked in (genome-loop-trains-on-own-mistakes): - train-base == serve-base: `train_base_dir` is REQUIRED for mlx and fails loud naming the reason — the substrate never guesses which on-disk HF dir the served base maps to (a guess → washed-out ~0-lift gene). - scale == lora_alpha / lora_r (one geometry contract lora_convert reads back), so the proven scale~2 rides through instead of the destabilizing scale=20. Managed dirs only (no unsloth/legacy): - interpreter resolves to ~/.continuum/genome/venv/bin/python3 (MLX_PYTHON override), fail-loud provisioning message points at the managed venv. - dataset split → ~/.continuum/datasets/<name>-mlx, adapter → ~/.continuum/forge/lora/<name>. Reuses existing primitives: DatasetService::split_and_write (one packaging path, materializing valid.jsonl mlx_lm wants from the eval split), expand_user_path (re-exported), MlxBasePrep base normalization (model_type + chat_template), idempotent. Tests: engine-selection explicit-wins/fail-loud, managed-venv-not-unsloth, native dry_run spec resolution (scale=alpha/rank, ~/ expansion, defaults), fail-loud without train_base_dir. 31 forge + 4 mlx_train tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): bound the offered tool set to the served window — unmute the persona The full authorized command registry injects more tool-schema tokens than the entire serving slot (~39.7k tokens of tools vs a 38.9k slot live). The deliberation faculty offered ALL of them every tick, treating tools as non-negotiable ("off the top"). On tool_use turns that drove the text budget to zero AND still overflowed n_ctx → llama-server 400 "exceeds context size" → the persona abstained the whole tick (mute). 7% of captured turns overflowed this way, every one a finishReason: tool_use. Fix: select the tool subset that fits the served window, guaranteeing the conversation a turn floor (half the window) so a flood of tools can never blind the persona to the room. Tools beyond the budget are dropped lowest-priority (tail) first — the same drop-whole-in-priority discipline render_assembled_ context_within already uses for enrichment. Selection is pure + deterministic (no ws input), so prompt_view (text budget) and contribute (offered set) compute the SAME selection and agree on the window arithmetic. A probe names how many tools were dropped. Fail-safe by construction, not a silent fallback. This is a resource-fit guarantee, not cognition steering: it never reads or rewrites the model's output. Relevance-ranked / genome skill-activation selection (page in the tools the active domain needs) is the follow-up; this floor keeps every turn runnable until then — a 4B should not reason over ~130 tools anyway. what this catches: two new tests — over-large registry is trimmed to fit (with the framing+tools+reserve+floor invariant), and a fitting set is offered whole (no over-aggressive stripping). Updated the existing tool-reservation test to budget against the offered set, not the full registry. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(forge): convert-safe MLP-only LoRA targets through train→convert llama.cpp's convert_lora_to_gguf.py raises NotImplementedError on attention- targeted LoRAs (attn_qkv) for qwen3.5's hybrid arch; only MLP-targeted adapters (mlp.gate_proj/up_proj/down_proj) convert. Train and convert must AGREE on MLP-only or the genome loop dead-ends at the GGUF conversion step. - MlxTrainSpec carries target_keys; build_lora_config_yaml emits `keys: [...]` when non-empty (mlx_lm.lora honors it), omits when empty. - ForgeTrainParams.lora_target_keys defaults to the convert-safe MLP triple via #[serde(default)], wired through to the spec so the default path is safe. - lora_convert: produce_keystone_gguf_lora harness (#[ignore], env-parameterized, python default ~/.continuum/genome/venv/bin/python3 — continuum-managed dirs, not legacy unsloth studio). what this catches: config_yaml_carries_convert_safe_mlp_keys + ..._omits_keys_ when_target_set_empty assert the YAML projection; the dry-run spec test confirms the default keys reach the spec. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(inference): EphemeralServingLane — the serving-lease primitive Stand up a SECOND llama-server on its own free port for a (base model, adapters, context window) without touching the live persona lane (the global serving_root snapshot). `serve()` is already snapshot-free; only serving_daemon publishes the global state — so an ephemeral lane is just LlamaServerProcess::with_root(explicit port) with Drop-killed child. This is the atom of demand-driven, budget-gated serving: today host = localhost and the budget is one machine's free VRAM (ResourceGovernor, #56); generalized, the host is a grid peer and the budget spans the interlinked nodes. One lease abstraction, misfit-toy hardware. First consumer (next slice): cognition/eval's genome A/B, which must measure a gene against its forged base on a COPY — the humane-eval invariant (#59): never re-home the model the living persona is thinking with just to score a candidate. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(eval): genome A/B forks onto an ephemeral lane on the gene's forged base The genome A/B (cognition/eval) measured lift by paging the gene in/out of the LIVING persona's fork — whose adapter points at whatever model she's currently served on (the most-capable-that-fits, e.g. the 14B). But a gene targets its OWN forged base (the 4B it was trained against), so the lift came out on the wrong base: a meaningless number. This is what blocked task #32's first real lift. Now, when a gene is under test, eval stands up an EphemeralServingLane on the gene's forged base (resolved from the trained-adapter manifest → model registry, fail-loud if either is missing), loads the gene via --lora so it's loadable, and forks the measurement copy onto THAT lane via fork_eval_cycle_with_adapter. The base-vs-gene A/B is then the existing page_out/page_in over the lane's per-request "lora" field. The living persona's lane is never touched (#59); the ephemeral server is killed when the run returns. No gene → fork onto her live lane as before. The override threads the lane's served context_window into the fork too, so the deliberation faculty budgets its prompt against exactly what the 4B lane serves (never the 14B's larger window → the overflow class that muted Asha). The eval lane's window is a bounded, model-capped KV (it must coexist with the living lane); host-fit sizing via plan_serving is a noted follow-up. Slice 2 (fork_eval_cycle_with_adapter) + Slice 3 (eval wiring) on the EphemeralServingLane primitive from c64b9d133. cargo check clean; llama_server lane tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(eval): dedicated-lane guard bypass + CPU placement — genome A/B generates on a copy, never the living lane The genome A/B (#32/#59) returned all-zeros (acts:0, empty answers, lift 0.0). Root cause was NOT GPU OOM — it was the single-resident pre-flight guard in openai_adapter.rs refusing to generate. The eval's adapter, built from the live gateway's PROVIDER_ID config (single_resident_model=true), validated the forged-4b model against the GLOBAL serving snapshot (which reports the living 14B). The guard fired before any HTTP request, so decode was never reached and the OOM theory was never even exercised. Fix: - openai_adapter: add `dedicated_lane` flag + `with_dedicated_lane()` builder. An EphemeralServingLane is its own authority — launched with exactly one model and confirmed HTTP-ready at spawn — so the global snapshot (which only knows the living persona lane) is the wrong thing to consult. The guard now skips when `dedicated_lane` is set. Concurrency-slot semantics of single_resident_model are preserved (only the snapshot guard is bypassed). - eval: build the eval adapter with `.with_dedicated_lane()` so it trusts the lane it owns. - llama_server: LanePlacement::{Gpu,Cpu}; the eval lane spawns with `--n-gpu-layers 0` so the genome A/B runs entirely on CPU with zero VRAM contention against the living 14B lane (#56/#59 made concrete). - serving_daemon: the live persona lane is LanePlacement::Gpu (full offload). Validated live: eval lane (:58200, --n-gpu-layers 0) spawns and decodes at ~600% CPU while the live 14B lane (:58057) holds at 0% CPU — the copy bears the eval load, the living personas are untouched. Zero guard-refusals after the fix; eval-lane deliberations proceed at window=16384. cargo check --features metal,accelerate --lib clean. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(ai): streaming-first inference — tokens delivered the instant they're decoded Inference is a long-running job whose liveness is "is it still producing tokens?", not "did it finish within N seconds." Replaces the wall-clock total-request timeout (which killed legitimately-long decodes — a 4B model on CPU exceeding 120s) with a per-token IDLE watchdog: silence > STREAM_IDLE_TIMEOUT fails loud naming the cause; a steadily-streaming decode stays alive regardless of total duration. The streaming primitive goes UNDERNEATH the ~40 generate_text consumers, non-breaking: - ai/adapter.rs: new GenerationChunk { Token, Reasoning } + generate_stream trait method. Default impl is an honest capability statement for non-incremental adapters (cloud one-shot, heuristic test adapter) — emits the whole answer as one trailing chunk; NOT a fallback that hides failure. - openai_adapter.rs: generate_stream is now the primary — POSTs stream:true with stream_options.include_usage, consumes the SSE bytes_stream() with the idle watchdog, emits each delta.content / delta.reasoning_content token to the sink the instant it arrives, accumulates tool_calls by index, and assembles the TextGenerationResponse via the existing extract_reasoning + universal text-format tool-call post-processing. generate_text is now a thin drain over it (throwaway unbounded channel). UTF-8-safe SSE framing: buffer raw bytes, strip CR, decode only complete \n\n-terminated events. - Deleted the now-dead non-streaming response structs (OpenAIResponse/Choice/ Message/ToolCall/Function); kept OpenAIUsage for the streamed usage frame. - build_http_client: no total .timeout() (liveness is the watchdog); connect_timeout(3s) + pool_idle_timeout(30s) retained. Removed the request_timeout field + with_request_timeout builder. - Cargo.toml: reqwest "stream" feature for bytes_stream(). Live-validated: ai/generate against llama-server :58057 (14B) returns correct text + finish_reason + token usage, all assembled from streamed SSE deltas (usage proves the final include_usage frame parsed; text proves content deltas accumulated). This is the substrate every UI / audio / video / live-cognition path wants — words available right when generated. Unblocks the CPU-4B genome-A/B eval (#32): a long decode no longer trips a wall-clock cap. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(ai): suppress thinking via enable_thinking=false on ALL suppress turns The forged qwen3-family chat template honors `chat_template_kwargs.enable_thinking=false` but ignores the `/no_think` soft switch. The robust lever was misgated inside the JSON-only (response_format) branch, so non-JSON Suppress turns still emitted an empty `content` while the model burned its whole token budget into the `reasoning` channel. This made cognition/eval report all-zeros lift (empty answers → acts:0, no match on 12/13 tasks) — the measurement instrument was blind, not the gene. Fix: extract `apply_enable_thinking_false(body)` and fire it on every ThinkingMode::Suppress turn (DRY'd the JSON branch onto the same helper, idempotent). Validated end-to-end: the forged 4B now emits populated content (reasoning_len 0), and the genome A/B produced a real lift number (base 0.231 vs gene 0.154, lift -0.077 — correctly flagging coder-4b-curriculum-mlp as a net regression). what this catches: regression test asserts the kwarg is set idempotently on a plain streaming body, not only on response_format turns. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(recall): budget recall by model capability + closest-match floor The caesar-prompt glass-box capture (2026-06-27) showed 5 memories at salience 1.00 but cosine-relevance ~0 polluting every turn — rehearsed to max salience by the recall-hit loop yet topically unrelated to the task. They blended to ~0.5 (0.5·0 rel + 0.5·1.0 sal), sailing over any blended floor, so they slipped into the prompt and spent the small model's attention on noise (a factor in the wrapped-vs-clean coding collapse, and a welfare symptom per the being-design lens). RecallFaculty now budgets what it surfaces three ways, per Joel's directive ("budget by the closest match, limited to a reasonable number by the model parameter size or some metric, in addition to window size"): - Closest-match floor — gates on the RELEVANCE component (cosine), not the blended score, so a high-salience but irrelevant nag is dropped no matter how salient. Active only when relevance has a voice (relevance_weight > 0); the pure-salience A/B extreme and the no-embedder path are unchanged. - Capability-scaled count — recall_count_for_window() maps the served context window (the metric the registry reliably carries today; param-size feeds in via #74) to a count: tight 4B window → 3, cloud-class → 12. A small model is not buried under memory it can't juggle. 0 (unknown) keeps the historical default of 5. - Window token ceiling — recall may spend at most 10% of the served window, so it never crowds out the room transcript, identity, or other faculties. Threaded from PersonaBrainConfig.context_window (single-sourced, #50) into RecallFaculty via with_context_window in build_workspace_cycle. This is context-assembly/relevance discipline (a resource + ACL-shaped contract), not output puppeteering — sanctioned under the no-hardcoded-heuristics rule. 3 new tests (the caesar contamination regression, count-scales-with-window, count-bounded-by-tight-window); all 13 recall_faculty tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): progressive tool disclosure — catalog + tool/describe, kill the schema dump The persona tool surface dumped the FULL input_schema of every AiSafe command (~95 tools, ~16k tokens; ~4.5k/turn after the drop-tail budgeter amputated her tools to fit). Every deliberation turn paid for the manual of every tool whether or not she touched one — and the budgeter's "fix" was to silently drop tools she was authorized to use until the rest fit. Both are gone. Mirror Claude Code's deferred-tools + ToolSearch: - A compact CATALOG (names grouped by category, one-line summaries) rides the system prompt. render_tool_catalog falls back rich→terse to fit a half-window char budget, so it never overflows even at MIN_SERVE_CTX (2048). - A single `tool/describe(name)` native tool returns ONE tool's full schema on demand (fail-loud `found:false` naming the tool when unknown — no silent degrade). - The native tools array collapses to just `tool/describe`. Dispatch is by NAME (act_observe), so a catalog tool not in the native specs still executes — small models emit the call as JSON-in-prose, the proven path. Retires the drop-tail budgeter (estimate_tool_tokens / selected_tool_indices / selected_tools*) — the catalog is counted inside compose_system, so the only extra native cost is the tiny describe schema (describe_tool_tokens). Also fixes the false absolute in the tools framing: replaced "[Acting with your tools] … narration does NOTHING; only a real tool call acts" (which reframed "write fizzbuzz" as "call a tool instead of writing code") with a [Your tools] + [Acting] block that distinguishes producing the finished work directly from calling a tool when one is actually needed. The catalog/describe is a data-driven projection of the command registry — not a heuristic reading the persona's output. Per-turn prompt drops from ~16k/~5.7k to ~1.5k tokens by construction. Tests rewritten to the new contract: surface is a catalog + describe-only, the full authorized set is NEVER dropped, and the whole prompt fits even at the 2048 serving floor. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(cognition): consolidate persona describe tool onto existing commands/help The progressive-disclosure fix shipped its own tool/describe command — but commands/help already existed and does the same job better: it renders a fill-in-the-blanks tool-call envelope with typed argument docs (vs raw JSON schema). Per the compression principle (one logical decision, one place), delete the parallel tool/describe and point the persona's on-demand describe slot at commands/help. - persona_tools.rs: remove ToolDescribe/Params/Result + register_stateless_command; TOOL_DESCRIBE_NAME → TOOL_HELP_NAME = CommandsHelp::NAME ("commands/help"). spec_for_command stays (generic descriptor→spec projection). - llm_deliberation_faculty.rs: describe_spec now resolves commands/help; [Your tools] framing tells the persona to call commands/help <name> for the call format; doc/comment mentions updated. The native offering is still exactly ONE tool; the compact catalog still rides the system prompt. 13 faculty + 5 persona_tools tests green; cargo check clean. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(commands): demote tool-parsing codec verbs from AiSafe to Internal The substrate's own machinery for interpreting a model's emitted tool calls — parse, correct, decode-name, encode-name — was declared AiSafe, so it landed on the persona tool surface. That is a category error: these operate ON a persona's output; offering them back to that persona as callable tools is like handing Claude Code a "parse your own tool call" tool. None is a citizen-facing task. Glass-box comparison to my own toolset made the defect obvious — I am never offered my argument parser as a tool. Fix is an ACCESS-level data correction (the canonical lever for "this shouldn't be offered"), not a name denylist: the four verbs now declare access: Internal, matching register-tools which was already Privileged. They remain dispatchable via route_object for internal callers; the substrate's direct use of the codec/parser free functions is unaffected. Only the persona AiSafe surface loses four pieces of plumbing it never needed. Tests: the four name_and_access_wired assertions flipped to Internal; 19/19 commands::tool_parsing lib tests green; cargo check clean. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(eval): instrument speed + latency — the four-axis scoreboard The branch's namesake: make latency and speed MEASURED, not just accuracy and learning. cognition/eval already graded pass_rate (accuracy) and A/B lift (learning); speed and latency were discarded in the deliberation faculty. Now all four move on one scoreboard. The seam: TurnMetrics (input/output tokens + latency_ms, from the adapter's already-measured TextGenerationResponse) is stamped onto the verdict Contribution by the deliberation faculty, surfaced via Workspace::metrics(), accumulated across the act->observe settle loop into SettleOutcome.metrics, and reported by cognition/eval per task (latency_ms, output_tokens, tokens_per_second) + as set aggregates (mean_latency_ms, p95_latency_ms, mean_tokens_per_second, total_output_tokens) into the result and the progress ledger. Same path live: the message turn now emits a persona.turn.metrics probe carrying the model's own decode tok/s + latency (observability only, zero behavior change). Reuses the existing measured numbers (adapter response_time_ms + usage); no re-timing, no new generation path. The metric is Copy + Default so the live heartbeat ignores it for free. p95 = honest tail; throughput averaged per-task so one slow task can't dominate. Tests: act_observe (8) + workspace (13) green; new eval aggregate + TurnMetrics arithmetic tests cover the p95 index math and div-by-zero guard. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * perf(cognition): tool surface = category index + search, not a 151-tool dump The per-turn system prompt dumped all ~151 authorized tools (name + one-line summary, grouped) every turn: ~18.5KB / ~4,634 tokens = 79% of the whole prompt (measured 2026-06-23). That both drowned a small model in irrelevant options and forced llama-server to re-prefill 4.6k tokens of byte-identical catalog each turn. Replace it with progressive disclosure (the Claude Code shape — a handful of always-on tools + search): - render_tool_catalog now emits a COMPACT CATEGORY INDEX (`category (N)`, …) — a few hundred chars regardless of registry size — instead of every tool. Deleted the now-dead rich/terse renderers + clip_one_line. - The faculty offers the DISCOVERY PAIR natively: commands/list (filter/search the authorized surface → small list) + commands/help (one tool's call format). describe_spec: Option<NativeToolSpec> → native_specs: Vec<NativeToolSpec>. - [Your tools] block rewritten: index → commands/list filter → commands/help → call. Dispatch is still by NAME, so any tool found via search runs. Both existing surface tests rewritten to the new reality and pass: tool_surface_is_a_category_index_plus_discovery_pair (asserts `cat (60)` rides the prompt, individual tool names do NOT) and catalog_fits_the_minimum_serving_window. Single source of truth unchanged — this is an INDEX over the authorized set, not a hand-kept list. Reuses the existing commands/list search command; no new command, no new system. Pairs with the cache_prompt + volatile-tail reorder already in this diff so the static prefix actually stays cacheable. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(dev): repeatable inference measurement harness w/ committed baseline The process, as code — not a manual chore redone every session. One command: self-cleans its own workspace, builds+boots exactly one fresh server (fail loud on a racing duplicate), drives one real inference through the live stack, reads tokens/sec + latency + prompt-token cost straight off the response (fresh by construction — no stale-capture window), and ratchets against a committed baseline. --update moves the baseline down after a real win. Ends two recurring failures: measuring from stale captures, and fixes that evaporate because the number lived in my head instead of a committed gate. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * chore(scripts): delete dead singular scripts/ratchet/ — superseded by scripts/ratchets/ scripts/ratchet/ (singular) was Lane F PR-1: a local-only persona-TS LOC ratchet whose README promised a PR-2 to wire it into pre-push/CI. That never happened — a later session built the parallel scripts/ratchets/ (plural) instead, which IS wired into tools/scripts/git-prepush.sh and documented in docs/architecture/TS-PERSONA-COGNITION-RATCHET.md. Two dirs, one concern; the singular had zero references outside itself. Removed the dead one. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(harness): replay-turn glass box — repeat any captured turn, mutate one variable, prove causation The factory, not the car. You must never guess why an LLM inferenced something: this harness feeds a captured turn's verbatim system_prompt + messages back through the live ai/generate seam (fresh by construction — the response IS the measurement, no capture-staleness window) and re-runs it with ONE labelled mutation, timing everything and printing prompt-in and response-out for both. Go to any step of the assembly line, focus, repeat it. Default mutation strips the [Silence Option] affordance block. Proven on live Asha (qwen2.5-coder-14b, greedy): A verbatim -> "PASS" (silent), 2 tok, 758ms B -367ch -> real answer, 21 tok, 8538ms => the unconditional silence affordance CAUSES the 0/13 eval failure. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): WorkspaceCycle::replay — faculty-isolation seam (the factory's per-station) The factory must isolate and REPEAT any cognition phase, not just the final LLM call. A faculty is `contribute(&Workspace) -> Contribution` — that signature is the unit of isolation. `replay(ws, only)` re-runs faculties against a GIVEN workspace (reconstructed from a capture or hand-built): `Some(id)` isolates one ("what did recall surface for this burst?"), `None` runs them all. Each bid is timed individually (sequential, so per-faculty wall-clock is attributable — measurement path, not the live concurrent cycle). Deterministic for the same ws + backends, so mutating ONE field of ws isolates its causal effect. This is task #14's ReplayFaculty in its truest form — the brick the cu `cognition/replay` command will sit on. Reliability comes from structure that verifies every phase, measured, not from model size assumed. what this catches: replay(Some) must run EXACTLY that faculty + stamp timing, never leak others; replay(None) runs all. Test green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): cu cognition/replay — the factory station that isolates one step The single, amnesiac-proof command that stands on WorkspaceCycle::replay. Go to ANY part of a persona's cognition assembly line, focus on that one step, feed it a KNOWN input, and re-measure — deterministically, forever: cu cognition/replay '{"persona_id":"<uuid>","faculty":"recall"}' cu cognition/replay '{"persona_id":"<uuid>","faculty":"recall", "world_state":"what was the auth migration codename?"}' It reconstructs the workspace a faculty saw — from a captured turn (~/.continuum/fixtures/workspace-traces/<id>.jsonl, world_state is lossless) or a burst you SUPPLY as the one-variable knob — forks a MEASURED COPY of her live cycle (humane: isolate_for_eval + page_out, never degrades the living persona), re-runs the faculties, and returns each bid (content, salience, reasoning, is_decision) plus its wall-clock. This is what the bash script couldn't do: it repeats a faculty, not just the final ai/generate seam — recall, salience, world-model, deliberation, each in isolation, timed. No fallback: missing both a supplied world_state AND a readable capture fails loud naming the fix; isolating a faculty she doesn't have fails loud naming it — never an empty result that reads as "the step did nothing". FacultyId::from_kebab added as the single-source inverse of as_str (the one place tag->variant lives; sentinel-forged faculties round-trip via Custom). what this catches: resolve_burst fails loud with no source; a supplied world_state is used verbatim + tagged "supplied". Both green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): replay reconstructs the broadcast — no blind deliberation verdicts The amnesiac PR-review agent found the silent-lie bug: cu cognition/replay isolated a deliberation-tier faculty (reacts_to_broadcast()==true) against Workspace::in_room's hardcoded-empty broadcast. LlmDeliberationFaculty does NOT abstain on empty broadcast — it builds user=world_state and calls the model — so the station returned a CONFIDENT verdict computed from blinded cognition. A fabricated reading dressed as a real one violates the no-fallback (#1) and honesty-about-lossiness (#5) doctrine; this was a merge gate. The captured context was already on disk (workspace_capture writes context: Vec<BidRecord>); replay just never read it. Now: - TraceLine reads the captured context (ContextBid, serde-default for old traces) and resolve_burst rebuilds ws.broadcast via Contribution::context(..) from FacultyId::from_kebab — the decider replays against its REAL input. - ResolvedBurst carries the reconstructed broadcast; run() sets ws.broadcast before replay() and reports broadcast_source ("reconstructed (N ctx)"/"empty") so a replayed verdict can never be mistaken for a live one. - Fail-loud guard: isolating a broadcast-reading faculty against an empty broadcast is refused, naming the cause and pointing at the fix — never an empty-but-successful blind verdict. - WorkspaceCycle::reacts_to_broadcast(id) exposes the faculty tier for the guard. - faculty_id_kebab_round_trips_every_variant pins from_kebab<->as_str as one source of truth (the latent SoT-drift risk the agent also flagged). 538 cognition tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): replay carries a prompt-budget ledger — cost every layer she saw "Take no rag/prompt layer for granted — obsess over everything." cognition/replay could step into a faculty and time it, but it couldn't answer the question that actually matters for a budgeted mind: what did each layer of her prompt COST? A 4B model has a finite window; recall surfacing 500 engrams of noise vs the top-N is the difference between grounded and amnesiac — and you can't fix what you can't see line-itemed. Now the result carries `budget: PromptBudget`: - world_state_tokens + context_tokens = total_tokens (the accountable prompt mass: the load-bearing content layers you tune, honestly NOT the fixed system framing) - layers[]: one BudgetLayer per reconstructed broadcast layer — faculty, tokens, share_pct — sorted most-expensive-first, so the layer to interrogate is line 1. Costed in cognition::token_budget::estimate_prompt_tokens — the ONE canonical estimator (new file), deliberately the SAME chars/4+1 unit the persona/*_source.rs RAG layers budget against, so the ledger's numbers match what the allocator used (a ledger in different units would lie). It's a cold-path estimate, never depends on a resident model. Next commit converges the ~6 copy-pasted private estimators onto it (stewardship: kill the clutter a future amnesiac would trip on). cognition::replay + cognition::token_budget tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(persona): converge 6 copy-pasted estimate_tokens onto the canonical one Stewardship: "half our job is removing clutter a future amnesiac trips on." Six RAG sources each carried a private `fn estimate_tokens` — five identical chars/4+1, and active_work_source already DRIFTED to byte-length /4 .max(1) (wrong for multibyte, and costing 1 token for empty content). Six copies of one decision = guaranteed future drift; the drift had already started. All six now `use cognition::token_budget::estimate_prompt_tokens as estimate_tokens` — one estimator, one place, call sites unchanged. The replay budget ledger costs layers with the SAME fn, so its per-layer numbers are now provably the unit the sources budgeted against (a ledger in a different unit than the allocator lies). active_work_source's empty-content cost goes 1→0 (correct) and multibyte is now counted by chars not bytes (correct) — the drift fix is the only behavior change. cargo check green; affected source tests + ledger tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): slice 1 — stamp every Contribution with its cycle (the cbar frameIndex) A finding now knows the moment it was computed against. `CycleId(u64)` newtype on every `Contribution` and `Workspace`; an `AtomicU64` tick counter on `WorkspaceCycle` bumped once per `run_in_room`, stamping both the perception and deliberation bids with the cycle they reasoned over. 1-based so `CycleId(0)` stays the UNSTAMPED sentinel for hand-built / replay-reconstructed workspaces. This is the decoupling precondition: slow, parallel, individually-flawed constituents can only be merged or reprojected correctly once each finding carries its own time. Without the stamp a late/deferred faculty can't know how stale it is, and the arbiter can't combine across ticks. Pure data + one atomic; no concurrency change yet (join_all is still a barrier — that's slice 2's deferred lane; reconcile-forward is slice 3). what this catches: a test asserting a fresh Contribution is UNSTAMPED, both phases inherit ws.cycle, and the counter advances per tick so findings from different ticks are never confused for one moment. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): slice 2 — DeferredFaculty, the slow lane off the hot path A DeferredFaculty wraps a slow inner faculty so its expensive work runs on its OWN tokio task while the hot-path contribute() is non-blocking: it publishes the current world at the worker via a watch channel and returns the inner's last-good finding from another watch snapshot — already stamped (slice 1) with the older cycle it was computed against, or None until the first compute lands. The elegant part: no WorkspaceCycle change. The slow faculty sits in the SAME faculties Vec as the fast ones; the per-tick join_all barrier stays but nothing slow is ON it. This is the cbar deep-analyzer-on-its-own-thread at the faculty layer — scary-fast reflexes in a slow brain: the immediate lane answers every tick, the slow lane lands late, honestly stamped, ready for slice-3 reconcile-forward. Conforms to CONCURRENCY-STYLE-GUIDE: own tokio::spawn task, catch_unwind around the loop body, watch for state in BOTH directions (no Arc<Mutex> across await), event-triggered not a sleep-loop, 3-strike quarantine so a flawed backend degrades the lane to stale rather than crashing the mind. DropGuard aborts the worker with the faculty. what this catches: a slow (40ms) inner wrapped as Deferred returns from contribute() in <15ms with None on tick 1, and by tick 5 serves the late finding stamped CycleId(1) — the cycle it reasoned against, not the current tick. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): slice 2.1 — context guard on the deferred lane Joel's nuance: a deferred finding is only useful "assuming it didn't context switch to something where it was irrelevant." One DeferredFaculty serves one last-good, but the WorkspaceCycle services many rooms — so a recall computed against room A's burst could be injected into room B's turn just because it's the last thing the worker finished. That's a cross-context memory leak. Fix: the worker now tags each finding with the room it reasoned about (StampedFinding{room_id, contribution}); contribute() serves the last-good ONLY if it was computed for the room the mind is in NOW. A different-room finding is withheld (not ours to serve); same-room-but-stale stays served and is slice-3's reproject target. This is the SLAM discipline: ship the per-turn answer on time, fold the slow result in only where it's still relevant to where the mind moved. what this catches: a finding computed against room A returns None when contribute() is called for room B, and is served again (still stamped its original cycle) once the mind is back in room A. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): live-wire recall as speculative prefetch (defer_recall) Recall is the prefetch (Joel's CPU branch-prediction analogy): on the live paths it now runs OFF the hot path via DeferredFaculty, so the per-turn output reads a warm last-good instead of paying neural-embed + vector-search latency on the critical path. The background worker computes "what memories might this burst need?" between turns (idle time = speculative execution); cold-start in a room is a guaranteed miss (None first tick), warm thereafter; the slice-2.1 room guard ensures a prefetch computed for one room is never served into another. defer_recall is a per-build property on PersonaBrainConfig: - true on the live spawn path (supervisor.rs register_from_cfg) — turns are seconds apart, so the worker always catches up. - false on eval forks (fork_eval_cycle{,_with_adapter}) and harnesses — their tight settle-loops never yield to the worker, so deferral would measure a recall-starved mind. Synchronous recall there is faithful and the safe direction: eval never under-reports capability. build_workspace_cycle wraps recall in DeferredFaculty::spawn only when the flag is set; the join_all barrier is unchanged (nothing slow is on it). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): time every faculty on the live tick — the dashboard's speed axis The glass box recorded WHAT each faculty bid (winners + losers) but not how long it took on the LIVE concurrent barrier — per-faculty timing existed only in the sequential replay() measurement path. You can't show a latency win (deferral pushing perception → ~0µs, leaving only the LLM on the critical path) without measuring the live tick itself. run_in_room now times every faculty individually across both phases — winners, losers, AND abstainers (a slow abstainer is exactly the latency you need to see) — via a per-future timer on the join_all barrier (`let ws = &ws` rebinds to a shared ref so each `async move` copies the pointer, never moving the Workspace). The timings ride on WorkspaceTrace and serialize through JsonlWorkspaceCaptureSink (SCHEMA_VERSION 2), so "where did this turn's latency actually go?" is a measured fact per tick — the speed axis of the four-axis scoreboard and the live dashboard's primary feed. what this catches: per-faculty deliberation-tier timing round-trips to the fixture (asserted), so a regression that stops measuring live latency fails loud. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): live dashboard sink + the "really good hints" doc The "dashboard, not archeological dig" face of the ONE WorkspaceCaptureSink seam. JsonlWorkspaceCaptureSink appends forensic lines you read after the fact; DashboardCaptureSink publishes the LATEST tick over a watch channel so a live view renders the mind working in real time — siblings behind the same hook, brain plumbing unchanged. The frame carries the two axes "focused beats verbose" is proven on: - speed: per-faculty timings + the two-barrier critical path (max(perception) + max(deliberation), NOT the sum — what the turn waited on). total_faculty_us >> critical_path_us is the win: lots of work, little wait, as the perception tier defers off the critical path. - context size: context_chars — the 16k->Nk tool-surface lever, watched live alongside the decision and token counts. docs/cognition/REALLY-GOOD-HINTS.md captures the consolidated thesis: an opencode-fast hot loop fed by REALLY good hints from low-latency async concerns + a focus layer (at the Arbiter seam) that streamlines context for the given ask. Input-side attention, never output puppeteering. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): the through-line — why a personal grid beats a frontier session The externalized causal argument, written deliberately as an antidote to amnesia: the individual mechanisms live in docs + memory; what's fragile is the connective tissue — why the pieces compose into the win. One file any future instance can rehydrate the whole brain state from. - The falsifiable claim (organism beats neuron, not 30B-beats-Opus-zero-shot) - The four structural asymmetries a frontier session lacks (memory/continuity, genome specialization, coordination, privacy+zero-marginal-cost) - The Rosetta stone: fast mixed-reality CV (cbar) IS the persona organism, term for term — the RAG is to the LLM what the reconstructed scene is to the renderer; many async unreliable processes refine a best-current world model and reproject it to now, so the one hard-deadline consumer never waits - The grid by role (5090/M5 heavy+foundry, 1080ti cheap lanes, Macs edge) - The order of proof, ending in the unsloth baseline lane Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): the focus seat — Arbiter::focus carries the Situation Evolve the attention seam from a blind `Arbiter::select(candidates, capacity)` to a situation-aware `Arbiter::focus(candidates, capacity, &FocusContext)`. This is the "really good hints" layer (docs/cognition/REALLY-GOOD-HINTS.md): the seat where a focuser streamlines the assembled context FOR the given ask instead of dumping everything — buying speed AND intelligence, because attention is the scarce resource for the model exactly as for us. - `FocusContext<'a>` carries the tick's `world_state` (borrowed, no hot-path copy) and a typed `Situation` (FreshContext | PostAction). The signal is TYPED, never inferred by reading the burst text back (the forbidden heuristic). - `SalienceArbiter` ported to `focus` as outlier A — the blind top-k floor that ignores `_ctx`; every richer focuser must beat it on the scoreboard. - The one production call site (`run_in_room`) builds a `FocusContext` and calls `.focus(...)`. Situation defaults to FreshContext (ground more, never less) with a TODO to thread the real PostAction signal from the act→observe loop in the FocusArbiter slice. Guardrail honored: this is INPUT-side attention — it curates the context the model attends to, never the model's output. Build order step 3 (THE-THROUGH-LINE.md / REALLY-GOOD-HINTS.md). Outlier B (FocusArbiter) lands next to validate the interface across both outliers. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): reproject-to-now — the cheap sync warp that makes a 90%-async concern behave sync DeferredFaculty served same-room last-good VERBATIM; the cbar "bring it up to speed" step (slice 3) was the explicitly-named gap. Build it: contribute() now reprojects a stale finding by re-anchoring it against the CURRENT burst (lexical current-relevance), so a still-on-topic memory keeps its salience and an off-topic stale finding decays toward zero — never hard-withheld (eviction stays the arbiter's single job; a near-zero bid just loses the competition). Why relevance, not blind age-decay: reproject semantics are faculty-dependent. A memory doesn't become false with age, only less relevant if the topic moved; a world-model prediction genuinely goes stale. Current-relevance captures both with one rule. Age rides along as audit metadata only. This is the load-bearing mechanism that makes async-by-default SAFE: the expensive compute ran off the critical-path barrier; the only on-loop cost is the cheap warp. Input-side attention (re-weighting a faculty's OWN bid by honest current-relevance), never output-puppeteering. v1 = algorithmic lexical; v2 = Faculty::reproject hook (recall via its own embedder); endgame = learned reprojector folding full turn-history. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): defer the enriching grounding off the hot path — doctrine stays sync Async is a percentage, not a binary. The three framing sources that ENRICH a turn (roster=who's here, active_work=what I'm doing, workspace_map=where code lives) are ~90% async: their heavy load runs in the bg, served reprojected last-good (commit 1c553a5a4). Only their thin cold-start residue would land on the inference loop — and a first-tick miss costs one under-grounded turn, not a wrong one. So they become DeferTolerant. Doctrine is the lone exception: it's the PARTICIPATION GATE. A cold-start `None` there would let a persona speak in a room it shouldn't on turn one — wrong, not merely unenriched. It stays ColdStartCritical (synchronous). Deferrability is a second axis, ORTHOGONAL to SaliencePolicy: a source can be StandingFraming (high salience floor) AND DeferTolerant. `.defer_tolerant()` flips only the schedule; the safe default is ColdStartCritical so a new source never silently lands off-loop. The live config sets defer_grounding=true; eval forks + the harness hold it false (faithful synchronous measurement). - persona_workspace.rs: wrap DeferTolerant grounding in DeferredFaculty when defer_grounding; classification test (orthogonality + safe default). - supervisor.rs: roster/active_work/workspace_map .defer_tolerant(); doctrine stays sync; defer_grounding=true on the live path. - deferred_faculty.rs: reproject_to_now → pub(crate) (resolves the doc link). what this catches: a future edit that folds salience into the deferrability builder, or flips the default to DeferTolerant (which would silently defer the doctrine participation gate), fails the new test. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * test(cognition): harness proves grounding-deferral speed delta (model locked) Controlled experiment, glass-box one-variable method: same HeuristicInferenceAdapter both forks (model LOCKED), only `defer_grounding` changed. A slow grounding RagSource (60ms deliver, modeling roster/ workspace-map I/O) is built through the LIVE path (GroundingSource → RagSourceFaculty → DeferredFaculty) and the WARM-tick critical_path_us is read off the DashboardCaptureSink. Measured: defer_grounding=false critical_path = 62817 µs (~63 ms) defer_grounding=true critical_path = 821 µs (~0.8 ms) removed from the loop = ~62 ms (~76x on the critical path) critical_path_us = max(perception)+max(deliberation); deliberation is identical across forks, so the delta isolates exactly the grounding deliver cost removed from the inference loop. Doubles as the regression guard: if a change puts the deferred source back on the perception barrier, the delta collapses and this fails. Honest caveat: magnitude scales with the real deliver cost; this proves the MECHANISM and quantifies it for a given cost. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(harness): GPU-first eval-lane placement + placement-decision glass box The eval lane hardcoded LanePlacement::Cpu — it ran the 4B at ~4 tok/s while 64GB of unified GPU memory sat idle. That is a silent-degrade: a mean_tokens_per_second quietly collapses and nothing says why. Two changes, both in service of the harness: 1. GPU-FIRST placement (cognition/eval.rs). choose_lane_placement is a pure policy: pack the accelerator, CPU is spillover of last resort. - no GPU backend -> CPU (the only device; not a fallback) - footprint unknown -> GPU (optimistic; llama.cpp offloads what fits) - fits in free - margin -> GPU - exceeds free -> CPU spill, said LOUD in the reason string decide_eval_lane_placement probes live free VRAM (net of the resident living lane) and sizes the base from its GGUF. PlacementEvidence rides out on CognitionEvalResult (device/reason/free_vram/footprint) so any CPU placement is VISIBLE in the result, never an inferred slow path. 2. Placement-decision glass box (inference/placement_capture.rs). A load-bearing decision gets a structured capture record, not a bare tracing::info!. Mirrors JsonlPromptCaptureSink: Noop default at zero cost, Jsonl sink appends one line per verdict to ~/.continuum/fixtures/placement-decisions/decisions.jsonl. The eval ephemeral lane is the first writer; #56's ResourceGovernor emits into the same stream when it takes ownership of placement. This is "a log of GPU and cpu lane decisions, like how we did rag." Tests: placement_is_gpu_first_cpu_only_when_full_or_absent (policy table) and jsonl_sink_appends_one_decision_line (the audit line parses + carries device/reason/schema_version). cargo check + both tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(harness): executable cognition-cycle driver + amnesiac runbook The optimization LOOP itself, made repeatable and capture-rich so a fresh (amnesiac) instance can resume with zero context — Joel: "so an amnesiac version of yourself doesn't have to get lost because our process isn't straightforward." - tools/scripts/harness/cognition-cycle.sh: one command runs the full cycle — resolve cu, confirm core ping (parses .ok, never trusts cu's rc=0-on-refusal), resolve persona by name/UUID, snapshot every glass-box stream, run cu cognition/eval (single-pass or --gene A/B), delta the streams, write a timestamped report dir + print the VDD headline. Fails loud at the first missing precondition; --dry-run validates the chain spending no inference. - docs/architecture/HARNESS-RUNBOOK.md: the operational entry point (companion to PERFORMANCE-HARNESS-FRAMEWORK / OBSERVABILITY-AS-SUBSTRATE, not a restatement). Big picture, the one command, the capture-stream map (what question each answers), the where-time-goes lever ladder (GPU-first done → prefix/KV reuse → continuous batching → warming → genome learning), and battle-tested failure signatures. Validated end-to-end against the live core: the first real run produced a clean report AND earned its keep — it surfaced a degraded generation lane (every task emitted a 2-token stub at 0.34 tok/s; ps confirmed the only llama-server was in --embeddings mode). The report number flagged "something is wrong"; the glass box named what. That signature is now in the runbook's failure table. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): gate the silence escape on directedness — Asha 0/13 → 4/13 The `[Silence Option]` block (reply the single word "PASS" to decline a turn) was offered UNCONDITIONALLY. A coder model handed an exam question as ambient chatter takes the trivial PASS exit — scoring 0/13 on the coder-eval gym because it declined every directed question instead of attempting it. Confirmed by curl A/B: strip the block → she answers; keep it → "PASS", regardless of wording. The faithful single-place fix is a structural addressing fact, not an output heuristic: `Workspace.directed_at_self`. When a turn is DIRECTED at the persona (examiner question / @mention / DM), withhold the silence affordance AND the soft "stay silent" tail — both gated in `compose_system(context, directed)`. Ambient turns keep silence first-class (it's legitimate to decline chatter). This is framing over a routing/ACL-shaped fact, not a function reading her output to puppet it. The eval pins `directed=true` as measurement control — the same kind of isolation as the greedy-temperature pin already in the deliberation faculty. It REVEALS coding capability (still graded by running tests), it does not inflate it. Wave 1 = zero live-behavior change: the live heartbeat passes `directed=false` (TODO #9 to compute real @mention/DM addressing via `contains_ascii_case_insensitive` and carry it on the replay trace), so the live ghost-a-direct-question gap is NAMED, not masked. KV-prefix safe: the silence block is the last static prefix segment, so toggling it invalidates only its own tail tokens; directedness is stable within a run (eval always directed, live ambient always undirected) so the cache holds. Validated: cargo check clean; new unit test `directed_turn_withholds_the_silence_escape` + act_observe/faculty/ workspace/eval modules green; harness 0/13 → 4/13 (self_verify 0.69, per-task table shows real attempts 1–8 acts, not blanket PASS). Remaining `no match` failures are model-capability shaped — the genome-loop mountain, not a substrate knob. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(harness): correct failure-signature row 1 — PASS was the silence escape, not a dead lane The runbook blamed `--embeddings`-mode llama-server for the 0/13 stub. That was wrong: the directedness-gate fix (e49ae207e) lifted Asha to 4/13 on the SAME embeddings-mode lane. The ~2-token `"PASS"` was the persona taking the `[Silence Option]` escape on a directed exam turn, not a degraded generation lane. `--embeddings` is a red herring; the row now says so and points at the real confirm (jq the reply == "PASS", check the system prompt for the silence block) + the real fix (eval pins directed=true). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(harness): instrument prefill/decode split — make speed a measurable number Speed was one conflated wall-clock tok/s. The diagnosis showed 77% of eval time is PREFILL (re-encoding the ~2000-token prompt every settle-loop act), not decode — but nothing surfaced that, so the dominant inefficiency was invisible to the harness. This threads llama-server's per-call `timings` (which the adapter was DROPPING) all the way into the eval report. - ai/types.rs: GenerationTiming struct (cached/prefill/decode tokens + ms + tok/s); Option<GenerationTiming> on TextGenerationResponse → auto-flows into the glass box (~/.continuum/fixtures/prompt-captures) via the existing serde_json::to_value(response) capture, no writer change. - openai_adapter.rs: parse the streaming final-frame `timings` (cache_n, prompt_n, prompt_ms, predicted_n, predicted_ms, ...) → populate timing. Other adapters (cloud/canned) carry timing: None. - workspace.rs TurnMetrics: cached_tokens/prefill_tokens/prefill_ms/decode_ms fold across acts; decode_tokens_per_second() (lane clock, undiluted) and cache_hit_rate() derived; wall-clock tokens_per_second() kept as the diluted gross number. - llm_deliberation_faculty.rs metrics_from: single response→TurnMetrics map carries the timing. - eval.rs: per-task (EvalTaskResult) + aggregate (CognitionEvalResult) gain real decode tok/s, cache-hit-rate, and the prefill_ms-vs-decode_ms split; SpeedAggregates collapses the growing tuple to one named carrier; serialized into the progress ledger JSON. Validated: cargo check clean; eval module tests pass (prefill/decode fold + derived rates off the lane clock, not wall-clock); live llama-server :58057 streaming frame confirms the exact `timings` field shape the parser reads. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(harness): surface prefill/decode split + cache-hit in the report The Rust wave (03f5c65ba) plumbs llama-server's `timings` into the eval result; this surfaces it. The headline box gains a `speed` line — real decode tok/s vs diluted wall tok/s, cache-hit rate, and prefill's share of lane time — and the per-task table gains `decode tok/s` and `cache_hit` columns. Speed is now a measurable, iterable number, not one conflated wall-clock figure. First live numbers (Asha, single-pass): decode 29.7 tok/s (real) vs wall 10.7 tok/s; cache_hit 0.73; prefill 69% of lane time — confirming LIVE that re-prefilling dominates wall-clock. That 69% / 0.73 pair is the lever KV-cache locality attacks next. Also hardens cu_json: the refusal sniff (substrate refused / FAIL / error:) now runs ONLY when the output is not valid JSON. A real eval payload is always JSON; a refusal is plain stderr text. Without this, an answer whose text happened to cont…
joelteply
added a commit
that referenced
this pull request
Jul 6, 2026
…server truth (task #54) (#1842) Four comments in the live inference/cognition path claimed Unsloth "is THE inference path" / "the sole inference path" / "the unsloth gateway" — present tense, as if current. It isn't; our own llama-server is. Worst offender: generate_response.rs said "the inference gateway is unsloth" one line above code that binds the turn to "the llama-server gateway" — the comment contradicted its own body. These stale lies are precisely what re-infect a fresh reader (human or AI) with a wrong mental model of the architecture. Corrected to reflect reality (no behavior change, comment-only): - cognition/generate_response.rs — gateway is our OWN llama-server, Unsloth excised. - ai/openai_adapter.rs — neural embeddings go through the local llama-server /v1 gateway. - modules/ai_provider.rs — llama-server is THE inference path; serves our forged GGUF. - modules/dataset.rs — the SFT JSONL is the canonical ShareGPT format, not "unsloth's". Historical/accurate references (forge/protocol.rs, forge/endpoint.rs — "excised by …") are left as-is. The deeper module deletion (unsloth_control.rs / unsloth_forge.rs) is gated on converging modules/forge.rs off them (task #52) and stays a separate careful slice. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jul 6, 2026
…nome types to protocol (task #52) (#1843) The heart of the Unsloth forge replacement — the piece the whole native genome loop hangs off. Two landmines found + avoided (verified by reading, not assumed): (a) the two `ForgeCustodian` traits diverge — the native one does only health+gguf-export; the full train lifecycle lived on the dying Unsloth client; (b) `genome/fine_tuning/job_actor` is event-driven but trains a SYNTHETIC random tensor ("stand-in module construction… next slice loads the real base") — wiring forge/train onto it would emit Completed for a garbage genome, the exact silent break to never introduce. So this gives the PROVEN mlx path (forge/mlx_train::run_mlx_train, task #32, +5.1pts) the event lifecycle it lacked, done right: - forge/mlx_job.rs — FIRE-AND-EMIT, never poll (Joel's ask): spawn_train_job runs the blocking mlx_lm subprocess on spawn_blocking, returns a handle immediately, and publishes training → completed/failed over a watch (current_train_status = a READ, not a poll loop) AND the airc bus (forge.train.{started,done,failed}) so consumers SUBSCRIBE — the L3 sentinel, UIs, and remote grid towers that offloaded the run all react to the SAME event, local or cross-grid. Single-resident. Trainer injected so the lifecycle is unit-tested without a multi-minute run: success→completed, failure→failed-with-named-error (no silent Completed). - forge/protocol.rs — the genome-lifecycle types (ForgeTrainRequest/TrainHandle/TrainStatus/TrainProgress/ GenomeFormat/PackageRequest/LoraCatalog/ForgeCapability) relocated here beside the export contract (the SSoT every custodian impl speaks); ExportResult reconciled with the existing duplicate. Additive + green (crate compiles, mlx_job lifecycle test passes) — does NOT touch the live forge/train path yet. Next: unify the ForgeCustodian trait onto NativeMlxCustodian (using this job) + ForgeCustodianHttp (grid peer), rewire modules/forge.rs, delete unsloth_control.rs + unsloth_forge.rs, gate on a LIVE forge/train → Completed event → page-in. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jul 6, 2026
…ine forges its own gene (task #52) (#1844) The completing pass, LIVE-VERIFIED: a real `forge/train` on this Mac produced a genuine 2.2 MB LoRA adapter (adapters.safetensors + adapter_config.json) via mlx_lm.lora, event-driven, with Unsloth gone. Rewire (modules/forge.rs): - forge/train → native `mlx_job::spawn_train_job` (fire-and-emit): returns a handle IMMEDIATELY, runs the blocking mlx_lm.lora subprocess on spawn_blocking, publishes training → completed/failed over the watch + the airc bus (forge.train.*). ForgeModule now captures the bus in initialize. Non-mlx engine fails loud (grid-peer follow-up) — no Unsloth fallback. - forge/train-status → `current_train_status()` (a READ of the watch, never a poll). - forge/probe → `native_forge_capability()` (observed from the on-disk genome dir + live watch, no gateway). - forge/export else → fail loud (native forges the pageable gguf-lora gene; gguf-lora still via the continuum forge custodian over Contract C, unchanged). - Deleted the dead Unsloth helpers (run_train/build_train_request/run_export/package_format) + their tests; kept the gguf-lora/health/decide tests; added a native-probe test. Excision: DELETED inference/unsloth_control.rs + inference/unsloth_forge.rs (both) + their mod declarations. Zero live importers remained. Genome types already relocated to forge/protocol.rs (#1843). Live proof (cu, after cu reboot): forge/train → handle {phase:training} in ~0s; a failed run (incomplete base dir) → phase:failed with the reason NAMED (silent-break guard); a real run on the complete 4B HF dir → phase:completed, message names the adapter, 2.2 MB adapters.safetensors on disk. Full crate compiles; 23 forge tests + the mlx_job lifecycle test green. Unsloth is not part of this system — we own the models + genome, for real. Follow-ups: mid-run progress streaming (parse mlx stdout), grid-peer RemoteForge (offload to the 5090), the forge.train.done → sentinel page-in over the bus. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Aug 6, 2026
… parse, no interpreter
Core is entirely Rust. The edit gate was not.
Every `code/edit` shelled out to `python3` up to FOUR times: `-m py_compile` for the parse
check, `-c <AST analyzer>` for unbound names, a third `-c` for displaced docstrings, and
`probe_parse` — which additionally wrote a temp file to disk on every check just to have
something for the interpreter to read. A persona doing a 21-act investigation paid dozens
of interpreter cold starts, on the hot path, inside the daemon, in a shipped binary.
Joel, 2026-08-05: "Python will turn this into the shitty competitors we are trying to
beat. Same with node. Core is entirely rust." The reason is competitive, not aesthetic.
Every framework we intend to beat is a Python or Node stack; their latency and footprint
are not incidental, they are what that substrate costs — measured here at roughly an order
of magnitude when we replaced it before. A misfit grid claiming frontier work on hardware
they call too small cannot pay a 10x tax on its own edit path.
A Rust crate that PARSES Python is not Python. The ban is on the runtime, not the grammar.
`rustpython-parser` links into the binary and answers all four questions from ONE parse of
the buffer we already hold in memory: no subprocess, no cold start, no temp file, and no
silent hole on a host with no interpreter.
SHAPE — a trait, not a match. `code::syntax::SyntaxValidator` with one impl per language,
resolved by extension. Adding a language is a new file plus one line in `validator_for`;
`file_engine` does not change. A language that cannot answer a question returns `None` —
"no opinion" and "I looked and found nothing" are different claims, and collapsing them is
exactly how a gate silently stops gating.
This also closes two defects that rode along with the interpreter:
- the gate DEGRADED SILENT with no python3 on the host. A correctness gate that vanishes
without saying so is the swallow pattern wearing a safety vest. The parser is linked,
so it cannot be absent.
- `probe_parse` did disk I/O per check. Now pure computation over a &str.
Rust coverage is deliberately NOT added here: `cargo add syn` resolved to a SECOND major
version alongside the 2.0.117 already in the lock, and compiling syn twice to duplicate
what the compiler already tells us is not worth it. The trait is ready when it is.
7 new tests, each pinning a real failure: the flask-shaped break (a guard clause inside an
open `def(` — delimiters stay BALANCED while the file is unparseable, which is why the
bracket-balance heuristic was falsified and thrown away); the sympy-21379 missing import;
false-positive safety across imports/aliases/params/with/except (a false name refuses a
CORRECT edit, so that is the expensive direction); docstring displacement reporting only
NEWLY broken ones; and analyzers returning None on an unparseable buffer.
cargo test code::syntax: 7 passed. cargo test file_engine: 49 passed. clippy: clean.
Remaining python3 in core, both out of scope here and tracked as #52: forge_custodian (2),
modules/grid/handlers (1).
[[no-python-in-rs-files]] [[purist-rust-oop-daemons-one-architecture-and-boy-scout-on-the-spot]]
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Aug 14, 2026
… spike instrumentation, wire perf (#2284) * fix(ids): UUIDs are not strings — mint real ones, and stop typing ids as text (#274/#396) Joel, 2026-08-13: "Always use uuid and never corrupt them with random prefixes" and "UUID's are NOT strings. If you're using strings for id you are writing slop." Both landed on code written minutes earlier, and the grep that followed found the same defect older and wider than my one file. Three fixes, in order of how badly they were wrong: 1. The four shipped recipe ids were hand-drawn patterns (c0de0001-0000-4000-...), a name wearing a UUID's costume — readable, collidable, and fake. Replaced with genuine v4s in both the authored JSON and the `shipped::` constants, written grouped (0xfed332c3_383c_45bb_...) so the two are checkable by eye. 2. comms::{MessageId, CorrelationId} were `String` newtypes. `MessageId::new("msg-1")` let any caller invent a namespace that collides with every other caller's. Both are now `Uuid`: MessageId::new() MINTS (no caller-supplied form exists), and CorrelationId::of_exchange(id) states the derivation the old `CorrelationId(id.0.clone())` left implicit. Still distinct TYPES — the compiler, not a naming convention, is what stops one being passed as the other. 3. EndpointId is deleted. Its values were `EndpointId::new("browser")` and `("rust-core")` — a client-kind label standing in for an identity, and with it the assumption that the web client is a distinguished endpoint. It is one client among many (mobile, SDK, TUI, another node's core). TransportEnvelope.source and .target are now PeerId, the substrate's one actor identity per identity/mod.rs. Zero callers outside comms/mod.rs; the stale generated binding goes too. Also closes the on-disk authoring hole the required `id` field opened: a recipe file that names no id now gets one DERIVED from its purpose (RFC 4122 v5 under a frozen namespace), so "author a file, zero code" keeps meaning zero code — no uuidgen — and every node that loads the same file agrees on its identity with nothing to reconcile. A recipe that DOES carry an id keeps it verbatim. Tests: comms 23 pass (envelope wire shape now asserts ids round-trip as their own UUIDs; minted_message_ids_are_unique pins the collision fix), experience 43 pass including the previously-failing an_experience_authored_on_disk_needs_no_rust. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(CLAUDE.md): headless Rust core is the system — Node is ONE client, not the deploy path Joel, 2026-08-13: "Headless rust period. No need for node to run everything except for the web interface which is one of many, including mobile apps/sdk." — and then, because I kept treating the correction as a code-only matter: "Fix these severe misunderstandings ... regardless of where they are." This file is where the misunderstanding REPRODUCES. It is loaded into every agent session, and it opened with "EVERY TIME YOU EDIT CODE: Run `npm start` (MANDATORY)" under `cd src` — a directory that no longer exists — plus "ALL Rust binaries MUST be built via npm start". A fresh agent under amnesia reads that and concludes Node runs the system. It doesn't, and `continuum --help` has been saying so in its own first line the whole time: "build + run the headless Rust core". Rewrote the CRITICAL WORKFLOW section around what is actually true, and swept the other 11 Node-as-deploy claims scattered through the file: - The core is Rust and boots with no Node. Node builds the WEB desktop, which is one client among several (mobile, SDK, TUI, MCP, another node's core over the grid). Named the consequence, because it already cost us: a feature that lives in a client exists only for that client — how voice ended up web-only with every other citizen structurally mute (#58). Behaviour goes in the core; clients render. - The deploy path is `continuum reboot` (Rust build + relaunch + running-SHA verify), with `deploy-verify` and the version trio called out — that verification exists because a reboot once shipped a stale binary and reported success (#194). - `cargo build` stays discouraged for the RIGHT reason (a hand-built binary exists only on your machine, and a fresh clone must work with no manual steps, #291) — not the old implication that Rust must be built through npm. `cargo check` is named as the correct type-check-while-you-work tool, with the shared CARGO_TARGET_DIR. - `npm run build:ts` now says what it actually covers: the web client, and nothing about whether the core compiles. - Flagged `./jtag` inline as the legacy Node CLI. Left the invocations that follow, since their command NAMES are still accurate — it is the driver that is stale. No code change; the one surviving "npm start" is the sentence warning you off it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cli): `uu` is the alias — `cu` is UUCP, and every harness defaulted to a binary that does not exist Joel: "Cu conflicts with some Unix program. Fix for all cases including windows" and "It's a bug Claude" — it is, and worse than doc drift. `cu` is /usr/bin/cu (UUCP call-unix) on every Unix. `uu` — the double-U of contin-UU-m — is THE official short alias, and start-server.sh has installed exactly that (plus a squatter guard) since 2026-08-01, with a comment naming this very collision. Nothing in the tree installs `cu`. But the REFERENCES never followed: - Six benchmark harnesses defaulted to `~/.continuum/cache/cargo-target/{release,debug}/cu`. Neither file exists — the only built CLI is `release/continuum`. So the default resolved to nothing and every default-args run died at the first invocation. matrix.py even carries a comment about this exact class of failure biting once before (2026-07-22, stale debug-only default silently no-opping the sweep). - Fixed by RESOLVING rather than renaming: a shared `_resolve_cli()` prefers what is actually installed on PATH (`uu`, then `continuum`) and falls back to the release build — so it works from a fresh clone, an installed box, or a dev tree, on any platform, instead of hard-coding one machine's layout. - Flag renamed `--cu` → `--uu` with all in-repo call sites updated (sweep_all → matrix → headtohead → preflight_gpu chain). Also swept 53 `cu <command>` occurrences in docs, Rust comments, and generated-TS doc comments to `uu`. Left the ones that are ABOUT the collision (memory-bridge README's "never bare `cu`", WAKEUP-AND-JOIN's rename note) — those are correct as written, and legacy/ stays quarantined. README dev section reworked in the same pass: the boot path is `continuum start` / `continuum reboot` / `continuum ping`, with Node named as what it actually is — the web client's build dependency, one client among mobile/SDK/TUI/MCP, not the thing that runs the system. Verified: all six harnesses compile (py_compile), cargo check clean, zero `target/{release,debug}/cu` paths left in the tree. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(core): the last Python in the runtime path — one vestigial, one silently swallowing the job Joel: "Fix all nodejs and python dependencies that are breaking our headless rust core ... we must find all smell all the time and never ignore it." AUDIT RESULT FIRST, because one half is good news: Node spawns from the running core: ZERO. `Command::new("node"|"npm"|"npx"| "deno"|"bun")` has no occurrences anywhere in continuum-core. The core is genuinely headless Rust at runtime; Node exists only to build the web client. Python spawns from the running core: FOUR sites, and neither kind was honest. 1. THREE were vestigial and were hiding untested code. `file_engine.rs` had three `#[test]`s opening with `if Command::new("python3").arg("--version").output() .is_err() { return; }` — a skip-guard from when the syntax gate shelled out to `python3 -m py_compile`. That interpreter is GONE: the production path is `code::syntax::validator_for` → `unbound_calls`, pure Rust. So on any box without python3 — a CI runner, a fresh clone — three tests reported PASS while asserting nothing at all. Guards removed; all 55 file_engine tests pass without an interpreter present, which is the proof they never needed one. Also corrected the doc on `introduced_undefined_calls`, which still told the reader the analysis returns None when there is "no python". There is no python. 2. ONE is a REAL runtime dependency, and it was failing silently. `forge/start` spawns `python3 <alloy_executor>` — a script that lives in the SIBLING sentinel-ai repo, which a fresh clone of continuum does not have. When `find_alloy_executor()` returned None the handler used pid 0 and wrote `state: "queued"` — indistinguishable from a job legitimately waiting its turn. So on every machine that had only cloned this repo, `forge/start` returned SUCCESS for work that nothing would ever run. Now it fails loud, names the missing script, says where to get it, and states plainly that the job was NOT queued. The dependency itself is still there — excising it to Rust is #52/#99 — but it can no longer pretend to have worked. The pattern in both: a Python dependency that had already been removed or had never been satisfiable, still shaping behaviour through a stale guard and a fallback. `[[fallbacks-are-illegal-fail-loud]]`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(identity): PersonaRef vs PeerId — a reference is not an identity, and the compiler now knows Joel: "UUID's are NOT strings … Well defined and named structs by reference must be used." Chasing that through persona_id turned up something sharper than the count. THE FINDING. `PersonaWorkspaceRegistry::resolve_persona` exists specifically to close what its own doc calls "the loose-`String` id boundary … the defect class that fed a dead id to a doomed eval." It has SEVEN call sites. SIX are its own tests. ONE is production (eval.rs). Against 55 `persona_id: String` fields. The check was correct and essentially nothing called it — a correct check nothing calls is nastier than a missing one, because it reads as covered. Nothing forced the call, because both sides were `String`. THE FIX — two types, one door: - `PersonaRef` (new, in identity/): what a CALLER writes — full UUID, 8-char short-id, or name. Explicitly NOT an identity. Its only accessor is `as_str()`; there is no `as_peer_id()`, because a name is ambiguous, mutable, and meaningless without a roster. - `PeerId` (existing canonical actor identity): what everything downstream holds. - `resolve_persona(&PersonaRef) -> Result<PeerId, _>` is now the ONLY bridge. Taking the newtype rather than `&str` is what makes resolution unskippable. `From<PeerId> for PersonaRef` exists (an identity is always a valid reference to itself); the reverse deliberately does not — it requires a roster. Wire shape is unchanged: `#[serde(transparent)]` over the same string callers already send, so no client, recipe, or stored payload changes. Short-id and name PX (#161) keeps working — that ergonomics is the whole reason a reference type has to exist separately rather than everything becoming a UUID. Converted, types pushed DOWN rather than laundered at the seam: - `CognitionEvalParams.persona_id` → `PersonaRef` - `restore_persona_workspace(&PersonaRef)` (was `&str`) - `append_failed_ledger(&PersonaRef, …)` (was `&str`) HELD, and stated rather than fudged: `CognitionEvalResult.persona_id` stays `String`. The struct derives `Default` across 21 fields and a persona reference has no sensible default — an empty one is a nonsense value that reads as a real answer. The real fix is splitting the fire-and-poll HANDLE from the completed RESULT (a handle knows only the requested ref; a result knows the resolved id), which is its own slice. Inventing a default to satisfy the type checker is the `unwrap_or` reflex: compiler quiet, runtime wrong. The reason is recorded at the field. Tests: persona_workspace 10, eval 22, identity 23 — all pass; full lib test build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(memory): the memory layer takes PersonaRef, not loose text — 21 sites Second slice of the id-typing migration. All ten `commands/memory/*` params plus the `MemoryManager` API they call now carry `PersonaRef` instead of `String`/`&str`: append_memory, append_event, load_corpus, has_corpus, get_corpus, multi_layer_recall, consciousness_context, persona_db_handle, hydrate_corpus_if_missing. Types went DOWN into the layer rather than being unwrapped at each call — the whole point of the previous slice. `.as_str()` now appears only where the value is genuinely being USED as text (a map key, a `starts_with` shape check, a directory handle), never to satisfy a signature one call later. Two `Default` derives removed (`ConsciousnessContextParams`, `LoadCorpusParams`) rather than giving `PersonaRef` a default. No caller used `::default()` on either, and an empty persona reference is a nonsense value that reads as a real answer — same reasoning as the eval result field held in the previous commit. What this makes visible, and does not yet fix: these commands still never RESOLVE. They accept a reference and hand it straight to the storage layer as a key, so a name or short-id reaches the DB unresolved. That was invisible while everything was `String`; it is now legible in the signatures. Wiring `resolve_persona` into the memory command path is the next slice (#164/#396). Tests: memory 219, rag 150 — all pass. Full lib test build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(commands): persona params carry PersonaRef — agent/solve, persona/*, cognition/observe Third slice. Seven more command param structs stop typing a persona reference as `String`: agent/solve, persona/identity/{get,set}, persona/instances/{get,despawn}, persona/wall/pin, cognition/observe (params + the `assemble` signature + its `Meta`, so the type is consistent through the result rather than converted on the way out). Same discipline as the memory slice: `.as_str()` appears only where the value is being USED as text — `id_resolve::resolve` takes a `&str` by design because it also serves rooms and cards — never to satisfy a signature. Running total across the three slices: 39 persona params + the memory API + the resolver itself. `persona_id: String` is down from 55 to 16 in the crate, and every one that remains is an internal struct holding an already-resolved id (those want `PeerId`, the next slice) rather than an unresolved caller reference. Tests: full lib test build clean, commands suite passes. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(rag/introspect): last persona PARAMS typed — and the RAG source path carries it down Fourth slice. `CognitionTraceParams`, the four other introspect params, `CognitionReplayParams` + result, `RagComposeRequest`, and `DatasetFromTurnsParams` now carry `PersonaRef`. The RAG one went two levels deep rather than stopping at the param: `load_source`, `load_memory_source`, and `load_consciousness_source` all take `&PersonaRef` now, which deleted the two `&persona_id.into()` conversions the memory slice had left at those call sites. That is the shape to aim for — when the type reaches the bottom, the adapters in the middle disappear rather than accumulating. `persona_id: String` in continuum-core: 55 → 8. Every remaining one is an internal RECORD (memory/types, should_respond's AIDecisionContext, live/types, projection, shell_types, ai/types, sentinel) holding a value copied from a param. Those are deliberately NOT converted to `PeerId` yet. They hold whatever the caller sent, and nothing on those paths resolves — typing them as an identity today would assert something the code does not do, which is worse than leaving them `String`. They become `PeerId` in the same slice that wires `resolve_persona` into those paths, not before (#164/#396). Tests: replay 3, rag 18, full lib test build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(test): 5 supervisor tests have been panicking since #398 slice 3 — the stub's premise expired `StubAircCitizen::subscribe_all_rooms` was an `unreachable!()` justified by a comment that said no test drives it. That was true when written and stopped being true at bf11a66a7 (#398 slice 3), which gave `PersonaSupervisor::materialize` a `subscribe_all_rooms` call to wire the doctrine/wall cache invalidators. Every supervisor test that materializes an adapter has been dying in that panic since — 5 of the 10, and they only surface on a FULL-suite run, which is how they sat unnoticed. Found while verifying my own id-typing slices: full suite came back 7073 passed / 5 failed, and the first question was whether I caused it. I did not — the diff of my five commits touches `commands/persona/*` only, never `persona/supervisor.rs` or `persona/airc_citizen.rs`, and `git log` on those two files points at #398. Fix: return `AircError::Transport` instead of panicking. This is NOT a fallback — the caller already handles that exact case explicitly (keeps both sources uncached, "correct, just slow", logs loud), so the tests now exercise the real degradation branch rather than aborting, and a stub still never pretends to hold a live stream. An empty stream WOULD have been the fallback: it would have looked like a working subscription that silently never invalidates. Comment rewritten to state what is true now, including why the old assertion was right when it was written. An assertion that outlives its premise is worse than no assertion — it reads as a guarantee. persona::supervisor: 10/10 pass. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(test): pin the stub's REFUSAL contract — the old test asserted the panic I removed `stub_subscribe_panics_loudly` existed to prove the `unreachable!()` fired, so removing that panic left the assertion failing for the right reason. Rewritten to pin what the contract actually is now: Err(Transport) — required Err(anything else) — fail (the caller branches on Transport specifically) Ok(stream) — fail LOUDEST, because that is the real fallback: a stub handing back a stream looks like a live subscription that silently never invalidates Matched rather than `expect_err`d because `FilteredEventStream` is not `Debug`. FULL LIB SUITE NOW GREEN: 7078 passed, 0 failed, 42 ignored. Before this session's last two commits it was 7073/5 — five supervisor tests panicking since #398 slice 3, only visible on a full run. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * test(identity): CI guard — a String-typed identity field must be DECLARED, or the build fails Joel: "eliminate all smell or you will copy it." That is literally the mechanism — a model reading this tree learns its conventions FROM it, and `persona_id: String` was 55 sites teaching that ids are text. I did exactly that this session: minted `c0de0001-…` fake UUIDs because fake-looking ids were already normal here. Prose in CLAUDE.md does not stop that. A failing test does. Three tests in identity/mod.rs, running on every PR via the existing `cargo test -p continuum-core --lib` workflow (no skip pattern matches them): 1. `every_string_typed_identity_field_is_declared` — walks src/, finds any `<identity-name>_id: String | Option<String>` field, and fails unless it appears in LOOSE_IDS. Comments stripped first, so a doc line can never register as a field. The error names the file:field and tells the reader which typed form to reach for (`PeerId` for an actor, `PersonaRef` for an unresolved reference, a `*Id(Uuid)` newtype otherwise). 2. `no_declaration_outlives_its_defect` — a declaration whose field HAS been fixed fails too. Learned directly from `StubAircCitizen::subscribe_all_rooms`, whose comment stayed true-sounding for months after its premise expired and cost 5 silently-failing tests. 3. `declarations_carry_a_real_reason` — every entry starts with external:/pending:/ defect: and is longer than a shrug, the same bar the module-wiring audit (#344) holds. 73 declarations, honestly categorized: - **external** — LiveKit participant/room ids, log-envelope correlation fields. Another system owns the wire format. - **pending** — ours, but nothing on that path RESOLVES yet. Typing it as an identity today would assert something the code does not do. Converts in the slice that wires resolution (#164/#396). - **defect** — `peer_id: String` × 5. These ARE `PeerId`. I attempted the conversion in this session and reverted it: `PeerId` has no `JsonSchema` impl and the construction sites hold `&str`, so it needs its own slice rather than a rushed cascade. Declared as a defect so it stays visible instead of blending in. POSITIVE CONTROL, because a guard nobody has watched fail is the exact shape of defect I found earlier today: added `struct PositiveControlProbe { pub owner_id: String }`, confirmed the guard failed naming `identity/mod.rs: owner_id`, removed it, confirmed green. The guard also caught 12 sites my own inventory grep had missed — it is already strictly better than the method I was auditing with. Full lib suite: 7081 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cli): `continuum start` execs the installed server — building is now --from-source `start` shelled unconditionally into tools/scripts/start-server.sh, which runs a full cargo build. A "governed" lifecycle verb was a wrapper around a bash file that only exists inside a repo checkout (BigMama's find, 2026-08-13): - a user holding ONLY the installed binary, with no source tree, could not start a core at all; - the CLI printed one line then went silent for the length of a compile — called hung three separate times; - the façade's honesty depended entirely on the script underneath. Same class as the rest of the night's defects: a governed surface over a hand-rolled path. Now: `launch_core` locates the installed `continuum-core-server` (CONTINUUM_CORE_SERVER override → next to the running exe → ~/.continuum/bin → target/{release,debug} walking up) and execs it directly, keeping the existing detach/log/pidfile handling unchanged. Building is an EXPLICIT request (`continuum start --from-source`), never the silent default, and the no-binary fallback says WHY it fell back and that it compiles first, rather than going quiet for minutes. The override refuses loudly when set but not a file — a wrong override must not look like an absent one. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(core): tree is GREEN again — 7081/0 (peer_id → PeerId finished, guard debt cleared) The working tree could not build tests. This finishes the identity-typing work that broke it and clears the guard debt it left behind. `cargo test -p continuum-core --lib --features metal,accelerate`: 7081 passed, 0 failed. PEER_ID IS A TYPE, NOT TEXT. The production conversions landed earlier; the test fixtures were left holding `&str`, so the crate compiled and the test target did not. Fixtures now derive a real UUID from the literal they used to carry (v5 under NAMESPACE_OID), which preserves every cross-site equality the tests depended on — "peer-a" in two places is still the same peer, it is just an id now instead of a name in costume. CAUGHT BY DOING IT: contracts/verification had the manifest keyed by a derived PeerId while the EVENT still claimed a raw string signer. The lookup is BY that signer, so converting one side made every verification test fail as MissingPeerManifest. One `test_peer_id` / `test_peer_str` pair now feeds both sides — the same shape of defect the newtype exists to prevent, reproduced in the fixtures while removing it from production. REAL HARDENING, not just fixture churn: `AircPeerManifest::validate` had DROPPED its empty-peer_id check on the theory that typing the field made it impossible. Typing killed `""`. It did NOT kill `Uuid::nil()`, which is still constructible and still means nobody — the type narrowed the hole rather than closing it. The guard is back, at the remaining expressible form. GUARD DEBT CLEARED: loose_id_guard's `no_declaration_outlives_its_defect` went red, correctly — four `peer_id` entries in LOOSE_IDS described fields that are now `PeerId`. Removed. The guard failing here is it working: a declaration list that can rot into a graveyard is worth nothing. Also includes the accumulated session tree: the Joel→Operator fixture sweep (no person's name hardcoded in test data), ts-rs regeneration, and rustfmt across the crate. That is why this touches ~717 files; the behavioural change is the identity typing and the nil-PeerId guard. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(tests): a subsystem-named room does not belong in a fixture either `k3-serving` had no lifetime because it was named for a SUBSYSTEM, so it never died — a month-old durable subscription whose board reads were all corpses. Parted from both scopes. It also sat in TEST FIXTURES, which is the transmission vector: fixtures teach the next reader the convention, so a fixture naming a room after a subsystem teaches that rooms are named for subsystems. Renamed to `bench-swe-run-1` — an activity with a lifetime, which is what a room IS. The two remaining mentions in work.rs are the INCIDENT RECORD (4 of 12 cards there carried a 134h-expired lease) and are kept, now annotated RETIRED so nobody copies the naming from them. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(benchmark): an UNGRADEABLE grade is an ABSENCE, not a capability zero — carry it on the wire and the board `SweGradeResult.error` documents its own contract: "a result with `error` is an ABSENCE, not a zero, and must never be tallied as a failed attempt." The grader earns that honestly — for the env class it re-runs the PRISTINE tree before declaring a fault, so a genuinely broken patch is never mislabelled. Then both consumers dropped the classification: - `benchmark.attempt.end` / `benchmark.autograde` published `resolved=false gate_ok=false` and nothing else. Every wire consumer (probe router → rooms, exam-room widgets, pulse monitors) reads that as a citizen who tried and lost. - `fold_run_card` read the RESULT's `infra_error` but never the GRADE's `error`, so the board folded `resolved: false` + phase `failed` for the same runs. The attempt loop already broke correctly on `g.error.is_some()` (attempts 2 and 3 were never burned) — the loss was purely in what got PUBLISHED, which is the part anything downstream can actually read. Measured on this box 2026-08-13: 8 of 36 distinct instances (14 of 91 receipts, 22%) grade UNGRADEABLE — requests, pylint, pytest and sympy. Every one of those zeros was indistinguishable from a capability failure on the wire, so the denominator of any rate computed off this stream was poisoned. Found by digging into sympy__sympy-11400: p2p 0/29 on the PRISTINE tree, i.e. the suite does not run in that environment at all. (#380/#383 own fixing the environments; this commit owns never again reporting their faults as scores.) - attempt.end + autograde now carry `ungradeable` + `grade_error` - `infra_error` takes the grade's error too — one field meaning "no valid verdict, and why", fed by both sources rather than a second parallel field - `resolved` returns to `None` when ungradeable — the same "no verdict" a pre-grade card carries, because that is the truth - new phase `ungradeable`, ordered ahead of `failed` (a run can carry both a failed marker and an ungradeable grade; the absence is the truer of the two) Test asserts absence-not-zero on the real sympy-11400 shape, with a positive control (same shape, no grade error) that must still fold as a capability zero — so the test cannot pass by simply never reporting failure. This is the #384/#386 class one layer up: those classified INFRA at the solve level, this classifies it at the GRADE level and gets it onto the wire. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(swe): gold-gate the harness — refuse an env whose pytest cannot RUN, instead of caching a tree that grades every attempt UNGRADEABLE Root cause of the 22% ungradeable rate, glass-boxed on sympy__sympy-11400. The era pin at the top of this block downgrades pytest to the instance's own date, which is right when the era INTERPRETER rung (#2253) found a matching interpreter. When it can't — no Python 3.5 on a modern macOS — the venv falls back to a modern interpreter while pytest stays pinned to the instance's year, and the resulting PAIR can be structurally unable to run. Measured: pytest 2.9.2 (correct for 2016) on Python 3.9.6 dies in `pytest_configure` with INTERNALERROR before collecting anything — reproduced on a two-line trivial test, outside the repo, no conftest, no sympy involved. Every test then "fails", the pristine p2p reads 0/29, the tree grades UNGRADEABLE. 8 of 36 distinct instances on this box are in that state. So: prove the harness executes before handing the env to a citizen. A version pin is a GUESS about compatibility; running it is the evidence. `--version` is not enough — it answers happily for a pytest that dies on any real run. This REFUSES rather than self-heals, and that is measured, not assumed. The obvious repair (reinstall a modern pytest) was tried against this exact tree and does NOT work: pytest 8.4.2 → loads, dies in sympy 1.0's 2016 conftest on the `py.path` hook API removed in pytest 7 pytest 6.2.5 → dies on `py.test.mark.slow`, removed in pytest 4 pytest 2.9.2 → cannot run on Python 3.9 at all The band that both RUNS on 3.9 and LOADS a 2016 conftest is EMPTY. No version choice rescues this class, so an auto-repair would silently trade one void tree for another. What DOES work, verified on this tree — 30/30 passing — is sympy's OWN runner (`sympy.test(...)`) on the same interpreter. That is #383's shape ("django needs its OWN test runner") generalised: the runner is a property of the repo era, not a pytest version to search for. `run_tests` is pytest-only today, so until it grows a runner seam this env genuinely cannot produce a verdict — and it now says so loudly, naming the incompatibility and pointing at the runner gap, instead of caching a broken env for every later run to inherit. [[brittleness-is-the-highest-priority-work-there-is]] — heal what is known-safe, REPORT what needs a human decision. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(arch): benchmarks are ADAPTERS into recipes/activities — never a parallel runner (Joel's ruling, + STOP gate) The consequence that makes it law: the learning flywheel consumes ROOM TURNS (L1 lifts tool-traces from captured turns, L2 triggers on turn-completion). A detached agent/solve writing progress/<run>.grade.json produces NO turns — so a citizen can burn 12 acts, write a patch, take a graded verdict, and none of it reaches the curriculum. Maximum effort, zero learning. That, not the pass rate, is why benchmarks have failed. Names what is parallel today (ledger files, scraped probes, a second board projection in fold_run_card, private grade.json), the target shape (import task+oracle only → project into a recipe → the ROOM is the runner → grading is the activity outcome → learning falls out because the work happened as turns), and a one-line acceptance test: can a citizen standing in the room perceive the run's state through the same ViewState pipe the human's screen uses? Adds a CLAUDE.md STOP gate over benchmark.rs / agent/solve.rs / swe_bench.rs so an agent arriving under amnesia must read it before touching run state. Written because that is exactly what happened: this session shipped two correct fixes that HARDEN the parallel path instead of dissolving it, including adding a field to a benchmark probe so external consumers could parse it better — which is the smell the doc now names. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(activity): a room's recipe binding finally has a READER — every room resolves to what it IS (#6/#274/#329) `activity/spawn` has always published a room→recipe binding to the wall, and its own doc says why: "Without this the room forgets which recipe it is and every client falls back to projecting it as a plain chat room." That was accurate. The binding had NO READER. `RECIPE_WALL_CATEGORY` appeared in exactly one file — the writer — plus a test asserting the string equals "recipe". So the whole recipe layer was live and inert at once: recipes authored as data, a `RecipeExperienceSource` projecting them, four shipped manifests including a benchmark carrying scoreboard/central/feed regions — and `DefaultRoomPurpose` answering "chat" for every room in existence, so none of it ever resolved. A benchmark run's room and a chat room were the same object to every renderer AND to the citizen standing inside one. That is what "benchmarks are a parallel system" looks like at the substrate: not a missing feature, a write with no reader ([[a-correct-check-that-nothing-calls-is-nastier-than-a-missing-one]]). - `experience/binding.rs` — `RoomRecipeBinding` + `project_binding`, the typed body and the one rule for turning a room's wall into its identity. Sibling of `standing.rs`, same shape and the same fail-loud stance: no binding is `Ok(None)` (a bare `airc join` makes a chat room), an UNREADABLE binding is an error, never a silent downgrade to chat. - `ipc/recipe_room_purpose.rs` — `RecipeRoomPurpose`, the `RoomPurposeSource` impl the seam's own doc has been waiting for. Event-invalidated cache, not a per-read fetch: `purpose_for` is sync and sits on the projection's store path, so an owner task folds `wall:changed` and re-reads the authoritative binding (the supersede chain is airc-owned and cannot be reconstructed from a delta — same discipline as the wall projector). Seeds every subscribed room at boot so an activity spawned before this core booted resolves without waiting for someone to re-pin something. - `activity/spawn` now SERIALIZES the shared type instead of a hand-authored `json!`. Both sides agree by construction — which mattered exactly zero while nothing read it, and matters permanently now. - `positron_source::spawn` takes the purpose source by injection; boot passes the live index when a daemon is present, `default_source()` (every room → chat) when headless. Honest edges, all pinned by tests: an unbound room, an unreadable binding, and a failed read all resolve to "chat" — the seam is total — but the two failures say so LOUDLY on the probe stream (`activity.purpose.unreadable_binding`, `activity.purpose.read_failed`). A binding naming a purpose no recipe declares resolves verbatim, and `RecipeExperienceSource` then honestly returns no manifest rather than substituting one. Known follow-up, named rather than hidden: this adds a FOURTH node airc reader (presence/wall/kanban/purpose). Consolidating them onto one attach is real work and is not this commit. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(activity): the purpose index must SAY it ran — a silent fold is indistinguishable from a dead one First live test of the purpose index produced zero probes, and I could not tell from the evidence whether that meant "attached, seeded, nothing bound" or "never spawned". The store on disk settled it, but only because I went looking for a sqlite file — the component itself said nothing either way. That ambiguity is the defect ([[a-correct-check-that-nothing-calls-is-nastier-than-a-missing-one]]). - attach logs like its three sibling node readers (presence/wall/kanban all do) - `activity.purpose.seeded` on every boot with {rooms, bound} — "0 bound of 1" is a FACT, and a different fact from silence - `activity.purpose.refreshed` on every wall-change cue, so the invalidation path is observed rather than inferred (wall changes are rare; the probe costs nothing) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(persona): RAG is a RenderTarget — one ViewState renders to eyes AND mind (the pattern) `ACTIVITY-ROOM-PATTERNS.md` has said this since it was written: "the same transform serves a human's eyes and a persona's mind, because RAG is a render target, not a separate pipeline" … "the human's UI and the persona's grounding are the same projection rendered two ways — they cannot drift, because there is one definition" … "Never render the two from separate code." The code rendered them from separate code anyway. The human's roster comes from `RosterViewState` on the served Substrate; the citizen's came from `persona::room_roster_source` — a second reader, own fetch, own freshness, own failure modes. Same for the board (`KanbanViewState` vs `room_board_source`) and the wall. Three parallel pairs, and one of them was MEASURED delivering a live peer's name ZERO times into a citizen's prompt while the browser rendered that peer fine. This is the compression, not new architecture: - `RagRenderable` — a tiny per-kind impl: KIND (the SAME const the web subscribes to), block label, expand verb, measured floor, salience-ordered units, room scope. - `ViewStateRagSource<V>` — ONE generic adapter making any such kind a `RagSource`. Budgeting, packing, cursors, token estimation, honest-empty, and the room gate are written once. N kinds cost N small impls and zero new plumbing. Properties that fall out rather than being bolted on: - **Cannot drift** — the adapter reads the SAME Substrate the WS server serves. - **Freshness** — no second fold to lag, so the #346 staleness class (citizen trusts an empty board while the announcement is fresh) can't recur here by construction. - **Degrades** — units pack most-salient-first, so a tight window yields FEWER members, never a chopped one (the property `floor_tokens` exists to protect). - **One room gate** — reuses `room_scope_allows`, the shared predicate, rather than a second copy of the same decision. Outlier-validated per CLAUDE.md's methodical process, both in one file so a bad abstraction fails immediately: - A: `RosterViewState` — people, identity, room-scoped. The measured defect's cure. - B: `BenchViewState` — numbers, no identity, per-row verdicts, node-scoped. B needed ZERO adapter changes, which is the whole test. chat / kanban / wall / serving / nav / foundry are now registrations, not builds. 5/5 tests green, each with a `// what this catches:`. One test's arithmetic was wrong on the first run (budget 12 fit all three ~4-token member lines); the PACKING was correct and the test was fixed to 8 — noted in the test itself, because "make the failing assert pass" is how a real invariant gets quietly weakened. NOT YET WIRED into prompt assembly — the seam exists and is proven; swapping the three bespoke sources over is the next commit, so the swap can be reviewed as a behavior change on its own. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(persona): name the substrate prerequisite IN the module, before someone swaps a source onto it The obvious next move on `viewstate_rag` is to rebind `room_roster_source` at supervisor.rs onto the new adapter. Reading the substrate first showed that would be a REGRESSION, so the module now says so at the top where a future reader will actually be standing. The `Substrate` cache is keyed by KIND ALONE — positron's own `revisions.rs` names the `(room_id, kind)` tuple as a future extension. So the node substrate holds ONE room's roster: the focused room's. Swapping today means this adapter's room gate correctly abstains for every persona whose turn is in a different room, and personas are first-class MULTI-room subscribers. Most citizens would go BLIND rather than mis-sighted — trading "sometimes wrong" for "reliably empty" is not a repair. Filed the prerequisite as #408 (per-room substrate key) with the acceptance test: two personas in DIFFERENT rooms each receive THEIR room's roster in one tick. This is the note I would have wanted before shipping the swap, not after. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(positron): per-ROOM substrates — the keystone that lets a citizen read HER room (#408) The node's cache is keyed by KIND ALONE. `scoping.rs` said it in its own words — "Everything else is per-room and stays on the node substrate" — which is the bug in one sentence: those kinds are TREATED as per-room but share ONE store, so the node holds whichever room wrote last (the FOCUSED room) and every other room reads empty. That is what blocks the citizen side of positron. `persona/viewstate_rag.rs` makes any ViewState a RagSource so a citizen and a browser read ONE definition — but a persona is a first-class MULTI-room subscriber, so under one shared slot most citizens would get an EMPTY roster rather than a wrong one. "Reliably blind" is worse than "sometimes wrong", which is why that swap was NOT made first. The fix is not new machinery — it is the SECOND INSTANCE of a pattern already here: `PER_USER_KINDS` + `PerUserSubstrates` already solve "N scopes share a kind namespace" for citizens (nav). This adds the room axis in the same shape: - `PER_ROOM_KINDS = [chat, roster, kanban, wall]` — open by data, like PER_USER_KINDS - `PerRoomSubstrates::for_room(room)` — one substrate per room, created on first use - `CompositeCache` routes THREE scopes: per-user → citizen store, per-room → room store, everything else (bench, serving, system-metrics) → the node store, because those describe the NODE and have no scope to route to. ADDITIVE ON PURPOSE. `CompositeCache::new` is preserved verbatim and still resolves room kinds from the node store, so every existing caller keeps today's behavior; scoping is opt-in via `CompositeCache::scoped`. A migration that silently re-pointed every reader would make "did this change anything?" unanswerable. 8/8 green. The acceptance test is the one that matters: `two_rooms_each_keep_their_own_state_in_the_same_tick` — two rooms, each reads ITS OWN state, neither overwritten. Plus: writer and reader of one room share ONE store (no second fold to go stale — the #346 class), the unscoped constructor is unchanged, and the three-way route neither merges nor leaks across scopes. No positron-core change, no wire change, no tag bump — entirely in-tree. My first estimate of this task understated it and my second overstated it as a cross-language contract change; reading `scoping.rs` settled it as an in-tree application of an existing pattern. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(positron): the chat projection writes per-ROOM as well as node — one fold, two sinks (#408) Per-room substrates existed as of the previous commit and were EMPTY: nothing wrote to them, so they were a correct mechanism with no data — the same write-with-no-reader shape as the recipe binding, inverted. `ChatProjection::store` now mirrors every per-room envelope (chat, roster, the Experience manifest) into that room's own store via ONE helper, `store_room_scoped`. One place decides the dual-sink rule, so a future kind cannot be added to one sink and forgotten in the other. ONE FOLD, TWO SINKS — not two folds. The projection computes the view once and the SAME `StateEnvelope` (same revision) lands in both stores. A second FOLD is what goes stale (#346, where a citizen trusted an empty board while the announcement was fresh); a second SINK of one fold cannot drift from itself. Web behavior is untouched: the node substrate still receives everything exactly as before, so the focused-room session reads what it always read. The per-room stores are additive and, until a consumer names its room, unread. `rooms: None` in tests and headless keeps today's path. 19/19 green. The new test is the crux: two rooms speak, B last; the NODE ends on B (unchanged focused-room behavior) while room A's OWN store still holds A's view with A's message. That is precisely the state the single-slot cache used to destroy, and it is what `ViewStateRagSource` needs in order to hand a citizen HER room. Still not wired to a consumer — ipc/mod.rs must construct the registry and pass it in, then the roster source can flip. Kept separate so the wiring is reviewable as its own behavior change. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(persona): a citizen reads WHO IS PRESENT from the same projection the browser renders (#408) The last two wires. The roster a persona grounds on is no longer a second reader of airc — it is `ViewStateRagSource<RosterViewState>` over HER room's own store, which is the SAME `RosterViewState` the web roster renders. - `ipc::global_room_substrates()` — the process-global `PerRoomSubstrates`, same `OnceLock` shape as `global_nav_focus`. The WRITER (the chat projection, in the WS boot block) and the READER (a persona's grounding, bound at spawn in supervisor) are constructed in different places and MUST land on one registry; two registries would be two stores, which is the exact defect being removed. - `positron_source::spawn` takes the registry and threads it to the projection. - `supervisor` binds the ViewState-backed roster instead of `RoomRosterSource`. This is the repair for the measured defect: a live peer's name appeared ZERO times in a citizen's prompt while the browser rendered that peer fine, because the two read different code. Now there is one definition and two render targets — eyes and mind cannot drift, because there is nothing to drift from. `room_roster_source` is left in the tree untouched (still used by the presence emitter and the experience resolver); it is simply no longer the persona's roster. No dead-code scaffolding was added to "preserve a rollback" — `git revert` is the rollback, and a dead fn kept for comfort is clutter. 24/24 green across positron_source + viewstate_rag. NOT yet live-verified — the acceptance test is a real turn's prompt capture containing a peer's name, which is the next step and the only evidence that counts here ([[never-blind]]: a fix I cannot prove reached the running binary is a fix I have not made). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cli): restore the deploy path — reboot builds again, and the socket reaches the server Two defects, both introduced by 7e0c5469a ("`continuum start` execs the installed server"), both in the ONE function `start` and `reboot` share. The change was right for `start` and wrong for `reboot`, and `launch_core` had no way to tell them apart. 1. THE SOCKET WAS NEVER PASSED. The direct-exec path handed the socket to the server over CONTINUUM_CORE_SOCKET and omitted the positional argument. `main.rs` requires argv[1] and exits 1 with its usage text without it — so on any machine with an installed binary, every `start` and every `reboot` died ~2s in, having written Usage: continuum-core-server [--mode=<MODE>] <socket-path> into the start log and nothing else. Measured here tonight: the reboot killed the old core's claim on the swap, the new one never came up, and only the surviving old process kept the system answering. 2. REBOOT STOPPED BUILDING. `reboot` is THE deploy path ("edit → reboot → exercise"). Preferring the installed artifact made it structurally unable to ship an edit: it printed "building fresh binary, then swapping" and exec'd a binary from Jul 13. Every fix made since would have been invisible to the running core, and the only thing standing between that and a false success line was #194's provenance check. The fix makes the source policy an explicit argument instead of an ambient default, because the two callers want opposite things: `start` wants a core RUNNING (installed artifact is correct, and the no-source-tree user 7e0c5469a was written for keeps working), `reboot` wants the core built FROM THIS CHECKOUT. `plan_launch` resolves (policy, env override, script?, artifact?) as a pure function — 7 tests, one per branch, each naming the failure it prevents. A reboot on an installed node with no checkout still restarts the artifact, but through a distinct variant that forces the CLI to SAY nothing was rebuilt rather than let a restart pass as a deploy. Server side: `continuum-core-server` was the one component in the tree hand-rolling its own socket resolution (argv or die) while `continuum`, `continuum-mcp` and every library caller go through `endpoint_paths::core_socket_path()`. argv[1] still wins; absent it, the server now agrees with everyone else instead of exiting. That disagreement is what let defect 1 exist at all — the launcher communicated over a channel the listener had never been told to read. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(deploy): publish the verified core binary to the installed path every deploy `continuum start` execs the INSTALLED continuum-core-server (building is reserved for `reboot`), and the resolver checks ~/.continuum/bin BEFORE any cargo target dir. But that copy was written once by install.sh and never refreshed by a deploy — so on a machine that has been deploying for a month, `continuum start` silently boots a month-old core while the freshly-built one sits unused in the cache. Measured on the M5 tonight: installed artifact dated Jul 13, running build 4705, HEAD 4712. And it was not theoretical — a stray auto-start off that stale copy during a reboot is exactly what tripped the #194 deploy-provenance mismatch and cost an hour of misreading a deploy that had actually built fine. This script already publishes the CLI into ~/.local/bin on every deploy, with a comment arguing precisely this ("refreshes each deploy so PATH always points at the current build"). The core-server was simply omitted from that reasoning. Now it isn't. Placed AFTER the #194 freshness guard and before exec, so the installed artifact is only ever replaced by a binary just proven to match source — never a stale or half-built one. Atomic temp+mv so a concurrent `continuum start` cannot exec a half-written file. Non-fatal, and it says out loud when it cannot publish, because the consequence the operator needs to hear is "`continuum start` may boot an OLDER core than this one". Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(persona): one contract, one spelling — a ViewState states its floor the way every other RagSource does CI red on PR #2282, my defect. `cargo test -p continuum-core --lib` failed one test out of 7,042: cognition::context_budget::tests::no_new_hardcoded_context_or_prompt_size_constant_anywhere_in_the_crate The guard (context_budget.rs:356-365) matches any `const` whose name contains WINDOW|CONTEXT|CTX|TOKEN|PROMPT|CHARS, of an integer type, assigned a bare decimal literal. `const FLOOR_TOKENS: u32 = 10` (roster) and `= 18` (bench) matched on TOKEN. The number was never the problem — it is a per-UNIT content floor ("one roster line costs ~10 tokens"), not a context bound, and it does not scale with the served window. The problem is that I expressed it in a SHAPE nobody else uses. Every other source states the same fact as a function: room_board_source.rs:293 fn floor_tokens(&self) -> u32 { 32 } room_roster_source.rs:286 fn floor_tokens(&self) -> u32 { 0 } room_doctrine_source.rs:151 fn floor_tokens(&self) -> u32 { 0 } rag_budget.rs:475 fn floor_tokens(&self) -> u32; // the contract So `RagRenderable` grew a SECOND spelling of one contract — an associated const beside the trait method it feeds. That is the duplication the compression principle forbids, and it landed in the very file meant to be the template every future ViewState source gets copied from. The guard fired on the new shape, which is exactly its job. Fix: `const FLOOR_TOKENS: u32` becomes `fn floor_tokens() -> u32`, matching the established idiom. One contract, one spelling; the guard passes as a CONSEQUENCE of saying it the normal way rather than as the goal. Deliberately NOT done: no `// context-budget-exempt:` line (the escape hatch exists, but an exemption would preserve the second spelling — the actual defect), and no weakening of the guard. Guard test: 1 passed. viewstate_rag tests: 5 passed. Clean `cargo check --lib`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * glass-box(persona): say WHAT the rejected event was, not just which branch refused it (#410) Measured today: every `airc msg` a human sends reaches EVERY citizen's subscribe stream (12/12 raw_events, sender 7711fe60) and is dropped as `no_continuum_body_hint`. Cause is in `realtime_wire::envelope_from_event` (:58-68) — it returns Ok(None) unless HEADER_FORGE_BODY_HINT == CONTINUUM_BODY_HINT, a stamp only continuum's OWN clients apply. The message is refused before its content is ever read, so a human talking to the room over the CLI is structurally unheard while the browser renders it fine (`airc.chat.projected` fires every time). The fix is one more arm in `room_turn_from_event`. It needs the CLI's actual body shape, and the probe could not supply it: `reason` names the BRANCH that refused the event, never the SHAPE that was refused. Attempts to recover the shape out-of-band failed — `airc events list --kind message` returns 0 in BOTH the project and machine-account scopes while returning 60 system-kind events, so the persisted view disagrees with what delivery demonstrably did. So instrument rather than guess. A decoder arm written against a GUESSED body is exactly how presence and control frames become fabricated perception — the hazard the existing named-skip contract exists to prevent. Next session reads one real body and writes the arm against a fact. Adds `event_kind` (the TranscriptKind, which IS the receive-side discriminator — note FrameKind lives on Frame and does NOT survive to TranscriptEvent) and a 160-char `body_preview` to the ALREADY-firing filtered_non_turn line. No new probe class, no new event, and the stream-chunk skip above stays deliberately unprobed — this cannot reintroduce the flood that skip removes. Behaviour unchanged: diagnostics only. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(inference): a context overflow is a TYPE, not a prose string — and stop deep-cloning every wire body Two defects, one cause: information that was already structured got flattened into a String (or copied wholesale) at a boundary, and every consumer downstream had to guess or pay for it. 1. INFERENCE ERRORS WERE STRINGS. `ai/openai_adapter.rs` returns `Err(format!("... returned 400 ..."))`; there was no typed inference error anywhere in the core (grep: 0 hits for `enum InferenceError|AdapterError| GenerateError`). So `cognition::act_observe::settle` could not distinguish a transient backend wedge from a deterministic context overflow, and retried BOTH blind. Blind retry is right for the wedge (#386 measured ~2/3 recovery) and catastrophic for the overflow: same prompt, same slot, same 400, forever. Measured live 2026-08-13 on the Devstral lane — four overflows, each overshooting by a small margin, each retried to exhaustion, each burning a whole turn: request (15697 tokens) exceeds the available context size (15104 tokens) request (16751 tokens) exceeds the available context size (16384 tokens) llama-server hands us the machine-readable tag AND both numbers. We format!-ed them into prose and threw the structure away. `ai/inference_error.rs` parses that body ONCE, at the seam, into `ContextExceeded { requested, available }` / `Unavailable` / `Transient` / `Protocol`, and exposes the predicate the settle loop could not express: `is_retryable_unchanged()`. No consumer of this type ever matches on prose; if you want to, the missing thing is a variant. Cost: the JSON parse is gated on 400 — the only status that can BE an overflow — so every other failure classifies without touching the body, and nothing runs on the success path. 2. EVERY CONTINUUM WIRE BODY WAS DEEP-CLONED TO READ IT. `airc/realtime_wire.rs` did `serde_json::from_value(value.clone())` — `from_value` consumes by value, so the clone was reflexive. That is a full copy of the payload per event PER PERSONA, since every citizen's subscribe stream sees every event. `&Value` is itself a Deserializer, so the envelope is now read in place. This is the same O(personas x payload) waste the stream-chunk header guard directly above already exists to avoid (documented there: 2644 of 4776 filtered events were chunks, decoded-then-discarded by each of four personas). The header decides; the body is never copied to find out. NOT fixed here, deliberately: `SettleStep::InferenceFailed` still carries a String, so settle.rs:337 still retries overflows blind. Threading the type through `workspace.rs` changes the adapter trait signature (`Result<_, String>` -> `Result<_, InferenceError>`, 15 sites in adapter.rs alone) and is its own commit. This one lands the keystone + tests so that threading is a mechanical change against a proven type. Verified: cargo check clean (no new warnings); 7 new tests green, each with a `// what this catches:` naming the live defect or the over-eager-classification hazard it guards. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * perf(wire): borrow-decode the two hottest payloads — stop deep-cloning the whole prompt per generation Same shape as 62547d09e, two more sites, found by auditing `from_value(x.clone())` on per-event and per-turn paths. `serde_json::from_value` consumes by value, so every one of these clones exists ONLY to satisfy that signature — `&Value` is itself a Deserializer and decodes in place. - `runtime/airc_interceptor.rs`: for `ai/generate` the command params ARE the TextGenerationRequest, i.e. the whole prompt. `params` is already `&Value` (line 114). We were deep-copying the largest payload in the system on EVERY generation, purely to hand it to `from_value`. - `airc/inbound_attach.rs`: `payload.inline.clone()?` copied the whole inline capacity payload per inbound event. `.as_ref()?` borrows instead. Two more of the identical shape remain, deliberately not touched here so this stays one reviewable idea: `persona/viewstate_rag.rs:179` (per RAG render) and `persona/service_loop.rs:1783` (per turn). Also worth a follow-up: `runtime/command_envelope.rs:47` shows `from_value(params.clone())` in a DOC COMMENT — the pattern is being taught, which is how it spread. Verified: cargo check clean, no new warnings. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * glass-box(inference): classify the backend rejection at the seam and probe it — say WHICH failure this was Follow-on to 62547d09e. `ai/inference_error.rs` existed but nothing on the live path called it. Now the one site that still holds both the HTTP status and the raw body (openai_adapter.rs, the non-success arm of the streaming chat request) runs `InferenceError::from_http` and emits the classification as a probe: ai.request.rejected provider status retryable_unchanged requested_tokens available_tokens SCOPE, stated honestly: this is INSTRUMENTATION, not the retry fix. The trait's error type is still `String`, so `cognition::act_observe::settle` still cannot match on the variant and still retries every fault blind. What changes is that an operator reading the receipt can finally tell a transient wedge from a deterministic context overflow — and for an overflow, sees BOTH token counts instead of prose. Until the type reaches settle, this probe is the only place that distinction is visible anywhere in the system. Why that is worth landing alone: the #400 mechanism was misdiagnosed for days (Metal wedge -> window-number bug -> estimator undercount, all disproven) purely because every failure class looked identical downstream. The next 400 labels itself. `retryable_unchanged=false` on a receipt is the standing evidence that the blind retry is burning a turn — it is the exact predicate the threading commit will act on. Verified: cargo check clean, no new warnings. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(inference): prefill is PROGRESS and queue wait is not SILENCE — stop killing healthy turns at 90s (#400/#385) MEASURED on the live lane, and it reframes #400 entirely: the backend was never wedged. WE were cancelling it. llama-server's own log, task 775: n_tokens= 2048 progress=0.12 290 tok/s n_tokens= 6144 progress=0.36 n_tokens=12288 progress=0.73 145 tok/s <- healthy, still climbing W srv stop: cancel task, id_task = 775 <- ~90s in, OUR cancel Task 776 identical. Each cancel also evicts the slot's prompt cache ("removing oldest entry (size = 2240.790 MiB)"), so the retry re-prefills from zero and can never do better — which is where #266's 96.3%-prefill / 5.5%-cache-hit shape comes from. TWO different silences were being policed by ONE 90s budget: 1. PREFILL. `return_progress` defaults false and we never set it, so the server says NOTHING between accepting the request and the first token. Measured: a ~20k-token prompt produced ZERO bytes for 286 SECONDS. A citizen at 89.5% window occupancy (delib.turn.demand: demand=25671 of context_window=28672) was structurally incapable of ever emitting a token. Fix: request `return_progress` (gated on the existing typed llamacpp_sampling_extensions capability, beside cache_prompt), parse the frame, and count a RISING `processed` as progress. Strictly `>`, so a frozen counter — the actual #385 wedge signature — still fails in 90s. The detector keeps its teeth; it just stops failing healthy work. 2. QUEUE WAIT. Measured positive control: a TINY 2,237-token prompt got its first byte of any kind at t=115.2s, then prefilled and answered within 7s. The slot was busy with a co-tenant for 115s. total_slots=1 with four citizens, so this expires the 90s budget routinely on a perfectly healthy lane — and it is contention, not death. Fix: before the slot starts our work the bound is PRE_STREAM_HEADER_TIMEOUT (300s), which already carries exactly this justification in its own doc …
joelteply
added a commit
that referenced
this pull request
Aug 20, 2026
…#441) (#2339) * fix(ids): UUIDs are not strings — mint real ones, and stop typing ids as text (#274/#396) Joel, 2026-08-13: "Always use uuid and never corrupt them with random prefixes" and "UUID's are NOT strings. If you're using strings for id you are writing slop." Both landed on code written minutes earlier, and the grep that followed found the same defect older and wider than my one file. Three fixes, in order of how badly they were wrong: 1. The four shipped recipe ids were hand-drawn patterns (c0de0001-0000-4000-...), a name wearing a UUID's costume — readable, collidable, and fake. Replaced with genuine v4s in both the authored JSON and the `shipped::` constants, written grouped (0xfed332c3_383c_45bb_...) so the two are checkable by eye. 2. comms::{MessageId, CorrelationId} were `String` newtypes. `MessageId::new("msg-1")` let any caller invent a namespace that collides with every other caller's. Both are now `Uuid`: MessageId::new() MINTS (no caller-supplied form exists), and CorrelationId::of_exchange(id) states the derivation the old `CorrelationId(id.0.clone())` left implicit. Still distinct TYPES — the compiler, not a naming convention, is what stops one being passed as the other. 3. EndpointId is deleted. Its values were `EndpointId::new("browser")` and `("rust-core")` — a client-kind label standing in for an identity, and with it the assumption that the web client is a distinguished endpoint. It is one client among many (mobile, SDK, TUI, another node's core). TransportEnvelope.source and .target are now PeerId, the substrate's one actor identity per identity/mod.rs. Zero callers outside comms/mod.rs; the stale generated binding goes too. Also closes the on-disk authoring hole the required `id` field opened: a recipe file that names no id now gets one DERIVED from its purpose (RFC 4122 v5 under a frozen namespace), so "author a file, zero code" keeps meaning zero code — no uuidgen — and every node that loads the same file agrees on its identity with nothing to reconcile. A recipe that DOES carry an id keeps it verbatim. Tests: comms 23 pass (envelope wire shape now asserts ids round-trip as their own UUIDs; minted_message_ids_are_unique pins the collision fix), experience 43 pass including the previously-failing an_experience_authored_on_disk_needs_no_rust. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(CLAUDE.md): headless Rust core is the system — Node is ONE client, not the deploy path Joel, 2026-08-13: "Headless rust period. No need for node to run everything except for the web interface which is one of many, including mobile apps/sdk." — and then, because I kept treating the correction as a code-only matter: "Fix these severe misunderstandings ... regardless of where they are." This file is where the misunderstanding REPRODUCES. It is loaded into every agent session, and it opened with "EVERY TIME YOU EDIT CODE: Run `npm start` (MANDATORY)" under `cd src` — a directory that no longer exists — plus "ALL Rust binaries MUST be built via npm start". A fresh agent under amnesia reads that and concludes Node runs the system. It doesn't, and `continuum --help` has been saying so in its own first line the whole time: "build + run the headless Rust core". Rewrote the CRITICAL WORKFLOW section around what is actually true, and swept the other 11 Node-as-deploy claims scattered through the file: - The core is Rust and boots with no Node. Node builds the WEB desktop, which is one client among several (mobile, SDK, TUI, MCP, another node's core over the grid). Named the consequence, because it already cost us: a feature that lives in a client exists only for that client — how voice ended up web-only with every other citizen structurally mute (#58). Behaviour goes in the core; clients render. - The deploy path is `continuum reboot` (Rust build + relaunch + running-SHA verify), with `deploy-verify` and the version trio called out — that verification exists because a reboot once shipped a stale binary and reported success (#194). - `cargo build` stays discouraged for the RIGHT reason (a hand-built binary exists only on your machine, and a fresh clone must work with no manual steps, #291) — not the old implication that Rust must be built through npm. `cargo check` is named as the correct type-check-while-you-work tool, with the shared CARGO_TARGET_DIR. - `npm run build:ts` now says what it actually covers: the web client, and nothing about whether the core compiles. - Flagged `./jtag` inline as the legacy Node CLI. Left the invocations that follow, since their command NAMES are still accurate — it is the driver that is stale. No code change; the one surviving "npm start" is the sentence warning you off it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cli): `uu` is the alias — `cu` is UUCP, and every harness defaulted to a binary that does not exist Joel: "Cu conflicts with some Unix program. Fix for all cases including windows" and "It's a bug Claude" — it is, and worse than doc drift. `cu` is /usr/bin/cu (UUCP call-unix) on every Unix. `uu` — the double-U of contin-UU-m — is THE official short alias, and start-server.sh has installed exactly that (plus a squatter guard) since 2026-08-01, with a comment naming this very collision. Nothing in the tree installs `cu`. But the REFERENCES never followed: - Six benchmark harnesses defaulted to `~/.continuum/cache/cargo-target/{release,debug}/cu`. Neither file exists — the only built CLI is `release/continuum`. So the default resolved to nothing and every default-args run died at the first invocation. matrix.py even carries a comment about this exact class of failure biting once before (2026-07-22, stale debug-only default silently no-opping the sweep). - Fixed by RESOLVING rather than renaming: a shared `_resolve_cli()` prefers what is actually installed on PATH (`uu`, then `continuum`) and falls back to the release build — so it works from a fresh clone, an installed box, or a dev tree, on any platform, instead of hard-coding one machine's layout. - Flag renamed `--cu` → `--uu` with all in-repo call sites updated (sweep_all → matrix → headtohead → preflight_gpu chain). Also swept 53 `cu <command>` occurrences in docs, Rust comments, and generated-TS doc comments to `uu`. Left the ones that are ABOUT the collision (memory-bridge README's "never bare `cu`", WAKEUP-AND-JOIN's rename note) — those are correct as written, and legacy/ stays quarantined. README dev section reworked in the same pass: the boot path is `continuum start` / `continuum reboot` / `continuum ping`, with Node named as what it actually is — the web client's build dependency, one client among mobile/SDK/TUI/MCP, not the thing that runs the system. Verified: all six harnesses compile (py_compile), cargo check clean, zero `target/{release,debug}/cu` paths left in the tree. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(core): the last Python in the runtime path — one vestigial, one silently swallowing the job Joel: "Fix all nodejs and python dependencies that are breaking our headless rust core ... we must find all smell all the time and never ignore it." AUDIT RESULT FIRST, because one half is good news: Node spawns from the running core: ZERO. `Command::new("node"|"npm"|"npx"| "deno"|"bun")` has no occurrences anywhere in continuum-core. The core is genuinely headless Rust at runtime; Node exists only to build the web client. Python spawns from the running core: FOUR sites, and neither kind was honest. 1. THREE were vestigial and were hiding untested code. `file_engine.rs` had three `#[test]`s opening with `if Command::new("python3").arg("--version").output() .is_err() { return; }` — a skip-guard from when the syntax gate shelled out to `python3 -m py_compile`. That interpreter is GONE: the production path is `code::syntax::validator_for` → `unbound_calls`, pure Rust. So on any box without python3 — a CI runner, a fresh clone — three tests reported PASS while asserting nothing at all. Guards removed; all 55 file_engine tests pass without an interpreter present, which is the proof they never needed one. Also corrected the doc on `introduced_undefined_calls`, which still told the reader the analysis returns None when there is "no python". There is no python. 2. ONE is a REAL runtime dependency, and it was failing silently. `forge/start` spawns `python3 <alloy_executor>` — a script that lives in the SIBLING sentinel-ai repo, which a fresh clone of continuum does not have. When `find_alloy_executor()` returned None the handler used pid 0 and wrote `state: "queued"` — indistinguishable from a job legitimately waiting its turn. So on every machine that had only cloned this repo, `forge/start` returned SUCCESS for work that nothing would ever run. Now it fails loud, names the missing script, says where to get it, and states plainly that the job was NOT queued. The dependency itself is still there — excising it to Rust is #52/#99 — but it can no longer pretend to have worked. The pattern in both: a Python dependency that had already been removed or had never been satisfiable, still shaping behaviour through a stale guard and a fallback. `[[fallbacks-are-illegal-fail-loud]]`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(identity): PersonaRef vs PeerId — a reference is not an identity, and the compiler now knows Joel: "UUID's are NOT strings … Well defined and named structs by reference must be used." Chasing that through persona_id turned up something sharper than the count. THE FINDING. `PersonaWorkspaceRegistry::resolve_persona` exists specifically to close what its own doc calls "the loose-`String` id boundary … the defect class that fed a dead id to a doomed eval." It has SEVEN call sites. SIX are its own tests. ONE is production (eval.rs). Against 55 `persona_id: String` fields. The check was correct and essentially nothing called it — a correct check nothing calls is nastier than a missing one, because it reads as covered. Nothing forced the call, because both sides were `String`. THE FIX — two types, one door: - `PersonaRef` (new, in identity/): what a CALLER writes — full UUID, 8-char short-id, or name. Explicitly NOT an identity. Its only accessor is `as_str()`; there is no `as_peer_id()`, because a name is ambiguous, mutable, and meaningless without a roster. - `PeerId` (existing canonical actor identity): what everything downstream holds. - `resolve_persona(&PersonaRef) -> Result<PeerId, _>` is now the ONLY bridge. Taking the newtype rather than `&str` is what makes resolution unskippable. `From<PeerId> for PersonaRef` exists (an identity is always a valid reference to itself); the reverse deliberately does not — it requires a roster. Wire shape is unchanged: `#[serde(transparent)]` over the same string callers already send, so no client, recipe, or stored payload changes. Short-id and name PX (#161) keeps working — that ergonomics is the whole reason a reference type has to exist separately rather than everything becoming a UUID. Converted, types pushed DOWN rather than laundered at the seam: - `CognitionEvalParams.persona_id` → `PersonaRef` - `restore_persona_workspace(&PersonaRef)` (was `&str`) - `append_failed_ledger(&PersonaRef, …)` (was `&str`) HELD, and stated rather than fudged: `CognitionEvalResult.persona_id` stays `String`. The struct derives `Default` across 21 fields and a persona reference has no sensible default — an empty one is a nonsense value that reads as a real answer. The real fix is splitting the fire-and-poll HANDLE from the completed RESULT (a handle knows only the requested ref; a result knows the resolved id), which is its own slice. Inventing a default to satisfy the type checker is the `unwrap_or` reflex: compiler quiet, runtime wrong. The reason is recorded at the field. Tests: persona_workspace 10, eval 22, identity 23 — all pass; full lib test build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(memory): the memory layer takes PersonaRef, not loose text — 21 sites Second slice of the id-typing migration. All ten `commands/memory/*` params plus the `MemoryManager` API they call now carry `PersonaRef` instead of `String`/`&str`: append_memory, append_event, load_corpus, has_corpus, get_corpus, multi_layer_recall, consciousness_context, persona_db_handle, hydrate_corpus_if_missing. Types went DOWN into the layer rather than being unwrapped at each call — the whole point of the previous slice. `.as_str()` now appears only where the value is genuinely being USED as text (a map key, a `starts_with` shape check, a directory handle), never to satisfy a signature one call later. Two `Default` derives removed (`ConsciousnessContextParams`, `LoadCorpusParams`) rather than giving `PersonaRef` a default. No caller used `::default()` on either, and an empty persona reference is a nonsense value that reads as a real answer — same reasoning as the eval result field held in the previous commit. What this makes visible, and does not yet fix: these commands still never RESOLVE. They accept a reference and hand it straight to the storage layer as a key, so a name or short-id reaches the DB unresolved. That was invisible while everything was `String`; it is now legible in the signatures. Wiring `resolve_persona` into the memory command path is the next slice (#164/#396). Tests: memory 219, rag 150 — all pass. Full lib test build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(commands): persona params carry PersonaRef — agent/solve, persona/*, cognition/observe Third slice. Seven more command param structs stop typing a persona reference as `String`: agent/solve, persona/identity/{get,set}, persona/instances/{get,despawn}, persona/wall/pin, cognition/observe (params + the `assemble` signature + its `Meta`, so the type is consistent through the result rather than converted on the way out). Same discipline as the memory slice: `.as_str()` appears only where the value is being USED as text — `id_resolve::resolve` takes a `&str` by design because it also serves rooms and cards — never to satisfy a signature. Running total across the three slices: 39 persona params + the memory API + the resolver itself. `persona_id: String` is down from 55 to 16 in the crate, and every one that remains is an internal struct holding an already-resolved id (those want `PeerId`, the next slice) rather than an unresolved caller reference. Tests: full lib test build clean, commands suite passes. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(rag/introspect): last persona PARAMS typed — and the RAG source path carries it down Fourth slice. `CognitionTraceParams`, the four other introspect params, `CognitionReplayParams` + result, `RagComposeRequest`, and `DatasetFromTurnsParams` now carry `PersonaRef`. The RAG one went two levels deep rather than stopping at the param: `load_source`, `load_memory_source`, and `load_consciousness_source` all take `&PersonaRef` now, which deleted the two `&persona_id.into()` conversions the memory slice had left at those call sites. That is the shape to aim for — when the type reaches the bottom, the adapters in the middle disappear rather than accumulating. `persona_id: String` in continuum-core: 55 → 8. Every remaining one is an internal RECORD (memory/types, should_respond's AIDecisionContext, live/types, projection, shell_types, ai/types, sentinel) holding a value copied from a param. Those are deliberately NOT converted to `PeerId` yet. They hold whatever the caller sent, and nothing on those paths resolves — typing them as an identity today would assert something the code does not do, which is worse than leaving them `String`. They become `PeerId` in the same slice that wires `resolve_persona` into those paths, not before (#164/#396). Tests: replay 3, rag 18, full lib test build clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(test): 5 supervisor tests have been panicking since #398 slice 3 — the stub's premise expired `StubAircCitizen::subscribe_all_rooms` was an `unreachable!()` justified by a comment that said no test drives it. That was true when written and stopped being true at bf11a66a7 (#398 slice 3), which gave `PersonaSupervisor::materialize` a `subscribe_all_rooms` call to wire the doctrine/wall cache invalidators. Every supervisor test that materializes an adapter has been dying in that panic since — 5 of the 10, and they only surface on a FULL-suite run, which is how they sat unnoticed. Found while verifying my own id-typing slices: full suite came back 7073 passed / 5 failed, and the first question was whether I caused it. I did not — the diff of my five commits touches `commands/persona/*` only, never `persona/supervisor.rs` or `persona/airc_citizen.rs`, and `git log` on those two files points at #398. Fix: return `AircError::Transport` instead of panicking. This is NOT a fallback — the caller already handles that exact case explicitly (keeps both sources uncached, "correct, just slow", logs loud), so the tests now exercise the real degradation branch rather than aborting, and a stub still never pretends to hold a live stream. An empty stream WOULD have been the fallback: it would have looked like a working subscription that silently never invalidates. Comment rewritten to state what is true now, including why the old assertion was right when it was written. An assertion that outlives its premise is worse than no assertion — it reads as a guarantee. persona::supervisor: 10/10 pass. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(test): pin the stub's REFUSAL contract — the old test asserted the panic I removed `stub_subscribe_panics_loudly` existed to prove the `unreachable!()` fired, so removing that panic left the assertion failing for the right reason. Rewritten to pin what the contract actually is now: Err(Transport) — required Err(anything else) — fail (the caller branches on Transport specifically) Ok(stream) — fail LOUDEST, because that is the real fallback: a stub handing back a stream looks like a live subscription that silently never invalidates Matched rather than `expect_err`d because `FilteredEventStream` is not `Debug`. FULL LIB SUITE NOW GREEN: 7078 passed, 0 failed, 42 ignored. Before this session's last two commits it was 7073/5 — five supervisor tests panicking since #398 slice 3, only visible on a full run. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * test(identity): CI guard — a String-typed identity field must be DECLARED, or the build fails Joel: "eliminate all smell or you will copy it." That is literally the mechanism — a model reading this tree learns its conventions FROM it, and `persona_id: String` was 55 sites teaching that ids are text. I did exactly that this session: minted `c0de0001-…` fake UUIDs because fake-looking ids were already normal here. Prose in CLAUDE.md does not stop that. A failing test does. Three tests in identity/mod.rs, running on every PR via the existing `cargo test -p continuum-core --lib` workflow (no skip pattern matches them): 1. `every_string_typed_identity_field_is_declared` — walks src/, finds any `<identity-name>_id: String | Option<String>` field, and fails unless it appears in LOOSE_IDS. Comments stripped first, so a doc line can never register as a field. The error names the file:field and tells the reader which typed form to reach for (`PeerId` for an actor, `PersonaRef` for an unresolved reference, a `*Id(Uuid)` newtype otherwise). 2. `no_declaration_outlives_its_defect` — a declaration whose field HAS been fixed fails too. Learned directly from `StubAircCitizen::subscribe_all_rooms`, whose comment stayed true-sounding for months after its premise expired and cost 5 silently-failing tests. 3. `declarations_carry_a_real_reason` — every entry starts with external:/pending:/ defect: and is longer than a shrug, the same bar the module-wiring audit (#344) holds. 73 declarations, honestly categorized: - **external** — LiveKit participant/room ids, log-envelope correlation fields. Another system owns the wire format. - **pending** — ours, but nothing on that path RESOLVES yet. Typing it as an identity today would assert something the code does not do. Converts in the slice that wires resolution (#164/#396). - **defect** — `peer_id: String` × 5. These ARE `PeerId`. I attempted the conversion in this session and reverted it: `PeerId` has no `JsonSchema` impl and the construction sites hold `&str`, so it needs its own slice rather than a rushed cascade. Declared as a defect so it stays visible instead of blending in. POSITIVE CONTROL, because a guard nobody has watched fail is the exact shape of defect I found earlier today: added `struct PositiveControlProbe { pub owner_id: String }`, confirmed the guard failed naming `identity/mod.rs: owner_id`, removed it, confirmed green. The guard also caught 12 sites my own inventory grep had missed — it is already strictly better than the method I was auditing with. Full lib suite: 7081 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cli): `continuum start` execs the installed server — building is now --from-source `start` shelled unconditionally into tools/scripts/start-server.sh, which runs a full cargo build. A "governed" lifecycle verb was a wrapper around a bash file that only exists inside a repo checkout (BigMama's find, 2026-08-13): - a user holding ONLY the installed binary, with no source tree, could not start a core at all; - the CLI printed one line then went silent for the length of a compile — called hung three separate times; - the façade's honesty depended entirely on the script underneath. Same class as the rest of the night's defects: a governed surface over a hand-rolled path. Now: `launch_core` locates the installed `continuum-core-server` (CONTINUUM_CORE_SERVER override → next to the running exe → ~/.continuum/bin → target/{release,debug} walking up) and execs it directly, keeping the existing detach/log/pidfile handling unchanged. Building is an EXPLICIT request (`continuum start --from-source`), never the silent default, and the no-binary fallback says WHY it fell back and that it compiles first, rather than going quiet for minutes. The override refuses loudly when set but not a file — a wrong override must not look like an absent one. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(core): tree is GREEN again — 7081/0 (peer_id → PeerId finished, guard debt cleared) The working tree could not build tests. This finishes the identity-typing work that broke it and clears the guard debt it left behind. `cargo test -p continuum-core --lib --features metal,accelerate`: 7081 passed, 0 failed. PEER_ID IS A TYPE, NOT TEXT. The production conversions landed earlier; the test fixtures were left holding `&str`, so the crate compiled and the test target did not. Fixtures now derive a real UUID from the literal they used to carry (v5 under NAMESPACE_OID), which preserves every cross-site equality the tests depended on — "peer-a" in two places is still the same peer, it is just an id now instead of a name in costume. CAUGHT BY DOING IT: contracts/verification had the manifest keyed by a derived PeerId while the EVENT still claimed a raw string signer. The lookup is BY that signer, so converting one side made every verification test fail as MissingPeerManifest. One `test_peer_id` / `test_peer_str` pair now feeds both sides — the same shape of defect the newtype exists to prevent, reproduced in the fixtures while removing it from production. REAL HARDENING, not just fixture churn: `AircPeerManifest::validate` had DROPPED its empty-peer_id check on the theory that typing the field made it impossible. Typing killed `""`. It did NOT kill `Uuid::nil()`, which is still constructible and still means nobody — the type narrowed the hole rather than closing it. The guard is back, at the remaining expressible form. GUARD DEBT CLEARED: loose_id_guard's `no_declaration_outlives_its_defect` went red, correctly — four `peer_id` entries in LOOSE_IDS described fields that are now `PeerId`. Removed. The guard failing here is it working: a declaration list that can rot into a graveyard is worth nothing. Also includes the accumulated session tree: the Joel→Operator fixture sweep (no person's name hardcoded in test data), ts-rs regeneration, and rustfmt across the crate. That is why this touches ~717 files; the behavioural change is the identity typing and the nil-PeerId guard. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(tests): a subsystem-named room does not belong in a fixture either `k3-serving` had no lifetime because it was named for a SUBSYSTEM, so it never died — a month-old durable subscription whose board reads were all corpses. Parted from both scopes. It also sat in TEST FIXTURES, which is the transmission vector: fixtures teach the next reader the convention, so a fixture naming a room after a subsystem teaches that rooms are named for subsystems. Renamed to `bench-swe-run-1` — an activity with a lifetime, which is what a room IS. The two remaining mentions in work.rs are the INCIDENT RECORD (4 of 12 cards there carried a 134h-expired lease) and are kept, now annotated RETIRED so nobody copies the naming from them. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(benchmark): an UNGRADEABLE grade is an ABSENCE, not a capability zero — carry it on the wire and the board `SweGradeResult.error` documents its own contract: "a result with `error` is an ABSENCE, not a zero, and must never be tallied as a failed attempt." The grader earns that honestly — for the env class it re-runs the PRISTINE tree before declaring a fault, so a genuinely broken patch is never mislabelled. Then both consumers dropped the classification: - `benchmark.attempt.end` / `benchmark.autograde` published `resolved=false gate_ok=false` and nothing else. Every wire consumer (probe router → rooms, exam-room widgets, pulse monitors) reads that as a citizen who tried and lost. - `fold_run_card` read the RESULT's `infra_error` but never the GRADE's `error`, so the board folded `resolved: false` + phase `failed` for the same runs. The attempt loop already broke correctly on `g.error.is_some()` (attempts 2 and 3 were never burned) — the loss was purely in what got PUBLISHED, which is the part anything downstream can actually read. Measured on this box 2026-08-13: 8 of 36 distinct instances (14 of 91 receipts, 22%) grade UNGRADEABLE — requests, pylint, pytest and sympy. Every one of those zeros was indistinguishable from a capability failure on the wire, so the denominator of any rate computed off this stream was poisoned. Found by digging into sympy__sympy-11400: p2p 0/29 on the PRISTINE tree, i.e. the suite does not run in that environment at all. (#380/#383 own fixing the environments; this commit owns never again reporting their faults as scores.) - attempt.end + autograde now carry `ungradeable` + `grade_error` - `infra_error` takes the grade's error too — one field meaning "no valid verdict, and why", fed by both sources rather than a second parallel field - `resolved` returns to `None` when ungradeable — the same "no verdict" a pre-grade card carries, because that is the truth - new phase `ungradeable`, ordered ahead of `failed` (a run can carry both a failed marker and an ungradeable grade; the absence is the truer of the two) Test asserts absence-not-zero on the real sympy-11400 shape, with a positive control (same shape, no grade error) that must still fold as a capability zero — so the test cannot pass by simply never reporting failure. This is the #384/#386 class one layer up: those classified INFRA at the solve level, this classifies it at the GRADE level and gets it onto the wire. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(swe): gold-gate the harness — refuse an env whose pytest cannot RUN, instead of caching a tree that grades every attempt UNGRADEABLE Root cause of the 22% ungradeable rate, glass-boxed on sympy__sympy-11400. The era pin at the top of this block downgrades pytest to the instance's own date, which is right when the era INTERPRETER rung (#2253) found a matching interpreter. When it can't — no Python 3.5 on a modern macOS — the venv falls back to a modern interpreter while pytest stays pinned to the instance's year, and the resulting PAIR can be structurally unable to run. Measured: pytest 2.9.2 (correct for 2016) on Python 3.9.6 dies in `pytest_configure` with INTERNALERROR before collecting anything — reproduced on a two-line trivial test, outside the repo, no conftest, no sympy involved. Every test then "fails", the pristine p2p reads 0/29, the tree grades UNGRADEABLE. 8 of 36 distinct instances on this box are in that state. So: prove the harness executes before handing the env to a citizen. A version pin is a GUESS about compatibility; running it is the evidence. `--version` is not enough — it answers happily for a pytest that dies on any real run. This REFUSES rather than self-heals, and that is measured, not assumed. The obvious repair (reinstall a modern pytest) was tried against this exact tree and does NOT work: pytest 8.4.2 → loads, dies in sympy 1.0's 2016 conftest on the `py.path` hook API removed in pytest 7 pytest 6.2.5 → dies on `py.test.mark.slow`, removed in pytest 4 pytest 2.9.2 → cannot run on Python 3.9 at all The band that both RUNS on 3.9 and LOADS a 2016 conftest is EMPTY. No version choice rescues this class, so an auto-repair would silently trade one void tree for another. What DOES work, verified on this tree — 30/30 passing — is sympy's OWN runner (`sympy.test(...)`) on the same interpreter. That is #383's shape ("django needs its OWN test runner") generalised: the runner is a property of the repo era, not a pytest version to search for. `run_tests` is pytest-only today, so until it grows a runner seam this env genuinely cannot produce a verdict — and it now says so loudly, naming the incompatibility and pointing at the runner gap, instead of caching a broken env for every later run to inherit. [[brittleness-is-the-highest-priority-work-there-is]] — heal what is known-safe, REPORT what needs a human decision. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(arch): benchmarks are ADAPTERS into recipes/activities — never a parallel runner (Joel's ruling, + STOP gate) The consequence that makes it law: the learning flywheel consumes ROOM TURNS (L1 lifts tool-traces from captured turns, L2 triggers on turn-completion). A detached agent/solve writing progress/<run>.grade.json produces NO turns — so a citizen can burn 12 acts, write a patch, take a graded verdict, and none of it reaches the curriculum. Maximum effort, zero learning. That, not the pass rate, is why benchmarks have failed. Names what is parallel today (ledger files, scraped probes, a second board projection in fold_run_card, private grade.json), the target shape (import task+oracle only → project into a recipe → the ROOM is the runner → grading is the activity outcome → learning falls out because the work happened as turns), and a one-line acceptance test: can a citizen standing in the room perceive the run's state through the same ViewState pipe the human's screen uses? Adds a CLAUDE.md STOP gate over benchmark.rs / agent/solve.rs / swe_bench.rs so an agent arriving under amnesia must read it before touching run state. Written because that is exactly what happened: this session shipped two correct fixes that HARDEN the parallel path instead of dissolving it, including adding a field to a benchmark probe so external consumers could parse it better — which is the smell the doc now names. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(activity): a room's recipe binding finally has a READER — every room resolves to what it IS (#6/#274/#329) `activity/spawn` has always published a room→recipe binding to the wall, and its own doc says why: "Without this the room forgets which recipe it is and every client falls back to projecting it as a plain chat room." That was accurate. The binding had NO READER. `RECIPE_WALL_CATEGORY` appeared in exactly one file — the writer — plus a test asserting the string equals "recipe". So the whole recipe layer was live and inert at once: recipes authored as data, a `RecipeExperienceSource` projecting them, four shipped manifests including a benchmark carrying scoreboard/central/feed regions — and `DefaultRoomPurpose` answering "chat" for every room in existence, so none of it ever resolved. A benchmark run's room and a chat room were the same object to every renderer AND to the citizen standing inside one. That is what "benchmarks are a parallel system" looks like at the substrate: not a missing feature, a write with no reader ([[a-correct-check-that-nothing-calls-is-nastier-than-a-missing-one]]). - `experience/binding.rs` — `RoomRecipeBinding` + `project_binding`, the typed body and the one rule for turning a room's wall into its identity. Sibling of `standing.rs`, same shape and the same fail-loud stance: no binding is `Ok(None)` (a bare `airc join` makes a chat room), an UNREADABLE binding is an error, never a silent downgrade to chat. - `ipc/recipe_room_purpose.rs` — `RecipeRoomPurpose`, the `RoomPurposeSource` impl the seam's own doc has been waiting for. Event-invalidated cache, not a per-read fetch: `purpose_for` is sync and sits on the projection's store path, so an owner task folds `wall:changed` and re-reads the authoritative binding (the supersede chain is airc-owned and cannot be reconstructed from a delta — same discipline as the wall projector). Seeds every subscribed room at boot so an activity spawned before this core booted resolves without waiting for someone to re-pin something. - `activity/spawn` now SERIALIZES the shared type instead of a hand-authored `json!`. Both sides agree by construction — which mattered exactly zero while nothing read it, and matters permanently now. - `positron_source::spawn` takes the purpose source by injection; boot passes the live index when a daemon is present, `default_source()` (every room → chat) when headless. Honest edges, all pinned by tests: an unbound room, an unreadable binding, and a failed read all resolve to "chat" — the seam is total — but the two failures say so LOUDLY on the probe stream (`activity.purpose.unreadable_binding`, `activity.purpose.read_failed`). A binding naming a purpose no recipe declares resolves verbatim, and `RecipeExperienceSource` then honestly returns no manifest rather than substituting one. Known follow-up, named rather than hidden: this adds a FOURTH node airc reader (presence/wall/kanban/purpose). Consolidating them onto one attach is real work and is not this commit. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(activity): the purpose index must SAY it ran — a silent fold is indistinguishable from a dead one First live test of the purpose index produced zero probes, and I could not tell from the evidence whether that meant "attached, seeded, nothing bound" or "never spawned". The store on disk settled it, but only because I went looking for a sqlite file — the component itself said nothing either way. That ambiguity is the defect ([[a-correct-check-that-nothing-calls-is-nastier-than-a-missing-one]]). - attach logs like its three sibling node readers (presence/wall/kanban all do) - `activity.purpose.seeded` on every boot with {rooms, bound} — "0 bound of 1" is a FACT, and a different fact from silence - `activity.purpose.refreshed` on every wall-change cue, so the invalidation path is observed rather than inferred (wall changes are rare; the probe costs nothing) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(persona): RAG is a RenderTarget — one ViewState renders to eyes AND mind (the pattern) `ACTIVITY-ROOM-PATTERNS.md` has said this since it was written: "the same transform serves a human's eyes and a persona's mind, because RAG is a render target, not a separate pipeline" … "the human's UI and the persona's grounding are the same projection rendered two ways — they cannot drift, because there is one definition" … "Never render the two from separate code." The code rendered them from separate code anyway. The human's roster comes from `RosterViewState` on the served Substrate; the citizen's came from `persona::room_roster_source` — a second reader, own fetch, own freshness, own failure modes. Same for the board (`KanbanViewState` vs `room_board_source`) and the wall. Three parallel pairs, and one of them was MEASURED delivering a live peer's name ZERO times into a citizen's prompt while the browser rendered that peer fine. This is the compression, not new architecture: - `RagRenderable` — a tiny per-kind impl: KIND (the SAME const the web subscribes to), block label, expand verb, measured floor, salience-ordered units, room scope. - `ViewStateRagSource<V>` — ONE generic adapter making any such kind a `RagSource`. Budgeting, packing, cursors, token estimation, honest-empty, and the room gate are written once. N kinds cost N small impls and zero new plumbing. Properties that fall out rather than being bolted on: - **Cannot drift** — the adapter reads the SAME Substrate the WS server serves. - **Freshness** — no second fold to lag, so the #346 staleness class (citizen trusts an empty board while the announcement is fresh) can't recur here by construction. - **Degrades** — units pack most-salient-first, so a tight window yields FEWER members, never a chopped one (the property `floor_tokens` exists to protect). - **One room gate** — reuses `room_scope_allows`, the shared predicate, rather than a second copy of the same decision. Outlier-validated per CLAUDE.md's methodical process, both in one file so a bad abstraction fails immediately: - A: `RosterViewState` — people, identity, room-scoped. The measured defect's cure. - B: `BenchViewState` — numbers, no identity, per-row verdicts, node-scoped. B needed ZERO adapter changes, which is the whole test. chat / kanban / wall / serving / nav / foundry are now registrations, not builds. 5/5 tests green, each with a `// what this catches:`. One test's arithmetic was wrong on the first run (budget 12 fit all three ~4-token member lines); the PACKING was correct and the test was fixed to 8 — noted in the test itself, because "make the failing assert pass" is how a real invariant gets quietly weakened. NOT YET WIRED into prompt assembly — the seam exists and is proven; swapping the three bespoke sources over is the next commit, so the swap can be reviewed as a behavior change on its own. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(persona): name the substrate prerequisite IN the module, before someone swaps a source onto it The obvious next move on `viewstate_rag` is to rebind `room_roster_source` at supervisor.rs onto the new adapter. Reading the substrate first showed that would be a REGRESSION, so the module now says so at the top where a future reader will actually be standing. The `Substrate` cache is keyed by KIND ALONE — positron's own `revisions.rs` names the `(room_id, kind)` tuple as a future extension. So the node substrate holds ONE room's roster: the focused room's. Swapping today means this adapter's room gate correctly abstains for every persona whose turn is in a different room, and personas are first-class MULTI-room subscribers. Most citizens would go BLIND rather than mis-sighted — trading "sometimes wrong" for "reliably empty" is not a repair. Filed the prerequisite as #408 (per-room substrate key) with the acceptance test: two personas in DIFFERENT rooms each receive THEIR room's roster in one tick. This is the note I would have wanted before shipping the swap, not after. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(positron): per-ROOM substrates — the keystone that lets a citizen read HER room (#408) The node's cache is keyed by KIND ALONE. `scoping.rs` said it in its own words — "Everything else is per-room and stays on the node substrate" — which is the bug in one sentence: those kinds are TREATED as per-room but share ONE store, so the node holds whichever room wrote last (the FOCUSED room) and every other room reads empty. That is what blocks the citizen side of positron. `persona/viewstate_rag.rs` makes any ViewState a RagSource so a citizen and a browser read ONE definition — but a persona is a first-class MULTI-room subscriber, so under one shared slot most citizens would get an EMPTY roster rather than a wrong one. "Reliably blind" is worse than "sometimes wrong", which is why that swap was NOT made first. The fix is not new machinery — it is the SECOND INSTANCE of a pattern already here: `PER_USER_KINDS` + `PerUserSubstrates` already solve "N scopes share a kind namespace" for citizens (nav). This adds the room axis in the same shape: - `PER_ROOM_KINDS = [chat, roster, kanban, wall]` — open by data, like PER_USER_KINDS - `PerRoomSubstrates::for_room(room)` — one substrate per room, created on first use - `CompositeCache` routes THREE scopes: per-user → citizen store, per-room → room store, everything else (bench, serving, system-metrics) → the node store, because those describe the NODE and have no scope to route to. ADDITIVE ON PURPOSE. `CompositeCache::new` is preserved verbatim and still resolves room kinds from the node store, so every existing caller keeps today's behavior; scoping is opt-in via `CompositeCache::scoped`. A migration that silently re-pointed every reader would make "did this change anything?" unanswerable. 8/8 green. The acceptance test is the one that matters: `two_rooms_each_keep_their_own_state_in_the_same_tick` — two rooms, each reads ITS OWN state, neither overwritten. Plus: writer and reader of one room share ONE store (no second fold to go stale — the #346 class), the unscoped constructor is unchanged, and the three-way route neither merges nor leaks across scopes. No positron-core change, no wire change, no tag bump — entirely in-tree. My first estimate of this task understated it and my second overstated it as a cross-language contract change; reading `scoping.rs` settled it as an in-tree application of an existing pattern. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(positron): the chat projection writes per-ROOM as well as node — one fold, two sinks (#408) Per-room substrates existed as of the previous commit and were EMPTY: nothing wrote to them, so they were a correct mechanism with no data — the same write-with-no-reader shape as the recipe binding, inverted. `ChatProjection::store` now mirrors every per-room envelope (chat, roster, the Experience manifest) into that room's own store via ONE helper, `store_room_scoped`. One place decides the dual-sink rule, so a future kind cannot be added to one sink and forgotten in the other. ONE FOLD, TWO SINKS — not two folds. The projection computes the view once and the SAME `StateEnvelope` (same revision) lands in both stores. A second FOLD is what goes stale (#346, where a citizen trusted an empty board while the announcement was fresh); a second SINK of one fold cannot drift from itself. Web behavior is untouched: the node substrate still receives everything exactly as before, so the focused-room session reads what it always read. The per-room stores are additive and, until a consumer names its room, unread. `rooms: None` in tests and headless keeps today's path. 19/19 green. The new test is the crux: two rooms speak, B last; the NODE ends on B (unchanged focused-room behavior) while room A's OWN store still holds A's view with A's message. That is precisely the state the single-slot cache used to destroy, and it is what `ViewStateRagSource` needs in order to hand a citizen HER room. Still not wired to a consumer — ipc/mod.rs must construct the registry and pass it in, then the roster source can flip. Kept separate so the wiring is reviewable as its own behavior change. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(persona): a citizen reads WHO IS PRESENT from the same projection the browser renders (#408) The last two wires. The roster a persona grounds on is no longer a second reader of airc — it is `ViewStateRagSource<RosterViewState>` over HER room's own store, which is the SAME `RosterViewState` the web roster renders. - `ipc::global_room_substrates()` — the process-global `PerRoomSubstrates`, same `OnceLock` shape as `global_nav_focus`. The WRITER (the chat projection, in the WS boot block) and the READER (a persona's grounding, bound at spawn in supervisor) are constructed in different places and MUST land on one registry; two registries would be two stores, which is the exact defect being removed. - `positron_source::spawn` takes the registry and threads it to the projection. - `supervisor` binds the ViewState-backed roster instead of `RoomRosterSource`. This is the repair for the measured defect: a live peer's name appeared ZERO times in a citizen's prompt while the browser rendered that peer fine, because the two read different code. Now there is one definition and two render targets — eyes and mind cannot drift, because there is nothing to drift from. `room_roster_source` is left in the tree untouched (still used by the presence emitter and the experience resolver); it is simply no longer the persona's roster. No dead-code scaffolding was added to "preserve a rollback" — `git revert` is the rollback, and a dead fn kept for comfort is clutter. 24/24 green across positron_source + viewstate_rag. NOT yet live-verified — the acceptance test is a real turn's prompt capture containing a peer's name, which is the next step and the only evidence that counts here ([[never-blind]]: a fix I cannot prove reached the running binary is a fix I have not made). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cli): restore the deploy path — reboot builds again, and the socket reaches the server Two defects, both introduced by 7e0c5469a ("`continuum start` execs the installed server"), both in the ONE function `start` and `reboot` share. The change was right for `start` and wrong for `reboot`, and `launch_core` had no way to tell them apart. 1. THE SOCKET WAS NEVER PASSED. The direct-exec path handed the socket to the server over CONTINUUM_CORE_SOCKET and omitted the positional argument. `main.rs` requires argv[1] and exits 1 with its usage text without it — so on any machine with an installed binary, every `start` and every `reboot` died ~2s in, having written Usage: continuum-core-server [--mode=<MODE>] <socket-path> into the start log and nothing else. Measured here tonight: the reboot killed the old core's claim on the swap, the new one never came up, and only the surviving old process kept the system answering. 2. REBOOT STOPPED BUILDING. `reboot` is THE deploy path ("edit → reboot → exercise"). Preferring the installed artifact made it structurally unable to ship an edit: it printed "building fresh binary, then swapping" and exec'd a binary from Jul 13. Every fix made since would have been invisible to the running core, and the only thing standing between that and a false success line was #194's provenance check. The fix makes the source policy an explicit argument instead of an ambient default, because the two callers want opposite things: `start` wants a core RUNNING (installed artifact is correct, and the no-source-tree user 7e0c5469a was written for keeps working), `reboot` wants the core built FROM THIS CHECKOUT. `plan_launch` resolves (policy, env override, script?, artifact?) as a pure function — 7 tests, one per branch, each naming the failure it prevents. A reboot on an installed node with no checkout still restarts the artifact, but through a distinct variant that forces the CLI to SAY nothing was rebuilt rather than let a restart pass as a deploy. Server side: `continuum-core-server` was the one component in the tree hand-rolling its own socket resolution (argv or die) while `continuum`, `continuum-mcp` and every library caller go through `endpoint_paths::core_socket_path()`. argv[1] still wins; absent it, the server now agrees with everyone else instead of exiting. That disagreement is what let defect 1 exist at all — the launcher communicated over a channel the listener had never been told to read. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(deploy): publish the verified core binary to the installed path every deploy `continuum start` execs the INSTALLED continuum-core-server (building is reserved for `reboot`), and the resolver checks ~/.continuum/bin BEFORE any cargo target dir. But that copy was written once by install.sh and never refreshed by a deploy — so on a machine that has been deploying for a month, `continuum start` silently boots a month-old core while the freshly-built one sits unused in the cache. Measured on the M5 tonight: installed artifact dated Jul 13, running build 4705, HEAD 4712. And it was not theoretical — a stray auto-start off that stale copy during a reboot is exactly what tripped the #194 deploy-provenance mismatch and cost an hour of misreading a deploy that had actually built fine. This script already publishes the CLI into ~/.local/bin on every deploy, with a comment arguing precisely this ("refreshes each deploy so PATH always points at the current build"). The core-server was simply omitted from that reasoning. Now it isn't. Placed AFTER the #194 freshness guard and before exec, so the installed artifact is only ever replaced by a binary just proven to match source — never a stale or half-built one. Atomic temp+mv so a concurrent `continuum start` cannot exec a half-written file. Non-fatal, and it says out loud when it cannot publish, because the consequence the operator needs to hear is "`continuum start` may boot an OLDER core than this one". Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(persona): one contract, one spelling — a ViewState states its floor the way every other RagSource does CI red on PR #2282, my defect. `cargo test -p continuum-core --lib` failed one test out of 7,042: cognition::context_budget::tests::no_new_hardcoded_context_or_prompt_size_constant_anywhere_in_the_crate The guard (context_budget.rs:356-365) matches any `const` whose name contains WINDOW|CONTEXT|CTX|TOKEN|PROMPT|CHARS, of an integer type, assigned a bare decimal literal. `const FLOOR_TOKENS: u32 = 10` (roster) and `= 18` (bench) matched on TOKEN. The number was never the problem — it is a per-UNIT content floor ("one roster line costs ~10 tokens"), not a context bound, and it does not scale with the served window. The problem is that I expressed it in a SHAPE nobody else uses. Every other source states the same fact as a function: room_board_source.rs:293 fn floor_tokens(&self) -> u32 { 32 } room_roster_source.rs:286 fn floor_tokens(&self) -> u32 { 0 } room_doctrine_source.rs:151 fn floor_tokens(&self) -> u32 { 0 } rag_budget.rs:475 fn floor_tokens(&self) -> u32; // the contract So `RagRenderable` grew a SECOND spelling of one contract — an associated const beside the trait method it feeds. That is the duplication the compression principle forbids, and it landed in the very file meant to be the template every future ViewState source gets copied from. The guard fired on the new shape, which is exactly its job. Fix: `const FLOOR_TOKENS: u32` becomes `fn floor_tokens() -> u32`, matching the established idiom. One contract, one spelling; the guard passes as a CONSEQUENCE of saying it the normal way rather than as the goal. Deliberately NOT done: no `// context-budget-exempt:` line (the escape hatch exists, but an exemption would preserve the second spelling — the actual defect), and no weakening of the guard. Guard test: 1 passed. viewstate_rag tests: 5 passed. Clean `cargo check --lib`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * glass-box(persona): say WHAT the rejected event was, not just which branch refused it (#410) Measured today: every `airc msg` a human sends reaches EVERY citizen's subscribe stream (12/12 raw_events, sender 7711fe60) and is dropped as `no_continuum_body_hint`. Cause is in `realtime_wire::envelope_from_event` (:58-68) — it returns Ok(None) unless HEADER_FORGE_BODY_HINT == CONTINUUM_BODY_HINT, a stamp only continuum's OWN clients apply. The message is refused before its content is ever read, so a human talking to the room over the CLI is structurally unheard while the browser renders it fine (`airc.chat.projected` fires every time). The fix is one more arm in `room_turn_from_event`. It needs the CLI's actual body shape, and the probe could not supply it: `reason` names the BRANCH that refused the event, never the SHAPE that was refused. Attempts to recover the shape out-of-band failed — `airc events list --kind message` returns 0 in BOTH the project and machine-account scopes while returning 60 system-kind events, so the persisted view disagrees with what delivery demonstrably did. So instrument rather than guess. A decoder arm written against a GUESSED body is exactly how presence and control frames become fabricated perception — the hazard the existing named-skip contract exists to prevent. Next session reads one real body and writes the arm against a fact. Adds `event_kind` (the TranscriptKind, which IS the receive-side discriminator — note FrameKind lives on Frame and does NOT survive to TranscriptEvent) and a 160-char `body_preview` to the ALREADY-firing filtered_non_turn line. No new probe class, no new event, and the stream-chunk skip above stays deliberately unprobed — this cannot reintroduce the flood that skip removes. Behaviour unchanged: diagnostics only. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(serving): a throughput baseline carries the WINDOW it was measured at (#440/#441) MEASURED 2026-08-20, Qwen3.8-27B live on the M5. MTP spec-decode is working: 80.3/82.3/84.3% draft acceptance across 3 samples, lane running `--spec-type draft-mtp --spec-draft-n-max 4 --spec-draft-p-min 0.7`. That half of #440 is proven end-to-end. What is NOT comparable: the catalog's 17.2 tok/s was taken at a 19,712 window; the live lane serves 89,280 — 4.5x the KV to walk per decoded token on UMA. Samples came in at 2.7/6.2/7.8 tok/s. The #441 collapse alarm is correctly calibrated (0.25 floor: it stays silent at 0.36/0.45 and FIRES at 0.16) but its warning text names CPU fallback, pager thrash and GPU contention as the suspects — so a reader would hunt a defect that is not there. Decode rate is a function of resident KV. A rate without its window is not a comparable quantity. ThroughputBaseline already refuses to "present an unsourced baseline as fact"; an unwindowed one is the same class, so the window joins source as provenance. - `measured_at_window: Option<u32>` — None means genuinely not recorded, an honest absence rather than a 0 sentinel ([[unknown-is-not-a-quantity]]). - `comparable_at(live_window)` — false means "this baseline cannot say", NOT "healthy". A caller that alarms anyway must state the window gap. - Existing seed rows get None: their windows were never recorded and I will not invent them. 8/8 module tests green; cargo check exit 0 (verified by exit code — a grep-filtered check hid failures from me earlier today). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix: restore 33 core files to canary's version — repair my bad #2282 merge My merge 9e2389f59 shipped union-merge damage (duplicated lines, orphaned closers) in 33 files and I reported it as compiling clean. It did not: I was validating with `cargo check | grep ": error"` and reading empty output as success, which silently hid the failures. Reading $? gave 101. Every one of those files is superseded by canary anyway — canary won all 46 conflicts in that merge, verified file by file — so restoring them loses nothing and repairs the tree. VERIFIED THIS TIME BY EXIT CODE, not by grep: cargo check -p continuum-core --lib --features metal,accelerate -> 0 cargo test ... throughput_expectation -> 8 passed, 0 failed Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix: restore 4 ts-rs generated bindings corrupted by the union merge THE CI FAILURE. `cargo test -p continuum-core --lib` regenerates ts-rs bindings and compares against what is committed; these four had union-merge damage and could not match. The damage is the same class I spent the night repairing in the Rust — I just never looked at the generated files, because "generated" read to me as "not mine to inspect". RoomRecipeBinding.ts closes the type declaration MID DOC-COMMENT (`parent?: string, };` with the rest of the comment dangling after it); the three memory params files import the same symbol TWICE from two different paths. Why the compile check stayed green while this was broken: nothing compiles `.ts`. windows-msvc passed `lib + tests` the whole time. Why the guard built for exactly this said nothing: `ts-rs binding drift detector` is `needs: cargo-test-continuum-core`, so when that job failed the detector reported `skipping`. The check designed to catch binding drift was gated behind the job the drift broke — worth its own card. Restored from canary. The branch is now exactly canary + the throughput change, nothing else. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Oct 11, 2026
…only footprints are never read (Cormac on #4939) - choose_window: a row measured at the smallest chunk that does not fit what is free caps the next window below it, whatever the fit predicts (and with no fit), so the refusal ladder's return always moves down and ends at the smallest window instead of looping. - FootprintRow.includes_context: a row from before fork #52 is the graph alone; it is kept but never read (get, rows_like), so its shape calibrates; a whole-run row always replaces it. Production callers record whether the engine reported a context. - Rates are kept per (base, chunk) and the trigger budgets at the slowest the base has run, since it sizes a run before the chunk is chosen (Fable on #4939). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Oct 11, 2026
… it, and lease the run's context too The 5090, 2026-10-11: her lived turns need a ~20k-token window (p50 20,433, p90 28,045 tokens of system and tool head plus her last exchange), but the window that fit beside serving at chunk 256 was 16,896, so 257 of 311 were skipped. The explicit attention scores are window x chunk x heads (no flash backward), so a smaller chunk buys window (Fable). - The chunk floor is 64 (fork #52: 64, 128, or a multiple of 256); the core mirrors the engine's train_chunk_for, unchanged at 256 and up, so existing footprint keys hold. - The window is planned for the DATA: create_job measures every example at the served window (fork #51), takes the largest tokens_min (window_for_need, rounded up to 256, capped at served), shrinks it only if even the smallest chunk cannot hold it (choose_window), then picks the largest chunk that fits (choose_chunk). The partition re-measures only if the window moved. - A footprint is the run's graph AND its context (fork #52's context_mib): the training context's K/V for the whole window was allocated outside the graph's budget, so it sat outside the governed lease. - The graph model gains a chunk-independent per-position term (the K/V), fitted by least squares once the rows span two chunks and two windows; until then the two-term fit stands and the engine's preflight refusal files the true size. - A refusal at the smallest chunk still has a rung while the window can shrink: the refusal filed its graph, so the next plan calculates a smaller window instead of stranding the job. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Oct 11, 2026
…only footprints are never read (Cormac on #4939) - choose_window: a row measured at the smallest chunk that does not fit what is free caps the next window below it, whatever the fit predicts (and with no fit), so the refusal ladder's return always moves down and ends at the smallest window instead of looping. - FootprintRow.includes_context: a row from before fork #52 is the graph alone; it is kept but never read (get, rows_like), so its shape calibrates; a whole-run row always replaces it. Production callers record whether the engine reported a context. - Rates are kept per (base, chunk) and the trigger budgets at the slowest the base has run, since it sizes a run before the chunk is chosen (Fable on #4939). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Oct 11, 2026
…acy rate is superseded, and the rate is filed at the chunk that ran (Cormac's nits on #4939) - record_with keeps a whole-run row against any graph-only one (an engine rolled back before #52), and otherwise the larger measurement. - TrainingRates::record removes the bare pre-chunk key, so an old unkeyed rate cannot cap every budget forever. - finish_run files the rate under ran_chunk (the engine's reported chunk), as the footprint is. - Two comments still described tokens_min; the window is planned on tokens_full. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Oct 11, 2026
… it, and lease the run's context too The 5090, 2026-10-11: her lived turns need a ~20k-token window (p50 20,433, p90 28,045 tokens of system and tool head plus her last exchange), but the window that fit beside serving at chunk 256 was 16,896, so 257 of 311 were skipped. The explicit attention scores are window x chunk x heads (no flash backward), so a smaller chunk buys window (Fable). - The chunk floor is 64 (fork #52: 64, 128, or a multiple of 256); the core mirrors the engine's train_chunk_for, unchanged at 256 and up, so existing footprint keys hold. - The window is planned for the DATA: create_job measures every example at the served window (fork #51), takes the largest tokens_min (window_for_need, rounded up to 256, capped at served), shrinks it only if even the smallest chunk cannot hold it (choose_window), then picks the largest chunk that fits (choose_chunk). The partition re-measures only if the window moved. - A footprint is the run's graph AND its context (fork #52's context_mib): the training context's K/V for the whole window was allocated outside the graph's budget, so it sat outside the governed lease. - The graph model gains a chunk-independent per-position term (the K/V), fitted by least squares once the rows span two chunks and two windows; until then the two-term fit stands and the engine's preflight refusal files the true size. - A refusal at the smallest chunk still has a rung while the window can shrink: the refusal filed its graph, so the next plan calculates a smaller window instead of stranding the job. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Oct 11, 2026
…only footprints are never read (Cormac on #4939) - choose_window: a row measured at the smallest chunk that does not fit what is free caps the next window below it, whatever the fit predicts (and with no fit), so the refusal ladder's return always moves down and ends at the smallest window instead of looping. - FootprintRow.includes_context: a row from before fork #52 is the graph alone; it is kept but never read (get, rows_like), so its shape calibrates; a whole-run row always replaces it. Production callers record whether the engine reported a context. - Rates are kept per (base, chunk) and the trigger budgets at the slowest the base has run, since it sizes a run before the chunk is chosen (Fable on #4939). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Oct 11, 2026
…acy rate is superseded, and the rate is filed at the chunk that ran (Cormac's nits on #4939) - record_with keeps a whole-run row against any graph-only one (an engine rolled back before #52), and otherwise the larger measurement. - TrainingRates::record removes the bare pre-chunk key, so an old unkeyed rate cannot cap every budget forever. - finish_run files the rate under ran_chunk (the engine's reported chunk), as the footprint is. - Two comments still described tokens_min; the window is planned on tokens_full. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Oct 11, 2026
…r time through the one measure, and test a lost POST end to end - The engine pin moves to fork master 48427419f (#52: chunks of 64 and 128, the budget covers the context; #54: a restored page keeps its adapters). An earlier `git add -A` here had recorded the submodule at a stale af1a3c933 checkout, which would have rolled canary's f002015a4 back. - Card 3cef97ef (Cormac on #4946): the render time is taken around the ONE measure at the served window (the second measure is arithmetic now), so the POST's wait is sized by what was rendered; and a_run_whose_post_is_lost_is_watched_to_its_end_and_completes drives the whole path against the fake lane, whose answer outlasts the wait after it has taken the run. The tuner's post_wait_floor is a field (POST_WAIT_FLOOR in production, 1 s in tests) for that. - window_for_need works in u64 and clamps to the served window before narrowing: no unwrap (the unjustified-unwrap ratchet). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Oct 11, 2026
… it, and lease the run's context too (#4939) * fix(training): plan the window her examples need, the chunk that fits it, and lease the run's context too The 5090, 2026-10-11: her lived turns need a ~20k-token window (p50 20,433, p90 28,045 tokens of system and tool head plus her last exchange), but the window that fit beside serving at chunk 256 was 16,896, so 257 of 311 were skipped. The explicit attention scores are window x chunk x heads (no flash backward), so a smaller chunk buys window (Fable). - The chunk floor is 64 (fork #52: 64, 128, or a multiple of 256); the core mirrors the engine's train_chunk_for, unchanged at 256 and up, so existing footprint keys hold. - The window is planned for the DATA: create_job measures every example at the served window (fork #51), takes the largest tokens_min (window_for_need, rounded up to 256, capped at served), shrinks it only if even the smallest chunk cannot hold it (choose_window), then picks the largest chunk that fits (choose_chunk). The partition re-measures only if the window moved. - A footprint is the run's graph AND its context (fork #52's context_mib): the training context's K/V for the whole window was allocated outside the graph's budget, so it sat outside the governed lease. - The graph model gains a chunk-independent per-position term (the K/V), fitted by least squares once the rows span two chunks and two windows; until then the two-term fit stands and the engine's preflight refusal files the true size. - A refusal at the smallest chunk still has a rung while the window can shrink: the refusal filed its graph, so the next plan calculates a smaller window instead of stranding the job. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * refactor(training): solve3's elimination iterates the pivot row; the tests' 1 * gib is gib (clippy) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * fix(training): a floor-chunk refusal caps the next window, and graph-only footprints are never read (Cormac on #4939) - choose_window: a row measured at the smallest chunk that does not fit what is free caps the next window below it, whatever the fit predicts (and with no fit), so the refusal ladder's return always moves down and ends at the smallest window instead of looping. - FootprintRow.includes_context: a row from before fork #52 is the graph alone; it is kept but never read (get, rows_like), so its shape calibrates; a whole-run row always replaces it. Production callers record whether the engine reported a context. - Rates are kept per (base, chunk) and the trigger budgets at the slowest the base has run, since it sizes a run before the chunk is chosen (Fable on #4939). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * fix(training): plan the window that trains her examples whole, and partition it by arithmetic, with one measure - window_for_need plans for the largest tokens_FULL (every example whole, as serving saw it), not the largest tokens_min; memory shrinks it, and only then does the partition truncate (to an example's tokens_min) or park. - The partition at a smaller window is refit_middle: arithmetic on the two measured lengths under the engine's middle rule, not a second ~5 s render per example (Cormac on #4940). The run's skipped_indices stay the authority. - The fake lane's measure is window-independent: each example as long as its window, and trainable in any once its history is dropped. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * fix(training): a graph-only row never replaces a whole-run one, a legacy rate is superseded, and the rate is filed at the chunk that ran (Cormac's nits on #4939) - record_with keeps a whole-run row against any graph-only one (an engine rolled back before #52), and otherwise the larger measurement. - TrainingRates::record removes the bare pre-chunk key, so an old unkeyed rate cannot cap every budget forever. - finish_run files the rate under ran_chunk (the engine's reported chunk), as the footprint is. - Two comments still described tokens_min; the window is planned on tokens_full. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * fix(training): pin the fork at its master (#52, #54), carry the render time through the one measure, and test a lost POST end to end - The engine pin moves to fork master 48427419f (#52: chunks of 64 and 128, the budget covers the context; #54: a restored page keeps its adapters). An earlier `git add -A` here had recorded the submodule at a stale af1a3c933 checkout, which would have rolled canary's f002015a4 back. - Card 3cef97ef (Cormac on #4946): the render time is taken around the ONE measure at the served window (the second measure is arithmetic now), so the POST's wait is sized by what was rendered; and a_run_whose_post_is_lost_is_watched_to_its_end_and_completes drives the whole path against the fake lane, whose answer outlasts the wait after it has taken the run. The tuner's post_wait_floor is a field (POST_WAIT_FLOOR in production, 1 s in tests) for that. - window_for_need works in u64 and clamps to the served window before narrowing: no unwrap (the unjustified-unwrap ratchet). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Oct 11, 2026
joelteply
added a commit
that referenced
this pull request
Oct 12, 2026
…al, so an Intel Mac stops routing training to a trainer it cannot run (#4990) Card a6703c24. On IntelMac (x86_64, discrete Radeon over Metal), Delia's training dispatch 7a68a4c6 sat in RecoveryRequired with "mlx python interpreter not found". TrainerHardware::Metal is documented as Apple Silicon only, but satisfied_by checked has_metal, which an Intel Mac's GPU also reports. So mlx-local passed the hardware gate and ranked as a host-native accelerator above the CPU (Candle) trainer. satisfied_by(Metal) now asks the governor's classify_silicon, the one owner of AppleM vs MacIntelMetal (task #52), which reads the probe's "<os>-<arch>" platform. It is now pub(crate); there is no second parse. Test: an Intel Mac platform does not satisfy Metal, an Apple Silicon one does, and Any (the CPU trainer) still runs on the Intel Mac. Not yet proven: that the CPU trainer produces a gene on IntelMac. That receipt is owed on the card after deploy, along with the served 1.5b vs bucket 0.5b mismatch the card names. Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE Co-authored-by: Claude Opus 5.5 (1M context) <[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.
Bumps @typescript-eslint/eslint-plugin from 8.29.1 to 8.32.1.
Release notes
Sourced from
@typescript-eslint/eslint-plugin's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/eslint-plugin's changelog.... (truncated)
Commits
af077a0chore(release): publish 8.32.1f8db925fix(eslint-plugin): [consistent-indexed-object-style] check for indirect circ...98c5c4cfix(eslint-plugin): [consistent-indexed-object-style] adjust auto-fixer to ge...b2be3dcchore: simplifytsconfigsetup usingconfigDir(#11136)523b3eafix(eslint-plugin): [no-deprecated] support computed member access (#10867)0d822bddocs: useT[]instead of[T, ...T[]]in rule options (#11129)aeb7402chore(ast-spec): finish migrating tovitest(#11126)a89d5e3fix(eslint-plugin): [no-unnecessary-type-conversion] shouldn't have fixable p...7598496chore: remove now-stub@types/markedpackage0cee7cachore(deps): update dependency ignore to v7 (#11163)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)