An AI factory is a production system for repeatable engineering work. A team uses coding agents, shared working methods and enforced checks to move tasks from an approved request to a released result. People own the goals, acceptance rules and release decisions.
This changes how engineers direct the work. In AI-assisted development, a person may guide each step: scope, code, test, fix and review. In a factory, people approve the intent and design, agents handle the build-test-fix iteration inside a bounded run, and people judge the evidence and authorize release. The team designs and operates the process as well as accepting its results.
The business purpose is to make repeated work economically viable. The team invests in a delivery process it can reuse, rather than reconstructing the instructions, environment and checks for every assignment. Whether that investment pays off depends on the actual work and its measured outcomes.
Building this system involves three stages. Loop engineering designs how one task is carried out and checked. Harness engineering makes that workflow runnable under controlled conditions. The factory manages the stream of work and connects delivery to its intended value.

Each stage adds a responsibility. Once built, all three remain active layers of the same system.
This layered distinction is developed in Software factories: light and dark. The stages explain what to build. The pillars and five readiness levels later in this article assess the repository's technical foundation for that work.
1. Loop engineering: design and validate one repeatable workflow
The first stage replaces ad hoc execution with a designed workflow for a defined class of task. An agent can still choose how to investigate and implement within that workflow, but the team has already decided the boundaries and the routes to correction, handover or escalation.
A loop gathers context, takes an action, checks the result and repeats when correction is needed. The configuration used here makes Plan, Goal and Verify explicit:
- Goal states the intended outcome, acceptance criteria and constraints.
- Plan describes the proposed work, dependencies and bounded assignments, and adapts to feedback within the approved scope.
- Verify checks the candidate against the approved criteria and determines whether it can move to handover or needs correction or human judgment.
One lead LLM coordinates two supporting LLMs within this loop. The lead keeps the work aligned with the goal and plan and delegates bounded assignments. Each assignment has a defined scope, completion condition and handover. Acceptance criteria and decision boundaries apply across the run.

Plan, Goal and Verify guide the work. One lead coordinates two supporting models; acceptance depends on evidence, not agreement between models.
Design the feedback before trusting the result
The owner states what should change and what must remain true. The team chooses an acceptance reference and the relevant failures a check must detect. Existing behavior helps establish the starting point, while the owner decides which behavior the request intentionally changes. In established systems, this requires business rules and constraints beyond what code alone explains. Brownfield agentic engineering explores that preparation.
A check must distinguish an acceptable result from a relevant defect. Before relying on it, deliberately alter or disable the target behavior in a temporary test setup or isolated environment and confirm that the expected check fails. Restore the correct behavior and confirm that it passes. Never introduce this deliberate breakage into live production.
The reference must provide evidence beyond the implementer's own claim. Another reviewer adds a perspective, but agreement between agents does not establish correctness. The code nobody reads examines why the authority behind the acceptance evidence matters.
Fast checks guide correction inside the loop; the complete required checks run before handover. A pass establishes only the behavior those checks cover. Agentic verification explains how executable feedback supports this cycle.
Validate the workflow before repeating it
Validate the workflow itself: confirm that the goal is clear, the check detects its intended failure and the result routes the run to correction, handover or escalation as designed. Test stop conditions as well as the successful path, and retain rejected, failed and blocked outcomes.
A successful attempt alone does not establish repeatability. Use observed executions to identify unclear requirements, unsuitable checks or stopping routes that fail. Retries remain bounded; decisions the workflow cannot resolve return to a person.
The result of loop engineering is a designed and validated workflow, with its acceptance reference, allowed actions, correction paths and stop rules. A successful execution produces a checked candidate and its evidence. Rejected, failed or blocked runs retain their outcome, evidence and task state. The next stage makes the execution conditions reusable and enforceable.
2. Harness engineering: make the workflow controlled and reusable
A harness is the working environment and set of controls around the loop. It supplies the context and tools the workflow needs, enforces its boundaries and preserves enough state to continue after interruption.
The problem at this stage is consistency across runs, workers and environments. A useful workflow should not depend on remembered setup steps or on one conversation remaining open. Harness engineering turns those conditions into a reusable, versioned setup.

