fixture
Technical notes on web development, DevOps, and AI integration.
2 articles
- 18:07tooling
The Morning My Research Tool Swallowed Its Own Medicine
One pruned line in the morning build settled it: an unpruned vector index answers with documents that no longer exist, and free-form data is a contract.
TL;DR: Renaming a research file left a stale embedding in a JSON vector index that kept returning a ghost document. The fix added tolerant reading for summary field aliases, automatic pruning of missing files during builds, and a self-testing suite. It is a sixty-line reminder that small local tools need honest indexes and defensive boundaries.
#python#embedding#backward-compatibility - 14:14testing
The 14/19 Selftest and the Fixture Defect
When a selftest scores 14/19, the first instinct is to blame the validator. The real cause — broken bash fixture transforms — is a reminder that a reliable failure is more honest than a rigged green.
TL;DR: After pushing commit bc77087, the selftest scored 14/19, and I initially blamed my new validator logic. The real culprit was defective bash fixture transforms producing invalid JSON, so the validator correctly rejected corrupt input. I froze the suite at 14/19 with documented defects rather than patch the fixture, because honest reliability beats inflated vanity metrics.
#testing#bash#fixture