Early versions of Tangigo had more than one way to build a story. One generated code inside a long-running shared process. Another wrote files onto the storage behind the code editor and synchronized them to git. Both worked in a demo. Both failed in ways that were hard to see: a synchronization step that ran in the wrong order could wipe the files an agent had just written, and the result was a pull request with nothing in it and a status that said success.
We removed every path but one. A story is now built exactly one way, and the rest of this note is what that way is and why each part is there.
Dispatch, then a queue
When you press Build, nothing runs in your browser session or in the service that answered the click. The request is recorded as a dispatch and placed on a queue, and the caller is told it was queued. The queue owns the retries: a transient failure backs off and tries again, a plan that is at its concurrent-build limit waits without burning an attempt, and after five failed launches the story is marked failed with a reason that says so.
Before anything launches, the dispatch is checked against the things that should stop it: the story's Definition of Ready, your budgets, your model policy, an active kill switch, and any expired dispensation on the module. Each of those has its own outcome on the story, so a build that never started still tells you why.
An isolated job per story
The build itself runs in a container job of its own. It clones the module's repository onto its own disk, creates the story branch and fetches the build brief: the standards, design system and linked artifacts in force on that module. It holds one short-lived token that names the story, the module and the repository it may touch, and it fetches everything else, including the repository credential and the model keys, at the moment it needs them.
Inside the job a squad of three roles works over the one checked-out tree:
- the architect reads the brief and the code and writes a plan;
- the developer implements the plan in rounds;
- the tester runs the tests and either approves or sends it back.
The squad has four tools: read a file, write a file, list files and run the tests. It cannot touch the git directory and it does not push. The job's own entrypoint owns git: it commits, pushes the branch and opens the pull request through a broker. Keeping git out of the agents' hands means there is one place where commits are made, and that place is not a language model.
After the tester approves, a conformance step checks the diff against your gate rules. A violation raises a governance checkpoint, the branch is pushed so you can inspect it, and no pull request is opened.
Checkpointed, so it survives you
The job writes its phase onto the story as it goes: running, cloning, developing, committing, pull request open, done. That write is the source of truth, and the job fails if it cannot make it. It also publishes each squad activity line as a best-effort live feed into the story's squad room. Close the browser and the build carries on; open it again and you see where it got to.
Epics and sprints fan out one job per story. A story that fails fails only itself.
One pull request
The output is a single pull request on your repository, with the tests the squad wrote and the conformance verdict. Your existing branch protection, required reviewers and CI apply to it exactly as they would to a person's change. We did not build a second review process, because you already have one.
After the merge, a verification pipeline runs your test matrix against a baseline held per module and environment. A test type that timed out or was skipped is reported as exactly that; it does not count as verified.
Why so strict
Every shortcut we removed was faster in a demo and worse in a postmortem. One path means one place to add a check, one place to look when something goes wrong, and one artifact for your team to review. That is the trade we would make again.