Repository navigation
docs(architecture): MODULE-CATALOG.md — mark which modules are alive in Rust (step 4 of 4) - #1496
Merged
Merged
Conversation
…in Rust (step 4 of 4)
Final step of the doc set Joel approved on 2026-05-30 ("Yeah let's do it. In order"):
1. ✅ Field manual codifying substrate (PR #1493)
2. ✅ Generator v2 emitting modules per the template (PR #1494)
3. ✅ Per-module design pages for what we've built (PR #1495)
4. **This PR**: MODULE-CATALOG.md update marking which modules are alive in Rust
# What this PR adds
A new `§0. Currently Live In Rust` section near the top of the
catalog with three sub-tables:
## Sub-table 1: Live modules
| Module | What ships | PR | Design doc | Concurrency proven |
|---|---|---|---|---|
| `chat` | chat/poll + chat/send | #1489 | CHAT-MODULE.md | 4 tests |
| `generator` | generate/module + v2 scaffold | #1487 + #1494 | GENERATOR-MODULE.md | 3 tests |
| `data` cursors | data/query-* with HandleRef | #1490 | DATA-CURSORS-MODULE.md | 7 tests |
| `airc/realtime-store` | in-process realtime store | (pre-session) + #1492 tests | AIRC-REALTIME-STORE-MODULE.md | 4 tests |
## Sub-table 2: Substrate primitives
The kernel-level work the four modules ride on — `ServiceModule`
trait, interceptor chain (PR #1483/#1484), HandleRef + cell shapes
(#1485), envelopes (#1486), expect_owned_by + handle_id_or_legacy
(#1491), field manual (#1493), generator v2 (#1494).
## Sub-table 3: Three-primitive map
Per Joel 2026-05-30, mapping the live modules to Commands / Events
/ Persona — showing chat + generator + data are Commands; airc/realtime
is Events; Persona is the next migration target.
# Why minimal restructure
The catalog is 1133 lines of design-proposal entries for every
Continuum concern. Restructuring individual entries to mark which
are live would scatter the live-vs-proposal signal across dozens
of sections. Putting it in one top-of-doc §0 section gives readers
the live-status at a glance without disturbing the rest of the
catalog's design-proposal framing.
# Doctrine the §0 establishes
Modules earn a row in §0 when they clear ALL THREE of the field
manual's acceptance criteria:
1. Rust implementation merged
2. Per-module design doc capturing role / surface / state /
concurrency / migration / kinks
3. Multi-thread concurrency tests pinning per-resource invariants
This makes the catalog dual-purpose:
- **Design proposal repository** (§I–§IX, unchanged) — what we
intend to build
- **Implementation status board** (§0, new) — what we've actually
built + proven
Future migrations grow §0; the proposal sections shrink as their
entries get promoted.
# Updates to the header
- Cross-ref added to COMMAND-INFRASTRUCTURE-FIELD-MANUAL.md
(joining CBAR / GENOME-FOUNDRY-SENTINEL / PERSONA-COGNITION-CONTRACT)
- Status line updated: "Most entries are design proposals … Some
are now live in Rust — see §0 below"
# Net diff
+41 lines, -2 lines. Surgical addition that doesn't disturb the
existing catalog content.
# What this PR does NOT do
- **Does NOT migrate any module** — pure documentation
- **Does NOT restructure §I–§IX entries** — each concern stays in
design-proposal form until it migrates to Rust + earns a §0 row
- **Does NOT add new module concerns to the catalog** — chat,
generator, data cursors, and airc/realtime-store are already
represented implicitly in the existing concerns sections; §0 is
the live-status index, not a new concern listing
# References
- PR #1493 — Field manual (acceptance criteria the §0 table inherits)
- PR #1494 — Generator v2 (eats own dogfood)
- PR #1495 — Per-module design pages linked from §0
- PRs #1487, #1489, #1490, #1492 — the live modules
- Memory: `three-primitives-commands-events-persona`,
`headless-rust-must-work-soon`
Co-Authored-By: Claude Opus 4.7 <[email protected]>
This was referenced Oct 2, 2026
joelteply
added a commit
that referenced
this pull request
Oct 2, 2026
…after a reboot Joel: "airc and continuum work together but are separately capable and continuum must make sure airc installs." The core already bootstraps a missing airc at boot (detached); nothing checked that airc returns after a restart, and the M5 sat off the mesh for hours on 2026-10-02 until a hand ran it. `continuum install` gains an airc arm (`--airc`, and part of bare `install`): - drift (pure, tested): Missing (no runnable airc on PATH) or Unsupervised (airc runs, nothing starts `airc join` at login). An absent airc is one drift. - converge: install through airc's own installer (discovery::install_airc, now public; boot still runs it detached), then, only if airc's installer did not, run airc's own registrar (unix/register-autostart.sh from airc's install source, airc #1496). An airc that predates the registrar is told to `airc update`. Windows checks the airc-join task and points at airc's installer. - airc stays its own product: continuum checks and invokes, never reimplements. Verified on the M5 with this build: --check reads converged with the agent registered and Unsupervised (exit 1) after bootout; install against an airc without the registrar refuses with the `airc update` hint; against #1496 it registers and re-reads converged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 2, 2026
…a tokenless daemon M5, 2026-10-02, twice: the core (a system LaunchDaemon, outside the login session) respawned the airc daemon as a bare `airc daemon` with stderr to /dev/null. `airc join` provisions the daemon's GitHub token from the user's gh; the bare spawn got none, so the daemon's registry refresh never ran and every peer aged into a ghost about ten minutes after each sync: 0 routes, the node off the mesh while it looked healthy, and the gate's complaint discarded. Confirmed live: a core-spawned daemon (no GH_TOKEN) went from 3 live peers to 0 ten minutes after a manual sync; a token-provisioned daemon held 5-6 live peers well past that mark. - macOS: when airc's login supervisor is registered (airc #1496), spawn kickstarts it (`airc join` in the user's session) and waits for the daemon to answer: new Spawned::StartedByAirc, probe airc.daemon.revived_by_airc. airc owns that daemon, so restart_if_owned leaves it alone. - Otherwise the core spawns as before, with GH_TOKEN from `gh auth token` when this context can read it, and the daemon's stderr appended to ~/.continuum/logs/airc-daemon.log instead of /dev/null. Live check after deploy: `airc stop` on the M5 should log revived_by_airc and the new daemon should carry GH_TOKEN, with live peers holding past ten minutes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 3, 2026
Review of #4670 (three P1s): - Windows commands (where, airc --version, schtasks) ran without creation flags and could open a console. Every helper now goes through supervisor_install::quiet_command (CREATE_NO_WINDOW, stdin null), the same flag the scheduler seam uses. - The Windows Unsupervised arm could detect but not repair. The arm now runs airc's own registrar (windows/register-autostart.ps1 or unix/register-autostart.sh from airc's install source) to repair, which owns its consent path, and re-reads after. - Task presence was treated as converged. Continuum no longer reads airc's task or plist at all: it asks the registrar in check mode (airc #1496: --check / -Check: registered, enabled, same action/principal/run level, runners current), and AircDrift::Unsupervised carries the registrar's reason. The old launchctl/schtasks presence probe is deleted. Verified on the M5 against #1496's registrar: --check converged (0.37 s); after launchctl bootout --check names "not loaded" (exit 1); `install --airc` has the registrar re-register and re-reads converged. Against an airc without the registrar: drift with "run `airc update`". Windows path compiled by CI only; not run on a Windows box yet. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 3, 2026
…a tokenless daemon M5, 2026-10-02, twice: the core (a system LaunchDaemon, outside the login session) respawned the airc daemon as a bare `airc daemon` with stderr to /dev/null. `airc join` provisions the daemon's GitHub token from the user's gh; the bare spawn got none, so the daemon's registry refresh never ran and every peer aged into a ghost about ten minutes after each sync: 0 routes, the node off the mesh while it looked healthy, and the gate's complaint discarded. Confirmed live: a core-spawned daemon (no GH_TOKEN) went from 3 live peers to 0 ten minutes after a manual sync; a token-provisioned daemon held 5-6 live peers well past that mark. - macOS: when airc's login supervisor is registered (airc #1496), spawn kickstarts it (`airc join` in the user's session) and waits for the daemon to answer: new Spawned::StartedByAirc, probe airc.daemon.revived_by_airc. airc owns that daemon, so restart_if_owned leaves it alone. - Otherwise the core spawns as before, with GH_TOKEN from `gh auth token` when this context can read it, and the daemon's stderr appended to ~/.continuum/logs/airc-daemon.log instead of /dev/null. Live check after deploy: `airc stop` on the M5 should log revived_by_airc and the new daemon should carry GH_TOKEN, with live peers holding past ten minutes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 3, 2026
…after a reboot Joel: "airc and continuum work together but are separately capable and continuum must make sure airc installs." The core already bootstraps a missing airc at boot (detached); nothing checked that airc returns after a restart, and the M5 sat off the mesh for hours on 2026-10-02 until a hand ran it. `continuum install` gains an airc arm (`--airc`, and part of bare `install`): - drift (pure, tested): Missing (no runnable airc on PATH) or Unsupervised (airc runs, nothing starts `airc join` at login). An absent airc is one drift. - converge: install through airc's own installer (discovery::install_airc, now public; boot still runs it detached), then, only if airc's installer did not, run airc's own registrar (unix/register-autostart.sh from airc's install source, airc #1496). An airc that predates the registrar is told to `airc update`. Windows checks the airc-join task and points at airc's installer. - airc stays its own product: continuum checks and invokes, never reimplements. Verified on the M5 with this build: --check reads converged with the agent registered and Unsupervised (exit 1) after bootout; install against an airc without the registrar refuses with the `airc update` hint; against #1496 it registers and re-reads converged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 3, 2026
Review of #4670 (three P1s): - Windows commands (where, airc --version, schtasks) ran without creation flags and could open a console. Every helper now goes through supervisor_install::quiet_command (CREATE_NO_WINDOW, stdin null), the same flag the scheduler seam uses. - The Windows Unsupervised arm could detect but not repair. The arm now runs airc's own registrar (windows/register-autostart.ps1 or unix/register-autostart.sh from airc's install source) to repair, which owns its consent path, and re-reads after. - Task presence was treated as converged. Continuum no longer reads airc's task or plist at all: it asks the registrar in check mode (airc #1496: --check / -Check: registered, enabled, same action/principal/run level, runners current), and AircDrift::Unsupervised carries the registrar's reason. The old launchctl/schtasks presence probe is deleted. Verified on the M5 against #1496's registrar: --check converged (0.37 s); after launchctl bootout --check names "not loaded" (exit 1); `install --airc` has the registrar re-register and re-reads converged. Against an airc without the registrar: drift with "run `airc update`". Windows path compiled by CI only; not run on a Windows box yet. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 3, 2026
…a tokenless daemon M5, 2026-10-02, twice: the core (a system LaunchDaemon, outside the login session) respawned the airc daemon as a bare `airc daemon` with stderr to /dev/null. `airc join` provisions the daemon's GitHub token from the user's gh; the bare spawn got none, so the daemon's registry refresh never ran and every peer aged into a ghost about ten minutes after each sync: 0 routes, the node off the mesh while it looked healthy, and the gate's complaint discarded. Confirmed live: a core-spawned daemon (no GH_TOKEN) went from 3 live peers to 0 ten minutes after a manual sync; a token-provisioned daemon held 5-6 live peers well past that mark. - macOS: when airc's login supervisor is registered (airc #1496), spawn kickstarts it (`airc join` in the user's session) and waits for the daemon to answer: new Spawned::StartedByAirc, probe airc.daemon.revived_by_airc. airc owns that daemon, so restart_if_owned leaves it alone. - Otherwise the core spawns as before, with GH_TOKEN from `gh auth token` when this context can read it, and the daemon's stderr appended to ~/.continuum/logs/airc-daemon.log instead of /dev/null. Live check after deploy: `airc stop` on the M5 should log revived_by_airc and the new daemon should carry GH_TOKEN, with live peers holding past ten minutes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Oct 3, 2026
…a tokenless daemon (#4672) * feat(install): continuum makes sure airc is installed and comes back after a reboot Joel: "airc and continuum work together but are separately capable and continuum must make sure airc installs." The core already bootstraps a missing airc at boot (detached); nothing checked that airc returns after a restart, and the M5 sat off the mesh for hours on 2026-10-02 until a hand ran it. `continuum install` gains an airc arm (`--airc`, and part of bare `install`): - drift (pure, tested): Missing (no runnable airc on PATH) or Unsupervised (airc runs, nothing starts `airc join` at login). An absent airc is one drift. - converge: install through airc's own installer (discovery::install_airc, now public; boot still runs it detached), then, only if airc's installer did not, run airc's own registrar (unix/register-autostart.sh from airc's install source, airc #1496). An airc that predates the registrar is told to `airc update`. Windows checks the airc-join task and points at airc's installer. - airc stays its own product: continuum checks and invokes, never reimplements. Verified on the M5 with this build: --check reads converged with the agent registered and Unsupervised (exit 1) after bootout; install against an airc without the registrar refuses with the `airc update` hint; against #1496 it registers and re-reads converged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(install): name airc's supervisor once, with no org in it The tenant-neutrality ratchet caught the LaunchAgent label naming our org. airc now labels its macOS supervisor airc-join, the same name as its Windows task, and continuum reads it from one const, airc::discovery::AIRC_JOIN_SUPERVISOR, for both the launchctl and schtasks probes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(install): the airc arm asks airc's registrar; hidden on Windows Review of #4670 (three P1s): - Windows commands (where, airc --version, schtasks) ran without creation flags and could open a console. Every helper now goes through supervisor_install::quiet_command (CREATE_NO_WINDOW, stdin null), the same flag the scheduler seam uses. - The Windows Unsupervised arm could detect but not repair. The arm now runs airc's own registrar (windows/register-autostart.ps1 or unix/register-autostart.sh from airc's install source) to repair, which owns its consent path, and re-reads after. - Task presence was treated as converged. Continuum no longer reads airc's task or plist at all: it asks the registrar in check mode (airc #1496: --check / -Check: registered, enabled, same action/principal/run level, runners current), and AircDrift::Unsupervised carries the registrar's reason. The old launchctl/schtasks presence probe is deleted. Verified on the M5 against #1496's registrar: --check converged (0.37 s); after launchctl bootout --check names "not loaded" (exit 1); `install --airc` has the registrar re-register and re-reads converged. Against an airc without the registrar: drift with "run `airc update`". Windows path compiled by CI only; not run on a Windows box yet. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(airc): the core starts airc through airc's own supervisor, never a tokenless daemon M5, 2026-10-02, twice: the core (a system LaunchDaemon, outside the login session) respawned the airc daemon as a bare `airc daemon` with stderr to /dev/null. `airc join` provisions the daemon's GitHub token from the user's gh; the bare spawn got none, so the daemon's registry refresh never ran and every peer aged into a ghost about ten minutes after each sync: 0 routes, the node off the mesh while it looked healthy, and the gate's complaint discarded. Confirmed live: a core-spawned daemon (no GH_TOKEN) went from 3 live peers to 0 ten minutes after a manual sync; a token-provisioned daemon held 5-6 live peers well past that mark. - macOS: when airc's login supervisor is registered (airc #1496), spawn kickstarts it (`airc join` in the user's session) and waits for the daemon to answer: new Spawned::StartedByAirc, probe airc.daemon.revived_by_airc. airc owns that daemon, so restart_if_owned leaves it alone. - Otherwise the core spawns as before, with GH_TOKEN from `gh auth token` when this context can read it, and the daemon's stderr appended to ~/.continuum/logs/airc-daemon.log instead of /dev/null. Live check after deploy: `airc stop` on the M5 should log revived_by_airc and the new daemon should carry GH_TOKEN, with live peers holding past ten minutes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(airc): use the shared airc supervisor name, with no org in it Reads airc::discovery::AIRC_JOIN_SUPERVISOR (airc-join, as on Windows) instead of a second org-named label; the tenant-neutrality ratchet caught it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(airc): a registered airc supervisor is never bypassed; one start budget Review of #4672 (two P1s): - A registered supervisor that launchd would not query or start fell through to the tokenless spawn this change exists to prevent. Now start_route is one pure rule: Registered -> only through the supervisor (its failure is the answer), Absent -> spawn directly, Unreadable launchd -> refuse. A direct spawn with no token is a new outcome, StartedWithoutToken, reported as failed at boot and as probe airc.daemon.started_without_token, never as healthy. - The supervisor route waited 30 s inside a caller bounded at 17 s. SPAWN_BUDGET (40 s) now covers every route, the supervisor wait is derived from it, and the liveness owner waits SPAWN_BUDGET + 2. Tests: a_registered_supervisor_is_never_bypassed_and_an_unreadable_one_refuses, every_start_route_fits_the_budget_its_caller_waits. Not covered: a fixture that drives a real launchctl refusal and a real no-keychain spawn across the process and IPC boundary; that remains a live check after deploy. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(airc): one airc starter in the core, always through airc's own lifecycle Card c2f4971b. Astra's nonce-c run (2026-10-03) proved the core spawned a new airc 1.3 s after an intentional stop: discovery_aggregate::recover_stale_daemon ran its own `airc events list`, a second reviver beside the liveness owner that bypassed its grace window and the supervisor route. - daemon_supervisor::spawn is the one starter. macOS: airc's login supervisor when registered (unchanged). Otherwise: airc's own gated autostart (a CLI read that reaches ensure_daemon_running), never a bare `airc daemon`. That honors airc's maintenance gate (DaemonLifecycleGuard) and lets airc provision the daemon's GitHub token itself, so the core's gh_token copy and StartedWithoutToken are deleted; airc's own warning lands in ~/.continuum/logs/airc-daemon.log. - discovery's recover_stale_daemon now delegates to that starter (one budget, SPAWN_BUDGET) and keeps its probe and DAEMON_STARTED_AT patience. - Restarts go through airc too: restart_through_airc = `airc stop` then spawn, never kill9 by pid. OWNED_PID and Restart::NotOurs are removed; the fd-pressure owner calls it and keeps its measured-freed probe. Tests: daemon_supervisor 4, discovery_aggregate 12, fd_pressure 1, daemon_liveness 2, boot_plan 4, all pass on macOS. Not exercised live: needs a deployed core. An intentional `airc stop` is honored only once airc records a durable stop intent (proposed on airc; owner TBD); maintenance windows are honored now. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(airc): bounded autostart child is killed; only launchd's own "no service" is absent Re-review of #4672 at cc90945 (BLOCK): 1. The autostart child could outlive its wait and complete later, overlapping the next attempt. bounded_command gains wait_bounded, the module's one deadline loop: past the deadline the child is killed and reaped. capture keeps exit code and both streams; probe is rebuilt on them (no second loop). The direct route waits on its child with wait_bounded and reports refused/failed/stopped by name. 2. Every nonzero `launchctl print` read as Absent and so permitted the direct start. supervisor_state_from classifies launchd's real answer: exit 0 Registered; exit 113 with "Could not find service" Absent; everything else (112 "Could not find domain", denials, timeouts, unstartable) Unreadable with launchd's words, which refuses. Kickstart failures carry launchd's answer too. 3. restart_through_airc no longer runs `airc stop` then start: with airc's durable operator stop intent (card 8825182f) that would stop the daemon for good or erase an operator's stop. It now reports that airc has no transient restart entry yet; the fd-pressure owner records the owed operator restart. Tests: a_child_past_its_deadline_is_killed_and_cannot_act_afterward and capture_keeps_the_exit_code_and_stderr (bounded_command, real processes); only_launchds_no_such_service_answer_permits_a_direct_start (fixtures are launchd's real outputs captured on the M5). Module suites pass on macOS. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(bounded_command): drain pipes concurrently; report kill and reap failures Review of #4672 at b218ef3: capture read both pipes only after the child exited, so a child writing more than a pipe holds stalled into a false timeout, and a descendant that inherited a pipe held the call past its deadline after the child exited (wait_with_output ran outside the bound). Both pipes now drain on their own threads from spawn; after exit the text is taken within what is left of the same deadline, and a pipe a descendant keeps open is not waited for. wait_bounded now kills and reaps on a try_wait failure too, and returns a reap failure instead of dropping it. Test: capture_drains_large_output_and_ignores_a_descendant_holding_the_pipe (300 kB stdout; a backgrounded `sleep 30` holding the pipe returns in under 5 s). Both halves fail on b218ef3. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(bounded_command): capture into owned files under one deadline; kill the group Re-review of #4672 at c01024e (BIGGIEDESK): 1. `left` was computed once and spent on two sequential recv_timeouts, so a descendant holding both pipes could take nearly twice the bound. 2. Detached read_to_end threads were never cancelled: each probe with a persistent descendant leaked two threads and two pipe handles, and empty text hid an incomplete capture. 3. wait_bounded called a blocking wait() even when kill() failed. capture now writes stdout and stderr to temp files it owns (unlinked at once on Unix), not pipes: nothing stalls on a full pipe, a descendant on the streams cannot hold the call, and there is no reader thread. One absolute deadline covers the run. On Unix the child leads its own process group and a timeout kills the whole group. kill_and_reap returns "could not terminate" when a kill fails on a child still running, instead of blocking in wait(). Tests (real processes): capture_holds_one_deadline_with_large_output_or_a_descendant_on_the_streams (300 kB, and a backgrounded `sleep 30` on both streams returns under the 2 s bound), a_timeout_kills_the_whole_process_group (a descendant's delayed write never lands). bounded_command 8/8, daemon_supervisor 5/5 on macOS. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(bounded_command): bounded snapshot, bounded reap, no descendant outlives a capture Re-review of #4672 at f448ec7 (BIGGIEDESK, 5965426113): - text() did an unbounded read_to_end after exit, and seek(0) moved the offset a surviving descendant shared. snapshot() now reads at most CAPTURE_LIMIT (64 KiB) per stream by position (pread / seek_read), never moving the shared offset, and Captured::Exited carries `truncated` so an incomplete capture is explicit. - On a normal exit, capture now kills the child's process group too (Unix), so no descendant keeps writing after the call returns. - try_wait errors no longer skip cleanup: both wait_bounded and capture kill and try to reap first. kill_and_reap never blocks in wait(): it observes the exit within REAP_GRACE (2 s) and otherwise reports "killed, but its exit was not observed" (or the kill error), instead of claiming the child was reaped. Test: the descendant fixture now also runs a writer that never stops on BOTH streams; the call keeps its 2 s bound, each stream is bounded by CAPTURE_LIMIT, and no writer survives (matched by a run-time token). bounded_command 8/8 on macOS. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(source-hygiene): a constructor counts only inside the type's own impl Review of #4672 at 63cbc0d (BIGGIEDESK): unwired_public_machinery rose 107 -> 108. The new entry was bounded_command::Probed. Probed has no constructor; the file gained one (CaptureFile::new), and is_machinery searched the WHOLE declaring file for a constructor shape, so every pub type beside any `fn new` read as machinery. is_machinery now tracks brace depth and accepts a constructor only inside an `impl <Name>` block of that type. Measured: the ratchet drops from 107 to 61 (46 pub types were flagged only for a neighbour's constructor), so per the guard's own rule the baseline is lowered to 61, not waived. New test: a pub enum with an impl but no constructor, beside a private type with `fn new`, is not machinery; the private one is. Also: SupervisorState, StartRoute, start_route and supervisor_state_from are used only inside daemon_supervisor.rs, so they are no longer pub; CAPTURE_LIMIT is private. source-hygiene 27/27. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(airc): spawn issues the start and returns; no-session starts directly; no kickstart -k Cormac's review of #4672 at 3160158 (IntelMac), plus BIGGIEDESK's e41177b6: Blocking, slow store: recover_stale_daemon noted the start only when the daemon answered within 25 s, but a 2.4 GB store answers in 60-70 s (the 5090), so patience ran out and full-citizen boot was refused: the four-days-dark loop. spawn now issues the start and returns Spawned::Issued(route); it never waits for an answer. Every issued start resets DAEMON_STARTED_AT; liveness spaces its next attempt like a failure so a slow store is never restarted underneath itself. The autostart read that is still waiting at AUTOSTART_BOUND is an issued start (the read is stopped, the daemon is not); only airc's own non-zero exit is a failure. No login session: launchctl print exits 112 for a gui domain that does not exist (a core booted to the login screen). That was Unreadable -> Refuse -> no daemon until login. New SupervisorState::NoSession starts directly and says it is tokenless. kickstart without -k: a supervisor running but not yet answering is opening its store; -k killed it. Plain kickstart starts the job only if it is not running. Budget: the old test reduced to x <= x. spawn_worst_case() sums the bounds spawn runs under (resolve + answering + launchctl print + the longer route, each timed-out child plus REAP_GRACE); the test fails if SPAWN_BUDGET stops covering it. bounded_command: normal-exit group kill reports a non-ESRCH error in Captured::Exited .cleanup instead of discarding it; kill_and_reap errors after a try_wait error are named via with_cleanup; the truncated doc says only "more than CAPTURE_LIMIT"; the capture doc names the setsid/setpgid escape instead of claiming no descendant survives. daemon_log returns its open error; the caller says the words are lost instead of pointing at a log that does not exist (logs/ is already a tracked dir). The source-hygiene scanner change moved to #4678, which must merge first. Tests: bounded_command, daemon_supervisor, daemon_liveness, discovery_aggregate, boot_plan 31/31 on macOS. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(airc): drop the stale killed-and-reaped comment; pin why a mid-open re-issue is safe Cormac's review of #4672 at 629d9e7: - daemon_supervisor.rs still carried the old comment saying the autostart read is killed and reaped past its bound so the start cannot complete later; since the rework a read still waiting is an issued start, and the stale comment contradicted the code below it. - daemon_liveness: the backoff re-issues a start about 30 s into a 60-70 s store open; the comment now pins that this is safe only because both routes are idempotent (gated autostart joins an in-progress start; kickstart without -k leaves a running job alone), so a non-idempotent route is never added there. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(launch): one quiet launch policy; every probe and airc's autostart use it Astra's review of #4672: bounded_command::capture built a raw Command::new(program) with no CREATE_NO_WINDOW, while this PR added quiet_command in supervisor_install and daemon_supervisor kept its own hand-set flag. probe delegates to capture, so nvidia-smi, vulkaninfo, python and the deploy tracker's git/gh calls could each flash a console window from a hidden service on Windows: three launch policies where Joel asked for one. quiet_command moves to continuum_cli_lifecycle::process (re-exported from supervisor_install for its existing callers) and is the one policy: no console window on Windows, stdin closed. bounded_command::capture and daemon_supervisor's autostart now build through it. (continuum.rs's Windows service launch already sets the flag on a command it prepares elsewhere and is unchanged.) continuum-cli-lifecycle 50/50; continuum-core bounded_command, daemon_supervisor, daemon_liveness, discovery_aggregate 27/27 on macOS. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Final step of the 4-PR doc set Joel approved on 2026-05-30 ("Yeah let's do it. In order"):
What this PR adds
New
§0. Currently Live In Rustsection near top of the catalog. Three sub-tables:Sub-table 1: Live modules
chatgeneratordatacursorsairc/realtime-storeSub-table 2: Substrate primitives the live modules ride on
ServiceModule trait, interceptor chain, HandleRef + cell shapes, envelopes,
expect_owned_by+handle_id_or_legacy, field manual, generator v2 — each row cites its PR.Sub-table 3: Three-primitive map
Per Joel 2026-05-30, mapping live modules to Commands (chat, generator, data) / Events (airc/realtime-store) / Persona (next migration target).
Why minimal restructure
The catalog is 1133 lines of design-proposal entries for every Continuum concern. Restructuring individual entries to mark which are live would scatter the live-vs-proposal signal across dozens of sections. Putting it in one top-of-doc §0 section gives readers the live-status at a glance without disturbing the rest of the catalog's design-proposal framing.
Net diff: +41 / -2 lines. Surgical addition.
Doctrine §0 establishes
Modules earn a row in §0 when they clear ALL THREE of the field manual's acceptance criteria:
The catalog becomes dual-purpose:
Future migrations grow §0; proposal sections shrink as entries get promoted.
Header updates
What this PR does NOT do
Test plan
#0-currently-live-in-rustresolves from the status lineStacks on
canarydirectly — pure documentation PR.The four-PR doc set is complete
Module-author onboarding flow now reads end-to-end:
./jtag generate/module ...to scaffold the new moduleThat's the whole pipeline. The next module migration is faster than the last; the substrate work compounds.