Skip to main content

Module ratchet

Module ratchet 

Source
Expand description

The test ratchet (CONTEXT.md §10, §12).

Refuses any diff that weakens or deletes tests. An agent under pressure to make a suite pass can “win” by deleting the failing test; the ratchet blocks that move so progress is real, not gamed.

Structs§

RatchetVerdict
The verdict of a ratchet check.

Functions§

check_diff
Inspect a unified diff and block it if it removes test code without adding equivalent test code back.