The whole path
The full flow I use in my projects, with five gates counting the preparation's, and what happens when something fails.
On every change
- You define what has to pass with the orchestrator. In this project you write rules and scenarios in Gherkin. If the change promises something to its users, agree on the outcome and where you will look for it. Scenarios gate: person.
- Another agent writes the tests, e2e ones too. CI checks that they reject the faulty case for the expected reason and accept the correct one. A reviewer checks that the scenarios are covered.
- A different agent writes the code that makes them pass, with linters, until a reviewer with a clean context passes it. Loop gate: machines.
- If the agent thinks a test is wrong, it stops and says so. It doesn't modify it.
- The loop only repeats twice. When both rounds are spent, work stops. You decide whether to allow another attempt or change the brief.
- The change reaches the pull request, where the e2e tests and another reviewer run. PR gate: machines and a reviewer.
- If it touches red zones, you review the code and how it would be undone.
- You give the final approval. Release gate: person. GDD doesn't require it: it's a person's check I've chosen in my projects.
- You look at whether it helped: yes, not yet or no.
- You adjust the gates in light of what they caught and what they missed. The orchestrator proposes rules with their test, or relaxing or retiring what no longer adds anything.
When the path goes sideways
| If this happens | What happens |
|---|---|
| The change is the text on a button | It runs the checks the blueprint assigns to copy. Here it can go in without a review from you. |
| There is an emergency in production | The first thing is to try to undo it. If a fix is needed, a person approves it through the emergency gate. |
| Almost everything comes out red | Review the harm those changes could cause and whether the blueprint reflects that risk. .gdd/gdd metrics shows how many changes come out of each color. |
| You ask for a tweak when approving | It goes back to the agent, and the gates and your approval are requested again. |
| Nobody looks at whether it helped | If it promised something, it stays in use and not closed, in plain sight, without holding up what comes next. Maintenance covered by the blueprint closes after the agreed time in use if there are no recorded incidents. |
| A rule can't be decided | It gets tagged @question until a later change. |
Before you cross: Can the agent that writes the code modify a test it thinks is wrong?
That's not it. It stops and says so. Whoever wrote the test, or a person, corrects it.
That's it. It stops and says so. Whoever wrote the test, or a person, corrects it.