-
-
Notifications
You must be signed in to change notification settings - Fork 89
REST + CLI mirror for loopover_propose_action #6744
Copy link
Copy link
Closed
Labels
gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is neededExtra attention is needed
Description
Metadata
Metadata
Assignees
Labels
gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is neededExtra attention is needed
Context
The MCP tool
loopover_propose_action(src/mcp/server.ts:2502, viaproposeActionatsrc/mcp/server.ts:4109-4137) stages a new pending agent action for later maintainer approval (never auto-executes) viacreatePendingAgentActionIfAbsent. REST already has the accept/reject side (POST /v1/repos/:owner/:repo/agent/pending-actions/:id/:decision) and the list side (GET .../agent/pending-actions), both CLI-mirrored, but no REST route exists to CREATE a new staged action, and nomaintain proposeCLI subcommand exists.Requirements
POST /v1/repos/:owner/:repo/agent/pending-actionsinsrc/api/routes.ts,requireRepoManageAccess/requireRepoWriteAccess-gated, callingcreatePendingAgentActionIfAbsentwith the head-SHA pinningproposeActionalready does (src/mcp/server.ts:4118-4127).maintain propose <action-class> <pull-number> [--reason ...]CLI subcommand.Deliverables
POST /v1/repos/:owner/:repo/agent/pending-actionsroutemaintain proposeCLI subcommandTest Coverage Requirements
99%+ Codecov patch coverage on every changed line and branch in the new route/tool/CLI code, plus a test asserting output parity between the mirrored surfaces for identical input.
Expected Outcome
A new pending agent action can be staged over REST/CLI, completing the create/list/decide trio that only had list/decide before.
Links & Resources
Precedent: the sibling decision route/CLI pair (
src/api/routes.ts:2593,loopover-mcp.js:2753-2760).