Repository navigation
fix(lychee): regenerate private inventory, check dot-directories, retry 429s, remap JS anchors - #767
Conversation
Regenerate the private-repo exclude alternations with private-repo-inventory.sh generate --write, adding agent-automations, architecture and azure-iac, and cite each new repo in the exclusions fixture so the contract test sees a link for every inventoried repo. Document the online check command in the component README. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`**/*.md` skipped every tracked file under `.github/`, `.claude/` and similar, so their links were never checked. `hidden = true` adds them; a local offline sweep of all 12 cloned sync targets plus standards found no new error in a tracked file. Glob inputs do not honor `.gitignore`, so the local `.work/` directory is excluded by path. Also corrects the excludes audit's comment about repositories outside the sync roster. Co-Authored-By: Claude Opus 5.5 <[email protected]>
With `hidden = true` a local glob run also reads `.claude/worktrees/`, which holds whole nested checkouts. Exclude it beside `.work/`, and make the comment name the two excluded directories instead of claiming every local-only dot-directory is excluded. Co-Authored-By: Claude Opus 5.5 <[email protected]>
medley commits its .work/ tree (718 markdown files); its links were never checked and fail offline today (64 errors), so the exclude keeps that status quo rather than describing a never-committed directory. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e a reason Drop the global accept list so lychee's default status set applies: an accepted 429 skipped the retry with backoff and the fragment check. Remap GitHub comment and review anchors, PyPI #files and docs.github.com GraphQL reference anchors to the page without the fragment, since those fragments exist only after the page's scripts run (lychee #1729, #2128). Delete the twitter.com exclude, which lychee already applies by default, and write a reason for each social-host and bot-block exclude. Tests: a remap fixture checks each rewritten URL and that other fragments on the same hosts are kept; the 429 case now asserts the run fails and the server saw more than one request, with a 200 control. Co-Authored-By: Claude Opus 5.5 <[email protected]>
pr-pipeline-sandbox is a CI-lane test bed with no authored docs, and knowledge-corpus is mostly scraped third-party markdown deferred from the sync roster. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 2m 15s —— View job Security review — PR #767
No security issues found. This PR is a link-checker config/docs/test change (lychee), and I found no vulnerabilities in scope for this lane:
Checked the diff for instruction-surface deletions (per this lane's guardrail-removal lens): the |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 5m 41s —— View job Code review complete
1 finding, confirmed by an independent verifier, posted inline on
Everything else I checked held up under close reading: the three Note: the PR body's own verification steps (the offline sweep over 12 cloned sync targets, the token-behavior probe, link counts) are author-claimed and I did not independently re-run them — |
|
claude-security-review has reviewed this pull request through a5e69e7; a later push is reviewed from there. |
|
claude-review has reviewed this pull request through a5e69e7; a later push is reviewed from there. |
A glob input over a scratch tree proves `hidden = true` reaches .github/ and .claude/, that .work/ at any depth and .claude/worktrees/ are excluded, that a .workshop/ lookalike stays checked, and that the same glob with --hidden=false skips .github/. Explicit file paths bypassed all three. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @kyle-sexton's task in 5m 46s —— View job Code review in progress
|
|
Claude finished @kyle-sexton's task in 30s —— View job Security review — PR #767 (incremental)
No security issues found. The only change since
Neither change touches credentials, tokens, network trust boundaries, or any instruction/guardrail surface. The new loop ( No instruction-surface deletions in this incremental diff (it's additive test coverage, not a removal or softening of any rule), so the protected-class register doesn't apply here. |
) No related issue: org-wide online link sweep requested by the repository owner. ## Summary An online lychee 0.24.2 run (network on, no GitHub token, shared `lychee.toml` from standards) over tracked markdown checked 204 links and failed 4. All four are live citations in `plugins/humanize/skills/humanize/references/revision-rubric.md` whose publishers refuse automated clients. No link was rotten. ## Fix Adds `.lycheeignore` with four exact-URL entries, each with its evidence: | URL | Failure | Evidence it is alive (2026-10-11) | |---|---|---| | `https://doi.org/10.1126/sciadv.adt3813` | 403 (science.org, Cloudflare) to lychee, curl and a browser User-Agent | doi.org handle API resolves (responseCode 1); Crossref indexed the work 2026-10-09 | | `https://doi.org/10.1073/pnas.2422455122` | 403 (pnas.org) to every client tried | doi.org handle API resolves; Crossref indexed the work 2026-10-03 | | `https://www.cdc.gov/ccindex/tool/index.html` | 403 Akamai "Access Denied" to lychee, curl and a browser User-Agent | WebFetch from another network returned the Clear Communication Index User Guide | | `https://www.cdc.gov/nceh/clearwriting/mod2/index.html` | same Akamai 403 | WebFetch returned "Get to the Point: Write for Immediate Understanding" | None of these URLs appears in another org repository, so none is proposed as a shared exclude. ## Verification - Rerun of the same online command against this branch: 204 links, 0 errors, 0 timeouts except one GitHub 503 on a claude-code-plugins link that passed on immediate retry. - `lychee.toml` is untouched. ## Related - Online sweep row G of the org lychee audit; shared config from melodic-software/standards#767. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
No related issue: org-wide online link sweep requested by the repository owner. ## Summary An online lychee 0.24.2 run (network on, no GitHub token, this repository's `lychee.toml`) over tracked markdown found one rotten link outside `components/lychee/`: the cloud-environment README pointed at `docs/CLOUD-FLEET-SETUP.md` in claude-code-plugins, which #4097 there renamed to `docs/cloud-fleet-setup.md`. ## Fix - `components/cloud-environment/README.md`: link and label now name `docs/cloud-fleet-setup.md` (passes online). ## Verification Rerun against this branch: 1,005 links, 20 errors, 5 timeouts. None is in a file this PR can fix: - 2 in `components/lychee/fixtures/bad/` (intentional). - 16 in `components/lychee/fixtures/good/Exclusions.md` and `Remap.md`: placeholder URLs built for the offline fixture test, which fail when the fixtures are swept online. Out of scope here; reported to the lychee config owner. - 1 GitHub 503 and 1 gnu.org 429: both pass on retry. - 5 man7.org timeouts: man7.org refuses connections from every client tried today (curl, WebFetch); web.archive.org captured the pages with 200 on 2026-10-10. A host outage, not rot and not a checker limitation, so no exception. ## Related - Online sweep row G of the org lychee audit; follows #767. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
No related issue: org-wide online link sweep requested by the repository owner. ## Summary An online lychee 0.24.2 run (network on, no GitHub token, shared `lychee.toml` from standards) over tracked markdown checked 248 links and failed only `https://cursor.directory/`, cited in `docs/official-docs.md` and `plugins/plugin-ops/reference/doc-sources.md`. ## Fix Adds `.lycheeignore` with one exact-URL entry, `^https://cursor\.directory/?$`, and its evidence: - The 429 is not a rate limit. Every non-browser client (lychee, curl, curl with a browser User-Agent, WebFetch) gets `X-Vercel-Mitigated: challenge` and a "Vercel Security Checkpoint" page (2026-10-11). - A JavaScript-rendering fetch (firecrawl) returned the live plugin index ("Extend Cursor with community plugins.") the same day. medley mentions cursor.directory only as inline code, not a link, so this exception is needed in one repository and is not proposed as a shared exclude. ## Verification - Rerun of the same online command against this branch: 248 links, 0 errors, 0 timeouts. - `lychee.toml` is untouched; no `Verified` date in the docs was changed. ## Related - Online sweep row G of the org lychee audit; shared config from melodic-software/standards#767. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
Closes #779 ## Summary Justify verdict (`/overengineering:justify`, attended, inline) on the App-token half of `maintenance-audit-link-check-excludes`: **RETIRE**. With that half gone, the scheduled job only repeats the PR lane's public-visibility check, so the whole workflow is consolidated onto that lane. - **Reason when built:** the private-repo inventory drifted twice by hand ([#212](#212), [#483](#483)). [#497](#497) (2026-08-28) made the inventory generated, added a PR-lane `check` for "an excluded repo went public", and added this scheduled App-token read for "a new private sync target is missing". - **Catches since then:** none. `gh run list --workflow maintenance-audit-link-check-excludes.yml` shows 27 runs from 2026-10-05 to 2026-10-30, all `success`, and no failed run under any path of this workflow. - **The one real gap it was built for was outside its reach.** [#767](#767) (2026-10-11) added agent-automations, architecture and azure-iac. Its own body says this workflow "could not catch it: it reads only the standards-sync App installation, and none of the three is a sync target". A manual online run found the gap as a 404, which is the control that actually catches this drift. [standards#779](#779) cites a 16-clone sweep that found one link into an uninventoried private repository. - **Carry cost:** a daily job that loads the standards-sync App private key (an App that holds contents, pull_requests, issues and workflows write elsewhere) to read repository names, plus a third input mode in `private-repo-inventory.sh` with its tests. A miss costs one false 404 in a non-blocking online run that names the repository, fixed by `private-repo-inventory.sh generate --write`. Options considered: keep (no catch on record, and blind to non-sync repos); simplify to the public half on a schedule (duplicates the PR-lane `check`, which runs on every standards pull request and push to main); retire (this PR). ## Fix - Delete `.github/workflows/maintenance-audit-link-check-excludes.yml`. - `components/lychee/private-repo-inventory.sh`: drop `--installation-list` and the code that only it fed. Drop its two test cases from `private-repo-inventory.test.sh`. - `components/lychee/README.md`, `lychee.toml` (the generated-inventory comment, outside the lines #915 touched), `pr-require-checks.yml`, root `README.md`, `components/code-review-rules/README.md`, and the cron comments of three maintenance workflows now say what covers each direction, or stop naming the workflow. - `vocabulary.json`: the `check-links` purpose no longer names the workflow. The `audit-link-check-excludes` slot stays, because `rename-map.json` still lists it as a rename target and `naming-lint.test.mjs` requires every rename target to pass the vocabulary. - ADR 0007, which mentions the workflow under its old name, is left as written. ## Verification - `bash harness/shell/run-tests.sh components/lychee/private-repo-inventory.test.sh`: passed. `components/lychee/lychee.test.sh`: passed. - `bash components/lychee/private-repo-inventory.sh check --config lychee.toml`: OK. - `npm run lint:github-actions-conventions`: 0 findings. `node --test components/github-actions-conventions/naming-lint.test.mjs`: 14 pass. `lint:concurrency-policy` and `lint:runner-policy`: passed. - `actionlint` on every workflow: clean. `shellcheck` on both scripts: clean. markdownlint on the three READMEs: clean. ## Related - The `STANDARDS_SYNC_APP_*` secrets in the `standards-sync` environment are still used by the sync workflow. Nothing to remove there. - Separate from [#923](#923) (#778 and #780), which edits a different paragraph of `components/lychee/README.md`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VcupojYKhHyDni9LuAXBuX Co-authored-by: Claude Opus 5.5 <[email protected]>

No related issue: found during an org-wide lychee audit; the fix is mechanical regeneration plus config and doc corrections.
Summary
lychee.toml's private-repo exclude list was missingagent-automations,architectureandazure-iac, all private. The scheduledmaintenance-audit-link-check-excludesworkflow could not catch it: it reads only the standards-sync App installation, and none of the three is a sync target.claude-code-pluginsalready linksazure-iac, so a manual online run reports a false 404 today.The same audit found that the shared glob skipped every dot-directory, that the global
accept 429skipped lychee's retry and fragment check, that JavaScript-rendered anchors fail an online run on live pages, and that several URL excludes carried no reason.Fix
private-repo-inventory.sh generate --write(no hand edit).fixtures/good/Exclusions.md, whichlychee.test.shrequires to cite every inventoried repo.components/lychee/README.md: corrected the claim that any new private repo fails the scheduled check within a day (only a new private sync target does); documented the manual online-run command, which no doc carried; noted that a token that can read a private repo makes lychee report its links OK unchecked, and that a consumer's.lycheeignorewidens the shared excludes.lychee.toml: pointed the header at that command and fixed the stalelychee-private-inventoryworkflow name.lychee.toml:hidden = true. The fleet's**/*.mdinput skipped every tracked file in a dot-directory (150 inclaude-code-pluginsalone:.claude/rules,.github/actions,.changes/), so those links were never checked. Glob inputs do not honor.gitignore, so.work/and.claude/worktrees/are excluded by path, matching either separator.lychee.toml: removed theacceptkey, so lychee's default status set applies. An accepted 429 counted a throttled reply as OK on the first response, skipping the retry with backoff and the fragment check.lychee.toml:remaprules rewrite GitHub issue, pull request and discussion comment and review anchors, PyPI#files, and docs.github.com GraphQL reference anchors to the page without the fragment. Those fragments exist only after the page's scripts run (lychee #1729, #2128); the page is still checked.lychee.toml: deleted thetwitter.comexclude, which lychee applies by default, and wrote a reason for every social-host and bot-block exclude. Entries that passed a workstation re-test are marked as candidates to drop after a GitHub-runner re-test.distribution/sync-manifest.yml: recordedpr-pipeline-sandboxandknowledge-corpusas deliberate lychee non-targets with reasons.maintenance-audit-link-check-excludes.yml: its header claimed non-sync private repos are reported as unverified; only listed ones are.Verification
bash components/lychee/lychee.test.sh: 98 PASS (lychee 0.24.2). New cases: a./**/*.mdglob over a scratch tree reaches.github/and.claude/rules/, skips.work/and.claude/worktrees/, keeps a.workshop/lookalike, and with--hidden=falseskips.github/; each remapped URL appears once without its fragment, other fragments on the same hosts are kept, a persistent 429 fails the run after 4 requests (1 plus the default 3 retries), and a 200 control passes.bash components/lychee/private-repo-inventory.test.sh: 34 PASS.lychee --dumpwith no config at all still excludestwitter.com,www.twitter.comandmobile.twitter.com, so the deleted entry changed nothing.private-repo-inventory.sh checkwith a maintainer credential: agrees.medleyreturns 404; with an org token able to readmedleyit returns OK, while the same missing file in publicclaude-code-pluginsand a nonexistent repo still return 404.hidden = truesweep: offline lychee 0.24.2 with this branch's config over all 12 cloned sync targets plus standards, counting only git-tracked inputs. Tracked markdown files checked rose from 3,438 to 3,867 (+429), and errors in tracked files did not change. This PR's Linux run checked 992 links (984 before) with 0 errors..work/exclude: medley tracks its.work/(718 markdown files). Without the exclude those files would be checked for the first time and fail 64 offline errors, turning medley red on the next sync.Related
agent-automations,architectureandazure-iacare not added as sync targets here: the sync attests that the standards-sync App's selected repositories equal the manifest's targets exactly, and the App is not granted those three, so adding them would fail every sync run. Granting the App first is an owner action.🤖 Generated with Claude Code