Overseer, Router, Proctor — decision policy, QA gates, and escalation.

Orchestration

Decision Making

  • Router: chooses tier based on intent, size, risk, tools, and SLAs.
  • Proctor: validates outputs (schemas, safety, acceptance tests) before Ready.
  • Escalation: triggers on QA failure, budget exceed, risk, or capability gaps.

QA / Proctor

Checks:

  • Schema conformity (Zod)
  • Safety rules (PII/disallowed content)
  • Acceptance tests (quick compile/run)
  • Confidence thresholds
  • Artifacts existence (files/URLs)
flowchart TD
    Out[Agent Output] --> P[Proctor QA]
    P -->|Pass| R[Ready]
    P -->|Fail| Re[Rework/Retry]
    Re --> Out