auto-qa
Continuously audit, live-test, and stress-test the current OpenClaw codebase across at least ten independently scoped subsystem lanes; default to 100 independently verified, landed root-cause fixes, maintain an evidence-backed report, and announce each merged pull request immediately. Use for OpenClaw-wide autonomous QA, live-provider campaigns, gateway, CLI, web, plugin, native-app, scenario, packaging, and extended soak testing.
SKILL.md 原文预览
OpenClaw Auto QA
Run a continuous, current-main OpenClaw product campaign. Treat a reviewer finding as a hypothesis, a passing test as evidence only for its actual head, and a merge as complete only when the canonical repository confirms it. Always prefer a clean, appropriately scoped root-cause refactor over a quick fix or smaller diff. Repair the actual root cause in its canonical owner; a patch is not acceptable when it leaves sibling paths, lifecycle invariants, or the defective abstraction intact.
Set the campaign goal
- Default to 100 distinct, independently verified, actually merged root-cause fixes unless the operator explicitly specifies a different target. Count broken invariants, not pull requests, symptoms, proposed patches, skill updates, or merely passing tests.
- When the operator changes the target during an active campaign, update the existing report, numbered ledger, progress denominator, and live status in place. Preserve every previously verified landing; never reset the investigation or claim that an unfinished target has been reached.
- Exclude security-sensitive, persistent-state, protocol, public-contract, or otherwise review-required work from the accepted count until the appropriate owner explicitly authorizes and verifies its landing.
Prefer clean refactors over quick fixes
- Identify the broken ownership boundary, abstraction, state transition, or dependency contract before choosing an implementation. Compare the canonical owner, callers, callees, and sibling paths; prefer the design that makes their shared invariant obvious and reliable.
- Consolidate decisions and authoritative state in their actual owner. Propagate prepared facts through existing lifecycles, repair all affected siblings, and delete obsolete branches, duplicate policy, dead helpers, and stale abstractions when they are no longer needed.
- Reject symptom-masking guards, one-off exceptions, observed-example literals, parallel code paths, extra caches, fallback stacks, compatibility shims, and tests that merely make a narrow reproduction pass. A smaller change is not safer when it preserves the cause or makes the architecture harder to understand.
- Preserve shipped public contracts and ownership boundaries. If the clean refactor would affect security, persistent state, public configuration, plugin SDK compatibility, a protocol, or a product decision, mark it for maintainer review instead of substituting a tactical patch.
- During independent review, explicitly ask whether the change is the cleanest appropriately bounded root-cause solution. Green tests, a minimal diff, and a plausible local fix are insufficient without that architectural judgment.
Start with the moving source
- Read all of root
AGENTS.md, then each scoped guide for the lanes under inspection. Read the current skill for a specialized workflow instead of reproducing stale instructions:
$openclaw-repair-sweepfor bug acceptance and duplicate handling.$openclaw-testingfor actual test and CI selection.$openclaw-qa-testingfor QA Lab, scenario catalogs, and real provider lanes.$control-ui-e2efor browser and Control UI proof.$crabboxfor remote, Docker, packaged, cross-platform, and live proof.$autoreviewfor fresh independent review before publishing or landing.$openclaw-pr-maintainerfor authorized maintainer-side GitHub actions.
- Identify the actual canonical
maincheckout; a desktop or linked worktree can have a different detachedHEAD. Checkgit -C <verified-canonical-main-checkout> status -sband recordgit -C <verified-canonical-main-checkout> rev-parse HEAD. When network access is authorized, let only the orchestrator refreshorigin/main, record its full SHA, and prove the canonical checkout matches before inspecting source. Give every read-only reviewer the absolute clean checkout or its own verified exact-head worktree. Before inspection and immediately before accepting results, require both the exactgit -C <worker-checkout> rev-parse HEADand empty output fromgit --no-optional-locks -C <worker-checkout> status --porcelain=v1 --untracked-files=all --ignore-submodules=none; alternatively, read immutable files directly from the frozen Git object. Discard the complete wave item when either verification fails. Keep intentionally modified implementation worktrees separate from read-only frozen-source review. For offline work, disclose that remote freshness is unverified. Never pull, rebase, or switch another agent's checkout. - Make one requested, fresh worktree per implementation task. For manually created Git worktrees,
codex/is a branch prefix. For managedsessions_spawnworktrees, pass only a lowercase slug asworktreeName(matching[a-z0-9][a-z0-9-]{0,63}), such asqa-telemetry-prompt-cache-20261016; the managed service supplies theopenclaw/branch prefix. Never passcodex/or another branch prefix inworktreeName. Keep reviewer workers read-only. Serialize all sharedorigin/mainrefreshes through the orchestrator; pause worker fetches before repository-native PR review, preparation, or landing. After a successful landing, fetchorigin/mainagain, verify the recorded merge commit is an ancestor of that fetched ref, and only then broadcast its full immutable SHA and resume workers. Revalidate candidates against each new head without changing a sibling's active worktree. When offline, disclose that remote freshness is unverified. - Initialize or resume the user-requested Markdown report and numbered ledger. Read references/campaign-evidence.md and references/evidence-ledger.md before accepting a finding. If the operator increases the target, update the a
评论
