fix(miner): label rejection-signaled aborts with the actual trigger reason - #6085
Conversation
…eason resolveRejectionSignaled now returns a trigger-specific reason string instead of a bare boolean, and attempt-cli uses it for audit-trail events and CLI output so own-rejection-history blocks are no longer mislabeled as ai_usage_policy_ban. Closes JSONbored#6055 Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
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 #6085 +/- ##
=======================================
Coverage 95.22% 95.22%
=======================================
Files 595 595
Lines 46998 47001 +3
Branches 15015 15015
=======================================
+ Hits 44756 44759 +3
Misses 1493 1493
Partials 749 749
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-15 09:08:41 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 5 non-blocking
Linked issue satisfactionAddressed 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://gittensory.aethereal.dev/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.
|
Summary
resolveRejectionSignalednow returns a trigger-specific reason string (ai_usage_policy_banorown_submission_rejected) instead of a bare boolean, preserving backward compatibility for truthy checks.attempt-cli.jsuses the returned reason in audit-trail events and--json/human-readable output, fixing mislabeled own-rejection-history aborts.miner-rejection-signal.test.tsandminer-attempt-cli.test.ts.Closes #6055
Test plan
npx vitest run test/unit/miner-rejection-signal.test.ts test/unit/miner-attempt-cli.test.ts