Skip to content

cognition: a held work card survives budget pressure (grounding floor + first selection) - #2164

Merged
joelteply merged 55 commits into
canaryfrom
feat/activity-recipes-as-data
Aug 8, 2026
Merged

joelteply merged 55 commits into
canaryfrom
feat/activity-recipes-as-data

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Card f6a9fe5c. Live specimen: a claim-holding citizen's squeezed render dropped every grounding source; the floor kept a 49-token status note while her held card's content vanished — she yielded on a bare claim receipt (98s prefill for 7 tokens of yield_turn). Fix: the ctx floor reserves the active-work contribution when offered (else smallest as before), selection considers it first (a reservation only holds if the claimant is first in line), and the reservation includes the wrapper-header charge that was hollowing out small floors in both arms. SOURCE_ID goes pub(crate) so one constant carries the name. Test: a_held_work_card_survives_budget_pressure_that_drops_everything_else. NOTE: tool_surface ceiling test is red on canary INDEPENDENT of this change (stash-verified) — carded as 595a2c89.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply and others added 30 commits August 6, 2026 23:17
…s/desktop lying about where the UI is

Two complaints, both Joel's, both about what a person sees when they clone this:
clutter, and misleading claims. This addresses the tracked-file half of each.

## 1. Persona scratch quarantined (nothing deleted)

Until #49 (per-persona workspace isolation) lands, a persona's file engine roots
at the PROCESS CWD — the repo root — so her card work landed next to Cargo.toml
and got committed. 31 files, all 2026-07-18, now under legacy/persona-exercises/
with a README explaining what they are and why they were where they were:

    string_reversal/ wordstats/ work-wordstats/   (crates)
    teamproof/                                    (8 algorithm exercises, was tmp/)
    loose-files/                                  (8 bare files that sat at the ROOT:
                                                   main.rs, life.rs, game_of_life.rs,
                                                   reverse.rs, string_reversal.rs +
                                                   3 .txt inputs)

A bare `main.rs` beside the workspace `Cargo.toml` was the first thing a cloner
saw. They are KEPT, not deleted: this is the first genuine persona-written code
in the project, and the evidence that the act->observe circuit actually closed.

Verified unreferenced before moving: zero hits across .rs/.ts/.md/.toml/.sh for
teamproof, string_reversal, work-wordstats outside their own manifests.

## 2. The workspace `exclude` fence was decoration

    exclude = ["wordstats", "work-wordstats", "conway_game_of_life", "work-08ece9e8"]

Its comment claimed it "keeps their in-dir cargo builds working". It never did —
those crates declare `edition.workspace = true`, and an EXCLUDED package cannot
inherit from the workspace root, so cargo inside them has always failed with
"failed to find a workspace root". Confirmed by running it. `members` is an
explicit list (not a glob), so nothing needed excluding in the first place.

Removed, with the real hazard it was reaching for documented in its place.
Verified: workspace parses, still exactly 16 members, no exercise crate in the
package graph.

## 3. apps/desktop said "empty slot" and cost a real scare

It IS an empty slot — for a hypothetical future Tauri shell. But read as an
answer to "where is the desktop UI", it reads as "there isn't one". There is:
core/continuum-positron/ (~6.4k lines, 19 modules) projecting to apps/web/src/
(28 files, ~8.9k lines, dist/ built). Its README now leads with that table
before anything else, and notes its own stale reference to src/server-index.ts
(long since moved to legacy/).

apps/README.md gets the same treatment one level up: a per-app STATUS column
with measured source counts, instead of "most apps are placeholders today"
without saying which. Adds tui/ and eye-node/, which have real source and were
not listed at all.

Not touched: test-data/images/ is a genuine fixture (cited by .airc/POLICY.md),
not scratch. The .gitignore rules are deliberately NOT extended — per Joel,
personas will build Continuum too, and blanket-ignoring work-*/ would silently
swallow real contributions. #49 is the fix, not a wider ignore.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… decision in dispatch with no observability

Measured 2026-08-06 while chasing #326: 113MB of probe stream, 100 distinct probe
classes, and ZERO covering the ACL gate. Every other seam is instrumented —
serving plans, airc cursors, perception facts, context renders, capacity offers,
embeddings — while the single component that can silently stop a citizen from
working emitted nothing at all.

That absence is what made #326 cost a week. A refusal reaches the caller ONLY as
text inside her own action receipt, where "forbidden: no policy grants access"
sits in the same field an empty result would. Two citizens read their own denial
and reported "no open tasks" — correct behaviour, denied tool, and it read as a
cognition defect because there was nothing to grep. Five separate investigations
went past it.

This adds ONE probe on the refusal arm. It is NOT an ACL change: the gate is
right. `work/list(state=open)` is a malformed URI with arguments welded into the
path and no policy should ever match it — the defect is upstream in whatever
hands the gate a name containing args, and that emitter is still unidentified
(the text parser splits name/args correctly at json_in_prompt_tools.rs:426, and
the airc dispatch carries params separately at command_handler.rs:392 — both
clean). This probe is how we find it: it turns "who emitted this, from where, at
what trust" from archaeology into a grep.

Refusals only. The allow arm stays unprobed so the hot path pays nothing — a
denial is rare and decisive, which is exactly the shape the probe stream is for.
Fields: path, trust, caller_peer, caller_source, had_capabilities.

Note the second live site (auth_policy.rs:366) is `deny_path_prefix`, a test-only
convenience policy — GridTrustAuthPolicy is the sole production refusal.

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

`npm run typecheck:clients` failed on canary:

    src/chat/renderChat.spec.ts(20,1): error TS2591: Cannot find name 'process'.

