arrow_back All posts
Our Journey to AI-Driven Development · Part 4

veenion one: Designing a Greenfield Platform for Agents From Day One

Twenty-seven bounded contexts, a spec freeze enforced by a git tag, governance written as unit tests, and what we did when the agents started reviewing each other in circles.

Daniel Wiedenhofer · Healy Hudson Portugal
· 10 min read

Everything in the first three parts happened on a legacy platform, where the agents had to learn twenty years of conventions and the process had to be fitted around code that already existed. In August 2026 we started something new, and we got to ask a different question: what does a codebase look like if it is designed for agents from the first commit?

What veenion one is

veenion one is the next-generation Source-to-Pay platform of our sister company veenion. It replaces two existing products one capability at a time, in the strangler-fig style: migration first, features second. Technically it is a long way from its predecessor. .NET 9 with warnings treated as errors and nullable reference types on. Angular with Angular Material on the front end, with API clients generated from the OpenAPI contracts. PostgreSQL. RabbitMQ with a transactional outbox and CloudEvents. HashiCorp Vault for secrets and signing, Redis, an S3-compatible object store, OpenTelemetry into Grafana, Loki and Prometheus. Deployed with Nomad.

The domain is cut into twenty-seven bounded contexts in a single repository with hard boundaries between them. Tenant isolation is physical: a database per tenant and a schema per context, with no tenant column and no row-level security to get wrong. A mandatory cross-tenant probe runs in the test suite, and a red probe is the highest-priority defect there is. It is the one gate that can never be overridden.

Day one

The repository was bootstrapped on the second of August 2026, and the first real commit was not code. It was the operating model: the agent guide, the role definitions, the rules and the workflows from the open ordering repository, carried across and adapted. Not copied. An early attempt at scrubbing the names out of the legacy prompts produced role descriptions that still talked about NHibernate and the .NET Framework, so they were rewritten from scratch for the new stack.

Then came a phase gate that we could never have introduced retroactively on the old platform: no production code until the specification is frozen, and the freeze is a git tag. Until the tag exists the agents may write specs, contracts, Gherkin scenarios and architecture decision records. They may not write features, except inside explicitly sanctioned pilot scopes. A skill closes the phase and sets the tag, and it requires sign-off from the authors, QA and the product owner first.

The spec artefacts are concrete: product requirement documents, OpenAPI and AsyncAPI contracts, Gherkin feature files, versioned JSON schemas for every event. The contracts are linted with Spectral using our own rules, for example that no operation may expose an internal integer identifier and that every operation declares a permission that actually exists. Drift tests tie the running code back to the published contracts, so a contract change without a code change fails the build, and vice versa.

Fifty-nine decisions in thirty-two days

Here is the first thing that went wrong. Architecture decision records are a core part of how we work: every decision that constrains the design is written down with its context and consequences. On a greenfield platform there are a great many of those, and agents are very good at producing well-formatted documents. By the twenty-first of August an internal audit counted fifty-nine ADRs in thirty-two days, which is nearly two per day.

Some of them were real decisions. Some were editorial. Some contradicted each other. The fix was mechanical and it has held: one file per decision, stable slug identifiers instead of a running number, the first sixty numbers frozen, and a generated index that a unit test checks on every build. If someone adds a decision file and the index does not match, the build is red. We call this pattern governance as tests, and it is the single most important idea to come out of veenion one.

Governance as tests

On the legacy platform most of our rules live in Markdown and are enforced by review. On veenion one, wherever we could, we wrote the rule as a test. A few examples from the test suite:

  • A test that checks the decision-record index is consistent with the files on disk.
  • A test that fails if any agent inbox message has been pending for fourteen days.
  • A test that checks ten named test assemblies actually ran, so a suite that was silently skipped cannot produce a green build.
  • Tripwire tests on boundaries that must not be crossed: customer overlays, external identity, sub-company isolation, the object store seam.
  • The cross-tenant end-to-end probe.

The complexity budget applies from the first line: cognitive complexity of fifteen or less per method, cyclomatic complexity of ten or less, methods of fifty lines or less, files of four hundred lines or less. There is no legacy to exempt, so there are no exceptions, and the agents have never known any other way.

Review round twenty

The second thing that went wrong is more interesting. With read-only reviewer agents checking the work of implementer agents, you can get a loop: the reviewer finds issues, the implementer fixes them, the reviewer finds issues in the fixes. One specification run reached review round twenty. When we looked at the findings, most of them were caused by the previous round's own fixes. The agents were polishing each other's polish.

Since mid-September review rounds are capped at three. After the third round a person decides: accept as is, descope, or split the work. We also capped the size of what a reviewer looks at in one go at about twelve hundred lines, because quality of review falls off a cliff above that for agents just as it does for people.

Decisions I made myself

One artefact from this period deserves a mention because it shows an attitude we want to keep. On the day of the ADR audit, the agent doing the clean-up produced a file titled, in German, "decisions to review". It listed twenty decisions it had taken on its own authority during the clean-up, sorted into substantive and editorial, followed by a section on where it had had to correct itself. It was written for a human to read and check, and that is exactly what happened.

We think this is what responsible agentic development looks like in practice: not an agent that never decides anything, which would be useless, but an agent that makes its own judgement calls visible so that a person can overrule them.

The numbers, with the caveat

Between the start of August and the beginning of October 2026 the repository accumulated around seven hundred and sixty commits. More than nine in ten carry a Claude co-author trailer. Twelve people have committed. The codebase stands at about five hundred C# files and over a hundred thousand lines, with roughly thirteen hundred test cases.

The caveat is the one we keep repeating: a commit co-authored by an agent is a commit a person planned, reviewed and accepted. The number says how the typing was done. It does not say who is responsible, and the answer to that has not changed.

Next in the series: none of this matters if the pipeline lets bad code through. Part five is about CI/CD, quality gates and the AI reviewer in the pull request.

Sound like your kind of engineering?