fix(gate): default the three bare gateMode() calls in advisory.ts to advisory - #10245
Conversation
…advisory recordGateScoreSignals and buildQualityGateWarning called gateMode() bare on an optional mode field. Since JSONbored#9167 made gateMode's fallback fail-closed to "block", an absent slopGateMode resolved to "block" there while buildSlopGateBlocker (the pure evaluator it's documented to mirror) already defaulted the same absent value to "advisory" via gateMode(policy.slopGateMode ?? "advisory") -- so an unconfigured slop gate still wrote a slop_gate_score corpus signal labeled "mode block" that the gate itself never evaluated. Give all three call sites the same ?? "advisory" default and correct the gateMode doc comment, which claimed every caller already supplied that default when three sites in the same file didn't.
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-31 14:18:12 UTC
Review summary Nits — 2 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 #10245 +/- ##
===========================================
- Coverage 92.25% 80.68% -11.58%
===========================================
Files 938 284 -654
Lines 114694 59467 -55227
Branches 27693 8880 -18813
===========================================
- Hits 105813 47978 -57835
- Misses 7575 11188 +3613
+ Partials 1306 301 -1005
Flags with carried forward coverage won't be shown. Click here to find out more.
|
fix(gate): default the three bare gateMode() calls in advisory.ts to advisory
recordGateScoreSignals and buildQualityGateWarning called gateMode() bare on
an optional mode field. Since #9167 made gateMode's fallback fail-closed to
"block", an absent slopGateMode resolved to "block" there while
buildSlopGateBlocker (the pure evaluator it's documented to mirror) already
defaulted the same absent value to "advisory" via
gateMode(policy.slopGateMode ?? "advisory") -- so an unconfigured slop gate
still wrote a slop_gate_score corpus signal labeled "mode block" that the
gate itself never evaluated.
Give all three call sites the same ?? "advisory" default and correct the
gateMode doc comment, which claimed every caller already supplied that
default when three sites in the same file didn't.
Closes #10015