Skip to content

Agent-Orchestrated Execution

This document defines the future runtime workflow for handling user input through a chain of specialized runtime agents.

This is a product/runtime workflow, not the engineering delivery workflow documented in docs/ai-governance/**.

Related docs:


flowchart TD
userInput[UserInput]
interactionEvent[InteractionEvent]
intentAgent[IntentAgent]
policyAgent[PolicyAgent]
plannerAgent[PlannerAgent]
executionAgent[ExecutionAgent]
validationAgent[ValidationAgent]
learningCapture[LearningCapture]
userOutcome[UserOutcome]
userInput --> interactionEvent
interactionEvent --> intentAgent
intentAgent --> policyAgent
policyAgent --> plannerAgent
plannerAgent --> executionAgent
executionAgent --> validationAgent
validationAgent --> learningCapture
learningCapture --> userOutcome

Convert voice, text, or UI interaction into a normalized InteractionEvent.

The IntentAgent determines:

  • what the user is trying to achieve
  • which entities are involved
  • whether clarification is required

The PolicyAgent determines:

  • whether the action is permitted
  • whether tenant/workspace scope is valid
  • whether approval is required
  • whether the request is safe to continue

The PlannerAgent determines:

  • whether the task is feasible
  • which workflow should be used
  • which tools or specialized agents are needed
  • whether the task should be split into multiple steps

The ExecutionAgent performs:

  • retrieval
  • tool or API calls
  • state updates
  • response generation
  • recommendation generation

The ValidationAgent verifies:

  • whether the goal was actually achieved
  • whether the result is correct
  • whether policy and safety constraints were preserved

The system records:

  • what was attempted
  • what succeeded or failed
  • what required clarification
  • whether the user accepted the outcome

The happy path must not be the only documented path.

The runtime must be able to:

  • request clarification before execution
  • stop on low confidence or blocked policy
  • ask for approval before sensitive actions
  • hand off to a human when automation is unsafe or insufficient
flowchart TD
intent[IntentAssessment]
clarify[ClarifyWithUser]
approval[RequestApproval]
execute[Execute]
handoff[HumanHandoff]
intent --> clarify
intent --> approval
intent --> execute
approval --> execute
approval --> handoff
clarify --> execute
clarify --> handoff

Recommended runtime roles:

  • IntentAgent
  • PlannerAgent
  • PolicyAgent
  • ExecutionAgent
  • ValidationAgent
  • LearningAgent
  • RecommendationAgent

Boundary rule:

  • runtime agents serve product behavior
  • delivery agents serve engineering workflow

Do not reuse Neo, Coder, QA, or other delivery-agent labels as runtime behavior classes unless the product intentionally wants that overlap documented and governed.


This workflow must preserve:

  • workspace and tenant isolation
  • approval gates for sensitive actions
  • explicit auditability for meaningful state changes
  • explainability of why a decision path was chosen

Reference:


Start with:

  • text and UI interactions
  • a small planner/executor/validator loop
  • recommendation capture
  • human approval for risky actions

Add later:

  • voice as another input modality
  • richer memory
  • adaptive recommendations
  • more specialized runtime agents