diff --git a/scripts/ci-linux-rehearsal.sh b/scripts/ci-linux-rehearsal.sh index b4dec1d..4209cf2 100755 --- a/scripts/ci-linux-rehearsal.sh +++ b/scripts/ci-linux-rehearsal.sh @@ -179,6 +179,13 @@ if [ "$STAGE" = all ] || [ "$STAGE" = console ]; then # Empty here would make the expired-exemption assertion look at '' and fail, # which is the right outcome but the wrong reason, so it is named instead. [ -n "$SEED_EXPIRED_CIDR" ] || { echo 'console stage: no SEED_EXPIRED_CIDR in console-seed.env' >&2; console_status=1; } + # The escaping invariant is guarded inside the driver by these two values. + # Measured: unset, the driver prints 65 ok lines instead of 69, zero + # failures and "all assertions passed" — the invariant is gone and the + # summary line cannot tell. The driver now names it; the harness names it + # too, because a stage that silently drops four assertions is not a pass. + [ -n "$SEED_MARKUP_PATH" ] || { echo 'console stage: no SEED_MARKUP_PATH in console-seed.env' >&2; console_status=1; } + [ -n "$SEED_MARKUP_BLOCK" ] || { echo 'console stage: no SEED_MARKUP_BLOCK in console-seed.env' >&2; console_status=1; } fi if [ "$console_status" -eq 0 ]; then diff --git a/scripts/console-check.cjs b/scripts/console-check.cjs index 32a308e..a94431d 100644 --- a/scripts/console-check.cjs +++ b/scripts/console-check.cjs @@ -173,6 +173,15 @@ const rgb = (s) => s.match(/\d+/g).slice(0, 3).map(Number); // whatever a visitor asked for and the reason on a block is a form field, so // the assertion is not "the page looks fine" — it is "nothing from the API // became an element, and the markup is still visible as text". + // A seed the driver was never given is not a pass — it is an assertion that did + // not run. Measured on this head: with SEED_MARKUP_PATH and SEED_MARKUP_BLOCK + // unset the driver prints 65 ok lines instead of 69, zero failures, and "all + // assertions passed". The escaping invariant this gate exists for is simply + // gone, and the summary line cannot tell that from a gate that ran. So the + // absence is named, and the count moves: 69 -> 70. + check('the markup seeds the escaping invariant needs were given to the driver', + SEED_MARKUP_PATH !== '' && SEED_MARKUP_BLOCK !== '', + `SEED_MARKUP_PATH=${JSON.stringify(SEED_MARKUP_PATH)} SEED_MARKUP_BLOCK=${JSON.stringify(SEED_MARKUP_BLOCK)}`); if (SEED_MARKUP_PATH) { const decoded = decodeURIComponent(SEED_MARKUP_PATH); const title = await page.title();