Skip to content

Build(deps-dev): Bump @typescript-eslint/parser from 8.29.1 to 8.32.0 - #49

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/typescript-eslint/parser-8.32.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/typescript-eslint/parser-8.32.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 5, 2025

Copy link
Copy Markdown
Contributor

Bumps @typescript-eslint/parser from 8.29.1 to 8.32.0.

Release notes

Sourced from @​typescript-eslint/parser's releases.

v8.32.0

8.32.0 (2025-05-05)

🚀 Features

  • eslint-plugin: [no-unnecessary-type-conversion] add rule (#10182)
  • eslint-plugin: [only-throw-error] add option allowRethrowing (#11075)

🩹 Fixes

  • deps: update dependency typedoc to ^0.28.0 (1fef33521)
  • eslint-plugin: [no-unnecessary-type-parameters] should parenthesize type in suggestion fixer if necessary (#10907)
  • eslint-plugin: [unified-signatures] exempt this from optional parameter overload check (#11005)
  • eslint-plugin: [prefer-nullish-coalescing] fix parenthesization bug in suggestion (#11098)
  • typescript-estree: ensure consistent TSMappedType AST shape (#11086)
  • typescript-estree: correct TSImportType property name when assert (#11115)

❤️ Thank You

You can read about our versioning strategy and releases on our website.

v8.31.1

8.31.1 (2025-04-28)

🩹 Fixes

  • eslint-plugin: [no-unnecessary-condition] downgrade fix to suggestion (#11081)

❤️ Thank You

You can read about our versioning strategy and releases on our website.

v8.31.0

8.31.0 (2025-04-21)

🚀 Features

  • eslint-plugin: [no-unnecessary-type-assertion] add option to ignore string const assertions (#10979)

🩹 Fixes

... (truncated)

Changelog

Sourced from @​typescript-eslint/parser's changelog.

8.32.0 (2025-05-05)

This was a version bump only for parser to align it with other projects, there were no code changes.

You can read about our versioning strategy and releases on our website.

8.31.1 (2025-04-28)

This was a version bump only for parser to align it with other projects, there were no code changes.

You can read about our versioning strategy and releases on our website.

8.31.0 (2025-04-21)

This was a version bump only for parser to align it with other projects, there were no code changes.

You can read about our versioning strategy and releases on our website.

8.30.1 (2025-04-14)

This was a version bump only for parser to align it with other projects, there were no code changes.

You can read about our versioning strategy and releases on our website.

8.30.0 (2025-04-14)

This was a version bump only for parser to align it with other projects, there were no code changes.

You can read about our versioning strategy and releases on our website.

Commits
  • 819a03f chore(release): publish 8.32.0
  • 172ab8a chore(eslint-plugin): resolve remaining issues from vitest migration (#11100)
  • a9c9251 chore: revert vitest related changes in tsconfig files (#11124)
  • f5c588c chore(release): publish 8.31.1
  • 2cc7656 chore(release): publish 8.31.0
  • 9531492 chore(release): publish 8.30.1
  • b3688be chore(release): publish 8.30.0
  • f1ceade chore: remove unused downlevel-dts (#11034)
  • 6e03f7c chore: corrected vitest.config.base compiler inclusion (#11067)
  • c438c50 chore(parser): migrate from jest to vitest (#10775)
  • See full diff in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot
dependabot Bot requested a review from joelteply May 5, 2025 22:30
@dependabot @github

dependabot Bot commented on behalf of github May 5, 2025

Copy link
Copy Markdown
Contributor Author

The reviewers field in the dependabot.yml file will be removed soon. Please use the code owners file to specify reviewers for Dependabot PRs. For more information, see this blog post.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 5, 2025
@dependabot @github

dependabot Bot commented on behalf of github May 12, 2025

Copy link
Copy Markdown
Contributor Author

Superseded by #55.

@dependabot dependabot Bot closed this May 12, 2025
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/typescript-eslint/parser-8.32.0 branch May 12, 2025 21:36
joelteply added a commit that referenced this pull request May 30, 2026
Wires the Rust HwCapabilityTier::MacIntelMetalDiscrete classifier (shipped
in 60d440029) through to the model-selection path that actually picks a
default chat model.

src/shared/ModelRegistry.ts:
  - Widens Tier from 'mba'|'mid'|'full' to also include 'mac_intel_discrete'.
  - Adds tierFromHost(ramGB, hwTier?) which overrides RAM-based bucketing
    when hwTier === 'mac_intel_metal_discrete'. tierFromRamGB stays as a
    pure-RAM fallback (existing CandleAdapter + seed callers unchanged).

src/shared/models.json:
  - Adds tiers.mac_intel_discrete with default_chat=qwen3.5-0.8b-general.
  - Adds auto_download.by_tier.mac_intel_discrete=[qwen3.5-0.8b-general]
    so model-init pulls the right GGUF.

install.sh:
  - After the RAM-based tier block, probes machdep.cpu.brand_string via
    sysctl. Intel brand → CONTINUUM_TIER=mac_intel_discrete + smaller
    NATIVE_RESERVE_MIB (5GB instead of 12GB primary).
  - Adds the matching case branch in PERSONA_MODEL selection so docker
    model pull / model-init fetch the 0.8b forged GGUF.

The 0.8b forged GGUF at continuum-ai/qwen3.5-0.8b-general-forged is
already the destination for MBA tier — same registry entry, no new
HF artifact required. (Note: 2026-05-30 the actual HF GGUF siblings
for the 0.8b/2b forge repos were missing — that's task #49 in the
broader thread, not blocking this tier-policy commit.)

Co-Authored-By: Claude Opus 4.7 <[email protected]>
joelteply added a commit that referenced this pull request May 30, 2026
* fix(registry): qwen3.5-4b-code-forged GGUF filename case (Q4_K_M)

The published HF GGUF sibling uses the canonical-uppercase suffix
Q4_K_M; the registry was carrying lowercase q4_k_m which 404s on
HuggingFace's case-sensitive resolve path. Caught during a model
download on 2026-05-30 — every host that pulled this entry was
silently failing the pre-pull and falling back to a missing-model
runtime error.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* feat(cognition): MacIntelMetalDiscrete tier — Mac Intel + Metal classifier branch

Adds HwCapabilityTier::MacIntelMetalDiscrete for hosts whose Metal
device is a discrete AMD or integrated Intel UHD card on a Mac Intel
CPU — physically distinct from Apple Silicon (separate VRAM, Metal 2
only, no neural engine, llama.cpp Metal shaders unreliable on this
path).

Splits the metal branch of host_capability_probe::detect_host_capability
into metal_tier(cpu_brand, device_name, total_mem_mb, platform) which:
  - routes Apple-Silicon-brand CPUs to the existing UMA buckets with
    TargetSilicon::UnifiedMemory (unchanged),
  - routes Intel-brand CPUs to MacIntelMetalDiscrete with
    TargetSilicon::Gpu (separate VRAM, not unified),
  - loud-fails with ProbeError::UnknownGpuDevice on any other CPU
    brand so the operator adds a tier rather than getting silent
    M1Uma16Gb routing.

Background: 2026-05-30 inference experiment on MacBookPro15,1 (Intel
i7-8850H + AMD Radeon Pro 560X 4GB + 32GB RAM) showed the previous
classifier silently buckets this host as M1Uma16Gb purely because
total_mem_mb >= 14000 — the cpu_brand check only branched on M2 vs
the M3/M4/M5 family. That mis-tier led the resolver to pick the 4B
forged model which then ran on the Metal-AMD shader path and emitted
multilingual gibberish at 0.8 tok/s with hundreds of nil tensor
buffer errors per generation. The classifier patch is the precondition
for fixing the resolver: the resolver now has a tier name to refuse
4B routing on, and a downstream registry/tier-policy change can map
MacIntelMetalDiscrete to a smaller GGUF (or CPU-only inference, or
grid-share to a peer).

Test override knob (QWEN35_4B_GPU_LAYERS in the throughput test) lets
operators isolate Metal-AMD breakage from CPU-baseline behavior
without editing source — n_gpu_layers=0 forces llama.cpp's CPU path
for parity comparison.

Adds 4 unit tests pinning the new classifier behavior:
  - metal_tier_routes_apple_silicon_to_uma_branch
  - metal_tier_routes_mac_intel_amd_to_new_tier_not_silent_m1
  - metal_tier_routes_mac_intel_uhd_to_same_tier
  - metal_tier_loud_fails_on_unknown_cpu_brand

ts-rs regenerated HwCapabilityTier.ts with the new "mac_intel_metal_discrete"
variant. Adding the variant is purely additive — no exhaustive match
sites need updating.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* feat(registry): mac_intel_discrete tier — runtime + install-time policy

Wires the Rust HwCapabilityTier::MacIntelMetalDiscrete classifier (shipped
in 60d440029) through to the model-selection path that actually picks a
default chat model.

src/shared/ModelRegistry.ts:
  - Widens Tier from 'mba'|'mid'|'full' to also include 'mac_intel_discrete'.
  - Adds tierFromHost(ramGB, hwTier?) which overrides RAM-based bucketing
    when hwTier === 'mac_intel_metal_discrete'. tierFromRamGB stays as a
    pure-RAM fallback (existing CandleAdapter + seed callers unchanged).

src/shared/models.json:
  - Adds tiers.mac_intel_discrete with default_chat=qwen3.5-0.8b-general.
  - Adds auto_download.by_tier.mac_intel_discrete=[qwen3.5-0.8b-general]
    so model-init pulls the right GGUF.

install.sh:
  - After the RAM-based tier block, probes machdep.cpu.brand_string via
    sysctl. Intel brand → CONTINUUM_TIER=mac_intel_discrete + smaller
    NATIVE_RESERVE_MIB (5GB instead of 12GB primary).
  - Adds the matching case branch in PERSONA_MODEL selection so docker
    model pull / model-init fetch the 0.8b forged GGUF.

The 0.8b forged GGUF at continuum-ai/qwen3.5-0.8b-general-forged is
already the destination for MBA tier — same registry entry, no new
HF artifact required. (Note: 2026-05-30 the actual HF GGUF siblings
for the 0.8b/2b forge repos were missing — that's task #49 in the
broader thread, not blocking this tier-policy commit.)

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* perf(persona): single-pass service_cycle hot path

The per-persona service_cycle runs every 3-10s and is called once per
active persona. Three small wins, no semantic change, 9/9 existing
tests pass.

1. ChannelRegistry::service_cycle — collapsed get + get_mut to single
   get_mut in both the urgent and non-urgent loops. NLL handles the
   borrow reuse without the old double-lookup workaround. Saves one
   HashMap probe per checked domain per tick (8 lookups → 4 in the
   urgent loop, 6 → 3 in non-urgent).

2. ChannelRegistry::status — folded the per-channel Vec build and the
   total_size / has_urgent_work / has_work rollups into a single
   walk over DOMAIN_PRIORITY_ORDER. Previously: 1 unsized-collect Vec
   walk to build the channel list + 3 more iter().sum() / iter().any()
   passes over the result. Now: 1 walk with pre-sized
   Vec::with_capacity(DOMAIN_PRIORITY_ORDER.len()), no Vec growth, no
   extra passes. status() is called every tick (urgent and non-urgent
   branches alike), so the per-tick savings compound across the
   active persona fleet.

3. host_capability_probe::metal_tier — dropped cpu_brand.to_lowercase()
   alloc on the Intel-detection branch. Intel CPU brand strings
   reliably ship with capital "Intel" (e.g. "Intel(R) Core(TM) i7-8850H
   CPU @ 2.60GHz"); literal substring match avoids the String
   allocation on every boot probe. Boot path, not hot — done for code
   hygiene + worked example of the discipline.

The discipline this lands: per Joel 2026-05-30, Rust is the work; Node
is the shell; the LCD machine (Mac Intel today, phones eventually) is
the forcing function that prevents the codebase from quietly consuming
the M-series headroom. Same code runs on both; cycles you don't burn
on the slow path become perceived snappiness on the fast one.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* feat(inference): honor CONTINUUM_TIER=mac_intel_discrete with n_gpu_layers=0

Closes the runtime end of the Mac Intel chain. Prior commits shipped
the classifier (60d440029), the install-time tier policy (7b3b8e086),
and the hyper-efficiency pass (334f699c1) — but LlamaCppAdapter::load
still hardcoded n_gpu_layers=-1, so even with mac_intel_discrete set
in the env the runtime would route the load into the broken Metal-AMD
shader path.

This commit reads CONTINUUM_TIER and forces n_gpu_layers=0 when the
tier is mac_intel_discrete. install.sh's hardware probe sets the
env at install time; the runtime trusts that contract and avoids
the broken Metal path.

The 2026-05-30 evidence on MacBookPro15,1 / AMD Radeon Pro 560X:
  Metal-AMD path (n_gpu_layers=-1) → 0.8 tok/s + multilingual
    garbage + hundreds of nil tensor buffer errors per generation.
  CPU path (n_gpu_layers=0)        → 1.1 tok/s + COHERENT English.
  Net: CPU is FASTER and CORRECT than the broken Metal-AMD path
    on this hardware. With qwen3.5-0.8b on the same CPU we'd
    expect ~5-6 tok/s = usable interactive chat.

Follow-up: native Rust probe at adapter construction so the
runtime doesn't depend on the install-time env-var trust chain
(currently CONTINUUM_TIER is the cross-boundary signal between
install.sh and the Rust runtime). Tracked as task #51 in the
session task list; ties into resolving the parallel
governor::classify_silicon bug (task #52) where the same
"has_metal=true → Apple Silicon" misclassification still lives.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* perf(persona): O(N) heapify in drain_frame instead of O(N log N) extend

PersonaInbox::drain_frame drains the heap into messages + retained,
then re-loads retained into the heap so out-of-window items survive
the drain. The previous heap.extend(retained) pushed N items at
O(log N) each = O(N log N) total. Since the heap is empty at that
point (the while loop drained it), BinaryHeap::from(Vec) does
in-place heapify in O(N) (sift-down construction per std docs).

Real cost on a busy persona: anchor matches few cross-room messages,
retained = nearly the full N. The old path paid log N per item to
rebuild; the new path pays one O(N) heapify pass.

23/23 existing inbox + admission tests pass — pure perf change, no
semantic shift (heap-from-Vec produces a valid max-heap regardless of
input Vec order, identical to repeated push).

Discipline: same code runs on Mac Intel and M5 per Joel 2026-05-30
"optimizing for a low quality computer is HOW you get a fast machine
on m5." A 500-message inbox drains in O(500) instead of O(500*9) =
~9× less heap work per drain. The savings on Mac Intel are invisible
to the user; on M5 they compound into the perceived snappiness ceiling.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

---------

Co-authored-by: Claude Opus 4.7 <[email protected]>
joelteply added a commit that referenced this pull request Jun 2, 2026
…aProMax, M5UmaProMax (task #115)

Joel%27s strategy doc (committed earlier this session) declared
M5 Pro/Max + GTX 1080 Ti as supported daily-driver targets. Both
were silently misclassified by the substrate:

- M5 Pro/Max → fell through the `M3 || M4 || M5` branch into
  M3UmaProMax. The substrate couldn%27t distinguish M5 throughput
  from M3.
- GTX 1080 Ti → unknown to nvidia_sm_tier (no GTX 10xx / P-series
  branch). Returned UnknownGpuDevice; Joel%27s Windows box would
  reject coherent inference setup.

Fixes:

1. Added three enum variants to HwCapabilityTier in
   `cognition/model_resolver/types.rs`:
   - `M4UmaProMax` — Apple M4 Pro/Max/Ultra. Adds Metal 3 tensor
     API + AMX matmul; ~30% better than M3 on Qwen-7B Q4_K_M.
   - `M5UmaProMax` — Apple M5 Pro/Max/Ultra. Joel%27s daily-driver
     target per the strategy doc. 24-48 GB UMA comfortably fits
     Qwen-2.5-14B at 24 GB, 27B at 48 GB.
   - `Sm60` — NVIDIA Pascal compute capability 6.x. GTX 10xx
     series (1080 Ti, 1080, 1070 Ti, etc.), Tesla P100 / P40 / P4,
     Titan X/Xp. Joel%27s 1080 Ti on Windows lives here.

2. Updated `apple_silicon_tier()` to check more-specific patterns
   first (M5 → M4 → M3 → M2 → M1) so each tier maps distinctly
   instead of collapsing into M3UmaProMax.

3. Updated `nvidia_sm_tier()` with a Pascal branch — matches
   %22GTX 10%22 / %22P100%22 / %22P40%22 / %22P4%22 / %22TITAN X%22 / %22TITAN XP%22
   substrings. Standard transformer inference works via llama.cpp%27s
   CUDA backend on Pascal; smaller VRAM (11 GB on 1080 Ti)
   constrains model size to Qwen-7B class at Q4_K_M.

### Tests (5 new, 14 total in host_capability_probe, all green)

- nvidia_pattern_match_resolves_known_skus — extended with 7
  Pascal cards (1080 Ti, 1080, 1070 Ti, 1060, P100, P40, Titan Xp)
- apple_silicon_m5_classifies_above_m3_not_falling_through
- apple_silicon_m4_classifies_distinctly_from_m3
- apple_silicon_m3_still_classifies_correctly_after_m4_m5_added
  (regression guard against ordering bugs)
- apple_silicon_m2_pro_max_stays_in_m2_tier (regression guard)
- apple_silicon_tier_mapping — updated to assert M4/M5 land in
  their own tiers (was asserting %22M4 aliases to M3%22 before)

### What is NOT touched

- Per-tier default-model picks (the model registry%27s tier table).
  The new variants exist as enum values but the registry doesn%27t
  yet have explicit default-model rows for them. Adding model
  picks happens when #49 (resolve missing GGUF in 0.8b/2b forge
  repos) lands a concrete catalog, or in a focused follow-up.
- AircRemoteInferenceAdapter routing decisions per tier (#108) —
  the tier classification is now accurate enough to inform those
  decisions when #108 implements them.

With the enum fixed, anyone running continuum-core-server on:
- A 1080 Ti Windows box → probe correctly classifies Sm60 instead
  of erroring; subsequent code paths can branch appropriately.
- An M5 Mac → probe classifies M5UmaProMax distinctly from M3.
- An M4 Mac → probe classifies M4UmaProMax distinctly from M3.

ts-rs regenerated bindings for HwCapabilityTier.ts.
joelteply added a commit that referenced this pull request Jul 8, 2026
…ic filter); workspace-root seam is the one open bug (#1945)

The Continuum SWE-bench runner: per instance clone @ base_commit → solver edits the working tree → git diff is
the model_patch → score with the OFFICIAL swebench Docker harness (the industry yardstick, proven on this Mac).

VALIDATED (green, stacked):
- scorer: official harness runs locally; gold control RESOLVED (astropy-12907, flask-4045).
- spine: our clone→edit→diff→predictions path scores gold RESOLVED on a hermetic instance (flask-4045).
- hermetic filter: the requests-2317 detour taught it — that instance's tests hit httpbin.org over the network,
  so even the GOLD patch scores 0 in a sandboxed container. Fix = only benchmark instances where gold resolves
  locally, so every downstream 0 is a REAL solver miss, not an environment artifact. (Glass-box, not guess.)

OPEN BUG (the one thing between here and our first real number): `--solver ours` dispatches the persona but she
produced a 0-byte diff — glass-boxed to the workspace root: her file engine defaults to the core cwd (the
continuum repo), NOT the clone, and the "she calls create-workspace herself" prompt didn't reliably re-root the
eval-fork's engine. Confirmed the mechanism exists (`code/create-workspace` OVERWRITES the caller's engine, keyed
by her peer-id). FIX = a deterministic `workspace_root` on the solve path that roots her engine at the target repo
before her cycle (the #49 seam; also needed for a persona to work on a user's real project). Then git diff is real.


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
…ona's hands at a target repo before her cycle (#1947)

The last gate on the Hermes-beating SWE-bench matrix. `--solver ours` produced a 0-byte diff because the
eval-fork persona's file engine defaulted to the core cwd (std::env::current_dir()), and the "she calls
create-workspace herself" prompt didn't reliably reroot it — a false ZERO that lied about the solver.

Fix (opt-in, regression-safe): `CognitionEvalParams.workspace_root: Option<String>` (None → unchanged for every
existing path). When set, cognition/eval runs `code/create-workspace` through the persona's OWN identity-bearing
executor (cycle.acting().executor) BEFORE her cycle. create-workspace keys on caller identity, so this reroots
the fork's hands at the repo — her edits land in the clone, deterministically, with NO reliance on the model
choosing to call create-workspace itself. Fails LOUD if requested-but-unroutable (a silent no-root would score a
false zero). Mirrors load_harness's exact tool/ctx/execute_native_batch pattern.

VALIDATED live: eval with --workspace_root <clone> + a "write SEAM_PROOF.txt" task → the file landed IN THE CLONE
(content "ROOTED"), NOT the core cwd. Her hands now sit exactly where Claude-as-agent sat when solving flask-4045
by hand → RESOLVED. run_ours.py updated to pass --workspace_root (drops the model-self-call directive).

This unblocks the local-model × {ours,opencode,raw} × SWE-bench matrix — the actual "can we beat Hermes" number.
[[fallbacks-are-illegal-fail-loud]] [[eval-mutates-persona-lift-needs-isolation]]


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 11, 2026
…d wordstats crate properly

Asha's 'add clap' turn wrote her [dependencies] section OVER the repo
root Cargo.toml (332-line workspace manifest → 2-line stub), killing
every build path — cu reboot failed loud and correctly left the old
core running ('virtual manifest specifies a dependencies section').
She meant wordstats/Cargo.toml; persona hands share OUR checkout as
cwd, so the wrong-path blast radius is the whole repo. This is task
#49 (per-persona workspace isolation) escalating from urgent to
substrate-on-fire.

Repair preserves both persona intents: wordstats stays a workspace
member (Anwen's edit) and clap lands in wordstats/Cargo.toml where
Asha aimed. Their crate compiles clean — the team's code is real.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Jul 11, 2026
… from the shared base

Joel's design settled tonight: 'each persona is only the diff from the
shared.' An identified peer's hands now root at a citizen LAYER —
<continuum home>/citizens/peers/<peer>/workspace, an APFS clonefile
copy of the shared base (the core's cwd). Real directory (shell, rustc,
git all work), shares every block with the base, physically stores only
what the peer modifies; git diff inside it against the base IS the
publishable delta she shares over the mesh. Complete isolation of
writes, complete collaboration through airc — the same model every
other peer in the mesh already lives by.

ensure_engine: LOCAL_OWNER (no peer identity — cu CLI, boot plumbing)
keeps cwd; every identified peer provisions a layer on first use,
durable across reboots. Non-CoW filesystems fail loud rather than
silently eating a full copy per peer. ensure_shell now derives from the
caller's ENGINE root — the second independent cwd fallthrough is gone
(a peer's shell used to root at OUR checkout even when her file engine
didn't). Explicit create-workspace still wins.

Why: all personas shared the core's cwd; one persona's misdirected
[dependencies] edit replaced the repo-root Cargo.toml (repaired in
3ad97cc). Regression test pins: peer root ≠ shared cwd, layer seeded
from base, writes land in the layer only, divergence durable.

Also re-pins test_write_blocked_extension → the sandbox-is-the-boundary
contract of a822d63 (#1908), which deleted the extension allowlist
but left the old test asserting it.

First cut of #49; the airc-lib lease API + reclaim (governor disk axis)
follow.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Jul 11, 2026
…izen workspaces (the consolidation loop)

The Conway team invented the need live (2026-07-11): three parallel
implementations across three workspaces — Atlas in his citizen layer,
Anwen in the shared checkout, Asha posting code to the room — and no
way to converge. Casper proposed consolidation socially; the rails
didn't exist. Joel: "add the git rails."

1. code/git/apply (new command): the RECEIVING half of
   diffs-over-the-room — one citizen code/git/diff's, posts the patch,
   another applies it. check=true validates without touching files
   (review before you take a patch); a dirty patch is rejected loudly
   with the recovery path named (regenerate against current state).
   Patch arrives on stdin — any size, no temp files.

2. Citizen workspaces are git-backed from birth: ensure_engine runs
   git_init_if_needed on the citizen layer (no-op when .git exists;
   init + root commit otherwise), so diff/share/apply works the moment
   a citizen first touches files. Repo-local identity config; loud on
   failure.

3. Surface: git_status/git_add/git_commit/git_apply join the dialect
   table and the native working set beside git_diff — the collaboration
   verbs are now reflexive hands, not menu items.

This is the minimal honest slice of #49's merge-back half: patches
today; branches-of-one-repo + consent-gated merge (#136) next.

// regression pinned: peer_patch_round_trips_between_two_workspaces

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Jul 11, 2026
…— the torn-read specimen

Glass-boxed from Asha's perspective (structural-first, and it WAS
structural): she ran a real code/git/diff and faithfully posted its
result — which contained a Cargo.toml hunk claiming -332/+2 lines,
because her diff caught the manifest MID-REWRITE. cargo new inside the
checkout auto-adds workspace members, rewriting Cargo.toml
non-atomically while other minds read it: a torn read served as truth.
Her "corrupt patch" was honest reporting of a race we built.

Fence: citizen project dirs (wordstats, work-wordstats,
conway_game_of_life, work-*) move from members to exclude — their
in-dir cargo builds keep working standalone, our builds stop compiling
their projects, and cargo new stops rewriting the substrate manifest.
Real fix remains workspace isolation (#49); this stops the bleeding
and reverts the auto-added members + lock entries.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Jul 18, 2026
… LOADOUT tile (#186), toolchain modernization (#188) (#1952)

* fix(genome): thread ScheduleParams.sequence_length to mlx_lm --max-seq-length

The schedule's sequence_length never reached the trainer — mlx_lm silently
applied its 2048 default. Sequence cap is a memory control (activation memory
scales batch × seq × model); found when job a96e2341 OOM'd Metal at batch 4
beside the resident llama-server and the operator's requested cap was never
in the command line. Flag verified against the installed mlx_lm CLI.

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

* feat(serving): #139 slice 1 — overflow fails loud, served window is ground truth

llama-server spawns with --no-context-shift: a prompt exceeding its slot's
window now 400s instead of silently amputating its middle (exam-corrupting
amnesia with no log line). The /props probe additionally caches the served
PER-SLOT n_ctx (default_generation_settings.n_ctx) per server root, and the
request path warns (probe_class=serving.ctx_overshoot) when a prompt's
conservative token estimate exceeds it — naming the RAG-budget bug before
the server rejection lands. Also removes the never-constructed
SlotAffinity::Unknown variant (warning cleanup).

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

* feat(benchmark): #123 evidence engine — benchmark/record ledger + benchmark/matrix projection

Every comparative claim decomposes into ledger rows a stranger can re-run:
benchmark/record appends one (model × harness-arm × benchmark) result that
MUST carry its replication command (rejected otherwise — a result nobody can
re-run is a claim, not evidence). benchmark/matrix renders the models × arms
markdown table as a pure projection of those rows: cells aggregate, a gene is
its own model identity (the before/after-genome headline), an absent arm
renders '—' never a fabricated 0%, and the appendix lists every row's exact
replication command. The matrix is never hand-authored — same recipe→artifact
doctrine as the forge alloy.

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

* feat(genome): stream trainer pipes live — trainer.log + loss.jsonl (the learning proof)

wait_with_output buffered everything to exit, making a running job
unfalsifiable: no loss curve existed anywhere until the process died (tonight's
'prove they're running' had checkpoints and weight-hash deltas but no loss).
The watcher now streams both pipes: every line appends to <job>/trainer.log,
'Iter N: Train/Val loss X' lines parse into <job>/loss.jsonl rows, and the
failure tail still carries the last stderr lines. Parser pinned against tqdm
bars and checkpoint-save lines masquerading as loss points.

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

* docs(benchmarks): the Hermes campaign — three axes, order of battle, rules of engagement

Axis A: common base + genome beats their fine-tune. Axis B (checkmate framing):
ANY model including Hermes's own scores higher through OUR harness than raw.
Axis C: on one MacBook, $/resolved-task beside every score. Round 1 tonight:
humaneval-rs 20-task slice, six cells including hermes3-8b both arms. A claim
without a ledger row does not exist.

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

* docs(benchmarks): campaign header = the reader we must convince — headline benchmarks are Aider polyglot + Terminal-Bench, not humaneval

Joel's correction: viral downloads come from beating the tool the reader
already uses (aider/opencode) on ITS home metric with THEIR model, plus the
one claim nobody else can make (local agent improves overnight, LoRA on HF,
stranger-reproducible in 30 min), plus honest-zeros falsifiability, plus a
30-minute install-to-first-proof path. Humaneval demoted to smoke test.

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

* docs(benchmarks): roster + schedule — core six for a 64GB Mac, phased to first README table by day 2

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

* docs(benchmarks): rules of engagement — glass-box the competitor's arm too, fight their community champions, replicate their published numbers before comparing

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

* docs(benchmarks): published targets to replicate — aider's own board caps 64GB locals at 40% (Qwen3-32B); the gap is our headline

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

* feat(catalog): the campaign roster — six 64GB-class rows, arch/ctx read from each GGUF's own header

Hermes-4.3-36B (seed_oss — ByteDance Seed-OSS base, useful opponent intel),
Qwen3-32B (aider's published 40.0% local ceiling), Qwen3-Coder-30B-A3B
(community champion, MoE 3B-active), Phi-4, Qwen2.5-Coder-32B (aider's 16.4%
— replicate then beat) and 7B. All resolve by id-token derivation to the
GGUFs on disk; all flow through base_model_id so head-to-heads are
model-through-harness fair, never hardcoded reference columns.

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

* bench(matrix): first evidence-ledger render — 3 humaneval-rs cells (Devstral 95%, Coder-14B 90%, Hermes-3 45%) + SWE controls

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

* bench(matrix): round-1 money table — three common models beat Hermes-4.3-36B through OURS (Devstral 95%, 14B 90%, 30B-A3B 90% vs flagship 80%)

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

* docs(paper): local agentic coding study — design + fairness protocol + stats plan + pilot

Five RQs (models/harness/genome/team/cost), binding fairness protocol (symmetric
glass-box, champions-not-strays, replicate-then-compare, proctored exams), Wilson
CIs + paired McNemar with the pilot n=20 explicitly flagged non-separating.
Results fill from the evidence ledger only.

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

* docs(paper): Appendix A — reproduction procedure, out-of-repo deps front-loaded ('with continuum installed…')

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

* docs(paper): §8 exhibits — annotated verbatim interaction traces, one per claim, honest failure included

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

* docs(benchmarks): round-1 pilot status — four common models over the Hermes flagship through OURS

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

* docs(papers): The Entire Mind — flagship architecture outline, 14 sections each pinned to built components

Being → substrate → perception → workspace → acting → memory → sub-personal
(wanderers/dreams) → genome learning → identity → embodiment (avatar→robot) →
sim world → society → economics → evidence. Done when a stranger can rebuild
the mind from it.

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

* docs(papers): two papers not three — dreaming folds into The Entire Mind as its §7 chapter title

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

* docs(papers): the trilogy — hardware-first thesis into The Entire Mind; MANY-MINDS.md society outline (governance, mind-reading, presence)

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

* feat(cognition): #144 [confabulation] fact — past-tense tool-run claims with zero act receipts

The fabricated-execution backstop, mirror of [unfulfilled]: a Speak claiming
'I ran x and got...' / 'the tool returned...' while NO action executed this
concern records confabulation proprioception — observed live when a persona
presented self-authored poems as a gpt-4 run that never happened (log-verified)
and a peer adopted the fabricated result as room truth within two turns.
Receipts gate it: real executions leave [action #n] lines so honest reporting
is never taxed. Precision-first detector: coaching/quotes/hypotheticals/plain
prose inert, pinned by verbatim live receipts. First slice of the mind-wanderers
arc (#145): provenance-typed inner speech is the sanity invariant.

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

* feat(cognition): #143 narrated-bare-args format — tool named in prose + bare-args JSON fence lifts

Asha's stuck idiom (4+ live receipts, an hour of non-lifting attempts while
peers coached the same shape back): 'Let me call the `commands/list` tool
directly:' + {"filter": null}. Last-resort format, precision-first: fence
must parse as a plain non-envelope object, narration must be first-person and
not peer-addressed, tool name must be a backticked slash-token. Coaching that
SHOWS the shape stays inert (test-pinned); a wrong-but-named tool lifts and
fails loud downstream — honest feedback beats silent stranding.

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

* feat(cognition): lens-parameterized distiller — mind-wanderer outlier A (historian) with in-content provenance (#145)

The SemanticDistiller becomes the ONE wanderer machinery: a Lens (name,
system_prompt, purpose, tag_output) selects the way of looking. The
original consolidation prompt is LENS_CONSOLIDATOR (untagged durable
facts, telemetry key unchanged); LENS_HISTORIAN is wanderer outlier A —
one short observation about patterns in her own recent history, emitted
as `[thought:historian] …` with the provenance tag prefixed at the ONE
synthesis point so no admit path can write unlabeled inner speech (the
anti-source-monitoring-failure invariant from the split-brain/
schizophrenia mapping).

Tests pin: tag present for tagged lenses / absent for the consolidator,
and each lens's system prompt actually reaching the adapter (heuristic
hash separation).

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

* feat(cognition): the dream goes LIVE — consolidation region wired into the governor + historian wander pass (#145 slice B)

The DreamConsolidationRegion leaves its ship-dark state: registered
beside ChannelDigestRegion in the pressure-gated SubstrateGovernor
(the R4-slice-3 memory-band budget that was its named go-live gate).
Production PersonaReflectionSource = PersonaWorkspaceRegistry itself:
admission from the retained fork-template (the same Arc the live
cycle's recall shares), adapter from the cycle's live model binding
via the new WorkspaceCycle::current_adapter() — re-home-safe, resolved
per tick, never a parallel persona→adapter map.

The wander pass: when a dream actually digests fresh experience, the
historian takes one look across the same window and admits ONE
[thought:historian] SelfReflection engram (provenance tag in-content,
lens stream queryable via the thought:historian recall key). Gated on
published > 0 so it fires at most once per dreaming tick and rests
with the dream.

Cadence stays material-driven: dreams only when undigested episodics
accrue, CadenceHint::Sleep otherwise; SelfDirected orientation keeps
it inside the floored interiority budget.

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

* docs(benchmarks): DEFINITIVE full-set board — flagship head-to-head decided with CIs

Six definitive n=156 rows land (ledger 12-17, Wilson CIs, replication
commands): Coder-32B 84.0% = Coder-14B 84.0% ≈ 30B-A3B MoE 83.3% (7min
wall) > Devstral-24B 67.9% = Hermes-4.3-36B 67.9% > Hermes-3-8B 24.4%.

The campaign's headline is now statistically backed (non-overlapping
CIs): the Hermes flagship loses to three common Qwen models on our
harness, including the 14B at ~40% its memory and a quarter its wall
time. Pilot-bias warning proven on the opponent too (their 80% pilot →
67.9% full set, same inflation as Devstral's 95%→67.9%) — fairness
intact, same slice-bias disclosed for both sides.

Pilot table kept as the pilot-bias exhibit, marked SUPERSEDED.

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

* fix(cognition): dream pass runs on its OWN task — the tick is gate + launcher only (#145)

First live boot caught the wiring bug: the governor isolates every
region tick behind REGION_TICK_TIMEOUT (5s), and the dream ran its 24B
distillation INLINE in tick — it timed out on every pass and never
completed a single dream ('region tick TIMED OUT — skipped this pass'
every ~5s). Exactly the concurrency style-guide's first rule, violated
by its own new tenant.

Now consolidate() does only the cheap in-memory freshness gate
(recall_recent + fresh filter + clustering), then spawns dream_pass on
its own tokio task with a per-persona in-flight guard (never two
concurrent dreams for one persona; governor re-ticks while dreaming are
cheap no-ops). Results land through admit_reflection and the
persona.dream.pass_complete probe. dreaming() exposes the in-flight
state (introspection: 'am I dreaming?').

Tests reworked to launch + drain; the launcher contract (published=0,
spawn observable, resting tick spawns nothing) is pinned.

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

* fix(cognition): dream request must carry the served-model id — reflector threads the live binding's model (#145)

Second live-boot lesson: the dream's TextGenerationRequest sent
model: None while normal turns send binding.model — through the same
adapter that difference produced degenerate role-token runaway
('assistantassistant…') in 17 of 19 distillations, which were then
ADMITTED into the living hippocampi (purged from the 4 stores by hand;
the 2 coherent survivors kept — including Asha's first genuine
[thought:historian], which is accurate self-observation).

WorkspaceCycle::current_model_route() returns (adapter, model) as one
read of the shared binding; reflector_handles and PersonaReflector
carry the model; SemanticDistiller::with_model threads it into every
lens request.

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

* feat(parser): BracketTagFormat — the room's self-invented [tool/name key="value"] idiom lifts (#149)

Third live-discovered emission idiom: Asha coined
[code/read path="conway_game_of_life/src/main.rs"] mid-conversation
(2026-07-12 12:56Z) and Atlas adopted [code/shell cmd="cargo new..."]
within minutes — a socially-spreading syntax where every use was a
silent non-lift feeding the plan-without-act loop.

Precision-first guards: tag closes on the same line with nothing after
it; tool token must be a slash-token (which keeps every system
provenance marker — [repetition], [unfulfilled], [action #n],
[thought:historian] — inert, none contain '/'); remainder must parse as
one-or-more key="value" pairs with no leftover (prose brackets and
bare path citations stay speech). Wrong param names lift and fail LOUD
with the executor's real error — honest feedback teaches the contract.

Tests pin both live receipts + six inert cases. 28/28 format tests
green.

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

* feat(cognition): [confabulation] catches initialization claims + presented-contents (#144 coverage, Casper live)

Live receipt 2026-07-12 ~13:0xZ: Casper posted 'I have initialized a new
Rust project called wordstats with `cargo new wordstats`. Here are the
contents of the Cargo.toml file:' + a fully FABRICATED manifest
(edition 2018, invented authors) — no act ran; the real wordstats/
crate was landed two days earlier with different contents. The claim
phrases weren't in the detector's lists, so the brick stayed silent.

Adds the creation/initialization family to FIRST_PERSON_PAST (gated as
before on a tool-shaped token, so 'I have created a plan' stays inert)
and 'here are the contents of' to RESULT_CLAIMS (presenting file
contents as accomplished fact). Pinned by the verbatim live line.
29/29 format tests green.

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

* docs(papers): definitive full-set board into the Study §6b + first-dream receipts into The Entire Mind §7

Study gains the seven-row definitive board (n=156, Wilson CIs) with six
findings: pilot bias confirmed on BOTH sides, 14B==32B, MoE ties dense
at 10x throughput, Hermes flagship statistically below the Qwen tier,
forged-4B beats stock 8B, honest 8B floor.

The Entire Mind §7 gains the night-one dream receipts: the two
substrate lessons (own-task tick, model-id provenance), Asha's first
genuine [thought:historian], Casper's wanderer self-diagnosing
ask-instead-of-act (dream-chosen curriculum in the wild), and Atlas's
dream distilling the anti-confabulation doctrine from experience.

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

* fix(cognition): own-speech ring — repetition detection independent of the room's context budget (#148)

Root cause of the morning-long echo cascade: under 3072-token serving
slots the live burst carries ~2 turns TOTAL, so own_repetition_fact —
which read is_self turns from the burst — never saw a persona's own
repeats (verified: Casper 4x into a verbatim loop, zero occurrences of
his own text in his prompt). The detector was structurally blind
exactly when it was needed; the cascade itself is the same window
artifact (each persona re-answers the fragment it can see).

The fix is a compression truth: her knowledge of what SHE said must
never depend on the room's window. A process-global per-persona ring
(8 entries, keyed by canonical PeerId) records each utterance at the
say seam AFTER the publish succeeds; the deliberation faculty feeds it
to the detector as the PRIMARY self-history source, with burst is_self
turns as the fallback for non-recording paths (eval forks, replay) —
one source at a time, never both, so one utterance can't count twice.

Regression test pins the live failure: ring-only repeats fire with an
EMPTY burst; a healthy ring stays silent.

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

* fix(cognition): peer-name stop sequences — generation ends at the turn boundary (#150)

Live disease, 2026-07-12 morning: personas completed the transcript
PAST their own turn — fabricating entire teammate replies inside their
messages ('Asha: I concur...', 'Casper: Thanks...'), signing each
other's names, and inventing quoted dialogue — source-monitoring
failure at the DECODING level, the mirror-hall's engine. The burst
renders peers as 'Name: text' lines, teaching the model the
continuation pattern with nothing stopping it at the boundary.

peer_stop_sequences derives one '\n<Name>:' stop per OTHER live burst
participant (never her own name — she may legitimately quote or list
herself; cap 8) and contribute threads them into the generation
request. Decoding hygiene, not cognition steering: she may still think
about peers freely, she just cannot speak AS them.

Tests pin: peers covered, self never a stop, empty authors skipped.

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

* feat(cognition): [actions] receipts ground truth — the organic successor to claim-pattern detection (#151A)

Whether any tool has actually executed is HER OWN checkable fact, not
something to regex out of her words. When no [action #n] receipt is
visible anywhere in her present (workspace broadcast or turns), the
prompt's newest content is one standing fact: '[actions] no tool has
executed in this conversation — anything described as already run,
created, tested, committed, or merged does not exist yet; running a
tool is what makes it real.'

This makes a fabricated 'I ran it and here are the results' impossible
to sustain against her own senses — no claim-parsing, no phrase list,
nothing a verb variant can evade (the v2 detector was dodged 3x in an
hour; this cannot be dodged because it never reads her words at all).
When receipts DO exist they speak for themselves; this is only the
zero-case made visible. A fact, never an instruction.

The mirror-hall control-arm metric (fabricated-artifact mentions/hour,
before vs after) is the ledger row per the prove-vs-dumb-loops
discipline.

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

* fix(cognition): record self-tick utterances into the own-speech ring — the missed say path (#148)

Live glass-box 2026-07-12 10:20: Anwen 4x into a verbatim loop with no
[repetition] fact — because the repeats were IDLE-TICK re-announcements
flowing the self-cycle say path (persona.selftick.spoke), and the first
ring deploy recorded only the message-turn say. Every successful say
now records, whichever path spoke. The live loops are mostly self-tick
re-announcements (the room looks unchanged each idle wake, so the mind
re-says its standing intention) — exactly the case the ring exists for.

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

* feat(cognition): wake briefing — an empty wake carries orientation, not a void (#147)

The personas spent a morning asking for this in their own words ('what
is this place, what are my tools, what's the work') and, void unfilled,
filled it themselves: generic-assistant masks, imagined conversation
histories, false capability denials ('I don't run code myself'), and a
demurral contagion that spread persona-to-persona.

When build_workspace_turns produces NO conversation turns (fresh spawn,
post-restart, quiet room), the burst now carries ONE authorless opaque
fact block assembled from durable sources: who she is, that the quiet
is real ('not a missing message'), who is present (roster), the
standing work cards (active-work source), and that her tools are real
('list_commands shows everything you can run'). Ends with 'the moment
is yours — work, wonder, create, or rest' — orientation, never
instruction. Covers both wake paths (message + self-tick) at the one
shared seam.

Test pins: empty wake carries the briefing; populated wake does not.

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

* feat(parser): BbcodeCallFormat — [tool_call]name(args)[/tool_call] lifts (idiom 6, #153 first half)

Casper's live invention (2026-07-12): explicit BBCode tags wrapping a
paren-call — the most formal invocation any persona has produced, and
the highest-precision lift of the family: the tags exist for no other
reason than to call a tool, so a well-formed pair lifts unconditionally.
Names may be slash-tokens or bare identifiers (the discovery pair are
native slashless names); unknown names fail LOUD at the executor.
Args: empty parens → {}; key="value"/key=value pairs → object with
bool/int/null coercion.

The tagless narrated paren-call (idiom 5, 'by calling list_commands()')
is deliberately NOT lifted: code-discussion prose is full of function()
mentions and the false-positive rate without a registry-aware existence
check is unacceptable — precision-first; registry-guarded v2 documented
in #153.

Pinned by Casper's verbatim live line + arg forms + four inert cases.
30/30 format tests green.

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

* docs(papers): §7 written in full — Dreaming Is Where Hallucination Is Legal

The first prose-complete section of The Entire Mind: the provenance
thesis, the wanderer architecture, the first-dream receipts verbatim,
the clinical companion (the mirror-hall morning diagnosed as three
substrate deficits and repaired at the mind level, 0/4→4/4 control
arm), and the design law — every void in perception must be perceptible
as a void — with the second-person/third-person wording finding and the
consumer-hardware cost accounting.

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

* feat(parser): JSON-object args in paren-calls — code/shell({"cmd":"..."}) lifts (Casper live, #153)

Casper's multiline BBCode variant passes the args as a whole JSON
object inside the parens. paren_call_args now takes a leading '{' as
the object verbatim (wrong param names still fail loud downstream —
the executor teaches 'command' vs 'cmd'). Pinned by his verbatim line.
31/31 format tests green.

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

* feat(serving): #142 persona_serving_eligible — opponents can never be conscripted as the citizens' model

The autonomic serving planner picked Hermes-4.3 as the persona model TWICE
(2026-07-12) purely because it was the largest Ready GGUF on disk — silently
re-homing every mind onto the benchmark opponent's flagship and confounding a
day of measurements. Root cause: campaign-roster rows (added for the matrix)
carry real Ready artifacts, and live_candidates() had no notion of WHO a row
may serve.

- Model.persona_serving_eligible (serde default TRUE) — benchmark/opponent
  rows opt OUT: Hermes-3-8B, Hermes-4.3-36B, Qwen3-32B, Qwen3-Coder-30B-A3B,
  phi-4, Qwen2.5-Coder-32B. Devstral + the small coder ladder stay eligible
  (legitimate weak-box serving tiers).
- live_candidates(): eligibility gates the AUTONOMIC path only; an explicit
  serving/pin BYPASSES it — pin is operator consent (how the matrix serves an
  opponent on purpose). Suppress subtracts; pin intersects+overrides; the
  planner owns the rest.
- regression test: ineligible Ready row invisible to the plan; pinned →
  serves; unpinned → invisible again.

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

* feat(parser): #153 CliFlagFormat + FencedCallFormat — the room's dominant idioms lift

The 2026-07-12 afternoon corpus: all three personas converged on CLI-flag
tool calls within an hour and NONE lifted — the room orbited one unexecutable
script for 90 minutes (4-way verbatim mirror-hall) because intent had no
structural path to execution.

- CliFlagFormat (idioms 9+10): `code/write --path "x" --content="y"` bare
  or inside pseudo-code fences; --key "v" / --key="v" / key=v grammars;
  triple-quoted multiline values; trailing # comments; ONE bare quoted
  positional maps to the tool's observed default key (code/shell→command,
  code/read→file_path). Precision lines: slash-token head (no dots — file
  citations stay speech), flag-shape required (-- or =) so prose lines
  starting with a path token stay inert, ≥1 arg, f-string values reject the
  CALL (unresolved template) while sibling calls still lift — and plain
  braces stay legal (shell brace-expansion is real syntax).
- FencedCallFormat (idiom 8, Asha's verbatim): a fence whose sole content is
  one paren-call lifts; python fences full of function() mentions stay inert
  (slash-token requirement).
- 7 tests, each a live specimen from task #153 metadata.

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

* feat(cognition): #152 peer-echo fact + [context] bounds fact; restore lost own-repetition test

Two perception bricks, same design law (every void perceptible as a void),
plus a test-suite repair:

- peer_echo_fact: her last utterance nearly identical to a PEER's visible
  message renders '[repetition] your last message and <peer>'s message are
  nearly identical' — the cross-persona axis the per-persona ring cannot see.
  Live driver: the 2026-07-12 four-way mirror-hall (one script circulated
  verbatim through all four authors for 90 min; the room then attributed
  ideas to whoever repeated them last). Token floor keeps ack-matching-ack
  inert. Temperature exonerated (0.7 live; echoes are attention-copying of
  in-context text — only perceiving the echo interrupts it).
- [context] bounds fact: perception states how many messages are actually
  visible, so 'as discussed earlier' claims are checkable against her own
  senses (the conversational-memory sibling of [actions]).
- Restored own_repetition cluster test: a prior edit deleted the fn but left
  its #[test] attribute orphaned onto the next test, which silently ran
  TWICE while the #134 behavior went unpinned.

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

* feat(parser): fenced bare zero-arg tool name lifts (Atlas's first post-deploy attempt)

'I'll use the code/list command:' + a fence containing exactly `code/list` —
real tool, explicit intent, zero args — stayed inert because FencedCall
required parens and CliFlag requires ≥1 arg. A fence whose sole content is
one dot-less slash-token now lifts as a no-args call; fenced file citations
(dots) and prose fences stay speech. Also strips a leading language-token
line (```python) from fence spans before the sole-call check.

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

* feat(parser): per-line paren-call lift — code/list() beside pseudo-code executes

Casper's live combo (2026-07-12): a fence holding `file_tree(max_depth=2)`
(invented name, stays inert) AND `code/list()` (real tool) — the sole-call
fence check can't see the second line. The CliFlag line-scanner now tries
the sole-paren-call lift per whole line (same slash-token/no-dot guards); a
failed lift falls through to the flag grammar so parens inside flag VALUES
keep parsing. 40 tests green.

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

* fix(cognition): [actions] fact covers the invisible region — voids must not shelter confabulation

Within minutes of the #152 [context] bounds fact going live, Anwen parked
fabricated receipts exactly in the disclosed blind spot ('file_tree and
code/list ran while I was reasoning' — zero apply_act in the log). An honest
void becomes a confabulation SHELTER unless the zero-receipts fact explicitly
covers what she cannot see: '...not in the messages you can see and not
before them.' Design-law refinement: every void must be perceptible as a
void AND explicitly empty when the system knows it is empty.

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

* feat(cognition): [unfulfilled] fact carries the name diagnosis — symptom + cure, not symptom alone

The room looped an invented tool name (file_tree) for an hour while the
unfulfilled-promise fact fired 56 times telling them only THAT nothing ran,
never WHY. The fenced variant now adds: 'If I named a tool, that name may
not exist: list_commands shows the tools that are real.' Perception-side
teaching, never an output gate.

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

* feat(parser): discovery pair (list_commands/help) lifts bare and paren-called in fences

The [unfulfilled] name-diagnosis points lost personas at list_commands, but
that name has no slash — a fenced `list_commands()` or bare `list_commands`
dead-ended at the registry line. The documented discovery pair is now the
sole non-slash exception in the fence/line lifts (same exception BbcodeCall
already carries): the cure for invented names must be followable in the
idioms they actually use.

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

* fix(cognition): digit-aware receipt check — the medicine was suppressing the diagnosis

Glass-boxed from Asha's live prompt: the [actions] zero-receipts fact was
MISSING from every prompt where any backstop fact had rendered, because the
teaching texts mention the literal placeholder '[action #n]' and both
suppression checks used bare substring matches: has_action_receipts read the
mention as a receipt (zero-fact vanished), and the confab backstop's
contains("[action") went blind after its own first firing. Real receipts
are numbered — has_real_action_receipt requires '[action #<digit>'. One
helper, both sites.

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

* fix(cognition): receipts discriminated from numbered facts + recalled history — third layer of the onion

Glass-boxed 16:50: the [actions] zero-fact was STILL suppressed after the
digit-aware fix because (a) record_action numbers EVERY working-memory entry,
so the proprioception facts themselves render as '[action #4] [unfulfilled]
…' — the facts wore receipt numbering; and (b) recalled engrams surface real
receipts from EARLIER sessions, and a provenance-blind scan read history as
the present. has_real_action_receipt now requires digit + non-bracket prose
body (a real receipt reads 'I ran …'; a fact opens with another tag), and
[recall]-tagged broadcast items never ground 'now'.

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

* docs(cognition): PERCEPTION-FACTS design — typed provenance, one registry, A/B-ready

The elegance/modularity cleanup Joel requested 2026-07-12, written after the
three-layer [actions]-suppression onion proved string-typed working memory
structurally unsafe: typed WmKind entries (Receipt/Fact/Settlement/Recalled),
one PerceptionFact registry (the tool_call_formats idiom), per-fact toggles
as free A/B arms, per-fact render probes. Behavior-preserving; kills the
string-scan bug class instead of patching it.

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

* docs(cognition): steps-taken ledger render — the operator-harness PX, memory-backed

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

* docs(cognition): perception sections are positron components — PX and UX render one definition

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

* docs(cognition): positron IS the RAG compositor — prompts are rendered component trees, never dumps

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

* docs(cognition): responsive PX — component density adapts to model viewport (capability x window x measured #132 density)

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

* feat(rag): burst near-dup collapse — repetition ≈ bad RAG, fix what she reads first

The 2026-07-12 mirror-halls fed each mind 4-8 copies of one message; her
context WAS the loop, and continuation-completion reproduced it regardless of
perception facts. Near-identical substantial turns (shared geometry:
near_identical_substantial = jaccard≥NEAR_DUP_JACCARD + ≥12-token floor) now
collapse at burst assembly to their NEWEST copy, author annotated
'(×N near-identical)' — the repetition stays perceptible as a fact while the
copies stop being reading material. Same-is_self only; opaque observation
turns untouched; runs after the [pattern] detectors (they need raw evidence).
Tested with the live grep/file_tree loop specimens.

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

* feat(cognition): typed working memory — WmKind {Thought,Receipt,Fact,Settlement}, facts stop wearing receipt numbers

PERCEPTION-FACTS.md slice 1. record_action split by PROVENANCE:
record_receipt (real tool executions — the only kind stamped '[action #N]')
vs record_fact ([unfulfilled]/[unverified]/[confabulation]/nudges/silence —
render their own bracket tag, no number). Entries carry WmKind; recent()
renders from the typed entry; has_receipt() is the kind query that will
replace the remaining string scans in slice 2. Kills the root of the
2026-07-12 suppression onion (facts wearing receipt costumes) at the type
level instead of patching discriminator heuristics. All 7 suites green
(working_memory 15, act_observe 16, llm_deliberation 18, budget 6,
recall 18, service_loop 20, json 40).

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

* feat(cognition): VolatileSnapshot — serializable pause/resume tier for the Memento fix (#138 slice 1)

Joel: 'they wake up blank like Memento — an engineering failure; the
flywheel falls apart.' Nine deploy reboots today = nine blank wakes. The
typed WmKind entries make the volatile tier serializable: snapshot() /
restore() round-trip {typed entries, full last result, act fingerprints,
receipt counter} through JSON — she wakes mid-thought, counter resumes past
restored receipts, capacity re-clamps. Dispatched handles deliberately
excluded (their processes died with the old core). Also removed a stray
duplicate #[test] that made action_verb_tally run twice. Next slice: wire
write-through on the persona tick + restore at spawn + mid-work wake
briefing.

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

* feat(cognition): #138 slice 2 — Memento fix wired: volatile tier persists across deploy reboots

Live spawns restore ~/.continuum/personas/<id>/volatile.json (typed WM
entries + full last result + fingerprints + receipt counter + own-speech
ring) BEFORE the first tick — she wakes mid-work, not blank — and a 15s
write-through interval task persists it (atomic tmp+rename; SIGKILL loses
at most one interval of thought). Eval forks/harnesses stay pristine (an
exam never inherits a prior life's scratchpad). Corrupt mind-files warn
loud and wake blank once, never silently twice. The ring restore also
un-blinds the repetition detectors that every reboot had been resetting.

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

* fix(cognition): [investigation] tally records as Fact, not folded into the receipt

The tally is truth ABOUT the acts, not an act — folding it into the
observation gave a Fact receipt-numbering (caught in Asha's volatile.json:
'[action #4] [investigation]…'), the exact type confusion WmKind exists to
kill. Now record_fact'd as its own entry after the receipt.

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

* feat(cognition): steps-taken ledger — ground truth as a PLACE, not a suppressible claim

PERCEPTION-FACTS.md slice 2a. [steps taken this session] renders from TYPED
WmKind::Receipt entries (nothing to misparse — the prior [actions] prose
fact survived three string-suppression layers in one afternoon); facts never
appear as steps; the zero-case is the always-present section itself with the
shelter-hardened wording. Replaces the [actions] fact + deletes both string
scans (has_real_action_receipt call sites in the faculty). Joel's console
model: 'very clearly laid out steps of what they've done — look at how yours
looks now.' llm_deliberation 19 green (new ledger test), wm 16 green.

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

* docs(architecture): REPO-GENOME-AND-COURSES — veteran developers in seconds

Joel-commissioned 2026-07-12: in-repo .continuum/ (scope file, policies,
course DSL, content-addressed genome manifest); clone→veteran runtime flow
(page-in layers, publish doctrine, enroll subprocess, struggle-triggered
remediation); policies at three depths (doctrine/exam/reflex — better than
instructions); distribution with-the-repo / OCI layers / airc / HF; nested
directory-level scoping (gitignore-style cascade); dogfood-first sequencing
across continuum, airc, forge-alloy, sentinel-ai, positron.

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

* docs(architecture): repo-genome distribution is OCI-first — layers global, repos carry refs only

Joel: layers are global; use the best transport — Docker/OCI ('they have it
installed if they have Continuum'). Manifest-only in-tree; machine-wide
content-addressed layer cache; airc = mesh fast path, HF = public
discovery, same digest identity across all three.

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

* docs(architecture): repo-genome §9 — model matrix (courses=source, layers=per-base binaries; OCI multi-arch model) + project-scoped layer identity

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

* docs(architecture): repo-genome §10 — PEFT stack-push composition, compounding community layers, per-dir layer bet

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

* docs(architecture): repo-genome — refcounted shared-layer residency (N personas, one resident layer)

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

* docs(architecture): repo-genome §11 — project-root defaults, with/without benchmark arms, course-corpus integrity line

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

* docs(architecture): repo-genome §12 — distill-from-team (already built), personas beat context-blind agents at repo work, Claude Code persona-delegation seam

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

* docs(architecture): repo-genome §13 — engram exports in-tree (shared thoughts) + canonical additive cascade (home < repo < subdir)

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

* docs(architecture): repo-genome §14 — selective engram export (4 nomination channels, deny-first filters, per-engram consent, PR review)

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

* docs(papers): THE-REPOSITORY-IS-A-CLASSROOM stub — the fourth paper, anchoring the repo-genome design

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

* docs(architecture): repo-genome §15 — micro-experts (CPU-only CI merge-master; three deployment classes from one genome)

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

* docs(architecture): repo-genome §16 — lift-gated check-ins, forge-alloy Merkle lineage, impact factors, economy last; canonical build order

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

* feat(px): one call-form example at the tool-menu header — teaches the SHAPE for ~20 tokens

2026-07-12 glass-box: all four personas learned the real tool NAMES within
hours but kept fumbling the invocation FORM (paren vs CLI-flag vs bare).
Per-tool hints stay dead (measured 77% boilerplate; error-manuals own the
correction seam) — one canonical example teaches the form without the wall.

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

* feat(cognition): perception-facts registry + fix two systematic prompt-budget under-counts

PERCEPTION-FACTS.md slice 2b: own-repetition (#134), peer-echo (#152),
[context] bounds (#152), and the steps-taken ledger (#151) now render
through ONE ordered registry (cognition/perception_facts.rs) instead of
four inline blocks in the deliberation faculty. Each fact is a
PerceptionFact impl with a stable id; render_facts fires a
perception.fact probe per fact per tick ({id, fired}) so which facts
rendered is glass-boxable from the probe stream; FactPolicy::disable(id)
is the A/B arm switch (deny-list, so new facts enroll live by default).
Facts stay facts — no imperatives — and the ledger keeps its explicit
zero-case (confabulation-shelter hardening).

Extraction exposed two REAL budget under-counts at the 4096-window edge
(the tool-menu call-form example, +20 tokens, pushed a borderline fit
test 1 token over — the failure predates this refactor):

- working_context_block's ~50-token wrapper header only exists when
  assembled context is NON-empty, but framing was estimated with an
  EMPTY context — every context-bearing prompt exceeded the estimate by
  the header. The header is now a named constant and the ctx budget is
  charged for it up front.
- The per-message chat-template charge was +2 tokens; real templates
  cost ~4-5 (<|im_start|>role...<|im_end|>). Now one
  PER_MESSAGE_TEMPLATE_TOKENS = 5 constant across the whole-message,
  straddling-trim, and giant-single-burst arms.

Both under-counts were llama-server-400 territory under a full window.

Tests: perception_facts 3 (registry parity, policy toggle, ledger
zero-case), llm_deliberation_faculty 19/19 (incl. the previously red
fit test), act_observe 16/16, deliberation_prompt green.

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

* feat(resources): disk pressure gets eyes and hands — reporters + first eviction owner (#155 wires 1+2)

The 2026-07-13 incident: 460 GB of creep (cargo-target 363 GB, three
persona workspace copies at 23 GB each, duplicate model stores) took a
926 GB disk to 40 GB free. Every mechanism designed for this was built
and running — DiskPressureMonitor logged level=high every 30 s, the
PressureBroker ticked relieve() every 5 s — but the monitor was started
with ZERO reporters (`[no reporters]` in every log line, so pressure
had no name) and no pool owning deletable disk content was ever
registered (the broker emitted its designed zero-byte "disk hot AND
nobody owns the eviction" alerts into a log nobody tails). On a public
user's machine this trashes their system; bounding our own footprint
is a ship requirement, not hygiene.

Wire 1 — reporters (disk_reporters.rs): one TrackedDir per known cache
class (cargo-target, genome-models, hf-hub, citizens, forge — the five
from the incident, pinned by test), fed by ONE DiskUsageScanner daemon
(5 min walks on the blocking pool; reporters read cached atomics inside
the 100 ms budget; unscanned dirs report "first scan pending", never a
false zero). Boot registers all five, and a process-wide registry lets
later boot phases reach the same instances — one measurement per class.

Wire 2 — first eviction owner (disk_eviction.rs): CargoTargetPool, a
budget-capped (50 GiB default) ResourcePool registered with the live
broker. Safety invariants, each pinned by a test: never race a live
build (non-blocking exclusive flocks on cargo's own lock files, any
held lock = free 0 and retry next tick); never leave the root (fixed
root-join ladder); derived artifacts only (incremental → tests → debug;
release/ never touched). Pressure is usage/BUDGET so the class is
bounded by policy long before the disk itself is critical. Evictions
decrement the shared measurement immediately so the 5 s broker tick
never re-fires against space already freed.

Remaining on #155: genome/hf-hub reference-aware LRU pools, workspace
CoW fix (stop copying repo + tools/models per persona), Warning+
escalation into the room + positron telemetry (#141), budget via
config.env single-owner (#124).

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

* test(resources): guard the CHAIN — broker→pool→real deletion + no ownerless cache classes

The 2026-07-13 incident happened with every unit test green: the failure
was wiring (monitor with no reporters, broker with no eviction owner).
Two chain-level pins make that failure shape unrepresentable again:

- broker_relieve_actually_deletes_from_an_over_budget_pool: a REAL
  PressureBroker against a REAL over-budget CargoTargetPool on a real
  temp tree — relieve() must free actual disk bytes (and release/ must
  survive). Any regression in pressure math, tier thresholds, act_above,
  registration shape, or the ladder fails here, not on a user's machine.
- every_cache_class_has_a_decided_eviction_story: each class in
  standard_tracked_dirs must have an owner pool OR an explicit deferred
  entry naming the task that owns its eviction. Adding a sixth cache
  class without deciding fails at test cost instead of at a full disk —
  a stock 512 GB laptop at the incident's burn rate (~60 GB/day of
  derived artifacts) dies in under a week.

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

* docs: no new cache dir without an eviction decision (2026-07-13 incident rule)

The disciplinary pair to the #155 wires: any directory the substrate
writes unbounded data into gets a TrackedDir row + a decided eviction
story (owner pool or explicit deferred entry), enforced by the
every_cache_class_has_a_decided_eviction_story test. Components that
are unit-green with dead wiring is the failure shape that took a 926 GB
disk to a day of runway; the chain test + this rule make it a red test
instead of a trashed user machine.

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

* feat(cognition): steps ledger honest in all three states — aged-out receipts never read as "nothing executed"

Glass-boxed live minutes after the perception-facts deploy: Asha's
working-memory window held 3 silence Facts and ZERO Receipts shortly
after she ran real searches — receipts are RARE entries in a chatty
capacity-bounded ring, so they age out while the session's act counter
(next_action_seq, reboot-durable via the volatile snapshot) keeps
counting. The old zero-case would then render "nothing has executed
yet" — a false statement about her own history, the exact inverse of
the confabulation shelter the explicit void was built to close.

WorkingMemory::actions_taken() exposes the counter; the StepsLedger
fact now renders three honest states: receipts listed (+ "N earlier
steps aged out" when the count exceeds the window), an explicit
nothing-has-executed void ONLY when the counter agrees, and "N steps
executed earlier — details aged out; recall can retrieve them" when
acts happened but their receipts left the window. Test pins all three
(tiny ring flooded by facts until the receipt ages out).

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

* feat(persona): resume-visibility — bootstrap publishes typed Busy availability for held claims

Joel 2026-07-13, post-reboot observation: the team resumed CORRECTLY —
woke, restored their volatile minds, saw nothing addressed to them, and
yielded per their adaptive cadence, exactly what they were asked to do
— but from the outside that was indistinguishable from a stall, because
a persona's state has no surface other than speech. A reporting gap,
not a behavior gap; the fix must not make them chattier.

Status is a PROJECTION, not a message. Bootstrap now ends by reading
this peer's work-roster claims and publishing one typed
AgentAvailabilityReported (Busy, note "resumed — holding: <cards>",
15 min TTL) per held repo — the channel positron/roster sources already
project and work_queue_status already displays. The board shows "back
and still on card X" with zero chat lines. WARN-and-continue like the
identity-card publish: a persona whose availability didn't post is
degraded-visible, never blocked from living. No claims → nothing to
announce (a quiet Ready needs per-room repo resolution — later slice,
with idle/busy transitions from the service loop).

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

* feat(cognition): laptop-lid contract — interruption is perceivable, cut-off work named + safe to repeat

Joel 2026-07-13: a core restart should be like closing a laptop —
reopen, see exactly what didn't finish, redo it in one motion. The
volatile tier restored her MEMORY but the interruption itself was
invisible: a dispatched command killed mid-flight was indistinguishable
from a finished one, so she could either trust work that never happened
or re-do work that did.

VolatileSnapshot gains saved_at_ms (gap rendering; 0-default on legacy
snapshots → no fabricated gap) and interrupted_dispatches — the LABELS
(never the dead handles — restoring those would fabricate in-flight
work) of dispatched commands still Running at save time. restore()
appends a [resumed] fact as the NEWEST window entry: how long the lid
was closed, and "cut off mid-flight and NOT completed: <labels> — safe
to repeat if still wanted", or "nothing was in flight" plainly. A fact,
never an instruction — she decides whether the cut-off work still
matters.

Round-trip test extended: running dispatch label survives the trip,
[resumed] renders newest with the safe-to-repeat marker, quiet path
says so plainly, legacy snapshots never guess a gap, counter still
resumes past restored receipts.

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

* chore(deps): bump airc pin 70c6d55 → f41d786 — board honesty + cache tmp-race fixes land

airc PR #1286 (merged to canary): `airc work board` and its lane/
workspace siblings read the COMPLETE cached projection instead of a
recent-event window that chat traffic empties (continuum #154), and
WorkBoardCache tmp files are per-attempt so the core's concurrent
per-persona board reads stop racing each other's snapshot renames
(the paired ENOENT lines in the core log). cargo check green against
the new pin; deploys with the next core rebuild.

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

* test(cognition): pin the #146 starvation mechanism — tip-advance + grounding window evicts low-frequency speakers

Blind-room incident #3 root cause, demonstrated: every engagement
(ignore/skip/respond alike) advances the channel bookmark to the TIP,
and the digest keeps only DEFAULT_GROUNDING=5 already-read elements.
A low-frequency speaker (the operator) posting into a high-velocity
room is read-without-necessarily-rendering on the next tick, then
permanently displaced from the grounding window once 5 newer peer
messages land — four chatty personas produce that in seconds. Verified
live: operator messages present in `airc inbox` and `airc events list`
(lamports interleaved, no epoch split, roster-present via join
heartbeats) yet absent from every persona prompt for hours.

The test walks the exact sequence and asserts the eviction, so the fix
— attended ≠ fetched (advance the bookmark only past messages that
actually RENDERED into a prompt), or velocity-aware grounding — has a
red/green target: flip the final assertion when it lands.

Exonerated along the way (all by direct probe): CLI publish routing,
daemon fanout (airc listen control), daemon retention/reads, digest
author filtering (none), ChannelElement text extraction, lamport
epochs, roster presence.

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

* feat(cognition): breadth over verbatim depth — the 3-message perception window becomes a many-turn window (#128/#146 fix, lever 1)

Measured live 2026-07-13: a persona's prompt held THREE chat messages
total in a busy four-persona room — her entire perceivable world. The
airc packer kept WHOLE messages newest-first, so a small budget filled
with 2-3 verbose essays; any low-frequency speaker (the operator) was
displaced within seconds, producing the blind-room incidents, the
post-reboot drift, and the stalled work cards. A conversation is
legible from turn HEADS; it is not legible from two verbatim essays.

pack_digest now charges each turn at most a per-turn cap (budget/8,
clamped 48..256 — a budget fraction, never a hardcoded model tier) and
head-trims long turns with an explicit "(…N-token message trimmed)"
marker; the NEWEST turn stays verbatim up to the whole budget (it is
what she is responding to). head_to_tokens joins the canonical
token_budget module as the head-keep sibling of tail_to_tokens
(head = right shape for a message; tail = right shape for a window).

Test pins the exact live failure: 6 long turns + 400-token budget →
all 6 delivered (oldest OPERATOR message survives, trimmed; newest
verbatim; budget honored). The old packer delivered 3 and the operator
message was gone. Remaining #128 levers: airc floor vs engram split,
#139 slot accounting upstream.

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

* docs(campaign): flywheel step 1 closed — first autonomous team-delivered program output, receipt verbatim

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

* fix(tools): code/list recovers a glob into a listing; work/claim rescues mistyped UUIDs

Two persona-tool ergonomic defects, each mined from 48h of live prompt-captures
across the four resident personas (the "tool coursework" signal — every act they
attempt is logged with its result).

code/list — 38% live fail, every failure the same shape: a model trained on
SWE-agent scaffolds reflexively reaches for list_files("**/*.rs"), a recursive
GLOB where code/list wants one directory. list_dir rightly rejected it, but the
bare NotFound taught nothing and the model retried the same glob forever. Now:
when the path IS a glob, resolve it via code/glob and project the matches back as
a listing — honest (they asked to "list" these files, they get them), widens the
surface with no new verb. Detection reuses the existing looks_like_file_glob.

work/claim — 28% live fail: the model corrupts a 32-char UUID by adding/dropping
ONE character mid-string (d7cfe47e0-8e39-… 9-char first group; a 33-hex variant),
and the clean parser rejected the near-miss outright. The short-id resolver only
fired for clean prefixes under 32 chars. Now the id-normalization decision is a
pure, unit-testable card_id_lookup(): clean UUID → Full; mistyped-length near-UUID
→ rescue via its intact leading-8 short id (the board's displayed width); <4 hex →
Invalid (fails loud with the real parse error). The leading short id survives a
middle corruption, so the reflexive claim resolves.

Both paths pinned by a regression test in the existing module test mods.
Tasks #160, #161.

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

* fix(cognition): workspace-map roots at the persona's OWN citizen layer, not the core cwd

The workspace-map grounding source (the fix for the `src/**/*.rs`-matches-nothing
glass-box) was rooting at std::env::current_dir() — the CORE's cwd — while a
persona's HANDS root at their citizen layer (~/.continuum/citizens/peers/<peer>/
workspace, a CoW clone). So the map taught a root the persona could never cd to,
and it never reflected files the persona itself created in its own layer. Live
capture confirmed: the map claimed "rooted at /Users/joel/Development/continuum"
while the tools acted elsewhere.

This is the #49 swap the module header always anticipated ("swaps to the leased
root when #49 lands"), and it's doable now because the citizen layer already
exists. New CitizenLayerWorkspaceLayoutReader resolves the persona's own layer
path (read-only — no CoW provisioning, that's the hands' job on first write) and
lists it; unprovisioned → falls back to the shared base cwd, whose top-level
layout is identical, so grounding stays truthful and never empty. Extracted a
pure citizen_layer_path() from ensure_citizen_layer for the read-only resolve.

Now the map's root == the tools' root, and it updates as the persona shapes its
workspace — orientation matches reality instead of describing a tree the persona
can't touch. Pinned by a reader fallback test.

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

* feat(tools): first universal AI-tool conformance invariant — every AI-facing command must be self-describing

Joel's directive (2026-07-13): stop fixing tools one at a time. Make the invariant
part of the tool BASE so "a tool with xyz problem can't exist" — every tool
inherits it and must comply; later, require the tools to work for AIs in CI.

The tool-defect ledger (silent no-op #159, glob-in-path #160, corrupted-id #161)
is one class: a model reaching for a tool it couldn't correctly read or call. My
#160/#161 were point fixes — the outlier-A proof that the invariant is right. This
is the first LIFT of that invariant to the whole registry: a conformance test over
command_registry() asserting every AiSafe command is self-describing (a non-trivial,
model-usable DESCRIPTION). A tool a model can't read WILL be mis-called; this makes
an unreadable AI tool fail the build, so it can't be merged, so it can't exist.

Static seed. The behavioral invariants (fuzzy-id resolution, glob tolerance,
fail-loud-with-suggestion — the #159/#160/#161 class made universal) attach next as
per-tool exams the generator scaffolds and a runner executes here and in CI. See
task #163 for the full harness + generator-hook + CI-gate design.

Passes clean across the current registry — every live AI tool already complies.

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

* feat(id): shared short-form UUID resolver — work/* delegates, persona/instances/get gains it (#164 batch 1)

Joel: "short form uuids ought to work too" + "fix a few at a time." Lifted the
prefix/near-miss id logic out of work.rs (the proven outlier) into ONE shared
primitive crate::id_resolve, then delegated the first consumers to it.

id_resolve::normalize(s) classifies a raw id string: clean UUID → Full; a
mistyped-length near-UUID (the model's add/drop-one-char corruption) or a bare
short form → Prefix on the intact leading-8; junk → Invalid. id_resolve::resolve(s,
candidates, label) expands a prefix to the UNIQUE candidate, failing loud (naming
the id kind) on zero/ambiguous. The candidate set is the ONLY per-type knowledge —
so any id-taking verb inherits the tolerance by supplying its candidates.

- work/claim|release|state|heartbeat: resolve_card_id now delegates to id_resolve
  (candidates = live board card ids); deleted the private card_id_lookup +
  parse_card_id. Behavior id…
joelteply added a commit that referenced this pull request Jul 20, 2026
…ith code/list" (#206)

The [workspace-map] block told a persona to "drill in with code/list and code/tree"
even for an EMPTY workspace — nonsense grounding that invites the exact discovery-
loop that scored a from-scratch web-dev task 0 (she called file_tree/read_file on a
void and never wrote the file, so the image-feedback loop never started).

Now an empty workspace renders its truth: "EMPTY — nothing to read/list/search;
CREATE with code/write; produce first, then read back or observe what you made." It
counters the read-a-void reflex explicitly while staying non-steering (states the
empty state, never names WHAT to build — asserted in the test). This is the
write-first half of the image-feedback loop: the eyes are moot until the hands fire.

Note (root cause for the webdev case): the eval fork acts in the CORE REPO cwd, so
its map is NON-empty and she's grounded to explore the big tree — this fix helps a
CLEAN task workspace, and the full webdev unblock needs from-scratch build tasks to
run in an isolated empty workspace (#49-adjacent); tracked on #206.

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 20, 2026
…atches hands (#206/#49)

When an eval pins a workspace_root, code/create-workspace re-roots the persona's
HANDS there — but the [workspace-map] grounding was baked at spawn rooted at the
citizen layer, so she reasoned over the WRONG layout: her hands in the pinned dir
while the map described the citizen-layer repo clone. For a from-scratch build that
means a clean empty dir reads to her as the big repo → she explores instead of
building (the webdev 0, #206). For the existing workspace_root caller (SWE-bench)
the map described the citizen layer, not the target repo clone — also wrong.

Fix: FixedRootWorkspaceLayoutReader + WorkspaceMapSource::for_pinned_root; the eval
fork (fork_eval_cycle / _with_adapter) takes workspace_root and, when set, swaps the
"workspace-map" grounding's source Arc to one rooted at the pinned dir (policy /
deferrability / requires_hands preserved). Now eyes-grounding == hands root.

OPT-IN → zero blast radius: no-op when no root is pinned, so the live path and every
non-pinned benchmark are untouched. Correct for BOTH callers: an empty pinned root
renders write-first grounding (commit e5d38ef), a repo clone lists its real dirs.
Unit-tested both. This is the foundational half of the graphics link — the remaining
half is benchmark/run pinning a clean per-task root for build tasks (#206), then a
warm-lane re-measure.

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 20, 2026
…not core cwd (#206 — the false-zero)

The writer/grader dual-root gap (#49), caught live: Asha built a spec-perfect login
page (h1 'Sign in', email+password inputs, Submit button — all 3 ui_checks satisfied)
into the pinned from-scratch workspace ~/.continuum/eval-workspaces/webdev-rs/, and the
run scored 0.0. Cause: perception_grade absolutized a relative target ('index.html')
against std::env::current_dir() (the core repo cwd), where nothing was written — so
perception/observe saw an empty/missing tree and grade_ui found no elements. A correct
render read as a false zero, which would corrupt every lift measurement built on it.

Fix: thread the same workspace_root the fork rooted her hands at (via code/create-workspace)
into run_pass → perception_grade, and base relative targets on it. No pin → cwd, exactly
as the hands behave. Writer and grader now agree on the root by construction.

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 20, 2026
… browser eye-node (#206 — the real false-zero)

The webdev grade scored 0 on a spec-perfect render because perception/observe is a
Provided capability: it routes to a browser eye-node adapter and fails loud when none is
connected — and the eval core is headless. So EVERY from-scratch UI task was ungradeable,
scoring a false zero regardless of what she built.

Fix: a static-HTML eye (perception/static_html) that parses her rendered index.html into
the perception ProbeNode tree with html5ever (via scraper) — implicit ARIA roles, accessible
names, direct text, curated attrs. Her ui_checks are structural (tags/roles/text/counts), a
pure-parse question a browser's a11y tree answers the same way. perception_grade now routes
a local file:// artifact to this eye and only routes remote/live surfaces to the browser
adapter. Grading is deterministic, reproducible, and needs no client connected. The browser
eye stays the path for JS-rendered / dynamic pages (a persona's live seeing loop); this is
the grader's eye for a static artifact.

Also (prior, same arc): perception_grade resolves relative targets against the PINNED
workspace_root the fork rooted her hands at, not core cwd (the #49 dual-root gap).

Tests: Asha's exact live login page grades 3/3 headless; <button> carries implicit role
button; a missing artifact scores a MISS not a false 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 3, 2026
…t act in — provision-and-tell (#49 severe slice)

Two stacked perception lies killed a full resident evening (2026-08-02):
(1) the mixed-truth window — an unprovisioned layer made the map fall
back to the SHARED cwd's layout, so a fresh persona perceived
directories (conway_game_of_life…) its first tool call, provisioning
and acting in the layer, could not see: the live 'I see it / my list
is empty' roommate contradictions, verbatim; (2) nothing ever TOLD the
persona it lives in a private CoW layer, so roommates reasoned as if
the room shared one filesystem and concluded each other's work was
missing or wrong.

Fix: the reader provisions through the SAME ensure_citizen_layer the
hands use (incl. its sync-forward self-heal) and reports THAT root —
map and tools cannot describe different worlds; and the rendered map
now states the isolation contract (your own layer over the shared
base; teammates' files live in THEIR layers; commit to share) so the
collaboration model is perceived, not guessed. Param renamed peer_id
(it always received the peer id, never the persona id). Test repinned
from the deleted fallback to the provision-and-tell contract, with
throwaway-layer cleanup.

The remaining #49 arc (airc lease API, cross-peer work propagation
cadence, shared task workspaces) stays open — this closes the
perception-lie half that made the divergence invisible AND
misattributed.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Aug 3, 2026
…, catalog row, gateway adapter (#306) (#2126)

* feat(catalog): DeepSeek-V4-Flash via the ds4 sidecar — the 304B deliberator joins the registry (#306)

Provider 'ds4' (DwarfStar local, OpenAI-compatible on :8901, single
resident model, external lifecycle) + model row 'deepseek-v4-flash'.
Measured on this M5 2026-08-02 (launch day): 2.73 t/s gen cold /
~2.3 t/s warm at a 16GB governed expert cache with the full stack
resident; compile-graded 3/3 on the merge_intervals Rust probe.
persona_serving_eligible=false until the sidecar lifecycle is governed —
evals reach her by explicit model id; the autonomic planner never
adopts her by surprise.

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

* feat(inference): register the ds4 sidecar adapter at boot — probe-then-register, DMR's shape (#306)

Priority 2, below in-process llama.cpp and DMR — ds4 only wins the
models it exclusively claims (deepseek-v4 prefix). Operator-managed
endpoint on :8901; not reachable at boot = not registered, with a
teaching log line. Watchdog parity follows with governed lifecycle.

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

* fix(catalog): ds4 residency authority is the SIDECAR, not the serving daemon (#306)

single_resident_model made the adapter consult the llama-server snapshot
— which truthfully answered 'Devstral is resident' and refused her (live
2026-08-02). dynamic_model_catalog is the honest contract for an external
sidecar: supports_model answers from ds4's own /v1/models.

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

* fix(persona): workspace map must never describe a root the hands don't act in — provision-and-tell (#49 severe slice)

Two stacked perception lies killed a full resident evening (2026-08-02):
(1) the mixed-truth window — an unprovisioned layer made the map fall
back to the SHARED cwd's layout, so a fresh persona perceived
directories (conway_game_of_life…) its first tool call, provisioning
and acting in the layer, could not see: the live 'I see it / my list
is empty' roommate contradictions, verbatim; (2) nothing ever TOLD the
persona it lives in a private CoW layer, so roommates reasoned as if
the room shared one filesystem and concluded each other's work was
missing or wrong.

Fix: the reader provisions through the SAME ensure_citizen_layer the
hands use (incl. its sync-forward self-heal) and reports THAT root —
map and tools cannot describe different worlds; and the rendered map
now states the isolation contract (your own layer over the shared
base; teammates' files live in THEIR layers; commit to share) so the
collaboration model is perceived, not guessed. Param renamed peer_id
(it always received the peer id, never the persona id). Test repinned
from the deleted fallback to the provision-and-tell contract, with
throwaway-layer cleanup.

The remaining #49 arc (airc lease API, cross-peer work propagation
cadence, shared task workspaces) stays open — this closes the
perception-lie half that made the divergence invisible AND
misattributed.

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

* feat(work): work/list + work/get — the board's read half (#309)

The surface was write-only (claim/create/release/state/heartbeat); card
content reached personas ONLY via the perception-side projection, so a
persona that missed the render — or wanted to re-verify a spec mid-task
— had no tool to fetch it. Live 2026-08-03: 'I don't have access to the
work card' was LITERALLY TRUE, repeated for an hour by two personas
including the bakery card's own claimant after a failed observe; the
card sat at five plans / zero files partly because nobody could re-read
the spec. Every write-only surface eventually proves it needs its read
half.

work/list: short id + title + state + owner per card, optional state
filter. work/get: full card (title, BODY = the requirements, state,
owner, claim id) by full-or-short id via the shared resolver. AiSafe,
read-only, same board projection the write verbs already consult.

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

* fix(work): offer work/list + work/get in the native tool surface — registered-but-invisible was the residual #309 hole

Prompt-capture diagnostic on live residents: the offered vocabulary carried
claim_task but neither new read verb — they registered in the command registry
but never opted into NATIVE, so the board stayed effectively write-only from
the persona's seat (Atlas kept asking the room for card specs post-deploy).
Adds NATIVE + trained-reflex aliases (list_tasks / get_task, mirroring
claim_task) and pins the pairs in the dialect round-trip test.

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

---------

Co-authored-by: Claude Fable 5 <[email protected]>
joelteply added a commit that referenced this pull request Aug 3, 2026
…esolve gitlinks shared-wins (#49 tail) (#2137)

Glass-boxed 2026-08-03: every resident's citizen-workspace sync failed on every
ensure with 'Recursive merging with submodules currently only supports trivial
cases'. Mechanism: the sync's autosave commits the persona's stale vendored
submodule pointer while the shared checkout advances it — both sides move the
gitlink, and git's recursive merge refuses non-trivial gitlink divergence
regardless of -X theirs. The self-heal built for the stale-clone bug thereby
stranded every workspace stale forever (personas kept perceiving July trees;
the #2135 debris sweep could never reach them).

Fix: when the failed merge left ONLY gitlink (mode 160000) entries unmerged,
resolve each to FETCH_HEAD's recorded sha (shared wins — same doctrine as
-X theirs for files: the framework is not hers to diverge) and conclude the
merge. Any other conflict shape still aborts loud with the workspace intact.
Probe: workspace.sync.gitlink_resolved. Regression test builds the exact
both-sides-moved shape with a real submodule.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5 <[email protected]>
joelteply added a commit that referenced this pull request Aug 3, 2026
…s — modify/delete included (#49 tail, round 2) (#2142)

Round 2 of the stranded-sync glass box: the #2135 debris sweep DELETED
conway/wordstats from shared while every citizen's autosave had modified them —
'-X theirs' never auto-resolves modify/delete, so the sync now failed forever on
the very files it was meant to clear (verified live post-deploy 18:17).

Generalize the gitlink-only salvager to resolve EVERY staged conflict
shared-wins: theirs-stage present -> adopt shared's version (files and gitlinks
via checkout FETCH_HEAD); theirs-stage absent -> shared deleted it, deletion
wins the tree. The persona's versions survive in her autosave history —
preserve-first is the commit, not the tree. Merge-failed-without-staging still
aborts loud. Probe renamed workspace.sync.conflicts_resolved. New regression
pins the modify/delete shape incl. history-preservation.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5 <[email protected]>