Idea 10

CPS Agent Architecture

Dual-channel pattern with Messenger Layer for enterprise AI agents

Agent Enterprise Architecture

Core Problem


Solution: 2 Channels + 1 Shared Capability + 1 Infrastructure Layer

1. Expert Channel (Bidirectional) — A2H Protocol

Abstract human experts as MCP tools: Agent-to-Human like Agent-to-Agent.

// A2H escalation with self-awareness
{
  "tool": "ask_expert",
  "context": "I know X but don't know Y.",
  "questions": [
    "(1) What is the timeline?",
    "(2) What is the current status?"
  ]
}
Key shift: queuing → conversation, self-awareness (knowing what you don't know).

2. User Channel (Unidirectional) — Q&A

3. Messenger Layer as Tension Absorber

Agent decides "what to say", Messenger handles "how to deliver".

"Which layer should absorb this tension?" is THE key architectural framing.

4. Approval as Delivery Policy

Concern Owner
Decisions (what to say) Agent
Policies (how to deliver) Infrastructure (Messenger)

5. Instance Separation as Access Control

"Don't try to control — just separate." — Occam's razor at architecture level.

User Scenarios

Expert Channel

User asks about server migration:

  1. Agent has no info → A2H tool call to expert with pinpoint questions
  2. Expert responds asynchronously
  3. Response goes through atomic decomposition → stored as memory
  4. User gets answer

Approval Workflow

  1. Agent generates answer
  2. Messenger checks delivery policy → "this channel needs approval"
  3. Admin approves → message sent
Agent is completely unaware of this process. Separation of concerns in action.

Multi-domain