Skip to content

Bump link-cache to 0.6.0; adopt its expires-based rotation rule - #2792

Merged
chalin merged 20 commits into
docsy:mainfrom
chalin:chalin-m24-link-cache-0.5.0-2026-0903
Oct 6, 2026
Merged

chalin merged 20 commits into
docsy:mainfrom
chalin:chalin-m24-link-cache-0.5.0-2026-0903

Conversation

@chalin

@chalin chalin commented Sep 3, 2026 •

Copy link
Copy Markdown
Collaborator
  • Scope: bump link-cache from 0.4.1 to 0.6.0 (exact, from the npm registry) and adopt its one-rule model
    • Writes the lock under a one-run NPM_CONFIG_MIN_RELEASE_AGE override: own package, exercised on this branch as a commit-pinned git dependency before its 2026-10-02 release; nothing else resolved under the override
  • Out of scope (deferred; the refresh workflow stays parked):
    • Re-enabling the refresh workflow (CLA blocks bot-authored PRs)
    • Pruning lapsed expires entries on every refresh run
  • Merge order with cache-touching PRs written under 0.4.1: this PR lands after them, rebased and re-migrated (done for Support llms.txt for kind section and doc-rooted sites #2841)
    • Their status entries merge cleanly, but 0.6.0's check rewrites them to result, which fails CI's is:clean; npm run fix:link-cache normalizes them
  • Cache schema migration: link-cache.jsonc is main's entries rewritten by one 0.6.0 run (status → result), plus the two package-doc links the notes now cite
  • Refresh lane: header, dispatch input, prune log line, and PR-body text aligned with the 0.6.0 rule
  • Maintainer notes: seed, prune, and field guidance updated to 0.6.0, linking the package's docs; also drops a "née refcache" aside and the consumer-site lead's run-in label on the same page
  • Validation:
    • Migration preserves every entry's timestamp and is byte-stable on a second run
    • check:links over docsy.dev under 0.6.0 is diff-free (17,993 links, 0 errors)
    • test:repo, test:lychee, and check green
  • Preview: maintainer notes § Link checking

@chalin chalin added this to the 0.18.0 milestone Sep 3, 2026
@chalin
chalin marked this pull request as draft September 9, 2026 13:53
@chalin
chalin force-pushed the chalin-m24-link-cache-0.5.0-2026-0903 branch from 400a60b to 9689bbb Compare September 9, 2026 14:36
@chalin chalin changed the title Bump link-cache to 0.5.0; adapt refresh workflow to the mode split Bump link-cache to 0.6.0; drop the refresh lane's mode split Sep 9, 2026
@chalin
chalin force-pushed the chalin-m24-link-cache-0.5.0-2026-0903 branch from 9689bbb to 3bac160 Compare September 16, 2026 12:41
@chalin
chalin marked this pull request as ready for review September 16, 2026 12:42
@chalin
chalin marked this pull request as draft September 16, 2026 12:42
@netlify

netlify Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for docsydocs ready!

Name Link
🔨 Latest commit 3710244
🔍 Latest deploy log https://app.netlify.com/projects/docsydocs/deploys/6ac4df3c3f335500086cfa0a
😎 Deploy Preview https://deploy-preview-2792--docsydocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@chalin
chalin force-pushed the chalin-m24-link-cache-0.5.0-2026-0903 branch 2 times, most recently from 137dcde to e5f1290 Compare October 5, 2026 14:03
@chalin chalin changed the title Bump link-cache to 0.6.0; drop the refresh lane's mode split Bump link-cache to 0.6.0; adopt its expires-based rotation rule Oct 5, 2026
chalin added 18 commits October 6, 2026 07:43
- Pin link-cache 0.5.0 (from 0.4.1): staleness checks are now opt-in
  (--check-stale); default runs only verify URLs missing from the cache.
- Refresh workflow: run the checker with --check-stale, and add the new
  link-cache --max-age staleness guard (382d = max_cache_age 375d + the
  7d refresh interval, per the link-cache README).
- link-cache.jsonc: schema migration (status -> result), rewritten
  wholesale by the first 0.5.0 run; timestamps preserved.
- Refresh-PR body copy: failures are now failure words (error, timeout)
  or non-2xx codes, not negative statuses.
- Workflow header: default mode age-trusts cached 2xx results only;
  failures and non-2xx re-check every run.
- Maintainer notes: entry field is result (was status); expires
  redemption happens in the refresh lane's --check-stale run.
- Default runs verify URLs without a cached 2xx result (failures and
  non-2xx re-check every run), not just cache-missing URLs.
- Refresh-PR body copy: live failures mint failure words only; drop the
  non-2xx mention.
The header owns the mode model; the --check-stale step comment keeps
only the local why. Also drops the version stamp from the header.
- Workflow: drops the --check-stale step comment (the header owns the
  mode model) and the guard comment's exit-code restatement.
- Maintainer notes: seed-redemption mechanics link to the link-cache
  README instead of paraphrasing it; gloss punctuation per the dash rules.
- Cache: entry for the new README link.
`github:chalin/link-cache#f50daa1` (exact commit), the 0.6.0 lean core
ahead of its npm release; swap to the registry version before merge.
The supply-chain audit's git-pin allowlist gains a temporary entry
covering both the lock's resolved URL and the manifest spec (full SHA
only; a branch or tag ref still fails).
0.6.0 has one projection rule and no --check-stale: expired seeds are
prune-eligible, so the weekly prune retires them and the following check
re-verifies live. Removes the flag and the --max-age guard step; the
header and the maintainer notes' seed bullet describe the 0.6.0 model,
including exclusive expires dates.
Exact 0.6.0 from the npm registry replaces the exercise's git pin; the
lock delta is link-cache alone (registry URL + integrity). Drops the
supply-chain audit's temporary git-pin allowlist entry, restoring the
file to main's shape (red with the stale entry, green after).
One `--prune 0` write (no lapsed seeds, so a pure normalization):
1105 entries from status to result with timestamps preserved, plus the
maintainer notes' link-cache README entry. A second run leaves the
file byte-identical.
The refresh workflow's header and PR-body line, and the maintainer
notes' seed bullet, described prune exemption as a property of manual
seeds; under 0.6.0 it is a holding expires date, and a lapsed one is
dropped by the next prune ahead of the age rotation. The seed bullet now
cites the operating model's one rule (the README is an index) and names
the UTC day boundary; the cache swaps the README entry for the new URL,
verified live. (r1.3-r1.5)
…edule"

