fix(1259-01): make real runner cross-platform/version portable (CI ubuntu-24 + windows-24)

CI failed on node 24 + Windows in the real-runner E2E tests — real portability
bugs in the shipping runner, not test flakiness:

- node 24 names a zero-test file's TAP entry by ABSOLUTE path (node 22 used the
  basename), so the exact-string vacuity discriminator misfired -> empty file
  falsely greened. Now compares BASENAMES (separator-agnostic) -> robust across
  OS + node version. Verified: empty file is non-green under node 24 locally.
- the lint-rule runner spawned 'npx', which execFileSync can't launch on Windows
  (and failed fast on ubuntu-24). Now resolves the project's eslint CLI via
  eslint/package.json and runs 'node <cli>' through process.execPath (portable;
  no shell -> no injection). eslint absent -> fail-closed.
- node-test also spawns via process.execPath, not bare 'node'.

Also folds in round-3 WR-01: the probe-core inline comments still said
enforcement was 'deferred to a follow-up PR' — corrected (landed in #1259).
Strengthened the isNonVacuousNodeTestPass unit test to pin the basename clause
(absolute-path target). Verified 71/71 green under BOTH node 22 and node 24.
This commit is contained in:
Dave
2026-06-15 14:19:35 -04:00
parent e08667e5aa
commit 2af7630642
3 changed files with 57 additions and 22 deletions

View File

@@ -397,9 +397,9 @@ export function dispositionForProhibition(
const hasEnforcement = evidence.length > 0;
// FAIL CLOSED: no wired enforcement evidence -> flagged unverified, never green. This holds for
// every tier today (the real enforcement mechanism that could flip a test-tier item to green is
// deferred to a follow-up PR). The guard the safety assertion proves: an unwired item can never
// be silently skipped.
// every tier (the producer that builds enforcement evidence for a test-tier item — the
// `prohibition-enforcement` module — landed in #1259). The guard the safety assertion proves: an
// unwired item can never be silently skipped.
if (!hasEnforcement) {
return {
status: 'unverified',
@@ -414,8 +414,8 @@ export function dispositionForProhibition(
// D4 GUARD: a judgment-tier (or unknown-tier) prohibition is NEVER a silent green from this
// deterministic helper — it always routes to human/LLM judgment review (ADR-550 D4; verify-phase.md).
// Only a test-tier item with wired enforcement evidence may go green, and even that is the deferred
// heavy half until the real negative-test enforcement mechanism lands (no #644 caller passes evidence).
// Only a test-tier item with wired enforcement evidence may go green; the producer that supplies
// that evidence (`prohibition-enforcement`, #1259) runs the wired check and requires a genuine pass.
if (tier === 'test') {
return {
status: 'green',