Skip to content

Four roles around one task ledger

2 min readAgentsFlower team

Abstract cover art: interlocking violet and ink shapes arranged in four lanes on a paper background

Give one agent the power to plan the work, write the code, check the result and deploy it, and you have built a system with no internal resistance. AgentFlow splits that authority across four roles — not to slow things down, but to make sure no single session is ever grading its own homework.

The Orchestrator

The Orchestrator is the planner and the only writer of project memory. It decomposes a goal into Task Files, decides which can run in parallel, launches workers through run_task.py, and accepts results on evidence — gate.py verify passing on the reported SHA — rather than on reading the diff itself. It merges accepted branches and keeps the Task Ledger honest. It never touches product code.

The Developer

The Developer does exactly one task: read the Task File, make the smallest change that satisfies the acceptance criteria, run the listed checks, commit once, and write the Result. Its reach is deliberately narrow — only the files in Allowed files, only inside its own worktree. When something outside that scope needs changing, the correct answer is blocked with a question, not a quiet expansion.

The Tester

The Tester exists because verification deserves an independent pair of eyes. It works in a disposable checkout of the exact commit under review and changes nothing — the launcher checks afterward that the branch, the worktree and the Task File are untouched. Its Result is a Verdict per criterion, and a verdict worse than pass rejects the checked task. Keeping the Tester in a separate session — ideally a different tool — prevents the author’s assumptions from becoming the reviewer’s.

The Deployer

The Deployer consumes only accepted commits, launches manually in a session the human designates, and touches production only after an explicit human yes. Deployments are deliberately the least automated link: merging is evidence-gated, but releasing is a business decision.

The ledger keeps them honest

All four roles read and write the same Task Ledger, which is what makes the separation real. A task’s state — ready, in progress, review, done, rejected, blocked, cancelled — changes through one tool with enforced transitions. No role can skip the line or quietly rewrite history; the ledger records who did what, and the runtime files record what actually ran.

The pattern generalizes beyond AgentFlow: wherever an agent’s output flows into shared state, put the write, the check and the ship decision in different hands. The roles are small, and that is the point.