fix(miner): scope the policy-verdict-cache purge to its real host-scoped repo key - #10250
Conversation
…ped repo key purgeByRepo matched repo_scope with a bare `= owner/repo` equality, but every real row is keyed `<apiBaseUrl>::owner/repo` (policyVerdictCacheKey), so the right-to-be-forgotten purge and its --dry-run count both silently matched zero rows for every repo. Switch both to an escaped LIKE suffix match on the owner/repo segment across every forge host, shared via one pattern-building helper so the real delete and the dry-run count can't diverge.
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-31 14:28:10 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
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://loopover.ai/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.
|
|
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 #10250 +/- ##
==========================================
+ Coverage 80.60% 80.64% +0.03%
==========================================
Files 283 285 +2
Lines 59101 59212 +111
Branches 7000 7023 +23
==========================================
+ Hits 47641 47752 +111
Misses 11167 11167
Partials 293 293
Flags with carried forward coverage won't be shown. Click here to find out more.
|
fix(miner): scope the policy-verdict-cache purge to its real host-scoped repo key
purgeByRepo matched repo_scope with a bare
= owner/repoequality, but every real row iskeyed
<apiBaseUrl>::owner/repo(policyVerdictCacheKey), so the right-to-be-forgotten purgeand its --dry-run count both silently matched zero rows for every repo. Switch both to an
escaped LIKE suffix match on the owner/repo segment across every forge host, shared via one
pattern-building helper so the real delete and the dry-run count can't diverge.
Closes #10001