← All notes

Note

What does this touch?

A look back at what I learned in the early days of building Landholder Connect with AI agents, after the rebuild and through the improvement drive that followed it.

Two questions decide whether a build survives its own success. Before a product feature ships, the question that matters is often what does this make possible? Once people depend on it, the question becomes what does this touch?

With it come two companion questions: is any of what it touches load-bearing? and when it touches it, what behaviour will that produce? The latter does the real work. The risk sits in changing what the touched thing does.

These are my notes from building Landholder Connect, mostly from the very early days of development. Read them as hypotheses, not laws.

1. The pull request is the unit of cost

In an agent workflow, one session usually produces one pull request. So the cost of a piece of work is the session, plus the review, plus any checking done twice. Lines of code stop meaning anything: a 600-line change and a 60-line change cost about the same session.

Volume alone is easy to game by splitting every job in three. It only means something next to rework: changes reverted, reopened or immediately followed up.

The third cost is easy to miss. Sessions ran the full test suite before opening a pull request, then CI ran it again. The rule now: a session runs only what CI can’t show, such as the new test failing on the old code, a measurement in a real browser, or a deliberate sabotage proving a test can fail. Everything else is left to CI, and every test a session runs has a stated reason.

2. Your concurrency limit is your review capacity

Three or four sessions at once is about my practical limit. Some platforms offer ten.

A platform’s limit is set by what it can run. Yours is set by what one person can review.

Ten agents means ten streams into one reviewer. Sessions run in parallel; review doesn’t.

A second limit sits beside it: what the sessions touch. Two sessions editing the same file create a conflict for whichever merges second. Parallel jobs now get a fence: a list of files each one owns, and an instruction to stop if a fix needs another job’s file.

Fences are hard to draw when a few large files sit under most of the work. Early in this project, a couple of central files were changed by almost every job, so jobs that looked independent often weren’t. The fix was to split them up gradually: a job working in an area moved that area’s code into its own file, until the fences could be drawn.

One platform catch: a pull request can be correct, green and still behind the main branch. Every merge decision now states whether the branch needs updating first, and the repository requires it.

3. Four thresholds you cross without deciding

None of this matters for a to-do list. All of it matters once a project is substantial, and you can’t easily tell in advance which kind you have. Crossing any one of these changes the category:

Threshold What you inherit
It holds data someone would be upset to lose Backups, restores, migrations and faithfulness, silently
More than one organisation uses it The biggest cliff; its failures are invisible from inside your own account
Something leaves the system and others rely on it An export or report becomes someone else’s evidence
It takes money All of the above, plus other people’s expectations about it

You cross these in the normal course of business, without making a decision.

4. Adjacency is coupling

You start with an app that does three things. Adjacent features appear, or get suggested at an alarming rate. Each is cheap, so you say yes to ten things that seem to just improve the original three.

The features that feel safest to add are the most entangling, because sharing data, screens and vocabulary is what coupling means.

A distant feature, like billing, touches little. The agent quoting the cost is answering the implementation question honestly. What goes unquoted is the interaction cost, which grows with everything already there. The eleventh feature costs more than the third did.

Under each yes sit dozens of small decisions the agent makes on its own, each reasonable. They are locally obvious and globally arbitrary: fine one at a time, inconsistent as a set. Nobody sees the set until two of those answers meet in a customer’s data.

5. Small fixes carry big decisions

Five changes from a single day, none of them a feature, each carrying a decision bigger than its diff:

  • Ignore case in a name comparison. One line. It widened the match list in five places, one of which pre-selects an option in a review queue.
  • Remove twenty words from a list. Every address arriving in capitals now gets capitalised differently.
  • Apply an existing rule in a second place. An import that quietly merged two rows now keeps two, and reports a different count to the customer.
  • Add one function call. A review step that all-caps imports had never seen now appears.
  • Handle a value by its column type. A restore that used to report success now fails, deliberately, on backups it used to skip past.

Even correct fixes touch something. One ruling said an empty box, a box of spaces and “never set” should all be stored the same way. The rule was right and its tests passed. A later check found that an export now wrote an empty value that the import read back as a literal word, creating a placeholder owner across hundreds of records.

The ruling was correct, the fix was correct, and together they produced a fault.

The export and import were each right alone. The fault lived only in the round trip, which nobody had listed as something the rule touched.

The same week, a session caught one in time. Its brief said to reject a follow-up date sent without its “follow-up required” box ticked. Before doing it, the session asked what the rejection would touch, and found the app’s own form sends exactly that when a user ticks, picks a date, then unticks. It stored the date and logged the form as a separate fault.

6. The probe, and why it must be able to say no

