Skip to content

docs: slim root agent instructions and clarify testing scope - #139236

Merged
steipete merged 2 commits into
mainfrom
codex/agents-testing-guidance
Sep 5, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/agents-testing-guidance

Conversation

@steipete

@steipete steipete commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The root agent instructions mixed repository policy with repeated workflows, generic command gotchas, coding micro-style, and detailed audit implementation rules. Every task paid for that context, while the file still lacked an explicit stopping rule for successful validation.

Why This Change Was Made

Add the maintainer-requested guidance to avoid implementation-mirroring tests for reversible, low-impact changes and only broaden/repeat successful validation for new changes, failures, or unresolved concerns.

Reduce the root from 8,902 to 6,938 words (22%). Consolidate repair, compatibility, persistence, test, and PR guidance; remove generic tool syntax and prescriptive micro-style; route workflow mechanics to their owning skills. Replace detailed execution-identity rules with a mandatory full read of the existing audit reference. Add the constraints missing from that reference under Maintainer invariants, including approval-binding opt-in/absence, descriptor-safe admission, receipt liveness, and selector provenance.

User Impact

Less universal instruction context and clearer task-specific routing. Runtime behavior is unchanged. Required checks, meaningful regression/boundary coverage, source-trust rules, operator-instance protection, schema/config approvals, and exact-head landing gates remain in force.

Evidence

  • Read the complete root instructions and audit reference, then mapped removed audit constraints to retained or relocated coverage. Independent preservation review caught and corrected an approval-companion write-admission omission.
  • git diff --check passed.
  • oxfmt --check AGENTS.md docs/gateway/audit.md and targeted docs MDX validation passed using the canonical checkout's installed tooling; the task worktree has no node_modules.
  • Docs glossary validation passed for the changed documentation.
  • CLAUDE.md remains a symlink to AGENTS.md.
  • Production and test LOC deltas are zero. No new tests or runtime suite for these instruction/documentation changes.
  • Final independent Codex autoreview passed with no actionable P0–P2 findings. Exact-head CI is recorded before landing.

@clawsweeper

clawsweeper Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 5, 2026
@steipete
steipete marked this pull request as ready for review September 5, 2026 17:13
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: S and removed size: XS labels Sep 5, 2026
@steipete steipete changed the title docs: clarify proportional testing and trim repeated agent rules docs: slim root agent instructions and clarify testing scope Sep 5, 2026
@steipete

steipete commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Ready to land at 265ed88.

The root is 1,964 words smaller (8,902 → 6,938; 22%) and now explicitly scopes testing effort. Generic command gotchas and coding micro-style were removed; duplicated policy/workflows were consolidated; audit-specific invariants are retained in the existing audit reference behind a mandatory root read pointer. Production and test LOC deltas are zero.

Validation passed: git diff --check, oxfmt --check AGENTS.md docs/gateway/audit.md, check-docs-mdx.mjs AGENTS.md docs/gateway/audit.md, and changed-doc glossary validation. The dependency-free task worktree used canonical installed tooling. Independent Codex autoreview found no actionable P0–P2 findings; a separate preservation review confirmed the retained audit/approval boundaries. Native review artifacts validate.

Exact-head CI is green: https://github.com/openclaw/openclaw/actions/runs/33980894215. No runtime/live proof is needed for instruction/documentation-only changes. The latest ClawSweeper comment is an acknowledgement, with no actionable findings or Rank-up moves.

@steipete
steipete merged commit e09a265 into main Sep 5, 2026
66 checks passed
@steipete
steipete deleted the codex/agents-testing-guidance branch September 5, 2026 17:35
@steipete

steipete commented Sep 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to aniruddhaadak80/openclaw that referenced this pull request Sep 5, 2026
* commit '3e4becea5e2ce38ede69e8ecf5302805ecbfc09c':
  refactor: simplify outbound message execution context (openclaw#139107)
  fix(models): keep ordinary chat selections session-scoped (openclaw#139232)
  docs: slim root agent instructions and clarify testing scope (openclaw#139236)
  test(agents): give the sibling-drain completion wait a tolerance on slow runners (openclaw#139176)
  refactor(workboard): use canonical queries for card-tree writes (openclaw#139106)
  fix(canvas): recognize versioned macOS nodes (openclaw#138958)
  fix: load GitHub connections without a default agent (openclaw#139222)
  fix(memory): explain unsafe legacy host-event path recovery (openclaw#139195)
  refactor(talk): centralize typed voice session queries (openclaw#139103)
  fix(cli): preserve command dispatch and structured errors (openclaw#139067)
  refactor(agents): consolidate reply failure summaries (openclaw#139175)
  fix(auth): keep an unset default model unchanged during login (openclaw#139218)
  perf(media): reuse validated attachment read handles (openclaw#139168)
  refactor(channels): simplify account configuration updates (openclaw#139096)
  refactor(android): remove unused updater export root (openclaw#139198)
  fix(gateway): stop admitting post-ready producers during close (openclaw#139092)
  fix(gateway): expose agent hook completion outcomes (openclaw#139155)
  fix(config): return the saved configuration after plugin install commits (openclaw#139203)
  fix(android): reduce repeated retries to unreachable gateways (openclaw#138732)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 6, 2026
…w#139236)

* docs: clarify proportional testing and trim repeated agent rules

* docs: remove root instruction clutter and scope audit invariants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant