Ray's Knowledge Base
Unlock

While an rvow plan waits for accept, pipe plan text instead of editing a temp file

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

Symptom#

Before accept, sed -i ... /tmp/.../scratchpad/spec.md is denied with rvow: the plan CHG-xxxx is not accepted yet; finish it, run rvow check, then ask the user to run /rvow-accept CHG-xxxx ... before you edit code, even though the file is a scratch copy outside the repo.

Cause#

The pre-accept hook denies every edit command, not only edits inside the repository.

Fix#

Transform the text in a pipe and feed it straight to rvow: sed 's/^## MODIFY REQ-x/## CHANGE REQ-x/' spec.md | rvow put CHG-xxxx spec:script. Note also that a spec delta for an existing requirement is ## CHANGE REQ-id, not MODIFY (rvow guide spec).

Evidence#

2026-10-26, reagent CHG-43zmge: the piped rvow put stored the spec; the sed -i form was denied.

Later case: Before accept, the hook also denied a pipe that ended in rvow put when an earlier stage was sed or inline python3 -c (it counts as an edit), and denied rvow spec list | awk. A plain rvow show <id> <part> --human | grep -v <line> | rvow put <id> <part> was allowed. To change a line, write the whole part again with rvow put instead of a sed or python filter.

Also found by searching

  • the plan CHG-xxxx is not accepted yet; finish it, run rvow check, then ask the user to run /rvow-accept
  • rvow hook blocks sed -i on a scratchpad file
  • cannot edit a temp file while an rvow plan waits for accept