fix(miner): wire policy_verdict_cache into purge/status/migrate local stores - #7136
Conversation
… stores policy-verdict-cache.js keys policy_verdict_cache on repo_scope (a real per-repo column), structurally identical to the repo-scoped stores store-maintenance.js already documents as purgeable, yet it was never added to any of the three known-local-stores registries it qualifies for: purge-cli.js REAL_PURGE_TARGETS, status.js storeIntegrityChecks, and migrate-cli.js STORES. Its per-repo rows could persist indefinitely uncleaned and unmonitored. Mirror the sibling repo-scoped stores exactly: add POLICY_VERDICT_CACHE_PURGE_SPEC to store-maintenance.js, give the store a purgeByRepo method reusing the identifier-guarded purgeStoreByRepo, and register it in all three sweeps. policy-doc-cache.js stays excluded (keyed by URL, no repo column, like attempt-log.js). Closes JSONbored#6987
|
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 #7136 +/- ##
=======================================
Coverage 93.75% 93.75%
=======================================
Files 692 692
Lines 68851 68853 +2
Branches 18781 18781
=======================================
+ Hits 64554 64556 +2
Misses 3302 3302
Partials 995 995
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-18 00:06:36 UTC
Review summary Nits — 3 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.
|
Closes #6987