Skip to content

docsy.dev: switch the committed link cache to owned JSONC (link-cache.jsonc) - #2779

Merged
chalin merged 4 commits into
docsy:mainfrom
chalin:chalin-m24-json-cache-format-2026-0831
Sep 1, 2026
Merged

chalin merged 4 commits into
docsy:mainfrom
chalin:chalin-m24-json-cache-format-2026-0831

Conversation

@chalin

@chalin chalin commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator
  • Owned link cache: docsy.dev/link-cache.jsonc (1070 entries, migrated losslessly via lychee-norm-cache --migrate) becomes the committed source of truth — per-entry provenance (via), comment-capable, multi-line prettier-style entries — with Lychee's .lycheecache derived from it per run and gitignored. Format and rationale: [email protected]; prior field test: docsy-starter#23.
  • Release-prep seeds get first-class treatment: the three 0.18.0 placeholder rows are now via: "manual" entries with an expires date and a rationale comment; unexpired seeds are trusted as-is (and exempt from pruning as of 0.4.1), dropping the manual redemption step from the release process (maintainer notes updated).
  • Deploy-time link checking dropped: the Netlify image has no lychee, so _postbuild's warn-wrapped check has verified nothing since the Lychee switch — the wrapper swallowed the tool-absence failure that would have said so. The check belongs to CI's pinned-lychee hard run (test.yaml).
  • Scripts: npm run link-cache / fix:link-cache are canonical; refcache / fix:refcache warn and delegate.
  • Validated: full site check green through the new lens (16123 links, 0 errors); cache byte-stable across reruns and untouched by prettier --check.

….jsonc)

Adopts [email protected]'s owned-cache format: link-cache.jsonc (1070
entries, migrated losslessly) becomes the committed source of truth --
per-entry provenance (via), comment-capable, multi-line prettier-style
entries -- with Lychee's .lycheecache derived from it per run and
gitignored.

- The three 0.18.0 release-prep placeholder rows become what they
  always were: manual seeds, now with an expires date and a rationale
  comment; unexpired seeds are trusted as-is, so the release process
  no longer tracks a redemption step.
- npm run link-cache / fix:link-cache are the canonical scripts;
  refcache / fix:refcache warn and delegate.
- Full site check is green through the new lens (16123 links, 0
  errors) and the cache is byte-stable across reruns.
chalin added 3 commits August 31, 2026 19:26
- link-cache 0.4.1: prune now exempts manual entries, so the planned
  scheduled prune-refresh rotation can no longer evict unexpired seeds
  mid-lifecycle (review finding; fix released upstream).
- Seed expiry tightened to 2026-10-15: keeps the post-release live
  re-check within weeks of the expected 0.18.0 ship date instead of
  deferring validation to year-end.
- Literal em dash -> -- in the rewritten maintainer-notes section.
The Netlify image has no lychee, so _postbuild's warn-wrapped check has
verified nothing since the Lychee switch — and the wrapper swallowed
the tool-absence failure that would have said so (the docsy-starter
Netlify false-green pattern; resolution per the otel.io precedent).
Link checking belongs to CI's test.yaml, which installs a pinned
lychee and runs the hard check. Removes _postbuild and
_check:links--warn; with link-cache 0.4.1's exit contract, any future
warn wrapper must soften exit 1 only and re-raise 2.
…he-format-2026-0831

# Conflicts:
#	docsy.dev/.lycheecache
@chalin
chalin marked this pull request as ready for review September 1, 2026 00:15
@chalin
chalin merged commit 9c80e84 into docsy:main Sep 1, 2026
18 checks passed
@chalin
chalin deleted the chalin-m24-json-cache-format-2026-0831 branch September 1, 2026 00:27
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