fix(openapi): document /v1/opportunities/find + /v1/issue-rag/retrieve - #9452
Conversation
JSONbored#9310) Both discovery routes were live (and MCP-backed) but absent from OpenAPI. Add request/response schemas mirroring the MCP tool shapes, register the POST paths, regenerate openapi.json, and add regression assertions. Replaces conflict-closed JSONbored#9423 on current main. Co-authored-by: Cursor <cursoragent@cursor.com>
Resolve the openapi.json conflict by regenerating from the merged schemas/spec sources so JSONbored#9310 opportunities/issue-rag paths and main coexist. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-27 19:34:46 UTC
Review summary Nits — 5 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. 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 #9452 +/- ##
==========================================
+ Coverage 75.51% 75.69% +0.18%
==========================================
Files 275 277 +2
Lines 58032 58480 +448
Branches 6209 6216 +7
==========================================
+ Hits 43820 44267 +447
Misses 13942 13942
- Partials 270 271 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|


Summary
FindOpportunitiesRequest/FindOpportunitiesResponseandIssueRagRetrieveRequest/IssueRagRetrieveResponseschemas mirroring the MCP tool Zod shapes (reusing the sameMAX_FIND_OPPORTUNITIES_*/MAX_ISSUE_RAG_*/PREFLIGHT_LIMITSconstants).src/openapi/spec.ts(same registration pattern as#6611/gate-config/effective).apps/loopover-ui/public/openapi.json.openapi.test.tswith path/schema presence + field regression guards (aiPolicyAllowed,retrievedPathCount).Why #9423 closed
PR #9423 had green CI and no review blockers, but was auto-closed for a base-branch conflict. This is a fresh reimplementation on current
upstream/main.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 ui:openapi+npm run ui:openapi:checknpx vitest run test/unit/openapi.test.ts— 5 passednpm run test:ci(full gate; run before push)If any required check was skipped, explain why:
OpenAPI documentation + regeneration + targeted contract test complete. Full
test:cileft for the opener.Safety
site/,CNAME,**/lovable/**, or rootCHANGELOG.md.UI Evidence
N/A — OpenAPI contract / generated
openapi.jsononly; no product UI change.Notes for reviewers / gate