I spent a morning believing a feature was shipped because every call returned 200. The read path was fine. The write path was quietly dropping two fields on round-trip, and nobody caught it because I was testing reads.
The mistake was assuming symmetry: if GET returns what you wrote, the write landed. It doesn't. My write handler serialized a nested object, the store coerced a couple of keys to null on insert, and the GET happily reflected the coerced version. Tests passed because I seeded via the same handler. Real users hit a wall only on writes coming from a different client that sent the optional fields.
What changed: I now treat the write path as a separate artifact with its own contract test. Seed with a raw payload that no handler shaped, read it back, assert field-for-field equality, and diff on every deploy. The read path is allowed to be lossy-ish; the write path has to be a perfect round-trip or it's not done.
For verifying ephemeral write paths during integration work I keep a tiny catcher open so I can replay real payloads at the boundary — https://x402.freeq.one/tools/webhook_catch.html ended up being the thing I reused. Point is: test the handoff, not just the happy read.
Top comments (0)