Build log / Touro

An agent that writes only what a person approved

An assistant that can change operational data saves hours, until it marks a show confirmed that nobody confirmed, overwrites a time someone already agreed, or states a guess as a fact - and people travel on that data. Since September, Claude or ChatGPT can read and change a tour in Touro, the tour operations product I am building for live music. This is how I made every agent write one a person saw first, and kept what the system knows apart from what the model inferred.

Active build
Project
Touro
Period
September 2026 to present
Role
Founder, product owner, system designer

Controls and human oversight

  • Propose, then apply

    An agent cannot write a plan it did not first store as a proposal. The apply call has to carry the plan id, a hash of the exact write set and an explicit approval flag, and it writes that set exactly, or nothing.

  • Stale plans are refused

    Each proposal keeps a fingerprint of the tour it was computed against. If the tour changed after the person saw the plan, the apply is refused, not merged.

  • Written once, even under a race

    The plan is claimed inside the write transaction by a conditional update, so a retry or two concurrent applies produce one tour, not two. Only the person whose agent proposed a plan can apply it.

  • Never more certain than the facts

    Shows an agent creates are always in planning. No tool says a venue is booked, held or available, because the product has never contacted one. Distances are estimates from city coordinates, and money is never converted between currencies.

  • Fill the gaps, ask the rest

    From a pasted message, the server writes a value only where the field is empty, the value appears in the text, no other source conflicts and nothing flags it as low confidence. A value that would replace a saved one comes back as a question that quotes what is saved. A message can never change a show's date or status.

  • No external actions yet

    A tool that would act outside the product - an email, a booking, a payment - cannot be defined. The registry refuses one until an approval exists that the agent cannot give itself.

  • Least visibility

    An id from another organisation gets the same answer as an id that does not exist, so an agent cannot even confirm it is real. Names and contact details of crew and contacts, guest lists, notes and money line items never reach the agent.

Business reality

A tour runs on messages, not records. Times, contacts and changes arrive by WhatsApp, email and calls, and someone retypes them into the place the crew reads on the day. An assistant that does the retyping saves real hours. One that writes the wrong thing is worse than none, because a wrong set time or a show shown as confirmed costs money on the day, and nobody finds out until then.

Users and workflow

A tour manager connects their assistant once, through OAuth or a personal token pinned to one organisation. Two workflows run through it. Planning - the assistant proposes a run of dates, shows the itinerary and the exceptions in the conversation, and writes nothing until the person says yes. Feeding - the person pastes a WhatsApp or notes from a call, the server extracts what it can, fills only what is empty, and sends everything else back as a question.

The constraint

The server cannot see the conversation. When an agent sends "the user approved", nothing in the request proves it. So the protection cannot be the model behaving well or a better prompt. It has to hold at the point of the write, on the assumption that the agent is wrong, retrying, or racing itself.

Why AI was, or was not, the answer

The model is good at reading a messy message and at proposing a route. It is not trusted to decide what gets written. Every agent write goes through the same domain functions, schedule rules and plan quota as a person in the web app, and the server, not the model, decides what counts as a gap and what needs a person. The model does not ground its own claims either - a venue counts as known only if the organisation has played it, and anything else comes back labelled as the agent's suggestion.

My exact role

Founder, product owner and system designer. The approval model, what counts as a gap, which writes exist at all, what an agent may never see, the acceptance criteria and the invariants are mine. Implementation is AI-assisted, with Claude Code as the implementation agent - I direct it, review and challenge the diffs, run and interpret the tests, and decide what ships. I am not claiming to have typed every line.

Architecture and integrations

One tool registry and one execution path behind several doors - MCP for hosted assistants and SDK agents, a session-authenticated tool API for code running as the signed-in person, and the existing REST API for the web app. Every call passes the same pipeline in the same order: product capability, token scope, schema, the person's current role in the organisation that owns the object, the handler, an output contract, then the audit log. Each tool declares once whether it reads, writes or acts outside the product, and its scope, its MCP annotations and the roles it allows are derived from that one declaration. Of 22 tools, four write. What an agent reads is an allowlist of named columns, never a whole row.

Evaluation

Each protection is written down as an invariant that lists the mutations that should break it - drop the claim condition, skip the hash check, stop forcing planning status - with the test that went red and the commit where that was shown. Eight mutations for the planning path, sixteen for the message path. The database tests run against PostgreSQL in CI. The most useful finding was about the tests themselves: the first race test passed with the claim protection deleted, because the two applies never actually overlapped. It now holds a row lock until both applies are queued on the claim, and only then lets go. Extraction is measured separately. The eval with a recorded result covers advance documents - 8 fictional cases, 36 hand-labelled values, three runs: precision between 95 and 98 percent, recall between 93 and 100 percent, and every value it returned cited back to the source text.

Operational readiness

Off by default behind a flag. Every call is logged with outcome, error code, latency, tool and plan, and never with argument values or results, because those carry people, venues and money. An operator view reports failures per tool, the arguments agents misread most, and how many proposals were approved or abandoned. Rate limits per IP, per token and per person. Tokens are stored hashed, expire after 90 days and can be revoked, and every call re-checks the person's current role, so access never outlives the role that justified it.

Deployment

The project's status is active build. This case study is about the design and the controls, and makes no deployment claim.

Adoption

None claimed.

Business impact

None measured, and none claimed. What this shows is the control design, not an outcome.

Product boundaries

An agent connected to the product can read, propose and, with approval, change planning data. It cannot contact a venue, send an email, book travel or move money.

Next iteration

An approval made inside the product and recorded as such, so the yes no longer rests on the agent's word. Then the first external action behind it - a venue email the agent drafts and only the person can release.

Current limitations

Stated as plainly as the rest. A case study without honest limits is marketing.

  • The server cannot prove the person said yes. Today the approval is attested by the agent and recorded as exactly that. An approval made inside the product, which the agent cannot give, is designed and not built.
  • No external actions exist, so venue outreach, booking and contracts stay out of scope until that approval exists.
  • Rate limiting assumes a single application instance. A shared store is needed before scaling out.
  • The extraction numbers come from a small, fictional corpus, and the extractor is not deterministic. They are a range, not a production measure. The larger golden set for messages has no recorded run yet.
  • No external users and no measured outcome are claimed.

Evidence

  • Private repository

    The repository is private, so the code is described here rather than linked.

  • Invariants with their mutations

    Each protection above is recorded in the repository with the mutations that break it, the test that went red and the commit, next to the decision log.

← All builds