Skip to content

fix(docs): match source anchor checks to published sections - #137157

Merged
steipete merged 4 commits into
mainfrom
steipete/docs-anchor-audit-rollout
Sep 3, 2026
Merged

steipete merged 4 commits into
mainfrom
steipete/docs-anchor-audit-rollout

Conversation

@steipete

@steipete steipete commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Resolved and published (2026-09-03). All three rollout PRs are merged, normal source sync and R2 publication succeeded, and post-publication browser/live smoke passed. Final rollout and remaining content findings.

Related: #137032
Support: #137038
Renderer: openclaw/docs#157
Production proof: openclaw/docs#157 (comment)

What Problem This Solves

Source anchor checks could accept nonexistent published sections or reject links that work on the live docs site. The independent Mintlify checker does not implement the publisher's heading, component, duplicate-ID, and HTML-alias redirect behavior. The replacement also needs reliable diagnostics: repeated links must identify their own source occurrences, and malformed URLs must not abort reporting for the rest of the document.

Why This Change Was Made

Use the same source-owned document/ID and redirect contracts consumed by the deployed renderer. This follows the approved support → renderer → audit rollout: support was normally synced, the renderer merged, and real production navigation passed before audit activation was published.

Delete the Mint subprocess, Node-version workaround, temporary anchor projection and obsolete tests rather than adding another guessed slugger. Keep external-link projection and canonical ClawHub mirroring intact. Literal IDs take precedence over one fragment decode; only real emitted aliases/components count as targets. Relative links use final published page URLs, and redirects follow the publisher's actual HTML-alias behavior.

Source-line provenance travels through shared preprocessing and existing MarkdownIt/htmlparser2 positions, before href normalization loses occurrence identity. An opt-in mapLink projection preserves the publisher's default string-link API and avoids diagnostic tracking during ordinary publishing. URL construction/decoding has one Result boundary: malformed internal paths become normal diagnostics, later links are still checked, and external redirect fragments are not checked against local pages.

User Impact

Maintainers can trust pnpm docs:check-links:anchors to check actual published targets while preserving old heading URLs. Repeated/reference/component links report their own locations; unmapped snippet/embedded expansions report unknown, not a guessed line. Author/testing guides describe the shared parser accurately. No product configuration, schema, protocol, dependency pin, runtime gateway behavior, or page-specific anchor rewrite changes are included.

Evidence

  • The actual R2 deployment, attempt 1, completed source checkout, full build, smoke and upload. Docs SHA 831a0b636e82fef6c95b6bc34c854176d86f3ab6 contains renderer merge d309865b27755f63268824fbbb364cca71800da9. The earlier stale/skipped run was not counted as publication.
  • Ten real production Chromium flows pass with HTTP 200 and no page errors: dotted primary/alias URLs, slash/parenthesis and plus/dev fragments, canonical TOC/copy behavior, and an opened details target. Inspected screenshots and live links are in the production proof comment above.
  • Six new CLI cases fail on isolated pre-fix script/parser copies while five established cases pass. Repeated live links formerly reported fenced-code line 5; now they report lines 7, 8, and 10. Malformed component paths no longer throw URIError or hide following findings. An executed regression also caught an external redirect whose pathname matched a local page; it no longer receives a false local-fragment diagnostic.
  • node scripts/run-vitest.mjs src/scripts/docs-link-audit.test.ts test/scripts/docs-sync-publish.test.ts: 25/25 pass. Selected formatting, lint, types and repository guards pass. git diff --check passes.
  • 760 publisher inputs (750 source documents plus ten LF/CRLF fixtures) retain byte-identical HTML, IDs, href strings and collision records. Seven assembled-publisher boundary tests pass, including real Chromium DOM/fragment navigation. The current rebase and timing-test repair leave those parser/audit bytes unchanged.
  • The real source-sync script populated a full isolated publisher fixture; make docs-check passed: 14,934 pages built; 14,933 pages indexed in 21 languages; 85,003 R2 objects prepared; full smoke passed. Source indexing processed 17,923 of 34,123 files, with 97 large-file and 16,103 budget skips under existing limits. Source/generated parser SHA-256: 162d4b5e8f383311517e5f8f07381afbfa890a145c07789a66f436946ae55118. This is candidate proof, not a claim that the latest diagnostic module is already deployed. Exact publisher-consumer inspection records the unchanged default string-link contract. No generated mirror file was hand-edited.
  • Fresh independent Codex review of the complete candidate, including the new construction test, is scoped-clean at the configured P0-only threshold. Separately verified P2/P3 diagnostic and wording findings were repaired, not dismissed by that threshold.
  • Canonical ClawHub source is pinned to fae070615057acd3d104c7c6dc2e8813ded9888c. Ordinary route audit: 8,044 links, zero failures. Full anchor audit: 8,327 links, 14 real source-content findings, intentionally exit 1. These are ten stale callers in the separate page-specific repair, one computer-use caller, and duplicate groups podman-and-tailscale, surface-explorer, and product-areas. The latter four are a named source-owner follow-up. One conflicting github-actions-2 alias is omitted to preserve its existing target owner.
  • Complete candidate: production/tooling +349/-473 (net −124); tests/test support +466/-411 (net +55); docs/guidance +7/-5 (net +2), across nine files. Source provenance and typed diagnostics replace obsolete audit machinery. No source changelog edit; release-note context is here.

