From 234b6cbd088b276283d98dee69c5fa206e3b6b1a Mon Sep 17 00:00:00 2001 From: ranxianglei Date: Sat, 17 Oct 2026 12:46:13 +0800 Subject: [PATCH] gate: Lane A nudge assertion must stand on its own (#3416) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Lane A check /nudge INJECT|preflight compressing/ could pass on a preflight line alone while the nudge path was dead — suppression-class bugs (#3401 shape) sailed through the gate green. Split into two independent assertions: nudge INJECT is now a hard requirement of the lane, preflight is reported separately and cannot substitute. --- scripts/release-gate-local.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/release-gate-local.mjs b/scripts/release-gate-local.mjs index 2f09d8676d..fae7a28299 100644 --- a/scripts/release-gate-local.mjs +++ b/scripts/release-gate-local.mjs @@ -426,7 +426,13 @@ async function main() { const fold = /acp-compress-obs\] shrink (\d+)%/.exec(s2); record("A", "turn 2 completes after window shrink", t2.ok, t2.ok ? "" : t2.why.slice(0, 160)); record("A", "fold fired mid-session", !!fold, fold ? `shrink ${fold[1]}%` : "no acp-compress-obs line"); - record("A", "nudge/preflight engaged", /nudge INJECT|preflight compressing/.test(s2), /nudge INJECT/.test(s2) ? "nudge INJECT" : ""); + // #3416: two INDEPENDENT assertions — the old OR form let a preflight + // line alone green this check while the nudge path was silently dead + // (exactly the #3401 blind spot: suppression-class bugs passed gate). + const nudgeHit = /nudge INJECT/.test(s2); + const preflightHit = /preflight compressing/.test(s2); + record("A", "nudge injected (hard)", nudgeHit, nudgeHit ? "nudge INJECT" : "no nudge INJECT line — preflight must not substitute"); + record("A", "preflight engaged", preflightHit, preflightHit ? "preflight compressing" : "no preflight compressing line"); record("A", "S07 marker recalled from FOLDED context", has(t2.final, CODEWORDS[6]), `final="${t2.final.trim().slice(0, 80)}"`); const hitsA = [...s2.matchAll(/cache hit (\d+)%/g)].map((m) => Number(m[1])); record("A", "cache recovered after fold", hitsA.length > 0 && Math.max(...hitsA) >= 50, hitsA.length ? `hits=${hitsA.join(",")}%` : "no cache report at all");