Skip to content

docs: give contributors one guide for OpenClaw copy and errors - #205028

Merged
roboclaw-bot merged 4 commits into
mainfrom
openclaw/writing-skill-and-glossary
Nov 25, 2026
Merged

roboclaw-bot merged 4 commits into
mainfrom
openclaw/writing-skill-and-glossary

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Contributors writing OpenClaw messages and docs have no single guide covering both surfaces. The existing documentation skill does not explain how to name a detected failure, choose a useful recovery action, or distinguish a session creator from its assigned owner.

User Impact

Contributors get one writing guide, a searchable product glossary, and a focused checker for extracted prose. This PR does not change production UI or error messages. The example rewrites are labeled as proposals.

Why This Change Was Made

The writing skill replaces the general technical-documentation skill while retaining its useful docs and instruction-file guidance. A single glossary supplies both lookup and meaning-specific checks. The proof guides require captures of changed error, empty, and loading states, including real channel link forms.

The checker flags semicolons, ellipses, and competing terms for an explicitly selected meaning. It does not infer meaning, scan repository source, or add repository-wide CI wiring.

Evidence

All 61 retained historical quotations matched their pinned source locations. Three focused tests passed, including the regression that prevented formatted table headers from being counted as terms. Script lint, changed-file formatting and MDX, full repository MDX (1,454 files), and repository docs formatting (1,442 files) passed on the committed tree.

Local autoreview did not run: its temporary-directory isolation preflight stopped before reviewer launch, and the requester waived that local step. No independent review pass is claimed. Required hosted reviews and protected-branch checks still apply. No live UI or channel capture was run because the change affects contributor guidance and local writing tools, not product copy.

Requested and workshopped by @Patrick-Erichsen.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 25, 2026 02:09
Worked on by:
- @Patrick-Erichsen

Co-authored-by: Patrick-Erichsen <[email protected]>
OpenClaw-Publication: 507ba78a-5047-4804-8fa4-aa01e4ae8c26
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 25, 2026 02:09
@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 25, 2026
roboclaw-bot and others added 2 commits November 25, 2026 02:15
Worked on by:
- @Patrick-Erichsen

Co-authored-by: Patrick-Erichsen <[email protected]>
OpenClaw-Publication: 9ace1c63-73f2-4268-9248-ae0e1aee1355
@clawsweeper clawsweeper Bot added the clawsweeper:intake:docs Preliminary submission classification; full source review pending. label Nov 25, 2026
@roboclaw-bot
roboclaw-bot merged commit 5752688 into main Nov 25, 2026
84 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/writing-skill-and-glossary branch November 25, 2026 02:30
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:docs Preliminary submission classification; full source review pending. labels Nov 25, 2026
@clawsweeper

clawsweeper Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR replaces the technical-documentation skill with an OpenClaw writing guide, product glossary, local copy checker, and expanded proof guidance.

Example: A contributor checks “Remove the saved sign-in.” with the glossary meaning “account”.

  • Before: The documentation skill provides no meaning-specific terminology check.
  • After: The copy checker flags “saved sign-in” and supplies the glossary definition of “account”.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful consolidation with supporting validation, but two concrete documentation defects remain.
Proof confidence 🌊 off-meta tidepool Not applicable: This PR changes contributor guidance and local writing tools without changing shipped product copy; the body reports focused script tests and documentation validation.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Docs · Worth it: Yes · Fix scope: Complete
User problem: Contributors lack one guide for product copy, recovery wording, documentation structure, and consistent product terminology.
Reason: The maintainer-authored direction has clear contributor value and consolidates the previous skill rather than creating a competing writing owner.

Merge readiness

⛔ Needs changes before merge - 2 items remain

This PR provides a useful, maintainer-directed writing guide, but its unavailable source-owner requirement and uncited new instruction rules need correction before merge.

Reviewed head: 9f720de1e1dfdc9a206989e5507074f311a7f5d8

Before merge

  • [P2] Point run-failure edits at an available source owner (P2) - A contributor editing an existing run-failure message is required to select facts from src/shared/failure-causes.ts and reconcile an unspecified errors change before proceeding. That file is absent from both this PR and fetched main, while src/agents/failover/assistant-request-failure-copy.ts already owns classified rendering. This makes an ordinary copy edit depend on unavailable architecture. Reference the existing owner and label the proposed shared cause list as future work, or identify and land the actual prerequisite before making it mandatory.
  • [P2] Cite incidents for the newly mandatory writing rules (P2) - The guide introduces mandatory punctuation bans, including a requirement to enforce them in copy lint, without citing the incident motivating those requirements. Root AGENTS.md and the preserved instruction-rules reference explicitly require a PR, issue, or commit citation for new rules. Historical quotations in the examples show punctuation usage, but do not identify the incident establishing these mandates. Add the supporting incident references to the new rules, or remove unsupported requirements.

Findings

  • [P2] [P2] Point run-failure edits at an available source owner — .agents/skills/openclaw-writing/references/error-messages.md:8
  • [P2] [P2] Cite incidents for the newly mandatory writing rules — .agents/skills/openclaw-writing/references/sentences.md:54-55
Agent review details

How this fits together

Repository contributors and agents consume the writing skill, consult its references and glossary, and optionally pass extracted prose to local lookup and checking scripts.

flowchart TD
  A[Contributor task] --> B[OpenClaw writing skill]
  B --> C[Writing references]
  B --> D[Product glossary]
  D --> E[Lookup and copy checker]
  C --> F[Revised copy or documentation]
  E --> F
  F --> G[Existing review and proof workflow]
Loading

Technical review

Best possible solution:

Keep the consolidated guide, point implementation instructions at existing owners, and cite the incidents supporting its new mandatory rules.

Do we have a high-confidence way to reproduce the issue?

Source inspection establishes that following the run-failure instructions requires a file absent from both reviewed revisions; no target code was executed.

Is this the best way to solve the issue?

One writing owner with a shared glossary is appropriate, and the small local scripts avoid repository-wide enforcement; the guide should remain usable against the source tree where it lands.

Full review comments:

  • [P2] [P2] Point run-failure edits at an available source owner — .agents/skills/openclaw-writing/references/error-messages.md:8
    A contributor editing an existing run-failure message is required to select facts from src/shared/failure-causes.ts and reconcile an unspecified errors change before proceeding. That file is absent from both this PR and fetched main, while src/agents/failover/assistant-request-failure-copy.ts already owns classified rendering. This makes an ordinary copy edit depend on unavailable architecture. Reference the existing owner and label the proposed shared cause list as future work, or identify and land the actual prerequisite before making it mandatory.
    Confidence: 0.99
  • [P2] [P2] Cite incidents for the newly mandatory writing rules — .agents/skills/openclaw-writing/references/sentences.md:54-55
    The guide introduces mandatory punctuation bans, including a requirement to enforce them in copy lint, without citing the incident motivating those requirements. Root AGENTS.md and the preserved instruction-rules reference explicitly require a PR, issue, or commit citation for new rules. Historical quotations in the examples show punctuation usage, but do not identify the incident establishing these mandates. Add the supporting incident references to the new rules, or remove unsupported requirements.
    Confidence: 0.9

Overall correctness: patch is incorrect
Overall confidence: 0.93

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against bf4c7d3e98a6.

