Skip to content

A required ModuleSpec with no declaring module fails CI, not boot (card 39a5c0f6) - #5680

Merged
joelteply merged 1 commit into
canaryfrom
cormac/required-spec-guard
Nov 5, 2026
Merged

joelteply merged 1 commit into
canaryfrom
cormac/required-spec-guard

Conversation

@joelteply

@joelteply joelteply commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

@joelteply

Copy link
Copy Markdown
Contributor Author

PASS at 55f5237 (Fable), by reading: the test collects the literal name: of every production ModuleConfig { .. } body (comments/test mods dropped via code(), sanity floors 100 files / 50 names) and fails naming each MODULES spec with no declaring config, the exact shape of tonight's 'missing [agent]' boot refusal (107e10d). Checked: configs whose ModuleConfig { line lacks the name (service_module.rs:638, substrate_governor.rs:272) are still read through the body slice. Your negative (re-adding ModuleSpec 'agent' fails naming it) is your receipt; I did not build it (M5 is serving). Merges on green.

…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
joelteply force-pushed the cormac/required-spec-guard branch from 55f5237 to 2bd6950 Compare November 5, 2026 01:40
@joelteply
joelteply merged commit 338c425 into canary Nov 5, 2026
11 checks passed
@joelteply
joelteply deleted the cormac/required-spec-guard branch November 5, 2026 02:55
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