faithgate: pytest for Prompts

ahumanbeingmars · reddit · 2026-07-05

Tired of the 'edit prompt, merge without testing' cycle, a developer created faithgate—essentially pytest for prompts: maintain a set of question/context/answer test cases, score faithfulness for a given prompt+model version, diff against baseline line by line, exit non-zero on regression, integrate with CI to block bad prompt changes at PR. Default uses Claude's built-in key as judge, metrics based on RAGAS; offline no-key mode: author publishes calibrated data (20 contradictions only 9 caught) and writes unit tests asserting that weakness. Failure means no pass: zero matches, ungraded, all wrong.

Related event: Faithgate Open-Sourced for RAG Fidelity Regression(2 posts)→

Original post →

More from coding & agent

coding & agent channel →