Wire guardrails, memory, and MCP servers into daemon agent loop #829

Closed
opened 2026-10-27 13:37:55 +00:00 by sam · 0 comments
Owner

Tools P1 (guardrails, classification, budget), memory system (Manager, builtin provider, scrubber), and MCP transport are all built and tested but NOT called from cmd/archied/main.go. The daemon creates an agentexec.Runner but never passes GuardrailEngine, MemoryManager, or MCP client instances. This is THE blocker to using archie-core in place of Hermes.

Scope:

  • Guardian: instantiate GuardrailEngine in daemon, call RecordSuccess/RecordFailure around tool calls
  • Memory: inject MemoryManager.BuildSystemPrompt() into agent system prompt, wire HandleToolCall for memory tool routing
  • MCP: instantiate configured MCP servers from config, register their tools, wire into agent tool dispatch
  • Classification: use ToolClassification to gate parallel vs serial execution in the tool dispatcher

Imported from beads archie-core-1786637497610-297-648ba1c8 · GitHub #318 · type feature · priority P2 · created 2026-08-08 · closed 2026-08-08

Tools P1 (guardrails, classification, budget), memory system (Manager, builtin provider, scrubber), and MCP transport are all built and tested but NOT called from cmd/archied/main.go. The daemon creates an agentexec.Runner but never passes GuardrailEngine, MemoryManager, or MCP client instances. This is THE blocker to using archie-core in place of Hermes. Scope: - Guardian: instantiate GuardrailEngine in daemon, call RecordSuccess/RecordFailure around tool calls - Memory: inject MemoryManager.BuildSystemPrompt() into agent system prompt, wire HandleToolCall for memory tool routing - MCP: instantiate configured MCP servers from config, register their tools, wire into agent tool dispatch - Classification: use ToolClassification to gate parallel vs serial execution in the tool dispatcher --- _Imported from beads `archie-core-1786637497610-297-648ba1c8` · GitHub #318 · type feature · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumfeature labels 2026-10-27 13:37:55 +00:00
sam self-assigned this 2026-10-27 13:37:55 +00:00
sam closed this issue 2026-10-27 13:37:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#829