# Agents build, people decide: an operations platform for a small service business

How specs, a human decision gate, database guardrails and a production dry run let agents build a real system for a two-person service business.

Published 2026-11-04 · 6 min · Tom Børvan · https://www.tomborvan.com/writing/operations-platform-built-with-agents

Klipperhotell stores and services robot lawn mowers over the winter for customers across Eastern Norway. It is the service side of [Mortens Hage](https://mortenshage.no), a robot-mower shop I built the online store for. Two people run it: the owner, who also drives the van, talks to customers on site and repairs mowers over the winter, and an office admin who handles everything else. A season is about 150 mowers.

This autumn I built them an operations platform with Claude Code and multi-agent workflows. It covers the whole season: website enquiries, route planning, pickup, warehouse intake with labels, the workshop, customer approval of parts, invoicing, and spring delivery. The office uses a web app; the driver has a native iPhone app. It runs in production as a dry run, with real customers and real bookings.

That agents can write a lot of code is no longer news. What I want to describe is the structure that made it safe to let them, for a business whose customers would notice every mistake.

## The decisions stayed with people

Before any code, a discovery brief and a set of specs. Agents wrote seven area specs, about 13,000 lines in total, and two critic agents read them against each other for consistency and gaps. Every SQL statement in the specs was run against a seeded copy of the database before anyone reviewed them.

Then the build stopped. The specs ended in 113 business questions for me, each with a proposed answer. I accepted 103 and wrote my own answer to 10. Those 10 are the ones an agent could never have guessed:

- Customers in Trysil deliver their mowers themselves; no pickup is offered outside the routes.
- The van takes about 20 mowers, depending on size, so capacity is a warning, not a limit.
- Winter maintenance charging depends on the brand, so the interval is a setting per brand, not one constant.
- Downloaded route days must stay on the driver's phone for the whole season, not be purged after two days.

This is the part of the job I would not delegate. An agent can propose a sensible default for each question. It cannot know that one brand's batteries need a different charging rhythm, or that the office wants every customer to have a full weekend between the spring letter and delivery. Those answers came from the people who do the work.

> The human gate is not code review. It is the business decisions, made before the code exists.

## Guardrails in the schema, not the prompt

Several agents proposed competing data models. Three judge agents attacked the chosen proposal, and every defect they found was fixed and tested before the foundation was written. One author wrote that foundation alone: schema, authentication, status transitions and seed data. Only then did the parallel build start, with each agent owning its own files.

The most useful decision was to make statuses data. A mower moves through a pipeline: agreed, pickup planned, picked up, received, in service, waiting for the customer's approval, stored, delivery planned, delivered. The legal moves are rows in a table, and database triggers refuse anything else. The app's status buttons come from a 38-row rule table that is kept equal to the database's own. If an agent writes code that tries an illegal move, it fails in a test, not in front of a customer.

That matters when several agents build in parallel. They do not need to agree on every rule by reading each other's code. The database is the one place where the rules live, and it says no.

## Production, but nothing reaches a customer

Staging with invented data is good for testing. It does not tell you whether the office can actually run a season in the app. So the platform went to production early, behind a dry-run switch. Bookings, routes and photos are real, and the app is connected to the live accounting system. Every SMS and e-mail to a customer is cancelled in the outbox and logged as «Prøvedrift – ikke sendt» (dry run, not sent). Sending invoices has its own switch, which stays with the office admin.

The agent's own access is bounded the same way. It works freely against staging. A production release is one command that only I can start: it takes a backup, applies migrations and deploys, in that order. Then three agents check the release in parallel (HTTP status codes, a browser smoke test and ten minutes of log watching), and if anything fails it proposes an exact rollback instead of running one. A second model has reviewed pull requests along the way.

- Dry run in production, with outbound messages cancelled in the outbox, not just hidden in the UI.
- A separate switch for money: invoices are sent only when the office turns it on.
- Backup before every migration, and migrations that only ever add.
- Release checks done by agents, rollback decided by a person.

## Built for two people, not a demo

The driver works on the road, often where coverage is poor, so the iPhone app is native SwiftUI and keeps the season's route days on the phone. It scans the QR labels on each mower, takes photos and records each stop offline, and syncs when it can. Push notifications go straight from the Cloudflare Worker to Apple. It is distributed through TestFlight, not the App Store, because it has a handful of users.

The office admin is not a developer and should never need to be one. Training material is part of the delivery: a short getting-started guide, and a walkthrough video of invoicing, recorded with invented test data and narrated in Norwegian with my own cloned voice. The script lives in the repository next to the code it describes.

## What I take from it

I want to be honest about the size of this. It is one small business, one season, two users and about 150 mowers. It has not finished its first full season, and the dry run has not ended. That is exactly why it is useful: the users are close enough that every wrong assumption comes back within a day.

- Specs are cheap to change; code is not. Let agents argue about the design before they build it.
- Put invariants where agents cannot route around them: in the database, not in instructions.
- A dry run in production teaches more than any staging environment, as long as nothing reaches a customer.
- Keep the decisions with the people who do the work, and make it cheap for them to answer.

The same structure scales to client work: a bounded workflow, a decision gate owned by the business, guardrails in the system of record, and a dry run before anything is sent. The size of the business changes. The order of the steps does not.

[Tom Børvan](https://www.tomborvan.com/#about) · AI Lead & Project Manager, Alpha Solutions Norge. I lead digital commerce delivery and build AI agents for Scandinavian retail.

Have a workflow that still runs on phone calls and memory? Tell me how the work flows today.

[Discuss a workflow](mailto:tborvan@gmail.com?subject=Digital%20commerce%20or%20AI%20project)

---

More writing: https://www.tomborvan.com/writing · Profile: https://www.tomborvan.com/llms.txt · Developer docs: https://www.tomborvan.com/developers