Repository navigation
fix(review): point reviewers at REST GitHub reads - #1764
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 8, 2026, 2:08 PM ET / 18:08 UTC. ClawSweeper reviewWhat this changesReplace GraphQL-backed GitHub command examples with REST GET commands that work within the hosted review network. Example: A reviewer reads linked issue 87637
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a concrete hosted-review failure that remains on current main. The change is narrow, supported by real review-run evidence, and has no actionable patch findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherClawSweeper supplies reviewers with instructions and an index of related GitHub items. Reviewers fetch relevant details through a restricted, read-only network before returning a maintenance decision. flowchart TD
A[Item and linked references] --> B[Review prompt]
B --> C[Reviewer selects relevant evidence]
C --> D[REST GET requests]
D --> E[Restricted GitHub network]
E --> F[Issue and PR details]
F --> G[Maintenance decision]
Technical reviewBest possible solution: Keep the existing restricted network and direct reviewers to working REST GET reads for relevant GitHub evidence. Do we have a high-confidence way to reproduce the issue? Yes: current main suggests GraphQL-backed commands under a limited network profile, and both this PR and the preceding merged PR record their HTTP 403 failures. No target code was executed during this read-only review. Is this the best way to solve the issue? Yes: correcting the command examples repairs the evidence-fetching path while retaining the intended network restrictions and existing context design. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1e7c8d998141. Provenance checked
TestingProof path: shipped entry point. Added test files: 0. SecurityNone. EvidenceWhat I checked:
Likely related people:
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment |
What
Follow-up to #1762: the GitHub reads that the review prompt suggests now work in the hosted review network.
The hosted review profile (
review-permissions.toml, proxymode = "limited") allows only read methods.gh issue view,gh pr view,gh issue list,gh pr listandgh release listuse GraphQLPOSTand fail with HTTP 403 (Method not allowed in limited mode). The prompt suggested all of them. It now names thegh apiREST forms:repos/<owner>/<repo>/issues/<n>,.../issues/<n>/comments,.../pulls/<n>,.../releases, and-X GET search/issues -f q=.... Policy v33.Why
#1762 omits linked-item bodies when the reviewer can read GitHub, and tells it to fetch them. Its own smoke run tried
gh issue view/gh pr viewfor two linked items, and both returned 403. From 2026-04 to 2026-09 the reviewer had no token or network (31ac62b73, #1487, #1489), so ClawSweeper inlined linked bodies for it and the broken commands went unnoticed.Proof
Run on the hosted-pinned Codex
0.159.3with the checked-in profile in an isolated Codex home:Full review through the shipped entry point, with the same profile:
pnpm run review -- --local-only --target-repo openclaw/openclaw --item-number 167298 --codex-model gpt-6.1-sol --codex-sandbox clawsweeper-review --output-retention debug --artifact-dir <dir>:review_status: complete.gh api, and the reads succeeded.pnpm run checkpasses exceptinterrupted native unshallow cleans its lock and settles transport before retry(git acquisition, untouched). That test fails only under full-suite load and passes 3/3 when run alone.Limits: Actions job logs redirect to a host outside the allowlist, so
gh api .../actions/jobs/<id>/logsstill fails. Local--local-onlyruns still use the operator's Codex home, so they load personal Codex instructions and run without the review network. That is a separate change, because isolating the home has to respect each operator's credential storage.Merge Danger
Door: two-way: prompt text only.
Blast radius: every hosted review prompt; reviewers can now read linked items they could not read before.