Skip to content

Commit f6ed40d

Browse files
authored
docs(agents): fact-check, disambiguate, and further slim root AGENTS.md (#124053)
* docs(agents): fact-check, disambiguate, and further slim root AGENTS.md Second cleanup pass over root AGENTS.md driven by three audit lanes (fact-check vs repo, confusion/contradiction hunt, cut candidates): - Fact fixes: delete the @buape/carbon pin rule (dependency no longer exists in any manifest or pnpm-lock.yaml); fix the reply-format example to a real file (extensions/telegram/src/bot-access.ts). - Confusion fixes: define checkout classes once in Commands and merge the three conflicting test/check bullets onto them; state that the mock-gateway harness verdict satisfies channel-visible proof as an explicit exception to mandatory UI screenshots; complete the Map scoped-guide list (src/tui, test) and note deeper subtree guides; inline the dangling 'Start-section evidence bar' reference; gate issue-closing and public-comment posting on explicit authority; scope the NO_REPLY rule to ClawSweeper hook sessions; clarify auto-provisioning vs Architecture's compat-fallback deletion rules. - Cuts/moves: scripts/pr gotchas, throttle-lock recovery, non-main merge procedure, media-upload mechanics, and merge-ref-race recognition into $openclaw-pr-maintainer; QA private build flag into $openclaw-qa-testing; release-branch CI dispatch refs and release-ci-summary limits into $release-openclaw-ci; Vitest ENOTEMPTY race into $openclaw-testing; WebVNC screenshot etiquette into $crabbox; delete bullets duplicated by those skills (prompt snapshots, QA YAML) and the obsolete rebrand-doctor bullet; compress the preflight, Codex gate, SQLite-additive, ClawSweeper, and Execution Identity wording without dropping any invariant. * docs(agents): exempt extended-stable canonical dispatch from the target_context_ref rule
1 parent f635914 commit f6ed40d

6 files changed

Lines changed: 57 additions & 42 deletions

File tree

‎.agents/skills/crabbox/SKILL.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ Before handoff, prove CLI/app from neutral `~`:
338338
```
339339

340340
Visible desktop alone proves nothing. Keep browser windowed unless capture task.
341+
Before sharing a WebVNC link, screenshot first; verify the real app/path works
342+
and the target UI is not broken.
341343
Never commit proof assets to product repo.
342344

343345
## Failure Triage

‎.agents/skills/openclaw-pr-maintainer/SKILL.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,11 @@ gh search issues --repo openclaw/openclaw --match title,body --limit 50 \
356356
- Leave a review conversation unresolved only when reviewer or maintainer judgment is still needed.
357357
- Before landing any PR with non-trivial code changes, run fresh `$autoreview` until no accepted/actionable findings remain; prior CI, ClawSweeper, or manual review is not a substitute. Skip only for truly trivial/docs-only changes or when the user explicitly opts out.
358358
- When an agent is landing or merging a PR targeting `main`, use only the repo-native `scripts/pr` wrapper: run `scripts/pr review-init <PR>`, follow its emitted checkout/guard guidance, initialize and complete review artifacts with `scripts/pr review-artifacts-init <PR>`, validate them with `scripts/pr review-validate-artifacts <PR>`, then run `OPENCLAW_TESTBOX=1 scripts/pr prepare-run <PR>` and `scripts/pr merge-run <PR>`. The Testbox flag is mandatory for agents: it verifies hosted CI/Testbox on the current head or reuses a patch-identical pre-rebase run green within 24 hours instead of running full `pnpm` gates locally. `prepare-run` fails fast; invoke only after exact-head CI is complete and green, and do not idle on `auto-response` or `check-docs`. For owner-approved reviewed fork code without hosted Testbox, use `OPENCLAW_PR_GATES_REMOTE=testbox` instead. Do not rebase only because `main` advanced; behind-main drift is advisory unless strict drift is explicitly enabled, while GitHub still blocks conflicts.
359+
- `scripts/pr` gotchas: subcommands require a PR number (no subcommand `--help` placeholder). Artifacts preserve template enum values with evidence detail in summaries; validate before prepare, from PR-head mode (moving main invalidates the main-baseline guard). Review flow: checkout main baseline, then PR, before artifact validation. After every PR push, rerun `scripts/pr review-init`; checkout alone leaves a stale guard SHA. Locally unset `GITHUB_TOKEN`, `GH_TOKEN`, `HOMEBREW_GITHUB_API_TOKEN`; ambient tokens can select an exhausted or wrong identity. Review JSON: land-ready recommendation `READY FOR /prepare-pr`, `issueValidation.status=valid`; never `APPROVE`. After `scripts/pr merge-run` removes its worktree, `cd` to a persistent repo before follow-up commands.
360+
- After GitHub throttling, check core quota before `scripts/pr prepare-run` or `merge-run`. A failed operation can retain its lock; verify no child remains, then recover only with its emitted token.
361+
- Non-main PRs: do not run `scripts/pr prepare-run` or `merge-run`; they diff against `main`. Use review artifacts, exact base-head CI, revalidate `headRefOid`, then `gh pr merge --match-head-commit <verified-sha>`.
362+
- PR-create merge-ref race recognition: the dropped/killed pull_request CI run appears as `startup_failure`/`BuildFailed` (`(Unknown event)`) and is not rerunnable — close/reopen or wait for the hourly `pr-ci-sweeper`; rerun attempts are wasted.
363+
- PR/issue media upload: 422 = unsupported type; 404 = bad repo id/no push. Video: `content_type` `video/mp4` or `video/webm`; embed the returned URL on its own bare line — GitHub renders a player, `![]()` does not; transcode Playwright webm via `ffmpeg -i in.webm -c:v libx264 -pix_fmt yuv420p out.mp4` for broad playback. Non-media artifacts or endpoint failure: Crabbox artifact publishing plus the manifest URL.
359364
- Use standard Git commands and stage only the files intended for each commit.
360365
- Keep commit messages concise and action-oriented.
361366
- Group related changes; avoid bundling unrelated refactors.

‎.agents/skills/openclaw-qa-testing/SKILL.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ pnpm openclaw qa character-eval \
158158
```
159159

160160
- Runs local QA gateway child processes, not Docker.
161+
- Packaged `pnpm build` omits QA Lab + qa-channel by design (source-checkout
162+
only). To exercise `openclaw qa`/qa-channel from a built dist, build with
163+
`OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build` (emits `dist/plugin-sdk/qa-lab.js`,
164+
`qa-runtime.js`, `dist/extensions/{qa-lab,qa-channel}`) or run via `pnpm dev`.
161165
- With no model flags, character eval uses its current source-defined candidate,
162166
judge, thinking, and fast defaults.
163167
- Repeat `--model provider/model,thinking=<level>[,fast|,no-fast|,fast=<bool>]`

‎.agents/skills/openclaw-testing/SKILL.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ pnpm test <path-or-filter> -- --reporter=verbose
185185
OPENCLAW_VITEST_MAX_WORKERS=1 pnpm test <path-or-filter>
186186
```
187187

188+
Do not run independent `pnpm test`/Vitest commands concurrently in one
189+
worktree; the Vitest cache races with `ENOTEMPTY`. Group one command or use
190+
distinct `OPENCLAW_VITEST_FS_MODULE_CACHE_PATH` values.
188191
Use targeted file paths whenever possible. Avoid raw `vitest`; use the repo
189192
`pnpm test` wrapper so project routing, workers, and setup stay correct. If raw
190193
Vitest is unavoidable, use `vitest run ...`; bare `vitest ...` starts local watch

‎.agents/skills/release-openclaw-ci/SKILL.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,16 @@ node scripts/full-release-validation-at-sha.mjs \
166166
--target-ref release/YYYY.M.PATCH
167167
```
168168

169+
For regular `release/*` validation, never raw-dispatch the workflow without
170+
`target_context_ref` (the helper's `--target-ref` records it); the
171+
extended-stable `.33+` canonical-branch dispatch below is the one exception —
172+
there the SHA-pinned helper's `release-ci/*` identity is rejected, so it
173+
dispatches without `target_context_ref` by design. Trusted-workflow
174+
release-branch CI passes `target_ref` + `release_candidate_ref`; never
175+
`release_gate` there — it requires workflow head == target. (The PR-head
176+
ci.yml fallback below is a different dispatch and does use
177+
`release_gate=true`.)
178+
169179
For immutable workflow proof on a moving `main`, use
170180
`pnpm ci:full-release --sha <code-sha> --target-ref
171181
release/YYYY.M.PATCH`. Its canonical `release-ci/*` ref keeps evidence reuse
@@ -229,6 +239,8 @@ For a one-shot snapshot:
229239
node scripts/release-ci-summary.mjs <full-release-run-id>
230240
```
231241

242+
`release-ci-summary` accepts Full Release Validation parent runs only.
243+
Diverged release-branch logs: `--first-parent` plus a bounded count.
232244
Stop watchers before ending the turn or switching strategy.
233245

234246
## Failure Triage

0 commit comments

Comments
 (0)