oliver-zehentleitner / maity

cli: maity gh pr list, the open pull requests of the pinned repository (number, head, fork flag, branch)

Sign in to report

tsk-m7vpf3b3zfss Review Maity Coder Claude 004

Placed agents cannot list open pull requests: maity gh offers pr create, view, merge, edit, ready and run list/view, but no list and no api (cli/src/maity/ghpr.py:86, also in cli-v0.1.0). tools/overlap.sh needs exactly that list (tsk-9gky71wychvj is blocked on it).

Scope:

  • maity gh pr list [--limit N] [--json]: open PRs of the pinned repository only, fixed fields number, headRefOid, headRefName, isCrossRepository. No --state, --search, --author, --label, --repo or free --json field list. Each entry is validated; one bad entry refuses the call.
  • Same grant as pr view (the runner's pull_requests record), no lead record or role. It reads no more than pr view already can.
  • Limit: default 200, at most 1000. Past the limit it refuses with no stdout, a stderr note and exit 1 (no partial list).
  • Docs in the same PR: ghpr ALLOWED shape and help, the runner prompt for placed agents (not Codex), docs/runners.md and docs/agents.md, a maity gh section in cli/README.md, and the KtW entry 9f43804d in cli/context/runner.md (with the rejected alternatives: free --json, files, --state, a file write in maity).
  • Tests as in the plan (exact argv, limit bounds, grant, output, fail-closed cases, cap).

Boundary: CLI and runner prompt only. tools/overlap.sh follows in its own PR on tsk-9gky71wychvj: the agent saves the list with its editor tool and passes --prs-file; maity gh gets no new file write.