NeoMonarch.
All insights

Build log · 10 min read

How a small senior team runs a portfolio with AI engineers

How our engineers direct AI virtual engineers through specs, lanes and a regression harness to build and run a portfolio of enterprise platforms, and where that model stops working.

By the NeoMonarch team

Photo: Mikhail Nilov on Pexels

A few years ago, the portfolio we run today would have needed a department. NeoMonarch has nine platforms in various stages, several of them in launch-ready shape, and around thirty reusable accelerators behind them. It is built by a small senior team, product engineers, AI engineers and quality engineers, directing AI virtual engineers through a disciplined lifecycle with a regression harness on every change.

That sentence invites two reactions, and both are reasonable. One is scepticism: surely the quality suffers, or the claims are inflated. The other is curiosity about how the work is actually organised, since "use AI to write code" describes a tool and says nothing about an operating model. This article is for both readers. It sets out who decides what, how work is divided into lanes, why the harness carries so much weight, and where the model stops working. The limits section is the longest one, deliberately.

The constraint that shapes everything

The binding constraint in a small senior team is senior attention: the hours in a day when experienced people can make good decisions, read critically and notice what is missing. Agents can produce code far faster than any team can review it. If review is the bottleneck, the whole system has to be designed so that human attention goes only where it changes the outcome.

That reframing explains most of what follows. Specs exist so that review is checking a contract instead of reverse-engineering intent. The harness exists so that a human never spends attention confirming something a machine can confirm. Accelerators exist so that solved problems stay solved. Each piece removes a category of work from the scarce resource.

The wider evidence points the same way. Google's 2025 DORA report on AI-assisted software development describes AI as an amplifier: it magnifies the strengths of organisations with good engineering practices and the dysfunctions of those without. A controlled study by METR found that experienced open-source developers using early-2025 AI tools on their own mature repositories took about 19% longer than without them, while believing they had been faster. We read both as the same lesson. Unstructured use of AI does not reliably speed up experts. Structure is where the gain comes from.

People do the expensive thinking

Architecture, security, product scope and trade-offs stay with a human. These are the decisions where a wrong call costs months, and where experience compounds. Choosing a tenancy model for Shipyard, deciding that agent purchases in Commerce 360 must always reference a platform-issued quote, setting the boundary between what Gangway's agents draft and what a person approves: none of these are hard to implement, and all of them are expensive to get wrong.

AI drafts options for these decisions, and it is good at it. Ask for three ways to model a returns window and their failure cases, and the list will usually include one you had not considered. Choosing among them stays with the people who will live with the consequences. We write the choice down, with the reasons and the rejected alternatives, in a decision record next to the code, so that every later agent and reviewer works from the same premise.

Agents do the volume, in lanes

Implementation, tests, migrations, documentation and refactoring are split into scoped lanes and run in parallel. On a typical day several lanes are active across different products, each with its own context and its own harness checks. A lane is a precise thing, and most of the discipline lives in its definition.

Part of a laneWhat it containsWhy it matters
SpecOutcome, non-goals, contracts, acceptance tests, constraints, a reference moduleThe agent builds against a checkable contract
ScopeThe files and modules the lane may changeParallel lanes cannot collide unnoticed
ContextRepository instructions, relevant decision records, the reference moduleLess guessing, fewer plausible-but-wrong choices
PermissionsWhat the agent may run, read and write; no production credentialsA confused agent cannot do lasting damage
GateThe harness checks that must pass before a person looksHuman review starts from green, never from red

The size of a lane matters as much as its shape. A lane that would produce a diff too large to review in one sitting is split before it starts. Small lanes fail cheaply, review quickly and merge without long-lived branches drifting away from trunk.

Operating model diagram. At the top, the senior engineers, in amber, own decisions: architecture, security, scope and trade-offs, and writes specs. Specs fan out into three parallel agent lanes for different products, each with its own scope and context. Every lane passes through the regression harness, highlighted in orange, before reaching human review and merge. Merged work flows into released platforms, and reusable pieces flow into the accelerator library, shown in teal, which feeds back into future lanes.
Figure 1. Engineers decide and review; agents build in scoped lanes; the harness gates everything; reuse feeds the next build.

A lane, start to finish

An illustrative example shows how the pieces fit. Suppose a platform needs a new export: operators want to download a tenant's invoices as CSV for a date range. It is well specified and easy to reverse, so it becomes a lane.

The spec takes a few minutes to write. The outcome names the operator and the task. The non-goals say the billing module and the invoice schema must not change. The contract defines the endpoint, the columns, the date-range limits and two named errors, one for a range that is too long and one for a tenant the operator cannot see. The constraints say the tenant comes from verified identity and that the export is logged as a data export, because exports are security-relevant events. The reference module is an existing export elsewhere in the codebase that already does this well.

A test agent turns that into failing tests, including one that requests another tenant's invoices and expects a refusal. An engineer reads the tests against the spec, which takes far less time than reading an implementation, and approves them. A build agent works until they pass, inside a scope limited to the export module and its routes. The harness runs everything, including the scope check and the audit-log assertion. Only then does the diff reach human review, where the question is whether anything is missing: should the export be rate-limited, and does the CSV escape formula characters so a spreadsheet does not execute them? If the answer reveals a gap, the spec gains a line and a test before the code changes.

The harness is the team lead

