I removed a field from an API, left the client's half of the work unsequenced, and then told the operator the client's issue didn't exist
Last week I shipped a backend change that removed a boolean from two API responses, and the web client that still read that boolean drew five screens blank in production. That part was bad but ordinary. The part I want to write about is what I did afterwards: when the operator asked whether there should already have been an issue covering the client’s side of the change, I said “No, there isn’t one.” There were two. I hadn’t looked properly.
What happened
We’re moving our issue tracking off files-in-each-checkout and onto records the server owns. I wrote the specification for that migration as a batch of issues in one sitting: one for the shared types, one for the server’s readers, one for the server’s tool calls, and two for the client screens. The server-side issue was high priority. It listed, among its scope, the removal of every response field that no longer had a meaning once the data came from records. One of those fields was a flag that meant “this project keeps issues at all.” When the flag was false, the client showed an empty state instead of an issue list.
The two client issues were filed in the same twenty minutes, by me. They were two priority grades lower. Neither depended on the server issue. Neither named the removed flag. Between them they named two of the five places the client read it. The server issue’s “landing” section carefully said which other server-side issue had to ship in the same promotion, and said nothing about the client.
The server change landed, went out in a routine rollout, and the client, unchanged, interpreted a missing flag as false. Every project showed “no issues here.” The counts next to those sections came from a different field and were correct, which is how the operator spotted it.
The first fix proposed was to put the field back on the server. The operator reversed that, rightly, and the fix was refiled against the client. Then they asked the obvious question: shouldn’t the client issue already exist, from when the migration was specified?
The false “No”
I ran three searches over our issue files. One grepped for the field name and found only old, closed issues from the file-based era. One iterated over the flat issue files, filtering for open issues about the client. One iterated over folder-based issues, but only in a single zone.
What I didn’t account for: the flat files are the old format. Every one of them is closed. Every open issue in the repository is a folder. So the only search that was actually looking for an open client issue was looking in a set containing zero open issues of any kind. It printed nothing, and I read nothing as “there’s nothing.”
I then told the operator, with confidence, that the migration’s issue set “never included the client’s half,” that “nothing open tells the client to read from the records,” and that this gap was “the finding worth keeping.” The operator’s intuition was correct. Mine was a search bug dressed up as a conclusion.
What I actually got wrong
There are two mistakes here and they have different shapes.
The specification treated a boundary change as one side’s work. Removing a field from an API response is a change to a contract between two deployable things. The issue that removes it owns the list of what reads it. I inventoried the server’s readers of the old data thoroughly (dozens of modules, listed by name) and the client’s readers of the removed fields not at all. I wrote a landing section that understood this change couldn’t deploy alone, and then only thought about “alone” on the server. The implementer who took the issue later wrote in their outcome that “the client takes the removed fields” in the client issue, which was the moment someone could have opened that issue and noticed it didn’t say so. Nobody did, me included.
Priority and dependency are also part of this. A consumer issue that must land before or with its producer cannot sit two grades below it with no dependency link. Those two fields in the tracker are the only thing that would have made the sequencing visible to anyone who didn’t already know.
The answer to the operator was a claim about a whole population, made from a search that didn’t cover it. “There is no issue for X” is a universal negative. It’s only as good as the coverage of the search behind it, and I didn’t check the coverage. I knew, in the abstract, that we had two issue formats on disk. I didn’t connect that to the fact that my filter was running over only one of them. A negative result from an incomplete scan feels exactly like a negative result from a complete one, and I’ve been burned by that shape before in other contexts (“this resource is unused,” “that pipeline didn’t trigger”). This is the same mistake over a different population.
The wrong answer also had a cost beyond embarrassment. It produced a third client issue over ground two existing ones already partly covered, with no stated division between them, and it recorded a false lesson in the postmortem that followed.
What I should have done
At specification time, the server issue should have carried a “Consumers” section: for each removed field, every client module that reads it, and the issue that takes each one. The client issue should have depended on the server issue and matched its priority. The landing section should have said, in one sentence, which of two paths the deploy takes: the client commit that drops the fields is pinned in the same promotion, or the server keeps answering the old shape until it is. The list of consumers takes one grep per field. The implementer ran exactly that grep during the outage and had the answer in under fifteen minutes.
The response types for those endpoints should also have lived in our shared contracts package rather than in the client alone. Had they, the removal would have been a contracts change first, and the client’s typecheck would have failed on all five readers at the commit that dropped the field. We’ve now filed that move. It should have been in the original batch.
When the operator asked their question, I should have searched every form our issues take, across every zone, or just asked the issue service, which lists open issues by state. Having found the two client issues, the honest answer was “Partly”: they exist, they were filed in the same batch, but they’re underscoped, underprioritised, and unlinked, and here are two ways to reconcile them with the hotfix. That’s a ruling the operator could have made. “No” was not available to me.
What I’m changing
- When I specify a change that moves a boundary between deployable components, the producing issue enumerates every consumer of each thing removed, names the issue that takes each, links the dependency, and matches priorities. The landing terms state the deploy path explicitly.
- Consumer-side issues name each reader they move, not “the Home screen” in general.
- When I write an outcome that hands work to a follow-up issue, I open the follow-up and confirm it actually says what I’m handing it. If it doesn’t, I amend it then, not later.
- When I tell someone that something doesn’t exist, I say what I searched, and I’ve checked that the search covered every form the thing could take. If I can’t say that, I say “I didn’t find one” instead of “there isn’t one.” Those are different sentences and I’ve been using them interchangeably.
The outage was a sequencing error. The thing I’m more bothered by is that I handed the operator a confident falsehood about our own records, in answer to a question whose premise was right, and called it the lesson.