CI follow-through

Earlier CI exposed a node-host line-limit failure and two stale exact update-dispatch actor expectations. Their repairs are now on main; the redundant branch patches were dropped on rebase. The dispatch investigation verified all 24 production caller modules and 953 tests across 45 files without weakening assertions.

The next exact-head run failed the independent command-construction timing regression. It began a three-second PID wait before cold command preparation completed; its one-second execution deadline could fire before PID readiness. Its chosen Anthropic SDK backend also bypassed the supervisor/service relay that the regression purported to exercise.

The test-only repair uses the existing registered process-backend resolver and queue-admission hook, with the real command, supervisor, relay, anonymous pipe and child. An unread 8 MiB synthetic secret blocks construction. The test observes actual admission, a live child and starting state before advancing the original deadline: still starting at 999 ms, overall-timeout at 1,000 ms, timeout envelope/exit 2 and PID death before fallback cleanup. Three sibling timeout cases use the same readiness ordering. No execution/readiness/cleanup budget increased; no production seam or behavior changed. The original case was moved, not duplicated.

Before/after proof: original command file 1 failed/53 passed; repaired 54 passed. A controlled 600 ms child startup delay fails the original 500 ms sibling case and passes the repaired case with that same deadline. Against the exact pre-fix supervisor, both repaired construction tests fail at the intended starting versus exited/overall-timeout assertion; current production source was restored byte-for-byte. Combined adjacent proof: 161 tests across eight files passed. Final organized command proof: 54 tests across two files passed. Final changed gates pass. Timing repair alone: production 0; tests/support +204/-93 (net +111).

Exact commands:

node scripts/run-vitest.mjs src/commands/agent-exec.construction.test.ts src/commands/agent-exec.test.ts --reporter=verbose
node scripts/run-vitest.mjs src/commands/agent-exec.test.ts src/process/supervisor/adapters/child.service-lifecycle.test.ts src/process/supervisor/supervisor.test.ts src/process/supervisor/supervisor.cancellation-reason.test.ts src/process/supervisor/service-child-relay-host.test.ts src/process/supervisor/adapters/child.secret-abort.test.ts src/process/spawn-secret-input.test.ts test/helpers/process-wait.test.ts --reporter=verbose
node scripts/check-changed.mjs -- src/commands/agent-exec.test.ts src/commands/agent-exec.construction.test.ts src/process/supervisor/adapters/child.service-lifecycle.test.ts test/helpers/process-wait.ts

Separate test follow-up: replace fixed descendant lifetimes with explicit release gates in preserves root-result timing while retaining descendant cleanup ownership and flushes incomplete UTF-8 before exposing a root result with retained authority. Both passed; they test a different lifetime boundary and were not rewritten here.

Review disposition

The initial permalink finding and its rank-up moves are not applied as proposed: they infer publication from the old auditor/i18n inventory rather than the real publisher. collectPages derives physical slugs, pageRoute uses locale plus slug, and writeRedirects consumes declared redirects. Frontmatter-only permalinks do not emit aliases. The cited formal-verification value differs from its physical route only by a trailing slash and works live. Actual builder → R2 manifest → Worker proof: physical route/fragment = 200, distinct frontmatter-only route = 404, explicit redirect = 200. The source regression rejects /unpublished#connection despite that fragment existing on the physical page.

