Posts tagged “testing”

  1. How do you know an LLM feature works before you ship it?

    'It looked good on ten examples' is how LLM features fail in production. Golden sets, held-out data, LLM-as-judge and production signals, compared, with real numbers from a document-extraction pipeline: zero errors on the data it was tuned on, 0.4% on data it had never seen.

    · 9 min read · AI and the craft

  2. Test-first or test-after: what actually reduces bugs?

    Writing the test first helps most when the expected behaviour is clear and the design isn't: parsers, rules, bug fixes. Property-based tests find edge cases nobody thought of. Integration tests against real dependencies catch what unit tests can't. How to combine them.

    · 6 min read · How we build

  3. How do you keep tenants apart when they share one database?

    How I let Postgres, not application code, keep tenants apart, so a forgotten tenant filter returns nothing instead of another customer's data: FORCE, non-owner roles, transaction-local settings, fail-closed policies, and tests that prove it.

    · 11 min read · System Design