Skip to content

Delete AgentModule: a second autonomous agent loop beside the persona minds, with no caller and no event subscriber - #5660

Merged
joelteply merged 1 commit into
canaryfrom
fable/delete-agent-module
Oct 31, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fable/delete-agent-module

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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.rs import + service_modules.rs:105-107), help/doc comments, or unrelated (agent::solve history in academy/engine comments, livekit-bridge's own agent mod, coding_agent in sentinel, a source-hygiene test fixture string).
  • Non-Rust callers (*.ts *.tsx *.js *.py *.sh *.json *.toml *.yml across apps/, client/, tools/, scripts/, benchmarks/, sdk/, packages/): none for the command names or the agent:{handle}:* events. No importer of the protocol/typescript/agent types or of the root barrel's ./agent re-exports (the only ToolCall/ToolResult consumers import protocol/typescript/ai/*).
  • module_wiring_guard / unwired-machinery lists: no entry named it (the unwired_machinery ratchet fell 42 -> 41 on its own).

Deleted (2,116 lines removed, 4 added; 31 files)

  • core/continuum-core/src/modules/agent.rs (829) and modules/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 ./agent lines in protocol/typescript/index.ts

References and how each was handled

  • modules/mod.rs, commands/mod.rs: pub mod agent; removed
  • ipc/mod.rs: use crate::modules::agent::AgentModule; removed
  • ipc/start_server/service_modules.rs: registration removed
  • commands/help.rs: "agent/list" dropped from the did-you-mean fixture (7 names; plain alphabetical take(6) still cuts work/list, so the test still catches the regression) and its comment updated
  • continuum-kernel/src/runtime/command_envelope.rs:339: sentence now names the handle collision without the deleted verbs
  • continuum-engine/src/ai/adapter/global_registry.rs:96: generate_text doc names its live caller (the recipe generator) instead of AgentModule
  • continuum-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 constant SUGGESTION_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

… 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
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE #5660 at exact head 27aa182 (Cormac), merge after a rerun goes green.

@joelteply
joelteply merged commit bffd21a into canary Oct 31, 2026
76 of 79 checks passed
@joelteply
joelteply deleted the fable/delete-agent-module branch October 31, 2026 16:47
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]>
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