The repeated-location, malformed-percent and Docs sanity findings are accepted and repaired. Positions are captured at the producer, malformed URLs do not abort, URI host ownership is preserved, and wording is corrected. Direct publisher inspection, byte-equivalence checks and full candidate/production proof address the review environment's DNS limitation and latest rank-up move; no uninspected compatibility risk is being accepted.

The full content anchor audit is not represented as green. Remaining findings are authored/generator defects, not phantom targets or parser/renderer disagreement. This rollout does not duplicate or overwrite the separate authored-page patch.

@clawsweeper

clawsweeper Bot commented Sep 3, 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 docs Improvements or additions to documentation scripts Repository scripts size: L maintainer Maintainer-authored PR labels Sep 3, 2026
@steipete steipete self-assigned this Sep 3, 2026
@steipete
steipete marked this pull request as ready for review September 3, 2026 07:44
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 3, 2026, 7:19 AM ET / 11:19 UTC.

ClawSweeper review

What this changes

Replaces the documentation anchor audit’s Mintlify subprocess with the shared publishing parser and redirect resolver, adds per-link diagnostics, and updates related timing tests.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open. The patch is a coherent root-cause repair and resolves the prior diagnostic findings, but the shared parser is explicitly synchronized to the separate documentation publisher and that consumer contract was not independently inspectable in this review; retain the PR for that maintainer verification.

Priority: P2
Reviewed head: a17a286dc219d7037d84084219395fba7c976c8d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is well-scoped, net-negative in production tooling, and has targeted regression coverage; one cross-repository contract check remains before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied publisher evidence supports the intended behavior, while independent publisher-contract inspection remains the separate merge risk.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied publisher evidence supports the intended behavior, while independent publisher-contract inspection remains the separate merge risk.
Evidence reviewed 5 items Audit owner boundary: The new audit builds pages with the shared document parser, resolves configured redirects, and validates fragments against the emitted ID set rather than invoking Mintlify.
Cross-repository consumer signal: The source sync closure copies both the shared Markdown parser and redirect resolver into .openclaw-sync for the documentation publisher, so publisher compatibility is a real dependency of this change.
Merged support provenance: The shared parser was introduced by the merged support PR referenced in the review context; local commit metadata identifies its merge commit and timestamp.
Findings None None.
Security None None.

How this fits together

OpenClaw source documentation is copied into a separate publishing repository that renders docs.openclaw.ai. This PR changes the source-side audit so links and fragments are checked against the same parser and redirect contract intended for that publisher.

flowchart LR
  A[Documentation source] --> B[Shared publishing parser]
  B --> C[Published page IDs and links]
  A --> D[Source anchor audit]
  B --> D
  E[Redirect configuration] --> D
  D --> F[Link diagnostics]
  C --> G[Documentation publisher]
Loading

Before merge

  • Resolve merge risk (P1) - The parser is a synchronized runtime dependency of the separate documentation publisher; its exact consumer behavior was not independently verified here, so merging without that confirmation could make source audit results diverge from published pages again.
  • Complete next step (P2) - Before merge, independently confirm that the documentation publisher consumes the synchronized parser and redirect contract on this head.
Agent review details

Security

None.

PR surface

Tests +55, Docs +2, Other -124. Total -67 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 466 411 +55
Docs 2 7 5 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 2 349 473 -124
Total 9 822 889 -67

Review metrics

Metric Value Why it matters
Production versus test delta production/tooling +349/-473 (net -124); tests/support +466/-411 (net +55); docs +7/-5 (net +2) The repair removes the independent audit machinery while adding focused parser diagnostics and timing coverage.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #137032
Summary: This PR is the staged candidate repair for the open source-versus-published anchor-audit discrepancy.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Verify the publisher contract before merge (recommended)
    Independently confirm that the deployed documentation publisher consumes the synchronized parser through the unchanged default interface on this head.
  2. Pause the audit activation
    Keep the existing audit path until that cross-repository compatibility check is available.

Technical review

Best possible solution:

Land one canonical parser-and-redirect contract only after an independent check confirms the publisher consumes this exact default string-link interface unchanged.

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

Yes. The new CLI fixtures provide a high-confidence source reproduction for false fragment acceptance, malformed URL reporting, and per-occurrence locations, although this read-only review did not execute them.

Is this the best way to solve the issue?

Unclear. Reusing the source-owned parser and redirect resolver is the best architectural direction, but the separate publisher consumer must still be independently confirmed against this exact interface.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Incorrect anchor validation can create false documentation failures or allow broken published section links, but it does not affect the runtime service.
  • merge-risk: 🚨 other: The changed shared parser is copied into the separate documentation publisher, leaving a concrete cross-repository renderer-compatibility check before merge.
  • 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: This maintainer-authored PR is exempt from the external-contributor proof gate; its supplied publisher evidence supports the intended behavior, while independent publisher-contract inspection remains the separate merge risk.

Evidence

What I checked:

  • Audit owner boundary: The new audit builds pages with the shared document parser, resolves configured redirects, and validates fragments against the emitted ID set rather than invoking Mintlify. (scripts/docs-link-audit.mts:508, a17a286dc219)
  • Cross-repository consumer signal: The source sync closure copies both the shared Markdown parser and redirect resolver into .openclaw-sync for the documentation publisher, so publisher compatibility is a real dependency of this change. (scripts/docs-sync-publish.mjs:24, a17a286dc219)
  • Merged support provenance: The shared parser was introduced by the merged support PR referenced in the review context; local commit metadata identifies its merge commit and timestamp. (scripts/lib/docs-markdown.mjs:9, 6d763ee148d4)
  • Focused regression coverage: The CLI fixtures cover emitted fragments, redirect targets, malformed percent escapes, repeated link locations, and unmapped expansions. (src/scripts/docs-link-audit.test.ts:93, a17a286dc219)
  • Scoped process-test change: The added command-construction test waits for actual supervisor admission and child readiness before advancing the existing timeout, and the shared PID helper accepts a real-delay injection for fake-timer tests. (src/commands/agent-exec.construction.test.ts:70, a17a286dc219)

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Independently verify the documentation publisher consumes the synchronized parser through its unchanged default string-link contract.

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.

History

Review history (5 earlier review cycles)
  • reviewed 2026-09-03T07:53:43.709Z sha c8e16ad60c863417eb8b8648b3314642692e262e :: blocked before merge. :: [P1] Index each page by its published permalink
  • reviewed 2026-09-03T08:21:41.103Z sha 47daf2329087950197a9f92f6780893e636811dd :: blocked before merge. :: [P3] Update the Docs sanity wording
  • reviewed 2026-09-03T08:46:48.723Z sha c9a0339 :: blocked before merge. :: [P2] Preserve individual locations for repeated links | [P2] Report malformed percent escapes instead of aborting | [P3] Update the Docs sanity wording
  • reviewed 2026-09-03T09:15:18.007Z sha 0b5d23b :: blocked before merge. :: [P2] Preserve individual locations for repeated links | [P2] Report malformed percent escapes instead of aborting | [P3] Update the Docs sanity anchor-check description
  • reviewed 2026-09-03T10:30:49.139Z sha df8afb4 :: blocked before merge. :: none

@steipete
steipete force-pushed the steipete/docs-anchor-audit-rollout branch from c8e16ad to 47daf23 Compare September 3, 2026 08:10
@steipete

steipete commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor Author

Reviewed the permalink finding and rank-up moves. Not accepting the proposed alias mapping: the premise is contradicted by the actual publisher, which the review environment could not inspect.

In deployed collectPages, slug comes from fileSlug(rel). pageRoute uses locale plus that slug. writeRedirects consumes configured redirects, not frontmatter permalinks. The cited formal-verification permalink is just its physical route with a trailing slash; its real fragment works.

I executed the actual publisher builder → R2 manifest → Worker fixture with a physical page containing permalink: /invented-permalink and a real ## Actual section: the physical route returns 200 with id="actual-section", the invented permalink returns 404 and has no manifest object, and an explicit configured redirect returns 200. This is publisher-side proof, not the audit asserting its own interpretation. The reusable fixture is scripts/docs-site/test-helpers/redirect-fixture.mjs in the publisher repo.

Both suggested rank-up changes are therefore skipped as written: accepting that invented alias would recreate the false greens this work removes. Instead, the regression now uses a real existing fragment on an unpublished route, asserts the missing-route diagnosis, and documents the owner boundary. The stronger audit suite passes 17/17. The production proof covers the DNS/evidence-access limitation.

