Outlook was clicking our unsubscribe links for people
23 pull requests on Steward across the first two days of September, and the one we want to talk about is twelve lines long.
Survey emails need an opt-out link. Mine was a signed URL: click it, the page loads, your opt-out gets recorded, you see a confirmation. Straightforward. We tested it by clicking it and it worked.
Then review asked what else clicks links in email.
Quite a lot, as it turns out. Outlook’s link protection fetches URLs to check them. Antivirus gateways fetch them. Mail security products fetch them. Browsers prefetch them. All of that happens before a human has opened the message, and none of it is a person expressing an intention.
So a contact at a company with normal corporate email security would have been marked as opted out by their own IT department’s scanner. They’d never see a survey again and would never know why. And we’d have had no way to tell that apart from a real opt-out, because at the HTTP level it is identical.
The fix is the old rule, which we knew and hadn’t applied: a GET must not change anything. The GET only verifies the token now and renders a confirmation page with a button, and the write happens on the POST. There’s proper one-click unsubscribe support in the headers too, so mail clients offering their own unsubscribe button do the right thing through the right mechanism.
So “it works when we click it” tested the code. The failure wasn’t in the code. It was in the delivery channel, which has participants we never think about because they don’t show up in any log we read.
The cycle that took two hops
A similar one, same month. Accounts can have parents so you can model a customer hierarchy, and there’s a guard against cycles.
Merge one account into another and the survivor inherits the loser’s parent. If you had A to B to C and merged C into A, you could end up with A’s parent being B and B’s parent being A. A two-node loop.
The guard caught the one-hop case — you can’t be your own parent. It didn’t re-check after inheriting a parent from somewhere else. The validator was already written and already correct; the merge path just never called it on the value it was about to write. Fixed by running the existing check at the point of the adopted write.
Second time in two months we’ve had a bug where the right logic existed and the wrong code path skipped it.
A scanner for the thing we’ll forget
The biggest feature this month was archive and restore for accounts, contacts, deals and tasks. Soft delete, which sounds trivial and isn’t: the moment rows can be archived, every query in the application has to remember to exclude them, forever, including the ones we write in six months when this isn’t fresh.
So there’s one shared SQL guard and a static scanner that fails the build if a new query against those tables doesn’t use it. We trust the scanner. We don’t trust ourselves to remember.
That’s our default for this kind of problem now. If correctness depends on every future change following a rule, the rule needs something mechanical enforcing it, or it’s a convention — which means it’s true until it’s inconvenient.
The rest of those two days
Self-serve workspace export and deletion with a 14-day grace period and a cron sweep, so leaving doesn’t require emailing us. Users can manage their own sessions, change their email, delete their account. Logged calls, meetings and emails on the account timeline, which recompute health immediately now instead of waiting for the overnight job. Tags. Account hierarchies. Task reminders with simple recurrence. Platform metrics on the support console. And an OpenAPI spec generated from the contract catalog rather than maintained by hand — 26 groups, 180 operations — which is the second dividend from August’s contract work and cost nothing to get.
Where that leaves us
153 commits: 22 on the first, 130 on the second, and exactly one on the 16th. Then nothing. Four tenant migrations in two days, which is more permanent schema surface than we’d normally add in a month.
One pull request this month claimed a full green suite and hadn’t run one — it was a partial run, and the full suite would have caught a missing carve-out in the contract registry. Writing that down matters, because the whole value of a gate is that its output is trustworthy, and a green we have to interrogate isn’t a green.
Two branches also both claimed the same migration number and one had to be renumbered after a rebase. Direct consequence of working on several things at once and merging them the same afternoon.
— Bruno