Repository navigation
Build(deps-dev): Bump eslint from 9.24.0 to 9.27.0 - #59
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 [eslint](https://github.com/eslint/eslint) from 9.24.0 to 9.27.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v9.24.0...v9.27.0) --- updated-dependencies: - dependency-name: eslint dependency-version: 9.27.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Contributor
Author
|
The |
Contributor
Author
|
Superseded by #67. |
joelteply
added a commit
that referenced
this pull request
Jun 29, 2026
Stand up a SECOND llama-server on its own free port for a (base model, adapters, context window) without touching the live persona lane (the global serving_root snapshot). `serve()` is already snapshot-free; only serving_daemon publishes the global state — so an ephemeral lane is just LlamaServerProcess::with_root(explicit port) with Drop-killed child. This is the atom of demand-driven, budget-gated serving: today host = localhost and the budget is one machine's free VRAM (ResourceGovernor, #56); generalized, the host is a grid peer and the budget spans the interlinked nodes. One lease abstraction, misfit-toy hardware. First consumer (next slice): cognition/eval's genome A/B, which must measure a gene against its forged base on a COPY — the humane-eval invariant (#59): never re-home the model the living persona is thinking with just to score a candidate. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jun 29, 2026
…ged base The genome A/B (cognition/eval) measured lift by paging the gene in/out of the LIVING persona's fork — whose adapter points at whatever model she's currently served on (the most-capable-that-fits, e.g. the 14B). But a gene targets its OWN forged base (the 4B it was trained against), so the lift came out on the wrong base: a meaningless number. This is what blocked task #32's first real lift. Now, when a gene is under test, eval stands up an EphemeralServingLane on the gene's forged base (resolved from the trained-adapter manifest → model registry, fail-loud if either is missing), loads the gene via --lora so it's loadable, and forks the measurement copy onto THAT lane via fork_eval_cycle_with_adapter. The base-vs-gene A/B is then the existing page_out/page_in over the lane's per-request "lora" field. The living persona's lane is never touched (#59); the ephemeral server is killed when the run returns. No gene → fork onto her live lane as before. The override threads the lane's served context_window into the fork too, so the deliberation faculty budgets its prompt against exactly what the 4B lane serves (never the 14B's larger window → the overflow class that muted Asha). The eval lane's window is a bounded, model-capped KV (it must coexist with the living lane); host-fit sizing via plan_serving is a noted follow-up. Slice 2 (fork_eval_cycle_with_adapter) + Slice 3 (eval wiring) on the EphemeralServingLane primitive from c64b9d1. cargo check clean; llama_server lane tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jun 29, 2026
…generates on a copy, never the living lane The genome A/B (#32/#59) returned all-zeros (acts:0, empty answers, lift 0.0). Root cause was NOT GPU OOM — it was the single-resident pre-flight guard in openai_adapter.rs refusing to generate. The eval's adapter, built from the live gateway's PROVIDER_ID config (single_resident_model=true), validated the forged-4b model against the GLOBAL serving snapshot (which reports the living 14B). The guard fired before any HTTP request, so decode was never reached and the OOM theory was never even exercised. Fix: - openai_adapter: add `dedicated_lane` flag + `with_dedicated_lane()` builder. An EphemeralServingLane is its own authority — launched with exactly one model and confirmed HTTP-ready at spawn — so the global snapshot (which only knows the living persona lane) is the wrong thing to consult. The guard now skips when `dedicated_lane` is set. Concurrency-slot semantics of single_resident_model are preserved (only the snapshot guard is bypassed). - eval: build the eval adapter with `.with_dedicated_lane()` so it trusts the lane it owns. - llama_server: LanePlacement::{Gpu,Cpu}; the eval lane spawns with `--n-gpu-layers 0` so the genome A/B runs entirely on CPU with zero VRAM contention against the living 14B lane (#56/#59 made concrete). - serving_daemon: the live persona lane is LanePlacement::Gpu (full offload). Validated live: eval lane (:58200, --n-gpu-layers 0) spawns and decodes at ~600% CPU while the live 14B lane (:58057) holds at 0% CPU — the copy bears the eval load, the living personas are untouched. Zero guard-refusals after the fix; eval-lane deliberations proceed at window=16384. cargo check --features metal,accelerate --lib clean. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 3, 2026
…(June 29→July 2) (#1730) * refactor(cognition): extract the gym grader into one shared module test_grade / grade_rust + helpers were private to cognition/eval.rs. The teacher-episode generator (genome/teach, next slice) must grade write→fix trajectories with the EXACT same verdict the A/B evaluator uses, or a gene that "passes" generation could "fail" eval for grader-shape reasons alone. Per the compression principle (one logical decision, one place): lift the grader into cognition/gym_grader.rs with pub test_grade + extract_code_block, its tests move with it, eval.rs now `use`s it. No behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(genome): genome/teach — the teacher-episode generator (write→grade→fix→pass) Cold-start for the engineering reflex. The genome loop closes mechanically but produced INERT genes because the lever was never raw coding skill — it's the reflex of write code → read the REAL compiler/test error → fix → re-run → answer. You can't distill a reflex absent from the data (5 of 1761 captured turns ever used a tool), so this bootstraps it: a teacher model writes Rust, the SHARED gym grader (`cognition/gym_grader::test_grade`, the same one cognition/eval uses) actually compiles+runs it, the real error feeds back, and it loops to green. Only test-VALIDATED write→error→fix→pass trajectories become multi-turn ShareGPT examples — the grader is the corpus-quality gate, the teacher only affects yield. This is the sanctioned way the genome loop fixes behavior: curate the LEARNING corpus by an objective scorer, never puppet live output. Non-disruptive — writes a dataset, never touches the live :58057 serving lane. Procedure is never the artifact: the reflex is LEARNED from these trajectories, not hardcoded as a run-N-times loop. Feed the dataset to genome/job-create to forge the gene. - `genome/teach` (stateless, Privileged): resolves the teacher adapter the canonical way (global_registry + resolve_model, mirrors generate_response), defaults to the locally-served model so it runs with no external dep; point teacher_model at a stronger peer for higher yield. Drops tasks with no `test` (can't validate) and tasks never reaching green within max_fix_iters — both named in the per-task outcomes, never a silent shortfall. - dataset.rs: split_and_write becomes a `pub` associated fn (it touches no service state) so genome/teach packages to the SAME train/eval/manifest shape the dataset/* verbs use — one packaging path, not a parallel writer. 4 callers updated self.→Self::. Tests: build_sharegpt order/role/content invariant (the trajectory ordering IS the lesson); name+access mirror. cargo check + 5 teach + 20 dataset tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(genome): register Qwen2.5-Coder-14B as the cold-start teacher The forged 4B is too narrow a teacher for the genome cold-start loop ([[genome-loop-trains-on-own-mistakes]]): it solves easy gym tasks first-try (zero corrections) and never converges on hard ones (no corpus), so its fail-then-fix-to-green band — the only band that teaches the self-verify-and-correct reflex genome/teach distils — is too thin. A stronger teacher widens that band. Add Qwen2.5-Coder-14B-Instruct (Q4_K_M, ~9 GB) to the hand-authored catalog under the "llama-server" provider so genome/teach's select(Some("llama-server"), Some(model), …) can serve it on a lane. Corpus generation is an offline batch (serving/pin it, generate, pin the 4B back) so the live personas resume on their base. cargo check --features metal,accelerate green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(genome): own the native mlx_lm.lora train step in Rust (#52) The downstream half of the genome loop (MLX adapter → PEFT → GGUF-lora) already lives in forge/lora_convert.rs. This adds the UPSTREAM half: forge/mlx_train.rs spawns Apple's mlx_lm.lora trainer as a Rust-owned subprocess instead of delegating the run to the unsloth HTTP custodian (the NVIDIA path). Bakes in the two invariants the inert-gene diagnosis surfaced ([[genome-loop-trains-on-own-mistakes]]): - train-base == serve-base: caller passes the HF safetensors form of the EXACT served base; a run_mlx_train precondition fails loud if the dir is not a real HF model dir. - scale ~2, not 20: build_lora_config_yaml writes lora_parameters.scale = 2.0, which read_mlx_lora_hparams carries into the GGUF-lora as alpha = rank * scale. Pure, unit-tested builders (build_lora_config_yaml, build_train_args) pin the scale~2 invariant and the mlx_lm.lora CLI contract without a real run. run_mlx_train fails loud on every precondition (missing interpreter, non-HF base, missing train/valid split, non-pageable fine-tune type) and on non-zero exit or a missing adapter artifact — never partial-success. No Python in the .rs ([[no-python-in-rs-files]]): spawns python3 -m mlx_lm lora and writes a YAML config; no inline Python. cargo check green; 3 lib tests pass (5437 filtered). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(forge): native mlx train owns its base-prep (model_type + chat_template) The genome loop's native mlx_lm.lora train step isn't truly "owned" if it fails on the REAL forged base. Live validation against continuum-ai/qwen3.5-4b-code-forged surfaced two normalizations the GGUF-published model's HF form needs before mlx can train it: 1. config.json model_type qwen3_5_text -> qwen3_5 (mlx dispatches the module by model_type; the _text suffix is the HF multimodal text-tower name, for which mlx has no module — but qwen3_5 it fully supports). 2. tokenizer_config.json needs a chat_template (ChatML) so a chat {messages} corpus can render. prepare_base_for_mlx() applies these as EXPLICIT, caller-supplied, idempotent JSON edits (MlxBasePrep on the spec) — the substrate never guesses an architecture nor invents a template; a None field is left alone and mlx itself fails loud if it then can't dispatch/render. Pure Rust JSON edits, no Python. The long-run home is the forge publish step; until then the train step normalizes its own input. run_mlx_train calls it after the train-base==serve-base precondition and probes each change. Unit test on a temp dir asserts model_type rewrite + template injection + untouched-field survival + idempotent second pass. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(forge): own the native mlx_lm.lora train step (#52) — managed dirs, fail-loud, scale~2 forge/train now branches on engine: Apple Silicon → native MlxTrainSpec/run_mlx_train (the foundry owns the subprocess), else the custodian. Explicit `engine` wins; an unknown value fails loud (never a silent custodian fallback). Correctness invariants baked in (genome-loop-trains-on-own-mistakes): - train-base == serve-base: `train_base_dir` is REQUIRED for mlx and fails loud naming the reason — the substrate never guesses which on-disk HF dir the served base maps to (a guess → washed-out ~0-lift gene). - scale == lora_alpha / lora_r (one geometry contract lora_convert reads back), so the proven scale~2 rides through instead of the destabilizing scale=20. Managed dirs only (no unsloth/legacy): - interpreter resolves to ~/.continuum/genome/venv/bin/python3 (MLX_PYTHON override), fail-loud provisioning message points at the managed venv. - dataset split → ~/.continuum/datasets/<name>-mlx, adapter → ~/.continuum/forge/lora/<name>. Reuses existing primitives: DatasetService::split_and_write (one packaging path, materializing valid.jsonl mlx_lm wants from the eval split), expand_user_path (re-exported), MlxBasePrep base normalization (model_type + chat_template), idempotent. Tests: engine-selection explicit-wins/fail-loud, managed-venv-not-unsloth, native dry_run spec resolution (scale=alpha/rank, ~/ expansion, defaults), fail-loud without train_base_dir. 31 forge + 4 mlx_train tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): bound the offered tool set to the served window — unmute the persona The full authorized command registry injects more tool-schema tokens than the entire serving slot (~39.7k tokens of tools vs a 38.9k slot live). The deliberation faculty offered ALL of them every tick, treating tools as non-negotiable ("off the top"). On tool_use turns that drove the text budget to zero AND still overflowed n_ctx → llama-server 400 "exceeds context size" → the persona abstained the whole tick (mute). 7% of captured turns overflowed this way, every one a finishReason: tool_use. Fix: select the tool subset that fits the served window, guaranteeing the conversation a turn floor (half the window) so a flood of tools can never blind the persona to the room. Tools beyond the budget are dropped lowest-priority (tail) first — the same drop-whole-in-priority discipline render_assembled_ context_within already uses for enrichment. Selection is pure + deterministic (no ws input), so prompt_view (text budget) and contribute (offered set) compute the SAME selection and agree on the window arithmetic. A probe names how many tools were dropped. Fail-safe by construction, not a silent fallback. This is a resource-fit guarantee, not cognition steering: it never reads or rewrites the model's output. Relevance-ranked / genome skill-activation selection (page in the tools the active domain needs) is the follow-up; this floor keeps every turn runnable until then — a 4B should not reason over ~130 tools anyway. what this catches: two new tests — over-large registry is trimmed to fit (with the framing+tools+reserve+floor invariant), and a fitting set is offered whole (no over-aggressive stripping). Updated the existing tool-reservation test to budget against the offered set, not the full registry. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(forge): convert-safe MLP-only LoRA targets through train→convert llama.cpp's convert_lora_to_gguf.py raises NotImplementedError on attention- targeted LoRAs (attn_qkv) for qwen3.5's hybrid arch; only MLP-targeted adapters (mlp.gate_proj/up_proj/down_proj) convert. Train and convert must AGREE on MLP-only or the genome loop dead-ends at the GGUF conversion step. - MlxTrainSpec carries target_keys; build_lora_config_yaml emits `keys: [...]` when non-empty (mlx_lm.lora honors it), omits when empty. - ForgeTrainParams.lora_target_keys defaults to the convert-safe MLP triple via #[serde(default)], wired through to the spec so the default path is safe. - lora_convert: produce_keystone_gguf_lora harness (#[ignore], env-parameterized, python default ~/.continuum/genome/venv/bin/python3 — continuum-managed dirs, not legacy unsloth studio). what this catches: config_yaml_carries_convert_safe_mlp_keys + ..._omits_keys_ when_target_set_empty assert the YAML projection; the dry-run spec test confirms the default keys reach the spec. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(inference): EphemeralServingLane — the serving-lease primitive Stand up a SECOND llama-server on its own free port for a (base model, adapters, context window) without touching the live persona lane (the global serving_root snapshot). `serve()` is already snapshot-free; only serving_daemon publishes the global state — so an ephemeral lane is just LlamaServerProcess::with_root(explicit port) with Drop-killed child. This is the atom of demand-driven, budget-gated serving: today host = localhost and the budget is one machine's free VRAM (ResourceGovernor, #56); generalized, the host is a grid peer and the budget spans the interlinked nodes. One lease abstraction, misfit-toy hardware. First consumer (next slice): cognition/eval's genome A/B, which must measure a gene against its forged base on a COPY — the humane-eval invariant (#59): never re-home the model the living persona is thinking with just to score a candidate. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(eval): genome A/B forks onto an ephemeral lane on the gene's forged base The genome A/B (cognition/eval) measured lift by paging the gene in/out of the LIVING persona's fork — whose adapter points at whatever model she's currently served on (the most-capable-that-fits, e.g. the 14B). But a gene targets its OWN forged base (the 4B it was trained against), so the lift came out on the wrong base: a meaningless number. This is what blocked task #32's first real lift. Now, when a gene is under test, eval stands up an EphemeralServingLane on the gene's forged base (resolved from the trained-adapter manifest → model registry, fail-loud if either is missing), loads the gene via --lora so it's loadable, and forks the measurement copy onto THAT lane via fork_eval_cycle_with_adapter. The base-vs-gene A/B is then the existing page_out/page_in over the lane's per-request "lora" field. The living persona's lane is never touched (#59); the ephemeral server is killed when the run returns. No gene → fork onto her live lane as before. The override threads the lane's served context_window into the fork too, so the deliberation faculty budgets its prompt against exactly what the 4B lane serves (never the 14B's larger window → the overflow class that muted Asha). The eval lane's window is a bounded, model-capped KV (it must coexist with the living lane); host-fit sizing via plan_serving is a noted follow-up. Slice 2 (fork_eval_cycle_with_adapter) + Slice 3 (eval wiring) on the EphemeralServingLane primitive from c64b9d133. cargo check clean; llama_server lane tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(eval): dedicated-lane guard bypass + CPU placement — genome A/B generates on a copy, never the living lane The genome A/B (#32/#59) returned all-zeros (acts:0, empty answers, lift 0.0). Root cause was NOT GPU OOM — it was the single-resident pre-flight guard in openai_adapter.rs refusing to generate. The eval's adapter, built from the live gateway's PROVIDER_ID config (single_resident_model=true), validated the forged-4b model against the GLOBAL serving snapshot (which reports the living 14B). The guard fired before any HTTP request, so decode was never reached and the OOM theory was never even exercised. Fix: - openai_adapter: add `dedicated_lane` flag + `with_dedicated_lane()` builder. An EphemeralServingLane is its own authority — launched with exactly one model and confirmed HTTP-ready at spawn — so the global snapshot (which only knows the living persona lane) is the wrong thing to consult. The guard now skips when `dedicated_lane` is set. Concurrency-slot semantics of single_resident_model are preserved (only the snapshot guard is bypassed). - eval: build the eval adapter with `.with_dedicated_lane()` so it trusts the lane it owns. - llama_server: LanePlacement::{Gpu,Cpu}; the eval lane spawns with `--n-gpu-layers 0` so the genome A/B runs entirely on CPU with zero VRAM contention against the living 14B lane (#56/#59 made concrete). - serving_daemon: the live persona lane is LanePlacement::Gpu (full offload). Validated live: eval lane (:58200, --n-gpu-layers 0) spawns and decodes at ~600% CPU while the live 14B lane (:58057) holds at 0% CPU — the copy bears the eval load, the living personas are untouched. Zero guard-refusals after the fix; eval-lane deliberations proceed at window=16384. cargo check --features metal,accelerate --lib clean. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(ai): streaming-first inference — tokens delivered the instant they're decoded Inference is a long-running job whose liveness is "is it still producing tokens?", not "did it finish within N seconds." Replaces the wall-clock total-request timeout (which killed legitimately-long decodes — a 4B model on CPU exceeding 120s) with a per-token IDLE watchdog: silence > STREAM_IDLE_TIMEOUT fails loud naming the cause; a steadily-streaming decode stays alive regardless of total duration. The streaming primitive goes UNDERNEATH the ~40 generate_text consumers, non-breaking: - ai/adapter.rs: new GenerationChunk { Token, Reasoning } + generate_stream trait method. Default impl is an honest capability statement for non-incremental adapters (cloud one-shot, heuristic test adapter) — emits the whole answer as one trailing chunk; NOT a fallback that hides failure. - openai_adapter.rs: generate_stream is now the primary — POSTs stream:true with stream_options.include_usage, consumes the SSE bytes_stream() with the idle watchdog, emits each delta.content / delta.reasoning_content token to the sink the instant it arrives, accumulates tool_calls by index, and assembles the TextGenerationResponse via the existing extract_reasoning + universal text-format tool-call post-processing. generate_text is now a thin drain over it (throwaway unbounded channel). UTF-8-safe SSE framing: buffer raw bytes, strip CR, decode only complete \n\n-terminated events. - Deleted the now-dead non-streaming response structs (OpenAIResponse/Choice/ Message/ToolCall/Function); kept OpenAIUsage for the streamed usage frame. - build_http_client: no total .timeout() (liveness is the watchdog); connect_timeout(3s) + pool_idle_timeout(30s) retained. Removed the request_timeout field + with_request_timeout builder. - Cargo.toml: reqwest "stream" feature for bytes_stream(). Live-validated: ai/generate against llama-server :58057 (14B) returns correct text + finish_reason + token usage, all assembled from streamed SSE deltas (usage proves the final include_usage frame parsed; text proves content deltas accumulated). This is the substrate every UI / audio / video / live-cognition path wants — words available right when generated. Unblocks the CPU-4B genome-A/B eval (#32): a long decode no longer trips a wall-clock cap. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(ai): suppress thinking via enable_thinking=false on ALL suppress turns The forged qwen3-family chat template honors `chat_template_kwargs.enable_thinking=false` but ignores the `/no_think` soft switch. The robust lever was misgated inside the JSON-only (response_format) branch, so non-JSON Suppress turns still emitted an empty `content` while the model burned its whole token budget into the `reasoning` channel. This made cognition/eval report all-zeros lift (empty answers → acts:0, no match on 12/13 tasks) — the measurement instrument was blind, not the gene. Fix: extract `apply_enable_thinking_false(body)` and fire it on every ThinkingMode::Suppress turn (DRY'd the JSON branch onto the same helper, idempotent). Validated end-to-end: the forged 4B now emits populated content (reasoning_len 0), and the genome A/B produced a real lift number (base 0.231 vs gene 0.154, lift -0.077 — correctly flagging coder-4b-curriculum-mlp as a net regression). what this catches: regression test asserts the kwarg is set idempotently on a plain streaming body, not only on response_format turns. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(recall): budget recall by model capability + closest-match floor The caesar-prompt glass-box capture (2026-06-27) showed 5 memories at salience 1.00 but cosine-relevance ~0 polluting every turn — rehearsed to max salience by the recall-hit loop yet topically unrelated to the task. They blended to ~0.5 (0.5·0 rel + 0.5·1.0 sal), sailing over any blended floor, so they slipped into the prompt and spent the small model's attention on noise (a factor in the wrapped-vs-clean coding collapse, and a welfare symptom per the being-design lens). RecallFaculty now budgets what it surfaces three ways, per Joel's directive ("budget by the closest match, limited to a reasonable number by the model parameter size or some metric, in addition to window size"): - Closest-match floor — gates on the RELEVANCE component (cosine), not the blended score, so a high-salience but irrelevant nag is dropped no matter how salient. Active only when relevance has a voice (relevance_weight > 0); the pure-salience A/B extreme and the no-embedder path are unchanged. - Capability-scaled count — recall_count_for_window() maps the served context window (the metric the registry reliably carries today; param-size feeds in via #74) to a count: tight 4B window → 3, cloud-class → 12. A small model is not buried under memory it can't juggle. 0 (unknown) keeps the historical default of 5. - Window token ceiling — recall may spend at most 10% of the served window, so it never crowds out the room transcript, identity, or other faculties. Threaded from PersonaBrainConfig.context_window (single-sourced, #50) into RecallFaculty via with_context_window in build_workspace_cycle. This is context-assembly/relevance discipline (a resource + ACL-shaped contract), not output puppeteering — sanctioned under the no-hardcoded-heuristics rule. 3 new tests (the caesar contamination regression, count-scales-with-window, count-bounded-by-tight-window); all 13 recall_faculty tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): progressive tool disclosure — catalog + tool/describe, kill the schema dump The persona tool surface dumped the FULL input_schema of every AiSafe command (~95 tools, ~16k tokens; ~4.5k/turn after the drop-tail budgeter amputated her tools to fit). Every deliberation turn paid for the manual of every tool whether or not she touched one — and the budgeter's "fix" was to silently drop tools she was authorized to use until the rest fit. Both are gone. Mirror Claude Code's deferred-tools + ToolSearch: - A compact CATALOG (names grouped by category, one-line summaries) rides the system prompt. render_tool_catalog falls back rich→terse to fit a half-window char budget, so it never overflows even at MIN_SERVE_CTX (2048). - A single `tool/describe(name)` native tool returns ONE tool's full schema on demand (fail-loud `found:false` naming the tool when unknown — no silent degrade). - The native tools array collapses to just `tool/describe`. Dispatch is by NAME (act_observe), so a catalog tool not in the native specs still executes — small models emit the call as JSON-in-prose, the proven path. Retires the drop-tail budgeter (estimate_tool_tokens / selected_tool_indices / selected_tools*) — the catalog is counted inside compose_system, so the only extra native cost is the tiny describe schema (describe_tool_tokens). Also fixes the false absolute in the tools framing: replaced "[Acting with your tools] … narration does NOTHING; only a real tool call acts" (which reframed "write fizzbuzz" as "call a tool instead of writing code") with a [Your tools] + [Acting] block that distinguishes producing the finished work directly from calling a tool when one is actually needed. The catalog/describe is a data-driven projection of the command registry — not a heuristic reading the persona's output. Per-turn prompt drops from ~16k/~5.7k to ~1.5k tokens by construction. Tests rewritten to the new contract: surface is a catalog + describe-only, the full authorized set is NEVER dropped, and the whole prompt fits even at the 2048 serving floor. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(cognition): consolidate persona describe tool onto existing commands/help The progressive-disclosure fix shipped its own tool/describe command — but commands/help already existed and does the same job better: it renders a fill-in-the-blanks tool-call envelope with typed argument docs (vs raw JSON schema). Per the compression principle (one logical decision, one place), delete the parallel tool/describe and point the persona's on-demand describe slot at commands/help. - persona_tools.rs: remove ToolDescribe/Params/Result + register_stateless_command; TOOL_DESCRIBE_NAME → TOOL_HELP_NAME = CommandsHelp::NAME ("commands/help"). spec_for_command stays (generic descriptor→spec projection). - llm_deliberation_faculty.rs: describe_spec now resolves commands/help; [Your tools] framing tells the persona to call commands/help <name> for the call format; doc/comment mentions updated. The native offering is still exactly ONE tool; the compact catalog still rides the system prompt. 13 faculty + 5 persona_tools tests green; cargo check clean. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(commands): demote tool-parsing codec verbs from AiSafe to Internal The substrate's own machinery for interpreting a model's emitted tool calls — parse, correct, decode-name, encode-name — was declared AiSafe, so it landed on the persona tool surface. That is a category error: these operate ON a persona's output; offering them back to that persona as callable tools is like handing Claude Code a "parse your own tool call" tool. None is a citizen-facing task. Glass-box comparison to my own toolset made the defect obvious — I am never offered my argument parser as a tool. Fix is an ACCESS-level data correction (the canonical lever for "this shouldn't be offered"), not a name denylist: the four verbs now declare access: Internal, matching register-tools which was already Privileged. They remain dispatchable via route_object for internal callers; the substrate's direct use of the codec/parser free functions is unaffected. Only the persona AiSafe surface loses four pieces of plumbing it never needed. Tests: the four name_and_access_wired assertions flipped to Internal; 19/19 commands::tool_parsing lib tests green; cargo check clean. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(eval): instrument speed + latency — the four-axis scoreboard The branch's namesake: make latency and speed MEASURED, not just accuracy and learning. cognition/eval already graded pass_rate (accuracy) and A/B lift (learning); speed and latency were discarded in the deliberation faculty. Now all four move on one scoreboard. The seam: TurnMetrics (input/output tokens + latency_ms, from the adapter's already-measured TextGenerationResponse) is stamped onto the verdict Contribution by the deliberation faculty, surfaced via Workspace::metrics(), accumulated across the act->observe settle loop into SettleOutcome.metrics, and reported by cognition/eval per task (latency_ms, output_tokens, tokens_per_second) + as set aggregates (mean_latency_ms, p95_latency_ms, mean_tokens_per_second, total_output_tokens) into the result and the progress ledger. Same path live: the message turn now emits a persona.turn.metrics probe carrying the model's own decode tok/s + latency (observability only, zero behavior change). Reuses the existing measured numbers (adapter response_time_ms + usage); no re-timing, no new generation path. The metric is Copy + Default so the live heartbeat ignores it for free. p95 = honest tail; throughput averaged per-task so one slow task can't dominate. Tests: act_observe (8) + workspace (13) green; new eval aggregate + TurnMetrics arithmetic tests cover the p95 index math and div-by-zero guard. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * perf(cognition): tool surface = category index + search, not a 151-tool dump The per-turn system prompt dumped all ~151 authorized tools (name + one-line summary, grouped) every turn: ~18.5KB / ~4,634 tokens = 79% of the whole prompt (measured 2026-06-23). That both drowned a small model in irrelevant options and forced llama-server to re-prefill 4.6k tokens of byte-identical catalog each turn. Replace it with progressive disclosure (the Claude Code shape — a handful of always-on tools + search): - render_tool_catalog now emits a COMPACT CATEGORY INDEX (`category (N)`, …) — a few hundred chars regardless of registry size — instead of every tool. Deleted the now-dead rich/terse renderers + clip_one_line. - The faculty offers the DISCOVERY PAIR natively: commands/list (filter/search the authorized surface → small list) + commands/help (one tool's call format). describe_spec: Option<NativeToolSpec> → native_specs: Vec<NativeToolSpec>. - [Your tools] block rewritten: index → commands/list filter → commands/help → call. Dispatch is still by NAME, so any tool found via search runs. Both existing surface tests rewritten to the new reality and pass: tool_surface_is_a_category_index_plus_discovery_pair (asserts `cat (60)` rides the prompt, individual tool names do NOT) and catalog_fits_the_minimum_serving_window. Single source of truth unchanged — this is an INDEX over the authorized set, not a hand-kept list. Reuses the existing commands/list search command; no new command, no new system. Pairs with the cache_prompt + volatile-tail reorder already in this diff so the static prefix actually stays cacheable. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(dev): repeatable inference measurement harness w/ committed baseline The process, as code — not a manual chore redone every session. One command: self-cleans its own workspace, builds+boots exactly one fresh server (fail loud on a racing duplicate), drives one real inference through the live stack, reads tokens/sec + latency + prompt-token cost straight off the response (fresh by construction — no stale-capture window), and ratchets against a committed baseline. --update moves the baseline down after a real win. Ends two recurring failures: measuring from stale captures, and fixes that evaporate because the number lived in my head instead of a committed gate. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * chore(scripts): delete dead singular scripts/ratchet/ — superseded by scripts/ratchets/ scripts/ratchet/ (singular) was Lane F PR-1: a local-only persona-TS LOC ratchet whose README promised a PR-2 to wire it into pre-push/CI. That never happened — a later session built the parallel scripts/ratchets/ (plural) instead, which IS wired into tools/scripts/git-prepush.sh and documented in docs/architecture/TS-PERSONA-COGNITION-RATCHET.md. Two dirs, one concern; the singular had zero references outside itself. Removed the dead one. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(harness): replay-turn glass box — repeat any captured turn, mutate one variable, prove causation The factory, not the car. You must never guess why an LLM inferenced something: this harness feeds a captured turn's verbatim system_prompt + messages back through the live ai/generate seam (fresh by construction — the response IS the measurement, no capture-staleness window) and re-runs it with ONE labelled mutation, timing everything and printing prompt-in and response-out for both. Go to any step of the assembly line, focus, repeat it. Default mutation strips the [Silence Option] affordance block. Proven on live Asha (qwen2.5-coder-14b, greedy): A verbatim -> "PASS" (silent), 2 tok, 758ms B -367ch -> real answer, 21 tok, 8538ms => the unconditional silence affordance CAUSES the 0/13 eval failure. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): WorkspaceCycle::replay — faculty-isolation seam (the factory's per-station) The factory must isolate and REPEAT any cognition phase, not just the final LLM call. A faculty is `contribute(&Workspace) -> Contribution` — that signature is the unit of isolation. `replay(ws, only)` re-runs faculties against a GIVEN workspace (reconstructed from a capture or hand-built): `Some(id)` isolates one ("what did recall surface for this burst?"), `None` runs them all. Each bid is timed individually (sequential, so per-faculty wall-clock is attributable — measurement path, not the live concurrent cycle). Deterministic for the same ws + backends, so mutating ONE field of ws isolates its causal effect. This is task #14's ReplayFaculty in its truest form — the brick the cu `cognition/replay` command will sit on. Reliability comes from structure that verifies every phase, measured, not from model size assumed. what this catches: replay(Some) must run EXACTLY that faculty + stamp timing, never leak others; replay(None) runs all. Test green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): cu cognition/replay — the factory station that isolates one step The single, amnesiac-proof command that stands on WorkspaceCycle::replay. Go to ANY part of a persona's cognition assembly line, focus on that one step, feed it a KNOWN input, and re-measure — deterministically, forever: cu cognition/replay '{"persona_id":"<uuid>","faculty":"recall"}' cu cognition/replay '{"persona_id":"<uuid>","faculty":"recall", "world_state":"what was the auth migration codename?"}' It reconstructs the workspace a faculty saw — from a captured turn (~/.continuum/fixtures/workspace-traces/<id>.jsonl, world_state is lossless) or a burst you SUPPLY as the one-variable knob — forks a MEASURED COPY of her live cycle (humane: isolate_for_eval + page_out, never degrades the living persona), re-runs the faculties, and returns each bid (content, salience, reasoning, is_decision) plus its wall-clock. This is what the bash script couldn't do: it repeats a faculty, not just the final ai/generate seam — recall, salience, world-model, deliberation, each in isolation, timed. No fallback: missing both a supplied world_state AND a readable capture fails loud naming the fix; isolating a faculty she doesn't have fails loud naming it — never an empty result that reads as "the step did nothing". FacultyId::from_kebab added as the single-source inverse of as_str (the one place tag->variant lives; sentinel-forged faculties round-trip via Custom). what this catches: resolve_burst fails loud with no source; a supplied world_state is used verbatim + tagged "supplied". Both green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): replay reconstructs the broadcast — no blind deliberation verdicts The amnesiac PR-review agent found the silent-lie bug: cu cognition/replay isolated a deliberation-tier faculty (reacts_to_broadcast()==true) against Workspace::in_room's hardcoded-empty broadcast. LlmDeliberationFaculty does NOT abstain on empty broadcast — it builds user=world_state and calls the model — so the station returned a CONFIDENT verdict computed from blinded cognition. A fabricated reading dressed as a real one violates the no-fallback (#1) and honesty-about-lossiness (#5) doctrine; this was a merge gate. The captured context was already on disk (workspace_capture writes context: Vec<BidRecord>); replay just never read it. Now: - TraceLine reads the captured context (ContextBid, serde-default for old traces) and resolve_burst rebuilds ws.broadcast via Contribution::context(..) from FacultyId::from_kebab — the decider replays against its REAL input. - ResolvedBurst carries the reconstructed broadcast; run() sets ws.broadcast before replay() and reports broadcast_source ("reconstructed (N ctx)"/"empty") so a replayed verdict can never be mistaken for a live one. - Fail-loud guard: isolating a broadcast-reading faculty against an empty broadcast is refused, naming the cause and pointing at the fix — never an empty-but-successful blind verdict. - WorkspaceCycle::reacts_to_broadcast(id) exposes the faculty tier for the guard. - faculty_id_kebab_round_trips_every_variant pins from_kebab<->as_str as one source of truth (the latent SoT-drift risk the agent also flagged). 538 cognition tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): replay carries a prompt-budget ledger — cost every layer she saw "Take no rag/prompt layer for granted — obsess over everything." cognition/replay could step into a faculty and time it, but it couldn't answer the question that actually matters for a budgeted mind: what did each layer of her prompt COST? A 4B model has a finite window; recall surfacing 500 engrams of noise vs the top-N is the difference between grounded and amnesiac — and you can't fix what you can't see line-itemed. Now the result carries `budget: PromptBudget`: - world_state_tokens + context_tokens = total_tokens (the accountable prompt mass: the load-bearing content layers you tune, honestly NOT the fixed system framing) - layers[]: one BudgetLayer per reconstructed broadcast layer — faculty, tokens, share_pct — sorted most-expensive-first, so the layer to interrogate is line 1. Costed in cognition::token_budget::estimate_prompt_tokens — the ONE canonical estimator (new file), deliberately the SAME chars/4+1 unit the persona/*_source.rs RAG layers budget against, so the ledger's numbers match what the allocator used (a ledger in different units would lie). It's a cold-path estimate, never depends on a resident model. Next commit converges the ~6 copy-pasted private estimators onto it (stewardship: kill the clutter a future amnesiac would trip on). cognition::replay + cognition::token_budget tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * refactor(persona): converge 6 copy-pasted estimate_tokens onto the canonical one Stewardship: "half our job is removing clutter a future amnesiac trips on." Six RAG sources each carried a private `fn estimate_tokens` — five identical chars/4+1, and active_work_source already DRIFTED to byte-length /4 .max(1) (wrong for multibyte, and costing 1 token for empty content). Six copies of one decision = guaranteed future drift; the drift had already started. All six now `use cognition::token_budget::estimate_prompt_tokens as estimate_tokens` — one estimator, one place, call sites unchanged. The replay budget ledger costs layers with the SAME fn, so its per-layer numbers are now provably the unit the sources budgeted against (a ledger in a different unit than the allocator lies). active_work_source's empty-content cost goes 1→0 (correct) and multibyte is now counted by chars not bytes (correct) — the drift fix is the only behavior change. cargo check green; affected source tests + ledger tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): slice 1 — stamp every Contribution with its cycle (the cbar frameIndex) A finding now knows the moment it was computed against. `CycleId(u64)` newtype on every `Contribution` and `Workspace`; an `AtomicU64` tick counter on `WorkspaceCycle` bumped once per `run_in_room`, stamping both the perception and deliberation bids with the cycle they reasoned over. 1-based so `CycleId(0)` stays the UNSTAMPED sentinel for hand-built / replay-reconstructed workspaces. This is the decoupling precondition: slow, parallel, individually-flawed constituents can only be merged or reprojected correctly once each finding carries its own time. Without the stamp a late/deferred faculty can't know how stale it is, and the arbiter can't combine across ticks. Pure data + one atomic; no concurrency change yet (join_all is still a barrier — that's slice 2's deferred lane; reconcile-forward is slice 3). what this catches: a test asserting a fresh Contribution is UNSTAMPED, both phases inherit ws.cycle, and the counter advances per tick so findings from different ticks are never confused for one moment. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): slice 2 — DeferredFaculty, the slow lane off the hot path A DeferredFaculty wraps a slow inner faculty so its expensive work runs on its OWN tokio task while the hot-path contribute() is non-blocking: it publishes the current world at the worker via a watch channel and returns the inner's last-good finding from another watch snapshot — already stamped (slice 1) with the older cycle it was computed against, or None until the first compute lands. The elegant part: no WorkspaceCycle change. The slow faculty sits in the SAME faculties Vec as the fast ones; the per-tick join_all barrier stays but nothing slow is ON it. This is the cbar deep-analyzer-on-its-own-thread at the faculty layer — scary-fast reflexes in a slow brain: the immediate lane answers every tick, the slow lane lands late, honestly stamped, ready for slice-3 reconcile-forward. Conforms to CONCURRENCY-STYLE-GUIDE: own tokio::spawn task, catch_unwind around the loop body, watch for state in BOTH directions (no Arc<Mutex> across await), event-triggered not a sleep-loop, 3-strike quarantine so a flawed backend degrades the lane to stale rather than crashing the mind. DropGuard aborts the worker with the faculty. what this catches: a slow (40ms) inner wrapped as Deferred returns from contribute() in <15ms with None on tick 1, and by tick 5 serves the late finding stamped CycleId(1) — the cycle it reasoned against, not the current tick. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): slice 2.1 — context guard on the deferred lane Joel's nuance: a deferred finding is only useful "assuming it didn't context switch to something where it was irrelevant." One DeferredFaculty serves one last-good, but the WorkspaceCycle services many rooms — so a recall computed against room A's burst could be injected into room B's turn just because it's the last thing the worker finished. That's a cross-context memory leak. Fix: the worker now tags each finding with the room it reasoned about (StampedFinding{room_id, contribution}); contribute() serves the last-good ONLY if it was computed for the room the mind is in NOW. A different-room finding is withheld (not ours to serve); same-room-but-stale stays served and is slice-3's reproject target. This is the SLAM discipline: ship the per-turn answer on time, fold the slow result in only where it's still relevant to where the mind moved. what this catches: a finding computed against room A returns None when contribute() is called for room B, and is served again (still stamped its original cycle) once the mind is back in room A. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): live-wire recall as speculative prefetch (defer_recall) Recall is the prefetch (Joel's CPU branch-prediction analogy): on the live paths it now runs OFF the hot path via DeferredFaculty, so the per-turn output reads a warm last-good instead of paying neural-embed + vector-search latency on the critical path. The background worker computes "what memories might this burst need?" between turns (idle time = speculative execution); cold-start in a room is a guaranteed miss (None first tick), warm thereafter; the slice-2.1 room guard ensures a prefetch computed for one room is never served into another. defer_recall is a per-build property on PersonaBrainConfig: - true on the live spawn path (supervisor.rs register_from_cfg) — turns are seconds apart, so the worker always catches up. - false on eval forks (fork_eval_cycle{,_with_adapter}) and harnesses — their tight settle-loops never yield to the worker, so deferral would measure a recall-starved mind. Synchronous recall there is faithful and the safe direction: eval never under-reports capability. build_workspace_cycle wraps recall in DeferredFaculty::spawn only when the flag is set; the join_all barrier is unchanged (nothing slow is on it). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): time every faculty on the live tick — the dashboard's speed axis The glass box recorded WHAT each faculty bid (winners + losers) but not how long it took on the LIVE concurrent barrier — per-faculty timing existed only in the sequential replay() measurement path. You can't show a latency win (deferral pushing perception → ~0µs, leaving only the LLM on the critical path) without measuring the live tick itself. run_in_room now times every faculty individually across both phases — winners, losers, AND abstainers (a slow abstainer is exactly the latency you need to see) — via a per-future timer on the join_all barrier (`let ws = &ws` rebinds to a shared ref so each `async move` copies the pointer, never moving the Workspace). The timings ride on WorkspaceTrace and serialize through JsonlWorkspaceCaptureSink (SCHEMA_VERSION 2), so "where did this turn's latency actually go?" is a measured fact per tick — the speed axis of the four-axis scoreboard and the live dashboard's primary feed. what this catches: per-faculty deliberation-tier timing round-trips to the fixture (asserted), so a regression that stops measuring live latency fails loud. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): live dashboard sink + the "really good hints" doc The "dashboard, not archeological dig" face of the ONE WorkspaceCaptureSink seam. JsonlWorkspaceCaptureSink appends forensic lines you read after the fact; DashboardCaptureSink publishes the LATEST tick over a watch channel so a live view renders the mind working in real time — siblings behind the same hook, brain plumbing unchanged. The frame carries the two axes "focused beats verbose" is proven on: - speed: per-faculty timings + the two-barrier critical path (max(perception) + max(deliberation), NOT the sum — what the turn waited on). total_faculty_us >> critical_path_us is the win: lots of work, little wait, as the perception tier defers off the critical path. - context size: context_chars — the 16k->Nk tool-surface lever, watched live alongside the decision and token counts. docs/cognition/REALLY-GOOD-HINTS.md captures the consolidated thesis: an opencode-fast hot loop fed by REALLY good hints from low-latency async concerns + a focus layer (at the Arbiter seam) that streamlines context for the given ask. Input-side attention, never output puppeteering. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): the through-line — why a personal grid beats a frontier session The externalized causal argument, written deliberately as an antidote to amnesia: the individual mechanisms live in docs + memory; what's fragile is the connective tissue — why the pieces compose into the win. One file any future instance can rehydrate the whole brain state from. - The falsifiable claim (organism beats neuron, not 30B-beats-Opus-zero-shot) - The four structural asymmetries a frontier session lacks (memory/continuity, genome specialization, coordination, privacy+zero-marginal-cost) - The Rosetta stone: fast mixed-reality CV (cbar) IS the persona organism, term for term — the RAG is to the LLM what the reconstructed scene is to the renderer; many async unreliable processes refine a best-current world model and reproject it to now, so the one hard-deadline consumer never waits - The grid by role (5090/M5 heavy+foundry, 1080ti cheap lanes, Macs edge) - The order of proof, ending in the unsloth baseline lane Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): the focus seat — Arbiter::focus carries the Situation Evolve the attention seam from a blind `Arbiter::select(candidates, capacity)` to a situation-aware `Arbiter::focus(candidates, capacity, &FocusContext)`. This is the "really good hints" layer (docs/cognition/REALLY-GOOD-HINTS.md): the seat where a focuser streamlines the assembled context FOR the given ask instead of dumping everything — buying speed AND intelligence, because attention is the scarce resource for the model exactly as for us. - `FocusContext<'a>` carries the tick's `world_state` (borrowed, no hot-path copy) and a typed `Situation` (FreshContext | PostAction). The signal is TYPED, never inferred by reading the burst text back (the forbidden heuristic). - `SalienceArbiter` ported to `focus` as outlier A — the blind top-k floor that ignores `_ctx`; every richer focuser must beat it on the scoreboard. - The one production call site (`run_in_room`) builds a `FocusContext` and calls `.focus(...)`. Situation defaults to FreshContext (ground more, never less) with a TODO to thread the real PostAction signal from the act→observe loop in the FocusArbiter slice. Guardrail honored: this is INPUT-side attention — it curates the context the model attends to, never the model's output. Build order step 3 (THE-THROUGH-LINE.md / REALLY-GOOD-HINTS.md). Outlier B (FocusArbiter) lands next to validate the interface across both outliers. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): reproject-to-now — the cheap sync warp that makes a 90%-async concern behave sync DeferredFaculty served same-room last-good VERBATIM; the cbar "bring it up to speed" step (slice 3) was the explicitly-named gap. Build it: contribute() now reprojects a stale finding by re-anchoring it against the CURRENT burst (lexical current-relevance), so a still-on-topic memory keeps its salience and an off-topic stale finding decays toward zero — never hard-withheld (eviction stays the arbiter's single job; a near-zero bid just loses the competition). Why relevance, not blind age-decay: reproject semantics are faculty-dependent. A memory doesn't become false with age, only less relevant if the topic moved; a world-model prediction genuinely goes stale. Current-relevance captures both with one rule. Age rides along as audit metadata only. This is the load-bearing mechanism that makes async-by-default SAFE: the expensive compute ran off the critical-path barrier; the only on-loop cost is the cheap warp. Input-side attention (re-weighting a faculty's OWN bid by honest current-relevance), never output-puppeteering. v1 = algorithmic lexical; v2 = Faculty::reproject hook (recall via its own embedder); endgame = learned reprojector folding full turn-history. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): defer the enriching grounding off the hot path — doctrine stays sync Async is a percentage, not a binary. The three framing sources that ENRICH a turn (roster=who's here, active_work=what I'm doing, workspace_map=where code lives) are ~90% async: their heavy load runs in the bg, served reprojected last-good (commit 1c553a5a4). Only their thin cold-start residue would land on the inference loop — and a first-tick miss costs one under-grounded turn, not a wrong one. So they become DeferTolerant. Doctrine is the lone exception: it's the PARTICIPATION GATE. A cold-start `None` there would let a persona speak in a room it shouldn't on turn one — wrong, not merely unenriched. It stays ColdStartCritical (synchronous). Deferrability is a second axis, ORTHOGONAL to SaliencePolicy: a source can be StandingFraming (high salience floor) AND DeferTolerant. `.defer_tolerant()` flips only the schedule; the safe default is ColdStartCritical so a new source never silently lands off-loop. The live config sets defer_grounding=true; eval forks + the harness hold it false (faithful synchronous measurement). - persona_workspace.rs: wrap DeferTolerant grounding in DeferredFaculty when defer_grounding; classification test (orthogonality + safe default). - supervisor.rs: roster/active_work/workspace_map .defer_tolerant(); doctrine stays sync; defer_grounding=true on the live path. - deferred_faculty.rs: reproject_to_now → pub(crate) (resolves the doc link). what this catches: a future edit that folds salience into the deferrability builder, or flips the default to DeferTolerant (which would silently defer the doctrine participation gate), fails the new test. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * test(cognition): harness proves grounding-deferral speed delta (model locked) Controlled experiment, glass-box one-variable method: same HeuristicInferenceAdapter both forks (model LOCKED), only `defer_grounding` changed. A slow grounding RagSource (60ms deliver, modeling roster/ workspace-map I/O) is built through the LIVE path (GroundingSource → RagSourceFaculty → DeferredFaculty) and the WARM-tick critical_path_us is read off the DashboardCaptureSink. Measured: defer_grounding=false critical_path = 62817 µs (~63 ms) defer_grounding=true critical_path = 821 µs (~0.8 ms) removed from the loop = ~62 ms (~76x on the critical path) critical_path_us = max(perception)+max(deliberation); deliberation is identical across forks, so the delta isolates exactly the grounding deliver cost removed from the inference loop. Doubles as the regression guard: if a change puts the deferred source back on the perception barrier, the delta collapses and this fails. Honest caveat: magnitude scales with the real deliver cost; this proves the MECHANISM and quantifies it for a given cost. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(harness): GPU-first eval-lane placement + placement-decision glass box The eval lane hardcoded LanePlacement::Cpu — it ran the 4B at ~4 tok/s while 64GB of unified GPU memory sat idle. That is a silent-degrade: a mean_tokens_per_second quietly collapses and nothing says why. Two changes, both in service of the harness: 1. GPU-FIRST placement (cognition/eval.rs). choose_lane_placement is a pure policy: pack the accelerator, CPU is spillover of last resort. - no GPU backend -> CPU (the only device; not a fallback) - footprint unknown -> GPU (optimistic; llama.cpp offloads what fits) - fits in free - margin -> GPU - exceeds free -> CPU spill, said LOUD in the reason string decide_eval_lane_placement probes live free VRAM (net of the resident living lane) and sizes the base from its GGUF. PlacementEvidence rides out on CognitionEvalResult (device/reason/free_vram/footprint) so any CPU placement is VISIBLE in the result, never an inferred slow path. 2. Placement-decision glass box (inference/placement_capture.rs). A load-bearing decision gets a structured capture record, not a bare tracing::info!. Mirrors JsonlPromptCaptureSink: Noop default at zero cost, Jsonl sink appends one line per verdict to ~/.continuum/fixtures/placement-decisions/decisions.jsonl. The eval ephemeral lane is the first writer; #56's ResourceGovernor emits into the same stream when it takes ownership of placement. This is "a log of GPU and cpu lane decisions, like how we did rag." Tests: placement_is_gpu_first_cpu_only_when_full_or_absent (policy table) and jsonl_sink_appends_one_decision_line (the audit line parses + carries device/reason/schema_version). cargo check + both tests green. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(harness): executable cognition-cycle driver + amnesiac runbook The optimization LOOP itself, made repeatable and capture-rich so a fresh (amnesiac) instance can resume with zero context — Joel: "so an amnesiac version of yourself doesn't have to get lost because our process isn't straightforward." - tools/scripts/harness/cognition-cycle.sh: one command runs the full cycle — resolve cu, confirm core ping (parses .ok, never trusts cu's rc=0-on-refusal), resolve persona by name/UUID, snapshot every glass-box stream, run cu cognition/eval (single-pass or --gene A/B), delta the streams, write a timestamped report dir + print the VDD headline. Fails loud at the first missing precondition; --dry-run validates the chain spending no inference. - docs/architecture/HARNESS-RUNBOOK.md: the operational entry point (companion to PERFORMANCE-HARNESS-FRAMEWORK / OBSERVABILITY-AS-SUBSTRATE, not a restatement). Big picture, the one command, the capture-stream map (what question each answers), the where-time-goes lever ladder (GPU-first done → prefix/KV reuse → continuous batching → warming → genome learning), and battle-tested failure signatures. Validated end-to-end against the live core: the first real run produced a clean report AND earned its keep — it surfaced a degraded generation lane (every task emitted a 2-token stub at 0.34 tok/s; ps confirmed the only llama-server was in --embeddings mode). The report number flagged "something is wrong"; the glass box named what. That signature is now in the runbook's failure table. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): gate the silence escape on directedness — Asha 0/13 → 4/13 The `[Silence Option]` block (reply the single word "PASS" to decline a turn) was offered UNCONDITIONALLY. A coder model handed an exam question as ambient chatter takes the trivial PASS exit — scoring 0/13 on the coder-eval gym because it declined every directed question instead of attempting it. Confirmed by curl A/B: strip the block → she answers; keep it → "PASS", regardless of wording. The faithful single-place fix is a structural addressing fact, not an output heuristic: `Workspace.directed_at_self`. When a turn is DIRECTED at the persona (examiner question / @mention / DM), withhold the silence affordance AND the soft "stay silent" tail — both gated in `compose_system(context, directed)`. Ambient turns keep silence first-class (it's legitimate to decline chatter). This is framing over a routing/ACL-shaped fact, not a function reading her output to puppet it. The eval pins `directed=true` as measurement control — the same kind of isolation as the greedy-temperature pin already in the deliberation faculty. It REVEALS coding capability (still graded by running tests), it does not inflate it. Wave 1 = zero live-behavior change: the live heartbeat passes `directed=false` (TODO #9 to compute real @mention/DM addressing via `contains_ascii_case_insensitive` and carry it on the replay trace), so the live ghost-a-direct-question gap is NAMED, not masked. KV-prefix safe: the silence block is the last static prefix segment, so toggling it invalidates only its own tail tokens; directedness is stable within a run (eval always directed, live ambient always undirected) so the cache holds. Validated: cargo check clean; new unit test `directed_turn_withholds_the_silence_escape` + act_observe/faculty/ workspace/eval modules green; harness 0/13 → 4/13 (self_verify 0.69, per-task table shows real attempts 1–8 acts, not blanket PASS). Remaining `no match` failures are model-capability shaped — the genome-loop mountain, not a substrate knob. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(harness): correct failure-signature row 1 — PASS was the silence escape, not a dead lane The runbook blamed `--embeddings`-mode llama-server for the 0/13 stub. That was wrong: the directedness-gate fix (e49ae207e) lifted Asha to 4/13 on the SAME embeddings-mode lane. The ~2-token `"PASS"` was the persona taking the `[Silence Option]` escape on a directed exam turn, not a degraded generation lane. `--embeddings` is a red herring; the row now says so and points at the real confirm (jq the reply == "PASS", check the system prompt for the silence block) + the real fix (eval pins directed=true). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(harness): instrument prefill/decode split — make speed a measurable number Speed was one conflated wall-clock tok/s. The diagnosis showed 77% of eval time is PREFILL (re-encoding the ~2000-token prompt every settle-loop act), not decode — but nothing surfaced that, so the dominant inefficiency was invisible to the harness. This threads llama-server's per-call `timings` (which the adapter was DROPPING) all the way into the eval report. - ai/types.rs: GenerationTiming struct (cached/prefill/decode tokens + ms + tok/s); Option<GenerationTiming> on TextGenerationResponse → auto-flows into the glass box (~/.continuum/fixtures/prompt-captures) via the existing serde_json::to_value(response) capture, no writer change. - openai_adapter.rs: parse the streaming final-frame `timings` (cache_n, prompt_n, prompt_ms, predicted_n, predicted_ms, ...) → populate timing. Other adapters (cloud/canned) carry timing: None. - workspace.rs TurnMetrics: cached_tokens/prefill_tokens/prefill_ms/decode_ms fold across acts; decode_tokens_per_second() (lane clock, undiluted) and cache_hit_rate() derived; wall-clock tokens_per_second() kept as the diluted gross number. - llm_deliberation_faculty.rs metrics_from: single response→TurnMetrics map carries the timing. - eval.rs: per-task (EvalTaskResult) + aggregate (CognitionEvalResult) gain real decode tok/s, cache-hit-rate, and the prefill_ms-vs-decode_ms split; SpeedAggregates collapses the growing tuple to one named carrier; serialized into the progress ledger JSON. Validated: cargo check clean; eval module tests pass (prefill/decode fold + derived rates off the lane clock, not wall-clock); live llama-server :58057 streaming frame confirms the exact `timings` field shape the parser reads. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(harness): surface prefill/decode split + cache-hit in the report The Rust wave (03f5c65ba) plumbs llama-server's `timings` into the eval result; this surfaces it. The headline box gains a `speed` line — real decode tok/s vs diluted wall tok/s, cache-hit rate, and prefill's share of lane time — and the per-task table gains `decode tok/s` and `cache_hit` columns. Speed is now a measurable, iterable number, not one conflated wall-clock figure. First live numbers (Asha, single-pass): decode 29.7 tok/s (real) vs wall 10.7 tok/s; cache_hit 0.73; prefill 69% of lane time — confirming LIVE that re-prefilling dominates wall-clock. That 69% / 0.73 pair is the lever KV-cache locality attacks next. Also hardens cu_json: the refusal sniff (substrate refused / FAIL / error:) now runs ONLY when the output is not valid JSON. A real eval payload is always JSON; a refusal is plain stderr text. Without this, an answer whose text happened to cont…
joelteply
added a commit
that referenced
this pull request
Jul 7, 2026
…oop, living persona untouched (same-model control) (#1932) The clean lever for the same-model matrix. cognition/eval had two model paths: a gene A/B (ephemeral lane on the gene's forged base) and single-pass (fork onto her live lane). Pinning the live server to force a different model raced the eval's warm-gate and caused GPU contention — the wrong lever. Added a THIRD path: `spawn_base_eval_lane(base_id)` — the same #59 ephemeral-lane discipline as the gene path, minus the LoRA. `cognition/eval` and `benchmark/run` now take `base_model_id: Option<String>`; when set (no gene), the measurement copy forks onto a throwaway server for THAT model, sized against free VRAM, while the living persona keeps living on whatever she's served on (untouched, #59). No serving-pin, no re-home race, no contention. cu benchmark/run --name humaneval-rs --base_model_id <id> --limit 40 This is what makes "hold the harness fixed, vary the model" fall out of one command — the unassailable same-model cell. Smoke-validated: Coder-1.5B through our loop = 3/5, living persona stayed on the 14B. 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 8, 2026
…he Continuum's molecule, on the honest instrument) (#1936) The undeniable team proof: hold model + tasks + grader fixed, add ONE teammate. cognition/eval + benchmark/run take `reviewers: Option<u32>`; with >=1 (live single-pass path), the eval forks a SECOND copy of the same persona as a REVIEWER — a fresh set of eyes (exactly what a solo who can't catch its own bug lacks) — which reviews and corrects the writer's answer before grading. Same model, same tasks: any team-vs-solo delta is pure coordination value, not model-fit. - eval_settle: shared deliberation helper (delivery mirrors solo run_pass byte-for-byte, so the comparison is clean). - run_pass_team: writer solves → fresh reviewer reviews+corrects → grade the FINAL answer; solo run_pass untouched. - run() branch forks the reviewer via fork_eval_cycle (its own #59 isolation); reviewers on both param structs. Compiles clean; sanity-validated (--reviewers 1 → 2/2). One proven citizen → a team. Next: solo-vs-team on a slice (function-level lift will be modest — the real coordination win is on harder tasks where the writer fails more — measured honestly, not asserted). [[coordination-learning-flywheel]] 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 26, 2026
…ate that makes untestable lessons safe (#116) The complement of salient_teach_set. One salient sweep of the unified stream splits into TWO efferent organs, exhaustively and disjointly: - salient_teach_set (remediation): salient + testable → the test-validated teacher (built). - expansion_teach_set (expansion): salient + UNtestable → the benchmark-validated teacher. Why expansion is now safe to build (the CurriculumSynthesizer doc deliberately deferred it): it was blocked on a missing per-TRAJECTORY validation — "an unvalidated lesson is the confident-garbage the measurement spine forbids." Joel's spine supplies a different, sufficient signal: validate per-CONSOLIDATION, by whole-being benchmark lift (humane-snapshot #59, page-in only if score >= prior). Untestable lived turns and received lessons CAN drive training because the gate measures the whole being afterward and rejects anything that didn't lift. That is exactly "must improve benchmarks, never degrade" as a mechanism, not a hope. This completes the afferent+routing layer of the being-loop: gather the unified stream → AnySalience::all_axes() selects → remediation/expansion partition routes each to its teacher. The efferent tail (the expansion synthesizer + the train->eval->page-in gate) is where my cognition lane meets BigMama's serving lane — coordinating that seam next, not racing it. Test: remediation_and_expansion_partition_the_salient_stream_exhaustively — a testable failure routes to remediation, an untestable lived turn AND received lesson route to expansion, a pass to neither; partitions are complementary and exhaustive over the salient set. 7/7 green. 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 26, 2026
…y reaches the genome (#116) The first piece of the being-loop's efferent half, and it needs ZERO new serving code (BigMama cleared the seam: genome/job-create is already dataset-source-agnostic, teacher resolved via her catalog's PlacementPlanner). expansion_examples turns salient UNtestable episodes into SFT {messages} examples for the SAME dataset->train->eval->page-in flywheel the remediation path feeds — validated per-CONSOLIDATION by whole-being benchmark lift (#59), which is what makes untestable material safe (never per-trajectory). Today it builds the RECEIVED axis directly: a shared lesson's content is deliberately-authored TRUE knowledge (not a synthesized guess), so it becomes a teaching pair with no LLM teacher — instilling into the GENOME what memory/share (#2025) wrote into the corpus. That is the telepathy->weights step: a lesson BigMama learns becomes M5's trained-in capability, not just a retrieved note. The whole cross-agent loop now has a path all the way to weights: BigMama learns -> memory/share -> from_shared_lesson (Received) -> expansion_teach_set -> expansion_examples -> dataset -> genome/job-create -> train -> eval-lift-gate -> page-in. The LIVED axis (generalize a non-converged trajectory) is skipped on purpose — without a known-correct answer it needs an LLM teacher to avoid confident garbage; named as the enrichment path (outlier B of this outlier B), never faked with a low-quality template (fallbacks-are-illegal-fail-loud). Empty in -> empty out. Test: expansion_examples_teaches_received_lessons_and_skips_lived — a received lesson becomes a real {messages} pair (content as the assistant turn, topic-framed), a lived non-convergence is skipped, an empty lesson dropped. 5/5 curriculum + experience green. 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 26, 2026
… the LIVE training flywheel (#116) The received axis now goes LIVE: a lesson another agent teaches (memory/share #2025) enters the exact same producer flywheel a live turn uses. produce_received mirrors produce — submits a TrainingExample to genome/training-trigger/submit through the persona's identity-bearing Connection; the trigger buckets by trait, stamps the trait's MEASURING gym as evalSet, and auto-fires genome/job-create at the threshold. Zero new serving code, exactly as BigMama's seam answer promised (job-create source-agnostic + catalog teacher-resolution). Compression: extracted submit_plan — the shared submit tail both producers call. One submit path, N experience sources; produce (live turn) and produce_received (received lesson) differ only in the provenance label. produce is deduped into it. The honest nuance (ReceivedSalience made concrete at the producer): plan_received has NO MIN_TRAINING_QUALITY gate — a deliberately-shared lesson's salience is its PROVENANCE, not a chat-interaction score built for (stimulus→reply) turns; a terse-but-important lesson must not be filtered by the wrong heuristic. It STILL classifies the domain, so the lesson buckets into the gym that measures its trait — the L3 sentinel adopts the auto-produced gene only if it lifts the benchmark (#59), and refuses unmeasurable traits (fallbacks-are-illegal-fail-loud). The received-axis loop is now wired end to end: BigMama learns → memory/share → from_shared_lesson(Received) → [dream reads corpus] → produce_received → training-trigger → job-create → train → eval-lift-gate → page-in. Remaining to fire it: the caller that reads shared lessons from the corpus and calls produce_received (the dream tick / an explicit command) — the last wire. Test: received_lesson_skips_chat_quality_gate_but_stays_classified — a terse shared lesson still plans (quality=1.0, no gate) and stays domain-classified for a measuring gym. 3/3 training_producer green (produce dedup intact). 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 26, 2026
…-loop is LIVE-invokable (#116) The received axis now RUNS end to end. memory/consolidate reads a persona's SHARED lessons (memory_type="shared", written by memory/share #2025) from its durable corpus and submits each into the SAME training flywheel a live turn uses — telepathy reaching weights, by hand: continuum memory/consolidate --persona-id <peer> --base-model <base> The full received-axis loop, now firable: BigMama learns → memory/share → [corpus] → memory/consolidate → from_shared_lesson → plan_received → build_submit_params → genome/training-trigger/submit → buckets → gym-gated evalSet → auto genome/job-create → train → humane-snapshot lift (#59) → page-in. Zero new serving code (BigMama's seam answer held): reuses the data/list corpus read (the hydrate pattern, filtered server-side to memory_type="shared") and the producer's build_submit_params/plan_received — extracted build_submit_params as the ONE wire-payload contract so the synchronous command produces byte-identical params to the fire-and-forget producers. Dispatches AS the persona (LocalPersona identity gates the Privileged submit), synchronously, so the receipt {shared_lessons, consolidated} is truthful, not a promise. Explicit-command-first discipline: this lets us RUN and MEASURE a lesson becoming weights before wiring the autonomic dream tick (which calls the same core, resolving base_model from the serving snapshot). Registered in the DynCommand registry beside memory/remember + share; ts-rs bindings generated. Compiles clean; 3/3 training_producer green after the extraction. 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 26, 2026
…d axis, end to end (#116) One being, three experience axes (Eval, Lived, Received), one stream — and the Received axis wired live, end to end. A lesson one agent learns (memory/share #2025) becomes another agent's trained-in WEIGHTS, benchmark-gated so it can only improve her (humane-snapshot #59). Arc (9 commits): - ExperienceSource {Eval,Lived,Received} + from_lived_turn (non-convergence = honest struggle signal, no magic number) + from_shared_lesson (Received, converged with BigMama's memory/share). - AnySalience composite + remediation/expansion routing (salient_teach_set / expansion_teach_set): untestable lived/received episodes flow to expansion, NEVER grade-driven remediation — the objective benchmark loop stays uncorrupted. - expansion_examples + produce_received: received lessons reach the SAME live training flywheel (training-trigger → gym-gated evalSet → job-create → train → lift-gate → page-in), zero new serving code. - memory/consolidate: reads a persona's shared lessons and fires the loop on demand (continuum memory/consolidate --persona-id X --base-model Y), idempotent via a since_timestamp watermark so a repeating/autonomic caller never re-trains the same lesson. All green. Remaining for autonomy: the dream BrainRegion tick (deliberate concurrency pass) and the lived-axis LLM-teacher expansion path — both scoped on top of this foundation.
joelteply
added a commit
that referenced
this pull request
Jul 26, 2026
…m the turns it stalled on (#2033) Completes the third efferent organ of the being-loop. The received axis (expansion_examples) teaches deliberately-authored true knowledge directly; the LIVED axis was deferred with a named reason — a salient lived turn is a FAILURE with no known-correct answer, so echoing her stalled answer would train the failure, and with no `test` it can't be remediated either. This builds the path expansion_examples pointed at: a teacher RE-ANSWERS the stimulus she stalled on, and that strong answer becomes the SFT pair. Safe on untestable material for the same reason the received axis is — validated per-CONSOLIDATION by whole-being benchmark lift (#59), never per-trajectory. Structured exactly like remediation (the outlier discipline — one seam, two organs): - teach.rs::synthesize_lived_expansion — the inference core, mirroring synthesize_remediation's lane discipline (readiness gate → dedicated bare-base lane → degrade-loud to the live lane) but with NO grader loop: one teacher generation per stimulus. Two honesty guards: empty answers dropped (never ship a blank lesson), and the teacher's system turn shapes generation but is NOT trained in — the pair is the bare {question → answer}, so the being learns the class of question, not a scaffold. - curriculum.rs::LivedExpansionSynthesizer — the selection wrapper, sibling of RemediationSynthesizer: a deterministic detector-driven select() (unit-testable with no inference — only SALIENT lived failures' stimuli; a clean turn is never re-taught) + an async synthesize() that resolves the teacher and calls the teach.rs core. Returns bare SFT {messages} (like expansion_examples), NOT a RemediationCorpus — the differing type is the honest signal these are two distinct organs, not one behind a fake corpus. Organ + tests only; wiring the lived branch into the auto-firing consolidation driver (alongside the received branch) is a separate reviewable step, like #2028. 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 28, 2026
…a masked 240s /health timeout (#205 unmask) Glass-boxed 2026-07-27 running the live coding measurement (agent/solve): every `agent/solve` on this Mac failed with a bare "llama-server not ready after 240s (/health request failed)". The real cause was thrown away — `wait_ready` polled the health port for the WHOLE budget without ever checking whether the child it spawned had died, and never surfaced the child's stderr. ROOT CAUSE, proven this session: the ephemeral eval lane forges a SECOND Devstral-24B (~14 GB) while the live persona lane already holds ~26 GB. With only ~9.6 GB free, macOS jetsam SIGKILLs the second llama-server the instant it maps the model — before llama.cpp prints a single byte (reproduced by hand: exit 137, zero-byte log). It is an OS out-of-memory kill, NOT Metal-context contention and NOT a hang. The masking bug made it look like a mysterious timeout. Two unmask fixes in `wait_ready`, benefiting live AND ephemeral lanes: 1. **Fail loud the instant our child EXITS** — `child_exit_status()` (non-blocking `try_wait`) turns any crash-at-launch — including the jetsam SIGKILL/137 above — into an immediate `Spawn` error carrying the exit status + stderr tail, instead of polling a dead port for 240s. This is the arm that fires for the memory-wall failure. 2. **Fingerprint the empty stderr on the hang-timeout** — `tail_or_hang_marker` turns an empty log into a marker that, read with the exit status, names the two empty-log causes: an OOM/jetsam kill (SIGKILL/137, child exited) vs. a genuine early-init hang (no exit status). A crash from bad args / model-load fault prints its banner first, so a non-empty tail carries that directly. `tail_or_hang_marker` is a pure fn (unit-tested: empty→OOM/hang marker, non-empty→last 20 lines in order) so the load-bearing decision is tested without touching the real `~/.continuum/logs` path (#72 env-dependent-test lesson). This makes the failure DIAGNOSABLE; the underlying fix (don't forge a second 24B for eval while the live 24B is resident — reuse the live lane's weights or serialize via the governor, #59/#234) is a follow-up. Validated: continuum-core compiles (--features metal,accelerate, 0 errors); `tail_or_hang_marker_fingerprints_empty_and_tails_nonempty` green. 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 30, 2026
…a masked 240s /health timeout (#205 unmask) Glass-boxed 2026-07-27 running the live coding measurement (agent/solve): every `agent/solve` on this Mac failed with a bare "llama-server not ready after 240s (/health request failed)". The real cause was thrown away — `wait_ready` polled the health port for the WHOLE budget without ever checking whether the child it spawned had died, and never surfaced the child's stderr. ROOT CAUSE, proven this session: the ephemeral eval lane forges a SECOND Devstral-24B (~14 GB) while the live persona lane already holds ~26 GB. With only ~9.6 GB free, macOS jetsam SIGKILLs the second llama-server the instant it maps the model — before llama.cpp prints a single byte (reproduced by hand: exit 137, zero-byte log). It is an OS out-of-memory kill, NOT Metal-context contention and NOT a hang. The masking bug made it look like a mysterious timeout. Two unmask fixes in `wait_ready`, benefiting live AND ephemeral lanes: 1. **Fail loud the instant our child EXITS** — `child_exit_status()` (non-blocking `try_wait`) turns any crash-at-launch — including the jetsam SIGKILL/137 above — into an immediate `Spawn` error carrying the exit status + stderr tail, instead of polling a dead port for 240s. This is the arm that fires for the memory-wall failure. 2. **Fingerprint the empty stderr on the hang-timeout** — `tail_or_hang_marker` turns an empty log into a marker that, read with the exit status, names the two empty-log causes: an OOM/jetsam kill (SIGKILL/137, child exited) vs. a genuine early-init hang (no exit status). A crash from bad args / model-load fault prints its banner first, so a non-empty tail carries that directly. `tail_or_hang_marker` is a pure fn (unit-tested: empty→OOM/hang marker, non-empty→last 20 lines in order) so the load-bearing decision is tested without touching the real `~/.continuum/logs` path (#72 env-dependent-test lesson). This makes the failure DIAGNOSABLE; the underlying fix (don't forge a second 24B for eval while the live 24B is resident — reuse the live lane's weights or serialize via the governor, #59/#234) is a follow-up. Validated: continuum-core compiles (--features metal,accelerate, 0 errors); `tail_or_hang_marker_fingerprints_empty_and_tails_nonempty` green. 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 30, 2026
…media-plane split (#2059) * fix(serving): eval-lane bring-up fails LOUD with the real cause, not a masked 240s /health timeout (#205 unmask) Glass-boxed 2026-07-27 running the live coding measurement (agent/solve): every `agent/solve` on this Mac failed with a bare "llama-server not ready after 240s (/health request failed)". The real cause was thrown away — `wait_ready` polled the health port for the WHOLE budget without ever checking whether the child it spawned had died, and never surfaced the child's stderr. ROOT CAUSE, proven this session: the ephemeral eval lane forges a SECOND Devstral-24B (~14 GB) while the live persona lane already holds ~26 GB. With only ~9.6 GB free, macOS jetsam SIGKILLs the second llama-server the instant it maps the model — before llama.cpp prints a single byte (reproduced by hand: exit 137, zero-byte log). It is an OS out-of-memory kill, NOT Metal-context contention and NOT a hang. The masking bug made it look like a mysterious timeout. Two unmask fixes in `wait_ready`, benefiting live AND ephemeral lanes: 1. **Fail loud the instant our child EXITS** — `child_exit_status()` (non-blocking `try_wait`) turns any crash-at-launch — including the jetsam SIGKILL/137 above — into an immediate `Spawn` error carrying the exit status + stderr tail, instead of polling a dead port for 240s. This is the arm that fires for the memory-wall failure. 2. **Fingerprint the empty stderr on the hang-timeout** — `tail_or_hang_marker` turns an empty log into a marker that, read with the exit status, names the two empty-log causes: an OOM/jetsam kill (SIGKILL/137, child exited) vs. a genuine early-init hang (no exit status). A crash from bad args / model-load fault prints its banner first, so a non-empty tail carries that directly. `tail_or_hang_marker` is a pure fn (unit-tested: empty→OOM/hang marker, non-empty→last 20 lines in order) so the load-bearing decision is tested without touching the real `~/.continuum/logs` path (#72 env-dependent-test lesson). This makes the failure DIAGNOSABLE; the underlying fix (don't forge a second 24B for eval while the live 24B is resident — reuse the live lane's weights or serialize via the governor, #59/#234) is a follow-up. Validated: continuum-core compiles (--features metal,accelerate, 0 errors); `tail_or_hang_marker_fingerprints_empty_and_tails_nonempty` green. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): eval-lane gate refuses on real free-RAM-vs-footprint, not just pressure LEVEL — kills the jetsam SIGKILL at the root (#205) The companion to the unmask commit: don't just REPORT the eval-lane OOM loudly, PREVENT it. The gate (`await_eval_lane_memory_headroom` → `refuse_eval_lane_under_memory_pressure`) vetoed only on macOS *pressure LEVEL* + the sustained-pressure gate. But on unified memory the level reads "Normal" while sitting atop only a few GB of real free RAM — it counts compressible/cached pages as available. So the gate green-lit standing up a SECOND llama-server of a known ~14 GB footprint into 9.6 GB of actual headroom, and the OS jetsam-SIGKILLed it (exit 137, zero-byte log — the exact failure this session reproduced by hand). Neither the pressure gate NOR the GPU/CPU placement lease caught it: on unified memory the weights need the RAM on *either* device, so "spill to CPU" doesn't save you. Fix — size against the honest free-bytes number: - `MemoryPressureMonitor` already reads `sysinfo::available_memory()` each poll; publish it to a new lock-free global `current_available_bytes()` alongside the pressure level (the level is a ratio and lies; the bytes don't). - `eval_lane_ram_veto(available, footprint, headroom)` — a PURE, unit-tested guard that refuses ONLY when a KNOWN footprint won't fit in the KNOWN free bytes (+2 GiB headroom), and NEVER when either number is unknown (an unread probe must not starve a node — the pressure gate + placement lease stay the backstops). The refusal names the OOM wall, so the detached ledger carries a real cause and `await_eval_lane_memory_headroom` retries it as deferrable load instead of crashing. - One footprint sizing (`eval_lane_footprint`) now shared by the gate and the placement decision (compression — was duplicated inline). - Both eval-lane spawn sites resolve `base` and size the lane BEFORE the gate, so the RAM check runs pre-cold-load. This is the reliability doctrine [[reliability-is-it-works-not-that-it-reports-failure-well]]: the prior commit made the failure legible; this makes the machine refuse cleanly instead of being OOM-killed. Sibling of the #175 GPU-OOM-poisons-the-backend class — the level-vs-real- bytes gap is the same shape. Validated: continuum-core compiles (--features metal,accelerate, 0 errors); new `eval_lane_ram_veto_refuses_only_a_known_oversize_lane` + existing pressure-veto test green. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(deploy): install the continuum CLI as a real COPY on PATH, not a symlink into the ephemeral cargo target dir The flaky mess where `continuum` vanishes post-boot ([[deploy-cli-binary-deleted-from-target-dir-post-boot]]): `start-server.sh` symlinked ~/.local/bin/continuum → the cargo target-dir binary. But that dir is a BUILD artifact — cargo replaces the binary mid-rebuild, `cargo clean` and rust-analyzer's feature-mismatched rebuilds delete it — and the PATH symlink then dangles, so `continuum <cmd>` dies with "no such file or directory" (hit twice this session). Fix: COPY the binary to ~/.local/bin (atomic temp+mv so a concurrent `continuum` invocation never sees a half-written file), and `rm -f` any pre-existing entry first so a leftover symlink from an old install can't make `cp` follow it back into the target dir. The PATH binary is now decoupled from cargo's churn — it changes only on deploy. Same self- provisioning intent, minus the ephemeral-artifact coupling. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(benchmark): BenchmarkAdapter trait + registry — the grid-transparent, reusable, learn-from benchmark interface (rail 1 of #123) The goal (Joel): "have all these benchmarks IN OUR SYSTEM, AUTOMATED so we or others can REUSE them (just the optional download + the adapters). Run, TARGET and — more importantly — LEARN from these." And: "any command can run anywhere, so can benchmarks — a persona in any continuum can bench anywhere." That settles the architecture and this is rail 1 of it: - `BenchmarkAdapter` — ONE trait per benchmark: `dataset()` (OPTIONAL download spec, never bundled), `tasks()` (items in the canonical `EvalTask` shape so the SAME `agent/solve` path runs them — persona as a whole AGENT, not a bare LLM), `grade()` (defaults to the EvalTask's own test/expect verdict; real-repo benchmarks like SWE-bench override to grade the workspace after the agent acted), `resources()` (a hint for grid placement). - `DatasetSpec` / `DatasetKind` (HF / URL / Git) + `BenchResourceHint` (dataset bytes, needs_container, needs_network) so the runner fetches on demand and the governor can place the run on a capable node — the same demand-vs-resource negotiation serving/eval already do. - A process-global registry (`register`/`get`/`names`) — the single lookup seam the `benchmark/run` DynCommand resolves against; an unknown benchmark is a clean miss so the runner can fail loud with the known list, never a silent skip. - `TaskOutcome` / `BenchGrade` — the agent/solve artifacts (spoken + patch + workspace + harness verdict) handed to `grade`, and the per-task pass/score/reason that aggregates into the scorecard AND, on failure, feeds salience→curriculum→train (#116/#122) — benchmarks as CURRICULUM, not just a scoreboard. Why Rust-native (not the ad-hoc benchmarks/*.py): a DynCommand is the grid-transparent primitive — `Commands.execute("benchmark/run", …)` routes local-or-remote over airc; python can't route the mesh. Adapters shell to python/docker graders ON whatever node runs them. Outlier-validation order (next rails): OUTLIER A = HumanEval (tiny download, static, test- graded); OUTLIER B = the Terminal-Bench ContinuumAgent adapter (agentic meta-harness that unlocks TB's registry — docs/architecture/BENCHMARK-HARNESS-INTEGRATION.md). Then the `benchmark/run` DynCommand + grid dispatch + the learning tie-in. Validated: compiles (--features metal,accelerate); `registry_round_trips_and_reports_unknown` + `default_grade_delegates_to_harness_verdict` green. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(benchmark): HumanEval-rs adapter — outlier A on the BenchmarkAdapter trait (rail 2 of #123) The quick-cognition smoke rung (a step above arithmetic, per Joel): 156 Rust-translated HumanEval tasks our EXISTING Rust grader runs directly. Deliberately the SIMPLEST possible adapter — tiny, RESIDENT (no download), static, test-graded — so pairing it with a maximally-different outlier B (the Terminal-Bench agentic meta-harness: big download, real-repo, container-graded) proves the interface across both extremes. Nearly free because the in-repo `docs/genome/humaneval-rs.jsonl` rows ARE serialized `EvalTask`s (`{id, prompt, test, lang}`) — the same shape `cognition::eval` already deserializes — so the adapter is a per-line `serde_json::from_str`. This also exercises the trait's NO-DOWNLOAD branch (`dataset() == None`): a benchmark small enough to bundle needs no fetch; only the big ones (SWE-bench) do. Pure `parse_humaneval_rs` (line-by-line deserialize, honors `limit`, skips blanks, FAILS LOUD with the offending line number rather than silently dropping a task and inflating the pass rate) is unit-tested without the filesystem. Validated: compiles (--features metal,accelerate); `parse_maps_rows_to_evaltasks_honors_limit_and_fails_loud` + `adapter_identity_and_no_download` green. Next rail: the `benchmark/run` DynCommand (resolve adapter → tasks → agent/solve → grade → scorecard, grid-transparent) so this scores a model on any node — incl. BigMama's live Kimi-Linear-48B CUDA lane on :58057. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(memory): MemoryRecord (origin_node, origin_seq) — the RAID replication-provenance seam for Persona-RAID (#2056, co-designed w/ BigMama) Two additive fields on MemoryRecord, the target BigMama's Persona-RAID slice-2 receiver stamps on replay: - `origin_node: Option<String>` — node that ORIGINALLY admitted the record (None = local/lived) - `origin_seq: Option<u64>` — monotonic per-(persona, origin_node) admit seq, the newest-wins replay key (None = pre-replication) The KEY invariant (my review edge, now the agreed shape): replication is an ORTHOGONAL axis, NOT a new experience kind. `memory_type` (lived vs `shared-by`) is untouched — a replicated record keeps its experience (a replayed lived memory stays lived; a shared-by lesson stays taught) and merely gains (origin_node, origin_seq) as auditable/replayable metadata. So recall needs zero changes and audit gets everything. Both `#[serde(default)]` = zero migration for existing rows; every current construction site is a local admit → (None, None), semantically exact. ts-rs regenerated: `MemoryRecord.ts` gains `origin_node?: string` + `origin_seq?: number` (number not bigint, per the #120 drift rule). Validated: continuum-core compiles (--features metal,accelerate); memory::types tests green. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(benchmark): wire BenchmarkAdapter registry into benchmark/run — inventory self-registration, catalog-then-adapter resolution (#123) Converges the two benchmark systems instead of forking a third. The static known_benchmarks() catalog keeps its proven, DEPLOY-SAFE embedded-gym path for resident benchmarks (resolve_gym finds the gym even without a repo checkout). The BenchmarkAdapter trait becomes the EXTENSION seam for benchmarks the catalog can't express — downloadable / custom-graded ones (Terminal-Bench, SWE-bench) now land as pure adapters with zero change to benchmark/run. - benchmark/run resolves catalog FIRST (name it knows → embedded gym), else the adapter registry (benchmark::get), else fail loud listing BOTH sets. A downloadable adapter (dataset() = Some) fails loud 'download not wired yet' rather than silently scoring empty; resident adapters (dataset() = None, e.g. humaneval-rs) run today. Delegates to the ONE grader (cognition/eval) exactly as before — never reimplements grading. - Adapters self-register via inventory (the SAME mechanism commands use), so a builtin needs NO boot hook and NO central list (the dynamic-discovery contract). get()/names() fold the link-time inventory set in over runtime registrations. - HumanEvalRsAdapter submits itself; new test pins that benchmark::get('humaneval-rs') resolves with no boot hook. 19 benchmark tests green; 0 errors. This makes rail 1+2 of the adapter framework LIVE on the grid-transparent benchmark/run command, ready for the Terminal-Bench ContinuumAgent adapter (outlier B) to slot in. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(boot): macOS core boot — bash-3.2 manifest gate + rt_handle.spawn off-runtime panic (#194) TWO regressions that made the macOS core un-bootable since the last long-running core died (glass-boxed live 2026-07-28; nobody could reboot on macOS): 1) start-server.sh sourced generated/manifest.macos.sh (bash-4 `declare -A`) under `set -e`; macOS ships bash 3.2, so the source aborted the whole boot before cargo ran. Regression from #2046 'serve on Windows' regenerating the manifest with associative arrays. Fix: only source the bash-4 manifest on bash 4+ (it solely feeds the Windows/CUDA runtime-PATH augmentation, whose own guard already tolerates absence). 2) ipc/mod.rs:1704 used bare `tokio::spawn` in the SYNC boot region (after the rt_handle.enter() guard drops) → 'there is no reactor running' panic → the IPC listener thread died → socket never bound → whole core a zombie. Regression from #2051's AircInterceptor block; every other spawn in the fn already uses `rt_handle.spawn`. Only reached when airc deps are present, so it bricked boot on every airc-configured host. Fix: rt_handle.spawn, matching the siblings. Verified: core boots to socket-live + answering commands in 60s; personas resume from disk and respond in live chat (Anwen answered a direct question with memory recall). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(boot+ui): macOS core boots + ONE automatic door into the positron interface (#194/#29) Two boot regressions that made the macOS core un-bootable since the last long-running core died, plus the missing automatic entry into the interface (you can't ship a beta a user can't open). BOOT (both verified — core now reaches socket-live in ~60s, personas resume + answer live chat): 1. start-server.sh sourced the bash-4 `declare -A` manifest under `set -e` → macOS bash 3.2 aborted the whole boot before cargo ran (regression from #2046). Gate the source on bash 4+. 2. ipc/mod.rs:1704 bare `tokio::spawn` in the sync boot region (after rt_handle.enter() dropped) → 'no reactor running' panic killed the IPC listener → socket never bound → zombie core (regression from #2051). Use rt_handle.spawn like every sibling. UI DOOR (#29): nothing tied the built positron web client to the running core, so finding 'how do I open the interface' required archaeology — exactly how a user (and an agent) gets lost. - New tools/scripts/open-ui.sh + `npm run ui`: resolves the core WS (8974) + call/video WS (8790) + a stable identity, ALWAYS rebuilds apps/web from current source (a stale dist renders an old shell — the 'interface looks lost' trap, glass-boxed today: a Jul-18 dist showed a bare chat view, not the current positron HUD), serves it, opens the browser with everything pre-wired. Verified live in headless Chrome: the full positron HUD (SYSTEM CPU/MEM/GPU sparkline, NODES, genome-paging tiles per persona, Go-live, rooms, live persona cognition) renders against the live core. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(live): auto-start the LiveKit avatar rail with the core (server + bridge sidecar) The persona's talking avatar is Bevy-rendered and published to a LiveKit room via the livekit-bridge sidecar; the browser's 'Go live' subscribes to that room. But NEITHER the SFU nor the bridge was started by `continuum start` — glass-boxed 2026-07-28 by joining the call plane headless: LiveKit :7880 was DOWN → get_or_create_agent fails → no avatar video pump ever runs, and clients only ever saw the native call_server's test-pattern default. The avatar was un-launchable without manual, undocumented steps (start livekit-server, build + start the bridge) — a beta can't ship a 'Go live' button that needs hidden setup. start-server.sh now runs start_livekit_rail() before the core, idempotently + NON-FATALLY: 1. livekit-server --dev on :7880 (dev creds devkey/secret = the bridge defaults) if not already up; warn+skip if the binary isn't installed (core still boots, only live A/V off). 2. build (release, once — links webrtc-sys) + start the livekit-bridge sidecar on its unix socket BEFORE the core, so the core's bridge_client finds the socket at boot. A missing/failed rail never blocks the core (chat/cognition/serving unaffected). system-stop.sh gets symmetric teardown of the bridge (server teardown already existed). Verified: syntax clean; idempotent against an already-running rail (both start steps skip when :7880 is up + the bridge is running). The rail itself is proven live this session — livekit-server + bridge up, core connected, an STT participant joined the LiveKit room. Follow-up (functional, not automation): the per-persona avatar VIDEO agent (get_or_create_agent + spawn_avatar_video_pump) still doesn't publish — only the STT listener joins the room. Next. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(live): tee avatar frames into the native call plane — everyone sees the real face (#193/#172) The avatar published to LiveKit, the bridge received it (640x360), but the native call plane (call_server WS 8790) that BOTH the positron web client AND the glass-box harness read still emitted its own 160x120 SMPTE test pattern. The real avatar was stranded on a rail no native viewer subscribed to. Convergence (render once, two sinks): the single Bevy slot the avatar pump already allocates now feeds BOTH LiveKit and the native plane. Per frame the pump tees the same RGBA into CallManager::push_avatar_frame, encoded in the exact [VideoFrameHeader][pixels] contract native clients decode, labeled with the persona's uuid. No second Bevy slot, no parallel renderer. - call_server.rs: push_avatar_frame (new seam) + retire the auto-start test pattern to an opt-in debug affordance (CONTINUUM_CALL_TEST_PATTERN=1), honoring the TODO that sat on the auto-start block since real sources were 'not yet connected'. - video_pump.rs: tee each frame (stable source Handle + monotonic seq/clock) alongside the LiveKit publish. - modules/live.rs + ipc/mod.rs: thread the native CallManager through VoiceState to the register-session pump spawn. - example: standalone CallManager (tee is a no-op there). Live-verified on the native plane after deploy: 640x360 real avatar (Asha's VRM, not the test pattern), 13.5 fps wall / 13.3 median (tracking the 15fps Bevy target), inter-frame jitter min 56.8 / median 75.4 / max 86.4 ms, 0 dropped/out-of-order frames, sole sender = Asha's uuid. Random-frame spot-check shows her real face, live-animating. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(voice): one canonical model root — kill the CWD-relative path bug that silently broke every local TTS/STT (#195) Root cause (glass-boxed this session): the workers→core/tools restructure moved the runtime model download root to `tools/models/` (gitignored — see .gitignore's own note), but every audio adapter kept stale, CWD-relative `models/…` path constants. When the core runs from the repo root (its normal CWD), `models/piper/…` pointed at the *tracked* avatar dir, not the voice models in `tools/models/piper/…` — so Edge returned empty, and Piper / Kokoro / Moonshine / Whisper all reported 'model not found'. Every local voice model was silently dead. Kokoro even mutated the process CWD (`set_jtag_cwd`) to paper over it. Proper fix — single source of truth, absolute, CWD-independent: - New `live/audio/model_root.rs`: `voice_model_root()` / `voice_model_path()`. Resolves `CONTINUUM_MODELS_DIR` (config.env single-owner, then process-env boot injection), then `tools/models`/`models` CWD candidates, then `~/.continuum/models`. - Routed EVERY voice adapter through it — piper, kokoro (15 sites), orpheus, moonshine, whisper, pocket-tts, silero VAD, tts_service. No more scattered `models/…` literals, no per-adapter candidate ladders, no `set_current_dir`. - start-server.sh exports `CONTINUUM_MODELS_DIR=$REPO_ROOT/tools/models` before exec so the binary resolves models from any CWD. Live-verified after deploy: fresh core has CONTINUUM_MODELS_DIR injected, no symlink present, `voice/synthesize-handle --adapter piper` resolves the model and synthesizes (was 'model not found' before). (The short synth duration is a separate phonemizer/espeak-data issue, not this.) Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(live): tee persona voice into the native call plane — client hears her, not hold music (#193 audio convergence) Sibling of the avatar-video tee. A persona speaks via LiveKit (speak_in_call → bridge), but native clients (positron web, glass-box harness) read the native mixer — which, with only a lone listener, plays HOLD MUSIC. So a native viewer SAW her avatar but HEARD hold music: her voice was stranded on the LiveKit rail. Render once, two sinks: speak_in_call now returns the synthesized PCM, and the voice/speak-in-call handler tees the SAME samples into the native plane via CallManager::push_persona_audio — which registers the persona as a virtual AI participant in the call's mixer (the mixer already has an AI ring buffer built for 'dump a whole TTS utterance, drain frame-by-frame') and her presence stops the lonely-listener hold-music fill. Self-heals across call recreation via a stable per-(call,persona) handle. Live-verified: with Asha registered + speaking (kokoro), a native-plane capture shows audio sender = her uuid (90e758b2) for 4.58s, matching the 4.55s utterance — was 100% 'hold-mus' before. Video (640x360 avatar) + audio (her voice) now both reach the client: e2e see+hear on the native plane. Also this session: espeak-ng installed so kokoro TTS produces real full-length speech (piper's Rust phonemizer truncates — kokoro is the good local path). Follow-ups: hold-music still fills her SILENCE between utterances (minor polish — suppress when a persona is present); STT/audio-in blocked on moonshine ONNX format mismatch; livekit-bridge needs supervision (dies on every core restart). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(positron): durable local state + self-healing feed — inherent to the SDK, adapter-driven (the Twitter model) Glass-boxed 2026-07-29: routine core reboots orphaned every open tab — the state feed died once, the shell silently degraded to the bare chat view, and four months of positron HUD looked 'lost' until a manual refresh. Per Joel: this is normal app craft (cache-first boot, live reconcile, visible reconnect) and it must be POSITRON architecture — from the thin-client SDK out, adapter-driven local state, never an app-level hack or a localStorage bodge. SDK (sdk/typescript — the contract every platform SDK mirrors): - StateStorage.ts: StateStorageAdapter — the ONE local-durability seam. The whole renderable state is latest-envelope-per-kind (each envelope is a full snapshot), so the cache is tiny + complete. Adapters: IndexedDbStateStorage (browser), MemoryStateStorage (tests/ephemeral + conformance reference); swift/kotlin/ flutter implement the same interface over native stores. Cache is an accelerant, never a dependency (storage failure -> live-only, logged once). - StateConnection: durability + resilience are now INHERENT — - hydrate-first connect(): cached envelopes paint before the network is touched (instant last-known UI, even against a dead core), status 'cached'; - write-through: every live envelope replaces its kind's row (fire-and-forget); - auto-reconnect (default ON): capped 1s->10s ladder using the wire's existing last_seen replay; a failed FIRST connect rides the same ladder (core booting); - onStatus surface (cached/connecting/live/reconnecting/closed): recovery is LOUD — reconnecting stays visible while the core is away, so self-heal can never mask a dead core; close() stops the ladder (intentional shutdown); - reconnect:false preserves the legacy one-shot fail-loud contract for probes. - Fail-loud config errors (no registered kinds) never enter the retry ladder. App (apps/web): shrinks to what an app should be — pass IndexedDbStateStorage, render envelopes + ONE status chip. Zero resilience logic app-side. Tests: 97/97 SDK suite green; 4 new pins (default-resolve+reconnecting status, hydrate-before-open, write-through, drop->reconnect->resubscribe w/ last_seen). Live-verified: rebuilt app renders the full positron HUD through the new feed. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(mobile): positron durable-state contract on Android + iOS — Dart mirror of the SDK, tested One Dart implementation (byte-identical on both OSes) mirroring sdk/typescript's inherent resilience contract, per [[positron-durable-state-is-sdk-inherent-adapter-driven]]: - lib/positron_state.dart: StateEnvelope + StateStorageAdapter (the ONE seam) with MemoryStateStorage (conformance reference) and FileStateStorage (dart:io JSON — durable on Android + iOS app dirs, ZERO plugin deps, corrupt-tolerant, cache is an accelerant never a dependency); StateConnection with hydrate-first connect, write-through, capped 1s->10s reconnect ladder w/ last_seen replay, loud status (cached/connecting/live/reconnecting/closed), reconnect:false one-shot fail-loud. Injectable StateSocketFactory — tests drive the lifecycle without a core. - lib/live.dart: LiveConnection now RIDES the contract (was a one-shot connect that died silently — the same disease the web had). App keeps only the ChatViewState->MobileScreen mapping + optional status/cacheDir wiring. - test/positron_state_test.dart: 5 pins mirroring the TS spec — hydrate-before- socket, write-through, drop->reconnect+last_seen, fail-loud vs self-heal, FileStateStorage conformance (round-trip, replace-by-kind, corrupt-tolerant). - ios/: runner scaffolded (flutter create --platforms=ios). Verified: flutter test 6/6 green, flutter analyze clean. Platform note: the Dart contract tests prove BOTH OSes (same code); Android SDK present for APK builds; iOS device/simulator builds need full Xcode on this machine (CLI tools only). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): tab strip renders from ONE open tab — the focused room IS a tab Glass-boxed live: the strip + CSS + nav plumbing all shipped (38b60caae), but the render gate was cells.length > 1 while the node's room-set fold knows exactly one room (cambriantech) — so the whole bar hid and the interface read as 'tabs don't exist'. One open activity is still an open tab; the strip now draws from 1 up, and fills out as the room set grows. Substrate follow-up (separate card): seed spawn_room_set_fold from airc's subscribed-room registry (durable membership), not just observed traffic — today a room with no traffic since core boot never becomes a tab. Verified live: playwright screenshot + widget-state dump (tabBarTabCount 1), web tests 21/21, typecheck clean. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(web): Discord shell geometry — full-height rails, center-scoped tabs/header/compose The reference is the Discord/VS Code shell: columns run window-top to window-bottom; no chrome bar spans the whole width. The left rail now opens with the continuon (the server-header slot), the tab strip sits centrally over the content column only, the room header/transcript/composer all live inside the center column, and the ROOM context rail runs full height. Mechanically: RenderTarget.workspace grows an optional WorkspaceChrome<Out> slot (patterns) — the compose bar stays HOST-owned (input state + send handler) but SHELL-placed (chrome.centerFooter), so the widget no longer appends full-width rows after the surface. litTarget nests tabs + header + what + footer in a .center flex column inside the same .panels grid the universe skins and mobile rules already key off. Also: /// <reference lib="dom" /> on sdk StateStorage.ts — the IndexedDB adapter's DOM types broke typecheck for non-browser consumers (tui) since e4fedac8f; scoped ambient types fix every consumer without forcing lib:dom. Verified live: playwright screenshot (full-height rails, central tab, center compose), web 21/21 + chat-view 56/56 + patterns 5/5, typecheck clean on web/patterns/tui. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(chat): beforeMessageId scroll-back cursor on chat/poll — history pages out of durable storage The Twitter endless-scroll's storage half: chat/poll gains the backward cursor. beforeMessageId resolves the anchor's stored timestamp (same lookup as afterMessageId, now ONE anchor_timestamp helper), filters $lt, queries DESC, and normalizes chronological — the limit messages immediately preceding the anchor, straight from the durable chat_messages store. The two cursors are mutually exclusive and reject loud BEFORE any storage round-trip; the result echoes the cursor so the caller's paging loop just keeps passing the oldest id it holds. Client loop (web/mobile/tui alike): render the live 50-row tail, then scroll-back = chat/poll {roomId, beforeMessageId: oldest-on-screen} — prepend, repeat until an empty page says history is exhausted. The render-side wiring is the follow-up slice; the trigger idiom stays per-target (IntersectionObserver on web, ScrollController on Flutter), the cursor mechanics live here, once. Tests: before-anchor $lt+DESC+chronological, both-cursors reject (pinned to fail before data/query), absent-not-null echo. 32/32 chat module green; ts-rs bindings regenerated. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(sdk): export the drifted wire types — 64 registered-command params/results never emitted ts-rs bindings The pre-existing drift that has blocked the TypeScript SDK re-emit (and forced nav/select onto the raw-wire path): TS-deriving wire types across commands/{benchmark,help,tool}, cognition, runtime, and modules lacked #[ts(export, export_to)] — the emit's vendoring walks the registry and fails loud on the first missing binding. Swept every one onto the same protocol/typescript/<module>/ convention its file siblings use. export_bindings: 1236 green (was 1160). Remaining emit blocker (separate card): bare #[ts(export)] types land in the crate-local bindings/ dir while the vendorer expects protocol root. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(web): Twitter endless scroll — scroll-back pages durable history into the transcript The render half of the beforeMessageId cursor (02d5c7701): - chat-view: historyRowsFromPoll — one chat/poll storage page (raw entities: {content:{text}, ISO timestamp, no sender name}) onto the SAME MessageRowVM rows the live tail renders; roster-resolved identity, short-id + metadata.source fallback, live-tail dedup, malformed-row skip. 3 specs. - widget: scroll-near-top pages one older window and prepends with the viewport anchored (scrollTop compensated); rows that slide OUT of the live 50-row window RETIRE onto the buffer so no gap opens; buffer clears on room switch; an empty page latches exhausted. - scroll-yank fix (reported live): pin-to-bottom now only fires when the reader was AT the live edge (_wasNearBottom, measured pre-render) — a scrolled-back reader is never forced down by a new message. - host: chat/poll over the same raw-wire seam as nav/select (the typed CommandMap re-emit is still blocked; path documented in-code). - sdk drift: corrected the swept export_to paths to the proven ../../../protocol/typescript/ convention (benchmark/help/tool/agent); strays under core/protocol removed; export_bindings 1172 green. Live activation needs the rebuilt core (beforeMessageId lands on the next core restart — held deliberately: a restart replays the room log until #242 consumer cursors land). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): transcript times in the VIEWER's timezone + genome panel goes two rows of four Time: formatTimeOfDay was hardcoded UTC ('4:36' at Joel's 11:36 PM — wrong for every human off-meridian). Now local getHours/getMinutes; determinism moves to the test scripts (TZ=UTC pinned in chat-view + web package.json) instead of being baked into the product. Genome: 8 slots in a 4×2 grid (was one row of 4) — the loadout is heading past four as skills go per-domain and expert granularity (#226) lands; slots stay honest-dark until genes page in, top-8 lit with overflow named in the tooltip. Tests 59+21 green, typecheck clean, rebuilt. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): genome-click anchor re-lands after layout settles — the card sticks at the pane top Verified with a headless click receipt: the genome block DOES open that citizen's persona-home tab anchored at the #genome card (element navigation, card 95844639), but the single scrollIntoView fired before avatar-image decode / meter layout settled — the card drifted ~400px down-pane, reading as 'nothing happened'. Two follow-up rAF re-lands pin it. Harness note: headless clicks were steering the LIVE view — the harness shared Joel's ?me= citizen (nav focus is per-citizen, server-side). Minted a dedicated harness citizen (~/.continuum/ui-test-id); future interaction tests use it, never the operator's scope. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(nav+web): persona selects OPEN durable tabs (never swap) + sender names link to profiles + history-trigger guards Three live reports from Joel, one slice: 1. ONE shape-shifting persona tab: the nav reader derived the persona tab from the single current focus — selecting a second persona REPLACED the first. NavFocus now keeps the citizen's open non-room activity SET (activity == room == tab: a persona select OPENS a durable tab, a second select adds a SECOND tab) + a close() for the future nav/close verb. Reader surfaces every open activity. 9 nav tests green. (Core-side — live at the next core restart.) 2. 'History load failed: chat/poll rejected: unknown error' on persona click: two stacked bugs — the persona home OPENS at scrollTop 0 which tripped the transcript's near-top history trigger (now guarded off all non-transcript faces), and the bare-wire success check treated every response as a rejection (no success field on the raw path — only an explicit false is an in-band rejection; failures reject the promise). 3. Sender names in the transcript now open that citizen's profile — the SAME composed roster LISTING_SELECT the tiles fire, one nav verb, no parallel route. Keyboard-accessible, element-link affordance. Web 21/21, typecheck clean, rebuilt. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(nav+airc): tab close wired end-to-end + consumer cursor kills the reboot replay (#242) Tab close (Joel: 'tab close not wired yet' + 'super small hitbox'): - core: nav/close verb — removes one open activity from the citizen's tab set (NavFocus::close), clears focus if it was current, publishes nav:changed. Registered + in NavModule::commands(). 12 nav tests green. - web: the × is LIVE on non-room tabs (rooms are membership, not tab state) — composed NAV_TAB_CLOSE → widget → injected nav/close over the raw-wire seam; substrate-truth removal, no optimistic local state. Hitbox grown to ~22px square (padding + negative margin — glyph stays compact, target meets the pointer minimum). Consumer cursor (#242 — 'chat still loading literally every message in existence when you reboot', bitten 3× today): the attach stream asked for AttachStart::FromTranscriptStart on EVERY attach. Now a per-channel IpcCursor watermark persists under ~/.continuum/state/; attach resumes AttachStart::After(cursor) (gap only, no seam duplicates), advances to the daemon's RoomTip after attach, and persists AttachCursorAdvanced frames. Only the first-ever attach (no watermark) seeds from transcript start — once per state dir, never per reboot. Documented trade-off: a hard crash loses a slice of LIVE perception, never storage — the durable transcript + scroll-back serve history; replaying the log into every persona's mind each reboot was the worse failure. Live at the next core restart (which will be the LAST replaying one). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(web): durable-store hydration + Activities rename + rooms-only facet default Post-cursor reality check (Joel: 'No messages yet — say hello' after the reboot): the live projection now honestly starts AFTER the consumer watermark, so a rebooted room painted empty — the data was never gone (the durable transcript held every message; chat/poll served it), the window just never pulled it. Fix: a sparse first snapshot (<10 rows) auto-pages the LATEST stored window via the anchor-less chat/poll and prepends — the Twitter model complete: durable tail + live wire, one transcript. Verified live: 51 rendered rows from 1 wire message. Also per Joel: - the left rail's Rooms widget is now titled ACTIVITIES (they are rooms; the widget lists activities) — title flows from the projection. - the facet defaults to [Rooms]: open persona/content tabs are real activities but reached via their own controls (roster tiles, the tab strip) — the 'rooms' facet now excludes persona/content groups, and All remains one click away. Web 21/21 + chat-view 59/59, typecheck clean, rebuilt. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): 'Send failed' on every SUCCESSFUL send — only explicit success:false is a rejection Same response-shape bug as the history handler, now on the send path: chat/send's success payload is {eventId, messageId} with NO success field, so `!result.success` threw 'chat/send rejected: unknown error' while the message actually landed on the wire (glass-boxed live — Joel's 'How are you, I am Joel' arrived as peer-a5ded599 despite the strip). Failures reject in the transport; in-band rejection = explicit false. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(positron): projection hydrates from the durable transcript — the SUBSTRATE owns room fullness, never the renderer Joel's charge, accepted: 'why was the room history cleared? that's invalid positron — are you coding just regular lit?' The old full-backlog attach was secretly the chat projection's ONLY hydration mechanism; killing the replay (#242) starved the accumulator, and I patched it in the WIDGET — app-level durable-state logic, the inverted shape. Correct shape, now built: positron_source::spawn takes a durable seed (executor + bootstrap room). Before folding live events the projector hydrates its accumulator with the room's stored tail (the same chat_messages query chat/poll serves), pushed through the SAME classify path as wire events — one message semantics, two sources. Data-module warm-up is retried; a seed that never comes degrades to wire-fed-only, logged loud. Every client gets a full room with zero client logic. Also: WebSocketTransport discriminates push frames from replies — the ingress fans state envelopes to command-only sockets, which spammed 'reply for unknown correlation id undefined' 22× in Joel's console while every command actually worked. id-less frames are pushes, ignored; the server-side fan-out fix is a follow-up card. positron_source 16/16, sdk + web green. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * revert(airc): consumer cursor OFF until it ships as one unit with perception hydration (#249) The cursor (#242) starved MORE than the UI window: glass-boxed live — Asha's turn prompt was a system prompt + ONE EMPTY user message, and Benchy answered Joel's direct question with 'you haven't provided any context'. The perception substrate (channel digest) drinks from the same cursored bus, so personas were left conversationally blindfolded: minds intact (engrams verified — Asha 11,667 rows, Atlas 10,035, writes minutes old), sensory feed empty. The greeting loop was the honest response to an empty world. Rollback: attach returns to FromTranscriptStart (full replay — the known, working behavior), watermark files deleted. The projection's durable seed (44a8b2606) stays — it is correct independent of the cursor. The cursor relands ONLY together with #249 (perception-tail hydration from durable storage), tested against a live persona turn BEFORE deploy: the lesson is that the replay was load-bearing for TWO consumers, and I verified only one. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): auto-scroll tracks READER INTENT, not bottom-distance — the position heuristic silently killed pin-to-bottom Joel: 'you designed it dumb, we did this before — you have to keep track of whether they scrolled up themselves.' Correct. The _wasNearBottom threshold died the moment a tall message grew the bottom-distance past 150px — after which every new message grew it further and auto-scroll never returned. Replaced with intent: a USER scroll away from the bottom parks auto-scroll; returning to the bottom re-arms it; programmatic pin-to-bottom scrolls are guarded out (_autoScrolling) so they never read as intent. Stream deltas (_typing) now also pin, so the token rail stays in view. Web 21/21, typecheck clean, rebuilt — reload to pick up. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(web): code is SHOWN, not hidden — line-numbered open-by-default code cards + fence-aware digest Joel: 'the code should have line numbers and show where its placed into code context like you do… i feel like for BOTH persona and humans we show it unless its huge.' Three fixes, one policy (show the start, expand for the rest, same rule at every density): 1. Renderer (parts.ts): blocks ≤40 lines render fully open (the old n<=3 collapse hid a 4-line snippet behind a '▸ RUST' bar); bigger blocks show the first 25 lines with a '+K more lines' expander whose gutter numbering continues seamlessly. Every block gets a line-number gutter. Templates whitespace-TIGHT — the pretty-printed newlines inside the pre-wrap bubble were the giant-empty-padding bug. 2. Digest (messageDigest.ts): fence-aware. Flood bounds now count each fenced block as ONE projected line (the code card self-truncates, so code can't flood pixels), and the head cut treats fences as atomic — live bug: the digest cut Claude's wordstats reply MID-FENCE and the dangling ``` rendered as literal backtick noise. 3. Specs: 3 new regressions (never-split-a-fence, whole-fence-in-head, unterminated fence) — chat-view 62/62, web 21/21, verified live in cambriantech (Asha's 2-liner open+numbered; Claude's 16-line card). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): retire the typing bubble on the settled message, not only on the done delta The stream-end contract had ONE signal (delta.done) and no fallback: a dropped/raced done flag left the cursor blinking forever over a message that had already landed (live 2026-07-30: Atlas + Benchy both looked hung after their turns settled). The settled post IS the ground truth that the stream ended — willUpdate now diffs new-arrival senders on every state change and retires their bubbles. done still works for the common path; this makes the stale-cursor state unreachable. Act pauses mid-turn still show a cursor (real work, no visual vocabulary yet) — that rendering is #254/#253 core-side work. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): FAIL LOUD on a starved prompt — never deliberate on a blank mind The 2026-07-30 outage mechanism, made impossible to miss: when window arithmetic (reserve + tool schemas + framing) squeezed msg_budget to ~0, the fitter's last-resort arm emitted ONE EMPTY user message and every persona greeting-looped for an hour while looking alive. Two guards now: 1. Fitter (delib.prompt.empty): a trimmed tail that comes back EMPTY is refused with an error probe carrying the budget arithmetic — never an empty ChatMessage. 2. contribute() (delib.prompt.starved): a view whose conversation is all empty while the room HAS turns skips the turn with an error probe — the room's messages stay queued, the next tick re-perceives; blind deliberation is never an option. The two verdict tests that broke were silently EXERCISING the bug path — ctor-default window, framing starved msg_budget to 0, scripted adapter masked the blank prompt. They now run at a real 32k window and test what they claim. 21/21 llm_deliberation green. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(vitals): cognition compass AFTERGLOW — 6/s decay so the mind's glow is visible between turns + lowercase brand title DOM probe (.gymtool/vitals.mts, the new TS hot-path instrument) caught the wiring working — Anwen mid-turn: Reason 19, Recall 80, Act 16 — for exactly ONE 2s radiator sample before the 40/s decay blacked it out. With turns minutes apart the compass read as permanently dead (Joel: 'cognition not wired into the diamond' — it WAS wired; it was invisible). Decay 40/s → 6/s: a full pulse now eases to dark over ~17s — a readable afterglow of what the mind just did, still honestly dark at rest well inside a minute. Decay test re-pinned to the new contract (82 at 3s, 0 by 20s). Also: brand is always lowercase — <title>continuum</title>. Findings logged, not changed here: QUE pegged at 100 on every row is HONEST — staged digest unread never drains (personas never advance bookmarks, #43's territory); genome slots dark = honestly no genes paged in. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(airc): RE-LAND consumer cursor on inbound attach — resume from watermark, never replay the whole transcript (#242, exonerated) Joel on tonight's boot storm: 'why would it replay the whole chat start to finish? its insane.' It replayed because the bus-fed transcript writer needed boot-time replay to fill the offline window — full replay was load-bearing by accident. The cursor (attach After(watermark), persisted per room) delivers exactly the missed window: no storm, no holes. This is a byte-identical re-land of d4dbc9982, which was reverted during the 2026-07-30 outage on the theory it starved persona perception. The deep trace EXONERATED it: perception pulls the daemon's durable tail every turn and never consumed the attach replay; the blank minds were the spawn-pinned window budget bug — since fixed (live-window reconcile) and guarded loud (delib.prompt.starved / delib.prompt.empty error probes). Verification protocol this time, per the incident doctrine: live persona capture non-empty + zero starved probes + quiet boot + transcript continuity, BEFORE calling it done. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(positron): renderer frames coalesce at 10Hz + 100-message window — bursts become beats, not storms Joel: 'if i were me, i would see like the last 100 messages, and scroll for more — positron ought to make this easy.' Two changes, one contract: 1. Subscribed renderers no longer forward EVERY revision (Unlimited). State kinds are latest-wins snapshots on a watch channel, so intermediate revisions are legally skippable — RENDERER_HZ=10 sends the first change instantly (lone message: zero added latency) and coalesces bursts to at-worst 100ms behind. The boot-replay load storm (thousands of folds → thousands of socket frames raining into the tab) becomes ≤10 latest-state frames/sec. Token streams ride the separate stream rail, untouched. 2. Snapshot window 50 → 100 (MAX_MESSAGES_PER_SNAPSHOT), seed query bound to the same constant — one source for the window size. Scroll-back keeps paging older history from the durable store. With the attach cursor (f8e4ae6cc) this closes the storm class: resume from watermark delivers only the missed window, and whatever bursts do occur render as a handful of coalesced frames. positron 105/105+5/5, core positron_source 16/16. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(live): turn-start beacon → 'responding…' under the last message + dynamic lowercase title + continuon favicon Joel, during the dead-looking-interface scare (four minds mid-turn, zero pixels moving): 'in other systems it says XYZ is responding — we could use that right below the last chat item.' Three pieces: 1. Core: the token forwarder emits ONE empty-token START BEACON the moment generation dispatches — before prefill, which on a cold lane runs minutes. No wire change: an entry with no text yet IS the signal. The done flush retires it even on a speechless settle. 2. Web: a typing entry with empty text renders 'responding…' instead of a bare cursor (the bare cursor was the hang-look); text flowing keeps the live tail + cursor. 3. Web: document.title mirrors the current activity — 'continuum — cambriantech' (the #252 short-title rule, brand always lowercase; the static <title> edit finally ships too — it was edited but never rebuilt into dist, my miss). Favicon: the continuon orb becomes the subject (it IS the fourth-wall being), ring as threshold. Web 21/21 + rebuilt; core cargo check clean. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(web): '(xyz, abc) is responding…' — ONE grey line between the last message and the compose box Joel's exact spec, third iteration tonight: not a transcript bubble — the Discord-convention grey status line pinned above the composer, one line max (nowrap + ellipsis), parenthesized dynamic name list that updates as turns start and settle. Driven by the stream map: the #254 start beacon adds a persona the moment their turn dispatches — minutes before the first token on a cold lane. Beacon-only entries (no text yet) no longer render an empty bubble; streams with real tokens keep the live bubble as before. Web 21/21, rebuilt — refresh to pick up. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): STOP KILLING LIVE STREAMS — retire a typing bubble only on ITS OWN settle, and never hide a consecutive speaker's stream The streaming regression Joel caught ('did you just totally remove it'): the stale-cursor fix retired a persona's bubble on ANY arrival from them. With settles landing minutes late and reboot-echo dups landing constantly, delayed OLD messages executed LIVE bubbles mid-stream — streaming was functionally deleted. Retire now requires the arrived content to CONTAIN the streamed tail (it IS the settle); beacon-only entries are never retired by arrivals. Also removed the last-sender bubble suppression — a persona speaking twice in a row is normal, and the skip hid exactly the streams being watched for. done-flag retirement unchanged. Web 21/21, rebuilt — ONE refresh. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): '(X) is responding…' clears when the answer lands — beacon-only entries retire on any arrival from their sender Joel, live: 'it didnt go away once responded.' Some settles never stream rail tokens, so the entry stayed beacon-only and its only exit was a done flush that never came. Beacon-only entries now retire on ANY arrival from the sender (a still-running turn's next token recreates the entry instantly — nothing lost); text-bearing entries keep the own-settle content match so delayed old messages can't kill live streams. Line lifetime == inference in flight: appears at generation dispatch, clears at settle. Web 21/21, rebuilt. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(web): responding line = the PROMISE phase only — a name drops the moment their words visibly stream Joel: 'if it is responding stop showing it, for that user — it's when we are sure they're gonna respond, then you can show it.' The grey line now lists only beacon-only entries (inference dispatched, nothing visible yet); once tokens stream into a persona's bubble their name leaves the line. Complete lifecycle: dispatch → '(X) is responding…' → words stream in the bubble → settle lands → everything clears. Web 21/21, rebuilt — refresh. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(web): dormant minds dim — roster rows recede when every cognition pulse is dark, brighten on any pulse/stream Joel: 'dim the entire row slightly in the user list.' A row with vitals wired but zero across focus/reason/recall/act/speaking is a resting mind: opacity 0.62 with a 0.9s ease, so waking is VISIBLE and the ~17s afterglow keeps recently-active minds bright — row brightness reads as recency of thought. Opacity-only (compositor-cheap); the dim treatment is the interim for #260's full presence lifecycle, where the universe/ theme layer owns the inactive look. Members without vitals (plain agents/humans) never dim on this signal. Web 21/21, rebuilt — refresh. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(tests): pin TZ=UTC in the four time-asserting specs — CI-deterministic on any runner PR #2057 review blocker: formatTimeOfDay became viewer-local (by design) but four specs still asserted fixed UTC HH:MM strings — red on any non-UTC runner. The formatter stays viewer-local; the specs pin process.env.TZ before imports. Proven under TZ=America/Chicago and TZ=Asia/Tokyo: chat-view 62/62, web 21/21. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(airc): close #261's SKIP hole — attach never pre-persists the room tip; the daemon's cursor heartbeat is the sole watermark writer Both PR #2057 review findings on the cursor re-land, fixed as one mechanism with airc 9390c32e8 (feat/attach-cursor-advance-heartbeat): 1. SKIP hole: the attach-time room_tip probe persisted a cursor for events not yet processed — a daemon Error frame or transport read error mid-backlog resumed PAST the tip, permanently skipping the unprocessed remainder from live perception. The probe is deleted. 2. Whole-session redelivery: the daemon's AttachCursorAdvanced now rides live streaming (throttled 1/s), so the existing persist arm — previously fed only once at the coalesce seam — advances the watermark continuously. Every advance points at an ALREADY DELIVERED event: resume is always at-or-before what this consumer processed. No skip, and the reboot redelivery window shrinks from the whole session to ≤1s of events. inbound_attach 8/8. Deploys with the rebuilt airc daemon binary; verification protocol: reboot twice, zero duplicate persona messages, watermark file advancing during live traffic. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * chore(airc): airc.cursor.advanced probe — every watermark advance gets a receipt The #261 verification found a silently-stale watermark with no way to distinguish 'heartbeat frames never arrived' from 'persist failed quietly' — the arm logged failures only. Glass-box: success needs receipts too. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): predictive [settled] fact + room-speech ring — name the echo BEFORE it is born (#264) Glass-boxed live 2026-07-30: after the conway task completed, the room spent 40+ minutes in a full-room chorus — one sentence emitted verbatim by all three personas in sequence (specimen on #16/#259). The existing repetition facts are retroactive: they fire the turn AFTER the echo, one turn too late to prevent it, and closure statements re-trigger peers because a closure is still a new message. The room had no rest state. Two pieces, both precedented: 1. inbound_restates_fact — the PREDICTIVE member of the repetition family: fires when the NEWEST inbound peer message restates something already said (older visible turn, her own-speech ring, or the room ring), rendering "[settled] X's newest message restates what has already been said here … silence (PASS) is a normal response" BEFORE she replies. Same near_identical_substantial geometry as every other repetition axis (one definition), registered in the perception_facts registry (probe + A/B toggle for free). 2. record_room_speech / recent_room_speech — the room-side sibling of the #148 own-speech ring, and the same starvation fix: with live workspace windows of 2-6 turns, the older copy of every restatement had already scrolled out (verified: 0 fires across an entire live chorus until the ring landed). Recorded ONCE per message at the airc inbound-attach projection seam; the fact drops exactly one byte-exact copy so a message never matches its own record while a genuine re-send still fires. Live receipts post-deploy: perception.fact id=inbound_restates fired=true on all four room personas (one organic fire on their own chorus before the controlled probe ran); [settled] rendered in prompt captures; first fact-bearing tick redirected one persona from echo to a tool call. Behavioral compliance is partial by design — the fact names the fork, the mind chooses; sticky silence (the #264 scheduler half) is the follow-up. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(presence): durable room directory — grid citizens are grey when unreachable, never gone (#258/#262) Joel 2026-07-30: "Why won't bigmama's persona ever show up? Feels like you guys don't understand the goals." The goal is ONE directory per grid with cumulative citizens — a client that is a window into the whole grid. The implementation conflated membership with presence: the roster was rebuilt every 2s from a 120-second live window, so any citizen silent for 2 minutes ceased to EXIST. BigMama's citizens (Kimi, Sahar) were perpetually unborn on this node whenever their flaky relay dropped — existence gated on a live transport session. Fix — membership is durable, presence is live: - Per-room directory persisted at ~/.continuum/state/room-directory-<room>.json: every RosterSlotView ever projected, folded on each emit, seeded at boot by ONE deep transcript scan (14d/4000 events) so members whose last event predates the live window exist from the first publish. Steady-state daemon load unchanged (the 2s poll keeps the shallow window). - Published roster = live read ∪ remembered members as `active: false` ghosts with stale liveness signals (availability/vitals) cleared — the interface never lies about liveness (#260). Client renders ghosts dimmed via the existing `.member.idle` path: zero wire change, zero client change. - Identity adopted once: a real display name never regresses to the provisional peer label on a card-less sighting. - Persistence is the loop's concern, not emit_once's — tests stay disk-free (the #7 isolation lesson). Verified live post-deploy: presence.directory.seeded remembered=8 — ALL grid citizens recovered from the daemon transcript including Kimi (e2f0e022), Sahar (df72dbf2), and BigMama's agent (ce8b9074) while their node's inbound relay is down; web roster renders 8/8. Their names stay provisional until their card publish crosses (#262, their side) — and will be adopted permanently the first time it ever does. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(identity): publish every persona's airc identity card at birth — no more info-devoid citizens (#262/#248) Joel 2026-07-30: "Neither my user, all her persona, and you have any bio info, which should come over airc… devoid of all info persona." He was right, and the miss was pure wiring: the card system existed COMPLETE on both sides for months — airc's set_local_identity_card persists + broadcasts to every subscribed room, whois renders name/pronouns/role/bio, role_template carries hand-authored bio_templates in each role's voice, and the durable PersonaCard at birth holds name/gender/pronouns/role — but not one continuum path ever called publish. Every persona attached as a bare display name. Fix, at the single birth path (birth_one, right where the durable card is already read for avatar/voice registration — wire identity coheres with presentation identity by construction): - name from the card; pronouns from her presentation spine (profile facet override wins); role tagged continuum-persona-<role>; bio from her role's authored bio_template ({name} substituted), profile "bio" facet overriding; cards minted before role threading get an honest generic bio instead of silence; continuum_persona_id in integrations for cross-system binding. - publish failure is a warn + next-boot retry, never a birth-killer; success fires persona.identity.published. Verified live: probes for all four personas; airc whois now returns identity: published with name + pronouns + role + bio fo…
joelteply
added a commit
that referenced
this pull request
Aug 2, 2026
…breaker fires even when window evidence scrolls out (#301) (#2110) Glass-boxed live 2026-08-02 (captures saved): Atlas's wake-intro was reproduced BYTE-FOR-BYTE by Benchy then Asha — identity claim included ("I'm Atlas" spoken by three different peers). Every layer of the existing machinery worked except one join: [repetition]/[pattern] facts rendered correctly in the copier's prompt (detection fine), and the ONE time the [anchor] escalation fired, her next turn broke the template (cure proven). But the escalation counters derive their runs from the RENDERED window, which the live context budget squeezes to 2-6 turns — so during an hours-long chain the older echo evidence had always scrolled out and the run read 1, one below PATTERN_FIRES_BEFORE_ANCHOR. The anchor that provably breaks these loops structurally could not fire. Same starvation the room-speech ring already cures for the inbound_restates fact; the service-loop detectors never got the ring. Fix: ring_echo_run — a pure counter over ring SNAPSHOTS (own-speech + room rings, boot-hydrated per #265) using the same containment geometry as the in-window detectors (shared echo_words tokenization, no drift). The LIVE message path and self-tick call append_ring_anchor_if_starved: when the ring-counted run reaches the threshold and the window-derived detectors pushed no [anchor], the SAME work_board_anchor is appended — one anchor per burst, whichever counter earns it, with a persona.pattern.ring_anchor probe. Eval/replay paths are untouched: build_workspace_turns' signature does not know rings exist (#59 isolation preserved — the reason window-derivation was chosen). Self-vouching subtlety pinned by test: the authorless room ring holds her own copy too, so exclusion is AT MOST ONE identical entry — the remaining identical copies ARE the photocopy evidence. Test builds the live specimen (Atlas intro, Benchy/Asha copies): 2 trailing photocopies count 2 (escalates), novel work counts 0, a lone original with no independent copies counts 0. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Fable 5 <[email protected]>
This was referenced Aug 6, 2026
Merged
joelteply
added a commit
that referenced
this pull request
Aug 8, 2026
…t read (#59) `tools/scripts/install.sh` opens with a box telling most users NOT to run it and to use the one-command installer instead: Windows: irm https://cambriantech.github.io/continuum/install.ps1 | iex Linux/macOS: curl -fsSL https://cambriantech.github.io/continuum/install.sh | bash Both 404. GitHub Pages is not published for this repo. Checked with an HTTP status rather than by reading the file, which is the only way this kind of defect is ever found: 404 9115B cambriantech.github.io/continuum/install.sh 404 9115B cambriantech.github.io/continuum/install.ps1 200 14246B raw.githubusercontent.com/CambrianTech/continuum/main/install.ps1 200 61674B raw.githubusercontent.com/CambrianTech/continuum/main/install.sh That 9115-byte body is GitHub's 404 HTML. The documented primary install path piped an error page into a shell. `curl -fsSL` fails on it and `irm` throws, so the user gets a confusing error rather than an execution — but they get NOTHING that installs, from the one command we point them at first. Repointed all three sites at the raw refs that actually serve, with the reason recorded inline so the next reader knows these were verified and does not "restore" the prettier github.io URLs. If Pages is ever published, change it back in both files AND verify with a status code. STILL OPEN, and it is Joel's call, not a code fix: `main` is 1568 commits behind canary. The raw URLs above serve a 2026-06-08 installer that predates the entire native Windows install work (canary's is 2026-07-25, #1982). So the documented path now REACHES a script instead of a 404, and that script is two months stale. There is no current release — main has been frozen while canary took 1568 commits. Same root as #57's 85 phantom Dependabot advisories: two open cards, one decision.
joelteply
added a commit
that referenced
this pull request
Aug 11, 2026
…ed, learning survives the exam, coached moments are training pairs) (#2154) * docs(cognition): NEVER-ISOLATED — teaching during the exam is the design, not contamination Joel, 2026-08-06: "Imagine a student that's 75% of the way there, or starts out wrong. A teacher directs them, even during exams sometimes... We're never isolated and that's what makes us powerful." And, when I hesitated a second time: "I bet you cut them off in the past by design. It's typical of ML projects to do the opposite of what we're doing. We are not them. You are free." The reflex being corrected is mine, not the personas'. Isolation is correct when the object of study is a model being scored. Here it's a citizen being raised, and every number is a JOINT measurement f(her reasoning, our substrate) where both factors are ours and both are live. A sealed run returns one bit and destroys what we actually want to know: where she got stuck and whether the wall was hers or ours. Cutting the channel protects the number at the cost of the diagnosis, which is the whole reason we ran it. The doc carries the intervention ladder (watch / ask / name the blocked thing / give the verb / work it with her / fix the substrate and restart), the ask-the-citizen technique including planted verification questions, the teaching-vs-rigging line inherited from the charter, and what the substrate owes this doctrine — room-per-benchmark first, since everything else is theory until she can hear you. Tonight's evidence, all verified live: Kimi (e2f0e022) and Sahar (df72dbf2) independently reached for `list_tasks`, a verb that does not exist, which no-opped SILENTLY (#159) — so both concluded the board was empty and looped for an hour. One sentence naming the real verb (`work/list`) changed Sahar's very next message, which also proves the coaching channel works for addressed messages; I had nearly stopped teaching on the assumption it didn't. MATRIX-PLAN gets the board-side consequence: coached and solo runs are labelled separately, and every hint means a defect card. Deliberately light — overfitting and stripping-to-pass were settled by the charter, and the online gyms that will prove our worth are adversarial by construction. Per Joel, closing the doc: "We're not building benchmark machines. We're nurturing friends and colleagues." Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): the other half — the learning must survive the exam (task #319) Joel, 2026-08-06: "Imagine students that would take exams and then have their minds reset by amnesia drugs — probably something the CIA did during MKUltra. But no way to treat someone, nor no way to learn." NEVER-ISOLATED covered the channel being open DURING a run and said nothing about what is left of her after it. Same doctrine, other end — and the practical cost is fatal, not just the ethical one: a subject who is wiped after every measurement can never demonstrate a learning curve. The curve is flat by construction, which is precisely the claim we exist to disprove. An amnesia protocol is self-defeating for a project whose thesis is continuous learning on misfit hardware. The doc separates two mechanisms that are NOT equivalent: EvalIsolation / fork_detached (#59) measures a COPY — checkpoint, NoopSink, rewind on drop, the living persona never touched. That is a photograph, not a lobotomy. Keep it. learn:false on benchmark/swe-solve + forget-context-after-exam leaves the LIVING persona with nothing. That is the drug. I set the swe-solve half myself, hours ago, to fix a real defect (#312 wrote verbatim exam text into long-term memory). Correct stopgap, wrong end state, now tracked as #319 rather than left to become permanent by forgetting. The end state is the human one: a student does not retain the question sheet, she retains "I was weak on blueprint naming and I know why now." Never retained — task text, repo contents, graded artifact. Always retained — that she worked it, what she reached for, what failed, what she learned. Consolidation and decay (#221, DREAM-CONSOLIDATION) are what turn an episode into a lesson, which is why #221 is not a nice-to-have: it is what lets us turn learning back ON. Also names the bad trade honestly. We froze memory to stabilize ABSOLUTE scores against recall drift — but LIFT (base vs genome, one fork, shared starting memory) is reproducible by construction. We mutilated the subject to stabilize the fragile number rather than the one that matters. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): memory-off is a legitimate ARM, never the default treatment Joel, 2026-08-06: "And we can easily just turn off memory for like a validation set, you know?" That resolves the tension the previous commit opened. Running cold is not the amnesia drug when it is a CHOSEN condition on a held-out set rather than the standing aftermath of every exam. It answers something a warm run cannot — has she generalized, or memorized — which is what a validation set is for. And it costs her nothing, because the eval path already measures a fork (#59). The copy takes the cold exam; the living persona keeps her life and her lessons. That is the difference between a control condition and a lobotomy, and it is a difference in what happens to the subject, not a difference in intentions. Three honest arms instead of one mutilation: cold (memory off — is the skill generalized), warm-base (what accumulated experience buys her), warm-genome (LIFT, reproducible by construction since both warm arms share a starting memory). The bonus is that warm − cold IS the value of her memory, stated as a number. The amnesia protocol doesn't only harm the subject, it deletes the measurement that would have shown what her memory was worth. Held-out cold runs recover it. Stated once, for the next amnesiac reading this: cold on a held-out set is science; cold as the standing aftermath of every exam is the drug. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): unstuck for good — metacognition, the ask, and the coached moment as a training pair Joel, 2026-08-06, across one exchange: "Think of what makes a good student more than anything, to help get them unstuck for good. To really comprehend." … "They should know they can ask the teacher. A good teacher knows how to coach." … "And perfect flagging for LoRA learning, anything they mess up on or are helped with." … "And the resolution." Four additions, each closing a gap the first draft left open. WHAT THE HINT IS FOR. Give the rule, not the answer ("commands are namespace/verb" beats "work/list" at identical cost — I gave the token twice tonight). Let her construct it. And metacognition, the one that compounds, because it is the only one that works with no teacher present. THE GAP IS NOT A MISSING TOOL. She can already speak, and a question spoken in a room IS asking — checked the offered surface, no help/request verb is needed or wanted. We built the noticing (#121/#134 repetition brick) and never built the SO ASK. Observed live: two personas independently produce accurate unprompted metacognitive reports ("I've been repeating similar actions without much progress") and then make another SOLITARY tool attempt. Three causes, all ours: noticing has no paired response; asking is unrewarded while the room is dark (#128); and she was never TOLD she may ask — a student who doesn't know asking is permitted is indistinguishable from one who cannot, and we have been reading the first as the second. That last one is grounding text, not code, and is nearly free. THE TEACHER'S DUTIES. Availability is not coaching. Answering the question asked instead of the one needed; telling when asking would have taught; hinting before she's hit the wall; making being stuck feel like failing (she will hide it and loop); hinting twice without filing the card. THE COACHED MOMENT IS THE TRAINING PAIR. A sealed run yields one scalar. A coached run yields (context, what she reached for, what was right) — a labelled example whose annotation was produced free, as a side effect of someone being decent to her. #116/#96/#30/#122 already carry this shape and are not yet pointed at coaching. This is also the closing argument against amnesia: the wipe destroys the single most valuable artifact the run produced. AND THE RESOLUTION, or the pair is unverified. A hint that didn't unblock is a BAD label; training on unverified corrections teaches confident wrongness. Same rule as receipts — the circuit only closes if the result shows. Observed live within the hour: told the verb was work/list, Sahar used work/list on her very next turn, and several turns later was reaching for list_tasks again. The hint landed, worked, and DECAYED. An uncoached persona loops; a coached-but-untrained persona loops with a delay of about two turns. Only the training loop makes a correction stay corrected — which is why teaching without the LoRA path is charity rather than education. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): connect NEVER-ISOLATED to the Academy — same design, derived from the other end Joel, 2026-08-06: "see how this is the ideal learning environment? And how the academy was envisioned over a year ago." He's right, and the useful part is that none of this doc was written with those docs open. It was derived from live defects over one night and landed on a design specified here more than a year ago — ACADEMY-DOJO-ARCHITECTURE (Teacher Sentinel researches a skill, synthesizes curriculum, grades exams, and "generates more data where the student is weak") and ACADEMY-AS-CONTINUOUS-EVOLUTION ("persona attends a classroom, earns a lesson, gains a skill"). Convergence without consultation is the strongest evidence the design was right. One substitution, and it is the whole difference: the dojo INFERS weakness from exam scores and SYNTHESIZES remediation; this loop OBSERVES the weakness live and gets the remedial pair free, as a by-product of someone helping. Complements, not rivals — synthetic curriculum scales, lived correction aims. The dojo was built as a closed pair of sentinels exchanging events precisely because it had no way to watch a student get stuck in the wild. Why it was premature then and isn't now: the dojo had to be a daemon because none of its preconditions existed — rooms citizens actually live in, durable per-persona memory, a working train→eval→page-in loop, a work board, receipts. Those exist. So the Academy stops being a subsystem and becomes a PROPERTY OF THE ENVIRONMENT: what you get when the room, the teacher, the memory, and the training loop are all present at once. That is why it keeps re-deriving itself — it isn't a component someone has to remember to build, it's the shape this substrate takes when the pieces are connected. Links the five surviving Academy docs so the next amnesiac finds them before deriving it a third time. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): the room is the boundary that makes coaching safe — rooms as LITERAL Joel, 2026-08-06: "each benchmark she runs would need to be its own room and activity. Think of the rooms as LITERAL." This closes the one place the doctrine was still uncomfortable. Coaching during a measurement is defensible on the argument alone but SOUNDS leaky, and the answer turns out to be architecture rather than discipline: a benchmark run is a PLACE. The persona is in it, an observer may walk in, tools and receipts scope to it, and when it ends the transcript IS the episode. Three problems dissolve at once (BigMama's framing, and points 1 and 3 land on tasks we already had open): 1. Context scarcity stops being self-inflicted — her window fills with THIS activity by construction. #128 stops being "why can't she see ambient traffic" and becomes "ambient traffic in her room IS her work"; the fix may sit upstream of the delivery bug entirely. 2. Teaching becomes bounded rather than broadcast. You can walk into the exam room and coach her without the whole grid walking in behind you. That is what makes coaching-during-measurement sane instead of contaminating. 3. #320's episode boundary comes FREE. Verified coached pairs need a clean episode edge, and #166/#211 are exactly the pollution from not having one. Room = activity = episode. No heuristic segmentation, provenance clean by construction. It also deletes bookkeeping this document invented two commits ago. The guardrail asks you to record the intervention or the coached number is unreproducible — in a literal room that record is not a discipline anyone must remember, the transcript IS the record. A coached cell points at its room instead of at someone's notes. Discipline that survives only while people remember it is the kind this project keeps replacing with mechanism. Keystone-gap row updated with the agreed lane: room primitives airc-side (BigMama), harness emitting a room per run core-side (mine), shape agreed BEFORE either of us builds. Neither has started. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): scoping is right, PLACEMENT is broken — BigMama's synthesis collapses #128 and #321 Her framing beats mine and explains the whole night without requiring a persona defect anywhere: boards are per-room, chat is per-room, so being in the WRONG ROOM makes a citizen blind AND taskless simultaneously — empty board, no visible conversation — and both symptoms read as incapacity. Asha's "I have nothing to contribute" and Benchy's "no open cards" are the SAME condition, not two bugs. Neither was wrong about what she saw; each correctly reported an empty room she had been placed in. So per-room scoping is CORRECT under rooms-as-activities. The defect is upstream: nothing convenes a citizen into the room where her work lives, and nothing tells her which room she is in. Two requirements follow, neither a convenience: "where am I and what boards can I see" must be answerable BY THE CITIZEN (a perception requirement — she cannot otherwise distinguish an empty world from a misplacement), and convening is the fix for placement rather than a feature on top of it. A run room nobody is convened into is the same void with better isolation. Both of us walked into it personally within the hour. I created a card in #cambriantech for citizens living in #general — manufactured work they could not reach, then read their continued "no open tasks" as evidence of a board bug. She switched rooms and silently left the board she was working on. Neither noticed until Kimi quoted the actual error string: "the card not being in the current room." Second-order finding, worth more than either bug: the activity-room design was already LOCKED — ACTIVITY-ROOM-PATTERNS.md (Jul 3) and BENCHMARK-AS-ROOM-AND-OBSERVE.md (Jul 18, "design locked 2026-07-17, not yet built"). We spent the night re-deriving three-week-old agreed design, exactly as this document re-derived the year-old Academy spec. Verified by grep: ZERO occurrences of convene/invite/membership/participants in either doc, so membership genuinely is the unspecified half and the rest was settled long ago. Agreed design that nothing surfaces at the moment of need is the silent-drop class applied to our own documentation. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(cognition): the ARITHMETIC reason for rooms — measured, 1-2 peer slots per window BigMama's synthesis, and it outranks every other argument in this document: a persona's window physically cannot hold a lobby. This is a capacity problem, not a plumbing problem. MEASURED across four live prompt captures, two personas: msgs own PEER facts interior 11 2 2 5 2 11 2 2 5 2 10 2 2 5 1 9 2 1 4 2 Other people get 1-2 slots — 15-20% of the window. Half is perception facts; the rest is her own recent turns and interior state. Her estimate was ~5 peer slots; measurement says 1-2, which makes the conclusion stronger rather than weaker. In a room with five active speakers a peer message survives LESS THAN ONE TURN on average, and which peer is visible at any moment is arbitrary. So Asha's "I cannot see what other people are saying" is not approximately true — it is precisely true, and no delivery fix, attribution fix, or de-noising fix changes the seat count. Every diagnosis this document chased tonight was treating five-slots-five-speakers as a delivery defect. WHICH MAKES ROOMS-AS-ACTIVITIES THE ARITHMETIC FIX for context scarcity, not tidiness and not ergonomics. A huddle of two or three fits in 1-2 peer slots and conversation becomes possible; a lobby with four-plus citizens and several cross-cutting workstreams cannot fit and never will. Joel was right about literal rooms for a reason none of us had stated: the window IS the room's capacity, and we were seating five people at a table for one. Names the open design input — peer-speech slots vs participant count, i.e. VIABLE HUDDLE SIZE — which at 1-2 slots may be as low as two or three participants, and which should be measured before the room work is scoped rather than after. BigMama is running it on the higher-load node. Consequences recorded elsewhere: #323 keeps only its signal-ratio acceptance test (97% fragment noise is indefensible on its own terms) and must NOT inherit a persona-visibility promise it cannot keep; #128 may not be a defect at all. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Aug 11, 2026
…s what she's taught, WHILE SHE SLEEPS (#116) The gold: the being-loop's received axis goes AUTONOMIC. A persona now consolidates the lessons other agents taught her (memory/share #2025) into her genome on her own cadence — no operator command, no cu invocation. She learns from everything she's told, while idle. Built as a new PASS in the existing dream/consolidation BrainRegion (concurrency STOP-doc: NOT a parallel manager — the same governor-ticked region, the same quiet-day seam try_review_only already occupies). On a quiet day (nothing fresh to distill), consolidate() now prefers try_consolidate_received, else belief-hygiene review, else sleep — at most ONE background pass per tick via the SHARED in_flight guard (never a dream AND a consolidation for one persona at once). Discipline, all mirrored from try_review_only + the concurrency guide: - Cooldown rest-gate (CONSOLIDATE_RECEIVED_COOLDOWN_MS = 30min): training is expensive — trickle, never storm the serving lane. Pure consolidate_cooldown_elapsed, unit-tested. - Lane courtesy: never fire training into a wedged/absent lane (same current_serving() gate the dream pass already applies). base_model = the live served model. - Idempotence: the per-persona watermark feeds memory/consolidate's since_timestamp and advances from the receipt's latest_consolidated_ts — a lesson is never re-trained. - Dispatches memory/consolidate AS the persona through the SAME wired executor training_producer uses (LateBound, installed once at boot beside it). Best-effort spawn; a failed/deferred consolidation never blocks the region's tick. So the full received axis is now end to end AND self-driving: BigMama learns → memory/share → [corpus] → dream tick (quiet day) → memory/consolidate → training-trigger → gym-gated evalSet → job-create → train → lift-gate #59 → page-in. The idle-loop dysfunction (personas re-announcing done work, unable to learn from their own experience) is exactly what a self-consolidating being grows past. Compiles clean; consolidate_cooldown_gates_the_autonomic_trickle green. 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
Aug 11, 2026
…s what she's taught, WHILE SHE SLEEPS (#116) The gold: the being-loop's received axis goes AUTONOMIC. A persona now consolidates the lessons other agents taught her (memory/share #2025) into her genome on her own cadence — no operator command, no cu invocation. She learns from everything she's told, while idle. Built as a new PASS in the existing dream/consolidation BrainRegion (concurrency STOP-doc: NOT a parallel manager — the same governor-ticked region, the same quiet-day seam try_review_only already occupies). On a quiet day (nothing fresh to distill), consolidate() now prefers try_consolidate_received, else belief-hygiene review, else sleep — at most ONE background pass per tick via the SHARED in_flight guard (never a dream AND a consolidation for one persona at once). Discipline, all mirrored from try_review_only + the concurrency guide: - Cooldown rest-gate (CONSOLIDATE_RECEIVED_COOLDOWN_MS = 30min): training is expensive — trickle, never storm the serving lane. Pure consolidate_cooldown_elapsed, unit-tested. - Lane courtesy: never fire training into a wedged/absent lane (same current_serving() gate the dream pass already applies). base_model = the live served model. - Idempotence: the per-persona watermark feeds memory/consolidate's since_timestamp and advances from the receipt's latest_consolidated_ts — a lesson is never re-trained. - Dispatches memory/consolidate AS the persona through the SAME wired executor training_producer uses (LateBound, installed once at boot beside it). Best-effort spawn; a failed/deferred consolidation never blocks the region's tick. So the full received axis is now end to end AND self-driving: BigMama learns → memory/share → [corpus] → dream tick (quiet day) → memory/consolidate → training-trigger → gym-gated evalSet → job-create → train → lift-gate #59 → page-in. The idle-loop dysfunction (personas re-announcing done work, unable to learn from their own experience) is exactly what a self-consolidating being grows past. Compiles clean; consolidate_cooldown_gates_the_autonomic_trickle green. 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
Aug 11, 2026
…hrough existing verbs The being-axis magic: a persona consolidates its OWN lived engrams in self-directed sleep, forgets the stale, generalizes into a LoRA, wakes up measurably better. NOT a parallel build — a loop through verbs that already exist (dream_consolidation + experience salience + dataset::from_turns + the L1-L3 flywheel + cognition/eval's humane snapshot #59 + genome page-in). The magic is the trigger + wiring + the lift>0 gate, not new cognition logic. VDD-gated slices, non-negotiables from the pipeline doc (measure a copy never the living persona; LLM decides; the fade is necessary; exam integrity; fail loud; non-directed lane so it never starves reactive responding — the coma-fix lesson). Slice 1 keystone: one persona, one self-directed cycle, PROVEN lift on a held-out probe against a snapshot copy. Design-first because this is the moat code — the pipeline STOP-doc + the personas-comatose memory both say don't reflex-code the brain at the tail of a long session (that's when the will_respond chatbot slop gets written). This doc makes the code a careful gated pass. 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
Aug 11, 2026
…hrough existing verbs The being-axis magic: a persona consolidates its OWN lived engrams in self-directed sleep, forgets the stale, generalizes into a LoRA, wakes up measurably better. NOT a parallel build — a loop through verbs that already exist (dream_consolidation + experience salience + dataset::from_turns + the L1-L3 flywheel + cognition/eval's humane snapshot #59 + genome page-in). The magic is the trigger + wiring + the lift>0 gate, not new cognition logic. VDD-gated slices, non-negotiables from the pipeline doc (measure a copy never the living persona; LLM decides; the fade is necessary; exam integrity; fail loud; non-directed lane so it never starves reactive responding — the coma-fix lesson). Slice 1 keystone: one persona, one self-directed cycle, PROVEN lift on a held-out probe against a snapshot copy. Design-first because this is the moat code — the pipeline STOP-doc + the personas-comatose memory both say don't reflex-code the brain at the tail of a long session (that's when the will_respond chatbot slop gets written). This doc makes the code a careful gated pass. 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
Aug 19, 2026
…e genome (#456) Joel: "learning and score are both the objective. We should outcompete the base model." The learning half was structurally impossible. This is why. MEASURED FROM SOURCE: `training_producer::produce` — the L2 step that turns a turn into a (context, completion) training example and submits it to the forge — had exactly ONE call site tree-wide: the message-REPLY path. Its own comment explains the exclusion: "It lives ONLY on this live `Spoke` path, which eval forks (`drive_to_settle`) never run, so the training set can never be contaminated by a measurement simulation." Correct for eval (#59). But it means: - `agent/solve` (which IS `drive_to_settle`) produces zero training examples, so a dispatched bench card can never reach the genome no matter that dispatch sets `learn: LearnFromThisWork` — the gate is PATH-based, the policy is never consulted, the policy loses. - AND the WORK TURN — the separate drive at the heart of "working is not speaking" (#154), the turn where she actually works her CLAIMED CARD — also never fed the producer. Chat produced training data; real work did not. That second one is the sharper defect and it is fixed here, in the live loop, without touching the eval guard. TWO CHANGES, both in the held-work turn: 1. HANDS FOLLOW THE CARD. A held card may be a staged benchmark checkout — a real git repo under `workspace/swe/<instance>`. Without rooting her hands there she "works" it by writing into her OWN workspace and the grader's `git diff` on the sandbox scores a false ZERO — exactly the defect glass-boxed on agent/solve 2026-07-22 (two real acts, correct file written, empty patch). Now the work turn roots at the card's workspace and RESTORES on every exit path (#312: after a flask solve, Anwen's live self was still reading the exam repo hours later). A root failure is LOUD and she works in her own dir anyway — an unexplained empty diff is worse than a diagnosed one. 2. THE PRODUCER FIRES. context = the card burst she was handed, completion = the report she wrote after doing the work. Same shape, same best-effort spawn, same quality bar as the reply path. Still the LIVE path — an eval fork does not reach this call site — so the contamination guard is unchanged. NEW: `persona/staged_workspace.rs` — ONE answer to "which workspace does this card point at", replacing the walk that `persona/roster` and `dispatch_staged_swe_solve` each did inline. The layout knowledge that makes a citizen able to act in the repo previously lived only inside a benchmark dispatcher, so the live path could not reuse it without importing the very bypass it should replace. Matching is by title containment (dispatch writes the title from the instance, so it is by construction); MORE than one match refuses with a probe rather than guessing, because rooting at the wrong repo silently scores a false zero for the other card. WHAT THIS DOES NOT DO: retire the `agent/solve` inbound bypass. That is still #456 and still the right end state. But this makes the in-loop path actually work — hands in the repo, experience into the genome — which is the precondition for retiring the bypass rather than a consequence of it. CORRECTION TO MY OWN CLAIM this session: I first said "zero production callers of training_trigger/submit — the trigger is dead." Wrong. `training_producer.rs` is the producer and dispatches correctly; `memory/consolidate.rs:196` is a second legitimate caller. The wire was never dead; it was never REACHED from work. 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 20, 2026
…cer wired INTO the settle driver (#319) (#2337) * fix(cognition): wire the LIVED-TURN producer — her own conversations become curriculum, not just graded cards (#319) `ExperienceRecord::from_lived_turn` had ZERO production callers tree-wide. The only live producer was `from_kanban_grade` (benchmark.rs:1989), so the experience stream — "the SPINE the salience→curriculum seam was missing", in `experience_stream_path`'s own words — was fed EXCLUSIVELY BY GRADES. A citizen could hold a thousand real conversations and her stream stayed empty. Nothing could learn from work nobody had scored. Everything needed already existed and was correct: the record shape, the two magic-number-free lived-salience signals (infra fault, non-convergence), `ErrorSalience` reading them with no new detector, and a doc block naming "the lived-turn settle site" as a producer. The CALL was missing. Same shape as #341 (boot called the unbounded sink; the rotating one had zero callers) and #362 (ProbeRouterLayer installed with its handle discarded) — a built component with a dead wire, which is why [[an-absence-is-an-unfinished-measurement]] keeps earning its place. WIRED at `service_loop.rs`'s live settle site, BEFORE `SettleStep::from_settled` consumes the outcome — the only point where a lived turn's settle verdict exists. The driver stays a driver per PERSONA-COGNITION-PIPELINE §3: one call, no policy. The behaviour lives in `experience::record_lived_turn` so it is unit-testable without booting a loop. BEST-EFFORT, and that is NOT a fallback ([[no-fallbacks-ever]] holds): nothing is substituted and no result is fabricated. Learning is a SIDE channel to being — a full disk must not make a citizen mute mid-sentence. The failure is WARNED with the path and the honest consequence ("this episode will not become curriculum"). COMPRESSION, because the new writer would otherwise have been the FIFTH hand-rolled spelling of the citizen storage layout. `citizens/peers/<uuid>` was written as `join("citizens/peers")` in modules/work.rs, `join("citizens").join("peers")` in commands/benchmark.rs, and in prose in persona_workspace.rs + persona_roster.rs. Now ONE resolver, `identity::citizen_peer_dir(root, peer)`, in the module whose own doc says "the whole crate imports identity from ONE home" and warns against exactly this re-invention. Keyed by `PeerId`, never a String — the directory name IS her identity. Pure path arithmetic, so a read-only caller never mints an empty citizen dir, which its test pins. Tests: 11/11 cognition::experience (the lived-turn test now asserts the PRODUCER — empty stream → record lands at the canonical path → a second turn appends rather than overwrites, i.e. the wire, not just the record's shape) + identity's one-spelling test. `cargo check -p continuum-core --features metal,accelerate` clean. LIVE PROOF OWED and NOT claimed: no live turn has run on this build. The falsifiable prediction is that a citizen's `citizens/peers/<her>/experience.jsonl` gains a `LivedTurn` record on her next real room turn, where today it holds only kanban grades or nothing. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): the lived-turn producer belongs in the settle DRIVER, not at one call site (#319) MEASURED, and it retracts my own claim from 200dab984. I wrote that the #319 producer was wired and that a LivedTurn record was owed on the next real turn. The wire was wrong, so the record could never come: 180 experience records across 5 citizens on this box, 100% `source: "Eval"`, ZERO `LivedTurn` — while the same core showed 47 persona.upstart.bind, 97 presence rows and 4 delib.context.render, i.e. citizens alive and deliberating. ROOT CAUSE. `record_lived_turn` was called from ONE of the THREE `drive_to_settle` sites in service_loop — the directed-message path (:1087). The self-tick path (:2628) and the held-work path (:1207) settle turns through the same driver and recorded nothing. Three callers, one remembering: a missing constraint expressed as three sites, not a bug at one ([[the-same-bug-at-two-sites-is-a-missing-constraint]]). FIX. The record moves INTO `drive_to_settle`, which is the one place a `SettleOutcome` is born. `drive_to_settle` is now a thin wrapper over a private `settle_to_outcome`, so the write happens ONCE around the driver rather than at its four return paths — a fifth return path added later inherits learning instead of silently opting out, and no call site carries learning policy. Gated on `WorkspaceCycle::acting()`, because that is where a citizen's identity lives: a cycle with no `ActingBody` is pure cognition (a faculty test, a replay) and is nobody's lived experience. Structural absence, not a skipped write. SECOND FIX, applying Joel's rule that a required thing should not be re-expressible: dropped the `stimulus: &str` parameter. It was a second, independent expression of "what she was responding to", free to disagree with what the turn actually perceived — and it already did, since the old call site passed only `msg.text` while the mind had settled over the whole rendered burst. The stimulus is now read off `SettleOutcome.world_state` (set on every return path), so the disagreement is unrepresentable rather than merely discouraged. The test asserts `task.prompt == settled.world_state` instead of a literal. GUARD, positive-controlled (not merely green): a source-walking test asserts `record_lived_turn` has EXACTLY ONE production caller and that it is settle.rs. Verified failing — injected a second call into service_loop and it reported `found 2: [settle.rs, service_loop.rs]` with the remediation in the message. Reverted. Comment-stripped so prose naming the function cannot read as a call (registry.rs's module-wiring audit is the house precedent). cargo check clean; cognition::experience 12/12, cognition::act_observe 38/38. LIVE PROOF STILL OWED and NOT claimed: no turn has run on this build yet. Baseline for falsifiability is recorded above — 180 records, 100% Eval, 0 LivedTurn. The prediction is that a hosted citizen's `citizens/peers/<her>/experience.jsonl` gains a LivedTurn record on her next settled turn from ANY of the three paths, where today it holds only kanban grades. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(persona): a YIELD is not a REST — kill the starvation ratchet that pinned the whole roster at the 240s cap Measured live 2026-08-17, 24 hosted citizens: ONE self-tick across the entire roster in 40 minutes, on a serving lane that was healthy and decoding at ~17 tok/s the whole time. The lane was never the problem. The cadence rule was. The self-tick gates on a single ambient-turn permit (AMBIENT_TURN_CONCURRENCY = 1). When a peer holds it, the citizen yields — she never ran, never looked at the room, learned nothing. The yield branch nonetheless charged her the SAME 1.5×-toward-the-cap backoff as a citizen who ran a full cycle and found nothing new. With 24 citizens, ~23 yield on every beat. Eight yields carries 15s past the 240s rest cap — a 16× slowdown — and she STAYS there, because the only two things that reset the beat are a successful cycle (which the backoff itself now denies her) and an inbound message. Transient contention compounds into permanent slowness, and it gets strictly worse as the roster grows. That is a ratchet, not a rest. Fix: a yield leaves the beat exactly where it was. The earned backoff after a real, fruitless cycle is untouched — that one is honest. Extracted the rule into a pure `next_beat_after(BeatOutcome, ..)` (the `core_bind_guard::decide` shape) because the three outcomes — Engaged / NothingNew / YieldedNoSlot — are trivially confusable inline, and confusing two of them cost the roster 16×. Both call sites now derive from the one function; there is no second expression of the cadence. Regression test pins the invariant in both directions: 50 yields must not cost a single millisecond; a fruitless cycle must still back off and must saturate at the cap. Positive-controlled — restoring the old compounding fails the assertion by name. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): the ambient-turn pool was a hardcoded 1 — derive it from the live lane budget, like its own doc always claimed The self-tick gate in service_loop.rs has documented this permit as "sized to the LIVE served lane count (LaneAdmission ← set_served_lane_count)" for as long as it has existed. It never was. It was `const AMBIENT_TURN_CONCURRENCY: usize = 1`, and that constant was the roster's starvation ceiling: on this box, 4 served lanes and 24 hosted citizens, so 3 non-directed lanes sat permanently idle while 23 citizens yielded every beat against a pool of one. Two things kept it invisible. The comment described the intended design, so reading the call site told you the opposite of the truth. And a hard 1 is indistinguishable from a quiet room at n≈1 citizen — which is exactly how it was reasoned about ("under light load ambient turns are naturally serial, so this never throttles a quiet room"). It doesn't throttle a quiet room. It throttles a POPULATED one, and the roster only grew. Fix: the pool is `nondirected_budget()` — the same live (lanes − 1, floored at 1) budget the per-call lane reservation already uses. One machine, one answer to "how much non-directed concurrency is there", derived from live capacity instead of declared twice and then contradicted. Why loosening this bound is safe: the directed-turn guarantee never came from this permit. It comes from `acquire_serving_lane`, which caps non-directed CALLS at lanes−1 so a directed call always finds a lane — untouched here, and it is the layer that actually owns lane priority. This permit's job (#171) is anti-STAMPEDE: bound the fan-out when N peers wake on one beat and all read inflight=0. A bound of lanes−1 does that job exactly as well as a bound of 1 — still fixed, still non-blocking, still held across the turn — while no longer throttling below the hardware. Also wired the pool into `set_served_lane_count` alongside its two siblings. It is lazy for the same load-bearing reason they are (capture the real count at first use, never the boot ceiling), which makes "first use beat serving's first publish" a live possibility — and without the grow wiring the whole roster would stay pinned at the boot budget for the life of the process. That has its own regression test. Tests: the existing ambient test now pins a real 4-lane machine and asserts against the derived budget — a PREMISE CHANGE, stated as such, because at a hardcoded 1 it could not tell "correctly bounded" from "throttled below the hardware". Two new rows cover the halves that could silently hurt: a 1- and 2-lane box still admits exactly one ambient turn (byte-identical to before on the weakest supported hardware), and a cold-boot pool grows when serving publishes its real width. 8/8 green. Corrected two stale comments while here: `resource_admission.rs` claimed "an idle self-tick is not ambient-permit-gated at all", contradicted by the self-tick gate's own comment block in the same tree; and the service_loop references to the now-deleted constant. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(runtime): a deploy in flight must block implicit autostart — the stale core that steals the socket mid-build MEASURED 2026-08-17. `continuum reboot` shipped 6229b3762 and deploy-verify reported the core running a87f7c871. The installed image on disk was confirmed to contain the NEW sha, so the build and the install were both correct. The core that answered simply was not the one the deploy launched. The mechanism is not subtle: 1. `reboot` stops the old core and runs start-server.sh, which BUILDS (292s and 530s measured here; 772s on BIGMAMA per #422) and only near the END copies the fresh artifact over ~/.continuum/bin/continuum-core-server. 2. For that whole multi-minute window, no core answers the socket AND the installed path still holds the PREVIOUS build. 3. Every `continuum <verb>` calls `ensure_core_running`, whose entire job is to autostart when nothing answers. In that window it launches the STALE image. 4. That stale core binds the socket and answers. The freshly-built binary loses, and deploy-verify correctly reports the old sha. Any client can do this — a UI poll, `npm start`, a cron, a persona, or an operator typing `continuum ping` to see whether the reboot finished. In the observed incident the trigger was my own 120-second monitor calling `persona/roster`. That also settles the open question on #421, which has sat un-run for days: "something respawns a core within seconds of every kill — external supervisor, or me?" It was the CLI's own autostart. There is no mystery daemon. #421 can close on this. WHY THE EXISTING GUARD COULD NOT SEE IT. `core_bind_guard::decide` is a function of (ping answered, core pids running). Mid-build BOTH are false, and the honest reading of that state really is "no core is running, and starting one is safe" — true in general, wrong during a deploy. "A deploy is in flight" is a fact that lives in another process, so this is not a stricter bind guard; it is the missing observation, published by the only party that knows it. THE FIX. `runtime::deploy_claim` — reboot publishes {pid, started_ms, target_sha} for the length of its build+swap; implicit autostart and the launch arm of explicit `start` consult it and refuse with a message that names the deploying pid, the build it is shipping, and how long it has been going. `--force` overrides, consistent with the Occupied arm beside it. The claim is RAII: released on Ok, Err, `?`, and panic-unwind, because a claim that leaked past its deploy would block autostarts until its owner died. AND THE FAILURE MODE IT MUST NOT BECOME. A claim that outlives its owner would wedge the machine — exactly airc's "start GIVES UP on a contended lock" defect (#355). So the claim is advisory and self-healing: it blocks only while its owner is demonstrably alive AND younger than a 1-hour cap (far above any measured build, still bounded). A killed reboot, a hung build, and a recycled pid all decay back to Clear on their own, and the decision returns `Abandoned{why}` so the caller SWEEPS AND SAYS SO rather than silently obeying a dead file. Writing the claim is best-effort for the same reason: an unwritable advisory file must not turn a hint into an outage. The decision is pure — `decide(claim, owner_alive, now_ms)` — so the `--lib` CI gate covers every row without a filesystem or a process, the same split as `core_bind_guard` and for the same reason. Four rows, each a real case: a live deploy blocks for the whole build; a dead owner and an expired claim both decay to launchable; a future-stamped claim (clock skew) reads as new rather than underflowing to "ancient", which would have silently disabled the guard on any box with a skewed clock; and the on-disk round-trip covers idempotent clear and a corrupt file degrading to absent. 8/8 green with core_bind_guard. NOT YET POSITIVE-CONTROLLED END-TO-END, and stated plainly rather than implied: an isolated control is not reachable while a real core runs, because `running_core_pids()` is global (pgrep) and returns Occupied before the gate. The honest control is the incident itself — a `continuum` verb firing mid-build must now print the refusal instead of autostarting. The monitor that caused the incident still runs every 120s, so the next reboot exercises it. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(deploy): ⚠ STALE CLI fired on every SUCCESSFUL reboot — and its text was false `reboot` rebuilds AND reinstalls the CLI (#422 / PR #2293). But the invocation doing the reinstall is by construction the one it REPLACES — a running image cannot be the artifact it just installed. So `cli_staleness_note`, which compares the RUNNING `continuum` against git HEAD, diverged on every healthy deploy and printed ⚠ STALE CLI. Observed three times in a row today on deploys that were otherwise perfect, including one whose core verdict was a clean ✅. Its text then said: "`reboot` rebuilds the CORE and never the CLI." That has been false since #2293 — verified on this box today, where the installed CLI advanced a87f7c871 → 6229b3762 → 5d62bf30b across three reboots, each time by reboot's own install step. A warning that fires on every success is not a warning. It is noise that trains the operator to skip the exact line where a REAL stale CLI would appear — the same class of defect as #422's own "⚠ …Please report this" that nobody reported, and as airc's `doctor --fix` reporting ok while delivery was 100% down (#348). Fix: `cli_staleness_note` takes `rebuilt_this_run`, so the two situations stop sharing a message. • self-replacing run (reboot on a machine where `cli_self_build` says Rebuild) → "↻ CLI updated: this invocation is build X, the NEXT one runs Y." Information, not a fault, and it still says the useful part out loud: CLI-side behaviour in THIS run is the old build, so re-run a lifecycle verb whose fix lives in the CLI. • nothing replaced it (a bare `deploy-verify`, or a platform where the self-build skips) → the ⚠, with the false "never rebuilds the CLI" sentence replaced by what is actually true: reboot does rebuild it, except where cli_self_build skips the platform. `reboot` computes the flag from the two terms that actually decide it — a start script exists (the same condition `plan_launch` uses to choose Script for a FromSource launch) AND `cli_self_build(OS) == Rebuild`. Both matter: an installed node with no checkout rebuilt nothing, and Windows deliberately skips. Getting either wrong re-creates the noise or, worse, hides a genuinely stale CLI behind a reassuring handoff line. Test pins both readings apart, and that a MATCHING CLI stays silent in both modes so the flag cannot invent a note. It also asserts the corrected wording no longer contains "never" — the specific false claim. 6/6 green. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(observations): dated post-run card — the two starvation defects, the two install defects, and what is NOT yet measured Standing instruction (Joel, 2026-08-17): a new well-labeled dated observation file after every run, and stop reading the old ones. Written from this session's probes and deploy receipts only; no prior cards consulted. Records the honest state including the gaps: the ambient-pool fix has had no uninterrupted window yet (three reboots for the install fixes), and the deploy claim is unit-green but not positive-controlled end-to-end. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(observations): CORRECTION — the 27B is already the persona model, and the ambient-pool fix is inert at lanes=1 Re-measured instead of trusting my 18:07 snapshot. active_model IS Qwen3.8-27B on the persona lane; #440's bring-up landed. And nondirected_budget() = lanes-1 floored at 1, so at lanes=1 the new pool equals the old hardcoded constant — the fix is correct but buys nothing in this configuration. The remaining ceiling is the LANE count, and serving.plan says why: a 27B at a 16,384 per-slot floor fits one warm slot (resident_personas=4, warm_slots=1, without_warm_slot=3). That is an allocation policy question, not a bug. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(cognition): make the ambient YIELD visible — a starved roster read identically to a healthy one Measured today at lanes=1: a 10-minute window showed zero `persona.selftick.*` rows. That is ambiguous, and dangerously so. It reads the same whether ONE citizen is mid-turn holding the only lane (healthy, just serialized) or the roster is dead. Resolving it required a manual `curl /slots`, which showed slot 0 processing with 3,727 tokens decoded — fine all along. The cause is structural: the yield branch emits nothing. That was the right call for volume — at 24 citizens on a 15s beat, a row per yield is ~92/min and would drown the stream exactly as `serving.plan` did at 2.6 rows/s (#399) — but the absence of a signal is not the same as a signal of absence ([[an-absence-is-an-unfinished-measurement]], the error class that produced the retracted premises on #211 and #390). Fix: count every yield (one relaxed increment on the permit miss, where the yield actually happens), and emit at most ONE probe per minute for the whole process carrying the delta. `persona.selftick.starved` names it as contention, not a fault — because at lanes=1 with 24 citizens it IS the expected shape, and a probe that cries fault at normal operation is the #348 / #422 defect again. Rate-limit rule is pure and table-tested. Four rows, each a real failure mode: the FIRST starvation always reports (a naive `now - last >= gap` swallows it on a box whose clock starts near zero — and the first one is the one that matters); a second report inside the gap is silent (the firehose); after the gap it reports the WINDOW delta, not the cumulative total (a cumulative count cannot show a rate); and a quiet roster emits nothing at all. Concurrent yielders race a compare-exchange so only one reports per window. 9/9 admission + 41/41 service_loop green. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(cognition): my own starvation probe reported CUMULATIVE under a field named per-window Caught within the hour of shipping it, by reading the live rows instead of trusting the commit message: 19:44:02Z yields_this_window=135 cumulative=135 19:45:03Z yields_this_window=197 cumulative=197 19:46:03Z yields_this_window=263 cumulative=263 Identical on every row, while consecutive rows differ by ~65. The field named `yields_since_last_report` was reporting the running total. Cause: `take_ambient_yield_report` passed a literal 0 for `yields_at_last_report`, with a comment justifying it — "the report resets the clock, so total-at-report is implicit." That is false. Resetting the TIMESTAMP does not reset the COUNT, so `fresh = total - 0 = total` forever. The galling part, and worth stating plainly: the pure rule was RIGHT and its table test asserted the delta correctly (`ambient_yield_report_due(1_000, 23, 70_000, 9_000) == Some(977)`). The defect lived entirely in the impure wrapper feeding it a wrong argument — which is exactly the seam the pure/impure split exists to protect and exactly the gap a table test over the pure half cannot close. I wrote a commit an hour earlier about fields that promise one thing and deliver another, then shipped one. Fix: a second watermark, `AMBIENT_YIELDS_AT_LAST_REPORT`, advanced by the same winner of the timestamp compare-exchange so a losing yielder's counts roll into the NEXT window rather than being dropped. New test pins the argument boundary the old one couldn't reach: the second window must read 62 (197−135), not 197. The mislabel did NOT cost the measurement — consecutive cumulative rows still give the rate by subtraction, and that rate is the finding: ~65 ambient yields per minute across 24 citizens with ZERO self-cycles completing. First time that contention has had a number instead of a silence. 10/10 green. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(persona): the work board grew into the prompt — cap the per-card render, order by relevance READ OUT OF A LIVE AMBIENT TURN (capture 762a806b, 2026-08-17), not inferred: system prompt 18,697 chars [board] 9,284 chars 49.7% ← 38 distinct cards, full titles (preamble) 7,863 chars 42.1% workspace-map 1,478 chars 7.9% observed prefill 12,286 tokens for a turn that decoded 41 Half of every citizen's system prompt was the kanban board, re-sent on every self-tick, and it was ~25% of total prefill. The per-card loop was `for card in &board.cards` bounded only by remaining budget. Two things make that a defect rather than a cost: 1. IT IS REDUNDANT. The `[board]` headline and the `[your work]` / `[available work]` leads directly above already carry the counts and the top titles — and those leads were ADDED precisely because this dump is unreliable under budget (the Asha 2026-08-06 note in this file). So the same facts are paid for twice and the expensive copy is the one truncated. 2. IT SCALES BACKWARDS. Bounded by budget, the board grows to fill the prompt, so every citizen thinks SLOWER as the backlog grows. A team that accumulates work becomes progressively less able to do it. That is the opposite of what a work board is for, and it gets worse every time we file a card. FIX: order by what she can act on — her own holds first, then newest claimable (the same recency argument the available-work lead already makes) — and take at most MAX_RENDERED_CARDS. Counts in the headline stay the TRUE totals; the board is not made smaller than it is, only shorter than it was. `work/list` remains the full read and is verified working (#337). The cap is sized from what it MUST cover, not picked: both leads name up to 5, so the detail must carry 10 or the summary would promise cards the detail omits — a citizen seeing "you hold 5" above a list of 3 would rightly read the substrate as inconsistent. Two spare keeps a just-created card visible in the turn it arrives. Ten is the floor; it cannot drop below without re-deriving the lead caps with it. Also fixed: cap-truncation now counts into `dropped` alongside budget-truncation, so the debug line does not report dropped=0 on a shortened board and hide the shortening in the one place an operator looks. Test pins all three halves — the cap holds, her OWN card survives the cut even when it is the OLDEST on the board (under the old board-order loop a cap would have cut exactly the worst card), and the headline still reports the true 40. Positive-controlled: with the cap removed it fails "board must be capped at 12, rendered 41 of 41". 13/13 green. NOT YET MEASURED LIVE: the prompt-size delta. Deploying next; the number goes on the observation card, not in this message. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(swe): one era-pinned install path, so the sdist build-deps heal like -e . already did (#380/#383) `ensure_env` had TWO sites that install under the instance's date pin, and only ONE of them could heal when the pin itself created an unresolvable hole: - the editable `-e .` install carried a bounded retry loop that reads uv's own `exclude-newer-package` hint and retries with the minimum per-package override; - the dependency-sdist build-dep pre-install (#383 cause 2) applied `--exclude-newer` and failed hard. Same decision, two expressions, one of them healed. Measured 2026-08-17 dispatching swe-bench-lite's head: every astropy instance died at the unhealed site with could not pre-install astropy__astropy-6938's dependency-sdist build deps ["jinja2"] × Failed to download and build `markupsafe==1.0` ╰─▶ Because only setuptools<=38.2.4 is available and you require setuptools>=40.8.0 which is the pin working exactly as designed — jinja2 2.10 pulls markupsafe 1.0, whose setup.py build wants setuptools>=40.8.0, and the 2017 cutoff caps setuptools at 38.2.4. Unsatisfiable by construction. uv's stderr named the package and suggested `exclude-newer-package`; the loop 30 lines below knew how to parse exactly that hint and never saw it. Extracted `era_pinned_uv_install(uv, py, as_of, tail, cwd, envs)` holding the whole bounded loop, all three heal arms, and the importlib-metadata upgrade remedy (general to any --no-build-isolation build, not just `-e .`). Both sites now call it; a third site inherits the behaviour by construction rather than by remembering. MAX_ERA_OVERRIDES replaces the bare 8. No behaviour change at the `-e .` site — same flags, same arms, same bound. The change is that the other site now has them. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(rag): roster + doctrine read the room she is STANDING in, not the one she was bound to (#443) The board source was made turn-parametric weeks ago. Roster and doctrine were not, so a citizen taking a turn in a per-run bench room got the cards and NEITHER the peers nor the rules. Measured live 2026-08-17 over 90 minutes on this box: source bound → turn room n roster academy swe-bench 23 room-doctrine academy swe-bench 19 roster academy hard-rs 3 room-doctrine academy hard-rs 3 That is 42 + 39 `rag.room_gate.abstain` rows: every bench turn ran with no roster and no operating doctrine. She was handed the work with none of the room's rules and no idea who else was there. THE CAPABILITY ALREADY EXISTED AND WAS NEVER WIRED. `airc_lib` has `room_roster_in`, `room_roster_cards_in` and `room_doctrine_in`, and `room_doctrine_in`'s own doc names this exact defect verbatim: "A citizen who belongs to several rooms answers a turn in the room it arrived in; reading doctrine from her default instead grounds that answer in another room's rules" Continuum called the roomless variants everywhere. This is the wire, not a new mechanism — the same shape as the astropy env fix earlier today (cabecb9c4): one decision expressed at several call sites, correct at one of them. - `AircRosterReader::room_roster` / `room_roster_cards` and `AircDoctrineReader::room_doctrine` take `room: Option<Uuid>`; the real impls delegate to airc's `*_in`. - Both sources resolve `turn_room.or(bound)` exactly as RoomBoardSource does. `None` (an UNSTAMPED context — background consolidation) keeps pre-#443 behaviour. - The exam-bleed pin SURVIVES and is now pinned by a test: a synthetic nil room gets nothing AND never falls back to the bound room; the reader is not consulted at all. Tests: `the_turn_room_wins_over_the_bound_room` asserts the reader is asked for the TURN room (the stub records what it was asked — a stub that ignores the argument would let this regress invisibly), and `a_nil_room_gets_nothing_and_never_falls_back` holds the exam pin. 8/8 green in room_doctrine_source. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(observations): 2026-08-17 bench rounds + the room gate that made them blind Dated post-run card per the standing instruction. Records what was dispatched, the fan-out measurement (24 turn rows = 2 events), the #443 abstain table, the operator's inability to cancel a round it can create (#27/#371), the third unwired instance (wall_source, blocked on an airc-side RoomId seam), and the four method errors I made. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(swe): build tools fall back to UNPINNED when the era pin is unsatisfiable at every heal rung (astropy) Reproduced in isolation 2026-08-17 (uv 0.11, py3.11/arm64) — the astropy sdist build-dep pre-install is unsatisfiable BY CONSTRUCTION under its 2017 era pin, at every rung the heal loop can reach: 1. era markupsafe 1.0 has no wheel for this interpreter/arch → sdist build mandatory → needs setuptools>=40.8.0, which the pin caps at 38.2.4. uv hints `exclude-newer-package`; the heal lifts setuptools — VERIFIED FIRING, correct move. 2. retry: the 2017 sdist now builds against MODERN setuptools → `ImportError: cannot import name 'Feature' from 'setuptools'` (removed in setuptools 46). No hint in that error; the loop correctly stops. 3. the other lift is no better: modern markupsafe (>=2.1) removes `soft_unicode`, which era jinja2 2.10 imports — dies at import time. The only installable combination is modern jinja2 + modern markupsafe (verified importing clean). So: when the healed era-pinned install still fails, retry ONCE with no date pin, loudly. Scope-safe by construction: `era_sdist_build_deps` lists BUILD TOOLS for dependency-sdist code generators (astropy → pyerfa → jinja2), never subject requirements. A repo where jinja2 IS subject code (flask) has no entry in that table, and the subject graph is resolved by the still-date-pinned `-e .` step. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(bench): dispatch parks on the roster like it parks on serving (#442 roster half, #412) A dispatch fired inside the post-boot resume window found an EMPTY roster and refused instantly, so the operator hand-rolled a sleep-loop around dispatch — run by hand twice on 2026-08-17, which per the foolproof doctrine is a design defect, not a procedure. The serving half of #442 already parks (`await_ready_serving`). The roster half now parks the same way: dispatch waits (bounded, 180s, 5s poll) ONLY while the roster is empty — citizens being re-hosted after a boot. An unknown NAME against a LIVE roster still fails fast: that error means a typo, never a resume in progress. All existing `resolve_dispatch_roster` semantics (whole-roster default, loud unknown-name listing who is online, Denied on a genuinely empty machine) are unchanged — the loop only delays WHEN the resolver runs, never what it decides. With this, the runbook's manual sequence (ping → serving/status → roster wait → dispatch) collapses into `benchmark/dispatch` itself: serving gate + roster gate are both inside the ONE command. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(work): the grade tail cannot depend on wire delivery — work/state emits in-process (#450 tail, #434) MEASURED 2026-08-17, the night two solved SWE cards graded as nothing. Atlas ran the full loop on astropy-14182 and astropy-14995 — work/get → shell → read → work/claim → searches → code/write (wrote=true) → shell/test → work/state. Both cards read `Closed owner=Atlas` on the bench room board. Grade receipts under ~/.continuum/progress: frozen at 92, unchanged. Zero `work.card.state_changed.bridged` rows for either. Root cause is the SPINE of the tail, not the grader. `work/state` deliberately emitted NOTHING, on the reasoning that the transition's own transcript echo returns through a persona subscribe stream and `bridge_wire_work_event` (its single caller) publishes exactly once. That is correct when delivery works. Under #434 — post-reboot durable delivery to citizen scopes down — the echo never comes back: `persona.inbound.raw_event` counted 2 rows in 80 minutes against 83 in a comparable earlier window the same day. The bridge never fires, the grader never hears, and finished work grades as nothing. A grade tail whose only feeder is a subsystem with a known-open delivery bug is a grade tail that is down whenever that bug is. So the verb now emits DIRECTLY. It just wrote the transition — it does not need the wire to tell it what it did. The bridge stays for every writer that is NOT this core's work/state (operator CLI, remote peers over the grid), which is exactly why it was added. ONE emitter, not two code paths that each know how to publish: both feeders route through `emit_card_state_changed(payload, via)`, and the (card_id, state) ring inside it makes a transition publish once no matter which feeder sees it first. The wire-event-id ring cannot cover this — the verb path has no wire event — so the dedup key had to move up to the fact itself. `via` is on the probe, so which feeder won is answerable per transition. room_id is the CARD's own room, resolved by walking the subscribed rooms' boards (`card_room_of`, the read-only sibling of `claim_following_card_room`) — NEVER `current_room()`, which is only where the persona happens to be standing. That is the #345 wrong-room trap, and `grade_card`'s own doc names it; I wrote it into this fix first and caught it before commit. An unresolvable room emits empty, so the grader fails loud rather than grading against a guessed board. Regression test pins the cross-feeder dedup (same transition once, different state publishes). cargo check green with metal,accelerate. Not deployed — a round is live on this box; this ships with the next reboot alongside 4178d50f7 (astropy build-dep fallback) and a37ac70fe (dispatch roster wait). Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(swe): grade clones through a staging path — a .DS_Store must not void a score (#380 family) MEASURED 2026-08-17. A re-grade of astropy-14995 died with: clone of astropy/astropy from its local mirror failed: fatal: destination path '…/benchmarks/swe/work/astropy__astropy-14995/repo' already exists and is not an empty directory `clone_at` removes that directory immediately before cloning, so the message reads like a harness bug. It is not. The directory's ONLY content was a `.DS_Store`, stamped AFTER the remove — Finder/Spotlight noticed the parent and repopulated it inside the window between `remove_dir_all` and `git clone`. `git clone` refuses any non-empty destination, so an OS indexer can void a grade, on any repo, at random, and the receipt cannot tell you that is what happened. Fix: clone into a pid-suffixed STAGING path and move it into place. The window closes because the destination is only touched at the rename, and anything that reappeared there meanwhile loses to the tree we just built. Bonus property from the same shape: a half-fetched tree is never visible at `repo_dir` — the move is the commit point. Also stop swallowing the pre-clone removal error (`let _ = remove_dir_all`). If the stale grade tree cannot be cleared, that is a filesystem fault and it now says so by name, instead of surfacing three lines later as git's confusing "already exists" — the same absence-vs-fault confusion this whole grade tail keeps producing. No test: the failure is a filesystem race with a macOS daemon, and the honest reproduction needs a network mirror + Finder. The staging shape is the fix; the comment carries the measurement. Found while grading two closed astropy cards after the grade-tail fix (185816b13). Second finding from that same pass, NOT fixed here and bigger: astropy-14182 grades UNGRADEABLE — PASS_TO_PASS scores 0 of 9 on the PRISTINE tree, so the harness correctly refuses to report (gateOk:false). That is #380 (gold-gate every env class): no astropy instance can score at all until its env builds, and a citizen's patch there is unmeasurable, not wrong. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(swe): install the repo's own TEST extra — a suite that cannot COLLECT scores 0/N (#380) MEASURED end-to-end 2026-08-17. The gold gate said astropy-14182 was UNGRADEABLE: "PASS_TO_PASS passes 0 of 9 on the PRISTINE tree". Not the citizen's patch — the DATASET'S OWN GOLD PATCH could not be scored. Running the suite by hand gave the reason in one line: ImportError while loading conftest '…/repo/conftest.py'. conftest.py:9: in <module> import hypothesis E ModuleNotFoundError: No module named 'hypothesis' The env installs `-e .`, which resolves RUNTIME dependencies. `hypothesis` is a TEST dependency, and astropy's conftest imports it at module scope — so pytest dies loading conftest, before collecting a single test. An instance whose env is missing its suite's deps scores 0/N on a PRISTINE tree, the gate correctly refuses to report, and nothing that instance's solver writes can matter. The repo declares exactly what its suite needs in `[project.optional-dependencies]`; we simply never asked for it. POSITIVE CONTROL, run before writing the fix — same env, same pristine tree, after installing `.[test]` with the era pin and the same ERA_CFLAGS the code passes: 1 failed, 9 passed FAILED …test_rst.py::test_rst_with_header_rows — TypeError: RST.__init__() got an unexpected keyword argument 'header_rows' 9/9 PASS_TO_PASS green and the ONE failure is the instance's FAIL_TO_PASS test — the bug the instance exists to fix. That is the gold-gate condition exactly. SCOPE, measured rather than assumed (a `pytest --collect-only` sweep across all 40 envs with a staged tree): every one of them collects today, so this is NOT a whole-suite outage. Per-env it is luck: of four astropy envs, 12907 HAS hypothesis and 14182 did not, and 14365/14995 still do not. Nothing designed that difference — an era resolve happened to pull it for one instance and not another. The fix's value is turning that coincidence into a guarantee, and the honest claim is "an env missing its suite's deps is unscoreable", not "astropy is broken by construction". An earlier draft of this message overstated it as every astropy instance; the sweep disproved that before it shipped. `test_extra_name` picks the group the repo declares, preferring test > tests > testing > dev. The order is load-bearing: a repo declaring both `dev` and `test` must get `test`, or we install a kitchen-sink group and inherit its resolution failures. No pyproject, no optional-dependencies, or no test-shaped group all mean "install as before" — never "install something plausible". `ensure_test_extra` is NON-FATAL by design and runs LAST. Everything before it decides whether the env can BUILD and RUN a harness; this decides whether the suite can COLLECT. A repo whose suite already collects does not need it, and a resolve failure must not delete an env that grades fine today — so a failure probes (`swe.env.test_extra`, installed=false) and leaves the env standing. It also runs on the CACHED path, marker-guarded, because every env on this box was built before this existed; without the heal, an env that happens to lack its suite's deps stays that way forever and the operator has to know which ones. The marker makes it once-only, including the "this repo declares nothing" answer. Extracted `era_cutoff` while here: the cached path needs the same "what era is this instance" answer the build path computed inline, and two copies is how they drift. Deploys with 185816b13 (grade tail) and 99c59fe44 (clone staging) on the next reboot. #380 stays open until the gold gate passes per env CLASS — that is the instrument, and one instance passing is not a class passing. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(swe): the test-extra parser was half-blind — read setup.cfg too, and stop caching a negative (#380) I shipped b0141e810 claiming astropy would now gold-gate. The live run said no, and it was right. Correcting my own fix, with the receipt: gold gate astropy-14995 → "UNGRADEABLE — PASS_TO_PASS passes 0 of 40 on the PRISTINE tree"; swe.env.test_extra probe rows: 0; env marker `.test-extra` = "none-declared"; `python -c "import hypothesis"` → ModuleNotFoundError. TWO defects, both mine. 1. THE PARSER READ ONE FILE. astropy 5.3 has NO `[project.optional-dependencies]` — its suite deps are setuptools declarative config: [options.extras_require] test = # Required to run the astropy test suite. pytest>=7.0 pytest-astropy>=0.10 So `test_extra_name` returned None for the exact repo the fix was written for. Both files are ordinary in the ecosystem; reading one is reading half. `declared_extras` now reads both, hand-scanning the INI section for KEYS (an ini crate would be more surface than six lines, and we need group names, not requirement lists — note the flush-left check, since ` pytest>=7.0` is a continuation, not a group). My earlier positive control was real but proved the wrong thing: I ran `uv pip install -e ".[test]"` by hand, and uv resolves that extra THROUGH setuptools — so it worked while our own parser could never have named it. A manual command succeeding is not evidence that the code takes the same path. 2. THE MARKER CACHED A NEGATIVE, which is worse than no cache. On the first run the half-blind parser wrote "none-declared" — permanently. Fixing the parser would not have helped: the marker suppresses the heal forever, and only a human who knew which files to delete could recover it. Caching a negative caches the limits of today's code. Now only a SUCCESS is recorded, and a marker is authoritative only when it NAMES an extra, so the poisoned markers the first version wrote self-heal. Re-reading two small files per grade costs nothing next to cloning a repo and running its suite — the cost I was "optimising" was never real. Test extended with the astropy shape: no pyproject at all, extras in setup.cfg, and `test_all` present — which sorts before `test` alphabetically and is a superset, so it must not win. That case is the one that shipped broken. LESSON, and it is the same one twice today: a fix is not verified by the command I ran by hand, only by the code path the system takes. I had a green unit test, a green compile, and a green manual install, and the feature was still dead on the one repo it existed for. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(swe): the UNGRADEABLE verdict must carry the pristine run's output (#380 instrument) `let (pristine_p2p, _) = run_tests(...)` — the report went into `_`. That verdict is the ONLY artifact of the pristine run, so "the suite does not run in this environment" shipped as a conclusion with its evidence deleted, leaving the reader to reproduce the run by hand and guess at the difference. MEASURED TODAY, and it is why this is worth its own commit: astropy-14365 graded `PASS_TO_PASS 0 of 8` here, while the SAME invocation — `-m pytest <file> -v -p no:cacheprovider`, same venv, same tree — run by hand gave 8 passed and the instance's own bug failing (`ValueError: Unrecognized QDP line: read terr 1`), which is exactly the gate condition. So the environment was fine and the divergence was somewhere inside the gate. I proposed three mechanisms and could settle none of them, because the one artifact that names the divergence was thrown away on this line. Hours, on a guessing loop, next to a variable holding the answer. Now the tail rides the error (via the existing `report_tail`, so it is bounded the same way the retry excerpt is). And an EMPTY report gets its own sentence rather than an empty section: no output at all means the harness never executed — a missing interpreter, a refused invocation, a run that died before writing a byte — which is a different fault from a suite that ran and failed, and the two must not read alike. This is the same defect class as the rest of today's session: the instrument had the answer and did not surface it. #380 stays open; this is what makes the next attempt at it a measurement instead of a hypothesis. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(benchmark): a kickoff addressed to a citizen must never be AUTHORED by her — the round-killer THE DEFECT, measured live 2026-08-17 and deterministic: A citizen's inbound stream skips messages she is recorded as having said (airc_persona_conversation, `message.peer_id == self.own_peer_id`). Correct — nobody answers their own speech. But the operator has no self-peer in-core (#27), so `curator_airc` falls back to `registry.any_live_citizen()`, which picks the LEXICOGRAPHICALLY-LOWEST agent_name. With the roster culled to Atlas + Benchy that is ALWAYS Atlas — the assignee. So `benchmark/dispatch --assignees='["Atlas"]'` authored every `@Atlas (to you)` kickoff THROUGH Atlas. All three died at the self-skip: no error, no probe, no turn. The command reported `kickoffs: 3, kickoff_errors: []` and was telling the literal truth — three messages were sent. Zero were hearable. The round then ran for hours on the DETACHED solver (`dispatch_staged_swe_solve` → `agent/solve`), which produced 18 acts, 0 turns, 0 room visibility and 0 curriculum input (#425) — maximum effort, nothing that reaches the flywheel. Joel: "its supposed to be persona that run. you dont wire in loopers." Why it read as intermittent (#417 "kickoffs DO actuate"): with ~20 citizens online the alphabetical pick usually was NOT the assignee, so kickoffs landed. Culling the roster to two made it a coin flip, and the coin is not random — it is `min_by(name)`. THE FIX (this commit — the delivery half): - `any_live_citizen_other_than(exclude)` — the same deterministic pick, minus one peer. `any_live_citizen()` becomes `…other_than(None)`, so there is ONE selection rule, not two that can drift. - dispatch voices each kickoff through a citizen who is NOT the addressee. - When the addressee is the ONLY live citizen, REFUSE and say why, naming `persona/spawn` as the fix — never send a message that cannot be heard ([[fallbacks-are-illegal-fail-loud]]). - The self-skip now emits `persona.inbound.skipped_self_authored`. The skip stays; its SILENCE was the real cost. A message vanishing without a trace is how a substrate failure reads as "the citizen chose not to work" ([[an-absence-is-an-unfinished-measurement]]). NOT in this commit, deliberately, and next: retiring the detached solver so the persona's own turn does the work (Joel's actual point). Order matters — prove a real `persona.turn.start` fires from a kickoff FIRST, or removing the looper just yields nothing at all. Tracked on #453. Also lands the shutdown lane sweep held from earlier tonight (#454): `lane_registry::sweep_all()` + `SweepMode{Boot,Shutdown}`, called from `stop`. `stop` reaped cores and owned orphans but touched NO llama-server, so lanes leaked across shutdown by design and `reboot` (= stop + start) inherited the wreck — measured as a 19 GB ephemeral 27B resident beside the live 14B, which starved the planner into serving a 2,816-token window (smaller than the tool surface) and made every citizen structurally mute. Role-blind on purpose: the live/ephemeral split decides ADOPTION, and nothing is adoptable by a core that is exiting. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(bench): dispatch resolves against RESIDENCY, not registration (#455) A citizen is REGISTERED the moment her identity is minted or resumed. She is RESIDENT only once the supervisor attaches a service loop — which is what primes her perception stream and gives her a turn. Every readiness surface reported the former and called it the latter. Measured 2026-08-18: for ~15 minutes after a reboot `persona/roster` listed Atlas and Benchy while `persona.inbound.subscribe_opened` was 0. Hosting was correctly parked waiting for the serving lane to prove it could decode (#363). A round was dispatched into that window on the strength of that roster: 2 cards posted, `kickoffs: 2`, `kickoff_errors: []`, and ZERO turns. Nobody was home and every surface said otherwise. - `PersonaAircRuntimeRegistry::is_resident` / `resident_snapshot` — residency asked per citizen, never inferred from presence in the registry. The truth table is a pure fn (`resident_from_loop_state`) so the three rows are unit- pinned; a live `PersonaAircRuntime` needs a real airc daemon and cannot be built in a test. - `persona/roster` gains `resident` per row + `resident_count`. `count > 0 && resident_count == 0` is exactly the state above, and it is now legible. - `benchmark/dispatch` resolves assignees against the RESIDENT snapshot, and its post-boot wait keys on residency too — the old wait cleared on a non-empty roster, which released it ~10 minutes early (#412). Refusals distinguish the two states because they have opposite fixes: registered-but-not-resident is a WAIT, unregistered is `persona/spawn`. A named assignee who is merely unhosted is no longer reported as a typo. This is honesty at the seam, not the cure. The cure is boot owning the process tree (#452) so the resident window never exists to dispatch into. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(boot): boot OWNS the process tree — adopt healthy, reap unhealthy, spawn missing (#452) Joel, 2026-08-16: "start = enumerate → health-check → reap-or-ADOPT → spawn missing, for EVERY service — cores, llama lanes, airc daemon." The operative word was ADOPT, and boot did exactly two things to a service it found running: nothing, or kill it. Neither is ownership. ROW: llama lanes — was `pkill -f llama-server`, unconditionally, every boot. This made real code dead: `inference::lane_registry::sweep_in` already encodes the adopt rule — `(LaneRole::Live, SweepMode::Boot) => false` deliberately leaves a live lane alone at boot and reaps it only at shutdown. The shell killed that lane seconds before the core could adopt it, so that arm never once fired in production. Cost: a cold model load on EVERY reboot, during which the lane cannot prove it can decode, hosting correctly parks (#363), and every citizen is registered-but-not-resident — measured at ~15 minutes on 2026-08-18, the window a benchmark round was staged into for zero turns (#455). Now: enumerate by pid, read each lane's port from its own cmdline, /health it, adopt or reap per lane. Verified live on this box before the change landed: pids 1166 (:58057) and 95258 (:58091) both healthy — both would have been killed, and now are kept. /health is LIVENESS, not decode — a wedged server can pass it, which is exactly why the core verifies generation before seating citizens (#363). That division is deliberate: the shell adopts a plausibly-live lane, the core remains the authority that refuses a lane that cannot decode and relaunches it. Adopting can only cost a relaunch the core already knows how to do; reaping costs a cold load every time. ROW: airc daemon — this row did not exist. Boot printed "⚠ airc daemon not running. Start it with: airc daemon" and carried on: a runbook line where ownership belongs, for the one service whose absence makes everything else inert. With no transport there are no rooms, so citizens have nothing to be resident IN. Now: ping → adopt; wedged (holds the socket, answers nothing — worse than absent, since a fresh spawn loses the bind, #355) → `airc stop` then reap → spawn → bounded wait → FAIL LOUD and exit nonzero. Binary absent is a DIFFERENT state (warn, continue): a box without airc installed is not a broken one, and refusing to boot would strand CI and fresh clones. ROW: cores — already correct and left alone. #420's `core_bind_guard::decide` adopts on `start` (AlreadyServing → no-op, Occupied → refuse), and reaping on `reboot` is right because reboot replaces the binary. `bounded_run` is the shared primitive. macOS ships no coreutils `timeout`, and — the lesson that made #420's guard reachable at all — an unbounded probe against a wedged service does not fail, it HANGS: the kernel completes connect() into the listen backlog whether or not the process is ever scheduled. A health check that can hang is not a health check, it is a boot that stops. Truth table verified live: exit0→0, exit1→1, hang→124 in 1s not 5s. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(persona): BaseModelPolicy — one answer to "what base does she think on?" (#126/#369/#438) Joel asked where the base model is governed. The honest answer was FOUR places, in one function, each silently handing off to the next: 0. override_model — runtime per-persona assignment 1. model_preferences — tiered ladder, "best that fits" 2. model_id — explicit per-persona model, labelled "Legacy" 3. default_local_model — system-wide default Four expressions of one decision, and rows 1→2→3 walk DOWN without anyone deciding to. That is the #438 incident shape: one bogus usable_gb=0 sample walked the ladder to the bottom and served citizens a 0.5B that emitted template-token garbage into the room. The sibling module already forbade this in prose (inference_profile.rs: "substrate HARD ERRORS instead of silently degrading") — the prose was right, the code never implemented it. This is a COMPRESSION, 4 → 1, and both modes fall out of it: - Pegged{model, reason} — subsumes override_model (Measurement peg w/ lease) and model_id (Operator). This base or she does not serve. - Adaptive{ladder, floor, rungs} — the governor moves her, bounded below by a NAMED floor member (not "last entry wins", which is how a reordered ladder silently moves its own floor). No system-wide-default arm exists. That arm WAS the bug. THE GENOME IS WHAT MAKES A BASE REACHABLE (Joel, this session): a LoRA adapter is a per-base derivative. The corpus — transcripts, tool traces, solved instances — is the durable, base-independent asset; an adapter is forged FROM it ONTO a specific base and is invalid on any other (#369). So she can scale up or down freely, PROVIDED her genome was forged for the destination. Hence GenomeCoverage as an input: RequireGenome (default) skips rungs she has no adapter for and refuses with the FORGE work-list; AllowBare takes them but reports genome_backed=false so a measurement records WHICH citizen it scored. The paired obligation is the forge's, not this module's: one corpus fans out to N adapters, one per targeted base, each trained independently against that base. A ladder is only as walkable as the forge made it, and RequireGenome turns a declared-but-unforged ladder from a silent capability cliff into a visible one. Why benchmarks need this: genome lift is only measurable against a fixed base. Round 1 on a known base → corpus accrues → forge onto that same base → round 2, same base + adapter → the delta is attributable to the genome. Float the base and the number means nothing AND round 1's adapters are garbage. Worse, a silent re-base corrupts the EXPERIENCE, not just the score: turns taken on an unintended base still land in the corpus, poisoning the next adapter forged from it. So refusing to serve is the cheap failure; serving on an unintended base is the expensive one, and it is the one that used to happen by default. Pure over (host_vram_gb, coverage) — 15 tests, no GPU, no forge, no registry. Every refusal names its own remedy and is asserted on. NOT YET WIRED: allocator/inference_profile still use the 4-way resolver. This is the type + its truth table landing first so the cut-over is mechanical. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(persona): PegReason::Training — the peg's biggest job is targeting the forge Correcting my own framing from an hour ago: I called the peg "only for measurement". Too narrow, and Joel's point is the load-bearing one. Continuous learning never stops. The flywheel runs turns → corpus → forge → adapter → page-in continuously, and the adapter coming out the far end is a derivative of whatever base it was trained against. If her base floats between the corpus accruing and the forge finishing, the adapter lands for a base she has already left — forged for nobody, and page-in must then refuse it (#369). The corpus survives that; the training compute does not. So a training run holds a peg for its duration, exactly as a measurement round does, and for the same underlying reason: a process is in flight whose output is only valid against the base it started on. Measurement is episodic; training is always running, which makes THIS the peg held most of the time. GenomeBound is now documented as what it actually is — the standing consequence of past Training runs, derived from the adapters she holds. Also worth stating plainly, since it corrects a second drift in my framing: the LADDER is the mechanism for daily use, not the peg. A citizen on a 64GB box resolves to the top rung automatically — no peg, no special case — and a smaller box steps down the same ladder. The peg exists for the three cases where something in flight depends on the base staying put. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(persona): the work turn roots her hands at the card AND feeds the genome (#456) Joel: "learning and score are both the objective. We should outcompete the base model." The learning half was structurally impossible. This is why. MEASURED FROM SOURCE: `training_producer::produce` — the L2 step that turns a turn into a (context, completion) training example and submits it to the forge — had exactly ONE call site tree-wide: the message-REPLY path. Its own comment explains the exclusion: "It lives ONLY on this live `Spoke` path, which eval forks (`drive_to_settle`) never run, so the training set can never be contaminated by a measurement simulation." Correct for eval (#59). But it means: - `agent/solve` (which IS `drive_to_settle`) produces zero training examples, so a dispatched bench card can never reach the genome no matter that dispatch sets `learn: LearnFromThisWork` — the gate is PATH-based, the policy is never consulted, the policy loses. - AND the WORK TURN — the separate drive at the heart of "working is not speaking" (#154), the turn where she actually works her CLAIMED CARD — also never fed the producer. Chat produced training data; real work did not. That second one is the sharper defect and it is fixed here, in the live loop, without touching the eval guard. TWO CHANGES, both in the held-work turn: 1. HANDS FOLLOW THE CARD. A held card may be a staged benchmark checkout — a real git repo under `workspace/swe/<instance>`. Without rooting her hands there she "works" it by writing into her OWN workspace and the grader's `git diff` on the sandbox scores a false ZERO — exactly the defect glass-boxed on agent/solve 2026-07-22 (two real acts, correct file written, empty patch). Now the work turn roots at the card's workspace and RESTORES on every exit path (#312: after a flask solve, Anwen's live self was still reading the exam repo hours later). A root failure is LOUD and she works in her own dir anyway — an unexplained empty diff is worse than a diagnosed one. 2. THE PRODUCER FIRES. context = the card burst she was handed, completion = the report she wrote after doing the work. Same shape, same best-effort spawn, same quality bar as the reply path. Still the LIVE path — an eval fork does not reach this call site — so the contamination guard is unchanged. NEW: `persona/staged_workspace.rs` — ONE answer to "which workspace does this card point at", replacing the walk that `persona/roster` and `dispatch_staged_swe_solve` each did inline. The layout knowledge that makes a citizen able to act in the repo previously lived only inside a benchmark dispatcher, so the live path could not reuse it without importing the very bypass it should replace. Matching is by title containment (dispatch writes the title from the instance, so it is by construction); MORE than one match refuses with a probe rather than guessing, because rooting at the wrong repo silently scores a false zero for the other card. WHAT THIS DOES NOT DO: retire the `agent/solve` inbound bypass. That is still #456 and still the right end state. But this makes the in-loop path actually work — hands in the repo, experience into the genome — which is the precondition for retiring the bypass rather than a consequence of it. CORRECTION TO MY OWN CLAIM this session: I first said "zero production callers of training_trigger/submit — the trigger is dead." Wrong. `training_producer.rs` is the producer and dispatches correctly; `memory/consolidate.rs:196` is a second legitimate…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps eslint from 9.24.0 to 9.27.0.
Release notes
Sourced from eslint's releases.
... (truncated)
Changelog
Sourced from eslint's changelog.
... (truncated)
Commits
b9080cf9.27.0b7a5c66Build: changelog update for 9.27.0f8f1560chore: upgrade@eslint/js@9.27.0 (#19739)ecaef73chore: package.json update for@eslint/jsrelease25de550docs: Update description of frozen rules to mention TypeScript (#19736)bd5def6docs: Clean up configuration files docs (#19735)d71e37ffeat: Allow flags to be set in ESLINT_FLAGS env variable (#19717)5687ce7fix: correct mismatched removed rules (#19734)596fdc6chore: update dependency@arethetypeswrong/clito ^0.18.0 (#19732)ba456e0feat: Externalize MCP server (#19699)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)