fix(execute): below 1.8 a plan that names no test file gets the files the helper wrote
Operator decision 41 (14.10); review finding 7b3b59ed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e142556543
commit
829da487ec
6 changed files with 90 additions and 9 deletions
|
|
@ -51,7 +51,7 @@ and never touch a file the step does not list.
|
|||
2. **Prove it red before you build.** Run, from the repository root:
|
||||
`node {voyage_root}/lib/verification/red-proof.mjs --red-only --base {start_sha} --cmd "<the step's Verify command>" --plan "{plan}" --step {step}`
|
||||
(Red proof reads the step's test files from the plan and prints the list
|
||||
it ran on a `tests:` line; give it no `--tests` (operator decision 30).)
|
||||
it ran on a `tests:` line; give it no `--tests` (operator decision 30), except in the one case below.)
|
||||
Exit 0 = the test fails at the start point: continue. Exit 1 = the test
|
||||
already passes at the start point, so it proves nothing: rewrite the test
|
||||
until it fails for the reason the step exists, and run the check again.
|
||||
|
|
@ -62,7 +62,7 @@ and never touch a file the step does not list.
|
|||
the report and stop. The executor sends the step up to the plan.
|
||||
Exit 2 = it could not run. When its reason starts `plan-unreadable`, the
|
||||
plan path or the step number you were given is wrong: do not build; say
|
||||
so in the report and stop (the executor corrects its call). Exit 2 otherwise (the
|
||||
so in the report and stop (the executor corrects its call). When its reason starts `no test files given` and the plan_version is below 1.8 (a `File:` line there may name its test without backticks, so the plan names no test file), run the same command again with `--tests <the test files you wrote, comma-joined>` added (operator decision 41, 2026-10-14) and read that answer as above; it prints the files you wrote on its `tests:` line. From 1.8 the rules below apply unchanged. Exit 2 otherwise (the
|
||||
Verify command is not one test-runner invocation, or a file is missing):
|
||||
on `plan_version` ≥ 1.8 do not build; say so in the report and stop.
|
||||
Below 1.8, write "red proof not run: {reason}" in the report and go on to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue