feat(api): wire an admin trigger for agent-regate-pr's force field - #8951
feat(api): wire an admin trigger for agent-regate-pr's force field#8951hurryup52 wants to merge 1 commit into
Conversation
Adds POST /v1/internal/jobs/agent-regate-pr, the first real producer for the force flag on the agent-regate-pr job (previously plumbed and tested but unreachable from any automatic path). Lets an operator force a fresh AI opinion on a specific repo+PR instead of reusing a cached result. Closes JSONbored#8898
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (92.30%) 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 #8951 +/- ##
==========================================
+ Coverage 90.56% 91.08% +0.52%
==========================================
Files 96 99 +3
Lines 22490 25149 +2659
Branches 3884 4685 +801
==========================================
+ Hits 20367 22907 +2540
- Misses 1945 1975 +30
- Partials 178 267 +89
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-26 14:21:30 UTC
Review summary Nits — 5 non-blocking
CI checks failing
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.
|
|
This pull request changes UI/visual code but its screenshot evidence is incomplete. Every required viewport × theme combination needs its own before/after image pair in a labeled table row (e.g. "Desktop · Light | before | after"). Still missing: Desktop · Dark, Tablet · Dark, Mobile · Dark. Please resubmit with the remaining rows filled in. See https://github.com/JSONbored/loopover/blob/main/.claude/skills/contributing-to-loopover/SKILL.md for the exact format and examples. This is an automated maintenance action. |


Summary
agent-regate-prjob messages carry an optionalforcefield, threaded throughregatePullRequestto bypass the AI review cache — but no producer ever sets it (confirmed: all 9 existing call sites omit it).POST /v1/internal/jobs/agent-regate-pr, an operator-gated route (bearer-gated by the shared/v1/internal/*middleware) that enqueues anagent-regate-prjob withforce: truefor an operator-specifiedrepoFullName/prNumber.getPullRequest/getRepositorybefore enqueuing (404 if either is missing), 400 on missing/invalid input.openapi.json.Test plan
npx tsc -b --noEmitcleanforce: trueandprCreatedAt), and 401 without the bearer tokenCloses #8898