openclaw-testing
steipete/clawdis/.agents/skills/openclaw-testing/SKILL.md
Choose proportional OpenClaw tests/checks, diagnose failures, route environment-sensitive or release proof to its owner.
What's in it
- OpenClaw Testing
- Proof policy
- Select the proof
- Source and state boundaries
- CI failures
- Baseline and expected-failure exceptions
- Test failure policy
--- name: openclaw-testing description: Choose proportional OpenClaw tests/checks, diagnose failures, route environment-sensitive or release proof to its owner. --- # OpenClaw Testing ## Proof policy - **PR CI = default broad proof.** Change builds + focused tests pass → open ready PR. CI runs broad suites; never delay PR for pre-PR suite runs. - **Before PR, prove narrowly:** touched tests with `pnpm test <file> --maxWorkers=1`, targeted typecheck, lint, format. Prefer local proof for trusted, bounded work when dependencies and current host capacity are qualified. Local execution is optional: a focused command can still load a large compiler graph or expand to broad lanes. - **Choose remote proof deliberately.** Use PR CI for broad proof; Crabbox/Testbox may cover expensive checks, a busy or unqualified local host, another OS/device, live providers/channels, long E2E, or heavy benchmarks. Acquire only when the command is ready and capacity is granted promptly. If queued, stop only the task-owned allocation; use PR CI or a safe local scope. Keep uncovered platform-specific proof pending. Never force heavy work onto a busy machine or chain providers. Use the smallest profile proven for the selected workload. - **Never rerun or re-push just for green.** Fix real failures; read available CI failure classification before attributing red. - Prove changed contract, complete required gates, finish. Broaden/repeat only for changed inputs, failures, or named unresolved risk. - Follow scoped `AGENTS.md`; authoring/reviewing tests: use [boundary guide](../../../docs/help/testing/writing-tests.md#prove-behavior-at-the-owning-boundary) and [test-audit](../test-audit/SKILL.md). ## Select the proof - Select proof for touched contract; reuse valid proof (rerun for changed inputs or missing coverage); finish workflow's required gates within user/host limits; report unrun checks and gaps. Prove user-visible behavior through real flow when feasible; external APIs need live contract proof; isolated mock-Gateway harness = valid channel boundary proof. Docs-only: docs sanity and `git diff --check`. - Runtime defect: reproduce real entry point; rerun it + relevant siblings. - Trusted source: `pnpm changed:lanes --json`, focused tests + targeted typecheck/lint/format; `pnpm check:changed` = optional smart local check. - Public SDK/plugin contract: representative consumers, not all-plugin sweep. - Build output, lazy imports, package boundaries: include `pnpm build`. - Workflow: `git diff --check` + `pnpm check:workflows`. - Docs only: relevant docs/link/format checks + `git diff --check`; no runtime tests. - Read on demand: [local commands](../../../docs/reference/test.md), [Crabbox](../crabbox/SKILL.md), [OpenClaw remote setup](../../../docs/reference/test/remote-proof.md), [package/Docker proof](references/package-and-docker.md), [release CI](../release-openclaw-ci/SKILL.md), [plugin release matrix](../release-openclaw-plugin-testing/SKILL.md), [Docker authoring](../openclaw-docker-e2e-authoring/SKILL.md), channel skill/ [Control UI E2E](../control-ui-e2e/SKILL.md). - An isolated mock-Gateway harness is valid channel boundary proof; state live gaps. Prove user-visible behavior through the real flow when feasible; external APIs require live contract proof. Read the scoped channel/platform guide for live-channel or native-app work. Telegram claims require [Test Server userbot proof with Convex-leased credentials](../telegram-e2e-userbot/SKILL.md). Platform claims require real-device evidence; macOS permission proof requires a stable [signed app](../../../docs/platforms/mac/signing.md#permission-evidence). - Release proof: preserve candidate/Tooling SHAs; never grants publication authority. ## Source and state boundaries - Never execute untrusted contributor/fork code, wrappers, config locally. Use secretless fork CI or sanitized direct AWS through Crabbox; never credential-hydrated Testbox. Credentialed execution: maintainer approval after review required; never hydrate untrusted lease. - Isolated state + free port. Never restart, edit, or test operator Gateway/real data without explicit per-task approval. Preserve unrelated processes and shared dependency installs. - Concurrent test/check commands: separate `OPENCLAW_VITEST_FS_MODULE_CACHE_PATH` values or run serially; checks can run Vitest too. Repository wrappers only, never raw Vitest. Prepared linked worktrees: `node scripts/check-changed.mjs` and `node scripts/run-vitest.mjs <file> --maxWorkers=1` avoid pnpm reconciliation. ## CI failures - PR CI fails → `pnpm test:ci-failed <pr>`; read pre-existing/new/unknown classification. - Fix new failures; investigate unknown → `pnpm test:ci-failed <pr> --run` until selected tests pass locally → push once. - `--run` enables `OPENCLAW_NODE_TEST_PLAN_CONTINUE_ON_FAILURE=1`: collect ordinary failures across selected configs, while infrastructure failures still stop; use the same opt-in for manual focused reruns. - Pre-existing failures: [failure-table landing rule](../openclaw-pr-maintainer/references/landing.md#red-main-and-inherited-failures). Matching signatures ≠ job-name-only attribution. - Never `gh run rerun` to chase green; never local full suite for CI repair. - Bind diagnosis to exact SHA + job. Fetch failed logs once; prefer exact run/job state over stale PR rollups. - Distinguish product, harness, infrastructure, credentials, superseded-run cancellation. Snapshots pass macOS/fail CI: reproduce Linux/Node bytes before regenerating. ### Baseline and expected-failure exceptions Narrow baseline, snapshot, ignore, and expected-failure exceptions are implementer decisions only when each entry is verified against source and the PR records its reason (for example, tool-owned metadata in an upgrade snapshot while user data stays exact). Never mask a real regression or user-data change. Blanket or unverified exceptions need approval. Exact shrink-only ratchet updates are maintenance. ### Test failure policy - Failures = defects. Bounded reproduction attempt (same shard order first); identify owner; fix product, fixture, shared-state, ordering bugs. - Proven repair: add regression; cite another owner's fix when applicable. - Safe fix cannot be established/completed: record original failure, attempts, evidence, uncertainty in PR; continue under normal CI/review gates. - Unresolved failure alone neither blocks landing nor requires extra approval. Passing replay ≠ proven fix. - Never hide failures with retries, longer timeouts, weaker assertions, broader mocks, altered baselines.
More agent context in steipete/clawdis
107 other files this repository gives its agents, the first 60 shown.
Skill
- agent-transcript.agents/skills/agent-transcript/SKILL.md
- auto-qa.agents/skills/auto-qa/SKILL.md
- autoreview.agents/skills/autoreview/SKILL.md
- channel-message-flows.agents/skills/channel-message-flows/SKILL.md
- clawdtributor.agents/skills/clawdtributor/SKILL.md
- claw-score.agents/skills/claw-score/SKILL.md
- clawsweeper.agents/skills/clawsweeper/SKILL.md
- control-ui-e2e.agents/skills/control-ui-e2e/SKILL.md
- crabbox.agents/skills/crabbox/SKILL.md
- discord-clawd.agents/skills/discord-clawd/SKILL.md
- discord-e2e.agents/skills/discord-e2e/SKILL.md
- discord-user-post.agents/skills/discord-user-post/SKILL.md
- discrawl.agents/skills/discrawl/SKILL.md
- gitcrawl.agents/skills/gitcrawl/SKILL.md
- graincrawl.agents/skills/graincrawl/SKILL.md
- notcrawl.agents/skills/notcrawl/SKILL.md
- openclaw-changelog-update.agents/skills/openclaw-changelog-update/SKILL.md
- openclaw-ci-limits.agents/skills/openclaw-ci-limits/SKILL.md
- openclaw-debugging.agents/skills/openclaw-debugging/SKILL.md
- openclaw-docker-e2e-authoring.agents/skills/openclaw-docker-e2e-authoring/SKILL.md
- openclaw-ghsa-maintainer.agents/skills/openclaw-ghsa-maintainer/SKILL.md
- openclaw-live-updater.agents/skills/openclaw-live-updater/SKILL.md
- openclaw-parallels-smoke.agents/skills/openclaw-parallels-smoke/SKILL.md
- openclaw-pr-maintainer.agents/skills/openclaw-pr-maintainer/SKILL.md
- openclaw-qa-testing.agents/skills/openclaw-qa-testing/SKILL.md
- openclaw-refactor-docs.agents/skills/openclaw-refactor-docs/SKILL.md
- openclaw-release-validation.agents/skills/openclaw-release-validation/SKILL.md
- openclaw-repair-sweep.agents/skills/openclaw-repair-sweep/SKILL.md
- openclaw-secret-scanning-maintainer.agents/skills/openclaw-secret-scanning-maintainer/SKILL.md
- openclaw-test-heap-leaks.agents/skills/openclaw-test-heap-leaks/SKILL.md
- openclaw-test-performance.agents/skills/openclaw-test-performance/SKILL.md
- openclaw-update.agents/skills/openclaw-update/SKILL.md
- parallels-discord-roundtrip.agents/skills/parallels-discord-roundtrip/SKILL.md
- plugin-sdk-impact.agents/skills/plugin-sdk-impact/SKILL.md
- proof-video.agents/skills/proof-video/SKILL.md
- prototype-openclaw-tui.agents/skills/prototype-openclaw-tui/SKILL.md
- pr-simplify.agents/skills/pr-simplify/SKILL.md
- release-openclaw-announcement.agents/skills/release-openclaw-announcement/SKILL.md
- release-openclaw-ci.agents/skills/release-openclaw-ci/SKILL.md
- release-openclaw-mac.agents/skills/release-openclaw-mac/SKILL.md
- release-openclaw-maintainer.agents/skills/release-openclaw-maintainer/SKILL.md
- release-openclaw-plugin-testing.agents/skills/release-openclaw-plugin-testing/SKILL.md
- security-triage.agents/skills/security-triage/SKILL.md
- slack-e2e.agents/skills/slack-e2e/SKILL.md
- slacrawl.agents/skills/slacrawl/SKILL.md
- solid.agents/skills/solid/SKILL.md
- tag-duplicate-prs-issues.agents/skills/tag-duplicate-prs-issues/SKILL.md
- technical-documentation.agents/skills/technical-documentation/SKILL.md
- telegram-e2e-userbot.agents/skills/telegram-e2e-userbot/SKILL.md
- test-audit.agents/skills/test-audit/SKILL.md
- update-team-server.agents/skills/update-team-server/SKILL.md
- verify-release.agents/skills/verify-release/SKILL.md
- 1passwordskills/1password/SKILL.md
- apple-notesskills/apple-notes/SKILL.md
Also found in 2 other repositories
The same file, byte for byte, in the weekly crawl of public GitHub.
- clawdbot/clawdbot392k
- moltbot/moltbot392k
Discussion
Talked about elsewhere, linking to steipete/clawdis
- Add clawdis repository as submodule
YouTube · maxzherman/elements · Jan 9, 2026
- Add clawdis repository as submodule
GitHub · maxzherman/elements · Jan 9, 2026
- macOS Swift Compiler Crash in OnboardingView+Wizard.swift
YouTube · openclaw/openclaw · 2 comments · Jan 3, 2026
- macOS Swift Compiler Crash in OnboardingView+Wizard.swift
GitHub · openclaw/openclaw · 2 comments · Jan 3, 2026
- Missing TypeScript Type Definitions for Discord Actions Config
YouTube · openclaw/openclaw · 1 comments · Jan 3, 2026
- Missing TypeScript Type Definitions for Discord Actions Config
GitHub · openclaw/openclaw · 1 comments · Jan 3, 2026
- Bug: Broken @mariozechner/pi-ai Patch After Upstream Update
YouTube · openclaw/openclaw · 1 comments · Jan 3, 2026
- Bug: Broken @mariozechner/pi-ai Patch After Upstream Update
GitHub · openclaw/openclaw · 1 comments · Jan 3, 2026
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

