Skip to content

fix(docs): keep external link audit focused on real link rot - #114746

Merged
steipete merged 1 commit into
mainfrom
maint/docs-external-link-audit-followup
Jul 27, 2026
Merged

steipete merged 1 commit into
mainfrom
maint/docs-external-link-audit-followup

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #114643

What Problem This Solves

Fixes an issue where the weekly Docs External Link Audit reported upstream 5xx responses and bot-hostile URLs alongside real link rot, while the generated README contributor wall linked renamed or deleted GitHub handles that could later be claimed by someone else.

The first hosted audit (run 30292013410) reported 15 errors. Fresh verification classified five as upstream/runner noise, eight as stale contributor profiles, and two additional connection failures as genuinely dead public links because their hosts no longer publish address records.

Why This Change Was Made

The audit now implements its intended status taxonomy directly: 404/410 remain errors, while all 5xx responses are accepted as upstream service failures. No new URL exclusions are added, so a future 404/410 cannot be hidden. Bot-hostile or dead document targets are removed or replaced with live official documentation.

The contributor generator now resolves seed entries through the immutable numeric account ID embedded in GitHub avatar URLs. Renamed accounts receive their current profile URL; accounts confirmed missing by HTTP 404/410 retain their avatar and alt-text credit without a squattable link. Any transient GitHub API failure aborts generation instead of silently changing attribution.

AI-assisted maintainer change.

User Impact

Maintainers get an advisory report focused on actionable link rot without routine 5xx/auth-wall noise. README readers keep accurate contributor attribution, including preserved credit for deleted accounts, without being sent to a future stranger who re-registers an old handle.

Evidence

  • Current-main defect proof: run 30292013410 on an ancestor of current origin/main; all implicated workflow/docs/README paths were byte-identical on the reproduction SHA.
  • Stable GitHub account-ID lookups verified six renames: aaronagent -> aaronlab, bittoby -> Crystora, henrino3 -> h-mascot, jiulingyun -> mf-yang, justinhuangcode -> justinhuangai, and QuantDeveloperUSA -> robertoeisenlohr.
  • Account-ID lookups for graysurf and Mrseenz returned 404; their avatar URLs still return 200 and their unlinked credit remains visible.
  • Public DNS verification found no A/AAAA/CNAME record for papla.media or codex.openai.com. The replacement Deepgram, Ollama authentication, and Codex CLI documentation URLs each return 200.
  • node scripts/run-vitest.mjs test/scripts/update-clawtributors.test.ts: 9 tests passed.
  • actionlint .github/workflows/docs-external-links.yml; node scripts/check-workflows.mjs: passed.
  • node scripts/check-docs-mdx.mjs README.md docs/providers/deepgram.md docs/providers/ollama-cloud.md docs/start/showcase.md docs/tools/acp-agents-setup.md: passed.
  • Focused source probe: six current handles, two unlinked credits, full 40-character action pins, fail: false, failIfEmpty: true, and no PR trigger: passed.
  • Blacksmith Testbox check:changed: tbx_01kyjmhkxprrgvaa479xwycatx, run 30303125789, exit 0.
  • Independent adversarial refuter: NO-ACTIONABLE-OBJECTION.
  • Codex autoreview on the exact final tree: clean, no accepted/actionable findings.
  • git diff --check: passed.
  • Final diff: 10 files, +222/-39. The +65 non-test LOC pays for stable account-ID resolution plus explicit 404/410 versus transient-failure handling in the generator; tests add the rename, deletion, 410, and transient-failure regressions.

@steipete
steipete marked this pull request as ready for review July 27, 2026 20:40
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Jul 27, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 27, 2026
@clawsweeper

clawsweeper Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 27, 2026, 5:26 PM ET / 21:26 UTC.

ClawSweeper review

What this changes

The PR makes the scheduled documentation-link audit ignore 5xx responses, refreshes dead documentation targets, and resolves generated contributor links by immutable GitHub account ID so renamed or deleted handles are not mislinked.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 5 items remain

