Repository navigation
docs: keep ClawHub guidance in its canonical source - #138157
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 4, 2026, 6:02 AM ET / 10:02 UTC. ClawSweeper reviewWhat this changesThis 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 Review scores
Verification
How this fits togetherOpenClaw 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]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs -199. Total -199 across 8 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready source review for The two OpenClaw ClawHub pages were non-authoritative: the publisher replaces that subtree from 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
Independent Codex autoreview is scoped-clean. Native review artifacts validate with zero findings and Exact-head CI run 33860549717 completed successfully, including 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. |
|
Merged via squash.
|
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.
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
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.
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-trustuntil #138121 moved that caller to OpenClaw-owned content.Why This Change Was Made
Keep the existing ownership boundary:
openclaw/clawhub/docsremains 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.
docs/cli/skills.mddocs/cli/plugins.mddocs/tools/creating-skills.md#publishing-to-clawhubEvidence
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:
publisher: 1,admin: 2,owner: 3; a role is allowed when its rank is at least the required role's rank.publisher, ensures a personal publisher, and requires an organization membership satisfying that minimum.minimumRole: "publisher". Thus all three organization roles satisfy the publishing role requirement; no authorization behavior is changed.Before repair, actual
scripts/docs-sync-publish.mjsassembly removed the locally presentrelease-trustheading 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, usesOPENCLAW_DOCS_SYNC_CLAWHUB_REPOpointing 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.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.