fix(engine): sync gate-advisory CHECK_RUN_FORBIDDEN_TERMS with its host twin and diff regex bodies in CI - #8719
Conversation
…st twin and diff regex bodies in CI The engine copy's CHECK_RUN_FORBIDDEN_TERMS regex had silently dropped the likely_duplicate and reviewability\s*\d alternatives its host twin in src/rules/advisory.ts carries, so sanitizeForCheckRun would leak those terms into a public check-run for any direct consumer of evaluateGateCheck. The existing guard (checkGateDecisionVersionBump / GATE_DECISION_CORE_MARKERS) only enforced function-name presence, never the regex body itself, so the drift went undetected despite both files' comments claiming byte-identical enforcement. - Restore the two missing alternatives so the two copies are byte-identical. - Add checkGateDecisionForbiddenTermsParity to scripts/check-engine-parity.ts, which extracts and diffs the actual regex literal of both twins and wires into runEngineParityChecks so a future body divergence fails CI immediately. - Cover the newly-redacted terms through sanitizeForCheckRun/evaluateGateCheck and the strengthened drift check's failure path (including a synthetic divergence fixture mirroring the marker-presence test pattern). Closes JSONbored#8697
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8719 +/- ##
=======================================
Coverage 93.79% 93.79%
=======================================
Files 797 797
Lines 79477 79477
Branches 24078 24078
=======================================
Hits 74542 74542
Misses 3563 3563
Partials 1372 1372
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-26 01:02:51 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
fix(engine): sync gate-advisory CHECK_RUN_FORBIDDEN_TERMS with its host twin and diff regex bodies in CI
The engine copy's CHECK_RUN_FORBIDDEN_TERMS regex had silently dropped the
likely_duplicate and reviewability\s*\d alternatives its host twin in
src/rules/advisory.ts carries, so sanitizeForCheckRun would leak those terms
into a public check-run for any direct consumer of evaluateGateCheck. The
existing guard (checkGateDecisionVersionBump / GATE_DECISION_CORE_MARKERS) only
enforced function-name presence, never the regex body itself, so the drift went
undetected despite both files' comments claiming byte-identical enforcement.
which extracts and diffs the actual regex literal of both twins and wires into
runEngineParityChecks so a future body divergence fails CI immediately.
and the strengthened drift check's failure path (including a synthetic
divergence fixture mirroring the marker-presence test pattern).
Closes #8697