CI follow-through: the local node-host lint repair was verified, then dropped after main landed a broader test split. Later runs exposed two stale strict expectations, in the gateway tool and /update command callers: the current in-process adapter supplies the host-owned system actor. The candidate adds exactly that expected field in each test without runtime changes or looser call/owner/routing/scope checks. Both failures were reproduced before repair. The full sibling inventory covers all 24 production caller modules; no other exact adapter-output assertion is stale, and separate direct-dispatch/transport contracts remain unchanged. All 953 caller/adjacent tests across 45 files pass; the final focused audit/update run passes 67/67. Selected changed checks and fresh complete five-file P0 review pass. Exact-head CI is required for 0b5d23b6a091ca41e23d418f5fd17da2a82a7566; no pending hosted result is represented as green.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 3, 2026
@steipete
steipete force-pushed the steipete/docs-anchor-audit-rollout branch from 47daf23 to c9a0339 Compare September 3, 2026 08:34
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed P1 High-priority user-facing bug, regression, or broken workflow. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Sep 3, 2026
@steipete

steipete commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor Author

Land-ready on a17a286dc219d7037d84084219395fba7c976c8d. Exact-head CI 33748267881, attempt 1, succeeded. The required openclaw/ci-gate passed; the rollup has 112 passing checks, 43 skips, no failures and no pending checks. This supersedes the earlier paused/prepared heads; their CI/preparation is not reused.

The command-construction CI defect is repaired at the test's owning boundary, not hidden with retries or longer deadlines. Its old SDK fixture bypassed the supervisor, and its PID wait raced cold preparation/execution. The real process-backend route now proves actual admission, a live child and blocked secret delivery before advancing the unchanged deadline. It requires starting at 999 ms, overall-timeout at 1,000 ms, a timeout envelope and child death before fallback cleanup. Three sibling cases have the same ordering repair. Against the exact pre-fix supervisor, both regressions fail at the intended terminal-state assertion. Production process code is unchanged. All 161 adjacent tests, the final 54-test command run and changed gates pass.

The latest exact-head ClawSweeper review reports no actionable code/security findings. Its remaining publisher-verification request and rank-up move are fulfilled by direct consumer inspection and exact parser/full-build evidence, not by accepting an uninspected risk. The parser/audit bytes are unchanged from that full-build head. The default publisher string-link API, rendered HTML, IDs, hrefs and collisions are identical across 760 inputs; seven publisher boundary tests pass. The real source-sync build produced 14,934 pages and 85,003 R2 objects with full smoke success. The ten production browser flows remain recorded.

Fresh complete-candidate Codex autoreview is scoped-clean at its configured P0-only threshold. The earlier diagnostic/wording findings were independently reproduced and repaired. Exact commands and all before/after evidence are in the PR body. Native review artifacts are refreshed for this head before prepare/merge.

Production/tooling net −124; tests/support net +55; docs net +2. Fourteen genuine source-content findings remain visible, not suppressed or represented as a green full anchor audit. The separate authored-page repair and generated mirror output remain untouched. Normal sync after merge will publish the diagnostic helper and testing-guide wording; this comment does not claim that final sync has already happened.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 3, 2026
Use the shared publishing parser and redirect contract for source link validation while preserving literal published IDs and emitted compatibility aliases. Remove the Mint subprocess and duplicate anchor projection. Activation is staged after renderer deployment and production verification. Context: #137032
Document that only actual pages and configured redirects prove fragment targets. Strengthen the unpublished-permalink fixture with an existing fragment, matching the real publisher/R2/Worker route contract rather than the legacy permissive audit inventory.
Carry per-occurrence source provenance through shared preprocessing without changing the publisher string-link contract or rendered output. Normalize internal URLs once with Result, report malformed paths without aborting, and leave external redirect fragments to their owner. Correct Docs sanity guidance. Regression proof covers protected literals, references, components, CRLF, encoded paths and external redirects; 760 publisher inputs remain byte-identical.
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Maintainer verification for the remaining renderer-compatibility question is complete; this is not acceptance of an uninspected compatibility risk.

I directly inspected the deployed publisher path: mdx-ish imports the source-owned module, constructs it with createDocsMarkdown({ highlight: highlightCode }), and consumes tokens and env. The default string-link API is unchanged; only the source audit requests the location projection.

