Skip to content

Commit 983b24b

Browse files
committed
test(dispatch-gates): the queue guard's --toolchain-needed invocation is its second CI-measured family
The install gate reads the event payload, so the live derivation now classifies two invocations of the one queue guard as CI-measured; the pin names both. Claude-Session: https://claude.ai/code/session_01Cpku5P4EYCqaaEGHuMcxik Co-authored-by: Claude <noreply@anthropic.com>
1 parent 27a243d commit 983b24b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎scripts/pm/dispatch-gates.self-test.mjs‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7927,10 +7927,13 @@ export function selfTest({ tier = 'full' } = {}) {
79277927
// LIVE: the classification against the real derivation, in BOTH directions.
79287928
// The positive alone would pass on a rule that classified everything; the
79297929
// negative alone would pass on a rule that classified nothing.
7930+
// Two invocations of the one queue guard read the payload: the judgment, and
7931+
// the `pull_request` leg's `--toolchain-needed` install gate.
79307932
const liveCiOnly = [...liveDiscovery.byCheck].filter(([, e]) => e.ciOnly);
7933+
const QUEUE_GUARD_CI_FAMILIES = ['scripts/pm/check-governed-queue-guard.mjs', 'scripts/pm/check-governed-queue-guard.mjs --toolchain-needed'];
79317934
t(
7932-
`LIVE: exactly one family classifies CI-measured, and it is the queue guard (got: ${liveCiOnly.map(([c]) => c).join(', ') || 'none'})`,
7933-
liveCiOnly.length === 1 && liveCiOnly[0][0] === 'scripts/pm/check-governed-queue-guard.mjs',
7935+
`LIVE: exactly the queue guard's two payload-reading invocations classify CI-measured (got: ${liveCiOnly.map(([c]) => c).join(', ') || 'none'})`,
7936+
liveCiOnly.map(([c]) => c).sort().join('|') === QUEUE_GUARD_CI_FAMILIES.join('|'),
79347937
);
79357938
t(
79367939
'LIVE: an ordinary local family on the same card is NOT classified — the rule discriminates rather than sweeping',

0 commit comments

Comments
 (0)