Unclassified

ADX Orchestrator & Agent Runtime

The brain that coordinates all agent activity — orchestration, runtime, workflows, and agent hand-off

Orchestration Engine + Agent Runtime + Workflow Engine.

The ADX Orchestrator is the brain that coordinates all agent activity in SpineWorkspace. It manages the lifecycle of every agent action, from task decomposition to execution to reconciliation.

Design Principles

  1. Single orchestrator — One engine coordinates all agent activity
  2. Task decomposition — Complex work is broken into executable units
  3. Context assembly — Every agent gets the right context
  4. Agent hand-off — Work flows between agents via A2CP
  5. Observable — Every action is traced and logged

Components

ComponentPurpose
Orchestration EngineCoordinates multi-step agent workflows
Agent RuntimeExecutes individual agent actions
Workflow EngineManages complex business processes
Task DecompositionBreaks work into executable units
Context AssemblyBuilds the context window for agents
Agent Hand-off (A2CP)Transfers work between agents
State ManagementTracks workflow and agent state
SchedulingTime-based and event-based triggers
RetriesAutomatic retry on failure
MonitoringObservability and alerting

Orchestration Flow

Work Item → Task Decomposition → Context Assembly → Agent Selection → Execution → Reconciliation → Memory
  1. Work Item — A work item enters the orchestration pipeline
  2. Task Decomposition — Broken into atomic, executable tasks
  3. Context Assembly — Each task gets the right context from the Spine
  4. Agent Selection — The right agent is selected based on capability and role
  5. Execution — The agent executes the task
  6. Reconciliation — Outcome is verified against intent
  7. Memory — Learning is fed back to the Spine

Task Decomposition

Complex work is broken into atomic tasks:

LevelDescriptionExample
Work ItemHigh-level business objective"Close Q3 deal with Acme"
Task GroupRelated set of tasks"Prepare proposal", "Schedule review"
TaskSingle executable unit"Draft proposal document"
ActionAtomic operation"Insert pricing table into doc"

Decomposition Rules

  • Each task has a single owner (human or agent)
  • Each task has clear input/output contracts
  • Tasks can be parallel or sequential
  • Dependencies are explicit and enforced

Context Assembly

Every agent receives a context window built from the Spine:

interface AgentContext {
  workItem: WorkItem;           // The current work item
  entityContext: Entity[];      // Related entities
  eventHistory: Event[];        // Recent events
  communicationHistory: Message[]; // Recent messages
  decisions: Decision[];        // Related decisions
  risks: Risk[];                // Identified risks
  userPreferences: Preferences; // How the user works
  domainKnowledge: Knowledge[]; // Organizational patterns
}

Context Rules

  • Context is role-scoped — agents only see what their role allows
  • Context is time-bounded — recent events weighted more heavily
  • Context is relevance-scored — most relevant information surfaces first
  • Context is token-budgeted — fits within model context limits

Agent Selection

The orchestrator selects agents based on:

FactorDescription
Capability matchAgent has the required capability
Role scopeAgent's role matches the work domain
AvailabilityAgent is not overloaded or offline
PerformanceHistorical success rate for similar tasks
CostToken and compute cost within budget

Agent Hand-off (A2CP)

The Agent-to-Agent Communication Protocol enables work transfer:

Agent A → A2CP Message → Agent B

A2CP Message Format

interface A2CPMessage {
  from: AgentRef;
  to: AgentRef;
  workItem: WorkItemRef;
  context: ContextSnapshot;
  intent: string;
  constraints: Constraint[];
  deadline?: string;
}

Hand-off Rules

  • Hand-offs are logged in the Spine
  • Context is transferred, not lost
  • The receiving agent can accept, reject, or delegate
  • Hand-offs are governed — high-risk transfers require approval

State Management

The orchestrator tracks state for every workflow:

StateDescription
IdentifiedWork item recognized
ContextualizingGathering context
DefinedTasks decomposed and assigned
AllocatedAgents assigned to tasks
DecidingAgent reasoning in progress
GoverningGovernance check pending
ExecutingTask being executed
ObservingMonitoring execution outcome
Re-ingestingProcessing execution results
ReconcilingVerifying intent vs. outcome
ResolvedWork item completed
LearningFeeding back to memory
ContinuingNext cycle beginning

Scheduling

TriggerDescription
Event-drivenTriggered by Spine events
Time-basedCron-like scheduled execution
Dependency-drivenTriggered when prerequisites complete
ManualTriggered by human action
Agent-initiatedTriggered by agent recommendation

Monitoring & Observability

MetricDescription
Task completion ratePercentage of tasks completed successfully
Average execution timeTime from task start to completion
Agent utilizationHow busy each agent is
Error ratePercentage of tasks that fail
Retry ratePercentage of tasks requiring retry
Context qualityHow well context assembly performs