Keep-Green Policy
A team discipline of keeping the main branch's test suite always passing, treating any failure as an immediate priority.
What is Keep-Green Policy?
What is Keep-Green Policy?
A keep-green policy is the commitment that the main branch's test suite stays passing at all times—if it goes red, fixing or reverting takes priority over new work. This discipline keeps the codebase continuously releasable and prevents the slow decay where broken tests pile up and get ignored. The policy only holds if the suite is trustworthy; flaky tests make green impossible to maintain and erode the whole team's commitment. Deterministic, self-healing tests are what make a keep-green policy realistic to sustain.