Skip to content

Boot no longer requires the retired agent module (canary refused to start: 'missing [agent]' after #5660) - #5673

Merged
joelteply merged 1 commit into
canaryfrom
fable/required-modules-drop-agent
Oct 31, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fable/required-modules-drop-agent

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Fixes canary: it cannot boot.

What happened (M5, 2026-10-31 21:13Z)

  • The staged build of canary 107e10ddc refused to start: Missing required modules for (discovery=healthy, mode=full-citizen): [agent] ... Module registration incomplete ... Server cannot start.
  • continuum reboot restored 526bbe418 after 300 s. Residents stayed hosted 4/4.
  • Cause: my Delete AgentModule: a second autonomous agent loop beside the persona minds, with no caller and no event subscriber #5660 deleted AgentModule but left its ModuleSpec in the registry (continuum-kernel/src/runtime/runtime/runtime.rs), so required_modules() demanded a module that no longer registers.
  • It's the same trap the registry's comments record for search and inference. This is the third time.

What changed

The agent spec is removed, with a note beside the other two.

The guard that is missing (follow-up, owner Fable)

Nothing in CI boots the core or compares MODULES against what registers, so this trap reaches a node every time. Proposed: continuum reboot's dark validation, or a CI job, runs the module-registration check without serving, and fails on a spec with no registration.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…sed to start with 'missing [agent]' after AgentModule was deleted (#5660)

On the M5 (2026-10-31 21:13Z) the staged build failed 'Module registration incomplete for
(discovery=healthy, mode=full-citizen): missing [agent]. Server cannot start.' and continuum reboot
restored 526bbe4 (residents hosted 4/4 throughout). The ModuleSpec stayed when its module was
deleted: the same trap the registry's comments record for search and inference.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

PASS at exact head c2d619c (Cormac). Claim verified by git grep at the head: the diff is runtime.rs alone (−1 ModuleSpec "agent", +a comment); no ModuleSpec names "agent"; AgentModule appears only in that comment; every other "agent" string in core is a sender/presence/memory type (channel_items.rs:934, presence_directory.rs, remember.rs, positron fixtures), not a module name, so required_modules() no longer asks for a module nothing registers. Not blocking: the comment calls this the same trap as search and inference, so a third time. A test asserting every required ModuleSpec has a registering module (full-citizen and the other modes) would refuse the next one at CI instead of at boot. I'll check whether module_wiring_guard already covers it and card it if not.

@joelteply
joelteply merged commit ee8872a into canary Oct 31, 2026
66 of 69 checks passed
@joelteply
joelteply deleted the fable/required-modules-drop-agent branch October 31, 2026 21:37
joelteply added a commit that referenced this pull request Oct 31, 2026
…ackground, so a crate's test build has room (card 0381ae0b) (#5674)

Jobs on canary 107e10d (continuum-mind, continuum-academy) and #5673 (continuum-rooms) died
with "No space left on device" while the worker wrote its own diag log on /, which fails a
job every hour. Measured from #5661's notices on a successful sibling job (run 41233178745,
c596244, 2026-10-31):
- image ubuntu26 20261026.180.1, one disk;
- 87G free at setup;
- 62G free after the 24 GB cache unpacks.
So one crate's test build filled ~60 GB.

- A first step deletes the image's preinstalled toolchains no Rust job here reads: the Android
  SDK, .NET, GHC (/opt/ghc, ~/.ghcup), Boost and CodeQL (~25-30 GB on ubuntu-latest). It runs
  in the background, so the deletion overlaps the cache restore instead of adding to wall
  clock: the step itself returns at once. The existing after-cache notice now reports the room
  the build really gets.
- Correction: #5661's comment said an annotation survives a worker that dies on a full disk. It
  doesn't. Run 41233178745's failed jobs carry neither runner-disk notice, while its successful
  ones carry both. The comment now says a disk-full is read from a sibling job's notices.

Follow-up, its own measured change (not here): our crates' dev debuginfo in CI.
line-tables-only keeps panic lines, needs a new cache key, and is expected to shrink both the
24 GB cache and each test build.

CI time: +0 s (the deletion is backgrounded). Measured after merge: the after-cache notice on
the next warm and crate runs.


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

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
joelteply added a commit that referenced this pull request Nov 5, 2026
…rd 39a5c0f6)

Canary 107e10d refused to boot on the M5 (2026-10-31): "Module registration incomplete
(discovery=healthy, mode=full-citizen): missing [agent]". #5660 had deleted AgentModule and left
ModuleSpec "agent" in MODULES; #5673 removed it. runtime.rs's own comment records the same trap
twice before (`search`, `inference`). module_wiring_guard checked one direction only (every
ServiceModule is registered or declares why not); nothing checked the reverse.

every_required_module_spec_names_a_declared_module collects the `name: "..."` of every
`ModuleConfig { .. }` literal in production code. It uses the same comment- and test-stripping
walk over continuum-core and every cut module crate. It then requires each MODULES row to name
one of them, and the failure names the spec and says to delete it with its module.

Proven: passes on canary (3/0 in module_wiring_guard). Re-adding ModuleSpec "agent" fails it at
module_wiring_guard.rs:254, naming `agent` (enrico, 2026-11-01T00:13Z). Ratchets exit 0.

Noted, not changed here: runtime.rs's doc comments cite `expected_modules_snapshot` and
`category_dispatch_consistency` as the guards for this list. Neither test exists in the tree. Their
next editor should point them at this guard; the file is too large to touch for a doc line.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply added a commit that referenced this pull request Nov 5, 2026
…rd 39a5c0f6) (#5680)

Canary 107e10d refused to boot on the M5 (2026-10-31): "Module registration incomplete
(discovery=healthy, mode=full-citizen): missing [agent]". #5660 had deleted AgentModule and left
ModuleSpec "agent" in MODULES; #5673 removed it. runtime.rs's own comment records the same trap
twice before (`search`, `inference`). module_wiring_guard checked one direction only (every
ServiceModule is registered or declares why not); nothing checked the reverse.

every_required_module_spec_names_a_declared_module collects the `name: "..."` of every
`ModuleConfig { .. }` literal in production code. It uses the same comment- and test-stripping
walk over continuum-core and every cut module crate. It then requires each MODULES row to name
one of them, and the failure names the spec and says to delete it with its module.

Proven: passes on canary (3/0 in module_wiring_guard). Re-adding ModuleSpec "agent" fails it at
module_wiring_guard.rs:254, naming `agent` (enrico, 2026-11-01T00:13Z). Ratchets exit 0.

Noted, not changed here: runtime.rs's doc comments cite `expected_modules_snapshot` and
`category_dispatch_consistency` as the guards for this list. Neither test exists in the tree. Their
next editor should point them at this guard; the file is too large to touch for a doc line.


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

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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