November 12, 2026 · In Mercadito
The door that handed out the keys
To read passes offline, the doorman's phone received every guest's personal key. Nobody saw it in the code or in the tests: it surfaced while describing the system, sentence by sentence, for someone who doesn't know it.
In Eventos almost nobody has an account. A guest answers with a personal link carrying a 16-character key; whoever watches the door uses a different link, and their phone stores the list so it can keep reading passes even if the venue has no signal. To recognise a QR code without asking the server, that phone needs something to compare against. We were sending it each guest's full key.
With that key you can open that person's invitation, see what they wrote and answer on their behalf. Our own privacy notice said that whoever watches the door sees names, seats and table, never phone numbers or messages. The screen complied; what travelled to the phone did not.
No test found it, and no code review. A writing exercise did: describing everything the module does, with every rule and every number, for a reader who sees neither the code nor the screen. On reaching "what does the door phone receive" the answer had to be written down, and it couldn't be written without embarrassment.
The fix is small. The door now receives only the first 8 characters of each key: enough to tell whose pass it is, not enough to open their invitation. The same pass over the text turned up another one: "find your name" led to the invitation of whoever was typed in, so anyone with the general link could see someone else's pass. Now a name only lets you give the first answer, with whole words, and everything else asks for the personal link.
The description ended up over sixteen thousand words long and found eight more bugs. It's slow and doesn't feel like programming, but it forces answers to questions the code lets slide: who sees what, what travels where, what happens afterwards.