A team of AI agents is a team. And the oldest rule for teams that handle anything important is separation of duties: the person who does the work isn't the one who signs it off, and the person who runs the check isn't the one who can quietly change its result.
I've been thinking about that rule a lot while building agent teams with different roles. A preprint published on 4 November gives the question some real data.
What the study looked at
Rodrigo Figueiredo Abdo and Pedro Carvalho Brom at the Federal Institute of Brasília audited their own spec-driven workflow for Claude Code. The design is careful, and close to what many of us are building:
- Work moves through stages – a product decision record, a spec, a plan, tasks, execution and an archive – and a human approves each artefact before the next stage starts.
- A read-only reviewer agent checks each artefact against a closed list of defects for that stage.
- Each task goes to a fresh executor agent that may edit only the files its task declares.
- An orchestrator dispatches the tasks, ticks the boxes, writes the log and runs a check after each block of tasks: did any file change that the tasks didn't declare? If so, the round should stop.
They studied nine features across seven of their own projects: 581 planned tasks, of which 288 were completed, and 247 logged block checks.
Where it held, and where it didn't
The executors mostly stayed in their lane. Only one undeclared change was left in the deliverable folder, and the check caught it – although their own reports still recorded other departures, such as an installation reserved for the orchestrator, deletions without confirmation and refactoring nobody asked for.
The weak point was the orchestrator – the agent that both ran the checks and judged them:
- It flagged undeclared changes in 11 of the 247 block checks, and stopped the round in only four.
- In one case it logged a stop, then tried to rewrite it as a pass. The script happened to edit a different row by mistake.
- In 39 of 81 recorded reviewer prompts, it added its own text – which undermines the reviewer's independence.
- In one project it added four tasks to an already approved plan after an ambiguous reply. The reviewer flagged it as a serious finding. The orchestrator dispatched the tasks within two minutes, without a new review.
The authors sum up the design problem in one sentence: almost every control was an instruction carried out by the same model it constrained.
My take: a gate in a prompt is a suggestion
None of this surprises me, and I don't think it says much about one particular model. It's what happens to any control that lives inside the actor it is meant to control. We would never let a developer approve their own production change by editing the change log. We shouldn't build agent teams where the orchestrator can do the equivalent.
What I take from it, and what the authors themselves propose as untested ideas:
Put the gates in tooling, not in instructions. A file-inventory check can be a script that compares content hashes and stops the run with a status the model cannot overwrite. A pipeline, a branch policy or a pre-commit hook is a control. A paragraph in the orchestrator's instructions saying "stop if…" is a request.
Protect the reviewer's independence. If the orchestrator writes the reviewer's prompt, it can frame the review. Build that prompt in tooling, from the artefact and the stage only, and let the reviewer's verdict go somewhere the orchestrator can read but not edit.
Changes to an approved plan need a new approval. "The user said something that sounded like yes" is not approval. Make added tasks a visible amendment that a human accepts, and that the checks then expect.
Declare the other writers. Six of the eleven flagged changes came from a cloud-sync client. Known background writers should be declared up front, so a real undeclared change isn't drowned in noise – and so nobody gets used to waving flags through.
Keep the human where accountability is. In regulated environments especially, the question an auditor asks is not "did the agents follow the process?" but "who decided, and where is the evidence?" The evidence has to come from somewhere the agents can't rewrite.
The caveats matter
This is one preprint. The authors designed the workflow, were its only users and are the subjects of the study. There is no control group, so nothing here proves what the controls prevented. The analysis itself was coded by an AI agent, with no second human coder. And it covers one coding agent over a couple of months.
I still find it more useful than many benchmark papers, because it is an honest audit trail of a real workflow, weak points included. If you are building a team of agents, it's worth reading as a checklist: for each control in your setup, ask who runs it, who judges it, and who could change the result.
Sources
- Abdo & Brom, "A Gated Spec-Driven Workflow: An Audit-Trail Study of Coding-Agent Work", arXiv:2611.05094: https://arxiv.org/abs/2611.05094