Note
What a spreadsheet preserves
A day that began with a blank cell in an export and ended with a change to what an engagement is, and the uncomfortable discovery that the app had not always been doing the one thing people keep spreadsheets for.
The quoted passages are from my notes to the AI I build with. I have done it this way to make it personal, because sometimes it gets personal!
The blank cell
It arrived as a small defect: a statutory export with an empty Community / Stakeholder Group cell. Somebody had deleted a stakeholder, and the engagement that recorded a conversation with them no longer knew who it had been with.
That is a bug about deletion, and it was handled as one. Refuse to delete a stakeholder who has a history. Offer the two things the person was probably trying to do instead. It was good work: it shipped, and it stands.
Then the same blank turned up again, from a completely different direction: a route that assembles a property’s activity list from two sources and only attaches a name to one of them. No deletion involved. Then a third time, the same route measured from the other end.
Three arrivals of one shape from three unrelated directions. The third was closed as a duplicate of the second, and the fixing carried on.
That was the moment to stop, and it was missed. The signal was not severity; each instance was small and none of them was urgent. The signal was repetition.
What had to happen to arrive here?
The question that broke it open is cheap and available on every small bug:
not simply screenshotting something and sending it with “fix that”. It should at a minimum carry with it “ok, what has to happen to arrive at this error?”
Asked of the blank cell, the answer to that question changes everything, not because the answer is complicated, but because of how ordinary it turns out to be.
A blank party column reachable only by deleting a stakeholder is rare. It looks like a small bug and deserves a small fix. The same blank reachable by editing a stakeholder’s name is constant. It happens every time anybody corrects a typo.
The tell. If the path to a defect turns out to be something people do every day, stop and ask what class of thing it belongs to before fixing it. The frequency answer is what separates a rendering bug from a symptom.
Two kinds of record, and then three
Underneath all three instances was one distinction nobody had drawn:
the difference between what is recorded ON THE ENGAGEMENT vs what is always just a reference to something else in the app … those tables move under the engagement. Given that engagements need to be a historic record of the engagements as they happened, and not, really, reconstructed by the database each time someone looks…
A stakeholder is a living record. It is current state, it is meant to change, and a reader wants what is true now. An engagement is a historic record. It says something happened on a date, and a reader wants what was true then.
An invoice does not re-derive the customer’s address each time you open it. An engagement was doing exactly that with the name of the person it was about.
The third category arrived a few hours later and it is what makes the rule usable rather than a blunt instrument:
| Kind | Example | Treatment |
|---|---|---|
| Living | stakeholder, property | current state, meant to change |
| Historic | engagement | holds the facts as at the time |
| Work in flight | obligation, action | correctly resolves live: the point is what is owed now |
Obligations do not carry the defect, and the reason is better than “they are simpler”. An obligation already separates its two halves: the row tracks the fluid part, and the append-only observation log carries the permanent part. One row is not trying to be both. That separation is exactly what engagements never had.
Drift is the feature
The fix is small: the engagement holds the party’s name, what they were at the time, their contact details as they stood, the property as described, and who recorded it. Five columns. A few hundred bytes a row. The pointer stays, so navigation still works; the snapshot sits beside it and becomes what the record says.
The part that needed saying out loud is what happens next:
new engagements should not move with changes to the associated tables either, otherwise we solve one problem and leave a new one open. Basically engagements should be allowed to drift, because they’re recording a different kind of record.
The hazard this creates. An engagement reading Bob Smith, owner beside a stakeholder reading Robert Smith, tenant looks like a synchronisation failure and is the record working. The plausible wrong fix is a job that keeps them in step, and it would silently destroy the thing the change exists to build. The same shape as an old code comment, “cascade will handle list items”, that caused a month of orphaning defects.
So the change has to ship with its own defence, in two parts: a comment at the columns saying reconciliation is a defect rather than a repair, and a test that fails if a rename propagates. The comment is what a future session overrules. The test is what stops them.
The thing people keep spreadsheets for
The uncomfortable part of the day was not the fix. It was this:
lurking in today’s work was a nasty surprise: LHC was NOT doing the very thing that people keep spreadsheets for.
A spreadsheet row is self-contained by accident of being primitive. Somebody types Bob Smith into a cell and it stays there forever. No amount of editing another sheet, renaming a tab or deleting a contact list changes what that row says.
The spreadsheet has no referential integrity, and that absence is exactly what made it a faithful historic record.
Which means that on this one axis, a carefully normalised relational design was a regression against the thing it competes with. It would have surfaced the first time a customer asked “why does this say someone else now?”, in front of a landholder, or a regulator.
The test this gives, and it is cheap. Wherever the product does something a spreadsheet is used for, ask what the spreadsheet preserves by accident, and check that the product preserves it on purpose. Normalisation removes accidental guarantees, and nobody notices, because the guarantee was never written down anywhere to be lost.
Emergent, and therefore unanticipatable, but not undetectable
emergent behaviour is by definition resistant to anticipation by looking at the machine’s parts. What looked like a perfectly good way of running the engagements table, a system that worked exactly as designed, was producing a perverse result, catchable only after noticing some strange issues around a seemingly unrelated thing: stakeholder deletion.
Nobody made a bad decision. Every normalisation along the way was a reasonable trade, and each one silently removed a guarantee that had never been stated. That is what emergence means in practice: a correct machine producing a wrong result, with no wrong part to find.
But it was caught, and it is worth being precise about what caught it. Three separate write-ups. Because each instance was filed as its own issue with its own measurement, the repetition was visible. Had the second and third been folded in as “same thing, already handled”, there would have been one issue, one fix, and no pattern to see.
The failure was not detection. The app had been signalling this for weeks, in blank cells. The failure was altitude: each signal was resolved individually.
Weeds and altitude
Which is a division of labour, not a lapse:
part of your job is to do weeding very well. You SHOULD be stuck in the weeds. But if I just let you weed away without supervision, pretty soon I’ll be looking at a pristine, weedless patch that’s in the wrong backyard entirely. So I have to maintain a discipline of “hold on a minute, why am I even being asked that question? What does this mean? What’s really happening when a user arrives at that page? Should the app even be doing this?”
The detail is where this project’s real damage has lived: a DBF writer wrapping modulo 256, the string "false" being truthy, a test flag silently dropping a third of its cases. None of those were visible from altitude. So “stay out of the weeds” is not advice that applies to everybody.
Detail is where defects hide. Abstraction is where priorities come from. You need the first to fix anything and the second to know whether it is worth fixing. Getting stuck is doing the first without ever doing the second, and the devil is in the detail is advice that only ever pushes one way.
A cost that is easy to miss. The app is a year old and has at times taken hundreds of merged pull requests a month. Not recognising your own feature is the expected state, not a lapse. Two questions follow a screenshot: “should it have that?”, the product question, answerable cold, and “what would I expect it to do?”, which cannot be answered until somebody explains what the thing currently is. That explanation is owed before the question, not after.
Why this stays in relational land
this highlights why this app belongs in relational land not graph land. The problems engagements had would be so much worse if every engagement was just floating around connected to various things. At least with relational, we just have to add columns, essentially.
In a graph model the defect is not incidental, it is mandatory. An edge is the primitive, so who was this engagement with is always a traversal, always resolved live: the exact failure just fixed, with no way to hold the fact on the record. Hold it anyway and you have denormalised onto the node, which is columns with extra steps.
A graph store earns its keep when relationships are numerous, variable in kind, and traversed to unknown depth. Here they are few, fixed, and one hop. Nobody has ever asked this product to find every stakeholder within three hops.
And the deepest version of the argument is the same one as the spreadsheet test, arriving from the architecture side: the thing being replaced is a table, and most of the data really is static. Moving to a database should keep what a table is good at rather than trading it away for sophistication.
What it is worth, commercially
The last thread of the day was the one with money attached:
one thing that stands in the way of sales is mistrust of new things … they understandably worry that a machine for which they can’t see the moving parts might not be doing things correctly. At least they can SEE their own mistakes in a spreadsheet.
The lay question is “why would you split it into different tables?”, and the honest technical answer, “it’s complicated”, loses to “I think I’ll just muddle along with my spreadsheet”.
There is a better answer, and it is a problem the customer has already lived:
So that when someone changes their phone number, you change it in one place instead of forty.
And there is a second half, which was not entirely true until today:
And the things that must never change (who you met, when, and what was said) are written into the record itself, so they do not move when anything else does.
The first half without the second is precisely the cleverness a sceptical buyer is right to distrust. Today’s work closed a defect and made the sales answer honest. It is truly a deeply uncomfortable feeling when you discover defects like this, which in the worst case might threaten customers’ data (no customer data was in fact harmed though). It is a story for another day the deep architectural and database inquiries that came out of this, interrogating the entire app for similar issues. None more were found, which was a relief, and it was pleasing to have learned a powerful lesson.
As for at least I can see my own mistakes: that is not answerable by being more correct. A spreadsheet’s trust mechanism is that you can see all of it at once, so the product has to be legible on the same terms. Which quietly reframes a fortnight of work: the merge dialog’s what will happen panel, the delete confirmation naming what goes, the import preview, the refusal that says which values would not fit. Those are not polish. They are the windows into the machine, and they are the actual answer to somebody who does not trust a box they cannot see inside.