Repository navigation
docs(agents): dedupe root AGENTS.md and move workflow detail into owning skills - #124027
Conversation
…ing skills Root AGENTS.md loads into every session; ~9.5KB of it duplicated content already owned by skills (crabbox, openclaw-testing, release-openclaw-*, openclaw-pr-maintainer, openclaw-changelog-update) or restated the same invariant in multiple sections. Skills absorb the root-only operational details first (Testbox/Crabbox mechanics, backport default target, fork-code landing variant), then root keeps hard policy and routing only. Also fixes skill drift found during the audit: positional testbox status id, missing remote-unavailable local-fallback policy, delegated-flag reject list, and aligns the early performance dispatch fail_on_regression flag with the Full Release Validation profile gate (true stable / false beta).
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
To use Codex here, create a Codex account and connect to github. |
|
Codex review: needs changes before merge. Reviewed August 15, 2026, 1:28 AM ET / 05:28 UTC. ClawSweeper reviewWhat this changesThe PR reduces duplicated root agent guidance, moves workflow details into owning skills, and updates release and remote-proof instructions. Merge readinessThis PR remains useful, but its prior P2 blocker is still present: the revised release command always sends a blocking regression gate even though beta is documented as advisory. Priority: P2 Review scores
Verification
How this fits togetherRoot guidance routes specialized testing and release work into skills. The release skill’s performance command dispatches a workflow whose regression gate affects whether a stable or beta release is blocked. flowchart LR
Agent[Agent task] --> Root[Root guidance]
Root --> Skills[Workflow skills]
Skills --> Release[Release procedure]
Release --> Dispatch[Performance workflow dispatch]
Dispatch --> Gate[Regression gate]
Gate --> Outcome[Release evidence]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceDocs -7. Total -7 across 7 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Make the release-skill example derive the regression flag from the selected release profile, matching the canonical workflow condition. Do we have a high-confidence way to reproduce the issue? Yes: the PR command always passes true, while current main’s authoritative workflow explicitly passes false for beta. Is this the best way to solve the issue? No: the intended policy is correct, but the example must branch on release profile to implement it. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2e90d6731212. LabelsLabel justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…ing skills (openclaw#124027) * docs(agents): dedupe root AGENTS.md and move workflow detail into owning skills Root AGENTS.md loads into every session; ~9.5KB of it duplicated content already owned by skills (crabbox, openclaw-testing, release-openclaw-*, openclaw-pr-maintainer, openclaw-changelog-update) or restated the same invariant in multiple sections. Skills absorb the root-only operational details first (Testbox/Crabbox mechanics, backport default target, fork-code landing variant), then root keeps hard policy and routing only. Also fixes skill drift found during the audit: positional testbox status id, missing remote-unavailable local-fallback policy, delegated-flag reject list, and aligns the early performance dispatch fail_on_regression flag with the Full Release Validation profile gate (true stable / false beta). * docs(agents): derive fail_on_regression from release profile in dispatch example
What Problem This Solves
Root
AGENTS.mdhad grown to 75.6KB (~19k tokens) loaded into every agent session. A four-lane audit (skill-overlap comparisons againstcrabbox,openclaw-testing,release-openclaw-maintainer/-ci/-nightly,openclaw-pr-maintainer,openclaw-changelog-update, plus a whole-file internal-dedup scan) showed ~9.5KB was either verbatim-duplicated in the owning skill/doc or the same invariant restated in up to six places (doctor-owns-compat x6, SQLite-not-files x4, delete-old-path x4, close-with-proof x3).Why This Change Was Made
Root's own charter: "Telegraph style. Root rules only. Skills own workflows; root owns hard policy and routing." This change enforces it: skills absorb the operational detail first, then root keeps policy + routing. Per constraint from the repo owner, no content moved to scoped
AGENTS.mdfiles (not loaded by Codex); only dedup, clarify, or move-to-skill.$crabbox(root-unique gotchas folded in first: warmup-must-print-lease-id, SSH-key-after-restart,--stop-afterreject,bash -lc/declare, Chromium/--browser, sparse-sync reclaim, timing-JSON/portal-hang, dirty-sync hash proof, stop command form).$release-openclaw-maintainer/-nightly/-ci; orphan detail preserved in the skill (backport with no target -> newest openrelease/branch). SecretRef paragraph compressed to a pointer at its authoritative homedocs/gateway/secrets.md.scripts/prlanding pipeline compressed to the command spine +$openclaw-pr-maintainerpointer (skill absorbed the fork-codeOPENCLAW_PR_GATES_REMOTE=testboxvariant, fails-fast/exact-head-CI gate, no-idle onauto-response/check-docs); three close-with-proof bullets merged; image/video upload bullets merged.AGENTS.md; the skill is operator tooling only) but compressed ~15%.blacksmith testbox status --id(was shown positional inopenclaw-testing), remote-unavailable local-fallback policy added to both skills, delegated-flag reject lists unified,pnpm verifyremoved from the local focused-proof list (heavy -> remote),@codexadded to changelog forbidden handles (union of both lists). One deliberate policy alignment: the earlyOpenClaw Performancedispatchfail_on_regressionnow follows the Full Release Validation profile gate (truestable /falsebeta, per.github/workflows/full-release-validation.yml:947-949) — the two release skills previously contradicted each other (offvstrue).User Impact
None at runtime — agent/maintainer instruction files only. Every session gets ~2.3k tokens of context back; skill-routed workflows see the same or richer guidance at the point of use.
Evidence
git diff): every deleted clause verified surviving in root, the named skill, or the cited doc; the three initially-lost clauses and two strictness drifts it found were restored before commit.pnpm check:changedclean (docs-only lanes local: oxfmt format check, dup/coercion/dependency-pin/package-patch guards all pass);git diff --checkclean.