This PR remains necessary: it is a follow-up to the merged external-link audit and has not been shown to be on current main. The patch appears internally coherent, but a maintainer should explicitly accept the changed 5xx reporting policy and require an exact-head real run before merge; likely related people: steipete (high confidence).

Priority: P3
Reviewed head: 1169749977a254418eb70a291c75799398e57461
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation and focused regression coverage look solid from the supplied diff, but the required real after-fix behavior proof is not yet attached.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: The PR documents live URL and GitHub-account checks plus focused tests, but it does not provide an exact-head real artifact or transcript showing the changed audit classification and generated contributor-wall output; redact private data if posting that evidence. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The PR documents live URL and GitHub-account checks plus focused tests, but it does not provide an exact-head real artifact or transcript showing the changed audit classification and generated contributor-wall output; redact private data if posting that evidence. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 5 items Related merged audit: The PR explicitly follows the merged scheduled-audit work in #114643; that earlier PR recorded 15 advisory errors from its first post-merge run, which this branch classifies and repairs.
Changed reporting policy: The supplied PR diff changes the Lychee accepted-status range from 100..=399,401,403,429 to also accept 500..=599, so all upstream server failures disappear from the advisory error output.
Stable contributor identity path: The supplied diff resolves seed credits through the numeric GitHub account ID parsed from avatar URLs, retains a credit without an HTML link for confirmed missing accounts, and adds regression coverage for renames, 404/410, and transient lookup failures.
Findings None None.
Security None None.

How this fits together

A scheduled GitHub Actions workflow scans public documentation links and publishes an advisory report rather than gating pull requests. A contributor-wall generator combines Git history, GitHub contributor data, and a seeded README snapshot to produce the README attribution links.

flowchart LR
  A[Public docs and README] --> B[Scheduled link audit]
  B --> C[HTTP status classification]
  C --> D[Advisory link-rot report]
  E[Git history and contributor API] --> F[Contributor generator]
  F --> G[Account-ID resolution]
  G --> H[README contributor wall]
Loading

Decision needed

Question Recommendation
Should the scheduled documentation-link audit intentionally suppress every upstream 5xx from its advisory error report, rather than retain those responses as a separate non-gating diagnostic category? Accept 5xx suppression: Merge with the stated policy that only concrete link-rot responses such as 404 and 410 should remain advisory errors.

Why: The branch changes the meaning of the operational report rather than merely repairing a dead link; repository policy treats workflow behavior and fallback/reporting changes as maintainer-visible risk.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The PR documents live URL and GitHub-account checks plus focused tests, but it does not provide an exact-head real artifact or transcript showing the changed audit classification and generated contributor-wall output; redact private data if posting that evidence. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - Accepting the entire 500–599 range means a persistent upstream server failure will no longer appear in the advisory error count, so maintainers lose that diagnostic signal by design.
  • Resolve merge risk (P1) - The changed scheduled workflow has not been demonstrated with exact-head output showing both the new status classification and the generated contributor-wall result in a real run.
  • Complete next step (P2) - A maintainer must choose the permanent meaning of upstream 5xx responses in the scheduled advisory audit; no narrow mechanical repair is warranted until that policy is confirmed.
Agent review details

Security

None.

PR surface

Tests +118, Docs -1, Config 0, Other +66. Total +183 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 119 1 +118
Docs 5 11 12 -1
Config 1 1 1 0
Generated 0 0 0 0
Other 3 91 25 +66
Total 10 222 39 +183

Review metrics

Metric Value Why it matters
Audit status policy 1 accepted-status range expanded to include 100 server-status codes This changes what maintainers see in the scheduled advisory report even though the workflow remains non-gating.

Stored data model

Persistent data-model change detected: serialized state: test/scripts/update-clawtributors.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: canonical
Canonical: #114746
Summary: This PR is the current follow-up for the audit results produced by the earlier merged workflow; the earlier work established the audit, while this branch narrows its report policy and repairs discovered documentation and attribution data.

Members:

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

Merge-risk options

