AI-assisted coding improves when planning, execution, and verification are separate stages.
A single request often asks a model to clarify the product, design the architecture, write the code, test the result, repair failures, and choose the next task. Each responsibility adds ambiguity. A managed build loop assigns each one to a defined role.
[ 01 / THREE ROLES ]
Clear ownership.
The workflow needs planning judgment, focused execution, and persistent coordination. These responsibilities can use different models or the same model in separate, bounded sessions.
Defines the objective, constraints, architecture, and task sequence.
Completes one scoped implementation task and stops.
Maintains the queue, runs checks, records state, and routes failures.
The Architect receives broad product context. The Builder receives the current task and the files required for it. The Orchestrator retains the project state across both.
[ 02 / THE TASK CONTRACT ]
Small enough to verify.
A useful task contract names the objective, allowed files, constraints, acceptance checks, and stop condition. The Builder knows exactly what to change and how success will be measured.
04 · ADD ENEMY SPAWN TIMING
gameLoop.js · Enemy.js · config.js
Preserve movement and scoring behavior
Configured interval · tests pass · no console errors
SUMMARIZE CHANGES · DO NOT START TASK 05
This structure lowers the amount of interpretation required during implementation. It also produces a specific contract for review.
[ 03 / THE LOOP ]
Verification advances the work.
The Orchestrator advances the queue after the output satisfies the task contract. Tests, type checks, builds, and task-specific acceptance checks provide the evidence.
A failed check returns the failure output to the Builder for one focused repair. A repeated failure goes to the Architect with the task, expected behavior, relevant files, and verification result. The correction returns to the same task.
[ 04 / THE FIRST VERSION ]
Start sequentially.
- Store the plan.Keep the product brief, architecture, and ordered tasks in durable files.
- Run one task.Use one Builder, one task contract, and one bounded change at a time.
- Verify locally.Connect each task to deterministic checks and explicit acceptance criteria.
- Record the outcome.Save changed files, checks, retries, decisions, and the successful checkpoint.
Parallel workers, model routing, and automated optimization can follow when real traces show a need for them.
A reliable AI build system coordinates narrow work, objective checks, and deliberate escalation.