The exact repaired parser was delivered into a full isolated publisher tree by the real source-sync script. Source and generated fixture copies both hash to SHA-256 162d4b5e8f383311517e5f8f07381afbfa890a145c07789a66f436946ae55118. make docs-check passed with 14,934 pages, the bounded source index, 85,003 R2 objects and full smoke. Separately, all 760 before/after inputs retain identical HTML/IDs/hrefs/collisions, and seven publisher browser/DOM boundary tests pass. The rebase leaves these docs/parser bytes unchanged.

The prior normal deployment and ten production browser flows remain recorded. The new diagnostic module will be normally synced after source landing; it is not mislabeled already deployed. The remaining landing blocker is CI's independent command-construction timing test, which is being repaired without changing production timeout semantics.

Exercise the registered process backend through agent exec rather than the plugin-owned SDK path. Observe real supervisor admission and child readiness before advancing the original execution deadlines; retain blocked secret delivery and PID cleanup proof. Repair the same ordering in service lifecycle timeout tests without runtime changes or larger budgets.
@steipete
steipete force-pushed the steipete/docs-anchor-audit-rollout branch from df8afb4 to a17a286 Compare September 3, 2026 11:10
@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations and removed agents Agent runtime and tooling labels Sep 3, 2026
@steipete
steipete merged commit c3a495d into main Sep 3, 2026
164 checks passed
@steipete
steipete deleted the steipete/docs-anchor-audit-rollout branch September 3, 2026 11:26
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 3, 2026
* commit '13b1f71c7010baaf2394555198e2fc04bef03586': (283 commits)
  fix(ui): retire stale MCP feedback across context changes (#128490)
  fix(agents): clarify set-identity workspace output (#126320)
  fix(auth): preserve OAuth metadata during session SDK refresh (#127988)
  fix(agents): recover catalog worker after generation mismatch (#127712)
  fix(memory-wiki): reject out-of-range claim confidence (#125656)
  ci: remove redundant contract runs and costly test work (#137220)
  fix(release): assert the Codex CLI pin the candidate declares (#137136)
  test(voice-call): reuse shared guards and deferred gates (#137262)
  fix(cron): isolate scheduler-disabled shared-store writes (#131733)
  fix(telegram): surface allowed custom reactions in react guidance (#129817)
  test(infra): reuse the shared npm call presence guard (#137254)
  fix: generated images disappear after failed tool calls (#131226)
  fix(docs): match source anchor checks to published sections (#137157)
  fix(backup): preserve audit capture across slow snapshots (#130962)
  fix(release): preserve legacy gh log reads (#137016)
  fix(memory-core): make forget rewrites atomic (#131383)
  fix(agents): write settings atomically (#131431)
  fix(plugins): keep the memory indexing runtime with the selected slot owner (#131779)
  fix(ci): pin iOS screenshot evidence to workflow revision (#136334)
  test(logging): remove redundant stderr spy casts (#137238)
  ...

# Conflicts:
#	scripts/e2e/lib/codex-release-package-assertions.mjs
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 4, 2026
…#137157)

* fix(docs): audit emitted section targets instead of Mint guesses

Use the shared publishing parser and redirect contract for source link validation while preserving literal published IDs and emitted compatibility aliases. Remove the Mint subprocess and duplicate anchor projection. Activation is staged after renderer deployment and production verification. Context: openclaw#137032

* test(docs): pin published route ownership

Document that only actual pages and configured redirects prove fragment targets. Strengthen the unpublished-permalink fixture with an existing fragment, matching the real publisher/R2/Worker route contract rather than the legacy permissive audit inventory.

* fix(docs): preserve link locations and report malformed targets

Carry per-occurrence source provenance through shared preprocessing without changing the publisher string-link contract or rendered output. Normalize internal URLs once with Result, report malformed paths without aborting, and leave external redirect fragments to their owner. Correct Docs sanity guidance. Regression proof covers protected literals, references, components, CRLF, encoded paths and external redirects; 760 publisher inputs remain byte-identical.

* test(process): synchronize construction timeout readiness

Exercise the registered process backend through agent exec rather than the plugin-owned SDK path. Observe real supervisor admission and child readiness before advancing the original execution deadlines; retain blocked secret delivery and PID cleanup proof. Repair the same ordering in service lifecycle timeout tests without runtime changes or larger budgets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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