GH#17372: add pre-close verification gate for pulse worker issue closing#17376
GH#17372: add pre-close verification gate for pulse worker issue closing#17376marcusquinn merged 1 commit intomainfrom
Conversation
…s against unrelated PRs (GH#17372) A pulse worker incorrectly closed GH#15544 and GH#15545 by citing PR #15614, which did not fix either bug. This adds a verification safeguard: - New verify-issue-close-helper.sh: checks that a cited PR's diff touches files mentioned in the issue body before allowing close - Uses two-tier strategy: specific paths (with /) require exact match, bare filenames fall back to basename matching - Integrated into close_issues_with_merged_prs() and reconcile_stale_done_issues() in pulse-wrapper.sh - Added mandatory pre-close verification gate to full-loop.md worker instructions Closes #17372
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Maintainer Gate: BLOCKED This PR cannot be merged because: Issue #17372 has
This is an automated check. See issue-triage-gate.yml for the triage policy. |
Merge SummaryWhat: Pre-close verification gate preventing workers from closing issues against unrelated PRs Issue: GH#17372 — pulse worker hallucinated fix, closed GH#15544 + GH#15545 against unrelated PR #15614 Files changed:
Testing: Verified against actual failure case — both GH#15544 and GH#15545 correctly REJECTED against PR #15614 Key decisions:
|
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report SonarCloud: 0 bugs, 0 vulnerabilities, 1 code smells Sat Apr 4 18:11:13 UTC 2026: Code review monitoring started 📈 Current Quality Metrics
Generated on: Sat Apr 4 18:11:16 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|
Not up to standards ⛔
|



Summary
verify-issue-close-helper.sh— a pre-close verification gate that checks whether a PR's diff actually touches files mentioned in an issue body before allowing automated closeclose_issues_with_merged_prs()andreconcile_stale_done_issues()inpulse-wrapper.shas defense-in-depthfull-loop.mdworker instructions with mandatory pre-close verification gate (criterion feat: inherit OpenCode prompts for Build+ and Plan+ agents #7)How it works
The helper uses a two-tier file-overlap strategy:
setup-modules/schedulers.sh), at least one specific path must appear in the PR diff. Basename-only matches on contextual files (likepulse-wrapper.shappearing as environment info) are insufficient.Verification evidence
Tested against the actual failure case:
Both GH#15544 and GH#15545 correctly REJECTED against PR #15614.
Runtime Testing
self-assessed— helper tested against real issue/PR data via CLICloses #17372
aidevops.sh v3.6.84 plugin for OpenCode v1.3.13 with claude-opus-4-6 spent 14m and 3,510 tokens on this as a headless worker.