aboutsummaryrefslogtreecommitdiff
path: root/modules/core/module-orchestrator.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/module-orchestrator.js')
-rw-r--r--modules/core/module-orchestrator.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/core/module-orchestrator.js b/modules/core/module-orchestrator.js
index 5e03b0b..9f23ceb 100644
--- a/modules/core/module-orchestrator.js
+++ b/modules/core/module-orchestrator.js
@@ -179,7 +179,9 @@ class OrchestratorModule {
// Register orchestrator in the agent registry
const registry = this.terminal.moduleManager.modules['AgentRegistryModule'];
if (registry) {
- registry.registerAgent(['register', 'orchestrator-0', 'delegate', 'spawn', 'monitor', 'purge']);
+ // MAINT-008: the agent id comes first; passing the command word as args[0] registered an
+ // agent literally named "register" with one capability.
+ registry.registerAgent(['orchestrator-0', 'delegate', 'spawn', 'monitor', 'purge']);
}
// Reconcile + pre-spawn the default team. VirtualFileSystem.loadFromStorage() is ASYNC,
// so reconciliation MUST wait for it — running it synchronously saw an empty root and
@@ -385,7 +387,7 @@ class OrchestratorModule {
// Register in agent registry
const registry = this.terminal.moduleManager.modules['AgentRegistryModule'];
if (registry) {
- registry.registerAgent(['register', id, ...agent.capabilities]);
+ registry.registerAgent([id, ...agent.capabilities]);
// A2A Scratchpad registration
if (typeof registry.a2aRegister === 'function') {
registry.a2aRegister(id, agent.capabilities);