Run scoped OpenClaw issue/PR repair campaigns: coordinate workers, prove root causes, and land or close verified work under the requested authority.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-openclaw-repair-sweep-70ec9ca44bd0 ,按照其中的说明把「openclaw-repair-sweep」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Use for a multi-item repair campaign. Root AGENTS.md owns repair and safety
policy; $openclaw-pr-maintainer owns item review, GitHub writes, and landing.
The lead remains hands-on and delegates independent work where useful.
Use $gitcrawl for available archive discovery, $openclaw-testing for proof,
$autoreview for independent code review, and $crabbox when the proof requires
remote environment or untrusted-source isolation. Author-history research is
conditional on a concrete question, not a campaign prerequisite.
Assign each item or shared root-cause cluster one owner, a checkout, frozen source SHA, authorized actions, and a useful stopping condition. Duplicate symptoms share an owner; repeated defect classes should be repaired in the canonical owner rather than by parallel near-identical patches.
Use isolated issue/PR worktrees and preserve unrelated files. Serialize shared fetch/ref/branch/worktree operations, PR preparation, and merges in short slots; never hold the slot across coding, tests, or a remote wait. Each remote lease has one owner and one active command. Pause only campaign-owned work under resource pressure, and preserve patches, claims, proof, and checkpoints before replacement. The lead may take over stalled work safely; it is not an orchestration-only role.
Read root and scoped guides before acting. Each verdict-bearing worker inspects its relevant dependency contracts directly, including the root's personal Codex source requirement. The lead verifies consequential results, not just summaries. Use independent challenge for nontrivial repairs and closure evidence; one independent autoreview is enough for the code-review requirement.
Search existing work before creating another fix: current body/comments, related
archive results, live state when it matters, and current source/history. Use bare
PATH gh with narrow JSON fields; reuse shared evidence and avoid unnecessary
pagination or repeated item fetches.
Prefer, in order:
A candidate needs a demonstrated current defect, an understood owner and bounded impact, relevant dependency proof, and feasible validation. Repairs requiring new dependencies/configuration, public-contract changes, security, persistence design, or product judgment require their root approvals before implementation or landing as applicable. Preserve useful investigation; do not work around the gate or count review-required work as an accepted fix.
Repair the invariant at its owner, cover relevant siblings, and remove connected
obsolete paths when justified. Do not add speculative fallback layers or hardcode
the reported example. Prefer simplicity without a LOC quota. Keep release-note
context and credit in the PR; CHANGELOG.md remains release-owned. Do not force a
second refactor PR after each completed item.
Choose proportional proof through $openclaw-testing. Trusted development can
run locally; remote compute needs an environment or isolation reason. Untrusted
repository tooling never runs locally or on a credential-hydrated host. Preserve
explicit live requirements and never describe a mock, skipped test, old head, or
unfinished soak as live proof.
Run $autoreview on the completed nontrivial candidate and resolve verified
findings. Re-review substantive changes or unresolved concerns; do not multiply
reviews for mechanical head movement. Address actionable human/bot findings
without a separate Rank-up checklist or score-refresh gate.
Land through the native maintainer workflow only with current required CI and review evidence. Verify remote merge state and ancestry before counting success. A timed-out merge request may have succeeded; reconcile it before retrying. Refresh/rebase for conflicts, failed guards, explicit requests, or material stale base risk, not merely because main advanced. Delete only owned temporary state.
For broad campaigns, a shared-main failure may justify one separately scoped repair worker. Check for an existing fix first. Do not duplicate that repair in every PR or silently expand a bounded ref request to unrelated CI work.
Before closing, prove the reporter's primary outcome and affected surfaces are fixed, not merely mitigated or diagnosed. Check fix ancestry and containing tags when version claims matter; dates do not prove inclusion. Seek independent challenge for uncertain or consequential closure evidence. Disagreement, a still broken surface, or an owner hold means leave open. Product rejection is a maintainer decision, never an automatic cleanup conclusion.
Recheck live state before mutation and explain the fixed behavior, canonical commit/PR, known containing version, and useful proof. If a closure is challenged, pause the affected closure work and correct the evidence before resuming. No more than three workers should hold simultaneous closure duty; more than fifty close/reopen actions require the root's explicit count/scope approval.
Keep a resumable ledger of owner, source/head, outcome, proof/CI state, PR/merge, credit, blockers, and cleanup. Count verified outcomes, not planned or launched work. Report meaningful progress and each verified landing with links; summarize final behavior, proof, remaining limitations, and checkout state in natural prose.