Repository navigation
Delete AgentModule: a second autonomous agent loop beside the persona minds, with no caller and no event subscriber - #5660
Merged
Conversation
… minds
AgentModule ran its own build/test/fix loop with its own conversation history
and tool calling, parallel to the persona minds (CLAUDE.md: no harness; plan
line 0). Its agent/start|status|stop|list|wait commands had no caller in the
tree and its agent:{handle}:* events had no subscriber. A mind delegates
through HER-TASKS.
Deleted: modules/agent.rs, modules/agent/tools.rs, commands/agent/ (5 verbs +
mod), the 14 ts-rs bindings under protocol/typescript/agent/ and their lines
in the master barrel (no TS importer), the mod lines, the import and the
registration in ipc/start_server/service_modules.rs. Comments that named it
(command_envelope.rs, global_registry.rs, help.rs fixture) now describe what
remains.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Contributor
Author
|
APPROVE #5660 at exact head 27aa182 (Cormac), merge after a rerun goes green.
|
joelteply
added a commit
that referenced
this pull request
Oct 31, 2026
…sed to start with 'missing [agent]' after AgentModule was deleted (#5660) (#5673) 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. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[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]>
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.
Serves the residents by removing a parallel agent path (CLAUDE.md: no harness; plan line 0); a mind delegates through HER-TASKS.
Evidence (re-verified on origin/canary 00752e1)
git grep -nE "agent/(start|status|stop|list|wait)|AgentModule|agent::|modules::agent" -- . ':!*.md': every hit was inside the deleted files, the registration (ipc/mod.rsimport +service_modules.rs:105-107), help/doc comments, or unrelated (agent::solvehistory in academy/engine comments,livekit-bridge's ownagentmod,coding_agentin sentinel, a source-hygiene test fixture string).*.ts *.tsx *.js *.py *.sh *.json *.toml *.ymlacross apps/, client/, tools/, scripts/, benchmarks/, sdk/, packages/): none for the command names or theagent:{handle}:*events. No importer of theprotocol/typescript/agenttypes or of the root barrel's./agentre-exports (the onlyToolCall/ToolResultconsumers importprotocol/typescript/ai/*).module_wiring_guard/ unwired-machinery lists: no entry named it (theunwired_machineryratchet fell 42 -> 41 on its own).Deleted (2,116 lines removed, 4 added; 31 files)
core/continuum-core/src/modules/agent.rs(829) andmodules/agent/tools.rs(558)core/continuum-core/src/commands/agent/{mod,start,status,stop,list,wait}.rs(562)protocol/typescript/agent/(14 ts-rs bindings + barrel) and the 5./agentlines inprotocol/typescript/index.tsReferences and how each was handled
modules/mod.rs,commands/mod.rs:pub mod agent;removedipc/mod.rs:use crate::modules::agent::AgentModule;removedipc/start_server/service_modules.rs: registration removedcommands/help.rs:"agent/list"dropped from the did-you-mean fixture (7 names; plain alphabetical take(6) still cutswork/list, so the test still catches the regression) and its comment updatedcontinuum-kernel/src/runtime/command_envelope.rs:339: sentence now names thehandlecollision without the deleted verbscontinuum-engine/src/ai/adapter/global_registry.rs:96:generate_textdoc names its live caller (the recipe generator) instead of AgentModulecontinuum-kernel/src/sdk_codegen/ai_help.rs:63: left as is. Editing that comment made the touched-file rule flag the file's existing sized constantSUGGESTION_WINDOW, so the edit was reverted. It is a dated measurement (2026-09-05) and stays accurate as history.Ratchets
cargo run -p source-hygiene --bin ratchets -- origin/canary: exit 0. Fell: spawn_sites 126->121, unjustified_unwraps 1918->1906, unwired_machinery 42->41, writes_outside_a_class 217->215. Nothing rose. No touched file is over 1,000 lines.Not built on the M5 (serving); CI compiles.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo