From cbece6324f83b3400364fcd1a8eb1fa3b321a3ff Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 9 Sep 2026 17:58:28 +0300 Subject: [PATCH] test: re-anchor the review-starts-on-red-validate mutant after the r1 verdict split The mutant registry pointed at the pre-r1 verdict helper that no longer exists; the anchor test caught it in CI. The patch now removes the red branch of the completed-run check. Issue: #510 User-Visible: no --- scripts/mutation-gate.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mutation-gate.mjs b/scripts/mutation-gate.mjs index 65748926..d104b4fc 100644 --- a/scripts/mutation-gate.mjs +++ b/scripts/mutation-gate.mjs @@ -8143,8 +8143,8 @@ const MUTANT_DEFINITIONS = [ + 'any completed run as green spends the review cycle on code CI already rejected (#510 AC2)', patches: [{ file: 'scripts/validate-gate.mjs', - find: " result: run.conclusion === 'success' ? 'green' : 'red',", - replace: " result: 'green', // mutant: completed means green", + find: " if (run.conclusion !== 'success') return { result: 'red', url: run.url, note: `dispatch-прогон завершился: ${run.conclusion}` };", + replace: " // mutant: completed means green — a red dispatch falls through to the job check", }], }, {