Engineering Between Autonomy and Control
When I started developing software with AI agents, the hardest decisions felt familiar. In enterprise infrastructure, I'd spent years balancing security, reliability, and the time it takes to get work done. Agents let me move faster, and I found that they could amplify the consequences of getting that balance wrong.
Two sides of AI-assisted development
Give an agent a requirement and the tools to implement it, and it can produce a working change quickly. I've also seen it add a second implementation for something the project already does or introduce an abstraction for a problem that only occurs once. The software may work, but that does not necessarily make it well engineered.
I spent considerable time building controls around agent execution. Restricted permissions, security gates, independent review, and clear acceptance criteria each served a purpose. Put enough of them in series and even narrow changes can get stuck. Individual controls made sense. Their combined effect was not always what I intended.
In one DevFlow test run, I used live agents on a small invoice calculation fixture. Review found a deeper precision problem in each revision. The controller ran three repair attempts before handing the ticket back to a human. The repair limit did its job, and the run showed how much effort agents could spend revisiting a problem the specification had left open. I came away with a clearer distinction between a defect the agent can fix and a decision someone needs to make about the requirements.
An old engineering problem
I've seen the same pattern in infrastructure. A security control can satisfy a requirement and still make a system harder to operate. An automation can save time under normal conditions while making recovery harder when something fails. I learned to ask how the controls work together during an actual change, including what happens when a check fails and who can decide how to proceed.
With an agent, that last question matters because it can interpret an ambiguous requirement and choose a response during execution. A well-defined scope tells it which decisions it can make and which ones belong to the engineer responsible for the system.
Extending DevFlow
In Why I built the process before the automation, I described starting with the checks and evidence I wanted before automating the workflow. I've since extended DevFlow's observability tooling with a controller that takes an approved issue through implementation, CI, and independent review.
The controller checks authorization before it starts, keeps agent credentials separate from orchestration authority, and requires CI and review evidence for the same code revision. It limits repairs and records why a run stopped so the owner can decide what to do next. That evidence matters when a run reaches its limit. The owner can see which requirements were met and where the agent got stuck.
A layered architecture
I use a dedicated controller when a workflow needs repeatable, unattended execution. For work that calls for frequent collaboration, I've also been experimenting with a primary agent that tracks the project, delegates scoped implementation, and consults a specialized model on difficult decisions. Both paths can use the same authorization rules, assurance requirements, and evidence standards.
Keeping those responsibilities distinct lets me change how a task is coordinated while preserving what the team requires before it accepts the result.
Finding the balance
I want review depth to reflect what can go wrong. A change to tenant isolation warrants close review and tests that try to cross the boundary. Moving an element on a page calls for checks that it still works across screen sizes and with a keyboard. Credential restrictions, authorization boundaries, and repository protections should not depend on an agent deciding to follow instructions.
Inside those boundaries, I want agents to investigate and make routine implementation decisions. If review exposes an open question about scope or a repair keeps turning up a deeper problem, the owner should have enough evidence to decide whether to revise the requirements, narrow the change, or stop the run.
Govern according to risk. Automate according to need. Preserve engineering judgment.