The loop acts within the approved conditions. The harness enforces them and records which version governed the run.
Carry intent and context into every run
Context follows a chain of versioned artifacts: requirement → architecture → work unit → run record. The requirement states the outcome and acceptance criteria. Architecture records the relevant contracts and decisions. The work unit gives one assignment its scope and completion condition. The run record links the resulting changes, checks and outcome back to that assignment.
Shared context supplies the glossary, security rules and engineering conventions. Project context adds repository instructions, current code, build commands, evaluation cases and adopted lessons. A run needs the applicable versions of these materials, within its access permissions. This connects what the owner wanted to what was actually attempted and checked.
Enforce the boundaries the loop was designed to follow
The harness provides current instructions and domain context, an isolated workspace and only the tools needed for the task. It specifies what may be edited, what must remain protected and where task information may be sent. Access to information does not automatically permit sending it to another worker or destination.
A prompt can state a rule. Enforced boundaries require controls that refuse unauthorized operations. In particular, the implementation must not silently weaken the deciding check, change its approved reference or bypass the required execution. Corrections to tests or acceptance rules need separate review.
Task identity, the starting version, validated progress, results and pending actions belong in durable storage outside the active conversation. A replacement worker needs to recover that state, revalidate observations that may have changed and reconcile pending external actions before repeating them.
Time, spend and retry limits apply to the entire run, including delegated work. The agent cannot extend those limits merely by creating another worker. Completion, cancellation, denied authority or a changed scope also need explicit stopping behavior.
Evaluate the harness as well as the software
Every run records which required checks executed, their results and any skipped checks. Evidence includes the proposed changes, relevant logs and a short explanation tied to the exact revision, meaning the specific version of the candidate that was checked. Further edits or integration changes require the affected checks to run again.
The harness itself also needs repeatable evaluations on real tasks representative of the work. Rerun them when instructions, tools, permissions, model or runtime change. Product tests check software behavior; harness evaluations check whether the execution process remains dependable. Passing these evaluations alone grants no unattended authority.
The result of harness engineering is a reusable execution capability, with versioned controls, evaluated behavior and a defined handover format. A successful run produces a checked candidate. Operating those candidates as an owned stream requires the factory layer.
3. The factory: govern a stream of work and its outcomes
Many controlled executions still need decisions about value, priority, capacity and consequences. The factory adds that operating system around the work: which requests enter, how they are scheduled, who accepts their results, how changes reach users and what happens afterward.
People own intent and architecture. Each admitted task must connect to an approved outcome, have a clear boundary and name who handles unresolved decisions. Scheduling respects dependencies and conflicting changes. Tasks whose acceptance conditions remain uncertain need further definition or human handling.
Inside this third layer, the delivery path is Intent → Plan → Build → Verify → Land → Release → Operate. Each step leaves something the next decision can use: an approved goal, reviewed design, candidate and tests, check results, an integrated change, release approval and an outcome signal. This is the path work follows through the factory; the three construction stages explain how the team builds the system that supports it.

