fix(review): make review.selftune: false opt-out absolute for the breaker too - #6995
Conversation
…aker too
The accuracy circuit-breaker (runSelfTuneBreaker) had no per-repo
opt-out at all, unlike its sibling selfTuneRepos() (the routine
tuning pass), which already correctly excludes a repo whose
.loopover.yml sets review.selftune: false. A repo could opt out of
routine tuning yet still have its gate mode forced into
holdonly/closehold by the breaker.
Per that flag's own documented intent ("excludes this repo from the
tuning pass"), the opt-out is now absolute: an opted-out repo is
excluded from every part of self-tune, both the merge and close
breakers, in both the plain and miner-scoped passes, and in both
directions -- the breaker can neither newly engage a hold for an
opted-out repo nor auto-clear an already-engaged one. A manifest-load
error fails open (repo stays included), matching selfTuneRepos()'s
same fail-safe precedent.
Closes #6803
|
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 #6995 +/- ##
==========================================
+ Coverage 89.25% 93.72% +4.46%
==========================================
Files 688 688
Lines 68491 68506 +15
Branches 18737 18740 +3
==========================================
+ Hits 61135 64207 +3072
+ Misses 5647 3302 -2345
+ Partials 1709 997 -712
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-17 17:48:00 UTC
Review summary Nits — 6 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.
|
Summary
runSelfTuneBreaker) had no per-repo opt-out at all, unlike its siblingselfTuneRepos()(the routine tuning pass), which already correctly excludes a repo whose.loopover.ymlsetsreview.selftune: false. A repo could opt out of routine tuning yet still have its gate mode forced intoholdonly/closeholdby the breaker.selfTuneRepos()'s own fail-safe precedent.Closes #6803
Test plan
npm run test:ci— green for every check touching this diff (one unrelated, pre-existing failure onmain— a stale hardcodedgittensoryrepo name in an unrelated test — flagged separately)