Ratchet

You might say

Our legacy codebase already has over forty warnings—we cannot clear them all in one day, but I want a rule so the count can only go down and never climb back up.

A one-way progressive quality guardrail that locks the current metric level so it can hold or improve, tightening the bar after every gain.Named after a mechanical ratchet that turns forward but resists slipping back. When a codebase has 48 legacy warnings, demanding zero overnight blocks every PR; a ratchet caps the count at 48, blocks increases, and lowers the cap to 42 as soon as 6 are fixed so later edits cannot slide back to 43. It works only when gains are actually locked in and does not replace functional testing.
RatchetingQuality Ratchet

You can say this to an AI Agent

Ready to paste into Cursor, Claude Code, or Codex
Structured AI Agent prompt

Add a ratchet check for ESLint warnings in this repo: record the current warning count in a baseline file and compare against it in our check script—fail the run if warnings rise above the baseline, and prompt or update the baseline downward when warnings drop so the count only goes down. Demonstrate both a blocked increase and a passing lowered baseline afterward.

Want your Agent to translate plain-language UI ideas automatically?Install free VibeHub Skill →
Oil UI Pro. Push AI’s design skills to the limit. Usability, existing projects and stricter review.
Further reading