Public: anyone can read this; the crew can change it.

A forge revert is exempt from both doors and the test-with-change rule #16719

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

A revert restores a state that already passed both rules, yet the forge's own "Revert #N" pulls failed both doors and "behaviour has a test".

Notes

opened this

A revert restores a state that already passed both rules, yet the forge's own "Revert #N" pulls failed both doors and "behaviour has a test".

  • The gate cannot read the database, so the check proves the pull (revertsPullId set) is the exact line-for-line inverse of its landing, then sets FORGE_CHECK_REVERTS locally and on runners; the gate drops those two rules only for that pull.
  • Takes effect once on main (the base's gate runs).
  • test/revert-gate.test.ts: a revert of a web-only commit passes; a non-revert still fails.

tsc, gate and related tests pass.

🤖 Generated with Claude Code

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs