Skip to content

docs: keep ClawHub guidance in its canonical source - #138157

Merged
steipete merged 1 commit into
mainfrom
steipete/optimistic-poitras-ade2b5
Sep 4, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/optimistic-poitras-ade2b5

Conversation

@steipete

@steipete steipete commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Related: #138121 — restores section links and unique maturity anchors, including the macOS caller that exposed this competing-source problem.

Additional instructions

Maintainer edits are enabled through this branch in the upstream repository.

What Problem This Solves

Resolves a problem where contributors editing the checked-in ClawHub CLI and publishing pages would see that guidance silently replaced during docs publication. The local copies also advertised headings absent from the real published input: the macOS skills page linked to /clawhub/cli#release-trust until #138121 moved that caller to OpenClaw-owned content.

Why This Change Was Made

Keep the existing ownership boundary: openclaw/clawhub/docs remains the only source for /clawhub/**. Remove the two competing OpenClaw pages after comparing every useful section against current ClawHub input and existing OpenClaw references. Preserve OpenClaw-specific install, update, verification, removal, refresh, and trust guidance in its existing CLI references; move the unique owner-and-role primer into the existing skill-publishing guide. Document the mirror boundary and require real mirror input for anchor checks.

The publishing implementation, public routes, navigation, and runtime behavior are unchanged. Keeping or regenerating a second local copy would preserve the source conflict; overriding upstream publication with OpenClaw pages would change ownership and discard the substantially richer canonical references.

User Impact

Readers keep the canonical ClawHub CLI and publishing pages at the same URLs. OpenClaw-specific workflows remain available and linked, while contributors have an explicit source-of-truth rule instead of editing pages that never reach publication. Unsupported tarball-URL publishing, a scope-invalid package-transfer example, and an obsolete canonical skill URL are not copied forward.

Material Preserved location
OpenClaw skill install/update/verify, workspace/global targeting, trust, uninstall, and watcher refresh docs/cli/skills.md
OpenClaw plugin installation/update and release trust docs/cli/plugins.md
Personal/organization owners and publisher roles docs/tools/creating-skills.md#publishing-to-clawhub
Standalone CLI commands, publishing, transfer, rename, and registry workflows Canonical ClawHub CLI and publishing pages

Evidence

Canonical ClawHub input was rechecked at ab27fba9b51bff8fbd4791511d3eba0725890dc9; the existing sibling checkout was not modified. The ClawSweeper worker could not reach that source because of its DNS environment. The maintainer independently fetched both publisher source files at the pinned SHA and compared their complete bytes with the audited snapshot; both match exactly.

Publisher-role evidence resolving that review gap:

  • Role ranking: publisher: 1, admin: 2, owner: 3; a role is allowed when its rank is at least the required role's rank.
  • Publishing-target resolution: defaults the minimum role to publisher, ensures a personal publisher, and requires an organization membership satisfying that minimum.
  • Both the skill publish caller and the package publish caller explicitly request minimumRole: "publisher". Thus all three organization roles satisfy the publishing role requirement; no authorization behavior is changed.

Before repair, actual scripts/docs-sync-publish.mjs assembly removed the locally present release-trust heading while retaining the macOS caller. After removing the duplicate source files, full publish assembly produces a byte-identical ClawHub subtree: the canonical pages, their richer content, and their published routes are unchanged.

Validation on candidate d7a75cebc861ef7554dfaa3694fa8bc1c6d78f9f, based on the landed anchor repair, uses OPENCLAW_DOCS_SYNC_CLAWHUB_REPO pointing at that actual ClawHub snapshot, not local substitute pages:

  • pnpm docs:check-links:anchors: 8,362 links, 0 broken links; all 22 ClawHub assets assembled from the canonical input.
  • pnpm docs:check-mdx: 751 files passed.
  • pnpm docs:list: passed.
  • node_modules/.bin/oxfmt --check --threads=1 docs/AGENTS.md docs/.i18n/README.md docs/.i18n/glossary.zh-CN.json docs/cli/skills.md docs/cli/plugins.md docs/tools/creating-skills.md: passed.
  • pnpm docs:check-i18n-glossary --base 12b79a9200d9781a16f73e50cee2a2e878ee1150: passed.
  • git diff --check 12b79a9200d9781a16f73e50cee2a2e878ee1150...HEAD: passed.
  • Actual publisher assembly plus recursive comparison: canonical ClawHub subtree is byte-identical before/after removal of the competing sources.
  • Independent Codex autoreview: scoped-clean, no accepted/actionable findings. The subsequent rebase only absorbed the already-landed identical heading/caller fix.

Production LOC: +0/-0. Tests: +0/-0. Documentation/glossary: +28/-227 across eight files.

No production or test code changes. No configuration, schema, dependency, runtime, or mirror ownership change. No new unit test is added because the repair changes authored documentation only; the existing link parser and actual publisher assembly provide direct regression proof.

Remove competing local CLI and publishing pages while preserving OpenClaw-specific workflows and the owner primer in existing guides. Keep the ClawHub mirror and published routes unchanged, and document real-mirror anchor validation. Related: #138121.
@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review September 4, 2026 09:53
@steipete steipete self-assigned this Sep 4, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS maintainer Maintainer-authored PR labels Sep 4, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 6:02 AM ET / 10:02 UTC.

ClawSweeper review

What this changes

This PR removes duplicate ClawHub CLI and publishing pages from OpenClaw docs, documents the external canonical source, and keeps OpenClaw-specific guidance linked from local docs.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open for normal maintainer review. Current main still retains the duplicate source pages, while the existing publish flow replaces that subtree from ClawHub; the introduced cleanup matches that boundary and has no concrete regression finding.

Priority: P3
Reviewed head: d7a75cebc861ef7554dfaa3694fa8bc1c6d78f9f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused, source-aligned documentation cleanup with no actionable correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required because this PR only changes files under docs/.
Evidence reviewed 7 items Publisher ownership boundary: The sync workflow checks out openclaw/clawhub and passes that checkout to the docs check, establishing that published ClawHub routes are assembled from the external source.
Published-tree behavior: The publisher removes the target clawhub subtree, copies documentation from the supplied ClawHub checkout, and invokes that operation after copying OpenClaw docs.
Current-main behavior: The fetched current-main revision still contains both locally authored ClawHub pages, so the central cleanup is not already implemented.
Findings None None.
Security None None.

How this fits together

OpenClaw documentation is copied to the public docs publisher, which then replaces its ClawHub subtree with documentation from the separate ClawHub repository. The changed OpenClaw pages direct users to those published routes while retaining local installation and skill-authoring instructions.

flowchart LR
  A[OpenClaw source docs] --> C[Docs publish sync]
  B[ClawHub source docs] --> C
  C --> D[Replace ClawHub docs subtree]
  D --> E[Published documentation]
  E --> F[Users and contributors]
Loading

Before merge

  • Resolve merge risk (P1) - The pinned external ClawHub snapshot could not be independently inspected because neither a sibling checkout nor GitHub DNS was available; this leaves the added publisher-role wording dependent on the PR's stated external verification.
Agent review details

Security

None.

PR surface

Docs -199. Total -199 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 8 28 227 -199
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 28 227 -199

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Maintain one ClawHub documentation source, preserve OpenClaw-specific tasks in the local CLI and skill-authoring guides, and let the existing exact-source docs check validate published routes and anchors.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Maintain one ClawHub documentation source, preserve OpenClaw-specific tasks in the local CLI and skill-authoring guides, and let the existing exact-source docs check validate published routes and anchors.

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

Not applicable: this PR corrects documentation source ownership rather than a runtime bug. Current main retains the duplicate files, and the publisher source establishes how their published routes are supplied.

Is this the best way to solve the issue?

Yes for the ownership problem: the publisher already replaces the ClawHub subtree, so deleting competing source copies is the narrow canonical repair. The external snapshot content itself could not be independently read in this environment.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e4bba0813e7a.

Labels

Label changes:

  • add P3: This is a focused documentation ownership cleanup without runtime, configuration, persistence, or security behavior changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Label justifications:

  • P3: This is a focused documentation ownership cleanup without runtime, configuration, persistence, or security behavior changes.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required because this PR only changes files under docs/.

Evidence

What I checked:

  • Publisher ownership boundary: The sync workflow checks out openclaw/clawhub and passes that checkout to the docs check, establishing that published ClawHub routes are assembled from the external source. (.github/workflows/docs.yml:40, d7a75cebc861)
  • Published-tree behavior: The publisher removes the target clawhub subtree, copies documentation from the supplied ClawHub checkout, and invokes that operation after copying OpenClaw docs. (scripts/docs-sync-publish.mjs:725, d7a75cebc861)
  • Current-main behavior: The fetched current-main revision still contains both locally authored ClawHub pages, so the central cleanup is not already implemented. Public docs: docs/clawhub/cli.md. (docs/clawhub/cli.md:1, e4bba0813e7a)
  • Surviving OpenClaw guidance: The changed skills, plugins, and skill-authoring docs retain OpenClaw-owned workflows and link to the canonical ClawHub routes rather than recreating their content. Public docs: docs/cli/skills.md. (docs/cli/skills.md:18, d7a75cebc861)
  • Existing sync coverage: The existing docs-sync test constructs an external ClawHub docs input and exercises the publish assembly path; the PR does not change that implementation or test. (test/scripts/docs-sync-publish.test.ts:39, d7a75cebc861)
  • Documentation history: History shows Peter Steinberger as the recent owner of the publish-sync and adjacent documentation work, with prior ClawHub page work by Patrick Erichsen. (scripts/docs-sync-publish.mjs:725, 6d763ee148d4)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Patrick Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready source review for d7a75cebc861ef7554dfaa3694fa8bc1c6d78f9f.

The two OpenClaw ClawHub pages were non-authoritative: the publisher replaces that subtree from openclaw/clawhub/docs. This patch removes the competing files, preserves OpenClaw-specific workflows in the existing CLI docs, and moves the unique owner primer into the skill-publishing guide. It does not change mirror ownership, published routes, navigation, or runtime behavior.

Canonical input: openclaw/clawhub@ab27fba9b51bff8fbd4791511d3eba0725890dc9. Actual full publish assembly produces a byte-identical ClawHub subtree before and after removal of the competing sources.

Exact-head local proof, using OPENCLAW_DOCS_SYNC_CLAWHUB_REPO pointed at that snapshot:

  • pnpm docs:check-links:anchors: 8,362 checked; 0 broken.
  • pnpm docs:check-mdx: 751 files passed.
  • pnpm docs:list: passed.
  • node_modules/.bin/oxfmt --check --threads=1 docs/AGENTS.md docs/.i18n/README.md docs/.i18n/glossary.zh-CN.json docs/cli/skills.md docs/cli/plugins.md docs/tools/creating-skills.md: passed.
  • pnpm docs:check-i18n-glossary --base 12b79a9200d9781a16f73e50cee2a2e878ee1150: passed.
  • git diff --check 12b79a9200d9781a16f73e50cee2a2e878ee1150...HEAD: passed.

Independent Codex autoreview is scoped-clean. Native review artifacts validate with zero findings and READY FOR /prepare-pr. Production LOC +0/-0; tests +0/-0; documentation/glossary +28/-227.

Exact-head CI run 33860549717 completed successfully, including check-docs and the required openclaw/ci-gate. The native exact-head watcher is green; earlier draft-run cancellations are superseded, not active failures.

ClawSweeper's one review gap is resolved: its worker could not independently read the external input because GitHub DNS was unavailable there. From this maintainer environment I fetched the full publisher-role and publish-target source files at the pinned SHA above and compared them byte-for-byte with the audited snapshot; both match. The PR body now contains the permanent source links and caller evidence:

That directly verifies the moved owner primer and its three publishing roles. No source change or ownership-policy exception is needed. ClawSweeper reported no correctness or security findings; its source-access limitation does not remain a maintainer proof gap. No runtime suite or visual recording was needed for this nonvisual documentation-source change; generated translation and deployment remain owned by the normal publish pipeline.

@steipete
steipete merged commit 7d71d26 into main Sep 4, 2026
106 of 115 checks passed
@steipete
steipete deleted the steipete/optimistic-poitras-ade2b5 branch September 4, 2026 10:12
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 4, 2026
The canonical ClawHub docs move in #138157 removed the local page while
this catalog still required it in a clean checkout. Retain the existing
community and plugin-testing references and all executable coverage.

The existing catalog assertion fails at the CI merge before this change;
all 58 catalog tests pass afterward. No production code changes.
anandnsharma pushed a commit to anandnsharma/openclaw that referenced this pull request Sep 4, 2026
openclaw#138157 removed docs/clawhub/publishing.md because ClawHub pages are authored
upstream and mirrored at publish time, but left this scenario referencing the
deleted file, so the catalog check fails for any change set that runs the
qa-lab config shard. Reference the OpenClaw-owned plugin CLI guide that commit
names as the home for this guidance.

Claude-Session: https://claude.ai/code/session_01VhcCrpA9PB6VWSWAkFoLgY
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
Remove competing local CLI and publishing pages while preserving OpenClaw-specific workflows and the owner primer in existing guides. Keep the ClawHub mirror and published routes unchanged, and document real-mirror anchor validation. Related: openclaw#138121.
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant