The guards behind the pipeline: how Factory turns agents into a process

A new reference page maps every step and decision from handover to merge — and the fifteen guards that make AI-built code something an enterprise can actually adopt. Plus four real adoption scenarios, from the solo builder to the regulated enterprise.

“Let an agent build it” is a liability until you can answer one question: what stops it going wrong? Unbounded fix loops, leaked secrets, unreviewed merges, no provenance — that’s the gap between a demo and a process you’d run in production. Today we published a single reference that answers it end to end:

The Guarded PARR Pipeline

It traces a unit of work from a handover, through PFactory (plan & govern), AIFactory (build), TFactory (verify), to a reviewed, merged PR — and marks every decision gate along the way. Every arrow is cheap; every diamond is a guard.

The shape of it

flowchart LR HO["Handover
brief + ACs"] --> PF["PFactory
govern + sign"] PF -->|"signed contract"| AF["AIFactory
build"] AF -->|"spec + contract"| TF["TFactory
verify"] TF -->|"green"| PR["PR endgame
review + merge"] TF -. "fail · handback ≤2" .-> AF PR -. "conflict / changes / >2" .-> H["Human-stop"] PR -->|"approved"| M["Merged"] classDef g fill:#b8bb26,stroke:#98971a,color:#1d2021; class M g; classDef pf fill:#2b3a37,stroke:#83a598,stroke-width:2px,color:#cfe6de,font-weight:bold; classDef af fill:#3a2b18,stroke:#fe8019,stroke-width:2px,color:#f6cfa6,font-weight:bold; classDef tf fill:#33360f,stroke:#b8bb26,stroke-width:2px,color:#e2e4a0,font-weight:bold; classDef cf fill:#3a3115,stroke:#fabd2f,stroke-width:2px,color:#f6dd98,font-weight:bold; class PF pf; class AF af; class TF tf;

Fifteen guards, two layers

The reference enumerates fifteen guards — but they fall into two independent layers, and that independence is the point:

On top of both: bounded loops (handback and PR auto-fix each cap at two cycles, then escalate to a human), a reviewer-gated merge, and a hard rule that the automation never force-merges — a true conflict always stops for a person.

Who it’s for

The page closes with four grounded scenarios:

That last one is the thesis. The Factory isn’t “AI that writes code.” It’s a pipeline where the process — approval, signed provenance, security gates, sandboxed execution, bounded self-correction, reviewer-gated merge — is enforced by the tool, not by hope. That’s the difference that makes it adoptable.

Read the full reference, with every diagram and guard: The Guarded PARR Pipeline.


← All posts