Skip to content

System architecture

APEX separates requirements, architecture, governance, planning, code generation, deployment, and as-built documentation. Design artifacts are optional. Each main agent owns a task and produces files for the next step.

The workflow overview is the canonical reader guide for step owners, outputs, and review defaults. The product’s workflow graph defines the dependencies.

PartResponsibilityLimit
Human operatorSelect main agents, resolve decisions, approve scope and deploymentA request to validate is not permission to apply.
Main agentProduce step evidenceCannot skip gates; delegated input requests return to its parent.
SkillSupply task-specific procedures and reference materialIt does not grant tools, change models, or authorize work.
Helper subagentPerform a bounded task permitted by its parentIt does not own the main workflow.
apex-recallRead and update project state through its supported commandsState is not a substitute for current artifacts or approval.
Validators and Git hooksCheck the contracts they implementPassing checks do not prove every requirement or establish application health. APEX runtime hooks are retired.

01-Orchestrator identifies the current step, required inputs, and next main agent. The current body migration permits approved step dispatch through the available native task contract. You can also select a main agent directly. Requirements, Architect, Design, and Governance ask material questions themselves when directly selected; delegated main workers return USER_INPUT_REQUIRED to their parent. Leaves never ask users or delegate. This is a source contract in progress, not proof that every native runtime path has been exercised.

Active definitions omit UI handoffs: metadata. Use a native task result or explicit agent selection, not an assumed handoff button. Readiness handshakes, nonce exchanges, mandatory verifiers, and log preflight are no longer active body requirements. Historical readers remain diagnostic. Independent production review receipts, freshness checks, and domain approval gates remain required. See agent runtime evidence.

Artifacts under agent-output/{project}/ provide durable context. The handoff must identify the relevant files, unresolved findings, and intended next action. When starting a new chat, read current state and evidence rather than relying on a stale conversation summary.

Active definitions omit fixed model and reasoning-effort pins. Tool declarations remain metadata, not proven native enforcement or credential isolation. Consult the pinned Explorer or source files instead of copying a model roster into deployment instructions. Source declarations do not prove that an account can use a model or that every client supports the same behavior.

Requirements, Architect, Design, Governance, and 05-IaC Planner are shared. The planner uses the project’s selected IaC track. CodeGen and Deploy have separate Bicep and Terraform agents.

TrackCode generationDeployment
Bicep06b-Bicep CodeGen07b-Bicep Deploy
Terraform06t-Terraform CodeGen07t-Terraform Deploy

Both tracks consume approved planning and governance evidence and produce an IaC handoff. Do not switch tracks by renaming an output directory or editing a state field to skip planning.

Read agents for invocation boundaries, workflow state for recovery, and MCP integration for external tools.