Provenance checked

  • Documentation skill replacement changes intended behavior with a stated reason (0dabb70: Adopt a shared technical-documentation skill while preserving OpenClaw-specific authoring guidance.)
  • Scoped documentation work keeps the original intent (f627f10: Prevent scoped documentation reviews from expanding into unrelated repository audits.)
  • Visual proof guidance changes intended behavior with a stated reason (48cd549: Make visual fixes inspectable through clean and annotated comparisons, with additional comparisons reserved for materially different effects.)
  • Root error-recovery wording changes intended behavior with a stated reason (872d5b2: The root charter required errors to name a next step; the replacement guide supplies cause-specific recovery guidance rather than retaining that blanket wording.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

Acceptance criteria:

  • git ls-tree HEAD src/agents/failover/assistant-request-failure-copy.ts
  • pnpm docs:check-mdx
  • pnpm docs:check-links
  • pnpm format:docs:check
  • git diff --check

What I checked:

  • Pinned introduced change: Reviewed the introduced hunks and deleted skill contents against the verified merge base; the runtime files appearing only in endpoint drift are outside this PR's edits. (9f720de1e1df)
  • Unavailable required owner: The new guide requires src/shared/failure-causes.ts, but that path exists in neither the reviewed head nor fetched main; the existing classified failure renderer is src/agents/failover/assistant-request-failure-copy.ts. (.agents/skills/openclaw-writing/references/error-messages.md:8, bf4c7d3e98a6)
  • Applicable instruction contract: Root policy requires new instruction rules to cite an incident; the replacement skill preserves this contract while introducing mandatory writing rules without corresponding incident citations. (AGENTS.md:3, 9f720de1e1df)
  • Original documentation intent: docs: replace OpenClaw docs skill and add plugin permissions guide #85180 established the general documentation skill with an OpenClaw-specific overlay; this PR explicitly replaces that arrangement and retains page types, source verification, preservation, and validation guidance. (.agents/skills/technical-documentation/SKILL.md:13, 0dabb7010bc7)
  • Discussion and owner direction: The complete public body credits Patrick-Erichsen's request and workshop; the author has COLLABORATOR association, and the public comments add no contrary direction. Optional Team session links were not treated as behavior proof. (9f720de1e1df)
  • Validation and checkout: The exact-head openclaw/ci-gate check now reports success, the introduced diff passes whitespace checking, and the checkout remains clean; target scripts and tests were not executed during this read-only review. (9f720de1e1df)

Likely related people:

  • Peter Steinberger: Raw commit 529bd83 adds .agents/skills/openclaw-pr-maintainer/references/media.md:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 529bd8331b0e; files: .agents/skills/openclaw-pr-maintainer/references/media.md)

PR surface

Tests +73, Docs +304, Other +100. Total +477 across 30 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 73 0 +73
Docs 25 1114 810 +304
Config 0 0 0 0
Generated 0 0 0 0
Other 4 110 10 +100
Total 30 1297 820 +477

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 24, 2026, 9:29 PM ET / November 25, 2026, 02:29 UTC.

obviyus added a commit that referenced this pull request Nov 25, 2026
…uled coverage (#205079)

## Problem

`test/scripts/ci-scheduled-coverage.test.ts` fails on `main`. #205028 added `.agents/skills/openclaw-writing/scripts/writing.test.mjs`, a standalone `node:test` self-test of a skill. No scheduled runner or coverage exception lists it, so "keeps live and non-Vitest tests out of the secretless every-file lane" reports it. Every PR whose CI selects that test fails, for example #205022.

## Fix

List the writing skill's script self-tests in `SCHEDULED_COVERAGE_EXCEPTIONS`, with the same pattern and reason as the existing `plugin-sdk-impact` skill self-tests.

## Impact

CI only. No product behavior changes.

## Evidence

`ocx test test/scripts/ci-scheduled-coverage.test.ts`:
- on `main` `9215601305`: 1 failed, 2 passed
- with this change: 3 passed

The same failure reproduced on `main` `ad96c24` (AWS run `run_e9c4578580e1fc461be523d79cbb2865`).

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 26, 2026
…uled coverage (openclaw#205079)

## Problem

`test/scripts/ci-scheduled-coverage.test.ts` fails on `main`. openclaw#205028 added `.agents/skills/openclaw-writing/scripts/writing.test.mjs`, a standalone `node:test` self-test of a skill. No scheduled runner or coverage exception lists it, so "keeps live and non-Vitest tests out of the secretless every-file lane" reports it. Every PR whose CI selects that test fails, for example openclaw#205022.

## Fix

List the writing skill's script self-tests in `SCHEDULED_COVERAGE_EXCEPTIONS`, with the same pattern and reason as the existing `plugin-sdk-impact` skill self-tests.

## Impact

CI only. No product behavior changes.

## Evidence

`ocx test test/scripts/ci-scheduled-coverage.test.ts`:
- on `main` `4b8201379d`: 1 failed, 2 passed
- with this change: 3 passed

The same failure reproduced on `main` `34773c7` (AWS run `run_e9c4578580e1fc461be523d79cbb2865`).

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant