fix(07-04): golden-corpus treats an npm-root-less cwd as environment drift (notRun, exit 2) + the AU1 placeholder regex pin

- a missing package.json in the audit root is T-07-22's environment-drift class,
  not a corpus failure — the corpora cannot even be spawned there
- AU1's flag-skip assertion matches the printed 'NOT RUN — (pass --live)' shape
This commit is contained in:
araharah-executor
2026-10-25 05:08:02 +08:00
parent 887b446955
commit 349e34e9e6
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -287,7 +287,7 @@ await test("AU1 without --live: every required gate prints its evidence line, th
assert.match(out, /50\/request/, "the subrequest ceiling must appear in the comparison table");
assert.match(out, /10 ms\/invocation/, "the CPU ceiling must appear in the comparison table");
assert.match(out, /not measured/, "unmeasured ceilings must read `not measured` — never 0");
assert.match(out, /cache-headers: NOT RUN \(pass --live\)/, "the flag-skipped live gate is visible and honest");
assert.match(out, /cache-headers: NOT RUN.*\(pass --live\)/, "the flag-skipped live gate is visible and honest");
});
await test("AU2 with --live: the live header probe runs and the exit contract holds — a NOT RUN cache-header gate NEVER coexists with exit 0", () => {