fix(review): hold when unlinked verifier limits trip - #4645
Conversation
|
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 #4645 +/- ##
=======================================
Coverage 94.12% 94.12%
=======================================
Files 430 430
Lines 38177 38182 +5
Branches 13920 13922 +2
=======================================
+ Hits 35934 35939 +5
Misses 1585 1585
Partials 658 658
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-10 23:42:12 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.
|
Motivation
undefined(a clean pass) when they tripped, allowing an attacker to exhaust verifier capacity and bypass the unlinked-issue guardrail.Description
holddisposition viaunlinkedIssueVerifyCapacityHold(...)instead ofundefinedwhen the per-actor ceiling or shared budget gates trip.hasUnlinkedIssueVerifyAiBinding(env)and deferrecordUnlinkedIssueVerifyUsage(...)until after verifying an actual AI invocation was possible, so missing/no-op bindings do not record spuriousokusage.holddisposition and reason text.Testing
npx vitest run test/unit/unlinked-issue-guardrail.test.ts test/unit/unlinked-issue-match.test.ts --reporter=dot, resulting in 2 test files and 53 tests passing.git diff --checkwhich reported no issues.npm run typecheck) could not complete cleanly due to missing optional local package type dependencies (environment-only), andnpm audit --audit-level=moderatefailed against the registry with a403error; these are environmental and unrelated to the logic change.Codex Task