2026-07-31
Future Guards for AI Software Factories
I'm jumping the gun here before describing the general guards for software factories, but it was a new thought on my mind so I wanted to capture it.
Software Factories will be engineered rigs that enable business domain experts to build software that's meaningful to them, using AI, while guarding against regressions, bugs, security holes, etc.
Claude Code and others attempt to do this now, but they have to be very generic to make sure that they can remain applicable to millions of different use cases. There is a lot of room, though, for highly-opinionated software factories.
Again, without getting into the weeds, one of the main features of a software factory is "concurrent agent orchestration": multiple AI agents working together in different roles to accomplish the goals of the person directing them. But just like in human organizations, different AI roles should have least-privilege access to organizational tools and data, as well as unique capabilities and personas.
The current rough approach is defining these guards per agent in some configuration file, often just a markdown (plain text) file that the AI reads and might use ("guidelines"). All well and good, but that wouldn't cut it for human teams: "just include in their job description that they must never check HR records for how much their colleagues earn... even though they physically have access to that data".
Oh, and these orchestration systems right now typically run agents on a single server, just different computer processes.
That's what will be hardened in the near future.
Each agent being orchestrated will run from its own computer (or virtual machine), just like a person, with its own IAM identity and corresponding RBAC privileges. Hard access rules.
Now we can be as granular as we want and have much more confidence (TRUST!!) that the our guards are not merely optional guidelines.
Concrete example?
Let's say we follow a workflow where the human stakeholders first iterate on the highest-level constitutional amendments to describe important software behavior. They should probably iterate with the agents having the well-defined Constitutional Lawyer role, which gives them access to read and write the rules and read the code, but not edit the code.
Then, once the amendments are ratified, the engineers will need to read the amendments (but never ever modify them in any way) to edit the code, including any tests. Maybe some roles will ONLY edit tests, and then implementation engineers will just write the code to make the tests pass. In these cases, we can manipulate the RBAC controls of each role type to give them exactly the access rights that they need, and nothing more.
Thoughts?