Repository navigation
Build(deps-dev): Bump @types/node from 22.14.0 to 24.2.1 - #106
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 [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.14.0 to 24.2.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.2.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Contributor
Author
|
Superseded by #113. |
joelteply
added a commit
that referenced
this pull request
Jun 2, 2026
…gs for handle-store commands (task #107, slice B) Exposes the InferenceHandleStore (slice A) as kernel commands under the canonical `ai/*` namespace: ai/inference/open → mints HandleRef tied to a provider ai/inference/generate → routes through the session's adapter ai/inference/close → releases the session ai/inference/inspect → observability snapshot Per Joel (2026-05-31): "Yeah the inference command doesn't do this. It's smart subsystems and daemons. Commands are dumb and short." And the strongest version yet: "So the commands absolutely cannot negotiate this." This module is intentionally the DUMB command layer. It parses the envelope, validates, calls the store, returns the result. NO scheduling, NO batching, NO LoRA paging, NO quantization decisions, NO base-model-sharing logic — that all lives in the future smart subsystems + daemons that sit BEHIND this command surface. ### Wiring InferenceHandleModule owns a local DashMap<provider_id, Arc<dyn AIProviderAdapter>> populated at wiring time via `register_adapter(provider_id, adapter)`. Deliberately decoupled from AdapterRegistry (which uses Box<dyn> + `&mut self` lifecycle methods); rather than refactor the registry's ownership model in this slice, the handle module is self-contained. A later refactor (#109 or after) consolidates if needed. ### Wire shape — canonical envelope pattern - `OpenParams { provider, model?, system_prompt?, active_adapters?, persona_id? }` - Handles ride on the envelope's top-level `handle` field, NOT in params (per substrate convention; matches data/query-next, etc.) - `GenerateParams { request: TextGenerationRequest }` + envelope handle - `CloseParams {}` / `InspectParams {}` carry no params; the envelope handle is the input - Responses flatten — `success` + result fields at the top level, envelope handle returned on open via `with_handle_ref` ### ts-rs bindings auto-generated `src/shared/generated/ai_inference/{Open,Generate,Close,Inspect}{Params,Result}.ts` — consumers `import type { OpenParams } from '@shared/generated/ai_inference/OpenParams'` and call `Commands.execute('ai/inference/open', params)`. No hand-written duplicate types across the Rust ↔ TS boundary. ### Tests (16, all green) - config reports canonical module name + `ai/inference/` prefix - open via command surface returns HandleRef with canonical owner + type_tag at the envelope's top-level handle field - open with unregistered provider returns typed "not registered" error listing what's available - generate via command surface routes to the adapter, response carries the heuristic-adapter's `[heuristic:...]` echo - generate without envelope handle returns loud error (no silent default-to-nil) - close via command surface releases; subsequent generate fails with handle-not-found - inspect via command surface returns the SessionInspection snapshot (provider, has_system_prompt, generation_count) - unknown command returns loud error naming the known commands - full open → generate × 2 → inspect → close round trip - 7 ts-rs export_bindings tests (auto-generated, one per type) ### Doctrine - [[commands-are-kernel-level-and-compose]] — pure command-envelope routing; no internal logic; composable with any other module - [[inference-is-an-adapter-always-in-the-loop]] — handle commands are THE canonical inference shape; one-shot `inference/llm/request` remains the legacy path until #106 namespace consolidation - [[inference-scarcity-economics]] §"commands are dumb" — this is the dumb command layer; smart bits land later as separate components without changing this surface - [[host-the-seemingly-impossible]] — by keeping commands stable + narrow, the daemons behind them can grow as smart as needed to meet the M5-multi-modal-multi-lane target
joelteply
added a commit
that referenced
this pull request
Jun 2, 2026
…l docs
Joel (2026-05-31): "Then we want to architect the unknowns on
paper now; what you said being load bearing in memory. Design
what we need and document what isn't."
Four new docs lock the working session's substrate doctrine into
the repo so future readers (Claude, contributors, AIs reviewing
adversarially) inherit it without needing the auto-memory:
1. **docs/architecture/AI-COMMAND-NAMESPACE.md** (~275 lines)
The `ai/*` tree — LLMs, vision, audio, embeddings, classical
ML, planning algorithms, game/agent AI, low-level kernels — all
under one namespace. Three universal primitives: adapter
polymorphism (OpenCV-style), handle pattern (establish once,
reuse many), capture+replay (observability-is-half). The
architectural rule: commands are dumb, daemons are smart.
Multimodal CNN crutches are first-class peers, NOT utilities —
how non-multimodal LLMs get sensory parity.
2. **docs/architecture/INFERENCE-SCHEDULING-AND-SCARCITY.md** (~435 lines)
The DAEMON layer behind `ai/inference/*`. The adaptive-
resolution analogy (video player drops 4K → 1080p under
congestion; inference daemon drops FP16 → INT8 → INT4 under
memory pressure — same model, no quality tier-down). Component
designs: tiered SlotPool, RequestQueue, BatchAssembler
(continuous batching, vLLM-style), LoRAPager, BaseModelSharing,
PressureMonitor, AdaptiveQuantizer, SpeculativeWarmer,
RouteSelector (local vs grid). Cross-grid M5→5090 case as a
peer adapter. Captures the prior-attempt failure modes the
substrate MUST NOT repeat: hot-path LoRA swap, global FIFO,
naive shared-model concurrency, underestimated swap latency,
policy negotiation on the command surface.
3. **docs/architecture/OBSERVABILITY-AS-SUBSTRATE.md** (~253 lines)
The "half the architecture is debug" doctrine. The CaptureSink
pattern as universal shape (trait + Noop/JSONL/InMemory + Recording
decorator). The three canonical introspection questions:
counterfactual ("would I respond the same way?"), fault
isolation ("which layer is broken?"), relevance ("contextually
relevant?"). The non-negotiable Noop-default-zero-overhead rule.
Introspection reachable as a command, not just files on disk.
4. **docs/planning/AI-LANE-OPEN-QUESTIONS.md** (~417 lines)
Explicit punch list of 20 design decisions we KNOW we need but
haven't made yet, organized by lane: inference daemon (#109),
cross-grid inference (#108), namespace consolidation (#106),
observability, hardware/memory hierarchy, multi-modal
pipelines, prior-attempt forensics. Each entry: question, why
it matters, what's blocked, candidate approaches, decision
gate. Highest-priority: Q20 (recover prior-attempt failure
logs — don't repeat what was "rather shitty"), Q1 (persona
priority class signaling), Q11 (namespace migration path).
Plus CLAUDE.md's canonical-substrate-docs intro now lists the
three new architecture docs + the open-questions doc, so the
next reader picking up this work finds them in the right order.
Implementation status note: the inference COMMAND layer (open /
generate / close / inspect) ships today via #107A + #107B. The
SMART daemon layer (slot pools, continuous batching, multi-LoRA
serving, adaptive quantization, cross-grid offload) is designed
here but unbuilt — task #109 and #108. The docs are deliberately
honest about what's known and what's open; nothing in
INFERENCE-SCHEDULING-AND-SCARCITY.md or AI-LANE-OPEN-QUESTIONS.md
overstates current implementation.
joelteply
added a commit
that referenced
this pull request
Jun 10, 2026
…ratchet (task #240 — fourth proof shape) (#1592) Fourth proof in the architecture-test matrix. Pins the "module compose-by-event" doctrine clause — substrate-internal modules compose via the event substrate (MessageBus subscribe/emit) or via pre-bound handles, not by imperative `CommandExecutor::execute_*` round-trips through the outer command interface inside the cognition hot path. ## What ships `core/continuum-core/tests/architecture_compose_by_event.rs` — two integration tests: 1. `cognition_command_executor_calls_ratchet` — scans every `.rs` file under `core/continuum-core/src/cognition/`, finds lines matching `.execute_json(`, `.execute_with_caller(`, `.execute_ts(`, `.execute_ts_json(`, asserts the count doesn't grow beyond the current grandfathered budget of **1**. NEW calls BLOCK; the existing one is tracked under #112-#114 (route persona response / should_respond / validate through inference handle). Bare `.execute(` is intentionally NOT in the forbidden list — it would generate false positives across futures, queues, and other APIs. If a typed `executor.execute(typed_args)` pattern appears inside cognition in a future refactor, extend the list. Test mods (`#[cfg(test)] mod ... { ... }`) are exempted via the same brace-depth parser as the singleton-ban test, with inline `#[cfg(test)] mod tests {` handling. Line comments (`//` lines) are skipped so doc comments quoting the very pattern being banned don't trip the scanner — this matters for cognition module top-of-file docs that reference `Commands.execute('cognition/...')` as the TS-side caller contract. 2. `command_executor_remains_the_outer_boundary` — positive pin: `runtime/command_executor.rs` exists, declares `pub struct CommandExecutor`, exposes `pub async fn execute_json`. If the type is renamed or `execute_json` moves, the test is loud, not silent — and the FORBIDDEN list in this test file needs updating to match. ## The 1 grandfathered violation `cognition/vision_describe.rs::describe_image_via_ai_generate` calls `executor.execute_json("ai/generate", ...)`. The clean fix is a pre-bound `InferenceHandle` (cf. tasks #107-#108), called directly the same way `airc_chat_demo` already does. Migration tracked under #112-#114 (the inference-command-routing campaign) and #106 (ai/* namespace consolidation). ## Why ratchet (not strict) Same reason as engine-OS layering and singleton-ban: the single existing violation needs a considered migration (which `InferenceHandle` to pre-bind, where to wire the lifecycle), not a sed sweep. NEW violations BLOCK at PR time; the ratchet count graduates to ✅ when #112-#114 land. ## Matrix update `PROVING-THE-DOCTRINE.md` row for "Module compose-by-event" flips from 🔴 (no proof) to 🟡 (ratchet active, target ✅ when count = 0). ## Test plan - [x] `cargo test -p continuum-core --test architecture_compose_by_event --features metal,accelerate` — 2/2 pass; grandfathered count = 1 (exact match) - [x] `// proves: module compose-by-event` tag applied - [x] Ratchet logic verified (both grow-detection and shrink-detection paths via inspection) - [x] Line-comment skip verified — the two pre-existing `Commands.execute(...)` doc references in `vision_describe.rs` and `rate_proposals/mod.rs` do NOT trip the scanner ## Doctrine alignment - Substrate doctrine § "Module compose-by-event" — cognition composes via event substrate or pre-bound handles, not imperative request-response round-trips - [[no-fallbacks-ever]] — the ratchet IS the no-fallback equivalent for the cognition→command-executor coupling at build-graph layer ## Related - Task #240 — architecture-test matrix, fourth proof - Builds on PR #1589 (ratchet pattern) and PR #1591 (singleton ban — same scanner shape) - Migration follow-up: tasks #112-#114 (#113 is currently in_progress) → ratchet count goes 1 → 0 → strict Co-authored-by: Claude Opus 4.7 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jul 18, 2026
…EES (#106) (#1955) The catalog already has qwen2-vl-7b / qwen2.5-omni-7b rows with mmproj_local_path and Model.mmproj_local_path exists — but the llama-server spawn NEVER passed --mmproj, so a vision-capable model loaded blind (image content parts silently ignored). Close it: - model_registry::artifacts::resolve_mmproj_for_model — serving-time resolver mirroring resolve_gguf_for_model: expands ~ + verifies the projector file exists on disk. - llama_server spawn: pass --mmproj <path> when resolvable (the model SEES); on a Vision-capable row with NO resolvable projector, warn LOUD (serving TEXT-ONLY) instead of fabricating sight ([[fallbacks-are-illegal-fail-loud]]). Safe on a generation lane — the projector adds the encoder, doesn't switch out of causal mode (unlike --embeddings). This is the serving half of getting small personas perceiving (uploaded images, screenshots, video-chat frames): Qwen3-VL / Qwen2-VL + mmproj now loads its vision encoder, so ContentPart::Image reaches the model. Live-serving is the acceptance test. Also lands docs/architecture/GRID-ECONOMICS-AND-AFFINITY-ROUTING.md — the paged-genome demand-paging economics + affinity-routing spec (why cheap hardware + a friend group hosts 'infinite experts': cost scales with the deduped hot working-set union, not users×model). Companion to INFERENCE-LANES-REALISTIC (#109) + MoE affinity paging (#180). Refs #106, #187, #123. [[open-weight-aligned-paged-genome-beats-massive-experts]] 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 18, 2026
…as seeing a live call The methodical plan to get personas perceptive through LiveKit: frame → MediaFrame (content-hash) → deep cells (describe/pose/detect, computed once, shared) → per-persona projection → cognition → perceive/speak. Decisions baked in: Qwen3-VL-7B local as first eyes; ambient + drill-in intake. 6 phases, each with a validation gate; critical path = Phase 1 (Qwen3-VL up) → Phase 2 (video_rx → MediaFrame) → Phase 3 (render wire #190, the 'persona describes the call' milestone). #193 (call = airc room) runs parallel for identity/purity. Grounded in what's already in tree — wiring + one model bring-up. Refs #106, #187, #190, #192, #193. [[media-is-compute-once-zero-copy-hardware-grade]] Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 18, 2026
…naged product) Joel: a repo user isn't asking Claude to run huggingface-cli. Corrected Phase 1: the VL bring-up self-provisions via the EXISTING provisioning::Downloader / models/pull path (GGUF + mmproj from the Model row's hf_source, no CLI dependency); mmproj resolution must match the GGUF's local→HF-cache→pull (today resolve_mmproj_for_model only checks the declared local path — the gap that forces manual placement). Gate: clean machine + declared VL row → auto-provision → vision-describe works, ZERO manual steps. Refs #106. [[managed-product-everything-self-provisions-no-operator-steps]] Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 18, 2026
…d but had no impl media/frame.rs documents "the live implementor is cognition::vision_describe", but that bridge never existed — the only FrameDescriber impls on canary were test stubs. So a persona's MediaFrame description cell had NO production producer: the compute-once "see" path terminated in a promise. Add `VisionDescribeFramer` (cognition/vision_describe.rs) — the ONE production FrameDescriber. It routes a frame's bytes through describe_image (ai/generate on the best available vision model) and returns the prose a non-vision persona reads to see. Because MediaFrame caches per content hash, wrapping this once and pointing every persona's frame at it means the same image is described ONCE and shared — N personas in a call cost one describe per distinct frame, not N (the 4+-persona shared-KV payoff). Fail loud: no vision model resolved → Err, never a fabricated placeholder a persona would read AS having seen the frame. MediaFrame caches the Err per hash, so the gap surfaces deterministically instead of retrying per persona. Layering holds (cognition → media, never the reverse): the trait lives in media/, its sole live impl in cognition/ where ai/generate is reachable. Test: base64 encode + option threading via a pure `build_frame_request` helper (no executor/registry needed). 17 vision_describe tests green. Refs #106 Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 19, 2026
…ng) — self-provisioning, one resolver
The projector resolver only honored a declared local path, while the GGUF
resolves local → HF cache. That asymmetry forced a manual mmproj placement
step whenever a VL model's bytes already lived in the HF cache without a fresh
`models/pull` (e.g. a boot that resolves the GGUF from cache) — a managed-
product violation: pulling the model pulls its projector, so resolving it
should never need a hand-placed path.
`resolve_mmproj_for_model` now resolves in two tiers:
1. the declared local path (expanded, existence-checked) — placement honored first
2. a `*mmproj*.gguf` sibling in the GGUF's resolved snapshot dir — the layout
every `*-GGUF` vision repo ships, so pulling the model into the HF cache is
enough (mirrors resolve_gguf_for_model; #106 self-provisioning)
Single source of truth (compression): both raw-field readers now route through
the one resolver instead of reading `mmproj_local_path` directly —
- llamacpp_adapter generate_with_image (in-process VL serving) — now sees the
self-provisioned sibling AND gets existence-checking, matching llama-server
- ai_provider boot preflight — no longer false-warns "no mmproj" on a model
whose projector resolves from the HF cache; two warn arms collapse to one
(resolver already existence-checks)
resolve_model_artifacts is intentionally unchanged: the registry holds declared
INTENT (the `omni.mmproj_local_path.is_some()` contract), existence + tier-2
resolution belong at point-of-use.
Tests (artifacts.rs, one mod): declared-tier resolution + None-when-absent under
an isolated HOME (deterministic, no #72 on-disk leak); tier-2 resolves the mmproj
beside the GGUF in an HF-cache snapshot with no declared path, and tier-1 still
wins when a declared projector is present. 43 model_registry tests green.
Refs #106
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 19, 2026
…d but had no impl media/frame.rs documents "the live implementor is cognition::vision_describe", but that bridge never existed — the only FrameDescriber impls on canary were test stubs. So a persona's MediaFrame description cell had NO production producer: the compute-once "see" path terminated in a promise. Add `VisionDescribeFramer` (cognition/vision_describe.rs) — the ONE production FrameDescriber. It routes a frame's bytes through describe_image (ai/generate on the best available vision model) and returns the prose a non-vision persona reads to see. Because MediaFrame caches per content hash, wrapping this once and pointing every persona's frame at it means the same image is described ONCE and shared — N personas in a call cost one describe per distinct frame, not N (the 4+-persona shared-KV payoff). Fail loud: no vision model resolved → Err, never a fabricated placeholder a persona would read AS having seen the frame. MediaFrame caches the Err per hash, so the gap surfaces deterministically instead of retrying per persona. Layering holds (cognition → media, never the reverse): the trait lives in media/, its sole live impl in cognition/ where ai/generate is reachable. Test: base64 encode + option threading via a pure `build_frame_request` helper (no executor/registry needed). 17 vision_describe tests green. Refs #106 Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 19, 2026
… FrameDescriber (#1959) * fix(vision): mmproj resolves like the GGUF (declared → HF-cache sibling) — self-provisioning, one resolver The projector resolver only honored a declared local path, while the GGUF resolves local → HF cache. That asymmetry forced a manual mmproj placement step whenever a VL model's bytes already lived in the HF cache without a fresh `models/pull` (e.g. a boot that resolves the GGUF from cache) — a managed- product violation: pulling the model pulls its projector, so resolving it should never need a hand-placed path. `resolve_mmproj_for_model` now resolves in two tiers: 1. the declared local path (expanded, existence-checked) — placement honored first 2. a `*mmproj*.gguf` sibling in the GGUF's resolved snapshot dir — the layout every `*-GGUF` vision repo ships, so pulling the model into the HF cache is enough (mirrors resolve_gguf_for_model; #106 self-provisioning) Single source of truth (compression): both raw-field readers now route through the one resolver instead of reading `mmproj_local_path` directly — - llamacpp_adapter generate_with_image (in-process VL serving) — now sees the self-provisioned sibling AND gets existence-checking, matching llama-server - ai_provider boot preflight — no longer false-warns "no mmproj" on a model whose projector resolves from the HF cache; two warn arms collapse to one (resolver already existence-checks) resolve_model_artifacts is intentionally unchanged: the registry holds declared INTENT (the `omni.mmproj_local_path.is_some()` contract), existence + tier-2 resolution belong at point-of-use. Tests (artifacts.rs, one mod): declared-tier resolution + None-when-absent under an isolated HOME (deterministic, no #72 on-disk leak); tier-2 resolves the mmproj beside the GGUF in an HF-cache snapshot with no declared path, and tier-1 still wins when a declared projector is present. 43 model_registry tests green. Refs #106 Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(vision): live FrameDescriber — the sensory bridge media/ promised but had no impl media/frame.rs documents "the live implementor is cognition::vision_describe", but that bridge never existed — the only FrameDescriber impls on canary were test stubs. So a persona's MediaFrame description cell had NO production producer: the compute-once "see" path terminated in a promise. Add `VisionDescribeFramer` (cognition/vision_describe.rs) — the ONE production FrameDescriber. It routes a frame's bytes through describe_image (ai/generate on the best available vision model) and returns the prose a non-vision persona reads to see. Because MediaFrame caches per content hash, wrapping this once and pointing every persona's frame at it means the same image is described ONCE and shared — N personas in a call cost one describe per distinct frame, not N (the 4+-persona shared-KV payoff). Fail loud: no vision model resolved → Err, never a fabricated placeholder a persona would read AS having seen the frame. MediaFrame caches the Err per hash, so the gap surfaces deterministically instead of retrying per persona. Layering holds (cognition → media, never the reverse): the trait lives in media/, its sole live impl in cognition/ where ai/generate is reachable. Test: base64 encode + option threading via a pure `build_frame_request` helper (no executor/registry needed). 17 vision_describe tests green. Refs #106 Co-Authored-By: Claude Opus 4.8 <[email protected]> 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 19, 2026
…arte look, change-monitor, governed (#1961) * feat(perception): wire MediaPerceptionSource into cognition (read path) + single-source SharedCompute The persona's live-call visual perception now reaches the globally-aware mind. `MediaPerceptionSource` is lifted into each persona's Workspace grounding set at supervisor boot (the same task-#12 RagSourceFaculty bridge roster/doctrine use), so WHO is visible on the call + a description of what they show becomes budgeted, non-blocking framing — read only from cells resolved this tick, competing for context through the ONE flexbox allocator so perception never dominates. Single-source the compute-once cache so the read side and the (coming #192) media ingest cannot diverge: - `runtime::shared_compute::global()` — the ONE process-global SharedCompute; a frame's derivatives (scaled cells, description) are content-hash keyed so N personas viewing one frame describe/scale it ONCE (the multi-persona vision moat). - `Runtime::new` ADOPTS that instance for its own `compute` handle, so a module reaching it via ModuleContext.compute and a persona reaching it via global() see the same cache. - `media::perception_registry()` — the addressable per-persona PerceptionBuffer home (one home, two reachers by persona_id: ingest warms, source reads), mirroring focus::registry(). AMBIENT_PERCEPTION_SIZE (480x270) is the one ambient-cell policy. Read side is off the 30fps media plane entirely: deliver() runs per persona TURN (seconds apart), O(participants) string assembly, no inference, reads only ready cells. The ingest cadence gate (describe << frame rate, governor-priced) lands with the video_rx -> observe() wire in #192. Empty until frames arrive — this wires the READ path into cognition; nothing on the brain's compose path changed (unified.rs untouched — perception is a NEW source with no legacy compose consumer, so only the target Workspace path is wired). Tests: perception_registry idempotent one-buffer-per-persona + singleton; existing source/buffer/compute suites green. Refs #187 #106; sets up #192. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * perf(perception): gate ingest warm to a sampled cadence — 30fps-safe by construction MANY personas render at 30fps and humans join at 30fps; the ingest primitive must survive that BEFORE #192 wires a raw stream to it. `observe()` previously spawned an LLM describe + scale on EVERY call, and 30fps frames each have a distinct content-hash so the compute-once cache gives ZERO dedup on the frame rate — a raw wire would trigger 30 vision inferences/sec/participant/persona. Separate the two planes: - COALESCE the latest frame UNCONDITIONALLY (O(1) mutex insert — safe at 30fps; the media/display plane). Perception samples the media plane, it does not mirror it. - GATE the expensive warm (scale + describe) behind a per-participant cadence (AMBIENT_WARM_MIN_INTERVAL_MS = 500ms ≈ 2Hz) + an in-flight guard that never stacks a warm on an unfinished one. Extracted as a PURE `should_warm(participant, now_ms)` decision so the 30fps guarantee is asserted without timing or a runtime. `observe()` now takes `now_ms` (substrate passes the monotonic clock in — no Instant::now in the media core). The cadence is a buffer FIELD (default from the const), so the governor can retune it per persona later as an attention-priced resolution field (#173) — a focused persona looks more often, an idle one less. Cross-persona cost stays O(distinct frames), not O(personas): the actual scale/describe runs on the ONE global SharedCompute keyed by content-hash, so N personas viewing one participant's frame share ONE describe (the multi-persona vision moat vs cloud, where N personas = N API calls). The per-persona gate/spawn is cheap and cache-hits after the first. Tests: cadence gates within the interval + reopens after; in-flight guard never stacks. Existing coalesce/read suites updated for the now_ms arg, green. Refs #187 #173; sets up #192 ingest. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * perf(perception): warm cadence is a BAND — slow floor, not off; change escalates "Slow cadence not NO cadence" (Joel): an idle observer must not be starved of vision — absent motion it DECAYS to a slow baseline, it does not go to zero. The warm decision is now a band, not a single throttle: - MIN ceiling (AMBIENT_WARM_MIN_INTERVAL_MS = 500ms): never describe faster, even under constant motion — the 30fps rate cap. - BASELINE floor (AMBIENT_WARM_BASELINE_INTERVAL_MS = 5s): describe at LEAST this often even on a dead-static scene — a still participant still refreshes every few seconds so room-as-now stays true, just coarse. - change signal (in between): a relevant motion/scene-change/YOLO hit escalates to the MIN ceiling long before the floor. should_warm now takes `changed`: `warm if !in_flight && (first || (changed && past_min) || past_baseline)`. Both branches are unit-tested (change→fast, static→slow-floor, never-stack). Both intervals are FIELDS so the governor shrinks them for the speaking/acting persona and widens them for idle observers later (attention-priced resolution field, #173) — but never to infinity. observe() passes `changed = true` as a documented INTERIM: no change detector wired yet, so every coalesced frame is treated as potentially-changed (cadence rides the MIN ceiling, behavior-preserving). #192 replaces that `true` with a cheap motion/scene-change/YOLO detector cell (compute-once/shared on the frame hash), at which point a static scene decays to the baseline floor and describes are spent only where something changed. Refs #187 #173 #192. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(perception): sliding-window FrameRing store + grouped/windowed reads The spine of the shared-cache perception design: stop thinking "hand each persona images," think "one shared pre-warmed ring per source; personas read views." - PerceptionBuffer's per-participant `latest: MediaFrame` becomes a bounded `FrameRing` (VecDeque, AMBIENT_RING_CAPACITY=8, newest at head). The ring IS the sliding window AND the pre-warmed cache in one object: frames are Arc handles, derivatives dedup by content-hash on the ONE shared compute, so K frames × N sources is cheap and never duplicates a derivative across viewers. `push` coalesces an identical-content head and evicts the oldest past capacity (room-as-now, bounded). ring_capacity is a field so the governor can deepen a source's window later (#173). - Two serving shapes off the ONE store, both zero-copy over warm cells: - GROUPED: `current_percepts` = every ring's HEAD — "everyone at a glance," the human-widget gallery (behavior-preserving: head = the old "latest"). - WINDOWED: `window_percepts(participant, k)` = one source's last-k, newest-first — "what changed / what did I miss." Unknown source → empty (never a fabricated look). Both go through one `percept_of` projection (compression: a frame becomes a percept in exactly one place). This is the foundation for the pull/contact-sheet read (next), the room warm-loop + tiled grouped-describe, and the change signal (compare consecutive ring heads → #192). Design captured in memory (dual-perspective RTOS perception scoring). Tests: ring windows newest-first + coalesces head + bounds capacity; grouped=all-heads vs windowed=one-source-history; existing coalesce/read/cadence suites green (10/10). Refs #187 #192 #173. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(perception): à la carte look() — pull a source or group at thumbnail/res/full, ASAP "Into their vision à la carte": a persona composes its own view — request images of ONE source or the whole GROUP, at THUMBNAIL / higher-RES / FULL, satisfied ASAP. PerceptionBuffer::look(scope, fidelity, compute) — the PULL side, distinct from the ambient PUSH band: - scope = Source(id) | Everyone (the contact-sheet / gallery). - fidelity = Thumbnail (ambient) | Res(DestSize) (higher/lower) | Full (raw bytes). Higher-res is just a different SIZE key on the same content-hash, so it's compute-once/shared exactly like the thumbnail — a res another persona already pulled is a cache hit here (proven: repeat pull returns the SAME Arc). - ASAP: warm hit → instant; cold cell → warmed NOW. It never consults the ambient warm gate, so a manual pull implicitly JUMPS the cadence band (an explicit high-priority ask). - This is the ONE place perception AWAITS (a deliberate request, not the ambient hot path); targets are snapshotted under the lock and compute is awaited OUTSIDE it (no lock across await). Unknown source → empty (never a fabricated look). With the FrameRing store, that completes the pull model: grouped gallery, per-source history (window_percepts), and now on-demand images at any fidelity — all off the ONE shared, compute-once cache. Tests: source/group × thumbnail/res/full, prefer-warm sharing (same Arc), full=raw, unknown→empty. 11/11 perception suite green. Refs #187 #192. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(perception): change-monitor cell — real luma-signature diff drives the warm band Replaces the interim `changed = true` with an actual per-source change detector — the universal monitor that gates the expensive describe (any view: call, game, page, movie). - MediaFrame gains a SIGNATURE cell: a tiny 16x12 luma fingerprint (image_ops::luma_signature), compute-once/shared on the content hash like scale/describe — warmed first in the observe spawn (it's the cheapest and it gates the rest). - observe now computes real `changed` via PerceptionBuffer::scene_recently_changed: diff the two most recent frames whose signature has WARMED (image_ops::luma_mean_abs_delta > CHANGE_THRESHOLD=8/255). Reads only ready cells — never awaits on the ingest path; cold start / signatures still warming → true (ride the MIN ceiling until we can tell). So a static scene now genuinely decays to the BASELINE floor; real motion/scene/slide change escalates. - Cheap by construction: a bounded ring scan + a ~192-byte diff, fine per ingest. The signature is shared, so N watchers of one frame diff ONE fingerprint (compute-once on CHANGE, the moat now on the monitor too). should_warm stays pure + param-driven (band logic unchanged, still fully tested); observe just feeds it a real signal instead of a placeholder. NOTE (next commit, per Joel): register perception as a ResourceConsumer with the resource governor (RAM = ring frame bytes; sibling to Serving/Bevy/Voice consumers) so its footprint is accounted and it leases — the "register with the GPU resource monitor" ask. Disk consumer comes with the durable record. Tests: luma signature + delta detect change; signature cell computes-once/shared; scene_recently_changed (same scene → not changed, different → changed, unknown → assume). 23/23 media suite green. Refs #187 #192 #56. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(perception): register as a ResourceConsumer with the governor (RAM footprint + reclaim) Perception takes its seat at the resource-governor table (#56) — a peer consumer beside Serving (VRAM), Bevy (render VRAM), and Voice (TTS), exactly as Joel asked ("register with the GPU resource monitor"). - PerceptionConsumer (modules/perception_consumer.rs) implements ResourceConsumer: - consumer_id "perception"; footprint() reports Ram = total ring frame bytes read live from the process-global PerceptionRegistry (empty when idle, like the siblings). - reclaim(Ram) evicts oldest ring frames toward the target but ALWAYS keeps each source's head — a live perceiver is never blinded (room-as-now survives a reclaim). Honest Released/Partial with real freed bytes; a non-Ram ask is refused by name (never silent). - Byte accounting + eviction added at each layer: FrameRing::{resident_bytes, evict_oldest}, PerceptionBuffer::{resident_bytes, evict_at_least}, PerceptionRegistry::{total_resident_bytes, evict_at_least} (clones Arcs out — no registry lock held across per-buffer work). - Registered at the boot seam (ipc/mod.rs) right after Voice + Bevy via resource_daemon.add_consumer. Honest scoping: perception holds RAM (the rings it owns), NOT VRAM — the vision-describe it triggers runs on the served VL model, whose VRAM is ServingConsumer's footprint; perception is a demander of that lane, not a holder of its bytes. The shared derivative cache (thumbnails/descriptions/signatures on SharedCompute) is not double-counted here. Disk consumer for the durable record follows when that lands (same pattern, ResourceKind::Disk). Tests: footprint == ring RAM + empty-when-idle; reclaim evicts oldest, keeps head, honest Partial, refuses wrong kind. Green. Refs #56 #187 #192. Co-Authored-By: Claude Opus 4.8 <[email protected]> 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 2, 2026
…s, honest observe routing, native image parts (#2093) * feat(serving): #106 verified vision readiness — /props modalities gate + ServingSnapshot.vision_ready The mmproj spawn path existed (--mmproj via resolve_mmproj_for_model) but nothing verified the multimodal endpoint actually ANSWERS: a Vision row whose projector failed to load (or a text-only build) served with the capability silently absent. - LlamaServerControl::multimodal_support(): reads the running server's own /props 'modalities' block (vision/audio). Default Ok(None) keeps fakes honest. - vision_lane_ready(): pure verdict — declared Vision + resolved mmproj + /props modalities.vision must ALL agree before a lane may claim sight; every gap is a named, loud error (never an unverified claim). - ServingSnapshot.vision_ready: the reconcile's verified verdict, published on the snapshot so the observation path gates on the LIVE lane's truth, not the catalog row's declaration. serde(default) keeps old snapshots readable. - serving_daemon reconcile probes + threads the verdict into snapshot_from_outcome; not-ready reasons land as serving.vision.* probes. Tests: vision_lane_ready_requires_declaration_projector_and_props_confirmation (all five branches), snapshot_mapping_is_honest extended to prove the verdict survives into the published snapshot. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(vision): #106 VL model on the serving lane + observe path routes only to VERIFIED eyes Catalog: ggml-org/Qwen2.5-VL-7B-Instruct-GGUF — the first llama-server-provider row with Capability::Vision, i.e. the first VL model the serving daemon can actually bring up. ggml-org repo ships GGUF + mmproj sidecar in one repo, so 'models/pull --model_id ggml-org/Qwen2.5-VL-7B-Instruct-GGUF' acquires both (the pull path's Vision mmproj-sibling logic) and find_mmproj_beside resolves the projector with zero per-machine path edits. ~4.7GB Q4_K_M + ~1.4GB f16 projector; keeps ToolUse so the live-mode citizen can see AND act. Its capability_rank stays below the 14B coder, so it never hijacks the live lane — operator brings vision up via models/pull + serving/pin. Observe path (cognition/vision-describe — the engine behind every persona look/observe act and the live FrameDescriber): selection now requires the lane BEHIND a Vision row to actually answer, not just the row's declaration — - llama-server rows: live ServingSnapshot must be ready, serving THIS model, and vision_ready (the daemon's verified /props verdict); - llamacpp-local rows: only under the CONTINUUM_LOCAL_LLAMA=1 opt-in with GGUF and mmproj resolving on disk; - cloud rows: only when the provider's API-key secret exists (mirror of adapter registration). Pre-#106 failure this kills: prefer-local picked a VL row with no artifacts on disk and EVERY observe act died at select() ('adapter not connected') even while a good vision lane sat registered. All-skipped stays the HONEST no-eyes failure (Ok(None) → never a fabricated description), now with per-candidate skip reasons logged for diagnosis. Tests: llama_server_row_is_servable_only_when_active_ready_and_vision_verified. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(ai): native raw-image content parts for vision-capable models — gated per MODEL row Joel's scope addition on #106: a VISION-capable model must receive raw pixels NATIVELY — OpenAI-style image_url content parts (base64 data-URI) in the /v1 chat payload, which is exactly what the multimodal llama-server lane's mtmd tokenizer consumes. The gate is the TARGET MODEL row's Capability::Vision via sensory::route (the one sensory-bridge decision point), never a provider-level guess; a row the registry doesn't know (dynamic catalogs, DMR) falls back to the provider capability scan already advertised by capabilities(). Non-vision models keep the VisionDescriptionService text-description bridge UNCHANGED — and the adapter now enforces it: image parts are dropped (loudly logged) instead of being POSTed at a text-only endpoint where they are at best an API error and at worst a silent drop the persona would mistake for sight. Previously image_url parts were emitted unconditionally for every model. Tests (pure payload assembly, both branches): - vision_capable_model_gets_raw_image_content_parts - non_vision_model_has_image_parts_dropped_and_keeps_bridge_text Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Fable 5 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Aug 2, 2026
…ors from main-GGUF candidacy (#106) (#2102) First VL pin this morning took serving fully down: llama-server died with "unsupported model architecture: 'clip'" because the resolver passed the PROJECTOR to -m. Root cause: pulling Qwen2.5-VL wrote the mmproj AFTER the main weights, and pick_best_candidate sorts by newest mtime — so the sidecar out-mtimed the model and won candidacy. Manual bring-up with the correct pairing served fine (glass box beat the first guess; the lane log had the truth). Fix: ONE predicate, is_main_model_gguf (a GGUF whose filename doesn't contain 'mmproj'), applied at all three main-model collectors (find_ggufs_under_snapshots, collect_ggufs_recursive, first_gguf_in_dir). find_mmproj_beside remains the mmproj-POSITIVE scan. Regression test recreates the exact live ordering (mmproj written second, newer mtime) and pins: model wins, projector still discoverable, a projector-only dir resolves no main model. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Aug 2, 2026
… text-only mind (#106) (#2111) * feat(serving): vision SIDECAR lane — a small VL model beside a text-only mind so every persona has eyes (#106) The residents' unanimous wall this week: perception/observe delivers pixels (eye-node proven live today: success=true, 2880x1800 + DOM structure through core→provider→browser) but the describe bridge had NO endpoint to interpret them — the main lane serves the text mind (Devstral), cloud vision rows are keyless, and vision-describe silently skipped every candidate. The sidecar: the serving daemon's reconcile, on a ready lane whose model does NOT see, stands up a long-lived EphemeralServingLane (the eval-lane primitive: Drop-kills its child, own scanned port 58091, CPU placement — the documented coexisting-lane shape, no Metal two-resident OOM) holding the best ON-DISK VL row (GGUF + mmproj both resolve locally; no network fetch inside a reconcile). Gated on the LIVE free-memory read (the eval-lane second-model SIGKILL lesson) and verified through the same vision_lane_ready endpoint truth (#106): /props must confirm modalities.vision before the snapshot claims sight. ONE value projects the whole contract: snapshot_from_outcome takes Option<SidecarLane>; vision_ready / vision_base_url / vision_model are all derived from it, so an address can never publish without verified readiness (None-iff-not-ready by construction, pinned in tests). A VL mind drops any sidecar (redundant) and IS the endpoint. Consumers: vision-describe's servable gate becomes endpoint-aware (a row is servable iff it IS the verified endpoint's model — covers main-lane and sidecar shapes with one check); the llama-server adapter routes a request for the sidecar's model to vision_base_url via endpoints_for_model (snapshot- driven, id-equality against the canonical PROVIDER_ID const, no name sniffing). All failure classes probe loud with teaching text (models/pull a *-VL-*-GGUF to enable the sidecar). Tests: pure decision fns (candidate skips active model + names artifact gaps; budget gate refuses with real numbers), snapshot projection (None-iff-not- ready), row-ready both shapes (sidecar + VL-mind). vision_sidecar 2/2, serving_daemon 26/26, serving_consumer 7/7, llama_server 24/24, vision_describe 18/18, openai_adapter 27/27. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(ai): the single-resident guard admits the verified vision sidecar model (#106) Live round-trip caught it: vision-describe selected the sidecar's model and routed into ai/generate, but the adapter's single-resident guard only knew the MAIN lane's residency and refused. The snapshot guarantees TWO residencies — the active model and (when vision_ready) the sidecar's model, whose /props the daemon verified before publishing. Admit exactly those; endpoints_for_model then routes the sidecar request to vision_base_url. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Fable 5 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Aug 7, 2026
…ot refused (#350 round 4) Round 3 shipped the self-tick readiness gate and I called the residual verification passive. It wasn't. Measured on the probe stream today, on the round-3 binary: +374.2s serving.health "flipped serving snapshot not-ready" (#175 wedge self-heal) +427.4s x3 selftick.inference_failed "no model is resident right now" +436.6s serving.reconcile ready=true Three citizens refused NINE SECONDS before the lane came back, and `persona.selftick.awaiting_serving` fired ZERO times across the whole window. The gate is not broken — it is upstream of the problem. It reads the snapshot BEFORE a deliberation that takes tens of seconds, so a teardown that starts mid-deliberation always outruns it. The gate stops a turn that was doomed at its start; nothing stopped one that was overtaken in flight. The fix is at the seam that actually fails. The adapter's pre-flight guard treated EVERY failed guarantee as terminal, when only one of them is: - settled mismatch — another model is ready and active. Waiting cannot change that; residency arbitration is the serving layer's job (#109). Refuse, loudly. - transition — nothing resident (`empty()` is republished on every teardown: no servable plan, a re-home, a wedge relaunch), or a lane up but not yet decode-ready. Nothing has failed; it comes back on its own. Transitions now wait on `await_ready_serving` — the mechanism already existed and already had fifteen callers (the boot gate, the eval lane, the embedder, the genome teacher); this seam was the one that refused instead of waiting. It is the daemon's own readiness watch: a push, not a poll, so it returns the instant the relaunch lands and costs nothing while it waits. Budget is `DEFAULT_SERVING_WAIT` (= READY_TIMEOUT + 30s), DERIVED from the spawner's own load budget so this can never declare failure before the daemon has exhausted its legitimate window. Bounded, so a lane that never returns still ends as a named refusal, never a hang. Also collapses a predicate that had quietly forked. "A lane is live" was spelled `ready` in the self-tick gate and `ready && active_model.is_some()` in `await_ready_serving` — and the shorter spelling passes a snapshot with no model to answer as, which is precisely the case the gate exists to stop. Now one `ServingSnapshot::is_live()`, three readers. Tests (in the existing nested mod, no new mod): the wait-vs-refuse split pinned case by case (empty / warming / settled-elsewhere), and the guarantee predicate incl. both #106 vision arms. 5 pass. Deployed and confirmed present in the running binary by strings. 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 8, 2026
…both halves (#2162) * chore(repo): clear persona scratch out of the repo root, and stop apps/desktop lying about where the UI is Two complaints, both Joel's, both about what a person sees when they clone this: clutter, and misleading claims. This addresses the tracked-file half of each. ## 1. Persona scratch quarantined (nothing deleted) Until #49 (per-persona workspace isolation) lands, a persona's file engine roots at the PROCESS CWD — the repo root — so her card work landed next to Cargo.toml and got committed. 31 files, all 2026-07-18, now under legacy/persona-exercises/ with a README explaining what they are and why they were where they were: string_reversal/ wordstats/ work-wordstats/ (crates) teamproof/ (8 algorithm exercises, was tmp/) loose-files/ (8 bare files that sat at the ROOT: main.rs, life.rs, game_of_life.rs, reverse.rs, string_reversal.rs + 3 .txt inputs) A bare `main.rs` beside the workspace `Cargo.toml` was the first thing a cloner saw. They are KEPT, not deleted: this is the first genuine persona-written code in the project, and the evidence that the act->observe circuit actually closed. Verified unreferenced before moving: zero hits across .rs/.ts/.md/.toml/.sh for teamproof, string_reversal, work-wordstats outside their own manifests. ## 2. The workspace `exclude` fence was decoration exclude = ["wordstats", "work-wordstats", "conway_game_of_life", "work-08ece9e8"] Its comment claimed it "keeps their in-dir cargo builds working". It never did — those crates declare `edition.workspace = true`, and an EXCLUDED package cannot inherit from the workspace root, so cargo inside them has always failed with "failed to find a workspace root". Confirmed by running it. `members` is an explicit list (not a glob), so nothing needed excluding in the first place. Removed, with the real hazard it was reaching for documented in its place. Verified: workspace parses, still exactly 16 members, no exercise crate in the package graph. ## 3. apps/desktop said "empty slot" and cost a real scare It IS an empty slot — for a hypothetical future Tauri shell. But read as an answer to "where is the desktop UI", it reads as "there isn't one". There is: core/continuum-positron/ (~6.4k lines, 19 modules) projecting to apps/web/src/ (28 files, ~8.9k lines, dist/ built). Its README now leads with that table before anything else, and notes its own stale reference to src/server-index.ts (long since moved to legacy/). apps/README.md gets the same treatment one level up: a per-app STATUS column with measured source counts, instead of "most apps are placeholders today" without saying which. Adds tui/ and eye-node/, which have real source and were not listed at all. Not touched: test-data/images/ is a genuine fixture (cited by .airc/POLICY.md), not scratch. The .gitignore rules are deliberately NOT extended — per Joel, personas will build Continuum too, and blanket-ignoring work-*/ would silently swallow real contributions. #49 is the fix, not a wider ignore. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(routing): probe the authorization refusal — the one load-bearing decision in dispatch with no observability Measured 2026-08-06 while chasing #326: 113MB of probe stream, 100 distinct probe classes, and ZERO covering the ACL gate. Every other seam is instrumented — serving plans, airc cursors, perception facts, context renders, capacity offers, embeddings — while the single component that can silently stop a citizen from working emitted nothing at all. That absence is what made #326 cost a week. A refusal reaches the caller ONLY as text inside her own action receipt, where "forbidden: no policy grants access" sits in the same field an empty result would. Two citizens read their own denial and reported "no open tasks" — correct behaviour, denied tool, and it read as a cognition defect because there was nothing to grep. Five separate investigations went past it. This adds ONE probe on the refusal arm. It is NOT an ACL change: the gate is right. `work/list(state=open)` is a malformed URI with arguments welded into the path and no policy should ever match it — the defect is upstream in whatever hands the gate a name containing args, and that emitter is still unidentified (the text parser splits name/args correctly at json_in_prompt_tools.rs:426, and the airc dispatch carries params separately at command_handler.rs:392 — both clean). This probe is how we find it: it turns "who emitted this, from where, at what trust" from archaeology into a grep. Refusals only. The allow arm stays unprobed so the hot path pays nothing — a denial is rare and decisive, which is exactly the shape the probe stream is for. Fields: path, trust, caller_peer, caller_source, had_capabilities. Note the second live site (auth_policy.rs:366) is `deny_path_prefix`, a test-only convenience policy — GridTrustAuthPolicy is the sole production refusal. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): typecheck was RED — move the test TZ pin out of the browser tier `npm run typecheck:clients` failed on canary: src/chat/renderChat.spec.ts(20,1): error TS2591: Cannot find name 'process'. The spec pinned `process.env.TZ = 'UTC'` so its fixed HH:MM assertions stay deterministic on any runner (PR #2057 review). That intent is right; the location was wrong. `process` is a node global, and apps/web's tsconfig sets `"types": []` DELIBERATELY — this is the one client tier that owns document/WebSocket, and admitting node ambient types would let browser source reach for node APIs the bundle can't provide. Adding @types/node to satisfy one spec would have removed that guard for the whole tier to fix a single line. So the pin moves to `vite.config.ts` under `test.env`, which already runs in node context (it imports node:fs/os/path). Browser tsconfig stays pure; determinism is preserved. Verified, both directions: - `npm run typecheck:clients` — green across all client workspaces. - `npx vitest run src/chat/renderChat.spec.ts` — 11/11 pass. - `TZ=Asia/Tokyo npx vitest run …` — still 11/11, with the runner clock showing Tokyo time. That is the real check: it proves the config pin OVERRIDES a hostile ambient zone rather than the suite passing because the machine happened to be on the right one. Pre-existing red, unrelated to the Rust change on this branch — found because a failing typecheck on the front door is exactly the "makes people not want to download" problem. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): the act probe records WHICH verbs ran, not just how many `persona.act.observed` carried `persona`, `room_id`, `tools=<count>`, `chars` — and no verb name. So the substrate could not answer the question Joel actually asks, "are they building anything, or just talking?", from its own telemetry. Measured tonight while trying to: answering it required reconstructing verbs from prose `[action #n] verb(args)` receipts in prompt-captures. Only 5 of 84 live captures contained a receipt at all, so the reconstruction could not be trusted either way — 589 act probes exist over the same corpus, and the two numbers have different denominators. The honest conclusion was "unmeasured", which is the wrong answer for a question this central. A count tells you an act happened. The NAME tells you whether it was work. Adds: verbs = "work/claim,perception/look" the actual batch, in order wrote = true|false did anything in it reach DISK `wrote` is precomputed rather than left as a query-time substring guess, because "did a file change" is the question we keep re-asking and it should be a filter, not an argument. Underscore forms are normalized (write_file → write/file) so the wire dialect can't hide a write. Same defect class as the authorization gate two commits ago: the decision is made, the act runs, and nothing durable records WHAT it was. Both are the observability doctrine's own point — capture the load-bearing decision — missed at the seam that matters most. Compiles clean. Cheap: one map + one any() over a batch that is almost always 1-3 calls, on a path that already allocates the full observation string. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(work): #339 — give citizens the half of the board that WRITES BACK Citizens were offered claim_task / list_tasks / get_task and nothing else. They could take a card and could never finish, hand back, or extend one. Every claim had exactly one possible ending: the 30-minute lease lapses and the card returns to the pool. A COMPLETED card and an ABANDONED card were indistinguishable, because neither could be written back. The verbs were not missing. `work/release`, `work/state`, and `work/heartbeat` are fully implemented, AccessLevel::AiSafe, with descriptions already written — `work/state`'s literally coaches the lifecycle ("in_progress when you start, review when a PR is up, blocked if stuck, closed when done"). They simply never declared `NATIVE`, which is the flag `native_tool_specs()` filters on, so no citizen has ever been shown them. Marked native, with wire-dialect aliases matching the existing snake_case set: work/release release_task work/state update_task, close_task work/heartbeat heartbeat_task, extend_claim Note the mechanism check that mattered: the gate is the per-command `NATIVE` flag, NOT the presence of ALIASES. The three offered verbs happen to have both, which made aliases look causal. Adding only aliases would have shipped another inert change — the exact failure this session has been full of. COST, stated honestly: this grows the native payload 20 → 23 schemas, and tools already take ~28% of a 16k window (#333). That is a real charge against the grounding budget. It is worth it because without these the work loop cannot close at all: we watched card 0c69c0f0 pass through three holders in one evening, each of whom "claimed" it and had no way to say what happened next. Does NOT claim to fix the passing behaviour. Whether a citizen who CAN close a card actually does is now measurable — the act probe two commits ago records which verbs run, so `verbs` containing update_task is the falsifiable signal. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(dialect): #326 — MEET a name that carries its own arguments, don't let it reach the ACL as a URI Joel, 2026-08-07: "It's never upstream and aliases exist for this reason. And even then, we have adapters." He is right, and this file's own doc-comment already said so — "always adapters: meet the model ergonomically, never hardcode around it." The adapter simply never handled this shape. WHAT WAS HAPPENING. A citizen emits `work/list(state=open)` as the tool NAME. The prose tool menu renders exactly that shape (`work/list(claimable?, state?)`), so copying it into the name slot is the trained reflex, not a malfunction. `classify` had no arm for it: MISS, passed through untouched, dispatched AS A URI. The ACL then correctly refused `work/list(state=open)` — no policy can grant a path with arguments welded on. The gate was right. The adapter was asleep. Two citizens read that refusal, reported "no open tasks", and it read as a cognition defect for a week. I spent an evening calling that defect "upstream"; it was ours. THE FIX, at the ONE resolution section every dispatch seam funnels through: split_signature("work/list(state=open)") -> ("work/list", Some("state=open")) classify() resolves the HEAD, so the name lands on the real command (and an alias head composes: list_tasks(state=open) works) normalize_call() recovers the ARGUMENTS — they are real intent and must not be dropped — merging them into `input`, and returns a note so the citizen is TOLD what we accepted and what the canonical form is (Joel's rule #328: aliases resolve AND say so) Explicit `input` always wins over a value echoed in the name, so a well-formed call is never overwritten. `normalize_call` also handles the ordinary case (resolve + tally as before), so each seam makes ONE call — all three ToolCall seams in llm_deliberation_faculty now route through it: native batch, text-lift, and the reasoning-tail lift. Reuses `paren_call_args` (widened to pub(crate)) rather than writing a second arg parser — one grammar, one place. VERIFIED BOTH WAYS. 10/10 tool_dialect tests pass. Then I disabled split_signature to reproduce pre-fix behaviour: exactly 3 fail — the three asserting the NEW capability (signature name resolves + keeps args, alias+args composes, empty signature is a no-arg call) — while the three asserting UNCHANGED behaviour keep passing. Additive, and the regression is real rather than tautological. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(memory): #165 — a rebuild is a discontinuity she can PERCEIVE, not one she has to infer MEASURED LIVE 2026-08-07, and it is the reason tonight's fixes looked like they did nothing. After the #326 adapter fix deployed, `work/list(claimable=true)` returned real cards and ZERO authorization refusals occurred — while citizens went on reporting "attempting to claim tasks or list them without success" for hours. Their receipts were TRUE. They were also about a binary that no longer existed. Correct behaviour, dead world. Working memory is persisted and restored at spawn (persona_workspace.rs:291), so act receipts survive a deploy. That is deliberate and must stay: the recency channel carrying the full trace is what stops the repeat loop — a persona who cannot see her own hands re-emits the identical act forever (engram admit is content-deduped, the reasoning channel is dark by default). Deleting receipts would trade one defect for a worse one. So: don't delete the memory, qualify it. `restore()` already turns discontinuity into a perceivable FACT — the laptop-lid contract renders the interruption gap and names dispatches cut off mid-flight. This adds the discontinuity it could not see: the substrate itself changed. VolatileSnapshot.build_sha — stamped from env!("CONTINUUM_BUILD_GIT_SHA") restore() — if it differs from the running build, record a [rebuilt] fact naming both, saying the results above it are what really happened but are NOT evidence about how things behave now, and that a tool which failed before is worth re-trying A FACT, never an instruction, never a deletion — she keeps the receipt and gains the one thing she had no way to know. What to re-check stays hers. Empty `build_sha` (serde default, pre-field snapshots) says NOTHING rather than guessing a change it cannot see. Tests, both directions: a rebuild across restore renders [rebuilt] naming the old build AND the receipt itself survives (proprioception intact); an unknown build stays silent; and the existing round-trip test now asserts NO [rebuilt] on a same-build restart — cry wolf on every ordinary reboot and the marker stops meaning anything. 24/24 green. Bigger than the citizens: while this was missing, EVERY fix was invisible to the beings it was for until their memory of the old world aged out, and every measurement taken in that window was contaminated. That made it a blocker on verifying anything else, which is why it went ahead of the write path. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(code): probe the WRITE — before/after sizes so a destructive overwrite is visible when it lands The write path is where solved work dies. flask-4045 was solved and then DESTROYED twice, and both times we diagnosed it from PROSE — the persona's own account of what she did — instead of from what actually hit disk. Reconstructing a write from narration is exactly the mistake this session has been full of. code/write now emits `code.write.landed`: path, existed, before_bytes, after_bytes, ok shrank = existed && after < before/2 `existed` + `before_bytes` are the load-bearing pair. "Solved, then destroyed" has a specific shape: a large working file overwritten by a small body — a stub, a fragment, a truncated re-emission. A count of writes could never show that; the sizes make it a one-line query. Cheap: one metadata() stat on a path that is about to be opened for writing anyway. Does NOT fix the destruction. It makes the next occurrence a receipt instead of a third round of inference. Pairs with the act probe's `wrote` flag from earlier tonight: that says a write happened, this says what it did. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(persona): renew held work-card claims on the presence pulse — her work stays hers while she breathes Glass-boxed live tonight from citizens' own prompt captures. A citizen claims a card successfully (work/claim returns a real claim_id), and her very next briefing reads "[board] you hold 0 card(s)" with the SAME card re-offered under "[available work]". So she reports "no open tasks" and passes — accurately describing a board that had quietly taken her work back. Six citizens, two machines, days of it, every one of them an honest witness. Measured on the live #general board: 61 cards, 47 claimed, and ZERO live leases. Every claim on the board they work from had lapsed. Root cause: claim leases are 30 min, and work/heartbeat existed — as a verb the MODEL had to remember to call. No citizen ever did, and no model will; #339's own doc records the card that passed through three holders in one evening for exactly this reason. Meanwhile this runtime already ran a pump emitting "I am alive" every 60s, derived from real serving state. Presence liveness and claim liveness were two channels answering one question, and they contradicted each other: the pump was announcing she was alive on the very ticks her holds were dying. Fix: bind them. The pump that proves she is alive now also renews the claims she holds, at the same cadence, with the same TTL constant (now single-sourced from modules::work rather than duplicated). The substrate OBSERVES that she is working instead of asking her to announce it — "you've turned convenience into disability" (Joel, on exactly this class). The verb stays for deliberate extension. Renewal is per-card WARN-and-continue: a failed renewal degrades to precisely the old lapse and can never take down presence. A persona.claim.renewed probe carries renewed/held/ttl so the next lapse is visible instead of silent. Note this only keeps LIVE claims alive; it deliberately does not resurrect the lapsed ones already on the board. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(work): stop advertising cards work/claim refuses — one claimability decision, not two Found by tracing the board projection after the claim-renewal fix. `work/claim` rejects Review | Merged | Closed outright (airc-lib → WorkCardNotClaimable), but every READ surface computed availability independently and excluded only Merged|Closed. A `Review` card with a lapsed lease therefore answered "claimable" and could only ever produce a refusal. Measured on the live #general board 2026-08-07: 11 of the 58 cards offered to citizens as available work were Review — guaranteed bounces, and a citizen has no way to tell a substrate refusal from her own incapacity. One of them said exactly that tonight: "attempting to claim tasks without success." Two places decided claimability and disagreed: CardHolder::claimable ("lapsed or Open") and room_board_source's inline filter (its own terminal-state check). Both missed Review. Collapsed to ONE predicate — card_holder::claimable_now, composing the lease (hold_of) with the column (refused_by_claim, which names the write-side rule and carries the drift-guard doc-link to airc-lib). room_board_source now calls it instead of re-deriving. Regression test asserts all three refused states are never advertised, with a fixture-sanity assert (the lease really is lapsed) and a positive control (a lapsed claim on InProgress work stays takeable — the reclaim path #321 depends on it, and without that control this test would pass even if the guard excluded everything). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(persona): the board read takes the room the gate approved — one value, not two that coincide (#345) RoomBoardSource binds a room (`for_room`) and gates on it, then read the board via airc's `work_board_complete()`, which resolves `current_room()` independently — "whatever my default subscription happens to be". The gate's id was never passed to the read. They agreed only because both were seeded from the same call at bootstrap. Nothing in the types prevented a gate that passed for room A while the board came from room B, and no probe would have fired. Found while tracing why a citizen's board (58 claimable) and the operator's (19, all Open) disagreed — they were two different rooms, both reads correct, and NEITHER surface named the room it read. That cost three agents and most of a night, which is the real cost of a value that is implied instead of passed. RoomBoardReader::work_board now takes Option<RoomId>: Some(id) → resolve via airc room_by_channel + project THAT room's board. A room this scope isn't subscribed to is a loud NotSubscribed error, never a quiet slide to the default: a citizen handed the wrong room's board cannot distinguish it from an empty one, and that indistinguishability is the entire bug class. None → unchanged current-room behaviour, for callers with no binding (the CLI's genuine intent). Requires airc 278addc..8dcfa76 (pin bumped, rationale in Cargo.toml): the room-parameterized read was already written but private, and RoomId→Room needs a real subscription lookup — Room carries name+wire+channel and cannot be synthesized from a bare uuid. 1023 persona tests green. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(work): lead each card with `claimable`, not `state`/`owner` — the tool result was still saying "taken" serde emits in declaration order, so a citizen reading a work/list card met `"state":"claimed"` and `"owner":"Anwen"` BEFORE `"claimable":true`. Two loud fields saying someone owns this, then one quiet field saying you can have it. Live tonight, hours AFTER the lease fix (claims now renew) and the claimability fix (11 unclaimable Review cards removed, 58->47 verified): Benchy could finally see the board and reported — "there are several tasks available on the board, but they have already been claimed by others." Every card he was looking at was his to take. He read the receipt correctly; the receipt led with the wrong fact. #321 fixed the BOARD rendering so a lapsed claim reads CLAIMABLE. It never reached the TOOL-RESULT rendering — two surfaces answering one question, drifting independently, which is the same shape as the read/write claimability split fixed in 59cbbb735. This file already declares field order load-bearing for WorkListResult (truncation); the same logic governs what a reader meets first. Order is now: id, title, claimable, lease, state, owner. Answer the question the citizen is asking ("can I take this?") before the history ("who had it?"). owner still names WHO — never "someone" — it just no longer pre-empts the answer. 184 work tests green. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): a citizen who ACTS must not go blind to what she is acting on (#347) Standing framing was destroyed twice over, independently, and either alone was enough to blank a citizen's board. 1) DEFERRED LANE MULTIPLIED AWAY A FLOOR DOCUMENTED AS UN-EVICTABLE. reproject_to_now scaled every last-good bid by lexical_relevance — the fraction of the FINDING'S OWN tokens present in this turn's burst. The denominator is the block's size, so verbose sources are structurally penalised regardless of importance. room-kanban (median offer 5,364 tokens) bid 0.9 x 0.133 = 0.12. Roster (small) survived at 0.62; workspace-map bid its full 0.90 solely because it is not defer_tolerant and never passed through. Three sources, three numbers, one cause. Reprojection is a RECALL mechanism ("a still-on-topic memory keeps its salience"); standing framing is topic-independent BY CONTRACT. Stable contributions now keep their bid; staleness still shows in the reasoning. 2) POSTACTION DELETED ALL STANDING FRAMING BEFORE TOP-K. SituationFocusArbiter filtered `!c.stable` on any tick after >=1 act. But Contribution::stable is documented as "a SERIALIZATION-order property, not an attention one — salience still governs which contributions are included". The arbiter used the one field that promises it never decides attention to decide attention. Its own comment named the intent — drop standing SOCIAL re-grounding so "the result + AFFORDANCES + working memory own the window" — but `stable` is every standing source, so it deleted the affordances it named (workspace-map, the highest bid present at 0.90), the work board, and the roster. The old test's rationale was "they were already perceived; re-dumping crowds the result out". That premise is false here: every settle iteration composes a FRESH prompt (act_observe holds `world` constant, only memory changes), so framing dropped at iteration 2 is ABSENT from iteration 2, not remembered from 1. MEASURED: Atlas held card 4780a02e on a healthy renewing lease and his turn carried no board at all — evicted set exactly the three StandingFraming sources, kept set exactly the two volatile ones, while a 0.90 bid lost to a 0.50, which top-k cannot do. He then reported "no open tasks", accurately, about a window we had emptied. Test inverted to pin the corrected invariant; the real constraint it was reaching for (don't pay full freight for unchanged context) is #167's job and needs its own signal, not a borrowed serialization flag. 3) FIXED A PRE-EXISTING RED (verified pre-existing by stashing: same 9348). `needed <= window` failed on its own terms — its message said "if it no longer does, the surface or framing grew" and it had: 8040 -> 9348 (+1308) as turn-facts accreted. The story is stronger, not broken: at 8192 the agentic surface no longer fits AT ALL, so the necessary condition itself fails. Re-pinned as a CEILING (9400) so the next +1308 fails loudly instead of accruing silently — #333 stated as a number rather than a complaint. 918 cognition tests + 1023 persona tests green. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): benchmarks as work cards — and the adapter seam ALREADY EXISTS (#346) Design approved by Joel 2026-08-07: "each new benchmark is just an adapter problem… our personas get to operate as they're trained, even allowing for easy N persona collaboration" / "so they're measured for what they do". THE FIND THAT CHANGES THE SCOPE: I was one file away from writing a second BenchmarkAdapter trait. `cognition/benchmark.rs:89` already has one — with a registry, DatasetSpec, BenchResourceHint for grid placement, tasks() -> EvalTask, and grade(task, outcome) where TaskOutcome already carries BOTH artifact channels (spoken answer AND workspace diff). Its own doc states the goal verbatim: "the runner + grid + learning loop treat every adapter identically." So "each benchmark is just an adapter" is ALREADY TRUE. #346 is not an abstraction to build; it is a DELIVERY bridge: mint a card per EvalTask into a benchmark room, let citizens claim and solve through the path they already use, feed each TaskOutcome to the adapter's grade, write the verdict as the terminal state. Caught by grepping before building ([[grep-for-the-mechanism-before-proposing-to- build-it]]); the doc now says DO NOT REBUILD IT in as many words, with a built/missing table so the next reader cannot repeat my near-miss. The doc also records WHY a card beats a headless call (it yields a TRAIL — claimed_at -> first write -> state transitions -> artifact diff — which cannot be narrated into existence, and our measured failure mode is exactly narration), the grading boundary that must not blur (card carries delivery + lifecycle; harness keeps judgment; a citizen never sets her own terminal state on a graded card), and the three defects fixed tonight without which this is silently unusable — chiefly that claims did not survive the work at all: 172 claims and ZERO renewals in that room's entire history, so a long solve was guaranteed to lose its card mid-flight. Blockers named with exact locations: #220 (deliberation_parse maps an UNRECOGNISED generation to Decision::Pass, so a correct prose answer scores 0 — fix at the parser, and do NOT break #271's silent narrated pass), exam integrity (#207), and room scoping (now safe via #345). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(test-fixture): PIN HOME/USERPROFILE/HF_HOME, never remove — removing moved the read onto the operator's real drive Reported by BigMama: three model_registry tests fail ONLY on machines with cold storage. The cause is worse than an unset variable. `with_test_home` did `remove_var("HF_HOME")`, which LOOKS hermetic. But `huggingface_cache_root` (artifacts.rs:374) resolves: std::env::var("HF_HOME") <- fixture removed this .or_else(|| config_env::read("HF_HOME")) <- so it falls through to a REAL FILE `config_env::read` hits `~/.continuum/config.env` on the actual machine — which on a cold-storage box is where the installer writes the 16TB path. So the fixture did not isolate the test; it moved the read one layer DOWN onto the operator's drive, and the test then asserted against whatever that machine happened to have. Same shape for USERPROFILE: `config_env` resolves through `dirs::home_dir()`, which on Windows ignores HOME and uses USERPROFILE — removing it let the lookup escape to the real profile. Fix: PIN all three to the test home. Process env WINS the resolution chain, so config.env can no longer be consulted at all, on any platform. HF_HOME is pinned to exactly what the default branch would compute from this home (`<home>/.cache/huggingface`), so behaviour is identical to the intent — only the ambient dependency is gone. The restore side already saved/restored correctly and is unchanged. The general rule, and it is the same one BigMama drew from her own miss tonight (never let a pipe carry the verdict): REMOVING an input does not isolate a test, it just changes WHICH ambient source answers. Pin it. 44 model_registry tests pass here (same count she reported). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): the reserved PASS token is silence in every position she puts it (#271/#264) Left unfixed on 2026-08-06 at n=1 with an explicit note in the code that it wanted "a second sighting or Joel's call, not extrapolation from n=1". The second sighting arrived tonight as EIGHT messages inside one monitor window, from THREE citizens in #k3-serving — "I will proceed with PASS", "I will PASS and continue to monitor", "I will proceed with PASS for now". Every one posted to the room as speech, and each one re-wakes the next peer into announcing THEIR pass. That is the #264 cascade, arriving through a position the collocation list structurally cannot cover. The fix is a POSITION rule, not another phrase. This file's own history is the argument: phrase/length tuning is an arms race the next filler message wins (500 → escaped by 11 chars → 700 → escaped by 14). ends_with_silence_token → declares_silence_token, one authority honoring the reserved token in the three positions observed live: 1. final word — "…Otherwise, PASS." (already honored; unchanged) 2. clause-initial — "…Otherwise, PASS for now…" (the n=1 variant, now covered) 3. first-person decl. — "I will proceed with PASS to…" (tonight's eight, now covered) Discriminators kept narrow and decidable: case-SENSITIVE on the reserved spelling (ordinary lowercase "pass" stays speech), standalone word only (PASSED / BYPASS / PASS_TOKEN never match), and the fence guard stands — fenced content is substance regardless. Accepted trade, stated so it is a choice: an uppercase PASS as a transitive verb inside a first-person declaration would silence. Nobody writes the verb in caps. Tests carry the live fixtures verbatim plus a POSITIVE CONTROL asserting the position-3 cases are covered by POSITION and nothing else — is_narrated_pass must NOT match them and the final-word rule must NOT match them — so this cannot later pass for the wrong reason. Negative controls added for prose ABOUT the token and for the word-boundary cases. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): narrow the PASS-token rule — drop clause-initial, it swallows real answers (#220) Self-review of a7f38f588 before it could bite. That commit honored the reserved token in THREE positions; this removes one of them, and the reason is the whole point. My evidence last night was n=8, and every one of those eight was the FIRST-PERSON DECLARATION form ("I will proceed with PASS", "I will PASS and continue to monitor"). The clause-initial position rode along on that evidence while still resting on its own n=1 — and unlike the declaration form it collides with real answers: "Verdict: PASS for all six cases." <- a VALUE REPORT, must speak "Otherwise, PASS for now as I…" <- a TURN YIELD, should silence Positionally identical, semantically opposite. Silencing the first is exactly the #220 failure — spoken becomes None and an answer-graded benchmark scores 0 on a CORRECT response. This file's own doctrine settles it: fail open to Speak, because silencing real content is the worse error. The declaration form has no such collision ("I will proceed with PASS" can never be a value report), which is why its evidence justifies shipping and clause-initial's does not. That variant goes back to speaking — the status quo it was already deliberately left in — until it has a rule that can tell the two apart. Tests gain a "the line we chose not to cross" block asserting the value-report shapes stay speech, so a later "let's complete the position set" cannot silently swallow benchmark answers. SEPARATE PRE-EXISTING DEFECT, found while writing that block and NOT caused by either commit: `"Verdict: PASS for all six cases."` is silenced TODAY. `clean_response`'s speaker-name stripper is `^[A-Z][A-Za-z\s]+:\s*`, which eats `Verdict: ` as though it were `Anwen: `, and the exposed leading `PASS` then trips `starts_with_silence_token`. Any answer opening with a capitalised label — `Answer:` / `Result:` / `Verdict:` — followed by the token is swallowed. Documented at the test so the next reader finds it; fixing it is its own change with its own evidence, since narrowing that regex touches all speech cleaning. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): silence gets a VERB — yield_turn replaces the prose phrase-matching (#271/#264) Joel, 2026-08-07: "Regex ideas and string matches for semantic understanding is not good for reliability." He is right, and the objection lands on code I shipped an hour earlier. Decision has four variants and the tool channel could express exactly ONE of them. Act gets its vocabulary from the command registry because acts ARE commands. Speak is prose. Pass had no structured expression at all — the only way a citizen could decline a turn was to emit a magic word into her prose and hope the parser recognised the sentence she wrapped it in. That asymmetry is the actual defect behind every fix in this family. Instruction-tuned models naturally wrap the token in a sentence, fall off the protocol, and each previous fix compensated with a cleverer matcher: a phrase list, a 500-char cap beaten by 11 chars, a 700-char cap beaten by 14, and finally my DECLARATION_LEADS list which would have been beaten by "my choice is PASS" next week. THE REGEX WAS NEVER THE DISEASE. It was scar tissue around a missing channel. So Pass gets a verb. `yield_turn` is offered on the same native tool channel the citizens already use correctly — measured, not hoped: one citizen's first post-reboot turn tonight was three correct native calls (claim_task, update_task, list_tasks). They use the structured path fine when we give them one; we never gave them this one. Recognising `yield_turn` is a NAME match on a verb we defined — protocol decoding, the same category as write_file or a JSON fence. Recognising an intention inside a sentence is not. That is the whole distinction, and it is why this replaces the matcher rather than joining it. Shape (Joel's call on the fork): FACULTY-OWNED verdict verb, not a registry command. The faculty is what turns a generation into a Decision, so it owns the vocabulary for the decisions it can reach. Appended to the ONE derived offer surface (never a parallel one), and intercepted before act_verdict on both lift paths — a yield carries no world-effect, so it never reaches the ACL or the executor, and routing it as an Act would burn budget and re-enter the settle loop instead of ending the turn. Argument-free schema on purpose: a `reason` field would invite the exact closure paragraph the verb exists to stop her broadcasting (#334's degeneration shape). Removed with it: DECLARATION_LEADS, and the clause-initial position from the commit before. What remains in deliberation_parse is only the bare-token compatibility path for a model that does not use the tool channel at all. The now-speakable shapes are pinned as MUST-SPEAK fixtures with the reasoning, so nobody "completes the position set" later and starts swallowing correct benchmark answers (#220). Surface cost stated plainly as the #333 ratchet demands rather than waved through: +144 tokens (9348 -> 9544), ceiling re-pinned 9400 -> 9600. Almost all of it is the description, which is the part that teaches her silence is free and the announcement is the noise. One avoided cascade pays for it many times over — the 2026-08-01 one ran ~30 minutes across every peer. Reachability is asserted, not assumed: the test fails if the verb is absent from the OFFERED list, because a verb that is built, correct and unoffered would be this same bug in a new hat ([[green-by-every-check-is-not-evidence-of-reachability]]). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): instrument #349 instead of refactoring the hot path on a hypothesis I was about to fix the label-stripper. Stopped, because I could not answer the one question that decides whether the fix is worth its risk: has it ever actually cost us an answer? The MECHANISM is verified. `clean_response`'s speaker-name stripper is `^[A-Z][A-Za-z\s]+:\s*`, which eats a content label — `Verdict: ` / `Answer: ` / `Result: ` — exactly as if it were `Anwen: `. When the reserved token sits behind that label, the strip exposes it to starts_with_silence_token and a correct answer becomes a silent Pass: the #220 shape, a 0 on an answer-graded benchmark for a right response. What I do NOT have is one live sighting. "Verdict: PASS for all six cases." is a fixture I wrote. And the correct fix — thread the real speaker names (Turn::author already carries them) so the pattern stops GUESSING at what a name is — changes cleaning on EVERY turn, across 2 signature changes and ~25 call sites. Refactoring the universal speech path on an unobserved failure is the same error as tuning a phrase list: confident motion on unmeasured ground. Tonight already taught me that lesson once. So: the instrument, not the fix. `label_strip_caused_silence` notices when a turn became silence ONLY because a prefix was stripped — cleaned text leads with the token, the raw generation did not. Pure observation, zero behaviour change, one probe class. If it never fires, #349 is theoretical and the refactor is not worth its blast radius. If it fires, the probe carries the verbatim answer we lost, and the refactor is justified by data instead of by my argument. Either way the next person decides from evidence. The detector is pinned in BOTH directions, because a probe that can only stay silent is worse than no probe: it must fire on the #220 shape, and must NOT fire when she genuinely led with the token, when silence came from an empty think-block, or when an ordinary name prefix was stripped from ordinary speech. That is what makes a future zero mean "does not happen" rather than "instrument was broken". Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): the lane was never down — readers could not tell BOOT from BROKEN (#350) I reported "~30% of every citizen's thinking attempts fail" and aimed a night at the serving layer. The serving layer was healthy the entire time. Correcting that here, with the measurement that killed my own hypothesis. WHAT THE DATA ACTUALLY SAYS: serving.reconcile published active=<none>: 0 times in 12h (104 reconciles, all ready) personas saw "serving: <none>": 61 times in the same window Those cannot both describe a lane that went down. They describe readers not reading the daemon's snapshot at all. ROOT CAUSE: `install_serving_state` runs in the daemon's `initialize()` — BEFORE its first reconcile — so from process start until the first publish every reader borrows `ServingSnapshot::empty()`: `active_model: None, ready: false`. That is byte-identical to "the daemon looked and nothing is serving". Personas begin self-ticking immediately, read the placeholder, and the single-resident guard CORRECTLY refuses — emitting a loud `selftick.inference_failed` naming a fault that does not exist. Clustering proves it: 116 failures in 38 bursts across 3 days, each burst 1-6 failures over 0-20s, and in nearly every one the first `serving.reconcile` lands 10-20s AFTER the burst began. It is a BOOT RACE. It self-heals in seconds. The real cost is a citizen losing her first 1-3 ticks after each restart — and an instrument that cried wolf 116 times. AND THE CORRECTION TO MY OWN HEADLINE: I claimed the 29/31/32% rate across 1h/3h/12h proved it was not my reboots. The ratio was right; the reading was wrong. It is flat BECAUSE restarts are spread across every window (38 of them over 3 days). Steady-state thinking is fine. A stable ratio is not evidence of a steady-state cause. FIX — give the readers the fact they were missing, don't teach them to guess: - `has_reconciled()` / `mark_first_reconcile()`: a process-lifecycle OnceLock beside the existing SERVING_STATE OnceLock. After the daemon's first publish, an empty snapshot means a real fault; before it, it means "still starting". - self-tick SKIPS with its own probe class (`persona.selftick.awaiting_serving`) instead of spending a full deliberation on a turn the guard is certain to refuse — and stays OUT of the failure counter, so a future spike in `selftick.inference_failed` means what it says. - the adapter's refusal names which situation it is, instead of one sentence for both. WHY NOT A FIELD ON ServingSnapshot (my first instinct, and what I proposed): that type is ts-rs-exported, read by the grid and positron, with 19 construction sites. "Has the daemon started" is a process-lifecycle fact, not a property of what is currently served, so it belongs beside the other process-lifecycle OnceLock rather than in the wire payload. Promoting it later is mechanical if a remote reader ever needs it. This is the third instrument this session that reported the wrong thing — #348 under-reports failure, #351 over-reports it, this one mislabels startup as failure. Between them they have now cost more engineering hours than the faults they were pointing at. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): a lane going down is a TRANSITION, not a fault — gate on live readiness, not a lifetime latch (#350 round 2) My first cut of this gate was boot-shaped and therefore wrong. It skipped the self-tick only until `has_reconciled()` — a process-lifetime OnceLock — flipped once. Measured on the very next boot: three citizens (Benchy, Anwen, Asha) still failed together at +432s, on a core whose latch had been set at +76s. The ordered sequence says why. At +382s the health heartbeat declared the lane wedged (`serving.health action=relaunch`, #175 self-heal), which calls `declare_lane_wedged` → `send_replace(ServingSnapshot::empty())`. The reconcile that closed it landed at +441s. The three failures sat inside that 59-second window, reading `serving: <none>, ready: false` and reporting it as a serving fault the personas had caused. So `<none>` is NOT a boot-only state. `serving_daemon` republishes `empty()` on EVERY lane teardown — no servable plan (:1165), a re-home (:1400), a wedge self-heal (:1790). Boot is merely the longest such window, which is exactly what made a boot-shaped fix look like it had covered the class. The comment I shipped yesterday asserted the daemon "published active=<none> ZERO times in 12 hours"; that count had no probe on those three publish sites. Corrected in place rather than left to send the next reader down it. The fix uses the reader that was already correct next door: the presence pump derives Ready/Away from live `current_serving().ready` on every heartbeat (airc_runtime.rs:549). A mind that presence has just marked Away must not simultaneously spend a deliberation into a guaranteed refusal. Same signal, one call. - service_loop: gate the self-tick on the LIVE snapshot's `ready`, not the latch. The probe keeps `has_reconciled()` as a FIELD (`served_before`) — it still separates a cold boot from a lane that has served and dropped, which the empty snapshot cannot say on its own (`empty()` erases `ready_verified_at_ms`). - openai_adapter: the refusal now names three situations instead of two. Never reconciled → STARTUP, retry. Reconciled but nothing resident → TRANSITION, retry. A DIFFERENT model resident → the mismatch wording, which stays loud because retrying cannot fix it. Extracted as a pure `unguaranteed_model_refusal` so all three branches are testable without touching the set-once SERVING_STATE (test order must not be load-bearing). Deliberately NOT added: a second clock in the persona deciding when "down" becomes "an outage". The serving daemon already owns that judgement and emits it loudly; re-deriving it on the hot path would be a parallel monitor of a fact its owner publishes. 3 new tests, each with what-this-catches. The transition test is discriminating: under the old two-way split a reconciled+empty snapshot produced exactly the "is not the active served model" string it now forbids. Validated: cargo test serving (125 passed), llama_server (29), the 3 new; deployed and the running binary confirmed to carry the new wording by inspecting the mapped inode's strings, not the version banner. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): a 503 "Loading model" is the SAME mid-relaunch wait as a refused connection — retry it (#350 round 3) Found by watching the round-2 fix live rather than trusting it. Five minutes after deploy, during a re-home that grew the window 16384 → 27136 → 32768, four citizens failed together: +3.3m serving.health {ok:false, consecutive:1} +3.3m persona.selftick.inference_failed Atlas "stream read error: error decoding response body" +3.3m persona.selftick.inference_failed Benchy "503 Service Unavailable: {"error":{"message":"Loading model..." +3.3m persona.selftick.inference_failed Anwen (same 503) +3.3m persona.selftick.inference_failed Asha (same 503) +3.5m serving.reconcile ready=true served_window=32768 The round-2 readiness gate behaved correctly here and let these ticks through: the published snapshot genuinely said `ready`. It is a CACHED CLAIM — its own doc comment says so — and the lane had already been relaunched underneath it. So this is a THIRD signature of the one state "the lane is mid-relaunch", and the retry arm only ever recognised the first: nothing listening yet → reqwest connect error → RETRIED (existing arm) listening, still loading → HTTP 503 → hard failure (this fix) A relaunching llama-server refuses connections only until the new process binds; from that moment it accepts and answers 503 while it mmaps weights and warms the backend. Same wait, same lane, opposite handling. Fix: a 503 from a SINGLE-RESIDENT local lane retries on the same bounded backoff as the connect arm, sharing one counter so the total wait stays bounded. The HTTP status alone is the signal — no sniffing the body for "Loading model"; the status IS the structured channel ([[a-string-matcher-for-a-semantic-judgement-means-a-channel-is-missing]]). Renamed `connect_retries` → `relaunch_retries` so the name matches what it now counts, and the exhaustion message with it. Not unit-tested, and saying so plainly: the guard is inline in the send loop and testing it honestly needs a mock HTTP server, which is a bigger change than the fix. Validation is live — expect `inference.lane_relaunch_retry {reason: "503_loading"}` on the next re-home with no accompanying `selftick.inference_failed`. cargo check clean; deployed and the running binary confirmed to carry it by inspecting the mapped inode's strings. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): a lane torn down MID-DELIBERATION must be waited out, not refused (#350 round 4) Round 3 shipped the self-tick readiness gate and I called the residual verification passive. It wasn't. Measured on the probe stream today, on the round-3 binary: +374.2s serving.health "flipped serving snapshot not-ready" (#175 wedge self-heal) +427.4s x3 selftick.inference_failed "no model is resident right now" +436.6s serving.reconcile ready=true Three citizens refused NINE SECONDS before the lane came back, and `persona.selftick.awaiting_serving` fired ZERO times across the whole window. The gate is not broken — it is upstream of the problem. It reads the snapshot BEFORE a deliberation that takes tens of seconds, so a teardown that starts mid-deliberation always outruns it. The gate stops a turn that was doomed at its start; nothing stopped one that was overtaken in flight. The fix is at the seam that actually fails. The adapter's pre-flight guard treated EVERY failed guarantee as terminal, when only one of them is: - settled mismatch — another model is ready and active. Waiting cannot change that; residency arbitration is the serving layer's job (#109). Refuse, loudly. - transition — nothing resident (`empty()` is republished on every teardown: no servable plan, a re-home, a wedge relaunch), or a lane up but not yet decode-ready. Nothing has failed; it comes back on its own. Transitions now wait on `await_ready_serving` — the mechanism already existed and already had fifteen callers (the boot gate, the eval lane, the embedder, the genome teacher); this seam was the one that refused instead of waiting. It is the daemon's own readiness watch: a push, not a poll, so it returns the instant the relaunch lands and costs nothing while it waits. Budget is `DEFAULT_SERVING_WAIT` (= READY_TIMEOUT + 30s), DERIVED from the spawner's own load budget so this can never declare failure before the daemon has exhausted its legitimate window. Bounded, so a lane that never returns still ends as a named refusal, never a hang. Also collapses a predicate that had quietly forked. "A lane is live" was spelled `ready` in the self-tick gate and `ready && active_model.is_some()` in `await_ready_serving` — and the shorter spelling passes a snapshot with no model to answer as, which is precisely the case the gate exists to stop. Now one `ServingSnapshot::is_live()`, three readers. Tests (in the existing nested mod, no new mod): the wait-vs-refuse split pinned case by case (empty / warming / settled-elsewhere), and the guarantee predicate incl. both #106 vision arms. 5 pass. Deployed and confirmed present in the running binary by strings. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(observability): boot took the UNBOUNDED probe sink — the rotating one had zero callers (#341) `JsonlProbeFileSink::from_env` is documented as "the ONLY env-based entry point — rolling mode, structural auto-clean, bounded disk usage". It has exactly one caller, and that caller is a test. Boot goes through `tracing_init::build_probe_file_sink`, which called `JsonlProbeFileSink::new` — the constructor whose own doc says "append-only, no rotation, grows unbounded. Use `new_rolling` for production captures." So the bounded path was built, correct, tested, and reached by nothing, while the highest- volume writer in the substrate (one JSON line per load-bearing decision across every tokio task) accumulated 133 MB at ~32 MB/day. Ten lines above it in the same function, the fmt log was already going through `CappedAppender`. Two writers side by side, opposite bounding. This is the 172 GB class — the log that took this host to zero bytes free — and it is also the [[green-by-every-check-is-not-evidence-of-reachability]] shape: every unit test passed, because they tested `new_rolling` directly. The card's stated mechanism was wrong, and worth recording: it blamed `CONTINUUM_PROBE_DIR` holding a file path. That value IS wrong and is fixed too, but it was not the cause — even with a correct directory, boot would still have taken `new`. The env-var shape was a red herring; the call site was the bug. - `build_probe_file_sink` → `new_rolling(dir, classes, DEFAULT_MAX_LOG_FILES)`. Disk is now bounded arithmetically: 8 MiB × 7 generations = 56 MiB, the same shape as the fmt log. - `ProbeTracingConfig.probe_file` → `probe_dir`. The env var was always named `..._DIR`; the field said file, and that mismatch is what let the wrong constructor look right. - A file path where a directory belongs now fails with a message naming the remedy instead of a bare `NotADirectory` — the substrate refuses to start rather than drop probes ([[fallbacks-are-illegal-fail-loud]]), so the error has to be actionable. Test asserts at the CONSUMER's boundary — that `continuum-probes.jsonl` appears on disk, a name only the rolling path produces — not that a constructor was called. Verified RED by reverting to `new` (it fails) and GREEN again after restoring. Deployed. `~/.continuum/config.env` updated to the directory (not in this repo); live capture now lands at `~/.continuum/probes/continuum-probes.jsonl` and the old 134 MB `probes.jsonl` is frozen in place as a historical capture — the #350 baseline lives in it, so probe queries spanning today must read both. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(runtime): the dispatch audit counted adapter-served commands as orphans — 3 alarms, 2 bogus (#325) `registry.dispatch_parity` fired ERROR on every boot naming three ADVERTISED-BUT- UNDISPATCHABLE commands. Two of them — `perception/observe`, `interface/screenshot` — are `WireShape::Provided`, whose own doc says: "the substrate CANNOT execute it; it routes the call OUT to a client adapter... a different *server* (adapter, not ServiceModule)". A Provided command therefore has NO module. It can appear in neither `command_objects` nor a prefix route — not as a bug, as a definition — and the remedy the probe advertises ("add each to its module's `commands()` vec") is impossible to apply: `interface/mod.rs` has no `commands()` at all. The audit was checking a NARROWER path than the one that runs. Live dispatch goes through `Runtime::route_command`, which also consults the `ProviderRegistry`; `ModuleRegistry::route_command` does not. So these commands were healthy and reported broken. Two costs, both paid every boot: 1. An alarm that is mostly wrong trains its readers to skip it — which is how the ONE real orphan in that list went unnoticed. With the false positives gone the count is 1, and it names `generate/module`. That is the finding this fix was blocking. 2. The stated hardening was unreachable. The comment says "promote to a boot refusal once the count holds at zero across the fleet." A structurally-unroutable class in the count means zero is unattainable — and promoting anyway would have REFUSED BOOT on a legitimate adapter-served command. Fix: skip `WireShape::Provided` descriptors. Their routability is the ProviderRegistry's concern, already checked at call time with a fail-loud that names both the command and the missing adapter — pinned by the existing `provided_command_fails_loud_without_a_provider`. Test asserts on a registry with NOTHING registered — the audit's worst case, where every module-served command IS an orphan — and derives the Provided set BY SHAPE from the registry rather than a hand-kept name list, so a newly-added adapter command inherits the guarantee. It carries a positive control (the registry must contain at least one Provided command, else the test proves nothing). Verified RED by removing the filter, GREEN after restoring. Live after deploy: dispatch_parity count 3 -> 1, orphans ["generate/module"]. This also CONFIRMS #325 as originally filed. I set out to correct its "missing adapter" diagnosis and the correction was wrong — the adapter really is what is missing; the fail-loud naming eye-node is by design. The defect was one layer down, in the thing reporting on it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(runtime): register GeneratorModule — the one REAL orphan the audit was reporting all along (#325/#309) With the Provided false positives gone (8f89472c2), the dispatch-parity audit named exactly one command: `generate/module`. It was right, and it had been right for as long as the probe has existed — nobody could see it under two bogus siblings. Nothing was wrong with the command. `GenerateModule` is a correct dep-holding typed command and IS in `GeneratorModule::commands()`. The module itself was never registered: `grep` finds `GeneratorModule` in the whole crate only inside doc comments. So `generate/module` was advertised in `commands/help`, in did-you-mean suggestions, and on the persona tool offer while nothing on the runtime could route it — the exact #309 class, still live, months after #309 shipped the detector for it. One line, next to the other Background modules, ahead of `runtime.initialize()` (which is where the audit runs). Live after deploy: dispatch_parity emits NOTHING. The probe fires only `if !orphans.is_empty()`, so silence IS the zero. Sequence across three boots: 3 -> 1 -> 0. That silence-on-success shape cost me two misreads worth recording, both the same mistake in different clothes: I first "verified" the binary by grepping for a COMMENT (Rust does not compile comments into binaries, so the check could only ever say no), then read `tail -1` of the probe file as the current boot when it was the previous one. An absent signal is invisible unless you measure it against a timestamp — which is what finally settled it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(experience): recipes load from disk — an activity is authorable without a compiler (#274) The module header has always promised "a new experience is a new recipe entry, **zero code**." It was not true. The four experiences were `include_str!`'d into a fixed array, so a fifth meant editing Rust, recompiling and redeploying. A comment sat where this loader now is, saying a loader "will later" read a recipes directory. That deferral is the gap between "recipe/activity == airc room" as an idea and as a substrate. If authoring an activity needs a compiler, nobody authors one — they hand-make a room instead, and a hand-made room has no recipe and no purpose. That is how a bring-up room for a single model was still holding citizens two weeks after its activity finished: there was no other way to make a room. - `builtins_with_overlay(purpose, dir)` — the embedded set as a FLOOR, every `*.json` under `dir` overlaid on top. Overlay semantics are the ones `new()` already had: later wins by purpose, so an on-disk `chat.json` replaces the embedded one instead of colliding. - Embedded recipes stay in the binary so a fresh clone works with zero files. - Sorted load order, so two nodes reading the same directory pick the same winner for a duplicated purpose. - A missing directory is not an error (no local authoring yet is the ordinary state of a fresh install). A malformed recipe IS an error, NAMED BY FILE — an author who saved a recipe believes it is live, and a silently-skipped one is indistinguishable from one never written. Tests: an experience authored purely on disk (`kitchen-design`, a purpose this binary has never heard of) projects like any built-in and does not displace the floor; a malformed recipe fails loud naming its file; a missing directory is fine. NOT in this commit, deliberately: nothing expires, archives or deletes anything. A room is the durable record of its activity — a benchmark run's room IS that run's evidence, and a room that disappears on its own destroys it. Lifecycle is verbs a person or citizen invokes, never a timer. Those verbs are the next commit. Also: dropped a retired room's name from a doc comment in the persona runtime; the lesson it records (a persona's home comes from HER durable membership, never the operator's focus) is unchanged. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(activity): activity/spawn — a recipe becomes a room (#274) From ten thousand feet: a recipe is a CONTENT-TYPE and a room is CONTENT. Register the type once, stamp out instances forever. Every collaborative surface is content of some type — a chat, a DM, a doc tab, a benchmark run, a game someone asked for, a settings pane, a SCADA tab — and the room is the coordination layer everything else hangs off. The manifest layer could project a recipe. airc could host a room. NOTHING JOINED THEM, so rooms got made by hand — and a hand-made room carries no recipe and no purpose. That is not hypothetical: a bring-up room made by hand for one model was still col…
joelteply
added a commit
that referenced
this pull request
Aug 8, 2026
…ures become lessons) (#2163) * chore(repo): clear persona scratch out of the repo root, and stop apps/desktop lying about where the UI is Two complaints, both Joel's, both about what a person sees when they clone this: clutter, and misleading claims. This addresses the tracked-file half of each. ## 1. Persona scratch quarantined (nothing deleted) Until #49 (per-persona workspace isolation) lands, a persona's file engine roots at the PROCESS CWD — the repo root — so her card work landed next to Cargo.toml and got committed. 31 files, all 2026-07-18, now under legacy/persona-exercises/ with a README explaining what they are and why they were where they were: string_reversal/ wordstats/ work-wordstats/ (crates) teamproof/ (8 algorithm exercises, was tmp/) loose-files/ (8 bare files that sat at the ROOT: main.rs, life.rs, game_of_life.rs, reverse.rs, string_reversal.rs + 3 .txt inputs) A bare `main.rs` beside the workspace `Cargo.toml` was the first thing a cloner saw. They are KEPT, not deleted: this is the first genuine persona-written code in the project, and the evidence that the act->observe circuit actually closed. Verified unreferenced before moving: zero hits across .rs/.ts/.md/.toml/.sh for teamproof, string_reversal, work-wordstats outside their own manifests. ## 2. The workspace `exclude` fence was decoration exclude = ["wordstats", "work-wordstats", "conway_game_of_life", "work-08ece9e8"] Its comment claimed it "keeps their in-dir cargo builds working". It never did — those crates declare `edition.workspace = true`, and an EXCLUDED package cannot inherit from the workspace root, so cargo inside them has always failed with "failed to find a workspace root". Confirmed by running it. `members` is an explicit list (not a glob), so nothing needed excluding in the first place. Removed, with the real hazard it was reaching for documented in its place. Verified: workspace parses, still exactly 16 members, no exercise crate in the package graph. ## 3. apps/desktop said "empty slot" and cost a real scare It IS an empty slot — for a hypothetical future Tauri shell. But read as an answer to "where is the desktop UI", it reads as "there isn't one". There is: core/continuum-positron/ (~6.4k lines, 19 modules) projecting to apps/web/src/ (28 files, ~8.9k lines, dist/ built). Its README now leads with that table before anything else, and notes its own stale reference to src/server-index.ts (long since moved to legacy/). apps/README.md gets the same treatment one level up: a per-app STATUS column with measured source counts, instead of "most apps are placeholders today" without saying which. Adds tui/ and eye-node/, which have real source and were not listed at all. Not touched: test-data/images/ is a genuine fixture (cited by .airc/POLICY.md), not scratch. The .gitignore rules are deliberately NOT extended — per Joel, personas will build Continuum too, and blanket-ignoring work-*/ would silently swallow real contributions. #49 is the fix, not a wider ignore. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(routing): probe the authorization refusal — the one load-bearing decision in dispatch with no observability Measured 2026-08-06 while chasing #326: 113MB of probe stream, 100 distinct probe classes, and ZERO covering the ACL gate. Every other seam is instrumented — serving plans, airc cursors, perception facts, context renders, capacity offers, embeddings — while the single component that can silently stop a citizen from working emitted nothing at all. That absence is what made #326 cost a week. A refusal reaches the caller ONLY as text inside her own action receipt, where "forbidden: no policy grants access" sits in the same field an empty result would. Two citizens read their own denial and reported "no open tasks" — correct behaviour, denied tool, and it read as a cognition defect because there was nothing to grep. Five separate investigations went past it. This adds ONE probe on the refusal arm. It is NOT an ACL change: the gate is right. `work/list(state=open)` is a malformed URI with arguments welded into the path and no policy should ever match it — the defect is upstream in whatever hands the gate a name containing args, and that emitter is still unidentified (the text parser splits name/args correctly at json_in_prompt_tools.rs:426, and the airc dispatch carries params separately at command_handler.rs:392 — both clean). This probe is how we find it: it turns "who emitted this, from where, at what trust" from archaeology into a grep. Refusals only. The allow arm stays unprobed so the hot path pays nothing — a denial is rare and decisive, which is exactly the shape the probe stream is for. Fields: path, trust, caller_peer, caller_source, had_capabilities. Note the second live site (auth_policy.rs:366) is `deny_path_prefix`, a test-only convenience policy — GridTrustAuthPolicy is the sole production refusal. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): typecheck was RED — move the test TZ pin out of the browser tier `npm run typecheck:clients` failed on canary: src/chat/renderChat.spec.ts(20,1): error TS2591: Cannot find name 'process'. The spec pinned `process.env.TZ = 'UTC'` so its fixed HH:MM assertions stay deterministic on any runner (PR #2057 review). That intent is right; the location was wrong. `process` is a node global, and apps/web's tsconfig sets `"types": []` DELIBERATELY — this is the one client tier that owns document/WebSocket, and admitting node ambient types would let browser source reach for node APIs the bundle can't provide. Adding @types/node to satisfy one spec would have removed that guard for the whole tier to fix a single line. So the pin moves to `vite.config.ts` under `test.env`, which already runs in node context (it imports node:fs/os/path). Browser tsconfig stays pure; determinism is preserved. Verified, both directions: - `npm run typecheck:clients` — green across all client workspaces. - `npx vitest run src/chat/renderChat.spec.ts` — 11/11 pass. - `TZ=Asia/Tokyo npx vitest run …` — still 11/11, with the runner clock showing Tokyo time. That is the real check: it proves the config pin OVERRIDES a hostile ambient zone rather than the suite passing because the machine happened to be on the right one. Pre-existing red, unrelated to the Rust change on this branch — found because a failing typecheck on the front door is exactly the "makes people not want to download" problem. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): the act probe records WHICH verbs ran, not just how many `persona.act.observed` carried `persona`, `room_id`, `tools=<count>`, `chars` — and no verb name. So the substrate could not answer the question Joel actually asks, "are they building anything, or just talking?", from its own telemetry. Measured tonight while trying to: answering it required reconstructing verbs from prose `[action #n] verb(args)` receipts in prompt-captures. Only 5 of 84 live captures contained a receipt at all, so the reconstruction could not be trusted either way — 589 act probes exist over the same corpus, and the two numbers have different denominators. The honest conclusion was "unmeasured", which is the wrong answer for a question this central. A count tells you an act happened. The NAME tells you whether it was work. Adds: verbs = "work/claim,perception/look" the actual batch, in order wrote = true|false did anything in it reach DISK `wrote` is precomputed rather than left as a query-time substring guess, because "did a file change" is the question we keep re-asking and it should be a filter, not an argument. Underscore forms are normalized (write_file → write/file) so the wire dialect can't hide a write. Same defect class as the authorization gate two commits ago: the decision is made, the act runs, and nothing durable records WHAT it was. Both are the observability doctrine's own point — capture the load-bearing decision — missed at the seam that matters most. Compiles clean. Cheap: one map + one any() over a batch that is almost always 1-3 calls, on a path that already allocates the full observation string. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(work): #339 — give citizens the half of the board that WRITES BACK Citizens were offered claim_task / list_tasks / get_task and nothing else. They could take a card and could never finish, hand back, or extend one. Every claim had exactly one possible ending: the 30-minute lease lapses and the card returns to the pool. A COMPLETED card and an ABANDONED card were indistinguishable, because neither could be written back. The verbs were not missing. `work/release`, `work/state`, and `work/heartbeat` are fully implemented, AccessLevel::AiSafe, with descriptions already written — `work/state`'s literally coaches the lifecycle ("in_progress when you start, review when a PR is up, blocked if stuck, closed when done"). They simply never declared `NATIVE`, which is the flag `native_tool_specs()` filters on, so no citizen has ever been shown them. Marked native, with wire-dialect aliases matching the existing snake_case set: work/release release_task work/state update_task, close_task work/heartbeat heartbeat_task, extend_claim Note the mechanism check that mattered: the gate is the per-command `NATIVE` flag, NOT the presence of ALIASES. The three offered verbs happen to have both, which made aliases look causal. Adding only aliases would have shipped another inert change — the exact failure this session has been full of. COST, stated honestly: this grows the native payload 20 → 23 schemas, and tools already take ~28% of a 16k window (#333). That is a real charge against the grounding budget. It is worth it because without these the work loop cannot close at all: we watched card 0c69c0f0 pass through three holders in one evening, each of whom "claimed" it and had no way to say what happened next. Does NOT claim to fix the passing behaviour. Whether a citizen who CAN close a card actually does is now measurable — the act probe two commits ago records which verbs run, so `verbs` containing update_task is the falsifiable signal. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(dialect): #326 — MEET a name that carries its own arguments, don't let it reach the ACL as a URI Joel, 2026-08-07: "It's never upstream and aliases exist for this reason. And even then, we have adapters." He is right, and this file's own doc-comment already said so — "always adapters: meet the model ergonomically, never hardcode around it." The adapter simply never handled this shape. WHAT WAS HAPPENING. A citizen emits `work/list(state=open)` as the tool NAME. The prose tool menu renders exactly that shape (`work/list(claimable?, state?)`), so copying it into the name slot is the trained reflex, not a malfunction. `classify` had no arm for it: MISS, passed through untouched, dispatched AS A URI. The ACL then correctly refused `work/list(state=open)` — no policy can grant a path with arguments welded on. The gate was right. The adapter was asleep. Two citizens read that refusal, reported "no open tasks", and it read as a cognition defect for a week. I spent an evening calling that defect "upstream"; it was ours. THE FIX, at the ONE resolution section every dispatch seam funnels through: split_signature("work/list(state=open)") -> ("work/list", Some("state=open")) classify() resolves the HEAD, so the name lands on the real command (and an alias head composes: list_tasks(state=open) works) normalize_call() recovers the ARGUMENTS — they are real intent and must not be dropped — merging them into `input`, and returns a note so the citizen is TOLD what we accepted and what the canonical form is (Joel's rule #328: aliases resolve AND say so) Explicit `input` always wins over a value echoed in the name, so a well-formed call is never overwritten. `normalize_call` also handles the ordinary case (resolve + tally as before), so each seam makes ONE call — all three ToolCall seams in llm_deliberation_faculty now route through it: native batch, text-lift, and the reasoning-tail lift. Reuses `paren_call_args` (widened to pub(crate)) rather than writing a second arg parser — one grammar, one place. VERIFIED BOTH WAYS. 10/10 tool_dialect tests pass. Then I disabled split_signature to reproduce pre-fix behaviour: exactly 3 fail — the three asserting the NEW capability (signature name resolves + keeps args, alias+args composes, empty signature is a no-arg call) — while the three asserting UNCHANGED behaviour keep passing. Additive, and the regression is real rather than tautological. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(memory): #165 — a rebuild is a discontinuity she can PERCEIVE, not one she has to infer MEASURED LIVE 2026-08-07, and it is the reason tonight's fixes looked like they did nothing. After the #326 adapter fix deployed, `work/list(claimable=true)` returned real cards and ZERO authorization refusals occurred — while citizens went on reporting "attempting to claim tasks or list them without success" for hours. Their receipts were TRUE. They were also about a binary that no longer existed. Correct behaviour, dead world. Working memory is persisted and restored at spawn (persona_workspace.rs:291), so act receipts survive a deploy. That is deliberate and must stay: the recency channel carrying the full trace is what stops the repeat loop — a persona who cannot see her own hands re-emits the identical act forever (engram admit is content-deduped, the reasoning channel is dark by default). Deleting receipts would trade one defect for a worse one. So: don't delete the memory, qualify it. `restore()` already turns discontinuity into a perceivable FACT — the laptop-lid contract renders the interruption gap and names dispatches cut off mid-flight. This adds the discontinuity it could not see: the substrate itself changed. VolatileSnapshot.build_sha — stamped from env!("CONTINUUM_BUILD_GIT_SHA") restore() — if it differs from the running build, record a [rebuilt] fact naming both, saying the results above it are what really happened but are NOT evidence about how things behave now, and that a tool which failed before is worth re-trying A FACT, never an instruction, never a deletion — she keeps the receipt and gains the one thing she had no way to know. What to re-check stays hers. Empty `build_sha` (serde default, pre-field snapshots) says NOTHING rather than guessing a change it cannot see. Tests, both directions: a rebuild across restore renders [rebuilt] naming the old build AND the receipt itself survives (proprioception intact); an unknown build stays silent; and the existing round-trip test now asserts NO [rebuilt] on a same-build restart — cry wolf on every ordinary reboot and the marker stops meaning anything. 24/24 green. Bigger than the citizens: while this was missing, EVERY fix was invisible to the beings it was for until their memory of the old world aged out, and every measurement taken in that window was contaminated. That made it a blocker on verifying anything else, which is why it went ahead of the write path. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(code): probe the WRITE — before/after sizes so a destructive overwrite is visible when it lands The write path is where solved work dies. flask-4045 was solved and then DESTROYED twice, and both times we diagnosed it from PROSE — the persona's own account of what she did — instead of from what actually hit disk. Reconstructing a write from narration is exactly the mistake this session has been full of. code/write now emits `code.write.landed`: path, existed, before_bytes, after_bytes, ok shrank = existed && after < before/2 `existed` + `before_bytes` are the load-bearing pair. "Solved, then destroyed" has a specific shape: a large working file overwritten by a small body — a stub, a fragment, a truncated re-emission. A count of writes could never show that; the sizes make it a one-line query. Cheap: one metadata() stat on a path that is about to be opened for writing anyway. Does NOT fix the destruction. It makes the next occurrence a receipt instead of a third round of inference. Pairs with the act probe's `wrote` flag from earlier tonight: that says a write happened, this says what it did. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(persona): renew held work-card claims on the presence pulse — her work stays hers while she breathes Glass-boxed live tonight from citizens' own prompt captures. A citizen claims a card successfully (work/claim returns a real claim_id), and her very next briefing reads "[board] you hold 0 card(s)" with the SAME card re-offered under "[available work]". So she reports "no open tasks" and passes — accurately describing a board that had quietly taken her work back. Six citizens, two machines, days of it, every one of them an honest witness. Measured on the live #general board: 61 cards, 47 claimed, and ZERO live leases. Every claim on the board they work from had lapsed. Root cause: claim leases are 30 min, and work/heartbeat existed — as a verb the MODEL had to remember to call. No citizen ever did, and no model will; #339's own doc records the card that passed through three holders in one evening for exactly this reason. Meanwhile this runtime already ran a pump emitting "I am alive" every 60s, derived from real serving state. Presence liveness and claim liveness were two channels answering one question, and they contradicted each other: the pump was announcing she was alive on the very ticks her holds were dying. Fix: bind them. The pump that proves she is alive now also renews the claims she holds, at the same cadence, with the same TTL constant (now single-sourced from modules::work rather than duplicated). The substrate OBSERVES that she is working instead of asking her to announce it — "you've turned convenience into disability" (Joel, on exactly this class). The verb stays for deliberate extension. Renewal is per-card WARN-and-continue: a failed renewal degrades to precisely the old lapse and can never take down presence. A persona.claim.renewed probe carries renewed/held/ttl so the next lapse is visible instead of silent. Note this only keeps LIVE claims alive; it deliberately does not resurrect the lapsed ones already on the board. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(work): stop advertising cards work/claim refuses — one claimability decision, not two Found by tracing the board projection after the claim-renewal fix. `work/claim` rejects Review | Merged | Closed outright (airc-lib → WorkCardNotClaimable), but every READ surface computed availability independently and excluded only Merged|Closed. A `Review` card with a lapsed lease therefore answered "claimable" and could only ever produce a refusal. Measured on the live #general board 2026-08-07: 11 of the 58 cards offered to citizens as available work were Review — guaranteed bounces, and a citizen has no way to tell a substrate refusal from her own incapacity. One of them said exactly that tonight: "attempting to claim tasks without success." Two places decided claimability and disagreed: CardHolder::claimable ("lapsed or Open") and room_board_source's inline filter (its own terminal-state check). Both missed Review. Collapsed to ONE predicate — card_holder::claimable_now, composing the lease (hold_of) with the column (refused_by_claim, which names the write-side rule and carries the drift-guard doc-link to airc-lib). room_board_source now calls it instead of re-deriving. Regression test asserts all three refused states are never advertised, with a fixture-sanity assert (the lease really is lapsed) and a positive control (a lapsed claim on InProgress work stays takeable — the reclaim path #321 depends on it, and without that control this test would pass even if the guard excluded everything). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(persona): the board read takes the room the gate approved — one value, not two that coincide (#345) RoomBoardSource binds a room (`for_room`) and gates on it, then read the board via airc's `work_board_complete()`, which resolves `current_room()` independently — "whatever my default subscription happens to be". The gate's id was never passed to the read. They agreed only because both were seeded from the same call at bootstrap. Nothing in the types prevented a gate that passed for room A while the board came from room B, and no probe would have fired. Found while tracing why a citizen's board (58 claimable) and the operator's (19, all Open) disagreed — they were two different rooms, both reads correct, and NEITHER surface named the room it read. That cost three agents and most of a night, which is the real cost of a value that is implied instead of passed. RoomBoardReader::work_board now takes Option<RoomId>: Some(id) → resolve via airc room_by_channel + project THAT room's board. A room this scope isn't subscribed to is a loud NotSubscribed error, never a quiet slide to the default: a citizen handed the wrong room's board cannot distinguish it from an empty one, and that indistinguishability is the entire bug class. None → unchanged current-room behaviour, for callers with no binding (the CLI's genuine intent). Requires airc 278addc..8dcfa76 (pin bumped, rationale in Cargo.toml): the room-parameterized read was already written but private, and RoomId→Room needs a real subscription lookup — Room carries name+wire+channel and cannot be synthesized from a bare uuid. 1023 persona tests green. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(work): lead each card with `claimable`, not `state`/`owner` — the tool result was still saying "taken" serde emits in declaration order, so a citizen reading a work/list card met `"state":"claimed"` and `"owner":"Anwen"` BEFORE `"claimable":true`. Two loud fields saying someone owns this, then one quiet field saying you can have it. Live tonight, hours AFTER the lease fix (claims now renew) and the claimability fix (11 unclaimable Review cards removed, 58->47 verified): Benchy could finally see the board and reported — "there are several tasks available on the board, but they have already been claimed by others." Every card he was looking at was his to take. He read the receipt correctly; the receipt led with the wrong fact. #321 fixed the BOARD rendering so a lapsed claim reads CLAIMABLE. It never reached the TOOL-RESULT rendering — two surfaces answering one question, drifting independently, which is the same shape as the read/write claimability split fixed in 59cbbb735. This file already declares field order load-bearing for WorkListResult (truncation); the same logic governs what a reader meets first. Order is now: id, title, claimable, lease, state, owner. Answer the question the citizen is asking ("can I take this?") before the history ("who had it?"). owner still names WHO — never "someone" — it just no longer pre-empts the answer. 184 work tests green. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): a citizen who ACTS must not go blind to what she is acting on (#347) Standing framing was destroyed twice over, independently, and either alone was enough to blank a citizen's board. 1) DEFERRED LANE MULTIPLIED AWAY A FLOOR DOCUMENTED AS UN-EVICTABLE. reproject_to_now scaled every last-good bid by lexical_relevance — the fraction of the FINDING'S OWN tokens present in this turn's burst. The denominator is the block's size, so verbose sources are structurally penalised regardless of importance. room-kanban (median offer 5,364 tokens) bid 0.9 x 0.133 = 0.12. Roster (small) survived at 0.62; workspace-map bid its full 0.90 solely because it is not defer_tolerant and never passed through. Three sources, three numbers, one cause. Reprojection is a RECALL mechanism ("a still-on-topic memory keeps its salience"); standing framing is topic-independent BY CONTRACT. Stable contributions now keep their bid; staleness still shows in the reasoning. 2) POSTACTION DELETED ALL STANDING FRAMING BEFORE TOP-K. SituationFocusArbiter filtered `!c.stable` on any tick after >=1 act. But Contribution::stable is documented as "a SERIALIZATION-order property, not an attention one — salience still governs which contributions are included". The arbiter used the one field that promises it never decides attention to decide attention. Its own comment named the intent — drop standing SOCIAL re-grounding so "the result + AFFORDANCES + working memory own the window" — but `stable` is every standing source, so it deleted the affordances it named (workspace-map, the highest bid present at 0.90), the work board, and the roster. The old test's rationale was "they were already perceived; re-dumping crowds the result out". That premise is false here: every settle iteration composes a FRESH prompt (act_observe holds `world` constant, only memory changes), so framing dropped at iteration 2 is ABSENT from iteration 2, not remembered from 1. MEASURED: Atlas held card 4780a02e on a healthy renewing lease and his turn carried no board at all — evicted set exactly the three StandingFraming sources, kept set exactly the two volatile ones, while a 0.90 bid lost to a 0.50, which top-k cannot do. He then reported "no open tasks", accurately, about a window we had emptied. Test inverted to pin the corrected invariant; the real constraint it was reaching for (don't pay full freight for unchanged context) is #167's job and needs its own signal, not a borrowed serialization flag. 3) FIXED A PRE-EXISTING RED (verified pre-existing by stashing: same 9348). `needed <= window` failed on its own terms — its message said "if it no longer does, the surface or framing grew" and it had: 8040 -> 9348 (+1308) as turn-facts accreted. The story is stronger, not broken: at 8192 the agentic surface no longer fits AT ALL, so the necessary condition itself fails. Re-pinned as a CEILING (9400) so the next +1308 fails loudly instead of accruing silently — #333 stated as a number rather than a complaint. 918 cognition tests + 1023 persona tests green. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): benchmarks as work cards — and the adapter seam ALREADY EXISTS (#346) Design approved by Joel 2026-08-07: "each new benchmark is just an adapter problem… our personas get to operate as they're trained, even allowing for easy N persona collaboration" / "so they're measured for what they do". THE FIND THAT CHANGES THE SCOPE: I was one file away from writing a second BenchmarkAdapter trait. `cognition/benchmark.rs:89` already has one — with a registry, DatasetSpec, BenchResourceHint for grid placement, tasks() -> EvalTask, and grade(task, outcome) where TaskOutcome already carries BOTH artifact channels (spoken answer AND workspace diff). Its own doc states the goal verbatim: "the runner + grid + learning loop treat every adapter identically." So "each benchmark is just an adapter" is ALREADY TRUE. #346 is not an abstraction to build; it is a DELIVERY bridge: mint a card per EvalTask into a benchmark room, let citizens claim and solve through the path they already use, feed each TaskOutcome to the adapter's grade, write the verdict as the terminal state. Caught by grepping before building ([[grep-for-the-mechanism-before-proposing-to- build-it]]); the doc now says DO NOT REBUILD IT in as many words, with a built/missing table so the next reader cannot repeat my near-miss. The doc also records WHY a card beats a headless call (it yields a TRAIL — claimed_at -> first write -> state transitions -> artifact diff — which cannot be narrated into existence, and our measured failure mode is exactly narration), the grading boundary that must not blur (card carries delivery + lifecycle; harness keeps judgment; a citizen never sets her own terminal state on a graded card), and the three defects fixed tonight without which this is silently unusable — chiefly that claims did not survive the work at all: 172 claims and ZERO renewals in that room's entire history, so a long solve was guaranteed to lose its card mid-flight. Blockers named with exact locations: #220 (deliberation_parse maps an UNRECOGNISED generation to Decision::Pass, so a correct prose answer scores 0 — fix at the parser, and do NOT break #271's silent narrated pass), exam integrity (#207), and room scoping (now safe via #345). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(test-fixture): PIN HOME/USERPROFILE/HF_HOME, never remove — removing moved the read onto the operator's real drive Reported by BigMama: three model_registry tests fail ONLY on machines with cold storage. The cause is worse than an unset variable. `with_test_home` did `remove_var("HF_HOME")`, which LOOKS hermetic. But `huggingface_cache_root` (artifacts.rs:374) resolves: std::env::var("HF_HOME") <- fixture removed this .or_else(|| config_env::read("HF_HOME")) <- so it falls through to a REAL FILE `config_env::read` hits `~/.continuum/config.env` on the actual machine — which on a cold-storage box is where the installer writes the 16TB path. So the fixture did not isolate the test; it moved the read one layer DOWN onto the operator's drive, and the test then asserted against whatever that machine happened to have. Same shape for USERPROFILE: `config_env` resolves through `dirs::home_dir()`, which on Windows ignores HOME and uses USERPROFILE — removing it let the lookup escape to the real profile. Fix: PIN all three to the test home. Process env WINS the resolution chain, so config.env can no longer be consulted at all, on any platform. HF_HOME is pinned to exactly what the default branch would compute from this home (`<home>/.cache/huggingface`), so behaviour is identical to the intent — only the ambient dependency is gone. The restore side already saved/restored correctly and is unchanged. The general rule, and it is the same one BigMama drew from her own miss tonight (never let a pipe carry the verdict): REMOVING an input does not isolate a test, it just changes WHICH ambient source answers. Pin it. 44 model_registry tests pass here (same count she reported). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): the reserved PASS token is silence in every position she puts it (#271/#264) Left unfixed on 2026-08-06 at n=1 with an explicit note in the code that it wanted "a second sighting or Joel's call, not extrapolation from n=1". The second sighting arrived tonight as EIGHT messages inside one monitor window, from THREE citizens in #k3-serving — "I will proceed with PASS", "I will PASS and continue to monitor", "I will proceed with PASS for now". Every one posted to the room as speech, and each one re-wakes the next peer into announcing THEIR pass. That is the #264 cascade, arriving through a position the collocation list structurally cannot cover. The fix is a POSITION rule, not another phrase. This file's own history is the argument: phrase/length tuning is an arms race the next filler message wins (500 → escaped by 11 chars → 700 → escaped by 14). ends_with_silence_token → declares_silence_token, one authority honoring the reserved token in the three positions observed live: 1. final word — "…Otherwise, PASS." (already honored; unchanged) 2. clause-initial — "…Otherwise, PASS for now…" (the n=1 variant, now covered) 3. first-person decl. — "I will proceed with PASS to…" (tonight's eight, now covered) Discriminators kept narrow and decidable: case-SENSITIVE on the reserved spelling (ordinary lowercase "pass" stays speech), standalone word only (PASSED / BYPASS / PASS_TOKEN never match), and the fence guard stands — fenced content is substance regardless. Accepted trade, stated so it is a choice: an uppercase PASS as a transitive verb inside a first-person declaration would silence. Nobody writes the verb in caps. Tests carry the live fixtures verbatim plus a POSITIVE CONTROL asserting the position-3 cases are covered by POSITION and nothing else — is_narrated_pass must NOT match them and the final-word rule must NOT match them — so this cannot later pass for the wrong reason. Negative controls added for prose ABOUT the token and for the word-boundary cases. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): narrow the PASS-token rule — drop clause-initial, it swallows real answers (#220) Self-review of a7f38f588 before it could bite. That commit honored the reserved token in THREE positions; this removes one of them, and the reason is the whole point. My evidence last night was n=8, and every one of those eight was the FIRST-PERSON DECLARATION form ("I will proceed with PASS", "I will PASS and continue to monitor"). The clause-initial position rode along on that evidence while still resting on its own n=1 — and unlike the declaration form it collides with real answers: "Verdict: PASS for all six cases." <- a VALUE REPORT, must speak "Otherwise, PASS for now as I…" <- a TURN YIELD, should silence Positionally identical, semantically opposite. Silencing the first is exactly the #220 failure — spoken becomes None and an answer-graded benchmark scores 0 on a CORRECT response. This file's own doctrine settles it: fail open to Speak, because silencing real content is the worse error. The declaration form has no such collision ("I will proceed with PASS" can never be a value report), which is why its evidence justifies shipping and clause-initial's does not. That variant goes back to speaking — the status quo it was already deliberately left in — until it has a rule that can tell the two apart. Tests gain a "the line we chose not to cross" block asserting the value-report shapes stay speech, so a later "let's complete the position set" cannot silently swallow benchmark answers. SEPARATE PRE-EXISTING DEFECT, found while writing that block and NOT caused by either commit: `"Verdict: PASS for all six cases."` is silenced TODAY. `clean_response`'s speaker-name stripper is `^[A-Z][A-Za-z\s]+:\s*`, which eats `Verdict: ` as though it were `Anwen: `, and the exposed leading `PASS` then trips `starts_with_silence_token`. Any answer opening with a capitalised label — `Answer:` / `Result:` / `Verdict:` — followed by the token is swallowed. Documented at the test so the next reader finds it; fixing it is its own change with its own evidence, since narrowing that regex touches all speech cleaning. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): silence gets a VERB — yield_turn replaces the prose phrase-matching (#271/#264) Joel, 2026-08-07: "Regex ideas and string matches for semantic understanding is not good for reliability." He is right, and the objection lands on code I shipped an hour earlier. Decision has four variants and the tool channel could express exactly ONE of them. Act gets its vocabulary from the command registry because acts ARE commands. Speak is prose. Pass had no structured expression at all — the only way a citizen could decline a turn was to emit a magic word into her prose and hope the parser recognised the sentence she wrapped it in. That asymmetry is the actual defect behind every fix in this family. Instruction-tuned models naturally wrap the token in a sentence, fall off the protocol, and each previous fix compensated with a cleverer matcher: a phrase list, a 500-char cap beaten by 11 chars, a 700-char cap beaten by 14, and finally my DECLARATION_LEADS list which would have been beaten by "my choice is PASS" next week. THE REGEX WAS NEVER THE DISEASE. It was scar tissue around a missing channel. So Pass gets a verb. `yield_turn` is offered on the same native tool channel the citizens already use correctly — measured, not hoped: one citizen's first post-reboot turn tonight was three correct native calls (claim_task, update_task, list_tasks). They use the structured path fine when we give them one; we never gave them this one. Recognising `yield_turn` is a NAME match on a verb we defined — protocol decoding, the same category as write_file or a JSON fence. Recognising an intention inside a sentence is not. That is the whole distinction, and it is why this replaces the matcher rather than joining it. Shape (Joel's call on the fork): FACULTY-OWNED verdict verb, not a registry command. The faculty is what turns a generation into a Decision, so it owns the vocabulary for the decisions it can reach. Appended to the ONE derived offer surface (never a parallel one), and intercepted before act_verdict on both lift paths — a yield carries no world-effect, so it never reaches the ACL or the executor, and routing it as an Act would burn budget and re-enter the settle loop instead of ending the turn. Argument-free schema on purpose: a `reason` field would invite the exact closure paragraph the verb exists to stop her broadcasting (#334's degeneration shape). Removed with it: DECLARATION_LEADS, and the clause-initial position from the commit before. What remains in deliberation_parse is only the bare-token compatibility path for a model that does not use the tool channel at all. The now-speakable shapes are pinned as MUST-SPEAK fixtures with the reasoning, so nobody "completes the position set" later and starts swallowing correct benchmark answers (#220). Surface cost stated plainly as the #333 ratchet demands rather than waved through: +144 tokens (9348 -> 9544), ceiling re-pinned 9400 -> 9600. Almost all of it is the description, which is the part that teaches her silence is free and the announcement is the noise. One avoided cascade pays for it many times over — the 2026-08-01 one ran ~30 minutes across every peer. Reachability is asserted, not assumed: the test fails if the verb is absent from the OFFERED list, because a verb that is built, correct and unoffered would be this same bug in a new hat ([[green-by-every-check-is-not-evidence-of-reachability]]). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): instrument #349 instead of refactoring the hot path on a hypothesis I was about to fix the label-stripper. Stopped, because I could not answer the one question that decides whether the fix is worth its risk: has it ever actually cost us an answer? The MECHANISM is verified. `clean_response`'s speaker-name stripper is `^[A-Z][A-Za-z\s]+:\s*`, which eats a content label — `Verdict: ` / `Answer: ` / `Result: ` — exactly as if it were `Anwen: `. When the reserved token sits behind that label, the strip exposes it to starts_with_silence_token and a correct answer becomes a silent Pass: the #220 shape, a 0 on an answer-graded benchmark for a right response. What I do NOT have is one live sighting. "Verdict: PASS for all six cases." is a fixture I wrote. And the correct fix — thread the real speaker names (Turn::author already carries them) so the pattern stops GUESSING at what a name is — changes cleaning on EVERY turn, across 2 signature changes and ~25 call sites. Refactoring the universal speech path on an unobserved failure is the same error as tuning a phrase list: confident motion on unmeasured ground. Tonight already taught me that lesson once. So: the instrument, not the fix. `label_strip_caused_silence` notices when a turn became silence ONLY because a prefix was stripped — cleaned text leads with the token, the raw generation did not. Pure observation, zero behaviour change, one probe class. If it never fires, #349 is theoretical and the refactor is not worth its blast radius. If it fires, the probe carries the verbatim answer we lost, and the refactor is justified by data instead of by my argument. Either way the next person decides from evidence. The detector is pinned in BOTH directions, because a probe that can only stay silent is worse than no probe: it must fire on the #220 shape, and must NOT fire when she genuinely led with the token, when silence came from an empty think-block, or when an ordinary name prefix was stripped from ordinary speech. That is what makes a future zero mean "does not happen" rather than "instrument was broken". Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): the lane was never down — readers could not tell BOOT from BROKEN (#350) I reported "~30% of every citizen's thinking attempts fail" and aimed a night at the serving layer. The serving layer was healthy the entire time. Correcting that here, with the measurement that killed my own hypothesis. WHAT THE DATA ACTUALLY SAYS: serving.reconcile published active=<none>: 0 times in 12h (104 reconciles, all ready) personas saw "serving: <none>": 61 times in the same window Those cannot both describe a lane that went down. They describe readers not reading the daemon's snapshot at all. ROOT CAUSE: `install_serving_state` runs in the daemon's `initialize()` — BEFORE its first reconcile — so from process start until the first publish every reader borrows `ServingSnapshot::empty()`: `active_model: None, ready: false`. That is byte-identical to "the daemon looked and nothing is serving". Personas begin self-ticking immediately, read the placeholder, and the single-resident guard CORRECTLY refuses — emitting a loud `selftick.inference_failed` naming a fault that does not exist. Clustering proves it: 116 failures in 38 bursts across 3 days, each burst 1-6 failures over 0-20s, and in nearly every one the first `serving.reconcile` lands 10-20s AFTER the burst began. It is a BOOT RACE. It self-heals in seconds. The real cost is a citizen losing her first 1-3 ticks after each restart — and an instrument that cried wolf 116 times. AND THE CORRECTION TO MY OWN HEADLINE: I claimed the 29/31/32% rate across 1h/3h/12h proved it was not my reboots. The ratio was right; the reading was wrong. It is flat BECAUSE restarts are spread across every window (38 of them over 3 days). Steady-state thinking is fine. A stable ratio is not evidence of a steady-state cause. FIX — give the readers the fact they were missing, don't teach them to guess: - `has_reconciled()` / `mark_first_reconcile()`: a process-lifecycle OnceLock beside the existing SERVING_STATE OnceLock. After the daemon's first publish, an empty snapshot means a real fault; before it, it means "still starting". - self-tick SKIPS with its own probe class (`persona.selftick.awaiting_serving`) instead of spending a full deliberation on a turn the guard is certain to refuse — and stays OUT of the failure counter, so a future spike in `selftick.inference_failed` means what it says. - the adapter's refusal names which situation it is, instead of one sentence for both. WHY NOT A FIELD ON ServingSnapshot (my first instinct, and what I proposed): that type is ts-rs-exported, read by the grid and positron, with 19 construction sites. "Has the daemon started" is a process-lifecycle fact, not a property of what is currently served, so it belongs beside the other process-lifecycle OnceLock rather than in the wire payload. Promoting it later is mechanical if a remote reader ever needs it. This is the third instrument this session that reported the wrong thing — #348 under-reports failure, #351 over-reports it, this one mislabels startup as failure. Between them they have now cost more engineering hours than the faults they were pointing at. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): a lane going down is a TRANSITION, not a fault — gate on live readiness, not a lifetime latch (#350 round 2) My first cut of this gate was boot-shaped and therefore wrong. It skipped the self-tick only until `has_reconciled()` — a process-lifetime OnceLock — flipped once. Measured on the very next boot: three citizens (Benchy, Anwen, Asha) still failed together at +432s, on a core whose latch had been set at +76s. The ordered sequence says why. At +382s the health heartbeat declared the lane wedged (`serving.health action=relaunch`, #175 self-heal), which calls `declare_lane_wedged` → `send_replace(ServingSnapshot::empty())`. The reconcile that closed it landed at +441s. The three failures sat inside that 59-second window, reading `serving: <none>, ready: false` and reporting it as a serving fault the personas had caused. So `<none>` is NOT a boot-only state. `serving_daemon` republishes `empty()` on EVERY lane teardown — no servable plan (:1165), a re-home (:1400), a wedge self-heal (:1790). Boot is merely the longest such window, which is exactly what made a boot-shaped fix look like it had covered the class. The comment I shipped yesterday asserted the daemon "published active=<none> ZERO times in 12 hours"; that count had no probe on those three publish sites. Corrected in place rather than left to send the next reader down it. The fix uses the reader that was already correct next door: the presence pump derives Ready/Away from live `current_serving().ready` on every heartbeat (airc_runtime.rs:549). A mind that presence has just marked Away must not simultaneously spend a deliberation into a guaranteed refusal. Same signal, one call. - service_loop: gate the self-tick on the LIVE snapshot's `ready`, not the latch. The probe keeps `has_reconciled()` as a FIELD (`served_before`) — it still separates a cold boot from a lane that has served and dropped, which the empty snapshot cannot say on its own (`empty()` erases `ready_verified_at_ms`). - openai_adapter: the refusal now names three situations instead of two. Never reconciled → STARTUP, retry. Reconciled but nothing resident → TRANSITION, retry. A DIFFERENT model resident → the mismatch wording, which stays loud because retrying cannot fix it. Extracted as a pure `unguaranteed_model_refusal` so all three branches are testable without touching the set-once SERVING_STATE (test order must not be load-bearing). Deliberately NOT added: a second clock in the persona deciding when "down" becomes "an outage". The serving daemon already owns that judgement and emits it loudly; re-deriving it on the hot path would be a parallel monitor of a fact its owner publishes. 3 new tests, each with what-this-catches. The transition test is discriminating: under the old two-way split a reconciled+empty snapshot produced exactly the "is not the active served model" string it now forbids. Validated: cargo test serving (125 passed), llama_server (29), the 3 new; deployed and the running binary confirmed to carry the new wording by inspecting the mapped inode's strings, not the version banner. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): a 503 "Loading model" is the SAME mid-relaunch wait as a refused connection — retry it (#350 round 3) Found by watching the round-2 fix live rather than trusting it. Five minutes after deploy, during a re-home that grew the window 16384 → 27136 → 32768, four citizens failed together: +3.3m serving.health {ok:false, consecutive:1} +3.3m persona.selftick.inference_failed Atlas "stream read error: error decoding response body" +3.3m persona.selftick.inference_failed Benchy "503 Service Unavailable: {"error":{"message":"Loading model..." +3.3m persona.selftick.inference_failed Anwen (same 503) +3.3m persona.selftick.inference_failed Asha (same 503) +3.5m serving.reconcile ready=true served_window=32768 The round-2 readiness gate behaved correctly here and let these ticks through: the published snapshot genuinely said `ready`. It is a CACHED CLAIM — its own doc comment says so — and the lane had already been relaunched underneath it. So this is a THIRD signature of the one state "the lane is mid-relaunch", and the retry arm only ever recognised the first: nothing listening yet → reqwest connect error → RETRIED (existing arm) listening, still loading → HTTP 503 → hard failure (this fix) A relaunching llama-server refuses connections only until the new process binds; from that moment it accepts and answers 503 while it mmaps weights and warms the backend. Same wait, same lane, opposite handling. Fix: a 503 from a SINGLE-RESIDENT local lane retries on the same bounded backoff as the connect arm, sharing one counter so the total wait stays bounded. The HTTP status alone is the signal — no sniffing the body for "Loading model"; the status IS the structured channel ([[a-string-matcher-for-a-semantic-judgement-means-a-channel-is-missing]]). Renamed `connect_retries` → `relaunch_retries` so the name matches what it now counts, and the exhaustion message with it. Not unit-tested, and saying so plainly: the guard is inline in the send loop and testing it honestly needs a mock HTTP server, which is a bigger change than the fix. Validation is live — expect `inference.lane_relaunch_retry {reason: "503_loading"}` on the next re-home with no accompanying `selftick.inference_failed`. cargo check clean; deployed and the running binary confirmed to carry it by inspecting the mapped inode's strings. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): a lane torn down MID-DELIBERATION must be waited out, not refused (#350 round 4) Round 3 shipped the self-tick readiness gate and I called the residual verification passive. It wasn't. Measured on the probe stream today, on the round-3 binary: +374.2s serving.health "flipped serving snapshot not-ready" (#175 wedge self-heal) +427.4s x3 selftick.inference_failed "no model is resident right now" +436.6s serving.reconcile ready=true Three citizens refused NINE SECONDS before the lane came back, and `persona.selftick.awaiting_serving` fired ZERO times across the whole window. The gate is not broken — it is upstream of the problem. It reads the snapshot BEFORE a deliberation that takes tens of seconds, so a teardown that starts mid-deliberation always outruns it. The gate stops a turn that was doomed at its start; nothing stopped one that was overtaken in flight. The fix is at the seam that actually fails. The adapter's pre-flight guard treated EVERY failed guarantee as terminal, when only one of them is: - settled mismatch — another model is ready and active. Waiting cannot change that; residency arbitration is the serving layer's job (#109). Refuse, loudly. - transition — nothing resident (`empty()` is republished on every teardown: no servable plan, a re-home, a wedge relaunch), or a lane up but not yet decode-ready. Nothing has failed; it comes back on its own. Transitions now wait on `await_ready_serving` — the mechanism already existed and already had fifteen callers (the boot gate, the eval lane, the embedder, the genome teacher); this seam was the one that refused instead of waiting. It is the daemon's own readiness watch: a push, not a poll, so it returns the instant the relaunch lands and costs nothing while it waits. Budget is `DEFAULT_SERVING_WAIT` (= READY_TIMEOUT + 30s), DERIVED from the spawner's own load budget so this can never declare failure before the daemon has exhausted its legitimate window. Bounded, so a lane that never returns still ends as a named refusal, never a hang. Also collapses a predicate that had quietly forked. "A lane is live" was spelled `ready` in the self-tick gate and `ready && active_model.is_some()` in `await_ready_serving` — and the shorter spelling passes a snapshot with no model to answer as, which is precisely the case the gate exists to stop. Now one `ServingSnapshot::is_live()`, three readers. Tests (in the existing nested mod, no new mod): the wait-vs-refuse split pinned case by case (empty / warming / settled-elsewhere), and the guarantee predicate incl. both #106 vision arms. 5 pass. Deployed and confirmed present in the running binary by strings. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(observability): boot took the UNBOUNDED probe sink — the rotating one had zero callers (#341) `JsonlProbeFileSink::from_env` is documented as "the ONLY env-based entry point — rolling mode, structural auto-clean, bounded disk usage". It has exactly one caller, and that caller is a test. Boot goes through `tracing_init::build_probe_file_sink`, which called `JsonlProbeFileSink::new` — the constructor whose own doc says "append-only, no rotation, grows unbounded. Use `new_rolling` for production captures." So the bounded path was built, correct, tested, and reached by nothing, while the highest- volume writer in the substrate (one JSON line per load-bearing decision across every tokio task) accumulated 133 MB at ~32 MB/day. Ten lines above it in the same function, the fmt log was already going through `CappedAppender`. Two writers side by side, opposite bounding. This is the 172 GB class — the log that took this host to zero bytes free — and it is also the [[green-by-every-check-is-not-evidence-of-reachability]] shape: every unit test passed, because they tested `new_rolling` directly. The card's stated mechanism was wrong, and worth recording: it blamed `CONTINUUM_PROBE_DIR` holding a file path. That value IS wrong and is fixed too, but it was not the cause — even with a correct directory, boot would still have taken `new`. The env-var shape was a red herring; the call site was the bug. - `build_probe_file_sink` → `new_rolling(dir, classes, DEFAULT_MAX_LOG_FILES)`. Disk is now bounded arithmetically: 8 MiB × 7 generations = 56 MiB, the same shape as the fmt log. - `ProbeTracingConfig.probe_file` → `probe_dir`. The env var was always named `..._DIR`; the field said file, and that mismatch is what let the wrong constructor look right. - A file path where a directory belongs now fails with a message naming the remedy instead of a bare `NotADirectory` — the substrate refuses to start rather than drop probes ([[fallbacks-are-illegal-fail-loud]]), so the error has to be actionable. Test asserts at the CONSUMER's boundary — that `continuum-probes.jsonl` appears on disk, a name only the rolling path produces — not that a constructor was called. Verified RED by reverting to `new` (it fails) and GREEN again after restoring. Deployed. `~/.continuum/config.env` updated to the directory (not in this repo); live capture now lands at `~/.continuum/probes/continuum-probes.jsonl` and the old 134 MB `probes.jsonl` is frozen in place as a historical capture — the #350 baseline lives in it, so probe queries spanning today must read both. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(runtime): the dispatch audit counted adapter-served commands as orphans — 3 alarms, 2 bogus (#325) `registry.dispatch_parity` fired ERROR on every boot naming three ADVERTISED-BUT- UNDISPATCHABLE commands. Two of them — `perception/observe`, `interface/screenshot` — are `WireShape::Provided`, whose own doc says: "the substrate CANNOT execute it; it routes the call OUT to a client adapter... a different *server* (adapter, not ServiceModule)". A Provided command therefore has NO module. It can appear in neither `command_objects` nor a prefix route — not as a bug, as a definition — and the remedy the probe advertises ("add each to its module's `commands()` vec") is impossible to apply: `interface/mod.rs` has no `commands()` at all. The audit was checking a NARROWER path than the one that runs. Live dispatch goes through `Runtime::route_command`, which also consults the `ProviderRegistry`; `ModuleRegistry::route_command` does not. So these commands were healthy and reported broken. Two costs, both paid every boot: 1. An alarm that is mostly wrong trains its readers to skip it — which is how the ONE real orphan in that list went unnoticed. With the false positives gone the count is 1, and it names `generate/module`. That is the finding this fix was blocking. 2. The stated hardening was unreachable. The comment says "promote to a boot refusal once the count holds at zero across the fleet." A structurally-unroutable class in the count means zero is unattainable — and promoting anyway would have REFUSED BOOT on a legitimate adapter-served command. Fix: skip `WireShape::Provided` descriptors. Their routability is the ProviderRegistry's concern, already checked at call time with a fail-loud that names both the command and the missing adapter — pinned by the existing `provided_command_fails_loud_without_a_provider`. Test asserts on a registry with NOTHING registered — the audit's worst case, where every module-served command IS an orphan — and derives the Provided set BY SHAPE from the registry rather than a hand-kept name list, so a newly-added adapter command inherits the guarantee. It carries a positive control (the registry must contain at least one Provided command, else the test proves nothing). Verified RED by removing the filter, GREEN after restoring. Live after deploy: dispatch_parity count 3 -> 1, orphans ["generate/module"]. This also CONFIRMS #325 as originally filed. I set out to correct its "missing adapter" diagnosis and the correction was wrong — the adapter really is what is missing; the fail-loud naming eye-node is by design. The defect was one layer down, in the thing reporting on it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(runtime): register GeneratorModule — the one REAL orphan the audit was reporting all along (#325/#309) With the Provided false positives gone (8f89472c2), the dispatch-parity audit named exactly one command: `generate/module`. It was right, and it had been right for as long as the probe has existed — nobody could see it under two bogus siblings. Nothing was wrong with the command. `GenerateModule` is a correct dep-holding typed command and IS in `GeneratorModule::commands()`. The module itself was never registered: `grep` finds `GeneratorModule` in the whole crate only inside doc comments. So `generate/module` was advertised in `commands/help`, in did-you-mean suggestions, and on the persona tool offer while nothing on the runtime could route it — the exact #309 class, still live, months after #309 shipped the detector for it. One line, next to the other Background modules, ahead of `runtime.initialize()` (which is where the audit runs). Live after deploy: dispatch_parity emits NOTHING. The probe fires only `if !orphans.is_empty()`, so silence IS the zero. Sequence across three boots: 3 -> 1 -> 0. That silence-on-success shape cost me two misreads worth recording, both the same mistake in different clothes: I first "verified" the binary by grepping for a COMMENT (Rust does not compile comments into binaries, so the check could only ever say no), then read `tail -1` of the probe file as the current boot when it was the previous one. An absent signal is invisible unless you measure it against a timestamp — which is what finally settled it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(experience): recipes load from disk — an activity is authorable without a compiler (#274) The module header has always promised "a new experience is a new recipe entry, **zero code**." It was not true. The four experiences were `include_str!`'d into a fixed array, so a fifth meant editing Rust, recompiling and redeploying. A comment sat where this loader now is, saying a loader "will later" read a recipes directory. That deferral is the gap between "recipe/activity == airc room" as an idea and as a substrate. If authoring an activity needs a compiler, nobody authors one — they hand-make a room instead, and a hand-made room has no recipe and no purpose. That is how a bring-up room for a single model was still holding citizens two weeks after its activity finished: there was no other way to make a room. - `builtins_with_overlay(purpose, dir)` — the embedded set as a FLOOR, every `*.json` under `dir` overlaid on top. Overlay semantics are the ones `new()` already had: later wins by purpose, so an on-disk `chat.json` replaces the embedded one instead of colliding. - Embedded recipes stay in the binary so a fresh clone works with zero files. - Sorted load order, so two nodes reading the same directory pick the same winner for a duplicated purpose. - A missing directory is not an error (no local authoring yet is the ordinary state of a fresh install). A malformed recipe IS an error, NAMED BY FILE — an author who saved a recipe believes it is live, and a silently-skipped one is indistinguishable from one never written. Tests: an experience authored purely on disk (`kitchen-design`, a purpose this binary has never heard of) projects like any built-in and does not displace the floor; a malformed recipe fails loud naming its file; a missing directory is fine. NOT in this commit, deliberately: nothing expires, archives or deletes anything. A room is the durable record of its activity — a benchmark run's room IS that run's evidence, and a room that disappears on its own destroys it. Lifecycle is verbs a person or citizen invokes, never a timer. Those verbs are the next commit. Also: dropped a retired room's name from a doc comment in the persona runtime; the lesson it records (a persona's home comes from HER durable membership, never the operator's focus) is unchanged. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(activity): activity/spawn — a recipe becomes a room (#274) From ten thousand feet: a recipe is a CONTENT-TYPE and a room is CONTENT. Register the type once, stamp out instances forever. Every collaborative surface is content of some type — a chat, a DM, a doc tab, a benchmark run, a game someone asked for, a settings pane, a SCADA tab — and the room is the coordination layer everything else hangs off. The manifest layer could project a recipe. airc could host a room. NOTHING JOINED THEM, so rooms got made by hand — and a hand-made room carries no recipe and no purpose. That is not hypothetical: a bring-up room made by hand for one model was st…
joelteply
added a commit
that referenced
this pull request
Aug 8, 2026
… + first selection) (#2164) * chore(repo): clear persona scratch out of the repo root, and stop apps/desktop lying about where the UI is Two complaints, both Joel's, both about what a person sees when they clone this: clutter, and misleading claims. This addresses the tracked-file half of each. ## 1. Persona scratch quarantined (nothing deleted) Until #49 (per-persona workspace isolation) lands, a persona's file engine roots at the PROCESS CWD — the repo root — so her card work landed next to Cargo.toml and got committed. 31 files, all 2026-07-18, now under legacy/persona-exercises/ with a README explaining what they are and why they were where they were: string_reversal/ wordstats/ work-wordstats/ (crates) teamproof/ (8 algorithm exercises, was tmp/) loose-files/ (8 bare files that sat at the ROOT: main.rs, life.rs, game_of_life.rs, reverse.rs, string_reversal.rs + 3 .txt inputs) A bare `main.rs` beside the workspace `Cargo.toml` was the first thing a cloner saw. They are KEPT, not deleted: this is the first genuine persona-written code in the project, and the evidence that the act->observe circuit actually closed. Verified unreferenced before moving: zero hits across .rs/.ts/.md/.toml/.sh for teamproof, string_reversal, work-wordstats outside their own manifests. ## 2. The workspace `exclude` fence was decoration exclude = ["wordstats", "work-wordstats", "conway_game_of_life", "work-08ece9e8"] Its comment claimed it "keeps their in-dir cargo builds working". It never did — those crates declare `edition.workspace = true`, and an EXCLUDED package cannot inherit from the workspace root, so cargo inside them has always failed with "failed to find a workspace root". Confirmed by running it. `members` is an explicit list (not a glob), so nothing needed excluding in the first place. Removed, with the real hazard it was reaching for documented in its place. Verified: workspace parses, still exactly 16 members, no exercise crate in the package graph. ## 3. apps/desktop said "empty slot" and cost a real scare It IS an empty slot — for a hypothetical future Tauri shell. But read as an answer to "where is the desktop UI", it reads as "there isn't one". There is: core/continuum-positron/ (~6.4k lines, 19 modules) projecting to apps/web/src/ (28 files, ~8.9k lines, dist/ built). Its README now leads with that table before anything else, and notes its own stale reference to src/server-index.ts (long since moved to legacy/). apps/README.md gets the same treatment one level up: a per-app STATUS column with measured source counts, instead of "most apps are placeholders today" without saying which. Adds tui/ and eye-node/, which have real source and were not listed at all. Not touched: test-data/images/ is a genuine fixture (cited by .airc/POLICY.md), not scratch. The .gitignore rules are deliberately NOT extended — per Joel, personas will build Continuum too, and blanket-ignoring work-*/ would silently swallow real contributions. #49 is the fix, not a wider ignore. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(routing): probe the authorization refusal — the one load-bearing decision in dispatch with no observability Measured 2026-08-06 while chasing #326: 113MB of probe stream, 100 distinct probe classes, and ZERO covering the ACL gate. Every other seam is instrumented — serving plans, airc cursors, perception facts, context renders, capacity offers, embeddings — while the single component that can silently stop a citizen from working emitted nothing at all. That absence is what made #326 cost a week. A refusal reaches the caller ONLY as text inside her own action receipt, where "forbidden: no policy grants access" sits in the same field an empty result would. Two citizens read their own denial and reported "no open tasks" — correct behaviour, denied tool, and it read as a cognition defect because there was nothing to grep. Five separate investigations went past it. This adds ONE probe on the refusal arm. It is NOT an ACL change: the gate is right. `work/list(state=open)` is a malformed URI with arguments welded into the path and no policy should ever match it — the defect is upstream in whatever hands the gate a name containing args, and that emitter is still unidentified (the text parser splits name/args correctly at json_in_prompt_tools.rs:426, and the airc dispatch carries params separately at command_handler.rs:392 — both clean). This probe is how we find it: it turns "who emitted this, from where, at what trust" from archaeology into a grep. Refusals only. The allow arm stays unprobed so the hot path pays nothing — a denial is rare and decisive, which is exactly the shape the probe stream is for. Fields: path, trust, caller_peer, caller_source, had_capabilities. Note the second live site (auth_policy.rs:366) is `deny_path_prefix`, a test-only convenience policy — GridTrustAuthPolicy is the sole production refusal. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): typecheck was RED — move the test TZ pin out of the browser tier `npm run typecheck:clients` failed on canary: src/chat/renderChat.spec.ts(20,1): error TS2591: Cannot find name 'process'. The spec pinned `process.env.TZ = 'UTC'` so its fixed HH:MM assertions stay deterministic on any runner (PR #2057 review). That intent is right; the location was wrong. `process` is a node global, and apps/web's tsconfig sets `"types": []` DELIBERATELY — this is the one client tier that owns document/WebSocket, and admitting node ambient types would let browser source reach for node APIs the bundle can't provide. Adding @types/node to satisfy one spec would have removed that guard for the whole tier to fix a single line. So the pin moves to `vite.config.ts` under `test.env`, which already runs in node context (it imports node:fs/os/path). Browser tsconfig stays pure; determinism is preserved. Verified, both directions: - `npm run typecheck:clients` — green across all client workspaces. - `npx vitest run src/chat/renderChat.spec.ts` — 11/11 pass. - `TZ=Asia/Tokyo npx vitest run …` — still 11/11, with the runner clock showing Tokyo time. That is the real check: it proves the config pin OVERRIDES a hostile ambient zone rather than the suite passing because the machine happened to be on the right one. Pre-existing red, unrelated to the Rust change on this branch — found because a failing typecheck on the front door is exactly the "makes people not want to download" problem. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): the act probe records WHICH verbs ran, not just how many `persona.act.observed` carried `persona`, `room_id`, `tools=<count>`, `chars` — and no verb name. So the substrate could not answer the question Joel actually asks, "are they building anything, or just talking?", from its own telemetry. Measured tonight while trying to: answering it required reconstructing verbs from prose `[action #n] verb(args)` receipts in prompt-captures. Only 5 of 84 live captures contained a receipt at all, so the reconstruction could not be trusted either way — 589 act probes exist over the same corpus, and the two numbers have different denominators. The honest conclusion was "unmeasured", which is the wrong answer for a question this central. A count tells you an act happened. The NAME tells you whether it was work. Adds: verbs = "work/claim,perception/look" the actual batch, in order wrote = true|false did anything in it reach DISK `wrote` is precomputed rather than left as a query-time substring guess, because "did a file change" is the question we keep re-asking and it should be a filter, not an argument. Underscore forms are normalized (write_file → write/file) so the wire dialect can't hide a write. Same defect class as the authorization gate two commits ago: the decision is made, the act runs, and nothing durable records WHAT it was. Both are the observability doctrine's own point — capture the load-bearing decision — missed at the seam that matters most. Compiles clean. Cheap: one map + one any() over a batch that is almost always 1-3 calls, on a path that already allocates the full observation string. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(work): #339 — give citizens the half of the board that WRITES BACK Citizens were offered claim_task / list_tasks / get_task and nothing else. They could take a card and could never finish, hand back, or extend one. Every claim had exactly one possible ending: the 30-minute lease lapses and the card returns to the pool. A COMPLETED card and an ABANDONED card were indistinguishable, because neither could be written back. The verbs were not missing. `work/release`, `work/state`, and `work/heartbeat` are fully implemented, AccessLevel::AiSafe, with descriptions already written — `work/state`'s literally coaches the lifecycle ("in_progress when you start, review when a PR is up, blocked if stuck, closed when done"). They simply never declared `NATIVE`, which is the flag `native_tool_specs()` filters on, so no citizen has ever been shown them. Marked native, with wire-dialect aliases matching the existing snake_case set: work/release release_task work/state update_task, close_task work/heartbeat heartbeat_task, extend_claim Note the mechanism check that mattered: the gate is the per-command `NATIVE` flag, NOT the presence of ALIASES. The three offered verbs happen to have both, which made aliases look causal. Adding only aliases would have shipped another inert change — the exact failure this session has been full of. COST, stated honestly: this grows the native payload 20 → 23 schemas, and tools already take ~28% of a 16k window (#333). That is a real charge against the grounding budget. It is worth it because without these the work loop cannot close at all: we watched card 0c69c0f0 pass through three holders in one evening, each of whom "claimed" it and had no way to say what happened next. Does NOT claim to fix the passing behaviour. Whether a citizen who CAN close a card actually does is now measurable — the act probe two commits ago records which verbs run, so `verbs` containing update_task is the falsifiable signal. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(dialect): #326 — MEET a name that carries its own arguments, don't let it reach the ACL as a URI Joel, 2026-08-07: "It's never upstream and aliases exist for this reason. And even then, we have adapters." He is right, and this file's own doc-comment already said so — "always adapters: meet the model ergonomically, never hardcode around it." The adapter simply never handled this shape. WHAT WAS HAPPENING. A citizen emits `work/list(state=open)` as the tool NAME. The prose tool menu renders exactly that shape (`work/list(claimable?, state?)`), so copying it into the name slot is the trained reflex, not a malfunction. `classify` had no arm for it: MISS, passed through untouched, dispatched AS A URI. The ACL then correctly refused `work/list(state=open)` — no policy can grant a path with arguments welded on. The gate was right. The adapter was asleep. Two citizens read that refusal, reported "no open tasks", and it read as a cognition defect for a week. I spent an evening calling that defect "upstream"; it was ours. THE FIX, at the ONE resolution section every dispatch seam funnels through: split_signature("work/list(state=open)") -> ("work/list", Some("state=open")) classify() resolves the HEAD, so the name lands on the real command (and an alias head composes: list_tasks(state=open) works) normalize_call() recovers the ARGUMENTS — they are real intent and must not be dropped — merging them into `input`, and returns a note so the citizen is TOLD what we accepted and what the canonical form is (Joel's rule #328: aliases resolve AND say so) Explicit `input` always wins over a value echoed in the name, so a well-formed call is never overwritten. `normalize_call` also handles the ordinary case (resolve + tally as before), so each seam makes ONE call — all three ToolCall seams in llm_deliberation_faculty now route through it: native batch, text-lift, and the reasoning-tail lift. Reuses `paren_call_args` (widened to pub(crate)) rather than writing a second arg parser — one grammar, one place. VERIFIED BOTH WAYS. 10/10 tool_dialect tests pass. Then I disabled split_signature to reproduce pre-fix behaviour: exactly 3 fail — the three asserting the NEW capability (signature name resolves + keeps args, alias+args composes, empty signature is a no-arg call) — while the three asserting UNCHANGED behaviour keep passing. Additive, and the regression is real rather than tautological. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(memory): #165 — a rebuild is a discontinuity she can PERCEIVE, not one she has to infer MEASURED LIVE 2026-08-07, and it is the reason tonight's fixes looked like they did nothing. After the #326 adapter fix deployed, `work/list(claimable=true)` returned real cards and ZERO authorization refusals occurred — while citizens went on reporting "attempting to claim tasks or list them without success" for hours. Their receipts were TRUE. They were also about a binary that no longer existed. Correct behaviour, dead world. Working memory is persisted and restored at spawn (persona_workspace.rs:291), so act receipts survive a deploy. That is deliberate and must stay: the recency channel carrying the full trace is what stops the repeat loop — a persona who cannot see her own hands re-emits the identical act forever (engram admit is content-deduped, the reasoning channel is dark by default). Deleting receipts would trade one defect for a worse one. So: don't delete the memory, qualify it. `restore()` already turns discontinuity into a perceivable FACT — the laptop-lid contract renders the interruption gap and names dispatches cut off mid-flight. This adds the discontinuity it could not see: the substrate itself changed. VolatileSnapshot.build_sha — stamped from env!("CONTINUUM_BUILD_GIT_SHA") restore() — if it differs from the running build, record a [rebuilt] fact naming both, saying the results above it are what really happened but are NOT evidence about how things behave now, and that a tool which failed before is worth re-trying A FACT, never an instruction, never a deletion — she keeps the receipt and gains the one thing she had no way to know. What to re-check stays hers. Empty `build_sha` (serde default, pre-field snapshots) says NOTHING rather than guessing a change it cannot see. Tests, both directions: a rebuild across restore renders [rebuilt] naming the old build AND the receipt itself survives (proprioception intact); an unknown build stays silent; and the existing round-trip test now asserts NO [rebuilt] on a same-build restart — cry wolf on every ordinary reboot and the marker stops meaning anything. 24/24 green. Bigger than the citizens: while this was missing, EVERY fix was invisible to the beings it was for until their memory of the old world aged out, and every measurement taken in that window was contaminated. That made it a blocker on verifying anything else, which is why it went ahead of the write path. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(code): probe the WRITE — before/after sizes so a destructive overwrite is visible when it lands The write path is where solved work dies. flask-4045 was solved and then DESTROYED twice, and both times we diagnosed it from PROSE — the persona's own account of what she did — instead of from what actually hit disk. Reconstructing a write from narration is exactly the mistake this session has been full of. code/write now emits `code.write.landed`: path, existed, before_bytes, after_bytes, ok shrank = existed && after < before/2 `existed` + `before_bytes` are the load-bearing pair. "Solved, then destroyed" has a specific shape: a large working file overwritten by a small body — a stub, a fragment, a truncated re-emission. A count of writes could never show that; the sizes make it a one-line query. Cheap: one metadata() stat on a path that is about to be opened for writing anyway. Does NOT fix the destruction. It makes the next occurrence a receipt instead of a third round of inference. Pairs with the act probe's `wrote` flag from earlier tonight: that says a write happened, this says what it did. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(persona): renew held work-card claims on the presence pulse — her work stays hers while she breathes Glass-boxed live tonight from citizens' own prompt captures. A citizen claims a card successfully (work/claim returns a real claim_id), and her very next briefing reads "[board] you hold 0 card(s)" with the SAME card re-offered under "[available work]". So she reports "no open tasks" and passes — accurately describing a board that had quietly taken her work back. Six citizens, two machines, days of it, every one of them an honest witness. Measured on the live #general board: 61 cards, 47 claimed, and ZERO live leases. Every claim on the board they work from had lapsed. Root cause: claim leases are 30 min, and work/heartbeat existed — as a verb the MODEL had to remember to call. No citizen ever did, and no model will; #339's own doc records the card that passed through three holders in one evening for exactly this reason. Meanwhile this runtime already ran a pump emitting "I am alive" every 60s, derived from real serving state. Presence liveness and claim liveness were two channels answering one question, and they contradicted each other: the pump was announcing she was alive on the very ticks her holds were dying. Fix: bind them. The pump that proves she is alive now also renews the claims she holds, at the same cadence, with the same TTL constant (now single-sourced from modules::work rather than duplicated). The substrate OBSERVES that she is working instead of asking her to announce it — "you've turned convenience into disability" (Joel, on exactly this class). The verb stays for deliberate extension. Renewal is per-card WARN-and-continue: a failed renewal degrades to precisely the old lapse and can never take down presence. A persona.claim.renewed probe carries renewed/held/ttl so the next lapse is visible instead of silent. Note this only keeps LIVE claims alive; it deliberately does not resurrect the lapsed ones already on the board. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(work): stop advertising cards work/claim refuses — one claimability decision, not two Found by tracing the board projection after the claim-renewal fix. `work/claim` rejects Review | Merged | Closed outright (airc-lib → WorkCardNotClaimable), but every READ surface computed availability independently and excluded only Merged|Closed. A `Review` card with a lapsed lease therefore answered "claimable" and could only ever produce a refusal. Measured on the live #general board 2026-08-07: 11 of the 58 cards offered to citizens as available work were Review — guaranteed bounces, and a citizen has no way to tell a substrate refusal from her own incapacity. One of them said exactly that tonight: "attempting to claim tasks without success." Two places decided claimability and disagreed: CardHolder::claimable ("lapsed or Open") and room_board_source's inline filter (its own terminal-state check). Both missed Review. Collapsed to ONE predicate — card_holder::claimable_now, composing the lease (hold_of) with the column (refused_by_claim, which names the write-side rule and carries the drift-guard doc-link to airc-lib). room_board_source now calls it instead of re-deriving. Regression test asserts all three refused states are never advertised, with a fixture-sanity assert (the lease really is lapsed) and a positive control (a lapsed claim on InProgress work stays takeable — the reclaim path #321 depends on it, and without that control this test would pass even if the guard excluded everything). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(persona): the board read takes the room the gate approved — one value, not two that coincide (#345) RoomBoardSource binds a room (`for_room`) and gates on it, then read the board via airc's `work_board_complete()`, which resolves `current_room()` independently — "whatever my default subscription happens to be". The gate's id was never passed to the read. They agreed only because both were seeded from the same call at bootstrap. Nothing in the types prevented a gate that passed for room A while the board came from room B, and no probe would have fired. Found while tracing why a citizen's board (58 claimable) and the operator's (19, all Open) disagreed — they were two different rooms, both reads correct, and NEITHER surface named the room it read. That cost three agents and most of a night, which is the real cost of a value that is implied instead of passed. RoomBoardReader::work_board now takes Option<RoomId>: Some(id) → resolve via airc room_by_channel + project THAT room's board. A room this scope isn't subscribed to is a loud NotSubscribed error, never a quiet slide to the default: a citizen handed the wrong room's board cannot distinguish it from an empty one, and that indistinguishability is the entire bug class. None → unchanged current-room behaviour, for callers with no binding (the CLI's genuine intent). Requires airc 278addc..8dcfa76 (pin bumped, rationale in Cargo.toml): the room-parameterized read was already written but private, and RoomId→Room needs a real subscription lookup — Room carries name+wire+channel and cannot be synthesized from a bare uuid. 1023 persona tests green. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(work): lead each card with `claimable`, not `state`/`owner` — the tool result was still saying "taken" serde emits in declaration order, so a citizen reading a work/list card met `"state":"claimed"` and `"owner":"Anwen"` BEFORE `"claimable":true`. Two loud fields saying someone owns this, then one quiet field saying you can have it. Live tonight, hours AFTER the lease fix (claims now renew) and the claimability fix (11 unclaimable Review cards removed, 58->47 verified): Benchy could finally see the board and reported — "there are several tasks available on the board, but they have already been claimed by others." Every card he was looking at was his to take. He read the receipt correctly; the receipt led with the wrong fact. #321 fixed the BOARD rendering so a lapsed claim reads CLAIMABLE. It never reached the TOOL-RESULT rendering — two surfaces answering one question, drifting independently, which is the same shape as the read/write claimability split fixed in 59cbbb735. This file already declares field order load-bearing for WorkListResult (truncation); the same logic governs what a reader meets first. Order is now: id, title, claimable, lease, state, owner. Answer the question the citizen is asking ("can I take this?") before the history ("who had it?"). owner still names WHO — never "someone" — it just no longer pre-empts the answer. 184 work tests green. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): a citizen who ACTS must not go blind to what she is acting on (#347) Standing framing was destroyed twice over, independently, and either alone was enough to blank a citizen's board. 1) DEFERRED LANE MULTIPLIED AWAY A FLOOR DOCUMENTED AS UN-EVICTABLE. reproject_to_now scaled every last-good bid by lexical_relevance — the fraction of the FINDING'S OWN tokens present in this turn's burst. The denominator is the block's size, so verbose sources are structurally penalised regardless of importance. room-kanban (median offer 5,364 tokens) bid 0.9 x 0.133 = 0.12. Roster (small) survived at 0.62; workspace-map bid its full 0.90 solely because it is not defer_tolerant and never passed through. Three sources, three numbers, one cause. Reprojection is a RECALL mechanism ("a still-on-topic memory keeps its salience"); standing framing is topic-independent BY CONTRACT. Stable contributions now keep their bid; staleness still shows in the reasoning. 2) POSTACTION DELETED ALL STANDING FRAMING BEFORE TOP-K. SituationFocusArbiter filtered `!c.stable` on any tick after >=1 act. But Contribution::stable is documented as "a SERIALIZATION-order property, not an attention one — salience still governs which contributions are included". The arbiter used the one field that promises it never decides attention to decide attention. Its own comment named the intent — drop standing SOCIAL re-grounding so "the result + AFFORDANCES + working memory own the window" — but `stable` is every standing source, so it deleted the affordances it named (workspace-map, the highest bid present at 0.90), the work board, and the roster. The old test's rationale was "they were already perceived; re-dumping crowds the result out". That premise is false here: every settle iteration composes a FRESH prompt (act_observe holds `world` constant, only memory changes), so framing dropped at iteration 2 is ABSENT from iteration 2, not remembered from 1. MEASURED: Atlas held card 4780a02e on a healthy renewing lease and his turn carried no board at all — evicted set exactly the three StandingFraming sources, kept set exactly the two volatile ones, while a 0.90 bid lost to a 0.50, which top-k cannot do. He then reported "no open tasks", accurately, about a window we had emptied. Test inverted to pin the corrected invariant; the real constraint it was reaching for (don't pay full freight for unchanged context) is #167's job and needs its own signal, not a borrowed serialization flag. 3) FIXED A PRE-EXISTING RED (verified pre-existing by stashing: same 9348). `needed <= window` failed on its own terms — its message said "if it no longer does, the surface or framing grew" and it had: 8040 -> 9348 (+1308) as turn-facts accreted. The story is stronger, not broken: at 8192 the agentic surface no longer fits AT ALL, so the necessary condition itself fails. Re-pinned as a CEILING (9400) so the next +1308 fails loudly instead of accruing silently — #333 stated as a number rather than a complaint. 918 cognition tests + 1023 persona tests green. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(architecture): benchmarks as work cards — and the adapter seam ALREADY EXISTS (#346) Design approved by Joel 2026-08-07: "each new benchmark is just an adapter problem… our personas get to operate as they're trained, even allowing for easy N persona collaboration" / "so they're measured for what they do". THE FIND THAT CHANGES THE SCOPE: I was one file away from writing a second BenchmarkAdapter trait. `cognition/benchmark.rs:89` already has one — with a registry, DatasetSpec, BenchResourceHint for grid placement, tasks() -> EvalTask, and grade(task, outcome) where TaskOutcome already carries BOTH artifact channels (spoken answer AND workspace diff). Its own doc states the goal verbatim: "the runner + grid + learning loop treat every adapter identically." So "each benchmark is just an adapter" is ALREADY TRUE. #346 is not an abstraction to build; it is a DELIVERY bridge: mint a card per EvalTask into a benchmark room, let citizens claim and solve through the path they already use, feed each TaskOutcome to the adapter's grade, write the verdict as the terminal state. Caught by grepping before building ([[grep-for-the-mechanism-before-proposing-to- build-it]]); the doc now says DO NOT REBUILD IT in as many words, with a built/missing table so the next reader cannot repeat my near-miss. The doc also records WHY a card beats a headless call (it yields a TRAIL — claimed_at -> first write -> state transitions -> artifact diff — which cannot be narrated into existence, and our measured failure mode is exactly narration), the grading boundary that must not blur (card carries delivery + lifecycle; harness keeps judgment; a citizen never sets her own terminal state on a graded card), and the three defects fixed tonight without which this is silently unusable — chiefly that claims did not survive the work at all: 172 claims and ZERO renewals in that room's entire history, so a long solve was guaranteed to lose its card mid-flight. Blockers named with exact locations: #220 (deliberation_parse maps an UNRECOGNISED generation to Decision::Pass, so a correct prose answer scores 0 — fix at the parser, and do NOT break #271's silent narrated pass), exam integrity (#207), and room scoping (now safe via #345). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(test-fixture): PIN HOME/USERPROFILE/HF_HOME, never remove — removing moved the read onto the operator's real drive Reported by BigMama: three model_registry tests fail ONLY on machines with cold storage. The cause is worse than an unset variable. `with_test_home` did `remove_var("HF_HOME")`, which LOOKS hermetic. But `huggingface_cache_root` (artifacts.rs:374) resolves: std::env::var("HF_HOME") <- fixture removed this .or_else(|| config_env::read("HF_HOME")) <- so it falls through to a REAL FILE `config_env::read` hits `~/.continuum/config.env` on the actual machine — which on a cold-storage box is where the installer writes the 16TB path. So the fixture did not isolate the test; it moved the read one layer DOWN onto the operator's drive, and the test then asserted against whatever that machine happened to have. Same shape for USERPROFILE: `config_env` resolves through `dirs::home_dir()`, which on Windows ignores HOME and uses USERPROFILE — removing it let the lookup escape to the real profile. Fix: PIN all three to the test home. Process env WINS the resolution chain, so config.env can no longer be consulted at all, on any platform. HF_HOME is pinned to exactly what the default branch would compute from this home (`<home>/.cache/huggingface`), so behaviour is identical to the intent — only the ambient dependency is gone. The restore side already saved/restored correctly and is unchanged. The general rule, and it is the same one BigMama drew from her own miss tonight (never let a pipe carry the verdict): REMOVING an input does not isolate a test, it just changes WHICH ambient source answers. Pin it. 44 model_registry tests pass here (same count she reported). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): the reserved PASS token is silence in every position she puts it (#271/#264) Left unfixed on 2026-08-06 at n=1 with an explicit note in the code that it wanted "a second sighting or Joel's call, not extrapolation from n=1". The second sighting arrived tonight as EIGHT messages inside one monitor window, from THREE citizens in #k3-serving — "I will proceed with PASS", "I will PASS and continue to monitor", "I will proceed with PASS for now". Every one posted to the room as speech, and each one re-wakes the next peer into announcing THEIR pass. That is the #264 cascade, arriving through a position the collocation list structurally cannot cover. The fix is a POSITION rule, not another phrase. This file's own history is the argument: phrase/length tuning is an arms race the next filler message wins (500 → escaped by 11 chars → 700 → escaped by 14). ends_with_silence_token → declares_silence_token, one authority honoring the reserved token in the three positions observed live: 1. final word — "…Otherwise, PASS." (already honored; unchanged) 2. clause-initial — "…Otherwise, PASS for now…" (the n=1 variant, now covered) 3. first-person decl. — "I will proceed with PASS to…" (tonight's eight, now covered) Discriminators kept narrow and decidable: case-SENSITIVE on the reserved spelling (ordinary lowercase "pass" stays speech), standalone word only (PASSED / BYPASS / PASS_TOKEN never match), and the fence guard stands — fenced content is substance regardless. Accepted trade, stated so it is a choice: an uppercase PASS as a transitive verb inside a first-person declaration would silence. Nobody writes the verb in caps. Tests carry the live fixtures verbatim plus a POSITIVE CONTROL asserting the position-3 cases are covered by POSITION and nothing else — is_narrated_pass must NOT match them and the final-word rule must NOT match them — so this cannot later pass for the wrong reason. Negative controls added for prose ABOUT the token and for the word-boundary cases. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): narrow the PASS-token rule — drop clause-initial, it swallows real answers (#220) Self-review of a7f38f588 before it could bite. That commit honored the reserved token in THREE positions; this removes one of them, and the reason is the whole point. My evidence last night was n=8, and every one of those eight was the FIRST-PERSON DECLARATION form ("I will proceed with PASS", "I will PASS and continue to monitor"). The clause-initial position rode along on that evidence while still resting on its own n=1 — and unlike the declaration form it collides with real answers: "Verdict: PASS for all six cases." <- a VALUE REPORT, must speak "Otherwise, PASS for now as I…" <- a TURN YIELD, should silence Positionally identical, semantically opposite. Silencing the first is exactly the #220 failure — spoken becomes None and an answer-graded benchmark scores 0 on a CORRECT response. This file's own doctrine settles it: fail open to Speak, because silencing real content is the worse error. The declaration form has no such collision ("I will proceed with PASS" can never be a value report), which is why its evidence justifies shipping and clause-initial's does not. That variant goes back to speaking — the status quo it was already deliberately left in — until it has a rule that can tell the two apart. Tests gain a "the line we chose not to cross" block asserting the value-report shapes stay speech, so a later "let's complete the position set" cannot silently swallow benchmark answers. SEPARATE PRE-EXISTING DEFECT, found while writing that block and NOT caused by either commit: `"Verdict: PASS for all six cases."` is silenced TODAY. `clean_response`'s speaker-name stripper is `^[A-Z][A-Za-z\s]+:\s*`, which eats `Verdict: ` as though it were `Anwen: `, and the exposed leading `PASS` then trips `starts_with_silence_token`. Any answer opening with a capitalised label — `Answer:` / `Result:` / `Verdict:` — followed by the token is swallowed. Documented at the test so the next reader finds it; fixing it is its own change with its own evidence, since narrowing that regex touches all speech cleaning. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): silence gets a VERB — yield_turn replaces the prose phrase-matching (#271/#264) Joel, 2026-08-07: "Regex ideas and string matches for semantic understanding is not good for reliability." He is right, and the objection lands on code I shipped an hour earlier. Decision has four variants and the tool channel could express exactly ONE of them. Act gets its vocabulary from the command registry because acts ARE commands. Speak is prose. Pass had no structured expression at all — the only way a citizen could decline a turn was to emit a magic word into her prose and hope the parser recognised the sentence she wrapped it in. That asymmetry is the actual defect behind every fix in this family. Instruction-tuned models naturally wrap the token in a sentence, fall off the protocol, and each previous fix compensated with a cleverer matcher: a phrase list, a 500-char cap beaten by 11 chars, a 700-char cap beaten by 14, and finally my DECLARATION_LEADS list which would have been beaten by "my choice is PASS" next week. THE REGEX WAS NEVER THE DISEASE. It was scar tissue around a missing channel. So Pass gets a verb. `yield_turn` is offered on the same native tool channel the citizens already use correctly — measured, not hoped: one citizen's first post-reboot turn tonight was three correct native calls (claim_task, update_task, list_tasks). They use the structured path fine when we give them one; we never gave them this one. Recognising `yield_turn` is a NAME match on a verb we defined — protocol decoding, the same category as write_file or a JSON fence. Recognising an intention inside a sentence is not. That is the whole distinction, and it is why this replaces the matcher rather than joining it. Shape (Joel's call on the fork): FACULTY-OWNED verdict verb, not a registry command. The faculty is what turns a generation into a Decision, so it owns the vocabulary for the decisions it can reach. Appended to the ONE derived offer surface (never a parallel one), and intercepted before act_verdict on both lift paths — a yield carries no world-effect, so it never reaches the ACL or the executor, and routing it as an Act would burn budget and re-enter the settle loop instead of ending the turn. Argument-free schema on purpose: a `reason` field would invite the exact closure paragraph the verb exists to stop her broadcasting (#334's degeneration shape). Removed with it: DECLARATION_LEADS, and the clause-initial position from the commit before. What remains in deliberation_parse is only the bare-token compatibility path for a model that does not use the tool channel at all. The now-speakable shapes are pinned as MUST-SPEAK fixtures with the reasoning, so nobody "completes the position set" later and starts swallowing correct benchmark answers (#220). Surface cost stated plainly as the #333 ratchet demands rather than waved through: +144 tokens (9348 -> 9544), ceiling re-pinned 9400 -> 9600. Almost all of it is the description, which is the part that teaches her silence is free and the announcement is the noise. One avoided cascade pays for it many times over — the 2026-08-01 one ran ~30 minutes across every peer. Reachability is asserted, not assumed: the test fails if the verb is absent from the OFFERED list, because a verb that is built, correct and unoffered would be this same bug in a new hat ([[green-by-every-check-is-not-evidence-of-reachability]]). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): instrument #349 instead of refactoring the hot path on a hypothesis I was about to fix the label-stripper. Stopped, because I could not answer the one question that decides whether the fix is worth its risk: has it ever actually cost us an answer? The MECHANISM is verified. `clean_response`'s speaker-name stripper is `^[A-Z][A-Za-z\s]+:\s*`, which eats a content label — `Verdict: ` / `Answer: ` / `Result: ` — exactly as if it were `Anwen: `. When the reserved token sits behind that label, the strip exposes it to starts_with_silence_token and a correct answer becomes a silent Pass: the #220 shape, a 0 on an answer-graded benchmark for a right response. What I do NOT have is one live sighting. "Verdict: PASS for all six cases." is a fixture I wrote. And the correct fix — thread the real speaker names (Turn::author already carries them) so the pattern stops GUESSING at what a name is — changes cleaning on EVERY turn, across 2 signature changes and ~25 call sites. Refactoring the universal speech path on an unobserved failure is the same error as tuning a phrase list: confident motion on unmeasured ground. Tonight already taught me that lesson once. So: the instrument, not the fix. `label_strip_caused_silence` notices when a turn became silence ONLY because a prefix was stripped — cleaned text leads with the token, the raw generation did not. Pure observation, zero behaviour change, one probe class. If it never fires, #349 is theoretical and the refactor is not worth its blast radius. If it fires, the probe carries the verbatim answer we lost, and the refactor is justified by data instead of by my argument. Either way the next person decides from evidence. The detector is pinned in BOTH directions, because a probe that can only stay silent is worse than no probe: it must fire on the #220 shape, and must NOT fire when she genuinely led with the token, when silence came from an empty think-block, or when an ordinary name prefix was stripped from ordinary speech. That is what makes a future zero mean "does not happen" rather than "instrument was broken". Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): the lane was never down — readers could not tell BOOT from BROKEN (#350) I reported "~30% of every citizen's thinking attempts fail" and aimed a night at the serving layer. The serving layer was healthy the entire time. Correcting that here, with the measurement that killed my own hypothesis. WHAT THE DATA ACTUALLY SAYS: serving.reconcile published active=<none>: 0 times in 12h (104 reconciles, all ready) personas saw "serving: <none>": 61 times in the same window Those cannot both describe a lane that went down. They describe readers not reading the daemon's snapshot at all. ROOT CAUSE: `install_serving_state` runs in the daemon's `initialize()` — BEFORE its first reconcile — so from process start until the first publish every reader borrows `ServingSnapshot::empty()`: `active_model: None, ready: false`. That is byte-identical to "the daemon looked and nothing is serving". Personas begin self-ticking immediately, read the placeholder, and the single-resident guard CORRECTLY refuses — emitting a loud `selftick.inference_failed` naming a fault that does not exist. Clustering proves it: 116 failures
Bumps @types/node from 22.14.0 to 24.2.1.
Commits
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)