Skip to content

Commit 24435f5

Browse files
committed
docs(agents): harden live-test and capture-inspection requirements
Live verification of user-facing behavior is the default before landing, with skips requiring a stated infeasibility in the PR; captured screenshots/videos count as evidence only after the agent inspects them in frame.
1 parent 313cb13 commit 24435f5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎AGENTS.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Skills own workflows; root owns hard policy and routing. Product direction and m
1313
- Dependency work: direct inspection mandatory when feasible — read upstream source/docs/types first. External API work: live test required; search for additional proof; cite current proof. No API/default/error/timing claims from assumptions, wrappers, or memory.
1414
- Codex hard gate: the acting agent must personally inspect sibling `../codex` source (clone `https://github.com/openai/codex.git` there if missing) for the exact protocol/runtime behavior before any verdict, comment, approval, merge recommendation, code change, or `proof sufficient` claim. Subagent reports, PR text, OpenClaw wrappers, generated schemas, memory, and prior bot reviews do not satisfy it — no direct `../codex` check means no Codex verdict. Cite Codex files/lines checked.
1515
- Provider model changes: update the owning plugin manifest; after landing, verify `openclaw/catalog/models/v1/catalog.json` refreshes and dispatch the catalog publish workflow when needed.
16-
- Live-verify when feasible. Never print secrets.
16+
- Live-verify is the default, not a nicety: user-facing behavior gets live-tested through the real flow before landing. Skipping requires a concrete infeasibility stated in the PR, not convenience. Never print secrets.
1717
- Missing deps in a normal checkout: `pnpm install`, retry once, then report first actionable error. Worktrees: see Commands — never reconcile there.
1818
- CODEOWNERS: maint/refactor/tests ok. Larger behavior/product/security/ownership: owner ask/review.
1919
- Product/docs/UI/changelog wording: "plugin/plugins"; `extensions/` is internal.
@@ -185,6 +185,7 @@ Review invariants; full doctrine: `docs/gateway/audit.md`.
185185
- Proof routing: source trust first, execution host second, proof size/capabilities third. Trusted source runs focused tests and cheap static probes on any prepared host. A dedicated Linux worker also runs suitable full suites, builds, Docker/packaging, E2E/live work, and typecheck/lint fan-out directly when it has the required capability and credentials. On a workstation, or when another OS/device/capability/isolation boundary is required, heavy proof goes to Crabbox/Testbox (trusted maintainer default: Blacksmith Testbox); acquire the lease lazily, reuse it, and stop it before handoff. Never nest Crabbox only to replace one dedicated Linux worker with another. Remote backend unavailable: trusted-source proof falls back to the current suitable host (from a normal checkout when the worktree cannot run pnpm); note fallback + reason. Lease/procedure mechanics: `$crabbox`.
186186
- Untrusted (contributor/fork) source: never run its scripts, tests, checks, wrappers, config, or package hooks locally, regardless of proof size, and never fall back to local. Use secretless fork CI or the sanitized direct AWS Crabbox procedure in `$crabbox`, never a credential-hydrated Testbox. Maintainer approval of credentialed execution after review makes it trusted; an explicit owner/maintainer instruction to land named, reviewed PRs is that approval — do not ask twice.
187187
- Visual proof: use a real isolated browser/desktop on the current dedicated worker when capable; otherwise use Crabbox. Set up like a user, then screenshot-verify. No harness/bypass/shortcut unless explicitly asked.
188+
- Captured screenshots/videos are proof only after the agent has looked at them: open every capture, confirm the asserted state is actually visible in frame, and re-shoot when it is not. An uninspected capture is not verification and must not be attached as evidence.
188189
- UI-visible change (Control UI, native app, or user-visible chat/session behavior): before/after screenshots or a short video are mandatory PR evidence, captured from a real running surface and sanitized. Exception: channel-visible chat behavior may satisfy the real-behavior-proof gate via the mock-gateway harness verdict (ClawSweeper section) when it covers the changed path; live proof is stronger. UI proof infeasible: state the exact blocker in the PR.
189190
- Gateway-behavior change provable in the Control UI (session lifecycle, steering/queue, subagent flows, delivery states): prove on a live dev gateway — isolated `OPENCLAW_STATE_DIR`, own port, never the operator's gateway — and attach a video of the flow. Default recorder: Playwright `recordVideo` against the dashboard URL; keep the driving script's waits on asserted UI states, not sleeps.
190191
- Repo-native PR worktrees may omit `node_modules`; prove remotely, then use `git commit --no-verify`.

0 commit comments

Comments
 (0)