feat(orb): gate APR repo-transfer on trusted idea completion - #8001
Conversation
Closes JSONbored#7742. Customer-request-only APR transfer via POST /v1/loop/request-apr-transfer; ideaComplete comes from a fail-closed server lookup (not the request body), so callers cannot bypass the JSONbored#7591 completion gate. Strict body schema rejects smuggled fields.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-22 06:07:06 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. 🟩 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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8001 +/- ##
==========================================
- Coverage 91.92% 89.79% -2.14%
==========================================
Files 740 97 -643
Lines 75933 24344 -51589
Branches 23040 4579 -18461
==========================================
- Hits 69803 21860 -47943
+ Misses 5037 2214 -2823
+ Partials 1093 270 -823
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Summary
initiateAprRepoTransfer— no automatic or proactive offer.ideaCompleteis not accepted from the request body.loadAprIdeaCompletionis a fail-closed server-side lookup (returns incomplete until Design spec: idea-completion determination + customer-facing status for APR (no GitHub UI exposure) #7591/Persisted, identity-bound idea-submission record — blocked on identity/consent decision #7664 persist completion); smugglingideaCompletein the body is rejected by a.strict()schema (400).POST /v1/loop/request-apr-transfer—202initiated,409idea not complete,502GitHub rejected,400invalid body.Test plan
ideaComplete; 202/502 when lookup mocked complete; optionalideaIdforwarded; no wallet/hotkey/trust-score leakagenpm run typecheckorb-apr-repo-transfer+routes-request-apr-transfer(21 passing)