Maintainer options:

  1. Accept the narrower audit policy (recommended)
    Approve the intentional 5xx suppression after reviewing an exact-head advisory report and contributor-wall generation result.
  2. Preserve non-gating 5xx diagnostics
    Adjust the report so server failures remain visible separately while 404 and 410 continue to define actionable link rot.
  3. Pause the workflow-policy change
    Close or defer this branch if the weekly audit should continue surfacing persistent upstream service failures.

Technical review

Best possible solution:

Keep the audit non-gating, land the account-ID attribution repair only after maintainer acceptance of the 5xx policy, and retain an exact-head artifact or redacted live transcript that shows the advisory report and generated README output.

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

No high-confidence current-main reproduction was established in this read-only review. The PR body documents a prior hosted audit run on byte-identical affected paths, which makes the reported behavior source-reproducible but does not replace an exact-head run.

Is this the best way to solve the issue?

Unclear. Account-ID lookup is a narrow, maintainable repair for renamed or deleted contributor handles, but accepting every 5xx is a report-policy choice that should be confirmed rather than treated as an automatic bug fix.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR documents live URL and GitHub-account checks plus focused tests, but it does not provide an exact-head real artifact or transcript showing the changed audit classification and generated contributor-wall output; redact private data if posting that evidence. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • remove proof: sufficient: Current real behavior proof status is insufficient, not sufficient.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: 📣 needs proof.

Label justifications:

  • P3: This is a low-blast-radius documentation-maintenance and advisory-workflow refinement, not a user-facing runtime regression.
  • merge-risk: 🚨 automation: The branch changes the status taxonomy of a scheduled GitHub Actions audit and can alter the operational signal maintainers receive after merge.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR documents live URL and GitHub-account checks plus focused tests, but it does not provide an exact-head real artifact or transcript showing the changed audit classification and generated contributor-wall output; redact private data if posting that evidence. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the merged audit implementation and this focused follow-up, tying the current workflow, documentation repairs, and contributor-generator changes together. (role: recent area contributor; confidence: high; commits: fd0fdcc45814, 1169749977a2; files: .github/workflows/docs-external-links.yml, scripts/update-clawtributors.ts, scripts/clawtributors-map.json)

Rank-up moves

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

  • Attach a redacted exact-head run showing the advisory audit’s treatment of 5xx and the generated README result for renamed and deleted contributor accounts.
  • After adding proof, update the PR body so ClawSweeper can refresh the review; if that does not happen, ask a maintainer to comment @clawsweeper re-review.

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 (1 earlier review cycle)
  • reviewed 2026-07-27T20:47:22.242Z sha 1169749 :: needs maintainer review before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Pre-merge proof for exact head 1169749977a254418eb70a291c75799398e57461:

  • Reproduced the 15-result audit defect from run 30292013410 on byte-identical current-main surfaces.
  • Verified six account renames by immutable GitHub account ID and two deleted account IDs; preserved all eight contributor credits.
  • Focused generator regression suite: 9/9 passed.
  • Workflow, docs MDX, formatting, source-contract, and live replacement-link checks passed.
  • Blacksmith Testbox check:changed: tbx_01kyjmhkxprrgvaa479xwycatx, run 30303125789, exit 0.
  • Exact-head CI: run 30303600955 attempt 2 succeeded; required openclaw/ci-gate is SUCCESS. Attempt 1 had one unrelated loaded-shard timeout in src/cli/gateway-backed-exit.process.test.ts; the allowed single failed-job rerun passed without code changes.
  • Independent adversarial refuter: NO-ACTIONABLE-OBJECTION.
  • Final Codex autoreview: clean, no accepted/actionable findings.
  • Latest ClawSweeper review: none posted, so there are no Rank-up moves: to apply or skip.

The remaining required behavior proof is the assignment's post-merge workflow_dispatch of Docs External Link Audit and its resulting advisory error count.

@steipete steipete closed this Jul 27, 2026
@steipete steipete reopened this Jul 27, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Jul 27, 2026
@steipete
steipete merged commit 69b54cf into main Jul 27, 2026
320 of 345 checks passed
@steipete
steipete deleted the maint/docs-external-link-audit-followup branch July 27, 2026 21:37
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant