fix(review): wire AMS reputation bridge into reputation gate - #6910
Conversation
Feed getEffectiveSubmitterReputation through the feature-gated, upgrade-only bridgeAmsReputation path so amsReputationBridge can actually upgrade local neutral/low signals when AMS qualifies them. Closes JSONbored#6801 Co-authored-by: Cursor <cursoragent@cursor.com>
|
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 #6910 +/- ##
=======================================
Coverage 93.70% 93.70%
=======================================
Files 685 685
Lines 68292 68299 +7
Branches 18718 18722 +4
=======================================
+ Hits 63993 64000 +7
Misses 3302 3302
Partials 997 997
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 12:28:48 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.
|
Summary
bridgeAmsReputationintogetEffectiveSubmitterReputationbehindresolveConvergedFeature(..., amsReputationBridge, ...)andresolveAmsTrackRecordEndpoint(env).neutral/lowsignal totrusted, which changes the end-to-end AI-spend gate decision.Closes #6801
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
npm run test:ciwas started locally; focused coverage forsrc/review/reputation-wire.tsis 100% statements/branches/functions/lines viatest/unit/reputation-wiring.test.ts+test/unit/ams-reputation-bridge.test.ts. Remaining skipped boxes are unchanged by this PR (no UI/OpenAPI/MCP/worker surface changes) and will be exercised by GitHub CI.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — backend reputation-gate wiring only; no visible UI change.
Notes
shouldSkipAiForReputationeffect, feature-off byte-identical local signal, and the upgrade-only no-downgrade contract.