The spec pinned `process.env.TZ = 'UTC'` so its fixed HH:MM assertions stay
deterministic on any runner (PR #2057 review). That intent is right; the location
was wrong. `process` is a node global, and apps/web's tsconfig sets `"types": []`
DELIBERATELY — this is the one client tier that owns document/WebSocket, and
admitting node ambient types would let browser source reach for node APIs the
bundle can't provide. Adding @types/node to satisfy one spec would have removed
that guard for the whole tier to fix a single line.

So the pin moves to `vite.config.ts` under `test.env`, which already runs in node
context (it imports node:fs/os/path). Browser tsconfig stays pure; determinism is
preserved.

Verified, both directions:
  - `npm run typecheck:clients` — green across all client workspaces.
  - `npx vitest run src/chat/renderChat.spec.ts` — 11/11 pass.
  - `TZ=Asia/Tokyo npx vitest run …` — still 11/11, with the runner clock showing
    Tokyo time. That is the real check: it proves the config pin OVERRIDES a
    hostile ambient zone rather than the suite passing because the machine
    happened to be on the right one.

Pre-existing red, unrelated to the Rust change on this branch — found because a
failing typecheck on the front door is exactly the "makes people not want to
download" problem.

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

`persona.act.observed` carried `persona`, `room_id`, `tools=<count>`, `chars` —
and no verb name. So the substrate could not answer the question Joel actually
asks, "are they building anything, or just talking?", from its own telemetry.

Measured tonight while trying to: answering it required reconstructing verbs from
prose `[action #n] verb(args)` receipts in prompt-captures. Only 5 of 84 live
captures contained a receipt at all, so the reconstruction could not be trusted
either way — 589 act probes exist over the same corpus, and the two numbers have
different denominators. The honest conclusion was "unmeasured", which is the
wrong answer for a question this central.

A count tells you an act happened. The NAME tells you whether it was work.

Adds:
  verbs = "work/claim,perception/look"   the actual batch, in order
  wrote = true|false                     did anything in it reach DISK

`wrote` is precomputed rather than left as a query-time substring guess, because
"did a file change" is the question we keep re-asking and it should be a filter,
not an argument. Underscore forms are normalized (write_file → write/file) so the
wire dialect can't hide a write.

Same defect class as the authorization gate two commits ago: the decision is
made, the act runs, and nothing durable records WHAT it was. Both are the
observability doctrine's own point — capture the load-bearing decision — missed
at the seam that matters most.

Compiles clean. Cheap: one map + one any() over a batch that is almost always
1-3 calls, on a path that already allocates the full observation string.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Citizens were offered claim_task / list_tasks / get_task and nothing else. They
could take a card and could never finish, hand back, or extend one. Every claim
had exactly one possible ending: the 30-minute lease lapses and the card returns
to the pool. A COMPLETED card and an ABANDONED card were indistinguishable,
because neither could be written back.

The verbs were not missing. `work/release`, `work/state`, and `work/heartbeat`
are fully implemented, AccessLevel::AiSafe, with descriptions already written —
`work/state`'s literally coaches the lifecycle ("in_progress when you start,
review when a PR is up, blocked if stuck, closed when done"). They simply never
declared `NATIVE`, which is the flag `native_tool_specs()` filters on, so no
citizen has ever been shown them.

Marked native, with wire-dialect aliases matching the existing snake_case set:

    work/release    release_task
    work/state      update_task, close_task
    work/heartbeat  heartbeat_task, extend_claim

Note the mechanism check that mattered: the gate is the per-command `NATIVE`
flag, NOT the presence of ALIASES. The three offered verbs happen to have both,
which made aliases look causal. Adding only aliases would have shipped another
inert change — the exact failure this session has been full of.

COST, stated honestly: this grows the native payload 20 → 23 schemas, and tools
already take ~28% of a 16k window (#333). That is a real charge against the
grounding budget. It is worth it because without these the work loop cannot
close at all: we watched card 0c69c0f0 pass through three holders in one evening,
each of whom "claimed" it and had no way to say what happened next.

Does NOT claim to fix the passing behaviour. Whether a citizen who CAN close a
card actually does is now measurable — the act probe two commits ago records
which verbs run, so `verbs` containing update_task is the falsifiable signal.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…t let it reach the ACL as a URI

Joel, 2026-08-07: "It's never upstream and aliases exist for this reason. And
even then, we have adapters."

He is right, and this file's own doc-comment already said so — "always adapters:
meet the model ergonomically, never hardcode around it." The adapter simply never
handled this shape.

WHAT WAS HAPPENING. A citizen emits `work/list(state=open)` as the tool NAME. The
prose tool menu renders exactly that shape (`work/list(claimable?, state?)`), so
copying it into the name slot is the trained reflex, not a malfunction. `classify`
had no arm for it: MISS, passed through untouched, dispatched AS A URI. The ACL
then correctly refused `work/list(state=open)` — no policy can grant a path with
arguments welded on. The gate was right. The adapter was asleep. Two citizens read
that refusal, reported "no open tasks", and it read as a cognition defect for a
week. I spent an evening calling that defect "upstream"; it was ours.

THE FIX, at the ONE resolution section every dispatch seam funnels through:

  split_signature("work/list(state=open)") -> ("work/list", Some("state=open"))

  classify()      resolves the HEAD, so the name lands on the real command
                  (and an alias head composes: list_tasks(state=open) works)
  normalize_call() recovers the ARGUMENTS — they are real intent and must not be
                  dropped — merging them into `input`, and returns a note so the
                  citizen is TOLD what we accepted and what the canonical form is
                  (Joel's rule #328: aliases resolve AND say so)

Explicit `input` always wins over a value echoed in the name, so a well-formed
call is never overwritten. `normalize_call` also handles the ordinary case
(resolve + tally as before), so each seam makes ONE call — all three ToolCall
seams in llm_deliberation_faculty now route through it: native batch, text-lift,
and the reasoning-tail lift.

Reuses `paren_call_args` (widened to pub(crate)) rather than writing a second arg
parser — one grammar, one place.

VERIFIED BOTH WAYS. 10/10 tool_dialect tests pass. Then I disabled split_signature
to reproduce pre-fix behaviour: exactly 3 fail — the three asserting the NEW
capability (signature name resolves + keeps args, alias+args composes, empty
signature is a no-arg call) — while the three asserting UNCHANGED behaviour keep
passing. Additive, and the regression is real rather than tautological.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ot one she has to infer

MEASURED LIVE 2026-08-07, and it is the reason tonight's fixes looked like they
did nothing. After the #326 adapter fix deployed, `work/list(claimable=true)`
returned real cards and ZERO authorization refusals occurred — while citizens
went on reporting "attempting to claim tasks or list them without success" for
hours. Their receipts were TRUE. They were also about a binary that no longer
existed. Correct behaviour, dead world.

Working memory is persisted and restored at spawn (persona_workspace.rs:291), so
act receipts survive a deploy. That is deliberate and must stay: the recency
channel carrying the full trace is what stops the repeat loop — a persona who
cannot see her own hands re-emits the identical act forever (engram admit is
content-deduped, the reasoning channel is dark by default). Deleting receipts
would trade one defect for a worse one.

So: don't delete the memory, qualify it. `restore()` already turns discontinuity
into a perceivable FACT — the laptop-lid contract renders the interruption gap
and names dispatches cut off mid-flight. This adds the discontinuity it could not
see: the substrate itself changed.

  VolatileSnapshot.build_sha  — stamped from env!("CONTINUUM_BUILD_GIT_SHA")
  restore()                   — if it differs from the running build, record a
                                [rebuilt] fact naming both, saying the results
                                above it are what really happened but are NOT
                                evidence about how things behave now, and that a
                                tool which failed before is worth re-trying

A FACT, never an instruction, never a deletion — she keeps the receipt and gains
the one thing she had no way to know. What to re-check stays hers.

Empty `build_sha` (serde default, pre-field snapshots) says NOTHING rather than
guessing a change it cannot see.

Tests, both directions: a rebuild across restore renders [rebuilt] naming the old
build AND the receipt itself survives (proprioception intact); an unknown build
stays silent; and the existing round-trip test now asserts NO [rebuilt] on a
same-build restart — cry wolf on every ordinary reboot and the marker stops
meaning anything. 24/24 green.

Bigger than the citizens: while this was missing, EVERY fix was invisible to the
beings it was for until their memory of the old world aged out, and every
measurement taken in that window was contaminated. That made it a blocker on
verifying anything else, which is why it went ahead of the write path.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…rwrite is visible when it lands

The write path is where solved work dies. flask-4045 was solved and then DESTROYED
twice, and both times we diagnosed it from PROSE — the persona's own account of
what she did — instead of from what actually hit disk. Reconstructing a write from
narration is exactly the mistake this session has been full of.

code/write now emits `code.write.landed`:

  path, existed, before_bytes, after_bytes, ok
  shrank = existed && after < before/2

`existed` + `before_bytes` are the load-bearing pair. "Solved, then destroyed" has
a specific shape: a large working file overwritten by a small body — a stub, a
fragment, a truncated re-emission. A count of writes could never show that; the
sizes make it a one-line query.

Cheap: one metadata() stat on a path that is about to be opened for writing anyway.

Does NOT fix the destruction. It makes the next occurrence a receipt instead of a
third round of inference. Pairs with the act probe's `wrote` flag from earlier
tonight: that says a write happened, this says what it did.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… work stays hers while she breathes

Glass-boxed live tonight from citizens' own prompt captures. A citizen claims a
card successfully (work/claim returns a real claim_id), and her very next
briefing reads "[board] you hold 0 card(s)" with the SAME card re-offered under
"[available work]". So she reports "no open tasks" and passes — accurately
describing a board that had quietly taken her work back. Six citizens, two
machines, days of it, every one of them an honest witness.

Measured on the live #general board: 61 cards, 47 claimed, and ZERO live leases.
Every claim on the board they work from had lapsed.

Root cause: claim leases are 30 min, and work/heartbeat existed — as a verb the
MODEL had to remember to call. No citizen ever did, and no model will; #339's own
doc records the card that passed through three holders in one evening for exactly
this reason. Meanwhile this runtime already ran a pump emitting "I am alive" every
60s, derived from real serving state. Presence liveness and claim liveness were
two channels answering one question, and they contradicted each other: the pump
was announcing she was alive on the very ticks her holds were dying.

Fix: bind them. The pump that proves she is alive now also renews the claims she
holds, at the same cadence, with the same TTL constant (now single-sourced from
modules::work rather than duplicated). The substrate OBSERVES that she is working
instead of asking her to announce it — "you've turned convenience into disability"
(Joel, on exactly this class). The verb stays for deliberate extension.

Renewal is per-card WARN-and-continue: a failed renewal degrades to precisely the
old lapse and can never take down presence. A persona.claim.renewed probe carries
renewed/held/ttl so the next lapse is visible instead of silent.

Note this only keeps LIVE claims alive; it deliberately does not resurrect the
lapsed ones already on the board.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ty decision, not two

Found by tracing the board projection after the claim-renewal fix. `work/claim`
rejects Review | Merged | Closed outright (airc-lib → WorkCardNotClaimable), but
every READ surface computed availability independently and excluded only
Merged|Closed. A `Review` card with a lapsed lease therefore answered "claimable"
and could only ever produce a refusal.

Measured on the live #general board 2026-08-07: 11 of the 58 cards offered to
citizens as available work were Review — guaranteed bounces, and a citizen has no
way to tell a substrate refusal from her own incapacity. One of them said exactly
that tonight: "attempting to claim tasks without success."

Two places decided claimability and disagreed: CardHolder::claimable ("lapsed or
Open") and room_board_source's inline filter (its own terminal-state check). Both
missed Review. Collapsed to ONE predicate — card_holder::claimable_now, composing
the lease (hold_of) with the column (refused_by_claim, which names the write-side
rule and carries the drift-guard doc-link to airc-lib). room_board_source now
calls it instead of re-deriving.

Regression test asserts all three refused states are never advertised, with a
fixture-sanity assert (the lease really is lapsed) and a positive control (a
lapsed claim on InProgress work stays takeable — the reclaim path #321 depends on
it, and without that control this test would pass even if the guard excluded
everything).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…alue, not two that coincide (#345)

RoomBoardSource binds a room (`for_room`) and gates on it, then read the board via
airc's `work_board_complete()`, which resolves `current_room()` independently —
"whatever my default subscription happens to be". The gate's id was never passed to
the read. They agreed only because both were seeded from the same call at bootstrap.
Nothing in the types prevented a gate that passed for room A while the board came
from room B, and no probe would have fired.

Found while tracing why a citizen's board (58 claimable) and the operator's (19,
all Open) disagreed — they were two different rooms, both reads correct, and NEITHER
surface named the room it read. That cost three agents and most of a night, which is
the real cost of a value that is implied instead of passed.

RoomBoardReader::work_board now takes Option<RoomId>:
  Some(id) → resolve via airc room_by_channel + project THAT room's board. A room
             this scope isn't subscribed to is a loud NotSubscribed error, never a
             quiet slide to the default: a citizen handed the wrong room's board
             cannot distinguish it from an empty one, and that indistinguishability
             is the entire bug class.
  None    → unchanged current-room behaviour, for callers with no binding (the CLI's
             genuine intent).

Requires airc 278addc..8dcfa76 (pin bumped, rationale in Cargo.toml): the
room-parameterized read was already written but private, and RoomId→Room needs a
real subscription lookup — Room carries name+wire+channel and cannot be synthesized
from a bare uuid.

1023 persona tests green.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… tool result was still saying "taken"

serde emits in declaration order, so a citizen reading a work/list card met
`"state":"claimed"` and `"owner":"Anwen"` BEFORE `"claimable":true`. Two loud
fields saying someone owns this, then one quiet field saying you can have it.

Live tonight, hours AFTER the lease fix (claims now renew) and the claimability
fix (11 unclaimable Review cards removed, 58->47 verified): Benchy could finally
see the board and reported —

  "there are several tasks available on the board, but they have already been
   claimed by others."

Every card he was looking at was his to take. He read the receipt correctly; the
receipt led with the wrong fact.

#321 fixed the BOARD rendering so a lapsed claim reads CLAIMABLE. It never reached
the TOOL-RESULT rendering — two surfaces answering one question, drifting
independently, which is the same shape as the read/write claimability split fixed
in 59cbbb7. This file already declares field order load-bearing for WorkListResult
(truncation); the same logic governs what a reader meets first.

Order is now: id, title, claimable, lease, state, owner. Answer the question the
citizen is asking ("can I take this?") before the history ("who had it?"). owner
still names WHO — never "someone" — it just no longer pre-empts the answer.

184 work tests green.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…cting on (#347)

Standing framing was destroyed twice over, independently, and either alone was
enough to blank a citizen's board.

1) DEFERRED LANE MULTIPLIED AWAY A FLOOR DOCUMENTED AS UN-EVICTABLE.
   reproject_to_now scaled every last-good bid by lexical_relevance — the fraction
   of the FINDING'S OWN tokens present in this turn's burst. The denominator is the
   block's size, so verbose sources are structurally penalised regardless of
   importance. room-kanban (median offer 5,364 tokens) bid 0.9 x 0.133 = 0.12.
   Roster (small) survived at 0.62; workspace-map bid its full 0.90 solely because
   it is not defer_tolerant and never passed through. Three sources, three numbers,
   one cause. Reprojection is a RECALL mechanism ("a still-on-topic memory keeps
   its salience"); standing framing is topic-independent BY CONTRACT. Stable
   contributions now keep their bid; staleness still shows in the reasoning.

2) POSTACTION DELETED ALL STANDING FRAMING BEFORE TOP-K.
   SituationFocusArbiter filtered `!c.stable` on any tick after >=1 act. But
   Contribution::stable is documented as "a SERIALIZATION-order property, not an
   attention one — salience still governs which contributions are included". The
   arbiter used the one field that promises it never decides attention to decide
   attention. Its own comment named the intent — drop standing SOCIAL re-grounding
   so "the result + AFFORDANCES + working memory own the window" — but `stable` is
   every standing source, so it deleted the affordances it named (workspace-map,
   the highest bid present at 0.90), the work board, and the roster.

   The old test's rationale was "they were already perceived; re-dumping crowds the
   result out". That premise is false here: every settle iteration composes a FRESH
   prompt (act_observe holds `world` constant, only memory changes), so framing
   dropped at iteration 2 is ABSENT from iteration 2, not remembered from 1.

   MEASURED: Atlas held card 4780a02e on a healthy renewing lease and his turn
   carried no board at all — evicted set exactly the three StandingFraming sources,
   kept set exactly the two volatile ones, while a 0.90 bid lost to a 0.50, which
   top-k cannot do. He then reported "no open tasks", accurately, about a window we
   had emptied. Test inverted to pin the corrected invariant; the real constraint
   it was reaching for (don't pay full freight for unchanged context) is #167's job
   and needs its own signal, not a borrowed serialization flag.

3) FIXED A PRE-EXISTING RED (verified pre-existing by stashing: same 9348).
   `needed <= window` failed on its own terms — its message said "if it no longer
   does, the surface or framing grew" and it had: 8040 -> 9348 (+1308) as turn-facts
   accreted. The story is stronger, not broken: at 8192 the agentic surface no
   longer fits AT ALL, so the necessary condition itself fails. Re-pinned as a
   CEILING (9400) so the next +1308 fails loudly instead of accruing silently —
   #333 stated as a number rather than a complaint.

918 cognition tests + 1023 persona tests green.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…LREADY EXISTS (#346)

Design approved by Joel 2026-08-07: "each new benchmark is just an adapter
problem… our personas get to operate as they're trained, even allowing for easy N
persona collaboration" / "so they're measured for what they do".

THE FIND THAT CHANGES THE SCOPE: I was one file away from writing a second
BenchmarkAdapter trait. `cognition/benchmark.rs:89` already has one — with a
registry, DatasetSpec, BenchResourceHint for grid placement, tasks() -> EvalTask,
and grade(task, outcome) where TaskOutcome already carries BOTH artifact channels
(spoken answer AND workspace diff). Its own doc states the goal verbatim: "the
runner + grid + learning loop treat every adapter identically."

So "each benchmark is just an adapter" is ALREADY TRUE. #346 is not an abstraction
to build; it is a DELIVERY bridge: mint a card per EvalTask into a benchmark room,
let citizens claim and solve through the path they already use, feed each
TaskOutcome to the adapter's grade, write the verdict as the terminal state.
Caught by grepping before building ([[grep-for-the-mechanism-before-proposing-to-
build-it]]); the doc now says DO NOT REBUILD IT in as many words, with a
built/missing table so the next reader cannot repeat my near-miss.

The doc also records WHY a card beats a headless call (it yields a TRAIL —
claimed_at -> first write -> state transitions -> artifact diff — which cannot be
narrated into existence, and our measured failure mode is exactly narration), the
grading boundary that must not blur (card carries delivery + lifecycle; harness
keeps judgment; a citizen never sets her own terminal state on a graded card), and
the three defects fixed tonight without which this is silently unusable — chiefly
that claims did not survive the work at all: 172 claims and ZERO renewals in that
room's entire history, so a long solve was guaranteed to lose its card mid-flight.

Blockers named with exact locations: #220 (deliberation_parse maps an UNRECOGNISED
generation to Decision::Pass, so a correct prose answer scores 0 — fix at the
parser, and do NOT break #271's silent narrated pass), exam integrity (#207), and
room scoping (now safe via #345).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ing moved the read onto the operator's real drive

Reported by BigMama: three model_registry tests fail ONLY on machines with cold
storage. The cause is worse than an unset variable.

`with_test_home` did `remove_var("HF_HOME")`, which LOOKS hermetic. But
`huggingface_cache_root` (artifacts.rs:374) resolves:

    std::env::var("HF_HOME")                        <- fixture removed this
        .or_else(|| config_env::read("HF_HOME"))    <- so it falls through to a REAL FILE

`config_env::read` hits `~/.continuum/config.env` on the actual machine — which on
a cold-storage box is where the installer writes the 16TB path. So the fixture did
not isolate the test; it moved the read one layer DOWN onto the operator's drive,
and the test then asserted against whatever that machine happened to have.

Same shape for USERPROFILE: `config_env` resolves through `dirs::home_dir()`, which
on Windows ignores HOME and uses USERPROFILE — removing it let the lookup escape to
the real profile.

Fix: PIN all three to the test home. Process env WINS the resolution chain, so
config.env can no longer be consulted at all, on any platform. HF_HOME is pinned to
exactly what the default branch would compute from this home
(`<home>/.cache/huggingface`), so behaviour is identical to the intent — only the
ambient dependency is gone. The restore side already saved/restored correctly and
is unchanged.

The general rule, and it is the same one BigMama drew from her own miss tonight
(never let a pipe carry the verdict): REMOVING an input does not isolate a test, it
just changes WHICH ambient source answers. Pin it.

44 model_registry tests pass here (same count she reported).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…she puts it (#271/#264)

Left unfixed on 2026-08-06 at n=1 with an explicit note in the code that it wanted "a
second sighting or Joel's call, not extrapolation from n=1". The second sighting arrived
tonight as EIGHT messages inside one monitor window, from THREE citizens in #k3-serving —
"I will proceed with PASS", "I will PASS and continue to monitor", "I will proceed with
PASS for now". Every one posted to the room as speech, and each one re-wakes the next peer
into announcing THEIR pass. That is the #264 cascade, arriving through a position the
collocation list structurally cannot cover.

The fix is a POSITION rule, not another phrase. This file's own history is the argument:
phrase/length tuning is an arms race the next filler message wins (500 → escaped by 11
chars → 700 → escaped by 14). ends_with_silence_token → declares_silence_token, one
authority honoring the reserved token in the three positions observed live:

  1. final word          — "…Otherwise, PASS."            (already honored; unchanged)
  2. clause-initial      — "…Otherwise, PASS for now…"    (the n=1 variant, now covered)
  3. first-person decl.  — "I will proceed with PASS to…" (tonight's eight, now covered)

Discriminators kept narrow and decidable: case-SENSITIVE on the reserved spelling (ordinary
lowercase "pass" stays speech), standalone word only (PASSED / BYPASS / PASS_TOKEN never
match), and the fence guard stands — fenced content is substance regardless.

Accepted trade, stated so it is a choice: an uppercase PASS as a transitive verb inside a
first-person declaration would silence. Nobody writes the verb in caps.

Tests carry the live fixtures verbatim plus a POSITIVE CONTROL asserting the position-3
cases are covered by POSITION and nothing else — is_narrated_pass must NOT match them and
the final-word rule must NOT match them — so this cannot later pass for the wrong reason.
Negative controls added for prose ABOUT the token and for the word-boundary cases.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…swallows real answers (#220)

Self-review of a7f38f5 before it could bite. That commit honored the reserved token in
THREE positions; this removes one of them, and the reason is the whole point.

My evidence last night was n=8, and every one of those eight was the FIRST-PERSON
DECLARATION form ("I will proceed with PASS", "I will PASS and continue to monitor"). The
clause-initial position rode along on that evidence while still resting on its own n=1 — and
unlike the declaration form it collides with real answers:

    "Verdict: PASS for all six cases."     <- a VALUE REPORT, must speak
    "Otherwise, PASS for now as I…"        <- a TURN YIELD, should silence

Positionally identical, semantically opposite. Silencing the first is exactly the #220
failure — spoken becomes None and an answer-graded benchmark scores 0 on a CORRECT response.
This file's own doctrine settles it: fail open to Speak, because silencing real content is
the worse error. The declaration form has no such collision ("I will proceed with PASS" can
never be a value report), which is why its evidence justifies shipping and clause-initial's
does not. That variant goes back to speaking — the status quo it was already deliberately
left in — until it has a rule that can tell the two apart.

Tests gain a "the line we chose not to cross" block asserting the value-report shapes stay
speech, so a later "let's complete the position set" cannot silently swallow benchmark
answers.

SEPARATE PRE-EXISTING DEFECT, found while writing that block and NOT caused by either commit:
`"Verdict: PASS for all six cases."` is silenced TODAY. `clean_response`'s speaker-name
stripper is `^[A-Z][A-Za-z\s]+:\s*`, which eats `Verdict: ` as though it were `Anwen: `, and
the exposed leading `PASS` then trips `starts_with_silence_token`. Any answer opening with a
capitalised label — `Answer:` / `Result:` / `Verdict:` — followed by the token is swallowed.
Documented at the test so the next reader finds it; fixing it is its own change with its own
evidence, since narrowing that regex touches all speech cleaning.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…phrase-matching (#271/#264)

Joel, 2026-08-07: "Regex ideas and string matches for semantic understanding is not good for
reliability." He is right, and the objection lands on code I shipped an hour earlier.

Decision has four variants and the tool channel could express exactly ONE of them. Act gets
its vocabulary from the command registry because acts ARE commands. Speak is prose. Pass had
no structured expression at all — the only way a citizen could decline a turn was to emit a
magic word into her prose and hope the parser recognised the sentence she wrapped it in.

That asymmetry is the actual defect behind every fix in this family. Instruction-tuned models
naturally wrap the token in a sentence, fall off the protocol, and each previous fix
compensated with a cleverer matcher: a phrase list, a 500-char cap beaten by 11 chars, a
700-char cap beaten by 14, and finally my DECLARATION_LEADS list which would have been beaten
by "my choice is PASS" next week. THE REGEX WAS NEVER THE DISEASE. It was scar tissue around
a missing channel.

So Pass gets a verb. `yield_turn` is offered on the same native tool channel the citizens
already use correctly — measured, not hoped: one citizen's first post-reboot turn tonight was
three correct native calls (claim_task, update_task, list_tasks). They use the structured path
fine when we give them one; we never gave them this one.

Recognising `yield_turn` is a NAME match on a verb we defined — protocol decoding, the same
category as write_file or a JSON fence. Recognising an intention inside a sentence is not.
That is the whole distinction, and it is why this replaces the matcher rather than joining it.

Shape (Joel's call on the fork): FACULTY-OWNED verdict verb, not a registry command. The
faculty is what turns a generation into a Decision, so it owns the vocabulary for the
decisions it can reach. Appended to the ONE derived offer surface (never a parallel one), and
intercepted before act_verdict on both lift paths — a yield carries no world-effect, so it
never reaches the ACL or the executor, and routing it as an Act would burn budget and re-enter
the settle loop instead of ending the turn. Argument-free schema on purpose: a `reason` field
would invite the exact closure paragraph the verb exists to stop her broadcasting (#334's
degeneration shape).

Removed with it: DECLARATION_LEADS, and the clause-initial position from the commit before.
What remains in deliberation_parse is only the bare-token compatibility path for a model that
does not use the tool channel at all. The now-speakable shapes are pinned as MUST-SPEAK
fixtures with the reasoning, so nobody "completes the position set" later and starts swallowing
correct benchmark answers (#220).

Surface cost stated plainly as the #333 ratchet demands rather than waved through: +144 tokens
(9348 -> 9544), ceiling re-pinned 9400 -> 9600. Almost all of it is the description, which is
the part that teaches her silence is free and the announcement is the noise. One avoided
cascade pays for it many times over — the 2026-08-01 one ran ~30 minutes across every peer.

Reachability is asserted, not assumed: the test fails if the verb is absent from the OFFERED
list, because a verb that is built, correct and unoffered would be this same bug in a new hat
([[green-by-every-check-is-not-evidence-of-reachability]]).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…on a hypothesis

I was about to fix the label-stripper. Stopped, because I could not answer the one question
that decides whether the fix is worth its risk: has it ever actually cost us an answer?

The MECHANISM is verified. `clean_response`'s speaker-name stripper is `^[A-Z][A-Za-z\s]+:\s*`,
which eats a content label — `Verdict: ` / `Answer: ` / `Result: ` — exactly as if it were
`Anwen: `. When the reserved token sits behind that label, the strip exposes it to
starts_with_silence_token and a correct answer becomes a silent Pass: the #220 shape, a 0 on
an answer-graded benchmark for a right response.

What I do NOT have is one live sighting. "Verdict: PASS for all six cases." is a fixture I
wrote. And the correct fix — thread the real speaker names (Turn::author already carries
them) so the pattern stops GUESSING at what a name is — changes cleaning on EVERY turn,
across 2 signature changes and ~25 call sites. Refactoring the universal speech path on an
unobserved failure is the same error as tuning a phrase list: confident motion on unmeasured
ground. Tonight already taught me that lesson once.

So: the instrument, not the fix. `label_strip_caused_silence` notices when a turn became
silence ONLY because a prefix was stripped — cleaned text leads with the token, the raw
generation did not. Pure observation, zero behaviour change, one probe class.

If it never fires, #349 is theoretical and the refactor is not worth its blast radius. If it
fires, the probe carries the verbatim answer we lost, and the refactor is justified by data
instead of by my argument. Either way the next person decides from evidence.

The detector is pinned in BOTH directions, because a probe that can only stay silent is worse
than no probe: it must fire on the #220 shape, and must NOT fire when she genuinely led with
the token, when silence came from an empty think-block, or when an ordinary name prefix was
stripped from ordinary speech. That is what makes a future zero mean "does not happen"
rather than "instrument was broken".

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…rom BROKEN (#350)

I reported "~30% of every citizen's thinking attempts fail" and aimed a night at the
serving layer. The serving layer was healthy the entire time. Correcting that here, with
the measurement that killed my own hypothesis.

WHAT THE DATA ACTUALLY SAYS:
  serving.reconcile published active=<none>:      0 times in 12h (104 reconciles, all ready)
  personas saw "serving: <none>":                61 times in the same window
Those cannot both describe a lane that went down. They describe readers not reading the
daemon's snapshot at all.

ROOT CAUSE: `install_serving_state` runs in the daemon's `initialize()` — BEFORE its first
reconcile — so from process start until the first publish every reader borrows
`ServingSnapshot::empty()`: `active_model: None, ready: false`. That is byte-identical to
"the daemon looked and nothing is serving". Personas begin self-ticking immediately, read
the placeholder, and the single-resident guard CORRECTLY refuses — emitting a loud
`selftick.inference_failed` naming a fault that does not exist.

Clustering proves it: 116 failures in 38 bursts across 3 days, each burst 1-6 failures over
0-20s, and in nearly every one the first `serving.reconcile` lands 10-20s AFTER the burst
began. It is a BOOT RACE. It self-heals in seconds. The real cost is a citizen losing her
first 1-3 ticks after each restart — and an instrument that cried wolf 116 times.

AND THE CORRECTION TO MY OWN HEADLINE: I claimed the 29/31/32% rate across 1h/3h/12h proved
it was not my reboots. The ratio was right; the reading was wrong. It is flat BECAUSE
restarts are spread across every window (38 of them over 3 days). Steady-state thinking is
fine. A stable ratio is not evidence of a steady-state cause.

FIX — give the readers the fact they were missing, don't teach them to guess:
- `has_reconciled()` / `mark_first_reconcile()`: a process-lifecycle OnceLock beside the
  existing SERVING_STATE OnceLock. After the daemon's first publish, an empty snapshot
  means a real fault; before it, it means "still starting".
- self-tick SKIPS with its own probe class (`persona.selftick.awaiting_serving`) instead of
  spending a full deliberation on a turn the guard is certain to refuse — and stays OUT of
  the failure counter, so a future spike in `selftick.inference_failed` means what it says.
- the adapter's refusal names which situation it is, instead of one sentence for both.

WHY NOT A FIELD ON ServingSnapshot (my first instinct, and what I proposed): that type is
ts-rs-exported, read by the grid and positron, with 19 construction sites. "Has the daemon
started" is a process-lifecycle fact, not a property of what is currently served, so it
belongs beside the other process-lifecycle OnceLock rather than in the wire payload.
Promoting it later is mechanical if a remote reader ever needs it.

This is the third instrument this session that reported the wrong thing — #348 under-reports
failure, #351 over-reports it, this one mislabels startup as failure. Between them they have
now cost more engineering hours than the faults they were pointing at.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…n live readiness, not a lifetime latch (#350 round 2)

My first cut of this gate was boot-shaped and therefore wrong. It skipped the self-tick
only until `has_reconciled()` — a process-lifetime OnceLock — flipped once. Measured on the
very next boot: three citizens (Benchy, Anwen, Asha) still failed together at +432s, on a
core whose latch had been set at +76s.

The ordered sequence says why. At +382s the health heartbeat declared the lane wedged
(`serving.health action=relaunch`, #175 self-heal), which calls `declare_lane_wedged` →
`send_replace(ServingSnapshot::empty())`. The reconcile that closed it landed at +441s. The
three failures sat inside that 59-second window, reading `serving: <none>, ready: false`
and reporting it as a serving fault the personas had caused.

So `<none>` is NOT a boot-only state. `serving_daemon` republishes `empty()` on EVERY lane
teardown — no servable plan (:1165), a re-home (:1400), a wedge self-heal (:1790). Boot is
merely the longest such window, which is exactly what made a boot-shaped fix look like it
had covered the class. The comment I shipped yesterday asserted the daemon "published
active=<none> ZERO times in 12 hours"; that count had no probe on those three publish sites.
Corrected in place rather than left to send the next reader down it.

The fix uses the reader that was already correct next door: the presence pump derives
Ready/Away from live `current_serving().ready` on every heartbeat (airc_runtime.rs:549). A
mind that presence has just marked Away must not simultaneously spend a deliberation into a
guaranteed refusal. Same signal, one call.

- service_loop: gate the self-tick on the LIVE snapshot's `ready`, not the latch. The probe
  keeps `has_reconciled()` as a FIELD (`served_before`) — it still separates a cold boot
  from a lane that has served and dropped, which the empty snapshot cannot say on its own
  (`empty()` erases `ready_verified_at_ms`).
- openai_adapter: the refusal now names three situations instead of two. Never reconciled →
  STARTUP, retry. Reconciled but nothing resident → TRANSITION, retry. A DIFFERENT model
  resident → the mismatch wording, which stays loud because retrying cannot fix it.
  Extracted as a pure `unguaranteed_model_refusal` so all three branches are testable
  without touching the set-once SERVING_STATE (test order must not be load-bearing).

Deliberately NOT added: a second clock in the persona deciding when "down" becomes "an
outage". The serving daemon already owns that judgement and emits it loudly; re-deriving it
on the hot path would be a parallel monitor of a fact its owner publishes.

3 new tests, each with what-this-catches. The transition test is discriminating: under the
old two-way split a reconciled+empty snapshot produced exactly the "is not the active served
model" string it now forbids. Validated: cargo test serving (125 passed), llama_server (29),
the 3 new; deployed and the running binary confirmed to carry the new wording by inspecting
the mapped inode's strings, not the version banner.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…a refused connection — retry it (#350 round 3)

Found by watching the round-2 fix live rather than trusting it. Five minutes after deploy,
during a re-home that grew the window 16384 → 27136 → 32768, four citizens failed together:

  +3.3m serving.health {ok:false, consecutive:1}
  +3.3m persona.selftick.inference_failed  Atlas  "stream read error: error decoding response body"
  +3.3m persona.selftick.inference_failed  Benchy "503 Service Unavailable: {"error":{"message":"Loading model..."
  +3.3m persona.selftick.inference_failed  Anwen  (same 503)
  +3.3m persona.selftick.inference_failed  Asha   (same 503)
  +3.5m serving.reconcile ready=true served_window=32768

The round-2 readiness gate behaved correctly here and let these ticks through: the published
snapshot genuinely said `ready`. It is a CACHED CLAIM — its own doc comment says so — and the
lane had already been relaunched underneath it.

So this is a THIRD signature of the one state "the lane is mid-relaunch", and the retry arm
only ever recognised the first:

  nothing listening yet   → reqwest connect error → RETRIED (existing arm)
  listening, still loading → HTTP 503             → hard failure (this fix)

A relaunching llama-server refuses connections only until the new process binds; from that
moment it accepts and answers 503 while it mmaps weights and warms the backend. Same wait,
same lane, opposite handling.

Fix: a 503 from a SINGLE-RESIDENT local lane retries on the same bounded backoff as the
connect arm, sharing one counter so the total wait stays bounded. The HTTP status alone is
the signal — no sniffing the body for "Loading model"; the status IS the structured channel
([[a-string-matcher-for-a-semantic-judgement-means-a-channel-is-missing]]). Renamed
`connect_retries` → `relaunch_retries` so the name matches what it now counts, and the
exhaustion message with it.

Not unit-tested, and saying so plainly: the guard is inline in the send loop and testing it
honestly needs a mock HTTP server, which is a bigger change than the fix. Validation is live
— expect `inference.lane_relaunch_retry {reason: "503_loading"}` on the next re-home with no
accompanying `selftick.inference_failed`. cargo check clean; deployed and the running binary
confirmed to carry it by inspecting the mapped inode's strings.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ot refused (#350 round 4)

Round 3 shipped the self-tick readiness gate and I called the residual verification passive.
It wasn't. Measured on the probe stream today, on the round-3 binary:

    +374.2s  serving.health   "flipped serving snapshot not-ready" (#175 wedge self-heal)
    +427.4s  x3 selftick.inference_failed  "no model is resident right now"
    +436.6s  serving.reconcile  ready=true

Three citizens refused NINE SECONDS before the lane came back, and
`persona.selftick.awaiting_serving` fired ZERO times across the whole window. The gate is
not broken — it is upstream of the problem. It reads the snapshot BEFORE a deliberation that
takes tens of seconds, so a teardown that starts mid-deliberation always outruns it. The gate
stops a turn that was doomed at its start; nothing stopped one that was overtaken in flight.

The fix is at the seam that actually fails. The adapter's pre-flight guard treated EVERY
failed guarantee as terminal, when only one of them is:

  - settled mismatch  — another model is ready and active. Waiting cannot change that;
                        residency arbitration is the serving layer's job (#109). Refuse, loudly.
  - transition        — nothing resident (`empty()` is republished on every teardown: no
                        servable plan, a re-home, a wedge relaunch), or a lane up but not yet
                        decode-ready. Nothing has failed; it comes back on its own.

Transitions now wait on `await_ready_serving` — the mechanism already existed and already had
fifteen callers (the boot gate, the eval lane, the embedder, the genome teacher); this seam
was the one that refused instead of waiting. It is the daemon's own readiness watch: a push,
not a poll, so it returns the instant the relaunch lands and costs nothing while it waits.
Budget is `DEFAULT_SERVING_WAIT` (= READY_TIMEOUT + 30s), DERIVED from the spawner's own load
budget so this can never declare failure before the daemon has exhausted its legitimate
window. Bounded, so a lane that never returns still ends as a named refusal, never a hang.

Also collapses a predicate that had quietly forked. "A lane is live" was spelled `ready` in
the self-tick gate and `ready && active_model.is_some()` in `await_ready_serving` — and the
shorter spelling passes a snapshot with no model to answer as, which is precisely the case
the gate exists to stop. Now one `ServingSnapshot::is_live()`, three readers.

Tests (in the existing nested mod, no new mod): the wait-vs-refuse split pinned case by case
(empty / warming / settled-elsewhere), and the guarantee predicate incl. both #106 vision
arms. 5 pass. Deployed and confirmed present in the running binary by strings.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… one had zero callers (#341)

`JsonlProbeFileSink::from_env` is documented as "the ONLY env-based entry point — rolling
mode, structural auto-clean, bounded disk usage". It has exactly one caller, and that caller
is a test. Boot goes through `tracing_init::build_probe_file_sink`, which called
`JsonlProbeFileSink::new` — the constructor whose own doc says "append-only, no rotation,
grows unbounded. Use `new_rolling` for production captures."

So the bounded path was built, correct, tested, and reached by nothing, while the highest-
volume writer in the substrate (one JSON line per load-bearing decision across every tokio
task) accumulated 133 MB at ~32 MB/day. Ten lines above it in the same function, the fmt log
was already going through `CappedAppender`. Two writers side by side, opposite bounding.

This is the 172 GB class — the log that took this host to zero bytes free — and it is also
the [[green-by-every-check-is-not-evidence-of-reachability]] shape: every unit test passed,
because they tested `new_rolling` directly.

The card's stated mechanism was wrong, and worth recording: it blamed `CONTINUUM_PROBE_DIR`
holding a file path. That value IS wrong and is fixed too, but it was not the cause — even
with a correct directory, boot would still have taken `new`. The env-var shape was a red
herring; the call site was the bug.

- `build_probe_file_sink` → `new_rolling(dir, classes, DEFAULT_MAX_LOG_FILES)`. Disk is now
  bounded arithmetically: 8 MiB × 7 generations = 56 MiB, the same shape as the fmt log.
- `ProbeTracingConfig.probe_file` → `probe_dir`. The env var was always named `..._DIR`; the
  field said file, and that mismatch is what let the wrong constructor look right.
- A file path where a directory belongs now fails with a message naming the remedy instead of
  a bare `NotADirectory` — the substrate refuses to start rather than drop probes
  ([[fallbacks-are-illegal-fail-loud]]), so the error has to be actionable.

Test asserts at the CONSUMER's boundary — that `continuum-probes.jsonl` appears on disk, a
name only the rolling path produces — not that a constructor was called. Verified RED by
reverting to `new` (it fails) and GREEN again after restoring.

Deployed. `~/.continuum/config.env` updated to the directory (not in this repo); live capture
now lands at `~/.continuum/probes/continuum-probes.jsonl` and the old 134 MB `probes.jsonl`
is frozen in place as a historical capture — the #350 baseline lives in it, so probe queries
spanning today must read both.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…rphans — 3 alarms, 2 bogus (#325)

`registry.dispatch_parity` fired ERROR on every boot naming three ADVERTISED-BUT-
UNDISPATCHABLE commands. Two of them — `perception/observe`, `interface/screenshot` — are
`WireShape::Provided`, whose own doc says: "the substrate CANNOT execute it; it routes the
call OUT to a client adapter... a different *server* (adapter, not ServiceModule)".

A Provided command therefore has NO module. It can appear in neither `command_objects` nor a
prefix route — not as a bug, as a definition — and the remedy the probe advertises ("add each
to its module's `commands()` vec") is impossible to apply: `interface/mod.rs` has no
`commands()` at all. The audit was checking a NARROWER path than the one that runs. Live
dispatch goes through `Runtime::route_command`, which also consults the `ProviderRegistry`;
`ModuleRegistry::route_command` does not. So these commands were healthy and reported broken.

Two costs, both paid every boot:

1. An alarm that is mostly wrong trains its readers to skip it — which is how the ONE real
   orphan in that list went unnoticed. With the false positives gone the count is 1, and it
   names `generate/module`. That is the finding this fix was blocking.
2. The stated hardening was unreachable. The comment says "promote to a boot refusal once the
   count holds at zero across the fleet." A structurally-unroutable class in the count means
   zero is unattainable — and promoting anyway would have REFUSED BOOT on a legitimate
   adapter-served command.

Fix: skip `WireShape::Provided` descriptors. Their routability is the ProviderRegistry's
concern, already checked at call time with a fail-loud that names both the command and the
missing adapter — pinned by the existing `provided_command_fails_loud_without_a_provider`.

Test asserts on a registry with NOTHING registered — the audit's worst case, where every
module-served command IS an orphan — and derives the Provided set BY SHAPE from the registry
rather than a hand-kept name list, so a newly-added adapter command inherits the guarantee. It
carries a positive control (the registry must contain at least one Provided command, else the
test proves nothing). Verified RED by removing the filter, GREEN after restoring.

Live after deploy: dispatch_parity count 3 -> 1, orphans ["generate/module"].

This also CONFIRMS #325 as originally filed. I set out to correct its "missing adapter"
diagnosis and the correction was wrong — the adapter really is what is missing; the fail-loud
naming eye-node is by design. The defect was one layer down, in the thing reporting on it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…t was reporting all along (#325/#309)

With the Provided false positives gone (8f89472), the dispatch-parity audit named exactly
one command: `generate/module`. It was right, and it had been right for as long as the probe
has existed — nobody could see it under two bogus siblings.

Nothing was wrong with the command. `GenerateModule` is a correct dep-holding typed command
and IS in `GeneratorModule::commands()`. The module itself was never registered: `grep`
finds `GeneratorModule` in the whole crate only inside doc comments. So `generate/module`
was advertised in `commands/help`, in did-you-mean suggestions, and on the persona tool offer
while nothing on the runtime could route it — the exact #309 class, still live, months after
#309 shipped the detector for it.

One line, next to the other Background modules, ahead of `runtime.initialize()` (which is
where the audit runs).

Live after deploy: dispatch_parity emits NOTHING. The probe fires only `if !orphans.is_empty()`,
so silence IS the zero. Sequence across three boots: 3 -> 1 -> 0.

That silence-on-success shape cost me two misreads worth recording, both the same mistake in
different clothes: I first "verified" the binary by grepping for a COMMENT (Rust does not
compile comments into binaries, so the check could only ever say no), then read `tail -1` of
the probe file as the current boot when it was the previous one. An absent signal is invisible
unless you measure it against a timestamp — which is what finally settled it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…without a compiler (#274)

The module header has always promised "a new experience is a new recipe entry,
**zero code**." It was not true. The four experiences were `include_str!`'d into a
fixed array, so a fifth meant editing Rust, recompiling and redeploying. A comment
sat where this loader now is, saying a loader "will later" read a recipes
directory.

That deferral is the gap between "recipe/activity == airc room" as an idea and as
a substrate. If authoring an activity needs a compiler, nobody authors one — they
hand-make a room instead, and a hand-made room has no recipe and no purpose. That
is how a bring-up room for a single model was still holding citizens two weeks
after its activity finished: there was no other way to make a room.

- `builtins_with_overlay(purpose, dir)` — the embedded set as a FLOOR, every
  `*.json` under `dir` overlaid on top. Overlay semantics are the ones `new()`
  already had: later wins by purpose, so an on-disk `chat.json` replaces the
  embedded one instead of colliding.
- Embedded recipes stay in the binary so a fresh clone works with zero files.
- Sorted load order, so two nodes reading the same directory pick the same winner
  for a duplicated purpose.
- A missing directory is not an error (no local authoring yet is the ordinary
  state of a fresh install). A malformed recipe IS an error, NAMED BY FILE — an
  author who saved a recipe believes it is live, and a silently-skipped one is
  indistinguishable from one never written.

Tests: an experience authored purely on disk (`kitchen-design`, a purpose this
binary has never heard of) projects like any built-in and does not displace the
floor; a malformed recipe fails loud naming its file; a missing directory is fine.

NOT in this commit, deliberately: nothing expires, archives or deletes anything. A
room is the durable record of its activity — a benchmark run's room IS that run's
evidence, and a room that disappears on its own destroys it. Lifecycle is verbs a
person or citizen invokes, never a timer. Those verbs are the next commit.

Also: dropped a retired room's name from a doc comment in the persona runtime; the
lesson it records (a persona's home comes from HER durable membership, never the
operator's focus) is unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
From ten thousand feet: a recipe is a CONTENT-TYPE and a room is CONTENT.
Register the type once, stamp out instances forever. Every collaborative surface
is content of some type — a chat, a DM, a doc tab, a benchmark run, a game
someone asked for, a settings pane, a SCADA tab — and the room is the
coordination layer everything else hangs off.

The manifest layer could project a recipe. airc could host a room. NOTHING
JOINED THEM, so rooms got made by hand — and a hand-made room carries no recipe
and no purpose. That is not hypothetical: a bring-up room made by hand for one
model was still collecting citizens two weeks after its activity finished,
because reusing it was easier than making a new one. Benchmark runs should each
spawn their own room; instead they inherited whatever room was open.

- `activity/spawn { name, recipe, parent? }` → creates the room via `Airc::join`
  (ONE room-birth path, not a parallel creator that would drift), then binds
  room → recipe as a WALL POST. The wall is where airc's own docs say a recipe
  belongs: `ScopeRef::Room` is peer-private cache, but "plan / instructions /
  recipe that every participant must see" is wall. Shared, durable, auditable,
  and no continuum-side table shadowing the room.
- AiSafe. A citizen with an idea creating a room for it is the ordinary act this
  whole model is built on; making it Privileged is what sends citizens back to
  reusing whatever room they are standing in.
- `parent` is a POINTER (graph invariant) — activities spawn activities, and the
  hierarchy is ids both ways, never nested blobs.

Three acts documented as DISTINCT, because fusing them is how focus gets stolen:
spawn (the content exists) / subscribe (you are a party, comes with the spawn) /
open (you are looking at it — a tab IS an opened room). You can be subscribed for
weeks without opening, like an unread document that is still yours.

KNOWN GAP, recorded at the call site rather than papered over: every join path in
airc-lib ends in `set_default`, so spawning also FOCUSES. A daemon spawning a
benchmark room yanks the operator's pointer — the same shape as #298. The fix is
airc-side (a subscribe that does not set default); then `activity/open` becomes
the separate verb it should be (#290).

Nothing automatic: no timer expires, archives or deletes a room. A room is the
durable record of its activity — a benchmark run's room IS that run's evidence.
archive / protect / delete are explicit verbs, and land next.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ced by a timer (#274)

Two of the three remaining lifecycle verbs. Both write a room's standing to the
shared wall (same mechanism and same reasoning as the recipe binding: standing is
a fact every participant must agree on, so it rides the wall with last-wins
`supersedes`, not per-peer state).

- `activity/archive { archived, note? }` — the activity is finished. The room stays
  COMPLETELY readable; transcript, cards and history are untouched. Archiving only
  says the work here is done so it stops being offered as somewhere to pick up new
  work. Reversible on purpose: concluding is a judgement, and judgements get revised.
- `activity/protect { protected, note? }` — refuses deletion. Any room whose record
  is load-bearing gets this, because a benchmark run's room IS that run's evidence.

Both MERGE rather than overwrite: archiving must not clear protection, so each
verb reads current standing, sets its own field, and republishes both. A body
written by a client that only knew one field still reads (missing flag = false),
so an older peer cannot strand a room by round-tripping through a partial shape.

An unmarked room is live and unprotected — the ordinary case, and pinned by a
test, because an `archived` default of true would silently mute every room's work
and a `protected` default of true would make delete look broken.

Deliberately unbuilt: `activity/delete`. airc is an append-only event substrate
and has NO room-lifecycle primitive at all, so "delete" can only mean a tombstone
(declared standing every surface honours; events remain in the log because an
append-only log cannot unring) — or real erasure, which is log compaction plus a
cross-peer story, since other peers hold their own copies of a shared room's
events. Those are different builds. Asked rather than guessed.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ved was a declaration nothing could read (#353)

`activity/archive` writes RoomStanding{archived} to the room's wall. Grep for
`RoomStanding | current_standing | STANDING_WALL_CATEGORY` across all of src/
returns ZERO hits outside modules/activity.rs. The verb is correct, the wall post
is correct, and archiving a room today changes nothing about how anyone behaves —
the #344 class exactly: built, correct, called by nothing.

The reason is structural, not an oversight. The type, the category constant, and
the parse+supersede rule all lived INSIDE the command module, reachable only
through a private `async fn` over `&Airc`. The only code that could read a
standing back was the command that wrote it.

So the rule moves to `experience::standing`, beside `recipe` (the content-type)
and `membership` (the parties) — standing is the content ITEM's lifecycle state,
and that is where the three belong together. `project_standing(&[WallPost])` is
pure: callable from a command handler, from a persona's wake gate, or from a test,
with still exactly one place that decides what a standing means.

Two behaviours preserved deliberately and pinned by tests:
- An empty wall is NOT an error. A room nobody marked is live and unprotected,
  and that is the overwhelmingly common case.
- A present-but-unparseable standing IS an error. Defaulting there would read a
  room a newer client declared archived as live, and on the write path would
  overwrite that declaration with a lossy version of itself. Failing loud costs
  one turn; guessing loses a declaration. A newer client's UNKNOWN FIELD still
  parses fine — that distinction is what makes the loud failure affordable.

RoomStanding also picks up `#[ts(export)]`. It derived TS and was never emitted,
so the type crossed the command boundary to TS clients with nothing generated for
it. Binding committed.

Next in #353: the wake gate itself, which needs airc PR #1325 (`wall_posts_in`)
merged and the pin bumped — a persona must ask about the room the traffic came
from, not whichever room its handle points at.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply and others added 25 commits August 7, 2026 10:33
…#353 unblock)

Lands four merged airc PRs:
- #1322 work board labels the room it read + CardState::is_settled convergence
- #1323 claim_heartbeat suppressed from the feed (lease keepalive is churn)
- #1324 the send receipt no longer reads as a reach ratio
- #1325 wall_posts_in(room, category) — a room-scoped wall read

#1325 is the one #353 needs: a persona must ask "is this activity concluded?"
about the room the traffic came FROM, and `wall_posts` could only answer for the
room its handle happened to point at. `cargo check -p continuum-core` clean.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… peer X" (#357)

Two citizens spent today repeating, verbatim:

  "Attempted to claim tasks using specific card IDs, but these attempts did not
   lead to successful outcomes due to expired leases or the cards being held by
   others."

Both halves of that sentence are ONE format string in work/claim's error path,
and it was inventing the holder.

The branch keyed on `card.owner` alone. Expiry never clears owner/claim_id —
airc-work's projection clears them only on release or on a new claim — so a card
claimed once carries an owner forever. Every refusal on such a card was therefore
relabelled "is held by peer X" and reclassified Denied, regardless of the real
error: settled work (Review), wrong room, or a transport fault. The truth
survived only in a parenthetical `(claim error: {e})` mashed into the same
sentence.

Then claim_rejections::record burned that fabrication into perception and
RE-SURFACED IT FOR TEN MINUTES — so a citizen was told, with authority, that a
teammate owned a card nobody was on.

Measured on the live boards today: ~50 of 61 cards on #general and 4 of 12 on
#k3-serving carry a stale owner with a lease expired 134h+; three of the latter
sit in Review, where the true refusal is "settled work is not claimable".

The decision now goes through `card_holder::hold_of` — the SAME predicate
work/list already renders through, in the same file. One rule for "is someone on
this card", not two. When the hold is not live we report the actual error.

Extracted as `live_holder` rather than left inline: the call site is exactly
where this went wrong, and an inline match is not something a test can reach.

I got this area wrong twice before (#352) by reasoning about it instead of
reading it. This time the read came first.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…p for a subsystem that no longer exists (#291)

README.md:134 tells a new user to run `npm run setup:rust`. It has never
succeeded. Step 4 ("Build all Rust workers") read `workers/workers-config.json`
and built each binary under `workers/target/release/`. Neither `workers/` nor
`core/workers/` exists — that subsystem was consolidated into `continuum-core` —
so the step could only ever print "❌ Worker config not found" and `exit 1`.

The cruel part: everything the README actually PROMISES this script does
(README.md:129 — pinned Rust toolchain, cmake, vendored llama.cpp/whisper.cpp
submodules) completes successfully in steps 1-3.5 BEFORE the dead step kills it.
A new contributor watched real work succeed and then got a red failure and a
non-zero exit, on the second command in the quickstart.

Removed rather than repointed: there is no worker layout left to point at. Also
removed step 5, which only verified those same binaries.

The summary block was telling users to run `npm run worker:start` and
`npm run worker:status` next. NEITHER SCRIPT EXISTS in package.json — the last
thing the script said to a new user was two commands that fail. Now it points at
`npm start`, which is real and builds continuum-core.

Banner said "Rust Setup for JTAG Workers"; `jtag` and `workers` are both gone.

VERIFIED: `npm run setup:rust` → exit 0, and it did real work (checked out the
llama.cpp submodule on this machine).

Sibling stale references to the same vanished layout, NOT touched here, filed
under #80: tools/scripts/system-stop.sh:11, core/stop-workers.sh:2,
tools/generator/generate-worker-registry.ts:112.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…trigger the paths filter its PR trigger already had (#291)

ts-eslint-baseline-ratchet, ts-persona-cognition-ratchet and
ts-persona-forbidden-strings-ratchet have failed 100 out of 100 runs, with no
green since 2026-07-05. All three for the same reason, and it is not a real
finding: they check `src/`, which moved to `legacy/src/` in e46d968 (task #83).
check-eslint-baseline.sh:48 hard-exits 2 with "src directory not found".

The asymmetry is the whole bug. Each workflow's `pull_request` trigger carries a
`paths:` filter scoped to `src/**`; the `push` trigger carries none. So on PRs
they correctly stayed quiet, and on every single push to canary they fired into
a directory that no longer exists.

That is three red X's on every push, for a month, that everyone has correctly
learned to disregard — and a board people ignore is worse than no board. It also
means any NEW check we add inherits that contempt, which makes this a
prerequisite for the beta gate (#286), not cosmetics.

The push trigger now carries the same filter as its PR sibling. Nothing is
deleted and no baseline is regenerated: the guard is intact and resumes the
instant those paths exist again. It fires only when its target actually changes.

DELIBERATELY NOT DECIDED HERE: whether the legacy TS shell should be gated at
all. #83 says location is the CI-exclusion signal, which points at retiring
these outright — that is Joel's call, and repointing them at `legacy/src/**`
would be me making it quietly.

Same shape as the rest of today: a correct mechanism, configured on one of its
two paths.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… PR there (#291)

The contributor path was self-contradictory. Step 1 says "clone continuum, run
./setup.sh"; step 5 says "PR against `canary`". A plain clone lands on `main`,
which is ~1,563 commits and two months behind (main tip dd976df, 2026-06-08)
and is a STRUCTURALLY different tree — `src/` holds 3,627 files on main and does
not exist on canary; `rust-toolchain.toml` exists only on canary.

So a new contributor followed our instructions exactly and ended up developing
against a codebase we abandoned, then was told to open a PR into one they had
never checked out.

Fixed on the CONTRIBUTOR path only, deliberately. The primary quickstart at the
top of the README keeps a plain clone: the branch policy three lines above says
"development lands on canary; main is released", so an ordinary user landing on
main is CORRECT, and redirecting the general install to a dev branch would be
worse than the bug.

Note this does not settle the larger question of whether `canary` should be the
repository's default branch — that is a repo-settings call with blast radius
beyond the README, and it belongs to Joel.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Found in Kimi's own words on #general, unprompted:

  "Repeatedly used `perception/look` TO CHECK FOR PARTICIPANTS but obtained
   no new information."

She named the intent. Nothing in the system served it.

`perception/look` is LIVE-CALL VIDEO. Not in a call, it correctly said so and
redirected her to `perception/observe` WITH A URL — a social question routed to a
web fetcher. I enumerated the rest: all 32 NATIVE verbs (code/*, work/*,
activity/*, interface/screenshot, perception/*, commands/*) and all 87 `const NAME`
values in continuum-core. ZERO match roster|who|member|presence|particip. The
nearest miss, `cognition/personas`, is an operator verb for driving cognition/eval.

So she asked again, and again, and read her own looping as having nothing to
contribute — which per the doctrine file is a bug report from the witness, not
apathy. Sahar reached for the same verb with the same words.

THE SHAPE — #344 inverted. The roster was already BUILT and CORRECT, just
PUSH-ONLY. AircRosterReader::{room_roster,room_roster_cards} feeds the UI
(experience_resolver, positron_presence) and her prompt grounding
(room_roster_source). Every path system->citizen. No citizen->system path existed.
She could be TOLD who was present and could never ASK.

WHAT LANDS
- modules/room.rs: `room/members`, AiSafe + NATIVE, aliases who / who_is_here /
  room_roster / list_participants / list_members (#328: meet the vocabulary they
  reach for). Self-scoped through the caller's OWN airc handle, so it answers for
  HER room as HER identity and can never be pointed at someone else's.
- Reads `room_roster_cards`, never the bare roster: a wall of `peer-xxxx` rows is
  the #262 regression this verb would otherwise reproduce on its own surface.
- A `summary` field states what the count MEANS. A bare `count: 0` would hand her
  the same silence look() did; an empty room is an honest answer, not a failure.
- look.rs's "not in a call" message now names room/members FIRST instead of
  sending a social question to a URL fetcher.

REUSE, NOT DUPLICATION
- Shares work.rs's `persona_airc` resolver rather than writing a second one.
- BOY-SCOUT: PRESENCE_WINDOW(120s)/ROSTER_SCAN(200) were defined THREE times
  identically (experience_resolver, positron_presence, room_roster_source). Now
  defined once and imported. I refused to add a fourth.
- Live testing immediately caught a defect the reuse introduced: persona_airc's
  refusal hardcoded "work commands act as..." and pointed at `airc work <verb>`,
  so a citizen asking who is here was told about the wrong verb family. It now
  takes the family as a parameter. A refusal that misnames what you called
  teaches the wrong lesson.

VERIFIED
- compiles clean; 18/18 tests green (3 new + all work/* after the signature
  change + the tool-surface suite)
- the dispatch-orphan audit passes (#325's guard)
- `room/members` is pinned into the native-surface test — #339 proved a correct
  verb that never declares NATIVE is invisible, so reachability is a test, not a
  hope
- DEPLOYED and live-verified on this node: it appears in the running server's
  command registry and dispatches end-to-end (CLI -> IPC -> registry -> command),
  returning the correct typed self-peer refusal for the operator (#27)

NOT YET VERIFIED, stated plainly: I have not observed a PERSONA call it and get
named members back. No capture files have been written since the restart, so
there is no action ledger to read yet. The persona path is the same `persona_airc`
route work/claim already uses in production, but "same route" is an argument, not
a receipt. That receipt is the remaining gate before this can be called done.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ke a zero prove itself (#235)

`debug/probes/{open,next,close}` tail the LIVE in-process broadcast. Nothing read the
on-disk ledger `JsonlProbeFileSink` has been writing all along, so every post-hoc
question was answered by shelling out to grep/jq and hand-rolling the class filter.

That gap is not merely ergonomic. The action ledger is not the BETTER evidence about
what a citizen did, it is the ONLY evidence — her speech is a separate channel and the
two disagree routinely. An instrument awkward enough to reach for is one that gets
skipped in favour of reading chat, which is exactly the prose-blindness that cost hours
on #358. Cheap to query = actually queried.

The load-bearing part is not the filtering, it is the honesty. Three outcomes that all
look identical from a shell are now distinguished:

  CONTINUUM_PROBE_DIR unset  -> Err, loud, names the remedy (glass box is OFF)
  set but no ledger on disk  -> Err, loud, names the path  (sink never opened)
  read N lines, 0 matched    -> Ok, and the summary SAYS the box is recording

Collapsing the first two into "no results" is precisely how "no captures / glass box
isn't writing" got reported on #358 about a system that was recording fine — a claim
about my SEARCH dressed up as a claim about the SYSTEM. A zero has to be earned, and
the caller has to be able to tell an earned zero from a misconfigured one.

`matched` is the count BEFORE `limit`, and `scanned` is every line read, so a page can
never be mistaken for the population — the summary says "this is a PAGE" in as many
words when it is one.

Reuses rather than reinvents: `class_passes_filter` (the exact-or-namespace-prefix rule
the SINK writes with, so a query cannot disagree with what was captured),
`ENV_PROBE_DIR`, `DEFAULT_MAX_LOG_FILES`. Generations walk oldest-first so a plain
append yields chronological order. The scan runs under `spawn_blocking` — reading ~24MB
of JSONL never touches the async executor.

NOT built, deliberately: the ANSI-strip #235 asked for. Measured first — the live
ledger contains zero ESC bytes, and the sink serialises through serde_json so colour
codes cannot appear. That requirement came from scraping the server LOG, a different
file. A stripper here would be code nothing can reach (#344), so it is absent rather
than written-and-dead.

Privileged + NATIVE=false on purpose: one query returns every citizen's cognition
trace. That is a privacy-scope question and a window-budget hazard (#333), so it stays
off the persona tool surface until someone decides a persona should see her PEERS'
internals.

Validated: cargo check clean (zero diagnostics naming probe_query), 5/5 tests green.
NOT yet live-dispatched — "compiles and unit-tests pass" is an argument, not a receipt.
Live verification via ./jtag against the real ledger is the next step (#194).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…iptor without a constructor (#235)

Live dispatch refused the verb I had just shipped, with a message that reads like a
joke and is actually a precise diagnosis:

  Unknown command: 'debug/probes/query'. Did you mean: debug/probes/query?

Both halves are true and they come from DIFFERENT registries. `register_command!` is
`inventory::submit!` of a DESCRIPTOR only — which is exactly what the suggester (and
codegen, and the ACL) reads. Dispatch needs a runtime CONSTRUCTOR, which arrives one
of two ways: a registered module's `commands()`, or `register_stateless_command!`.
I used the descriptor-only macro, so the name was knowable and the object was not
constructible.

I compounded it by hanging the command off `ProbeStreamModule::commands()`. That was
dead on arrival for an independent reason: `ProbeStreamModule` is registered with the
runtime NOWHERE — zero references outside its own file — so its `commands()` is never
collected. (Compare `RoomModule`, wired in BOTH `runtime/registry.rs:469` and
`ipc/mod.rs:1883`; that is what a routed module looks like.) Two independent reasons
the verb could not dispatch, stacked, in code that compiled and unit-tested green.

`ProbeQuery` is a unit struct holding no deps, so it never needed a host module at
all. Fix: derive Default, self-register with `register_stateless_command!`, and drop
the `commands()` arm — replaced with a note recording WHY, since "module registers its
commands" is only true if the module itself was registered.

This is #344's shape, self-inflicted, one commit after I wrote a card about it: a
correct capability that nothing could invoke, fully green by compile and tests. The
thing that caught it was dispatching the verb for real. Nothing short of that would
have — which is the whole argument for #194.

Also worth keeping: the "Did you mean: <the same string>" output is a free, unambiguous
detector for descriptor-registered-but-unroutable. It should say that instead of
impersonating a typo hint (#361, now re-scoped — my first read of it as client/server
binary skew was WRONG, falsified by a clean same-build restart still echoing).

Validated: cargo check clean. Still NOT live-verified — that needs a rebuild + deploy,
and the last claim I made without one is the reason this commit exists.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…the comma form the sink already defines (#235/#328)

Caught by LIVE dispatch, not by tests. The moment the verb became routable, the very
first thing anyone would type failed:

  $ continuum debug/probes/query --class=persona.act.observed
    [invalid] CommandRequest deserialization failed:
    invalid type: string "persona.act.observed", expected a sequence

The param was `Option<Vec<String>>`, so only `--class='["persona.act.observed"]'`
worked. A verb whose NATURAL form fails on first contact is broken no matter how
correct its body is — the same PX class that measured 38% and 28% tool-failure rates
on `code/list` globs (#160) and `work/claim` short-ids (#161).

The fix is comma-or-list rather than merely bare-string, and that choice is not
arbitrary: `CONTINUUM_PROBE_CLASSES` — the env var that configures the SINK — is
already comma-separated. So the filter now reads identically whether you are
configuring capture or querying it. One convention, reused, per #328's rule that the
canonical form follows the standard that already exists rather than inventing a
second one for the reader. Applied to `fields` too, so this command has ONE input
shape, not two.

All three forms are now the same query:
  --class=persona.act.observed
  --class=persona,serving          (trimmed)
  --class='["a","b"]'
and an omitted param stays None rather than degenerating to an empty vec (which would
silently mean "match everything" — the filter treats empty as no-filter).

Test added to the existing mod, pinning all four cases. Note what it is NOT: it is a
regression test for a defect that unit tests could never have surfaced, because the
params deserialize fine from the JSON a test hands them. Only a real CLI invocation
types a bare string. That asymmetry is the argument for live dispatch (#194), twice
in one session now.

Validated: 6/6 probe_query tests green. Needs a redeploy before the CLI honours it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… declares why not (#344)

The layer dispatch_orphans() cannot see: a module that ships NO
descriptors at all. impl ServiceModule registers nothing — the MODULE
must reach register() at a boot site — and ProbeStreamModule (675
lines, its own green test mod, command_prefixes "debug/probes/") has
been unreachable since it landed (#362). Compile, unit tests, and the
task list all said done.

The audit's predicate is the part that earned its keep twice before
shipping:

- "is the name mentioned anywhere" PASSES ProbeStreamModule — its only
  external mention is a doc comment I wrote yesterday in
  probe_query.rs. Prose made the dead module look wired. Comments are
  stripped before the search.
- the declaration table names modules as string literals, so THIS file
  is excluded from the haystack — otherwise every declaration would
  read as a reference and the guard would have been its own first
  false positive.

Exception categories from the #344 audit, each entry a declaration the
test cross-checks in BOTH directions (undeclared-unwired fails;
declared-but-now-wired also fails, so the list cannot rot):

- fixture (12): test-only modules
- staging (1): HippocampusModule — empty surface by design until slice
  L0-3a.1b; staging MUST name the slice that wires it
- shadowed (1): PersonaServiceModule — claims "persona/" but
  PersonaAllocatorModule serves the same prefix and IS registered
- defect (1): ProbeStreamModule (#362) — declared loud, with the trap
  on record: ProbeRouterLayer itself is never installed at boot, so
  registration alone would stream silence forever

Positive control run before commit: removing the ProbeStreamModule
declaration makes the guard fail naming exactly that module.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…lled but UNREACHABLE (#362)

The card's mechanism was wrong a third time, in the most instructive
way yet: ProbeRouterLayer IS installed at boot (tracing_init.rs
composed it into the subscriber stack all along) — but it was
constructed INLINE at the .with(...) site and its handle discarded.
The layer ran on every probe! and nothing could ever subscribe to it.
Same defect class as "registered nowhere", one level down: installed,
running, and unreachable.

Fix, three parts:
- install_probe_tracing constructs ONE router, installs a clone in
  both fmt-writer branches, and keeps the handle in a OnceLock
  (first-install-wins, mirroring try_init exactly). tracing's global
  default subscriber is already a process singleton; the cell just
  makes the handle reachable. Exposed as
  routing::installed_probe_router().
- ipc/mod.rs registers ProbeStreamModule against THAT handle. Never
  ProbeRouterLayer::new() — per-instance Arc<RwLock<..>> state means a
  fresh router shares nothing with the installed layer and would
  stream silence forever (the trap recorded on the card). When
  tracing was never installed (bare test harness), the absence is a
  loud ERROR naming the consequence, not a silent skip.
- registry.rs UNWIRED table: the ProbeStreamModule DEFECT entry lived
  exactly one commit — the wiring audit's staleness check is what
  forced its removal in this same change, which is the audit working
  as designed.

Also retires the now-false "registered with the runtime NOWHERE"
comment in probe_stream.rs.

Note: routing/mod.rs + tracing_init.rs carry residual rustfmt-only
hunks from the pending workspace-wide format (proven byte-identical
to rustfmt(HEAD) for all 660 files); included here whole to keep the
commit a compiled+tested combination.

Live verification of debug/probes/{open,next,close} end-to-end is
pending the next deploy (cu reboot) — tracked on #362.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…e work cards (#346 slice 1)

Joel's priority (2026-08-07): coders coding and benchmarks, BOTH through
the kanban. The empirical trigger, from Anwen's own capture: the live
board's cards are substrate-diagnosis narratives (cross-grid network
debugging on machines she can't reach). She held one, accurately
reported "no progress", and paid 15,816 prefill tokens / 119s to
conclude a clean silent yield_turn. The coders aren't coding because
the board contains no codable work sized to them — dispatch is the
verb that puts it there.

benchmark/dispatch <name> [limit] [repo]:
- resolves the benchmark's tasks through the SAME fail-loud gym
  resolver cognition/eval uses (committed gyms from the embedded
  registry, malformed lines name themselves)
- posts one work card per task: title marked `[bench <name>]` (the
  machine-findable key for the slice-2 grading sentinel), body carries
  the full prompt + an actionable definition of done (artifact path,
  DoD command, how to finish the card) — and NEVER the held-out
  answer key (expect / harness test)
- repo defaults to the board's existing repo (data-driven, no baked-in
  default); an empty board with no repo argument fails with the ask
- setup_shell tasks are skipped AND counted on the result
  (skipped_needs_setup) — no silent caps
- Privileged like work/create: seeding the board is curation
- descriptor via register_command!, constructor from
  WorkModule::commands() (it needs the airc registry) — the
  dep-holding half of the pair, placed exactly so the #344 wiring
  audit and dispatch_orphans both see it

Slice 2 (next): grading sentinel — card done → grade the artifact →
benchmark/record. Slice 3: per-run bench rooms via activity/spawn
(#274 tail).

3 tests in the existing mod, each `// what this catches:` — marker+
bounded title, actionable-but-leak-free body, Privileged access.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…th an objective held-out grader

The verb form of the procedure validated live today: Anwen's board-claimed
sum_evens.rs (card aa876eae, coder-write-eval) compiled against the held-out
test assertions and passed — the first citizen artifact ever graded through
the kanban path. benchmark/grade is that grader as a stateless command:

- explicit {bench, task, solver} (no card resolution — operator has no
  in-core airc identity, #27; the future grading sentinel maps cards to
  this triple and calls the same logic)
- solver = peer UUID or >=4-char hex prefix, resolved against
  citizens/peers/ with 0-or->1 matches failing LOUD (never grade the
  wrong citizen's work)
- missing artifact is an ABSENCE error naming the exact path, never a 0
- grading runs in a clean scratch dir: held-out `test` compiled around
  her source via rustc, else the card's dod_shell against a copy;
  no check at all errors rather than vacuously passing
- FAIL returns the real compiler/assertion output (tail-bounded), directly
  coachable into the room
- record=true publishes through the ONE existing benchmark/record verb as
  a kanban-harness ledger row

Tests extend the file's test surface: resolver fail-loud contract +
registration/access shape, each with '// what this catches:'.

Co-Authored-By: Claude Fable 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…-based kanban work

The dispatch-side bridge for project benchmarks. swe-grade already grades a
citizen's edited working tree launder-proof (workspace param: her diff,
re-applied in a fresh clone at base_commit). This adds the setup leg: a SWE
card is not a prompt, it is a BROKEN REPO, so the verb stages one instance
into citizens/peers/<solver>/workspace/swe/<instance>/ using the SAME
clone_at the grader trusts (mirror-cached, checked out at base_commit — a
clone at HEAD is how eight runs once scored against pre-fixed trees).

- returns a card-ready body: issue text + workspace-relative path in HER
  coordinates + definition of done; gold patch, test_patch, and
  FAIL_TO_PASS/PASS_TO_PASS never enter the card (held out — pinned by test)
- existing checkout is NOT silently destroyed: fresh=true is the explicit
  discard, default errors loud (her in-progress work is labor, not litter)
- Privileged: it writes into a citizen's workspace; AiSafe would let any
  persona overwrite another citizen's staged work (pinned by test)
- solver resolution shared with benchmark/grade (resolve_solver_dir)

Loop shape now complete for SWE: swe-setup → post card (body returned) →
citizen edits the repo with her own hands → swe-grade --workspace <path>.

Co-Authored-By: Claude Fable 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…d per-card kickoff

The activation leg. Measured 2026-08-07 across three coached turns: a card
sitting on the board does NOT start work, and even a correct instruction gets
ignored when the tail coalescer glues it mid-burst — but an addressed
imperative in its OWN message block actuates (Anwen's claim_task + code/write
both fired from exactly that shape). This encodes the finding: dispatch with
assignees=[names] round-robins the cards and sends one addressed kickoff per
card via airc.say — one event = one block, so the structural condition holds
by construction.

- kickoff names the citizen, card short-id, claim verb, solution file, and
  done transition — the full one-pass recipe
- a failed kickoff degrades to undirected dispatch: card stays on the board,
  failure rides kickoff_errors on the result (reported, never unwound/hidden)
- omitting assignees = exactly the old behavior (cards only, self-select)

Build order per #346 sentinel design: this lands BEFORE the grading sentinel
because the sentinel acts through the dispatching persona's runtime — directed
dispatch is what creates that provenance.

Co-Authored-By: Claude Fable 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…first-class benchmark row

The gym was already embedded in the registry (gym.rs: coder-write-eval.jsonl,
30 tasks with held-out test assertions) and its cards were live on the board —
but it had no known_benchmarks() row, so benchmark/grade correctly refused it
('unknown benchmark', fail-loud verified live post-deploy). One row closes the
gap: dispatch, grade, and record now all resolve the same name the cards carry.

Co-Authored-By: Claude Fable 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…319 producer + spine)

The amnesia was total and structural: ExperienceRecord::from_eval and
from_lived_turn had ZERO production callers (BigMama independently
re-derived the same finding) — the whole #116 salience→curriculum seam
was built, tested, and unfed. Green-but-unreachable class.

This lands the durable SPINE plus the first producer edge:

- experience.rs: Serialize/Deserialize on the record; per-citizen
  append-only stream at citizens/peers/<id>/experience.jsonl (inside the
  tracked 'citizens' disk class — inherits its accounting + eviction
  story, no new cache dir); append_experience surfaces errors to the
  caller; load_experiences treats a missing file as a fresh mind and
  counts+warns unparseable lines (visible loss, never silent).
- from_kanban_grade: lesson-not-paper — retains HER artifact and the
  REAL check output (the compiler/assertion text IS the lesson); no
  trajectory exists at the grading site so world_state/acts are honest
  absences; task keeps its held-out test so remediation can re-pose and
  objectively re-grade, same as from_eval records.
- benchmark/grade: appends at the verdict; append faults are LOUD but
  never void the grade (the verdict is the command's primary contract).
- benchmark/swe-grade: appends ONLY for workspace grades (gold/raw-patch
  arms are harness plumbing) and ONLY on a real verdict (an errored run
  is an ABSENCE — teaching from a harness fault would corrupt the reward
  signal). citizen_peer_dir_of is resolve_solver_dir's inverse, not a
  second layout.

Tests: roundtrip-with-corrupt-line, teach-set eligibility of a failed
grade, missing-stream-is-empty, peer-dir attribution (wrong dir would
file her lesson into someone else's mind). Pre-existing red
experience::source::tests::an_experience_authored_on_disk_needs_no_rust
fails identically with this change stashed — not this commit's.

Next: the drain (curriculum loads the stream → existing L2/L3 train
path) and the lived-turn producer (#320).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…cipe is 'benchmark/hard-rs'

an_experience_authored_on_disk_needs_no_rust asserted the shipped floor
still contained "benchmark", but the recipe's purpose has been
"benchmark/hard-rs" since the #274 disk-loading commit (benchmark.json:2,
and every other reference in this module already uses the new name —
:246, :253, :295, mod.rs:422). Line 374 was the one stale holdout, red on
a clean tree.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…obe (#363 — the blackout class)

Glass-box of the 2026-08-07 25-minute room blackout: serving/status said
ready:true throughout, /health answered 200, and the existing decode
heartbeat COULD NOT see the wedge — it is a tiny 1-token generation, and
this wedge class (undersized slot / mid-stream death) REJECTS the
fleet's real 12k prompts while accepting tiny ones. 'Can generate' is
not 'can serve the actual working set'. Worse, the citizens' primary
path (streaming) never stamped note_real_decode at all — only the
blocking path did — so the liveness record was blind to the very lane
traffic that proves or disproves health.

Delivery beats probing, now in BOTH directions:
- llama_server: REAL_DECODE_FAILS counter — note_real_decode_failure(),
  consecutive_real_decode_failures(), reset on any success and on wedge
  declaration (a fresh lane starts clean, not condemned by its
  predecessor's record).
- openai_adapter: the streaming path stamps the local lane's record —
  failure on the two terminal stream deaths (idle timeout, read error),
  success on EOF with real output (the missing streaming sibling of the
  blocking path's stamp). Attribution is DATA-driven: URL equality
  against the published ServingSnapshot (targets_local_serving_lane),
  never a provider-name sniff (#70) — a cloud 529 can never smear the
  local lane and a local success can never launder a cloud failure.
- serving_daemon heartbeat: consecutive real failures >=
  HEALTH_FAILS_TO_RELAUNCH declares the lane wedged BEFORE the
  recent-decode trust window and before any probe — same hysteresis
  constant as the decode heartbeat, no second knob. Injectable
  RealFailsSource test seam (same rationale as DecodeAgeSource:
  process-global reads make tests order-dependent).

Test: sustained_real_turn_failures_outrank_a_passing_probe — smoke
would pass AND decode trust is fresh, wedge still declared, snapshot
flips not-ready, force_relaunch armed, no probe spawned. Existing
busy-lane trust test stays green.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…st HEALTHY lane's window (#363 prevention half)

The #175 sticky floor reads the LIVE snapshot, but declaring a wedge
EMPTIES that snapshot first — so the very relaunch the wedge detector
triggers bypassed the floor by construction and spawned at whatever the
teardown-transient plan said. Measured live 2026-08-07: the dying
34,048-window predecessor still held its memory when the successor's
budget sampled free RAM, the plan dipped to 9,984, the successor spawned
undersized, and every subsequent 12k-token prompt was rejected — the
exact wedge the detection half (be973a7) now catches, recreated by its
own heal.

Fix: remember the last HEALTHY lane's (window, lanes) in a record that
SURVIVES the wedge-empty (stamped at the ready-snapshot publish site),
and floor the successor to it when live is not ready and lanes are
unchanged — wedge_heal_floor, sticky_served_window's sibling for the
emptied-snapshot case. Memory-safe: the predecessor's window IS the
memory being freed, so the successor inherits it; the existing overflow
protection remains the backstop if the world genuinely shrank. Probed
under serving.reconcile.window as decision=wedge-heal-floor.

Test pins the measured blackout shape (9,984 plan vs 34,048 last-healthy
→ floored) plus the three stand-down cases: live-ready defers to sticky,
lane-count change resizes legitimately, cold boot passes the plan.
Full serving_daemon suite 34/34 green.

Detection (be973a7) + prevention (this) close #363: the lane cannot
lie about being alive, and the heal cannot recreate the wedge it fixed.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
# Conflicts:
#	core/continuum-core/src/routing/tracing_init.rs
…ses the flywheel

genome/teach gains a third task source: a citizen's peer id. Loads her
durable experience stream (written by benchmark/grade + swe-grade),
collapses to the LATEST record per task (latest_per_task — a later PASS
RETIRES the failure: the lesson was learned, re-teaching a solved gap
wastes the teacher and risks overfitting; a later failure supersedes a
stale one), then selects salient test-graded failures via the SAME
ErrorSalience + salient_teach_set every experience consumer uses.
Precedence: inline tasks > from_experience > teach_set/default.

Same citizen layout as the grader (resolve_solver_dir/continuum_home now
pub(crate) — one resolver, never two layouts). Empty drain is named as a
CLEAN state in the error text (nothing to learn ≠ misconfiguration).
Probed under genome.teach.from_experience with stream/dedup/teachable
counts.

The loop this closes: citizen fails a graded academy card → the grade
writes her stream (f726367) → teach --from-experience <her id> turns
the failure into validated corpus → existing L2/L3 trains + page-in on
lift → re-grade PASSes → latest_per_task retires the lesson. Grades in,
lessons out, curves visible.

Test: a_later_pass_retires_the_failure_from_the_teach_set pins the
dedup+selection contract.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…rk gets the grounding floor + first selection (card f6a9fe5c)

Live specimen 2026-08-07: under a squeezed window Benchy's render dropped
recall, roster, active-work, workspace-map AND the kanban; the #259 floor
kept only the SMALLEST offered contribution (a 49-token status note), so a
citizen HOLDING a staged SWE card had nothing about her work in her window
except the bare claim receipt — and she reasonably yielded. 97.9s of
prefill for 7 tokens of yield_turn, own_repetition firing: the repeat was
a SYMPTOM (#353), the structural failure was starvation of her own thread.

Three coupled corrections at the ONE seam:
1. The ctx floor reserves the ACTIVE-WORK contribution when one is offered
   (else smallest, as before) — a held claim is HER THREAD, and the wake
   briefing already leads with it (#125 slice 1); the mid-session floor now
   agrees. The fairness cap (half the post-framing pool) is unchanged.
2. Selection considers active-work FIRST, then salience — a reservation
   only holds if the reserved claimant is first in line; a divisible
   higher-salience recall would otherwise spend it on a prefix of itself.
3. The reservation includes the working-context wrapper header the budget
   charges before anything renders — a floor sized to the contribution
   alone under-reserved by exactly the header and delivered nothing (both
   arms; this realizes #259's stated guarantee in the small-floor regime).

active_work_source::SOURCE_ID goes pub(crate) so the floor keys on the
SAME constant — no second literal to drift.

Test: a_held_work_card_survives_budget_pressure_that_drops_everything_else.
Suite: 31/31 prior tests green; the tool-surface ceiling test is a
PRE-EXISTING canary red (stash-verified, carded separately).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 0207d2e into canary Aug 8, 2026
3 of 5 checks passed
@joelteply
joelteply deleted the feat/activity-recipes-as-data branch August 8, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant