Repository navigation
Add local-only issue and PR review mode - #357
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 23, 2026, 9:31 PM ET / 01:31 UTC. Summary Reproducibility: not applicable. as a bug reproduction: this PR adds a new local maintainer workflow rather than fixing a broken existing contract. The observable verification is the terminal proof for Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land after maintainers explicitly accept the local review workflow and credential boundary, or narrow the supported local surface before merge. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this PR adds a new local maintainer workflow rather than fixing a broken existing contract. The observable verification is the terminal proof for Is this the best way to solve the issue? Yes at the implementation level: extending the existing review command is narrower than creating a separate issue/PR review engine. The remaining question is maintainer acceptance of the support, auth, checkout, and automation boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bd03fe34c0a4. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Addresses review feedback that the offline --local-range full review paralleled the hardened local-review path (openclaw#298) instead of reusing it. Now --local-range: - enforces openclaw#298's clean-checkout contract (dirtyWorktree guard — rejects a dirty tree; the committed-range review can't see staged/untracked work); - scrubs every GitHub credential from the engine (scrubGitHubCredentialEnv) and disables web search (LOCAL_REVIEW_WEB_SEARCH_CONFIG) — the same offline guarantee; - reuses commitMetadata(offline=true) for author/subject/dates instead of its own git calls. dirtyWorktree + scrubGitHubCredentialEnv are extracted from commit-sweeper.ts's localReviewCommand (behavior unchanged there) and shared. This is the openclaw#357 full proof-aware review made offline — distinct from openclaw#298's commit-sweeper code-only lane, but built on its offline plumbing.
Addresses review feedback that the offline --local-range full review paralleled the hardened local-review path (openclaw#298) instead of reusing it. Now --local-range: - enforces openclaw#298's clean-checkout contract (dirtyWorktree guard — rejects a dirty tree; the committed-range review can't see staged/untracked work); - scrubs every GitHub credential from the engine (scrubGitHubCredentialEnv) and disables web search (LOCAL_REVIEW_WEB_SEARCH_CONFIG) — the same offline guarantee; - reuses commitMetadata(offline=true) for author/subject/dates instead of its own git calls. dirtyWorktree + scrubGitHubCredentialEnv are extracted from commit-sweeper.ts's localReviewCommand (behavior unchanged there) and shared. This is the openclaw#357 full proof-aware review made offline — distinct from openclaw#298's commit-sweeper code-only lane, but built on its offline plumbing.
Synthesize the Item + ItemContext from the local git range (merge-base(--base, HEAD)..HEAD) so the full review — real-behavior proof and mantis decision — runs BEFORE a PR exists and WITHOUT a GitHub fetch. Diff from `git diff`, body from the commit message (or --body-file). This is the offline advisory review openclaw#357 describes but gates behind an open PR; it also works on fork checkouts that the gh-fetch gitInfo path rejects.
* Add local ClawSweeper review workflow * fix: preserve Codex login fallback * fix: redact local Codex access tokens * fix: harden local Codex review across platforms * fix: show local Codex preflight progress * fix: explain missing local review checkout * fix: suppress stacks for local setup errors * feat: manage local review PR checkouts * fix: improve local review exact-item output * fix: improve local review failure output * docs: consolidate local review command * docs: consolidate local review guidance --------- Co-authored-by: joshavant <[email protected]>
Summary
Adds a local ClawSweeper review workflow for users who want advisory output before submitting, updating, or re-reviewing an issue or pull request. This was based on a discussion with @joshavant on Discord.
Changes
pnpm run review -- --local-onlyfor read-only local issue/PR review without the starter GitHub comment.pnpm run codex:local:checkto verify local Codex CLI auth and execution without printing secrets.--local-only; hosted/normal workers still strip Codex/OpenAI/GitHub write credentials.--target-repo owner/nameexamples.docs/local-clawsweeper-skill.mdfor the optional Codex skill and remove the duplicated long-form local review guide..agents/skills/local-clawsweeper-reviewas an optional ergonomic Codex wrapper.Validation
1c872e6453343ead2c1070516c3f4196dce40641:1c872e6453343ead2c1070516c3f4196dce40641:1c872e6453343ead2c1070516c3f4196dce40641:Local review artifact summary:
review_status=completedecision=keep_openconfidence=highaction_taken=kept_openreview_service_tier=fastlocal_checkout_access=verifiedmain_sha=bd03fe34c0a49e17735186bc15e6e8656d03e2e2pull_head_sha=1c872e6453343ead2c1070516c3f4196dce40641## clawsweeper/pr-357No GitHub apply/close command was run; this was local-only advisory review proof.