Skip to content

fix(gate): advisory signals never drive a close — dry-run promotes only the AI sub-gate - #1590

Merged
JSONbored merged 1 commit into
mainfrom
fix/disposition-advisory-signals-never-close
Jun 27, 2026
Merged

fix(gate): advisory signals never drive a close — dry-run promotes only the AI sub-gate#1590
JSONbored merged 1 commit into
mainfrom
fix/disposition-advisory-signals-never-close

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

A missing linked issue and readiness are advisory signals only — they must never drive a close disposition. promoteAdvisoryToBlock (the #1588 dry-run shadow) wrongly promoted every advisory sub-gate to block, so a missing linked issue or a low readiness score rendered a would-be close in the comment. Now the shadow promotes only the AI sub-gate: an advisory AI defect still previews its would-be close, while linked-issue / readiness / slop / duplicates can never reach a close (real or dry-run). First step of the disposition redesign toward AI-confidence-driven close. Fully covered.

…s) never drive a close — even in dry-run

#disposition-redesign. promoteAdvisoryToBlock (the dry-run shadow eval that produces displayConclusion) was promoting
EVERY advisory sub-gate to block, so a missing linked issue or a sub-threshold readiness score rendered a would-be
'close' verdict in the unified comment — wrong. A missing linked issue and readiness are ADVISORY signals only; the
CLOSE disposition is driven by the AI reviewer's confidence + genuine hard blockers (secret/CI/banned). So the dry-run
shadow now promotes ONLY the AI sub-gate: an advisory AI defect still previews its would-be close, while linked-issue /
readiness / slop / duplicates can never reach a close (real OR dry-run preview). Posted check stays non-enforcing.
@dosubot dosubot Bot added the size:S label Jun 27, 2026
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@JSONbored
JSONbored merged commit 8aa0dd9 into main Jun 27, 2026
16 checks passed
@JSONbored
JSONbored deleted the fix/disposition-advisory-signals-never-close branch June 27, 2026 09:16
@codecov

codecov Bot commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.47%. Comparing base (6f8472f) to head (0e55198).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1590   +/-   ##
=======================================
  Coverage   95.47%   95.47%           
=======================================
  Files         202      202           
  Lines       21891    21891           
  Branches     7911     7911           
=======================================
  Hits        20901    20901           
  Misses        414      414           
  Partials      576      576           
Files with missing lines Coverage Δ
src/rules/advisory.ts 97.55% <ø> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant