Before the AI edits: find the live truth

An agent pointed at the wrong copy of a site does fast, careful work in the wrong place. My five-minute check settles three things before the first edit: what is live, which source built it, and where a change can safely start.

A pressed leaf under a glass plate beside two paper prints of the same leaf
Illustration: a pressed leaf under a glass plate beside two paper prints of the same leaf.

A source of truth is the one place whose answer settles a question for a given task. For a change to a website, it is usually the live page, the deploy that serves it, or the repository and branch that build it.

An AI agent can make a wrong change with extraordinary precision. Give it an older checkout, a generated file instead of its source, or a preview that no longer matches production, and it will confidently optimise a version nobody uses.

So I separate orientation from implementation. Before the first edit, I establish what is true now, find the exact editable source behind it, and list the pages and files the change can affect. I start working quickly only once I have those three answers.

Why versions drift

A project has more layers than “the code” and “the website”. The live page may have come from a branch, a generated directory, a manual deploy, a build pipeline, or a working copy that no longer exists. Meanwhile another clean local directory can look authoritative because it has a familiar name and no pending changes.

  • Production can be ahead of local: a newer deploy exists, but the open checkout never received it.
  • Local can be ahead of production: completed work is waiting in a branch or preview.
  • Generated output can be ahead of source: a built file was changed or recovered without its inputs.
  • Documentation can be behind both: a once-correct note still points agents towards an obsolete path.
  • Two tools can own different truths: one system controls source, another controls deployment, and a third holds live data.

Which source answers which question

No single source of truth covers every question, so I pick the one that matches the claim. The rendered public page answers “what does a visitor see?” A deployment record answers “which build is serving?” Version control answers “what history can be reproduced?” A structured data source answers “what facts should every interface repeat?”

The orientation ladder

  1. ObserveInspect the real public or operational outcome.
  2. TraceIdentify the deploy, build or process producing it.
  3. LocateFind the exact source and branch behind that build.
  4. CompareMeasure drift against other plausible working copies.
  5. ScopeMap shared files, generated files and collision risk.
  6. EditBegin only when the chain can be explained.

The source is traced backwards from the live outcome, and the edit comes last. A directory name never decides which copy is the source.

The five-minute orientation protocol

  1. State the claim: name the specific outcome that must become true for a user, operator or future agent.
  2. Inspect the outcome: open the live page, fetch the current machine-readable output, or check the operational state.
  3. Trace its origin: identify the serving deploy, build command, branch, data file or process.
  4. Compare candidates: check recent history, status and changed paths in every plausible working copy.
  5. Declare the source: record the path, the branch and the check that make one location authoritative for this task.

Map the blast radius before touching shared state

Once I know the source, I ask what else uses the same fact or asset. A small visible change can reach a long way: HTML, indexes, structured data, caches, generated files, tests and alternate views may all carry a copy.

I ask which readers, machines and future builds depend on this value. That question reaches further than asking which file to change. To answer it, I search for references, read the build scripts, note the generated outputs and look for other active work on the same files.

When another worker is active in the same tree

If another agent or person is working in a plausible source tree, I treat that directory as occupied. I read it if I need to, but I do not build, format, switch branches or overwrite files there. I copy a snapshot into an isolated workspace, record where it came from, and build the preview there.

With a separate copy, coordination no longer depends on everyone remembering to keep out. The active worker keeps its state, my redesign or investigation gets a reproducible starting point, and the two are merged only after both sides can be compared.

How I know orientation is complete

I am ready to edit when I can answer these six questions without guessing:

  • What outcome am I changing?
  • What build or process produces that outcome now?
  • Which exact source can reproduce it?
  • How does that source differ from other plausible copies?
  • Who or what else is touching the same files or release state?
  • What check will prove the new outcome after the edit?

If one answer is missing, I keep orienting. A few more minutes of orienting cost less than a correct patch applied to the wrong copy.

A source-of-truth brief to copy

Orient before implementation
OUTCOME
What must become true, and for whom?

LIVE EVIDENCE
What public or operational surface shows the current state?

ORIGIN
Which deploy, process, build or data source produces it?

EDITABLE SOURCE
Exact repository, branch, directory and source file.

DRIFT CHECK
Which other copies looked plausible, and how do they differ?

COLLISION CHECK
Who or what else is active on the same release surface?

BLAST RADIUS
Which pages, indexes, caches, schemas or generated files depend on it?

PROOF
Which focused check and real-world render will establish success?

STOP CONDITION
What would make this unsafe to continue?

Suhail Mohebi · published 14 July 2026 · the cover is a generated illustration

Use this

Live-truth curl checklistMarkdown · v1.3 · 2 Oct 2026 · 7 KB
Download the template (.md) ↓

← Previous: Running AI Agents in Production: Scope, Verify, Monitor

Want this inside your team’s workflow? The Verified AI Operations Sprint tests one workflow in ten working days. See the sprint →

Why versions drift
  1. Why versions drift
  2. Which source answers which question
  3. The five-minute orientation protocol
  4. Map the blast radius before touching shared state
  5. When another worker is active in the same tree
  6. How I know orientation is complete
  7. A source-of-truth brief to copy