• The five layers and who does what
  • What turns parallel agents into a factory
  • How one ticket becomes merged code
  • How a named demo defines "done"

The five layers

Select a layer to see its job. Two are people, three are agents and tests.

Select a layer

Each layer has one job. The split keeps any single agent from holding too much.

Structure makes it a factory

Running several agents at once is parallel work. It becomes a factory when you add roles, gates, a state file and a decision protocol. Turn each one on.

one agent lead tool calltool calltool call lane 1lane 2lane 3 gate: tests on every change state you Q001

Parallel tool calls. Fast, and nothing holds it together.

Agent workGateYou decideWritten state

One unit of work, end to end

A ticket is one problem written down with a number. Step through how it becomes merged code.

Ticketa problem
Leadbriefs a lane
Lanetest, fix, PR
Gategreen or not
Mergeunder approval
  1. Problem becomes a ticket

    Something is observed and written down.

  2. Lead starts a lane

    With a full brief.

  3. Lane does the work

    Failing test, fix, gate green, draft PR, report.

  4. Lead merges

    Under a standing approval, or asks the architect if risky.

  5. Last check

    Nothing pushed after the gated commit.

The named demo is the acceptance test

A named demo is a script of beats (steps), each with a time budget. A beat fires or misses. Firing over budget gets flagged. Done means three clean runs on merged main.

Clean runs on main

Run once to find the misses. Fix them. Then run three clean.

Fires within budgetFires over budget (flagged)MissesBudget lineExample demo and timings are illustrative

What wakes the lead

The lead never polls in a loop. Events wake it, and every wake ends with a line saying how many slots are free and why.

1A lane reports

The lead reviews the report, merges or escalates, and fills the freed slot in the same turn.

2You speak

An answer to a numbered question, a new goal or a new cap.

3The hourly sweep

Check every lane, nudge silent ones, fix a red nightly first, fill free slots.

Key takeaways

  • Five layers: vision, lead, lanes, gates and the human loop. An architect is optional.
  • Roles, gates, a state file and a decision protocol are what make parallel agents a factory.
  • The lead plans and merges. Lanes do one task each, report, and stop.
  • Every change goes failing test, fix, gate, draft PR. Merges rest on written approvals.
  • A free slot always has a stated reason. If work is ready, it gets filled now.
  • A named demo with time budgets is how you know you are done.

Go deeper