Skip to content

fix(docs): restore section links and unique maturity anchors - #138121

Merged
steipete merged 1 commit into
mainfrom
steipete/suspicious-gauss-d7a316
Sep 4, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/suspicious-gauss-d7a316

Conversation

@steipete

@steipete steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where readers following documentation cross-references reached missing sections after heading and page changes. The current anchor audit also rejects duplicate section IDs in the checked-in maturity scorecard and taxonomy pages.

Reproduced on main at be967f4a514f7ff944cff1c6612af2f0f7285458: the unconfigured linked-worktree audit reported 30 failures. Supplying the canonical ClawHub mirror separated missing local source input from actual published-link defects and exposed an additional macOS skills link to a section that is overwritten during publishing.

Why This Change Was Made

Correct nine stale cross-references to their actual published destinations, including punctuation-preserving heading IDs and the Docker permissions accordion. Give the existing OpenClaw-owned skill release-trust paragraph a proper heading and point the macOS caller there instead of a locally present but unpublished ClawHub override.

Regenerate the maturity pages through the existing renderer, whose duplicate-ID source fix is already on main in 0a1e564d345. The regeneration uses unchanged current taxonomy/score sources and the original verified QA artifact; no generated Markdown was hand-edited. It also incorporates existing canonical taxonomy changes, including removal of redundant redirected links. Scores and recorded QA outcomes are unchanged.

The /clawhub and /clawhub/security-audits routes and their legacy redirects are correct and remain unchanged. Their pages come from the existing openclaw/clawhub mirror. No new compatibility aliases, audit exemptions, runtime changes, or changelog edits are included.

User Impact

Readers reach the intended development, working-directory, ambient-owner, exec-policy, GitHub-identity, audio, Docker permissions, and skill-trust sections. Maturity jump links retain their canonical IDs without duplicate authored anchors.

The patch changes 13 documentation files: +19/-21 lines. Production/tooling code: +0/-0. Tests: +0/-0. English source only; translations remain owned by the publishing pipeline.

Evidence

  • Actual assembled-docs anchor audit: 8,353 links checked, 0 broken. The single pre-existing omitted compatibility alias remains reported; the parser and auditor are unchanged.
  • ClawHub source frozen at fa653d46c7702f491119f8f979254b0b4cf18efd, using the existing OPENCLAW_DOCS_SYNC_CLAWHUB_REPO input. Missing mirror input is a linked-worktree setup issue, not a reason to replace canonical routes.
  • Fresh Codex autoreview: scoped-clean, no actionable findings at its default P0 priority; manual review verified all changed destinations and generated-output preservation.
  • Maturity renderer regression suite: 7/7 passed.
  • Evidence-backed maturity:check: up to date.
  • MDX: 753 files passed; docs formatting: 740 files clean; glossary and git diff --check passed.
  • Current main ed6e3aabf0ef6cd58a8ee9d9282a6dc6c06cc918 was checked before publication and had no intervening changes in the 13 touched docs.

Exact local validation commands (artifact paths are repository-relative):

OPENCLAW_DOCS_SYNC_CLAWHUB_REPO=.artifacts/docs-source-clawhub.oQUoHb pnpm docs:check-links:anchors
pnpm maturity:render -- --evidence-dir .artifacts/docs-anchors/evidence --allow-failures
pnpm maturity:check -- --evidence-dir .artifacts/docs-anchors/evidence --allow-failures
pnpm test test/scripts/render-maturity-docs.test.ts
pnpm docs:check-mdx
pnpm docs:check-i18n-glossary
pnpm format:docs:check
git diff --check

Historical maturity evidence, not a new QA run

Recovered the original artifact 9270102878 from Maturity Scorecard run 31971708839. Its ZIP SHA-256 matches GitHub metadata: 5e326958f9140671b1f691f9baef88a658de65fff73797bfcef99cfeb8389951. The byte-identical renderer input has SHA-256 6a4fab51602aa6500b8096eca0fdac211bcf1c7d2a073b063427cabe7939aaf7.