The factory closes the outer loop: production results change the decisions about what enters next.
Govern capacity, acceptance and release
The team limits concurrent runs and total work in progress according to verification and review capacity. Generating candidates faster than they can be checked and accepted creates unfinished work. Adding sessions alone does not establish a factory's operating capability.
Admission responds to the work already waiting: when the review queue grows, the team reduces new intake. Limits cover concurrent runs, review load and the conditions for a person to take over.
Capacity also includes the team's ability to understand and maintain the system. Comprehension debt is the gap between code that exists and code the team understands. Track unread changes as an operational signal and agree a local budget with the team. When that limit is reached, pause new intake, review the accumulated work, restore understanding and update shared context before resuming. Passing tests alone does not establish that people can explain the system; an unread-change count is a signal for intervention, not a complete measure of understanding.
A checked candidate has passed the required checks for its identified revision. Acceptance approves its evidence under the task's policy. Integration adds the change to the shared codebase, where checks must also account for other changes. Release makes the result available to users. These are distinct decisions and states.
Under 3Alica's delivery policy, a person reviews every pilot change. The agent submits a pull request, a proposal to add its changes to the shared codebase, and cannot update that codebase directly. Whoever integrates a change cannot release it alone.
A published account of layered code review describes rechecking combined changes, controlled release and rollback as connected parts of delivery. This adds protection beyond isolated candidate checks.
Use outcomes to change the work and its authority
Define success before the first run. Record the current process and compare work from the same task class with the same start and end points. Choose one primary measure, such as lead time or cost per accepted change, and include human review and rework in the result. Keep quality constraints visible: escaped defects, change failures and rollback. Record eligible and completed changes and failed runs so the comparison also shows which work the process handled.
The factory links the requirement, task, checked revision, integrated change and production outcome. Monitoring must relate to the intended result, with an owned recovery path and authority to stop further work when necessary.
Restoring service contains a failure. Learning requires the finding to return to an owned decision: revise the requirement, repair a check, narrow an eligible task class or change the shared workflow. People review and adopt changes to shared rules before those rules govern later work.
Permission for unattended work is reconsidered against actual outcomes, including escaped defects and required human intervention. The team can pause the stream, narrow its scope or return a task class to human approval. More generated changes do not by themselves justify wider authority.
Light and dark describe operating modes for a class of work. In light mode, a person reads and approves every change. In dark mode, a qualified class may be integrated without a person reading every change, under its protected checks and explicit limits. In this delivery model, people retain intent, architecture and production release decisions in both modes. The same repository can contain work in either mode; permission follows the task class and its controls.
The result is a governed delivery stream, with visible ownership, controlled capacity, recovery and feedback into future work. Its technical foundation can be assessed through the repository-readiness model below.
Eleven pillars assess the repository's technical foundation
The pillars assess how a repository supports agent work across the three layers. Their scope is the codebase and its supporting engineering controls. They help identify technical remediation; operating the factory still requires the ownership, business decisions and capacity management described above. The score does not assess organizational readiness or establish how well people understand the whole system.
AI Factory Kit adapts published repository-readiness guidance and adds explicit areas for agent tooling and multi-agent coordination.

Use the pillars to locate weaknesses in the technical foundation for agent work.
| Pillar | What it assesses |
|---|---|
| Style and Validation | Automated checks for syntax, types and project rules. |
| Build System | Reproducible builds with known dependencies. |
| Testing | Executed checks that detect relevant behavioral defects. |
| Documentation and Agent Context | Discoverable, current instructions and domain knowledge. |
| Development Environment | Repeatable environments with required dependencies. |
| Debugging and Observability | Logs and signals from running software that support investigation. |
| Security and Governance | Enforced permissions, reviews and acceptance policies. |
| Task Discovery | Readable tasks with scope and acceptance conditions. |
| Product and Experimentation | Measurable user outcomes and controlled release to users. |
| Agent Tooling and Interfaces | Tools that provide the operations and feedback the work requires. |
| Multi-Agent Coordination | Ownership, isolation and coordination for multi-agent workloads. |
Five levels describe repository readiness
The five levels describe the dependability of that technical foundation. They are separate from the three construction stages and from permission to perform a particular task unattended.

Readiness informs the permission decision. A level alone grants no authority.
| Level | Meaning |
|---|---|
| L1 Functional | Code works, but setup and validation depend on manual effort. |
| L2 Documented | Instructions and scripts exist, with uneven coverage and enforcement. |
| L3 Standardized | Documented processes are enforced through automation on every change. |
| L4 Optimized | Fast feedback, structured evidence from running software and measurable performance. |
| L5 Autonomous | Coordinated workflows, evaluations and controlled experiments support improvement within approved limits; people own policy, exceptions and outcomes. |
In this method, overall repository readiness follows the weakest applicable pillar. Multi-Agent Coordination is excluded when multi-agent workloads are not pursued.
L3 is the minimum readiness threshold for unattended routine work in this method; reaching it does not grant permission. Each task class still needs verified acceptance checks, explicit boundaries, a recovery path and a human approval policy. The word Autonomous in L5 grants no unlimited authority. A mature repository can remain within a factory where people review every change.