Asking what does this touch? properly used to be too laborious: tracing every call site, one at a time, late in the day. It’s now cheap. Reading nineteen sort functions and ruling out six comparisons is exactly what an agent does well, in one pass.

A perfectly good outcome is that you don’t build. Most estimation can’t produce a no: you ask how long, you get a number, and a number is an invitation.

Two design details do all the work:

  • It must have no stake. An agent asked what a feature touches right before building it has already been aimed. Run the probe as its own pass, told it changes nothing and that there may be no pull request at all.
  • It must be allowed to end the job. Write its questions so an answer can close the work. A probe that can only return “proceed carefully” is a formality.

Its blind spot is the opposite question: it finds what a change touches, not what it will make tempting. Ask what does this make possible that isn’t possible now? alongside it.

This appears in almost no platform guide, for a simple reason: no platform is rewarded for a feature whose success case is inaction. They optimise for time to first working thing, the phase where the probe is least needed.

7. Draw the grid once

For a month early on, silent faults arrived one at a time, by accident. A date showed a day early in an Australian browser. A 1965 date became 2065. An owner written “SMITH, John” was split into two people. Each fix was correct, and none said anything about the next fault.

Each was one cell of a grid nobody had drawn: every stored field, entered through every way in, read back through every way out. So the grid was drawn once, as a read-only job that changed no code. It fed awkward values down each path (a year of 0099, a name in Vietnamese, a line break, an empty box versus a box of spaces) and read the database directly to see what was kept.

First pass Count
Cells tested 7,818
Values changed on the way through 552
Kinds of fault 21
Questions only I could answer 17

Faults went out as one job per kind, not hundreds of issues. The questions came to me on one page, and I ruled on them in one sitting: as I put it at the time, better “in one big hit than a death by a thousand cuts”.

The grid could say no too. Several answers were “leave it”, and some placeholders it flagged stayed because I ruled they should. A second, smaller pass (11,122 cells) over what the first hadn’t reached found 6 more kinds, including the round-trip fault in section 5.

8. Close the family with guards

A save pressed twice on a weak connection could record the same thing twice. It had been fixed at least twice, one form at a time, and kept returning on the next form. Each fix closed an instance and left the family open.

It was closed by kind: every create action made safe to repeat, and every repeat told what the first press did. Then a guard was added that fails the build if a new create action can’t be safely repeated. Dates went the same way: one reader for every date, and a guard against hand-built ones.

A fix answers “is this broken?”. A guard answers “can this come back?”.

A guard is a background decision made permanent and checkable, so the next session can’t quietly re-decide it. The project has 66 of them, each one a family somebody got tired of meeting twice.

9. What reading code can’t find

The probe reads code, and some faults are only visible to a person trying to finish a task.

I imported real data into a real project and tried to do a day’s work. Eight faults came out of one afternoon, and almost none could have been found by reading the code, because in each case the code agreed with itself. Recording the how-to videos did the same: walking each task end to end found an unlabelled icon, a form that didn’t say who a follow-up would go to, and a typed date that became 1902.

10. Memory and judgement are the real bottlenecks

The early expensive mistakes weren’t coding failures. A bulk acceptance of generated tasks. Guards asserting more than they checked. An exit code that meant skipped but read as passed. 115 test files no workflow ran. Documents that had drifted from the code.

Each is a memory failure. A team has memory by accident, through people who were there. As a solo operator running agents, I have to build it on purpose, because each session starts cold. The defences are ones that run themselves: a decisions log makes background choices visible, a capabilities document makes the surface visible, and guards make decisions permanent.

Guards compensate for speed outpacing any one view of the system.

Later, the scarcer thing was my judgement about what should be the case. When findings arrive faster than they can be judged, any fix looks better than none, and they get waved through. Two habits help:

  1. Every finding arrives with a verdict (do it, leave it, or can’t tell), plus what was wrong, what happens now and what the fix would change.
  2. An observation is never recorded as a ruling. A passing remark written down as a decision becomes precedent I never set.

Checklist

  • Before a change, ask what it touches, including other sessions’ files.
  • Ask whether any of it is load-bearing, and what behaviour the change will produce there.
  • Run the probe as its own pass, with no stake, and let it end the job.
  • Draw the whole grid once instead of meeting its cells one at a time.
  • Expect a correct fix to touch something too, and look for it in the round trip.
  • Close each kind of fault with a guard, not just the instance.
  • Fence parallel sessions by file, and cap them at what you can review.
  • Spend session checking only where CI can’t, and track rework next to volume.
  • Keep your own judgement for questions only you can answer, and never record an observation as a ruling.