The link-checking section's "née refcache" etymology is not a fact a
reader of the 0.6.0 model needs; the validation-schedule lead used a
literal em dash where the style's term-gloss colon fits. (r1.9)
0.6.0 rotates the oldest entries without an expires date whatever set
them; "lychee-verified" was true of today's cache but not the rule. The
maintainer notes' validation-schedule lead drops its run-in label, which
had left the sentence with two colons. (r2.1, r2.4)
The seed bullet says how a lapsed seed gets dropped (`-p 0`, or the next
prune), uses "lapsed" like the tool and the workflow header, and shows
the placeholder as a `"result"` pair; the field list names `result` and
`expires` as fields and links the package's field reference. Link defs
follow `main` rather than the pinned tag, so a bump can't strand them.
The workflow header drops a clause that restated its first sentence, and
the refresh PR's body formats field names as code. (r3.1, r3.7-r3.14)
`-p 10%` takes its tenth of the entries without `expires`, after the
lapsed ones; the refresh PR's oldest-entry aside no longer says a held
entry keeps its timestamp, which a failing re-check refreshes. (r4.1,
r4.2)
The workflow header, the refresh_count input and the prune-step echo
all described the count as the whole prune; under 0.6.0 lapsed expires
entries drop as well. The notes' Inspect bullet names those entries by
their field, not as seeds. (r5.1, r5.2, r5.3)
The header, input description and refresh PR body say what a prune does
without restating the pool's own condition; the prune-step echo leaves
the count split to the tool's log line. The Seed bullet adds the check
run that dates a new seed (CI's clean-tree check would catch an undated
one) and owns the lapsed-seed sentence alone. (r6.3-r6.9)
@chalin
chalin force-pushed the chalin-m24-link-cache-0.5.0-2026-0903 branch from 891bab2 to 3710244 Compare October 6, 2026 11:44
@chalin
chalin marked this pull request as ready for review October 6, 2026 12:12
@chalin
chalin requested a review from a team October 6, 2026 12:12
@chalin
chalin merged commit ed77b08 into docsy:main Oct 6, 2026
14 checks passed
@chalin
chalin deleted the chalin-m24-link-cache-0.5.0-2026-0903 branch October 6, 2026 12:13
chalin added a commit that referenced this pull request Oct 7, 2026
- Contributes to #2775
- **Scope**: the 0.18.0 artifacts refreshed for the merges after #2840 (`0fdf3a6f` to `64411422`), merged `main` only; version guidance follows the changelog's official support policy
  - **Release post**
    - Linux Foundation stated as Docsy's home, with the module-path migration and canonical-path cleanup
    - `llms.txt` section (#2841, #2851)
    - Hugo section routing to the companion
    - Default script-dependency versions, with a reconcile action for existing overrides
    - Override notes as a `<details>` under the Upgrade step
  - **Hugo 0.165.0-0.166.0 upgrade guide**, new: the companion carrying the Hugo mechanics (the 0.16.0 model), one action block per change
  - **Changelog**, **user guide**, **maintainer notes**: aligned with the posts (one home per fact; the guide owns the evergreen rules the posts point to)
  - **Agent-support page**: reorganized around parallel Markdown-output and `llms.txt` sections, in Hugo's glossary terms (site, project, site root)
  - **Theme** (widening): `all.llms.txt` no longer lists an `AGENTS.md` page, a docsy.dev experiment from #2605 that leaked into the theme; `llms.txt` golden updated
  - **Version params**: both posts freeze every version param they render; the toolchain-versions test guards the frozen script pins and the companion's title bound
  - Post dates set; `draft: true` kept
- **Out of scope**
  - Tag-time fields: draft flip, version stamp, `UNRELEASED` removal, the release link
  - CSP guidance home and the print-gap line: owner decisions pending
  - The dropped `AGENTS.md` `llms.txt` line: no changelog or post mention (experimental, docsy.dev-only; owner call)
  - Relative links in Markdown output versions: pre-existing, #2858
- **Coverage** (ledger, ten rows)
  - #2850: changelog, post (Other notable changes)
  - #2852: changelog, post, companion guide
  - #2851: user guide, changelog, post
  - #2853: post table
  - #2792: changelog, post
  - #2841: user guide, changelog, post
  - #2848: changelog, post (the LF fact)
  - #2829: post version table (the Dart Sass pin)
  - #2849, #2846: internal; release notes only
  - #2854: guide only
- **Preview(s)**
  - https://deploy-preview-2855--docsydocs.netlify.app/blog/2026/0.18.0/
  - https://deploy-preview-2855--docsydocs.netlify.app/blog/2026/hugo-0.165.0+/
  - https://deploy-preview-2855--docsydocs.netlify.app/project/about/changelog/#next
  - https://deploy-preview-2855--docsydocs.netlify.app/docs/update/
  - https://deploy-preview-2855--docsydocs.netlify.app/docs/content/agent-support/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant