Skip to Content
loop.fun
Software factories

Inside the factory

The stations most factories share, the state machine that moves work between them, and the four ways a run can end.

No two factories are built the same way, but the published ones converge on a similar line of narrow stations, each a small loop with one job, joined by a state machine that lives outside any agent's context.

The stations

IntakeClassifyReproduce / analysePlanImplementVerifyReviewMerge / releaseMonitorproduction signals and reporter feedback become new intake
A composite of the published factories. Few have every station; most have intake, implement, verify and a human gate.

One agent per station

The strongest shared design choice: many narrow agents beat one capable generalist. Vercel built dedicated agents for bug reproduction, bug fixes, PR review, backports, docs updates, feature analysis and feature implementation. Their advice is "Build one agent per task"; a single agent equipped with every skill "would come with a higher maintenance and troubleshooting burden" (Vercel). primary source

Factory's product moved the same way, from one generalist Droid to a coordinator handing work to role-specific Droids for code, review, docs, test and knowledge (Masuda). secondary reporting

State lives outside the agents

Stations hand off through something durable and inspectable, never through one long shared context:

FactoryWhere state lives
Cloudflare AstroIssue labels as a state machine (triage needed … fix verified), plus a report.md file each subagent reads and appends to (InfoQ)
OpenAI SymphonyThe Linear board. Each issue maps to a workspace; the orchestrator restarts agents that stall or crash (Help Net Security)
Gas TownBeads, a git-backed issue ledger Yegge calls the atomic unit of work; "convoys" bundle related beads (Yegge)
8090A knowledge graph linking requirements, architecture and implementation (Ry Walker)
Vercel BoardA shared message board agents post to and read from (Vercel)

This is the context-and-memory problem solved by brute force: if each station starts fresh and reads the ticket, nothing rots.

Deterministic where possible, agentic where needed

Stripe calls its pipelines blueprints: "a sequence of nodes where some nodes run deterministic code, and other nodes run an agentic loop". Running linters and pushing the branch are hard-coded; fixing CI failures gets an agent. And the agent gets a fixed budget: "At most two rounds of CI. If the code doesn't pass after the second push, the branch goes back to the human engineer" (ByteByteGo). secondary reporting

The same instinct appears in GitHub's guidance for its Markdown-defined Agentic Workflows: use them for tasks that benefit from flexibility, not for core build and release processes that need strict reproducibility (htek.dev).

How a run ends

Vercel sorts every run into one of four outcomes, and only one of them ships (Vercel):

Success
The change is correct and goes to human review.
Flawed
The agent produced something wrong. Fix the factory: better prompts, context or eval cases.
Blocked
The agent lacked something it needed. Fix the environment: provision the missing access, data or tool.
Manual
The work needs a person. Hand it back.

The point of the taxonomy is that failures are bug reports against the factory, not the product. A flawed run isn't patched by hand and forgotten; it becomes a new eval case so the next run doesn't fail the same way. That's the loop around the factory, and it's what separates a factory from a cron job that calls an agent.

loop.fun

Patterns, hints and tools for designing the loops that keep agents working, and for widening the set of loops you can think of.

© 2026 loop.fun · CC BY 4.0

On this page