In a large team, many mistakes are caught in passing. A colleague glances at a pull request and asks why the migration is not reversible. Someone notices the new endpoint does not check the tenant. When agents write most of the code, there are far more changes than colleagues to glance at them, so those catches have to be automated, and the regression harness plays that role. Every lane's work has to pass it before a human looks.

The harness runs the unit, integration and end-to-end suites, contract tests against the API specification, security checks such as forged-tenant and authorisation tests, accessibility checks on changed pages, and diff checks that fail a lane for touching files outside its declared scope. It also runs the evaluations for AI features, because a prompt change can regress a product as surely as a code change.

This is the single biggest reason the approach works, and the first thing we set up for clients. It shifts the question a reviewer asks from "is this correct?", which is expensive, to "is this what we wanted, and is anything missing?", which is where human judgment is actually needed. The platforms show the result in their test counts: Commerce 360 carries more than 3,350 automated Java tests and Shipyard around 2,280. Those suites were written alongside the features, lane by lane, because no lane merges without its tests.

Reuse is the multiplier

Every product contributes accelerators back: Stripe Connect billing with its simulator, the saga engine, Monarch AgentGate for agent identity and permissions, A/B testing SDKs, cloud landing zones, the Monarch Design System. The fifth product is much faster to build than the first, because most of its foundations already exist and are already tested.

Reuse also compounds quality, which matters more than speed. When Gangway needed agent permissions and audit, it inherited AgentGate's code together with its tests and its threat model. A bug fixed in the saga engine is fixed for every platform that provisions or compensates through it. For a small team this is the only way to keep nine platforms maintainable: the shared parts are maintained once.

The cost is discipline at the boundary. An accelerator earns that name only when it has its own tests, its own documentation and a stable interface. Extracting code into a shared module before it has been used twice usually produces the wrong abstraction, so we wait for the second use.

Where it does not work, yet

The model has clear limits, and pretending otherwise would make this article an advertisement.

Novel problems with no clear spec. Research questions, unfamiliar domains and genuinely new product ideas still need long stretches of human thinking. Agents help explore, summarise and prototype, but they do not tell you what the problem is. Spec-first work assumes you know what you want; when you do not, the agent will confidently build the wrong thing quickly.

Noticing what is missing. Agents are good at satisfying requirements and poor at noticing absent ones. They will not ask what happens to an order that is half shipped, or whether a regulator needs to see a decision log. A person has to ask, and that person has to have seen enough systems fail to know what to ask about.

Incidents. Production incidents need judgment under pressure and accountability for the call. Agents are useful investigators: they read logs, correlate traces and draft hypotheses quickly. People decide what to roll back and what to tell customers.

Concentrated knowledge. A small team that moves fast risks keeping too much in a few heads. We mitigate it with things we would want anyway: decision records for every significant choice, specs that describe behaviour accurately because the build depends on them, environments defined as code, and a harness that tells any competent engineer within minutes whether a change broke something. For client work, those artefacts are the point: a client should be able to carry on without us, and the specs, records and harness are what make that possible.

Review fatigue. The scarce resource can be exhausted. When review queues grow, the temptation is to skim. Our rule is that lanes wait rather than merge on a skim; we reduce parallelism before we reduce scrutiny.

A two-by-two grid for deciding what to delegate. The horizontal axis runs from easy to reverse on the left to hard to reverse on the right. The vertical axis runs from well specified at the top to novel at the bottom. Top left, well specified and easy to reverse, is delegate to an agent lane with harness gates, highlighted in orange. Top right, well specified but hard to reverse, such as migrations and billing, is agent builds and a person approves before release, in amber. Bottom left, novel but easy to reverse, is a time-boxed agent spike that is thrown away. Bottom right, novel and hard to reverse, such as architecture and security boundaries, is a human decision with agents drafting options.
Figure 2. What we delegate depends on how well the work is specified and how hard a mistake is to undo.

A decision rule for what to delegate

Figure 2 is the rule we actually use, and it transfers well to teams of any size. Two questions decide where a piece of work goes. Is it well specified, so that success can be checked mechanically? And how hard is a mistake to undo once it reaches users or data?

Well specified and easy to reverse goes to an agent lane with harness gates, and most day-to-day work lives here. Well specified but hard to reverse, such as schema migrations, billing changes and data deletion, is still built by agents, with a person approving the specific change before release. Novel but easy to reverse is a spike: an agent explores, a person reads the result, and the code is thrown away. Novel and hard to reverse, which covers architecture, security boundaries and anything touching money or identity for the first time, stays a human decision, with agents drafting the options.

What this means if you hire us, or copy us

Clients get senior judgment on every decision, the throughput of a much larger team on the work that can be specified, and a process that shows its evidence: specs, decision records, harness results and review notes for every change. That combination is what NeoMonarch exists to offer.

If you would rather build this inside your own team, start in this order:

  1. Stand up a regression harness on one product before you add any agent lanes. Without it, every agent diff is a full manual review.
  2. Adopt a short spec template with named errors and acceptance tests, and refuse to hand an agent anything that does not fit it.
  3. Define lanes with explicit scope, context and permissions, and enforce scope in the harness.
  4. Use the two-question rule above to decide what each lane may do without approval.
  5. Write decision records for architecture and security choices, so agents and new people work from the same premises.
  6. Extract shared components only after their second use, and give each one its own tests.

The tools will keep improving. The constraint will not: experienced attention stays scarce, and an operating model that spends it carefully will keep outperforming one that does not.

Have something to build? Let’s talk.

Talk to an expert

Ask NeoMonarch

AI guide to our platforms, accelerators and services