Repository navigation
chore(docs): audit external links without gating PRs - #114643
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 27, 2026, 1:52 PM ET / 17:52 UTC. ClawSweeper reviewWhat this changesAdds a weekly and manually dispatchable non-blocking Lychee external-link audit with a retained report artifact, while correcting or removing externally unreachable documentation links. Merge readiness⛔ Blocked until stronger real behavior proof is added - 3 items remain Keep this PR open. The proposed advisory workflow is a bounded way to find external-link drift without making contributor CI depend on third-party sites, but the current head still lacks proof that a manual GitHub Actions dispatch creates and retains the promised report artifact. The Likely related people: Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s existing documentation checks validate repository-local links during development, while this new GitHub Actions workflow would periodically probe public HTTP(S) targets that can decay after a release. It reads Markdown and docs metadata, filters unsafe or noisy destinations, then uploads a report for maintainers without changing pull-request gating. flowchart LR
A[Repository docs and Markdown] --> B[Scheduled or manual workflow]
B --> C[External-link filter]
C --> D[Lychee HTTP(S) audit]
D --> E[Markdown report]
E --> F[Retained Actions artifact]
F --> G[Maintainer follow-up]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs -13, Config +61. Total +48 across 12 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the audit advisory and non-PR-gating, then attach redacted evidence from one manual dispatch showing the Lychee result and the downloaded or visible retained report artifact before merging. Do we have a high-confidence way to reproduce the issue? Yes, at source level: the PR documents that the current internal docs audit excludes HTTP(S) targets, and its fixture demonstrates that behavior. I do not have independent current-head execution evidence for the new hosted workflow itself. Is this the best way to solve the issue? Unclear until a manual dispatch is shown. The non-gating scheduled audit is a focused solution, but its artifact contract should be proven in the environment that will run it. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d9e6d0026136. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* docs: repair audited external links * ci(docs): add advisory external link audit
Related: #114021, #114028, #114057
What Problem This Solves
Fixes an issue where broken external documentation links could remain on
mainbecause the existing docs link audit deliberately skips every HTTP(S) target inscripts/docs-link-audit.mjs:474-475.The gap was visible when three independent dead links needed manual fixes in #114021, #114028, and #114057. The same audit found additional unreachable links in public docs and release notes.
Why This Change Was Made
Adds a weekly, manually dispatchable Lychee audit pinned to reviewed action and engine releases. It has no pull-request trigger and uses
fail: false, so third-party outages, rate limits, bot walls, and transient network failures can only appear in the job summary and retained report artifact; they never gate PR CI.The workflow limits requests to HTTP(S), excludes internal/private/link-local/loopback targets and known bot walls, accepts authentication/rate-limit responses, and retries transient failures. The docs changes repair only targets reverified as unreachable; seven release-note links that returned 200 during fresh validation were deliberately left unchanged.
AI-assisted maintainer change. Follow-up credit for the three motivating fixes belongs to @santhiprakash.
User Impact
Readers get working provider, protocol-schema, support, threat-model, release-note, and external-tool links. Maintainers get a scheduled report for future external-link drift without making contributor PRs depend on third-party availability.
Evidence
https://127.0.0.1:1/definitely-not-servedproduced{"checked":0,"broken":[]}fromauditDocsLinks; the tested script blob exactly matchedorigin/main.404 -> 200; Anthropic old target hit redirect-limit failure while the replacement returned200; Copilot CLI404 -> 200.200; removed targets were404(the Anthropic loop above is already fixed onmain).actionlint .github/workflows/docs-external-links.ymlnode scripts/check-docs-mdx.mjs <11 changed docs>: passed.node scripts/docs-link-audit.mjs: 6,216 internal links checked, 0 broken.git diff --check: passed.NO-ACTIONABLE-OBJECTION.gh workflow run docs-external-links.yml --ref maint/docs-external-link-auditreturns HTTP 404 because GitHub requires the workflow file to exist on the default branch. The closest hosted proof is exact-head PR CI plus successful Blacksmith ARMpnpm check:changedruns 30289851705 and 30290820195. Because this workflow is scheduled/manual only andfail: false, the safe rollout is to merge, immediately dispatch it frommain, and verify the retained artifact before closeout.mainrun 30292013410 succeeded and retained artifactdocs-external-link-audit(ID 8663464604, expires 2026-08-10). The downloaded 2,246-bytereport.mdcontained 9,940 occurrences / 6,149 unique URLs, 5,052 successful, 4,873 excluded, 103 redirects, 15 advisory errors, and 0 timeouts.