Repository navigation
feat(review): add offline local-range review - #408
Conversation
Rewritten onto current main with safe current-checkout defaults, git-private artifacts, and focused regression coverage. Co-authored-by: Cameron Beeley <[email protected]>
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Codex review: needs maintainer review before merge. Reviewed July 4, 2026, 10:43 AM ET / 14:43 UTC. Summary Reproducibility: not applicable. this is a feature PR, not a bug report. The relevant verification is the PR body's local CLI proof and the added regression tests rather than a current-main failure reproduction. Review metrics: 3 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this maintained replacement if maintainers accept the documented local review/auth boundary, keeping the shared Commit Sweeper guardrails and focused regression coverage intact. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a feature PR, not a bug report. The relevant verification is the PR body's local CLI proof and the added regression tests rather than a current-main failure reproduction. Is this the best way to solve the issue? Yes for the implementation shape: it extends the existing full review path and reuses the Commit Sweeper offline guardrails instead of creating a separate reviewer. Product acceptance of the new CLI/auth surface still belongs to maintainers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b81ec9657604. Label changesLabel changes:
Label 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
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 314f66448e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| stringArg(args.target_dir, stringArg(args.openclaw_dir, `../${profile.checkoutDir}`)), | ||
| stringArg( | ||
| args.target_dir, | ||
| stringArg(args.openclaw_dir, localRange ? process.cwd() : `../${profile.checkoutDir}`), |
There was a problem hiding this comment.
Normalize local-range cwd to the repo root
When --local-range is launched from a subdirectory and no --target-dir is supplied, this makes the Codex checkout that subdirectory. Git still reports range paths relative to the repository root from a subdir (for example other/file), so those paths are nonexistent relative to -C <subdir> and the reviewer cannot reliably inspect files outside the current folder. Please resolve the default local-range target to git rev-parse --show-toplevel before building the review.
Useful? React with 👍 / 👎.
| cwd: targetDir, | ||
| }).trim(); | ||
| const pullFiles = nameStatus | ||
| ? nameStatus.split("\n").map((line) => { |
There was a problem hiding this comment.
Bound local-range pull-file hydration
This maps every file in the local range and embeds up to 8 KB of patch per file with no cap or pullFilesTruncated marker. On branches with hundreds of changed files, generated outputs, or lockfile/vendor churn, the synthesized context can become multi-MB before Codex starts and fail on prompt size or timeout instead of producing an advisory report. Please hydrate a bounded window like the live PR path and record truncation in counts.
Useful? React with 👍 / 👎.
|
Maintainer decision: accept the documented local boundary. |
|
Thanks, apologies about the maintainer edit being blocked on that PR. Blame the clanker! |
Add full proof-aware review for a clean committed range before a pull request exists. Reuse the local review credential and network guardrails, default to the invoking checkout, keep artifacts inside git metadata, and document/test the boundary. Co-authored-by: Cameron Beeley <[email protected]>
Supersedes #369 after the contributor fork rejected the maintainer rewrite. This keeps Cameron's implementation and co-author credit, rebased and hardened against current
main.What changed
review --local-rangefor a full proof-aware review ofmerge-base(<base>, HEAD)..HEADbefore a PR exists.--target-dirremains available.ghauth, disables web search, and skips host URL/media preprocessing. The Codex model call is still networked, so this is not described as air-gapped..git/clawsweeper/reviews/local-range-<time>-<pid>/, keeping the target worktree clean.--body-file,--additional-policy, and the local-range workflow.Proof
Exact head:
314f66448ece66d86f9ebea5f8185fdc7912c8dbpnpm run check: 614 unit tests and 617 repair tests passed.ghconfig, and clean worktree preservation.node dist/clawsweeper.js review --local-range --base origin/main --target-repo openclaw/clawsweeper --codex-reasoning-effort lowkeep_open.git/clawsweeper/reviews/local-range-1783175454520-11161/0.mdOriginal implementation by @anagnorisis2peripeteia.