This preserves the August 16 evidence: 406 checks, 313 passed, 35 failed, 51 blocked, 7 skipped. The existing 281 evidence categories versus 280 active categories warning is preserved. --allow-failures retains those historical outcomes; this PR does not claim fresh passing QA evidence or alter maturity scores.

Follow-up

The local docs/clawhub/cli.md and docs/clawhub/publishing.md pages are replaced by the ClawHub mirror during publishing. A separate source-ownership consolidation was noted; this PR fixes the broken consumer without broadening into that redesign.

Point stale development, agent, exec, GitHub, audio, Docker, and macOS skill
trust references at their canonical published sections. Regenerate maturity
pages with the existing renderer and original verified QA evidence, preserving
scores and recorded outcomes while removing duplicate IDs and stale projections.

Keep canonical ClawHub mirror routes and the anchor audit unchanged. Validate
8,353 assembled links with no broken destinations, seven renderer tests, MDX,
glossary parity, formatting, and evidence-backed maturity freshness.
@steipete steipete self-assigned this Sep 4, 2026
@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:18
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos gateway Gateway runtime extensions: qa-lab extensions: codex size: XS maintainer Maintainer-authored PR labels Sep 4, 2026
@steipete

steipete commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Land-ready verification for 752a0542ba8ff1ad13fbf379d5ab659bbf937f39:

Exact-head CI run 33857720075 completed successfully, and the required openclaw/ci-gate is green. Native review artifacts validate with no actionable findings. Fresh Codex autoreview is scoped-clean at its default P0 priority, with direct manual verification of all changed destinations and generated-output preservation.

The repaired assembled docs check 8,353 links with 0 broken destinations. The existing maturity renderer tests pass 7/7; evidence-backed maturity freshness, MDX (753 files), glossary, formatting (740 files), and git diff --check pass. Exact local commands and original artifact checksums are preserved in the PR's Evidence section, including:

OPENCLAW_DOCS_SYNC_CLAWHUB_REPO=.artifacts/docs-source-clawhub.oQUoHb pnpm docs:check-links:anchors
pnpm maturity:check -- --evidence-dir .artifacts/docs-anchors/evidence --allow-failures

The historical QA results and existing 281-versus-280 category warning remain unchanged; this is not a new QA score claim. No runtime or app UI behavior changed.

ClawSweeper's before-merge verification gap is addressed. Its completed review found no correctness or security defects; the sole remaining item was that its read-only Corepack environment could not execute the audit. An independent execution worker has now rerun both commands above against exact committed head 752a0542ba8ff1ad13fbf379d5ab659bbf937f39: both exited 0, the anchor audit checked 8,353 links with 0 broken, and maturity freshness reported up to date. The expected historical category warning remained. HEAD and tracked status were verified before and after; the worktree stayed clean, and mirror/evidence bytes were unchanged. The Corepack cache error did not occur in the normal validation environment.

The chosen mitigation is the actual committed-head execution proof, not a source change or weakened review environment. Keep the canonical link fixes and renderer-derived projections unchanged, as the review recommends. No actionable item is being skipped and no additional review cycle is needed for this unchanged head.

Scope remains documentation only: 13 files, +19/-21 lines, no new aliases or audit exceptions. The separate ClawHub page-ownership follow-up is recorded in the PR body.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 5:31 AM ET / 09:31 UTC.

ClawSweeper review

What this changes

The PR repairs stale published-documentation anchors, adds a stable skill-trust section target, and refreshes generated maturity pages to retain one canonical anchor per section.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this active: current main does not include the 13 documentation-path changes, and static inspection finds the focused documentation repair correct. This is also an active maintainer-authored PR with a protected maintainer label.

Priority: P3
Reviewed head: 752a0542ba8ff1ad13fbf379d5ab659bbf937f39

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused docs-only repair with no actionable correctness or security finding from static review.
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 9 items Current-main comparison: All 13 paths introduced by this PR are unchanged between its pinned base and current main, so current main still lacks this repair rather than superseding it.
Published-anchor contract: The applicable docs policy requires the shared publishing parser and anchor audit for section links, and requires maturity pages to be renderer-generated rather than hand-edited.
Anchor resolution implementation: The parser accepts both literal and decoded URL fragments; the audit reports duplicate authored/canonical IDs and validates routes and fragments using that parser.
Findings None None.
Security None None.

How this fits together

OpenClaw source documentation is parsed into the published docs site, where cross-references guide operators to configuration and troubleshooting sections. Maturity scorecard and taxonomy pages are generated from taxonomy and QA inputs, then linked from the same site.

flowchart LR
  A[Source documentation] --> B[Shared Markdown parser]
  C[Taxonomy and QA inputs] --> D[Maturity renderer]
  D --> B
  B --> E[Published documentation site]
  E --> F[Operator navigation]
Loading

Before merge

  • Resolve merge risk (P1) - The local anchor-audit rerun was unavailable because Corepack could not create its cache in this read-only review environment; static source inspection and the supplied validation evidence are consistent, but the reported command was not independently executed here.
Agent review details

Security

None.

PR surface

Docs -2. Total -2 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 13 19 21 -2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 19 21 -2

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Publish the canonical link fixes and renderer-derived maturity projections while leaving taxonomy, QA scores, and the shared parser/audit behavior unchanged.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Publish the canonical link fixes and renderer-derived maturity projections while leaving taxonomy, QA scores, and the shared parser/audit behavior unchanged.

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

Not applicable: this is a documentation-navigation repair. Static source inspection identifies the target headings and the parser/audit contract, although the local audit could not run in this read-only environment.

Is this the best way to solve the issue?

Yes. Correcting source cross-references and removing duplicate authored IDs preserves the canonical generated heading anchors instead of adding compatibility aliases or a parallel documentation path.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: The PR is a narrowly scoped documentation-navigation repair with no runtime, configuration, or persisted-state change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: The PR is a narrowly scoped documentation-navigation repair with no runtime, configuration, or persisted-state change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

  • Current-main comparison: All 13 paths introduced by this PR are unchanged between its pinned base and current main, so current main still lacks this repair rather than superseding it. (e0c230789b33)
  • Published-anchor contract: The applicable docs policy requires the shared publishing parser and anchor audit for section links, and requires maturity pages to be renderer-generated rather than hand-edited. Public docs: docs/AGENTS.md. (docs/AGENTS.md:7, 752a0542ba8f)
  • Anchor resolution implementation: The parser accepts both literal and decoded URL fragments; the audit reports duplicate authored/canonical IDs and validates routes and fragments using that parser. (scripts/lib/docs-markdown.mjs:414, 752a0542ba8f)
  • Changed destination headings: The repaired targets exist at the reviewed head, including the new Release trust section and the headings for development debugging, working directory, session overrides, Docker permissions, OpenAI transcription, and managed GitHub identity. Public docs: docs/cli/skills.md. (docs/cli/skills.md:168, 752a0542ba8f)
  • Generated-maturity ownership: The unchanged renderer emits the retained Surface explorer and Product areas headings, and derives category counts and documentation links from taxonomy data; the PR changes neither renderer nor source inputs. (scripts/qa/render-maturity-docs.ts:1023, 752a0542ba8f)
  • Regression coverage: Existing maturity-renderer coverage requires exactly one canonical ID for both affected jump-link targets and no parser collisions. (test/scripts/render-maturity-docs.test.ts:420, 752a0542ba8f)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: 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 merged commit 12b79a9 into main Sep 4, 2026
94 of 103 checks passed
@steipete
steipete deleted the steipete/suspicious-gauss-d7a316 branch September 4, 2026 09:45
@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
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
…w#138121)

Point stale development, agent, exec, GitHub, audio, Docker, and macOS skill
trust references at their canonical published sections. Regenerate maturity
pages with the existing renderer and original verified QA evidence, preserving
scores and recorded outcomes while removing duplicate IDs and stale projections.

Keep canonical ClawHub mirror routes and the anchor audit unchanged. Validate
8,353 assembled links with no broken destinations, seven renderer tests, MDX,
glossary parity, formatting, and evidence-backed maturity freshness.
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

app: macos App: macos docs Improvements or additions to documentation extensions: codex extensions: qa-lab gateway Gateway runtime maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant