Docs freshness
Every pull request runs one command that fails when these docs drift from the compiler, the packages or the language proposals. This page states exactly what that command checks and what it does not.
The command
From the repository root:
sh scripts/ci.sh //:docs-checkIt installs what the check reads, builds the compiler and runtime, and runs the docs check target of the build graph. The pull request check runs the same target beside //:e2e, so a change that fails it fails the pull request check. That failure stops a merge only where branch protection marks the check as required, a repository setting these files do not record. With a built compiler the check takes about three minutes, most of it compiling code blocks.
What fails the check
| Drift | Check |
|---|---|
A vibe or ts code block in these docs, the specification or the agent skill (SKILL.md) no longer compiles, or reports a diagnostic it does not declare | docs/tools/check-snippets.ts over docs/user, docs/design/src and packages/compiler/skills/vibelang |
An inline form in the VibeLang column of SKILL.md's Forms table that the compiler rejects, or a new form with no recorded context to compile it in | docs/tools/check-skill-forms.ts compiles each form in the minimal context docs/tools/skill-forms.ts gives it, and allows no diagnostic |
| An accepted VIP that no page here cites, outside the release notes | docs-freshness.mjs, vip-pages; it also regenerates the VIP-to-page table and fails when it is stale |
| A VIP missing from the VIP index, or listed with a status its own file does not record | vip-pages's sibling, vip-index |
An EK code the compiler declares with no row whose first column names it, both in Appendix B (or the imported lint codes) and in the diagnostic code map (or the imported lint codes); a mention in another row's description does not count. A row whose first column names a code the compiler no longer declares also fails. The code map ends with a generated index of the codes its other tables leave out; a stale index fails, and --write refuses to regenerate it unless its two markers each occur once, in order | diagnostic-codes |
A page that prints any EK code the compiler no longer declares, whether or not a table still lists it, unless the sentence says the code is retired. The code map, the release notes and the retired-forms migration page name retired codes on purpose. A code that appears only in a Go comment does not count as declared | retired-codes |
A page that shows a retired form in inline code, in prose or a table cell, as if it were current: a spelling from docs/tools/retired-forms.mjs in a paragraph or row that neither calls it retired or legacy nor names its diagnostic. A diagnostic whose compiler message says retired, legacy or no longer, or that the retired-forms migration page names, needs an entry there or a stated reason it has no spelling | retired-forms; docs/tools/check-retired-forms.ts compiles each entry's program and fails unless the compiler reports the entry's diagnostic, so an entry cannot name a form the compiler still accepts |
A command the vibelang executable accepts, or a key of the vibe and vibelang configuration objects, that no page shows | cli-config |
| A page that no longer matches the site, or a site page with no source | docs/tools/check-site-sources.mjs regenerates the site's pages and sidebars in a temporary copy and compares them byte for byte with the checkout, which it never writes |
A page path in SKILL.md that no longer exists, or a https://vibelang.sh/ link to a missing page | skill-paths and site-urls |
An accepted VIP that the release notes, or a pending entry in docs/user/changes, never name | release-notes |
| A change to the compiler (any shipped source of its Go module, such as configuration parsing), a published package or a starter template with no pending release note and no stated exemption, including a second change to a feature an older release already documents | landed-changes compares a digest of each area's tracked files (so a local build is not a change) with docs/tools/release-note-ledger.json; docs-freshness.mjs --acknowledge <area> --note <file.md> (or --exempt "<reason>") records it. The note must be a nonempty entry in docs/user/changes, and an area's earlier notes stay until the release notes publish their whole text. Removing a package or template is a change too: its entry stays, marked removed, and needs a note or exemption |
A README create vibelang command, anywhere in its block, with an argument the starter rejects, a run script its template lacks or that runs before the block enters the created directory, or a node_modules/vibelang/ path the package does not publish; Node versions that differ from the package's engines | readme-install |
A broken relative link, inline or as a reference definition, including a <destination with spaces> or one with balanced parentheses, in the README, the contributor and maintainer guides, the specification, the VIPs or these docs | relative-links |
A quoted VibeLang version (VibeLang 0.0.N, vibelang@0.0.N) that is not the compiler's own, or a stale count: accepted VIPs in a numbered range, Effect lint rules | versions and counts |
The docs-freshness.mjs checks live in docs/tools/docs-freshness.mjs. Each one, and the site and snippet checks, has a test that plants its drift and expects the failure: docs/tools/docs-freshness.test.mjs, docs/tools/docs-freshness-generated.test.mjs docs/tools/check-skill-forms.test.ts and docs/tools/check-retired-forms.test.ts. The target also keeps its earlier checks: generated files, lint code tables, release-note structure, the token counts quoted in the agent files, and tracked-path hygiene.
A drift that a known change will fix may be listed in docs/tools/docs-freshness-baseline.json with the reason or owner. An entry that no longer occurs fails the check, so the list only shrinks.
What is not checked
- Prose is compared with the compiler only through retired spellings and diagnostic codes. Code blocks and
SKILL.md's Forms table compile; other inline code is checked only against the retired forms indocs/tools/retired-forms.mjs. A retired form with no distinctive spelling, whichnotFormsthere lists with its reason, and a form removed without a retirement diagnostic, are caught only in compiled code. - Inline code in
SKILL.md's prose and rules is not compiled; its fenced blocks and the forms in its Forms table are. - Code blocks compile but do not run by default;
check-snippets.ts --runalso compares declared output. - Install commands are not run against the npm registry.
//:e2einstalls the starter from the checkout on every pull request instead. - Anchors after
#in relative links, and links outside the repository other thanhttps://vibelang.sh/, are not followed. - A change to a shipped area needs a note or an exemption, but the check cannot judge whether the note describes the change, and changes that landed before the ledger started on 2026-12-01 were not matched against notes.
- Only the counts listed above are recomputed; other numbers in prose are not.
- TypeScript's own compiler options are TypeScript's documentation, not these docs.
- Whether the pull request check is required before a merge is a branch protection setting outside the repository.