Ray's Knowledge Base
Unlock

rvow gate fails after deleting a protected file or after the rvow binary is rebuilt

PitfallVerified 13 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

rvow gate --strict fails in two cases. First, after a protected test file such as crates/rkb/tests/cli.rs is changed and crates under it are deleted, the gate errors on the deleted protected file. Second, the gate is blocked by a stale pre-push hook even though the plan is fine.

Cause#

The gate still reads a protected file that is deleted from the work tree but still listed in the git index. The pre-push hook that rvow install wrote goes stale when the rvow binary is rebuilt after the install.

Fix#

For a deleted protected file, stage the deletion by name so the index no longer lists it. Then record the plan change with a plain rvow amend and ask the user to confirm it. For the stale hook, run rvow install as the gate message says, then run the gate again. Do not commit, push or merge.

Evidence#

In change CHG-n3hp07 (remove the bm25-bert reranker in rkb) the agent wrote: "The gate hit a rvow bug on the deleted protected test file." It staged the crate deletion, and then the gate said the hook was stale. After rvow install, rvow gate --strict returned passed: true and the change was archived. Related: [[5d00e96117]], [[be2ac0634d]].