Models reason.
Agents act.
Selected for the exact Work Order by capability and operating constraints.
- Task and complexity fit
- Quality and risk profile
- Latency and availability
- Cost per verified outcome
Reference architecture / 02
An AI software factory is a system of responsibilities. The architecture makes each responsibility visible so teams can decide what to build, buy, govern, verify, and operate.
Trust constrains every area. Learning closes the loop only through governed promotion. The model is replaceable; the control contract is not.
Learn the fifty core concepts → Open the canonical glossary →
The control boundary
Models reason and agents act, but neither should own identity, permission, authoritative state, release policy, or the evidence used to judge its work. Those responsibilities belong to the factory around them.
Selected for the exact Work Order by capability and operating constraints.
Durable controls remain outside the model and apply to every provider, agent, and tool.
The Harness governs one Agent, the Runtime hosts it, and the Sandbox isolates its effects.
Capability supply should evolve as better options emerge.
The operating record must survive every capability substitution.
Every Attempt returns attributable evidence. No producing system may promote its own result.
The definition declares the result, responsibilities, capabilities and proof required.
What must be true, for whom, and how success is accepted.
Scope · owner · acceptance criteria · risk · authority
Reusable components selected for this workload.
Activation and execution still require authorization. Changes return through qualification.
A Factory owns an outcome. An Agent reasons; a Harness bounds its loop; a Model supplies inference; Tools act; Skills supply reusable guidance. None alone is the Factory.
A Factory Definition describes a governed composition around an Outcome Contract. It combines Workflow, qualified Agents, Harnesses, Tools and Skills, Models, Context, an Execution Profile, Policy, Verification and Evidence Requirements. Pin the exact configuration and qualify its interactions as a composition for a declared workload. Passing qualification produces an immutable qualified Factory Version. Activation and execution still require authorization; changes return through qualification. A component or workflow alone is not the factory.
Reference architecture · Availability and implementation require qualification.
Canonical execution vocabulary
Most disagreement about agent harnesses is a boundary disagreement. FDLC separates the worker, its iteration loop, its operating envelope, workflow coordination, execution infrastructure, isolation, and enterprise authority so each has a clear owner, lifecycle, identity, and qualification boundary.
Inference engine. Supplies intelligence; it is not the worker or authority.
What reasoning or generation is available?
Goal-directed worker. Uses model intelligence, instructions, context, state, and capabilities.
Who is pursuing the bounded task?
Iteration cycle. Loads state, selects, acts, observes, evaluates, replans, and terminates.
How does one Agent make progress and stop?
Developer toolkit. May supply Agent definitions, loops, tools, handoffs, guardrails, sessions, tracing, orchestration helpers, or Runtime integration; it is not itself the Agent, Harness, Runtime, Orchestrator, or Control Plane.
Which reusable primitives or implementations are used to construct the agentic application?
Operating envelope. Governs context, models, tools, working state, permissions, budgets, recovery, telemetry, and stopping.
How is the Agent allowed to operate?
Software-engineering Harness. Specializes the Agent Harness for code, shell, compiler, test, package, Git, diagnostic, and artifact workflows.
How may an Agent inspect, change, build, and verify a repository?
Editor-integrated Coding Harness. May use open files, selections, diagnostics, terminal, Git, and approval state; an IDE alone is not a Harness.
Which editor state participates in bounded execution?
Workflow topology. Represents nodes, dependencies, branches, joins, gates, interrupts, cycles, and terminal states.
What work can happen next?
Durable coordinator. Advances the Work Graph across Agents, Harness invocations, deterministic work, and human waits.
Which eligible node executes next?
Execution substrate. Provides process lifecycle, compute, queues, leases, persistence, resume, concurrency, and recovery.
Where and how does execution live and survive?
Isolation boundary. Restricts filesystem, processes, network, credentials, dependencies, and resources.
What can this execution affect?
Stable operation. Names provider-independent work such as inspect a repository or run tests.
What can the system do?
Qualified realization. Binds provider, tool, skill, model, adapter, version, permissions, and evidence.
Which exact implementation performs it?
Enterprise authority. Owns identity, policy, budgets, evidence requirements, decisions, and emergency control.
Who may authorize, revoke, approve, promote, and release?
Outcome system. Composes people, process, agents, Harnesses, capabilities, Runtime, Trust, delivery, and learning.
How does intent become accepted software?
Shared enterprise foundation. Supplies Mission Control, identity, policy, registries, orchestration, Runtime, Sandboxes, evaluation, evidence, approvals, and release integration.
Which governed services should many Factories reuse?
Immutable qualified composition. Binds separate Model, Agent, Harness, graph, capability, Runtime, Sandbox, verification, and policy identities without mutable runtime coupling.
Which exact governed composition is eligible to run?
Worker-iteration discipline. Improves the Agent Loop inside a bounded unit of work.
Is one Agent choosing, evaluating, replanning, and stopping well?
Work-topology discipline. Improves the Work Graph coordinated by the Orchestrator.
Are dependencies, branches, joins, gates, retries, and terminal states correct?
Operating-envelope discipline. Improves how an Agent may operate while leaving enterprise authority in the Control Plane.
Are context, tools, state, permissions, budgets, recovery, and validation correct?
Non-canonical external label. Translate it to Model Harness, Agent Harness, Coding Harness, Evaluation Harness, Runtime, Orchestrator, or Control Plane.
Which actual architectural boundary does the speaker mean?
Canonical relationshipControl Plane authorizes an Execution Profile → Orchestrator advances the Work Graph → Agentic SDK may supply implementations → Agent Harness governs one Agent → Agent Loop iterates inside a graph node → Runtime hosts execution → Sandbox isolates effects → Evidence returns for independent judgment
A Harness may enforce a local rule, but the Control Plane owns the identity, policy, approval, budget, and revocation authority behind that rule. A packaged product may implement several boundaries; the immutable identities must remain distinct.
Agentic systems architecture
Agentic SDKs are useful because they package common agent-building primitives. FDLC keeps the responsibilities separate so adopting an SDK never silently transfers enterprise authority, durable orchestration, runtime ownership, or release control to a library.
Determines what may run, where it may run, and with what authority.
Mission Control · Factory platform · Release management
Advances the Work Graph across agents, capabilities, deterministic steps, and human decisions.
Task orchestrator · Workflow engine · Multi-agent coordination
Provides reusable primitives and implementations for constructing agentic applications.
OpenAI Agents SDK · Google ADK · LangChain / LangGraph · Custom SDKs
Operates the Agent Loop under explicit context, tool, state, budget, recovery, and stopping controls.
Headless runner · Coding-agent environment · Custom harness
Binds a bounded objective to instructions, tools, context, memory, policy, and a model profile.
Coding agent · Review agent · Research agent
Supplies inference, reasoning, generation, classification, and tool-call proposals.
Qualified model route · Code-specialized model · Local model
An Agentic SDK is a construction toolkit. It may provide an Agent Loop, Harness implementation, Work Graph helpers, or Runtime integration. Those supplied parts still require separate identities, qualification evidence, and authority from the Control Plane.
A library may supply a Runner, loop, guardrails, tracing, or adapters
Owns the bounded model → tool → observation cycle for an Attempt
Owns processes, compute, persistence, resume, and recovery
Advances dependencies, handoffs, waits, joins, and terminal states
Owns identity, policy, budgets, approval, verification, release, and revocation
Mission Control owns governed WorkOrders, resolved execution identities, authority, durable state, verification, acceptance, and release coordination. It may invoke SDK-built components without transferring those decisions to the SDK.
Fab operates a bounded repository-editing Agent Loop and integrates through Mission Control's Harness adapter contract. Its model adapters and loop are implementation details; Fab has no independent acceptance, publication, or Control Plane authority.
SDK guardrails can enforce behavior inside an execution framework. They do not establish enterprise authority to modify a repository, spend a budget, accept a Candidate, publish a release, or change Production.
Across factories
Mission Control owns the governed Plan, WorkOrder dependencies, and artifact handoffs. Factory supervisors coordinate Tasks inside their assigned boundary. Local evidence verifies each WorkOrder; global evidence verifies the integrated result.
Capability map
Purpose describes why the area exists. Responsibilities and components describe what it owns. Decisions and failure modes reveal what must remain explicit.
Architecture area
Turn human goals into explicit, reviewable work before execution begins.
Expand areaCollapse areaRelationshipIntent supplies the frozen contract that Harness executes, Trust verifies, and Learning may propose changing only through governance.
Architecture area
Define how an Agent may use models, context, tools, working state, execution resources, and external systems while keeping workflow coordination, infrastructure, isolation, and enterprise authority explicit.
Expand areaCollapse areaRelationshipThe Harness bounds one Agent. The Orchestrator advances the Work Graph, the Runtime hosts execution, the Sandbox isolates effects, and the Control Plane owns authority. Together they bind Intent, Capability, Model, and Trust into one exact Attempt.
Architecture area
Make agents, skills, tools, context services, and interfaces versioned, discoverable, and governable.
Expand areaCollapse areaRelationshipCapability is selected from Intent, admitted by Trust, and run by Harness. Model routing is one part of capability selection; some work needs no model.
Architecture area
Abstract and route models by capability, quality, latency, cost, and policy.
Expand areaCollapse areaRelationshipModel executes inside the Harness, uses Capability and context, and remains constrained by Trust regardless of intelligence.
Architecture area
Keep authority outside the model and require evidence for consequential state transitions.
Expand areaCollapse areaRelationshipTrust constrains every other area and separates completion, verification, approval, and release.
Architecture area
Turn real outcomes, failures, cost, and reviewer decisions into bounded improvement proposals.
Expand areaCollapse areaRelationshipLearning consumes Trust-approved signals and returns proposed changes to Intent, Capability, Model, or policy—not directly to production.
Context & skills
A skill changes how an agent works. Give it an owner, pin its version, test its behavior, and control where it can run.
Observed failures become new test cases. Revisions repeat evaluation and authorization before rollout.
Separate decisions: admitting a skill does not accept its work or authorize a release.
Inspect the five operating practices
Design specifications, rules, references, and reusable procedures as reviewed, versioned dependencies of agent behavior.
Control what agents may install and run, and preserve evidence of who authorized each consequential action.
Turn repeated work into a shared library teams can maintain and use without silently diverging copies.
Establish whether a skill is selected, applied, and useful before treating a revision as an improvement.
Make engineering lessons reproducible through specific accounts of what worked, what failed, and where the evidence stops.
Read the complete practices and worked playbook in the Guide →
The worked local example records a harness-version mismatch and zero executed trials. It demonstrates an honest stop condition, not improved performance or production qualification.
Architecture in practice
Use these checks when designing a new workflow or reviewing an existing one. Each connects a design choice to the evidence needed to operate it. They refine the six architecture areas without adding another lifecycle.
Operating decision
Is this a complete, affordable, authorized strategy?
Read decisionCollapse decisionA plausible plan can still omit dependencies, proof, budget, or authority and create expensive downstream work.
Treat the planner as replaceable intelligence and the exact Plan revision as the governed artifact. Admit that revision only after deterministic and risk-based review.
Orchestration, verification, and human decisions need one stable contract even when the planning capability changes.
No WorkOrder is released from a Plan that lacks traceable acceptance criteria, verification, dependency, authority, currentness, and applicable economic requirements.
Reject or revise the Plan. Preserve the rejected revision and identify downstream Tasks, Evidence, approvals, and capabilities invalidated by a material change.
FDLC practice. Mission Control has governed, versioned Plans and bounded approval; the broader semantic qualification brief remains a development priority.
Evidence required: An exact Plan revision, criterion-to-verifier mapping, bounded task graph, and recorded decision. Material changes identify which tasks, evidence, and approvals need review again.
Implementation relationshipIntent → Plan revision → WorkOrder readiness
Operating decision
Which capability may do the work, and when can it run?
Read decisionCollapse decisionStatic preferences and provider fallbacks can send work to a capability that is cheap or available but unqualified for the task.
Filter capabilities by workload, complexity, context, policy, quality, latency, reliability, and authority before ranking eligible choices by observed performance and economics. Schedule admitted work separately.
Eligibility protects hard requirements; empirical outcome evidence improves selection without letting scarcity weaken policy.
A route, fallback, or deterministic tool must satisfy the exact workload's current qualification and authority envelope before it receives work.
Record why every route was rejected, then wait, use a prequalified fallback, or escalate. Keep unavailable cost and provider data UNKNOWN.
FDLC practice. Mission Control routing is implemented and gated; full live fallback qualification and accepted-outcome economics remain incomplete.
Evidence required: Selected capability and version, rejected alternatives with reasons, qualification scope, resource reservation, and a prequalified fallback or explicit blocked state.
Implementation relationshipWorkOrder → Factory Version → Execution Profile → Attempt
Operating decision
What is known after a crash, timeout, or cancellation?
Read decisionCollapse decisionRepeating a failed operation can duplicate consequential effects, while a late worker can overwrite newer authorized work.
Recover from durable state using new Attempt identity, fenced leases, checkpoints, idempotency, and authoritative reconciliation of uncertain side effects.
Retries repeat an action; recovery first establishes what happened and what authority remains before choosing a safe next action.
A stale Attempt cannot commit, and an ambiguous external outcome cannot be treated as failure or retried until reconciled.
Revoke future authority, preserve the incomplete history, classify the failure, reconcile external effects, and resume only from a proven safe boundary.
FDLC practice. Mission Control has qualified Attempts, fenced leases, and recovery at its documented scope; fleet-scale provider recovery is not claimed.
Evidence required: Durable checkpoint, logical operation identity, current lease, external effect receipt, and the reason a new Attempt is safe. Show uncertainty until it is resolved.
Implementation relationshipAttempt → checkpoint/effect → reconciliation → replacement Attempt
Operating decision
Does this proof support this exact acceptance claim now?
Read decisionCollapse decisionPreviously passing evidence can outlive the source, candidate, Plan, Factory Version, policy, runtime, verifier assumptions, or dependencies it proved.
Bind Evidence to exact subjects and validity conditions, and evaluate currentness before every consequential transition.
Evidence supports a claim only under the conditions in which it was established; currentness turns that rule into an enforceable contract.
No approval, publication, or release relies on stale, incomplete, mutated, or incorrectly scoped Evidence.
Invalidate affected eligibility, show the changed condition, and rerun the required independent Verification. Investigate disagreements by criterion and failure mode.
FDLC practice. Mission Control has exact-subject Verification and currentness controls at a qualified bounded scope; broader external-dependency invalidation remains workload-specific.
Evidence required: Criterion coverage, source and content identity, independent verifier result, validity conditions, unresolved findings, and the next authorized decision.
Implementation relationshipCandidate → Verification Subject → Evidence → decision
Operating decision
Did the delivered change solve the user's problem?
Read decisionCollapse decisionRequest or token cost can look efficient while retries, review, rejection, release failure, and poor business outcomes make the complete workflow expensive.
Account separately for request, Attempt, WorkOrder, accepted WorkOrder, released outcome, and observed business outcome. Label every amount ACTUAL, ESTIMATED, or UNKNOWN.
Different denominators answer different decisions. Cost per accepted outcome is useful only when the complete cohort and coverage are visible.
Missing cost is never zero, undefined denominators never produce a ratio, and technical release success never substitutes for observed user value.
Keep the result pending or UNKNOWN, identify missing sources and owners, and stop efficiency or ROI claims until the measurement contract is satisfied.
FDLC measurement contract. Mission Control inference accounting has offline qualification; real provider billing and complete accepted-outcome economics remain unqualified.
Evidence required: Release-to-outcome lineage, workload cohort, observation window, result, cost coverage, and explicit ACTUAL, ESTIMATED, or UNKNOWN amounts.
Implementation relationshipAttempt cost → WorkOrder cost → accepted/released outcome → observed value
Operating decision
What earned this composition the right to serve this workload?
Read decisionCollapse decisionLearning signals and passing evaluations can silently change active behavior if promotion is treated as a configuration update rather than a release decision.
Promote an immutable Factory Version through observe, propose, evaluate, qualify, approve, promote, and observe; restore a separately identified previous version when thresholds fail.
A composition is the unit of behavior. Independent qualification and explicit authority keep learning fast without allowing self-authorization.
Learning creates Improvement Candidates; it cannot mutate or activate Production Factory behavior.
Stop new admission for the smallest qualified scope, decide how to treat active work, preserve evidence, and restore only through current authority and a tested target.
FDLC lifecycle. Mission Control Factory Learning is advisory and Incident Command has one narrowly qualified repository pause/restore operation; autonomous Production promotion is not qualified.
Evidence required: Version manifest, representative and adversarial evaluations, permitted workload and autonomy, rollout cohort, stop thresholds, and a tested restoration target.
Implementation relationshipOutcome → Learning Signal → Improvement Candidate → Factory Version decision
Use the design worksheet, recovery drills, and worked example in the Guide →
Production reliability
A factory can remain trustworthy while a model, worker, dependency, or release is unhealthy only when impact, containment, effects, recovery, and closure are explicit operating records.
Operating contract
What is the smallest control that stops the harm without destroying the facts?
Read contractCollapse contractScope containment to the affected Attempt, capability version, route, workflow class, publication path, or environment. Preserve state, effects, evidence, decisions, and configuration before repair when safety permits.
A control acknowledgement is not enforcement; the observed stop is recorded separately.
Bind the decision, actor, authority, exact subject, observed effect, evidence, unknowns, deadline, and next permitted action.
Operating contract
What actually happened at every external boundary?
Read contractCollapse contractClassify each effect as absent, completed, failed, or unknown. Retry only with current authority and an idempotency or reconciliation contract; model multi-system work as a saga with explicit compensation.
Unknown outcomes never become implicit failures, successes, or permission to retry.
Bind the decision, actor, authority, exact subject, observed effect, evidence, unknowns, deadline, and next permitted action.
Operating contract
Which work may continue when assurance or capacity is reduced?
Read contractCollapse contractPredefine fail-closed, queue, read-only, qualified-fallback, and shutdown behavior for identity, policy, context, model, tool, evidence, telemetry, capacity, and control-state failures.
Availability cannot weaken the workload's authority, data, quality, or evidence requirements silently.
Bind the decision, actor, authority, exact subject, observed effect, evidence, unknowns, deadline, and next permitted action.
Operating contract
Which artifact and configuration remain compatible, qualified, and authorized now?
Read contractCollapse contractBind recovery to immutable source and artifact identity, runtime configuration, policy, schema, dependencies, qualification scope, restoration authority, and an observation plan.
Previous is not synonymous with known-good; rollback, compensation, and reconciliation remain separate operations.
Bind the decision, actor, authority, exact subject, observed effect, evidence, unknowns, deadline, and next permitted action.
Operating contract
What proves the impact stopped and the required outcome is healthy again?
Read contractCollapse contractReconcile downstream effects, verify recovery independently, review stale queued work, preserve the forensic bundle, record residual risk, and route corrective changes through governed improvement.
Restored service is a milestone. Verified recovery and dispositioned unknowns permit closure.
Bind the decision, actor, authority, exact subject, observed effect, evidence, unknowns, deadline, and next permitted action.
Use the incident packet, degraded-mode matrix, saga contract, and failure drills in the Guide →
See what Mission Control must add to support these controls →
Practical qualification
Start with one outcome, an accountable owner, a baseline, and explicit stop conditions. Qualify the exact implementation against that workload.
Trace source freshness, permissions, candidate recall, assembled context, and claim support separately. Citations alone do not prove an answer; cached evidence must remain eligible.
Retry transient failures within limits. Reconcile unknown write effects before repeating them. Replan within scope, use qualified fallbacks, and stop when authority or budget is missing.
Test cancellation, recovery, tool contracts, isolation, traceability, and upgrades. Tool discovery is inventory; execution still needs a qualified version and current authorization.
Compare accepted results, human effort, quality, and total cost against the baseline. Expand, revise, or stop on evidence; a calendar milestone does not prove readiness.
Use fixed workflows for known steps and bounded agent judgment for uncertain ones. Reading, editing, publishing, and releasing need distinct grants. Recheck authority after a wait or changed revision; an earlier approval cannot authorize a different action.
Walk through the dependency-update example and execution-time checks →
Software factory concept
What should I do next?