openapi: 5 repo maintainer-report routes missing from spec (maintainer-noise, ams-miner-cohort, gate-precision, outcome-calibration, activation-preview) - #9422
Conversation
…r-noise, ams-miner-cohort, gate-precision, outcome-calibration, activation-preview) Fixes JSONbored#9302
|
Warning ⏸️ LoopOver review result - manual review recommendedReview updated: 2026-07-27 18:07:52 UTC
Review summary Nits — 4 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. Decision record
Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. Scroll preview
A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show. 🟩 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 #9422 +/- ##
===========================================
- Coverage 89.53% 76.09% -13.44%
===========================================
Files 843 278 -565
Lines 109938 59615 -50323
Branches 26184 8446 -17738
===========================================
- Hits 98436 45367 -53069
- Misses 10239 13955 +3716
+ Partials 1263 293 -970
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
LoopOver is closing this pull request on the maintainer's behalf (conflicts with the base branch — resolve and open a fresh PR). 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
Five
GET /v1/repos/:owner/:repo/*maintainer-report routes insrc/api/routes.tsare all live,maintainer-authenticated, and each already has an MCP tool with its own Zod output shape in
src/mcp/server.ts— but none of the five appears insrc/openapi/spec.ts:.../maintainer-noise→loopover_get_maintainer_noise. Its response schema,MaintainerNoiseReportSchema, is even already imported intospec.tsandregistry.register("MaintainerNoiseReport", MaintainerNoiseReportSchema)'d as a component — it issimply never attached to a
registerPath, so it's orphaned in the components section andunreachable from
paths..../ams-miner-cohort→loopover_get_ams_miner_cohort. Same situation:AmsMinerCohortComparisonSchemais registered as a component but never attached to a path.
.../gate-precision→loopover_get_gate_precision(outputSchema: gatePrecisionOutputSchema,no OpenAPI schema exists yet).
.../outcome-calibration→loopover_get_outcome_calibration(outputSchema: maintainerMeasurementReportOutputSchema, no OpenAPI schema exists yet)..../activation-preview→loopover_get_activation_preview(outputSchema: activationPreviewOutputSchema, no OpenAPI schema exists yet).All five share the same
owner/repopath params and maintainer-only auth boundary as theiralready-documented sibling
.../gate-config/effectiveand.../live-gate-thresholds(#6611 fixedthis same class of gap for
.../gate-config/effective).Deliverables
registerPathentries added for all five routes insrc/openapi/spec.ts.src/openapi/schemas.tsforgate-precision,outcome-calibration, andactivation-preview, matching their MCP tools' output shapesfield-for-field.
apps/loopover-ui/public/openapi.jsonregenerated vianpm run ui:openapiand committed.npm run ui:openapi:checkpasses in CI.All deliverables are required in this one PR — there is no follow-up issue.
Test plan
99%+ Codecov patch target (
codecov/patch, unsharded vianpm run test:coverage) on any new schemahelper code. Add a regression test asserting all five paths appear in
buildOpenApiSpec()'s outputwith the correct method and a response schema whose keys match each route's MCP tool output shape.
Fixes #9302