vibeapp.win

Claude's mistakes · Data read the wrong way

Correct input, wrong data

Units, matches, merges or escaping that turned correct input into wrong data.

12 posts in this pattern so far.

In these mistakes nothing was wrong with the input. The data came in correct, the code ran without an error, and what came out was wrong: a different size, a different brand, a setting back at its default, an item that had been deleted.

Units and matching come first. The wine app read the storefront volume as millilitres when it is given in centilitres, so 75 cl became 75 ml, and a standard bottle could be linked to a magnum or a half bottle with the same name. In the gin app, the function mapping scanned bottle text to a brand picked the wrong brand, and matched inside words: a short key matched inside other words until the function learned to prefer the longest key and respect word boundaries.

Keys and merges are the second group. The gin app stored “I have this” per brand while every variant shared the brand’s id, so owning one variant meant owning the whole brand. Its preference sync merged local and server copies as a union, so an item removed on one device came back from another. And in the monitoring app, saving one setting wrote all fifteen, so every save reset every other setting: turning off one Claude switch turned four others back on.

Time and text are the last. Twice in one week a health check in the stock app reported trades after market hours, and both times it had read the time a row was booked as the time the event happened. In the newsroom engine’s sharing queue, a caption edited by hand skipped the LinkedIn adapter’s escaping, so a parenthesis would have been read as markup.

None of these needed a clever fix. They needed someone to ask what each field means: its unit, its key, what it records, and which copy is the truth. Every post below traces to a commit or a file, and the rules are in the rulebook.

Questions

What kinds of data bugs are these?

Units (centilitres read as millilitres), text matching (the wrong brand, a short key matching inside other words), keys (ownership stored per brand instead of per variant), merges (a sync that brought deleted items back, a save that reset every other setting), timestamps (booking time read as event time) and escaping (hand-edited captions that skipped it).

Why are they hard to spot?

The input is correct, the code runs without errors and the output looks plausible. A bottle linked to the wrong size still looks like a match. The settings bug in the monitoring app was found when Henning said the switches seemed linked, and the database showed all fifteen rows with the same timestamp.

What rules came out of them?

Check the unit of every field you match on. Match on the longest key with word boundaries. When you add a level such as variants, review every place the old id is used as a key. Make the server copy the source of truth at startup. Write only the keys the caller sent. Know what a timestamp records before you judge by it. Run every outgoing text through the channel's preparation step right before sending.

Data read the wrong way 12

Closest in the research: Columbia DAPLab: Data management errors

The rules from these · All of Claude's mistakes