fix(queue): deny ambiguous reopen reclose - #3945
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-07 07:48:45 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 4 non-blocking
Concerns raised — review before merging
Review context
Contributor next steps
Signal definitions
🟩 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 Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3945 +/- ##
==========================================
- Coverage 93.66% 93.66% -0.01%
==========================================
Files 372 372
Lines 34856 34855 -1
Branches 12743 12742 -1
==========================================
- Hits 32649 32648 -1
Misses 1588 1588
Partials 619 619
🚀 New features to boost your workflow:
|
Motivation
Description
src/queue/processors.tsto fail-safe: treat an unconfirmed latest reopener (partial-window null result) as superseding and record a denied audit event instead of proceeding to comment and close.reopenerSupersededcheck to require an explicit visible match forreopenerbefore allowing the close attempt.test/unit/queue.test.tsto assert that no comment or PATCH-close occurs and that the audit recordsdeniedwith an appropriate detail string for the ambiguous-window case.src/queue/processors.tsandtest/unit/queue.test.tsonly.Testing
npx vitest run test/unit/queue.test.ts -t "one-shot reopen prevention" --reporter=verbose, and the one-shot reopen prevention tests passed.git diff --check, which reported no issues.denied, and it passes in the run above.Codex Task