The gates in the previous parts answer yes or no. But what should a gate run? And how does a session get the right names and the right context before it writes a line? Behind the gates and the work orders sit five small .NET tools. They use no AI. The same input gives the same answer, and that is the whole point.
In the talk I said that two of them block and three are advisory. Today three block.
The question is simple: which builds and tests must be green before we dare say that nothing broke? The answer should not be "all". The whole test suite in the product repo takes too long to run for every task. Nor should it be what the session thinks. It should be a plan that can be calculated from the diff.
ChangeImpact takes the changed files and finds the nearest project for each file. That project has to be built. The test project next to it has to be run. If the file is part of a shared UI package, the apps that import the package come along, because a shared package can build green while an app that uses it breaks. That happened in September, and since then it has been part of the plan.
Finally it lays the repo's own rules on top. They are in the repo's profile (#9), and in the product repo there are 22. A changed controller in a web API requires a full-stack test. A change that touches the API's surface requires the generated clients to be regenerated and the diff to be empty afterwards. One rule checks character encoding in all files. It was added on 30 October and has been in almost every plan since: 983 of the 4,961 plans the runner has built in all.
A real plan from access per data type had five commands: two builds, the test project for the BFF the task touched, and two rules from the profile. One of them was included because the task mentioned an SQL file with test data. The test project alone is 23,829 tests and took 114 seconds.
The plan is the gate's. But the session also has to run it before it hands over, and so it was run twice. In October we measured that the gate's runs of whole test projects were 12% of the time a story took. One test project alone accounted for 10.7%. That is time that can be measured, and so time that can be won back.
Since 28 October the gate reuses the session's run, without trusting it. The session runs the plan with the runner's own command, which does exactly the same as the gate: the same commands, the same comparison with the task's start. The runner saves the content of the working directory as a git tree before and after. The gate only reuses the result if the plan and the content are the same, and never if the run itself changed something. The spec tests always run. On the task from the example it saved about two and a half minutes.
A session that does not know the codebase guesses. It makes up a name that almost exists, or uses a pattern the rest of the code does not use. AiIndex is a map it can ask instead.
The map is a graph over C#, TypeScript and SQL: types, methods, what calls what, dependency injection, endpoints and where the code hits the database. C# is read with Roslyn, TypeScript and SQL with simpler pattern matching. In the product repo the graph today has 171,426 nodes and 530,232 edges from 9,338 source files. Refine gets an extract of the graph for the story it is working on. Spec and implementation get a catalogue of the real names.
On 27 October the graph got an architecture model on top. The codebase is split into 12 layers, and a matrix says which layers may depend on which. Everything the matrix does not allow is forbidden. There are named rules, for example that the shared frontend framework may not know anything about the domain. Known exceptions are in a baseline of 15 lines, and an exception that is no longer needed turns the test red.
Before the model was built, a spike measured the 40,711 dependencies across projects. Where the rules were clear, there were no violations. But one rule existed only in prose, and it did not hold: that the BFFs never reference a domain's business layer directly. They did. A security layer was used by three BFFs and several others, and an event layer by seven services. The answer was not to fix the code, but to give them a name, shared kernels, and rewrite the rule so it said what the code actually did.
The spike also found a fault in the map itself: 33 classes named Program had been merged into one node. That gave 76 edges that did not exist, and a coupling between two services that was not there. Today the map checks itself for that kind of thing before it is used.
Today AiIndex blocks in two ways. The architecture test runs in the product repo's test suite and fails like any other test. And when a story is completed, the runner measures whether the spec tests actually touch the files the story changed. If they do not, it opens a task that writes the test.
An AI session believes what it is told. If it gets a wrong name or an outdated context, it writes confident code against something that does not exist. That is why the tools that give the sessions context are just as important as the ones that stop them.
An example from 29 October: a graph built by the previous version of the runner was read as if it were new. The runner measured gaps in the test coverage that did not exist and opened tasks for them. Since then every graph states which version built it, and a graph from a different version is not used.
The sessions read the design documents and believe them (#2). DesignDocGuard keeps them honest towards the code. Every document has to declare whether it is a contract, a reference or history. A contract document that mentions a class or a method that no longer exists gives a finding. A decision that is changed has to be stamped AMENDED or SUPERSEDED with a date, and SUPERSEDED has to point to what replaces it.
The tool runs as an ordinary test in the test suite. A new finding turns it red. At the time of the talk it had five rules. On 22 October five more came, which keep the overall system design for a product area in step with the individual design documents, and the same rules now stop a merge-up (#6) if a group has changed a decision the system design has not picked up.
In the talk I also said that there were zero accepted findings. That applied to the runner's own documents, and it still does. In the product repo's baseline there are 71 accepted findings today, most of them references to code that has moved. In October it was 31. The baseline makes them visible, but it does not make them fewer. That is a number I have to take a position on.
The last two are advisory. ContractGuard looks at file paths and the task's markings and says whether the change appears to touch a contract: an API route, a DTO, a generated client, the database schema or the translations. PublicSurfaceDiff compares the base with the change and shows which public signatures have been added or have disappeared. Both land in the story review's work order.
That they are advisory is not a shortcoming. On a story in access per data type with 110 changed files, ContractGuard reported a possible schema change. It was an SQL file with test data. PublicSurfaceDiff found 156 new public signatures in 28 files, and almost all of them were new test methods. The real signal was two records that had gained one more field. A tool that makes that much noise must not stop the work. But it can point, and the review has to take a position on what it points at.
None of the five tools does anything a developer could not do by hand. The difference is that they do it every time, in the same way, and that their answer does not depend on who is asking.
What blocks, blocks because it can be measured: a plan that is green, an architecture that keeps to its matrix, a document that does not refer to something that is gone. What can only point, points. And the context the sessions get comes from a map of the code, not from a session's memory.
And none of the five uses tokens. The same answer every time, and asking again costs nothing.
The next part is about the tool the runner itself stands on, and why it may never change it (#9).
Numbers as of 19 November 2026.
—
The code is written by AI. So is the text. The decisions are mine.