Agentic-RAG-Platform

Failure stories — what went wrong, how it was caught, what it taught

The eval that degraded silently

A regression run without services printed “60% unexpected failures” — environment gaps indistinguishable from product regressions. Fix: connectivity probes; tests skip with a reason when the stack is absent. Lesson: a test that can mislead is worse than a test that fails.

The docs that outran the code

20 broken markdown links; career-kit headline numbers with no artifact behind any of them (the exact retired values the claims checker now blocks) — found by an audit script, not by reading. Fix: scripts/check_doc_links.py + the career-claims checker, both CI-wired. Lesson: docs need tests too.

The query that never executed

Story 1 in star-stories.md — AmbiguousParameterError, hidden behind a NULL-bind pattern that looked idiomatic.

The engine that outlived its loop

The event-loop connection poisoning (tests/conftest.py) — global engine, per-test loops, intermittent cascades. Fix: dispose per test.

The trade-off that became a habit

Cutting the rerank funnel 100→50 to meet latency, and writing the trade-off down in the journal instead of quietly shipping it.