feat(review): add AMS live-gate-thresholds read endpoint - #6545
feat(review): add AMS live-gate-thresholds read endpoint#6545RealDiligent wants to merge 4 commits into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Expose field-limited snake_case confidence_floor / scope_cap_* from live (or soaking shadow) TunableOverride, gated by isMcpReadRepoAllowed, with 404 when no override is active. Closes JSONbored#6486 Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (95.45%) is below the target coverage (99.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #6545 +/- ##
=======================================
Coverage 95.81% 95.81%
=======================================
Files 589 590 +1
Lines 47049 47136 +87
Branches 14962 14998 +36
=======================================
+ Hits 45079 45165 +86
Misses 1176 1176
- Partials 794 795 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-16 13:13:29 UTC
Review summary Nits — 5 non-blocking
CI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
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. Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. 🟩 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.
|
…t/critical-issue-orb-gate-thresholds-endpoint-6486
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (codecov/patch)). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |


Summary
GET /v1/repos/:owner/:repo/live-gate-thresholdsreturning onlyconfidence_floor/scope_cap_files/scope_cap_lines(snake_case allowlist; no audit / applied_at / clear_at).authoritativeGateOverride).404 live_gate_thresholds_not_foundwhen neither is active;403 forbidden_repofor disallowed MCP tokens — same auth posture asgate-config/effective.Distinct from the existing
gate-config/effective(#6247) camelCase dashboard shape: this is the AMS probe contract from #6209.Closes #6486
Test plan
npx vitest run test/unit/auto-apply.test.ts -t "live gate threshold"npm run ui:openapiMade with Cursor