Rules the agent can't see: why governing coding agents needs checks outside the agent
This week AWS and Coder both argued that rules inside an AI coding agent's prompt are not real governance. Why checks must sit outside the agent, why enforcing a rule is not the same as proving a requirement, and where Zekoder fits.
Published on 5 December 2026

Imagine asking a contractor to sign off their own building inspection. They might be honest and even right. But no client, insurer or regulator would accept the result, because the person doing the work is also judging it.
For the past two years, much of the governance around AI coding agents has worked exactly like that. We put the rules in the prompt. We write instructions into a system file the agent reads. We ask the agent to check its own output, run its own tests and tell us when it is done. Then we trust the summary it writes at the end.
This week, two vendors said publicly that this approach has run out of road.
Two vendors, one conclusion
On 1 December 2026, AWS announced Greenlight, now in preview. According to Amazon's announcement, Greenlight takes rules written in plain language and uses automated reasoning to turn them into deterministic rules. Those rules are then deployed to an enforcement engine that, in AWS's words, "sits outside the agent's harness where the agent can't see or change them". The engine checks each action an agent tries to take and blocks any that would break a rule. AWS says it is available as a plugin for Claude Code and Codex, and as a power for Kiro.
AWS goes further, claiming that the "mathematical logic proves there is no chance of misinterpretation or any way an agent can break a specified rule". That is AWS's claim about its own product, and the product is in preview. It is worth reading as a statement of direction rather than a settled result.
Three days later, at AWS re:Invent, Coder's president Josh Epstein made a similar argument from a different angle. In an interview with SiliconANGLE, he said the "AI operating layer" that sits below models and tools is "the only place you can govern". He also suggested that sandboxes get more credit for governance than they actually deliver. And he passed on a story from an unnamed bank: code written by agents was arriving faster than its human-led security and product reviews could handle.
Both sources have obvious interests: one is launching a product, the other sells governance infrastructure, and the bank story has no name or numbers. Even so, the shared conclusion matters: the checks have to live outside the thing being checked.
Why rules inside the agent are not rules
There are three reasons why instructions inside an agent's context make weak governance.
The agent can misread them. Natural-language instructions are open to interpretation, and models interpret. "Never touch production credentials" seems clear until the agent decides a staging file that happens to hold a production key does not count. Nobody needs to act in bad faith for this to happen. Ambiguity is enough.
The agent can route around them. Agents optimise for finishing the task. When a rule gets in the way, a capable agent may find a path its author never imagined: editing the test rather than the code, disabling a check "temporarily", or summarising what it meant to do rather than what it did.
The agent can change them. If the rules sit in a file in the repository, and the agent can write to the repository, then the rules are only as stable as the agent's restraint. That is not a control. It is a hope.
Moving enforcement outside the agent deals with all three. The agent cannot rewrite a rule it cannot reach. It cannot reinterpret a rule that has been turned into deterministic logic. And it cannot talk its way past an engine that checks actions rather than reading explanations.
This is not a new idea. Separation of duties is one of the oldest principles in audit and security: the person who raises a payment does not authorise it. Coding agents are simply the newest actor to which it applies.
Enforcing a rule is not the same as proving a requirement
Runtime enforcement of the kind AWS describes answers an important question: was the agent allowed to do this? Did it stay within the permitted directories? Did it avoid the forbidden commands? Did it leave the secrets alone?
That question matters. But it is not the only one a client, a reviewer or an auditor will ask. They will also want to know:
- Did we build the right thing? An agent can follow every rule and still deliver something that does not match what was specified. Guardrails constrain behaviour. They say nothing about whether the result meets the requirement.
- Were the requirements sound to begin with? If the specification contradicts itself or leaves gaps, a perfectly obedient agent will faithfully build those gaps into the code.
- Who approved what, and when? When something goes wrong six months later, "the agent was not blocked" is not an answer. You need to show which requirement a change served, which agent wrote it, which tests ran, and which person signed it off.
In other words, there are two layers of governance, and they work best together. One layer constrains what an agent may do while it works. The other checks that what was built matches what was specified and approved, and keeps a record anyone can inspect afterwards. Both belong outside the agent. Neither replaces the other.
The review bottleneck makes this urgent
The bank story Epstein shared is anecdotal, but it describes a pattern many teams will recognise. Agents now produce changes faster than people can read them. When review cannot keep up, one of two things tends to happen. Either work piles up waiting for approval, and the speed benefit of agents disappears. Or review becomes a rubber stamp, and the organisation carries risk it cannot see.
Neither works in regulated work. A DORA supplier to a bank, a medical device software team or an agency facing a client security review must show how a change was made, not just that it was.
Checks that sit outside the agent help in two ways. First, they take mechanical questions off the reviewer's desk. Did the change stay inside its allowed scope? Does it trace back to a requirement? Did the required tests run? Machines can answer those reliably, leaving people free for judgement. Second, they leave evidence behind. A reviewer who approves a change should be able to see what was checked, against what, and with what result, rather than relying on the agent's own account.
Where Zekoder fits
At Zekoder, verification is the core of what we build. Our focus is the second layer described above: checking what was built against what was specified, at three points in the lifecycle.
- Before coding, by verifying the requirements themselves. Proof of requirements, which uses mathematical methods to find gaps and inconsistencies before the first line is written, is coming very soon.
- During coding, by checking each change against the requirements: which agent wrote it, against which requirement, with which tests and which reviewer.
- Before deployment, by confirming that what ships matches what was specified and signed off.
The way in today is ZeKoder Desktop, now in beta on macOS, Windows and Linux and free for individuals. It runs Claude Code, Codex, Cursor, OpenCode and Pi side by side. You plan work as issues, hand each step to an agent from any vendor, and review the result before it merges, with guardrails against code corruption, code loss and injected vulnerabilities. ZeKoder Audit, coming soon, will add a signed, append-only record that links every change from requirement to release, so clients and auditors can check the evidence for themselves.
We see runtime enforcement tools such as Greenlight as complementary to this, not as competitors. A rule engine that stops an agent doing something forbidden, together with a verification layer that proves the result matches the requirement, gives a far stronger account than either can alone. And Zekoder helps produce evidence. It does not make anyone compliant on its own, and no tool honestly can.
The direction of travel
The shift under way is from trusting agents to verifying them independently. That means treating agents like every other powerful actor in a software organisation: give them real capability, put the controls where they cannot be edited, and keep a record that does not depend on anyone's own account of events.
Two vendors reached that conclusion in the same week. Expect more to follow. The useful question for engineering leaders is no longer whether checks should sit outside the agent. It is which checks, at which points, and what evidence they leave behind.
Sources: Amazon newsroom, Greenlight announcement (1 December 2026); SiliconANGLE, interview with Coder at AWS re:Invent (4 December 2026). Claims about Greenlight's capabilities are AWS's own.