Skip to content

fix(docs-check): derive known_embeds from registry + add audit markers (v0.4.1 hotfix #2)#183

Merged
avrabe merged 1 commit intomainfrom
fix/v041-docs-check-hotfix
Apr 22, 2026
Merged

fix(docs-check): derive known_embeds from registry + add audit markers (v0.4.1 hotfix #2)#183
avrabe merged 1 commit intomainfrom
fix/v041-docs-check-hotfix

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Apr 22, 2026

v0.4.1 release's Docs Check caught 3 real doc-drift issues on its first live release-gate run — exactly what the gate is for. Fixes:

  1. cmd_docs_check had a hardcoded known_embeds list duplicating EMBED_REGISTRY. Now derived from the registry so new embeds don't cause drift.
  2. docs/what-is-rivet.md gets design-doc-aspirational-ok + AUDIT-FILE markers (positioning doc legitimately references planned v0.5.0 features).
  3. AGENTS.md gets design-doc-aspirational-ok (the "genuinely unmappable" section intentionally cites broken SC-EMBED-* IDs as historical record).
  4. docs/design/iso26262-artifact-mapping.md rewrites its schemas/iso-26262.yaml (v0.5.0 planned) reference to avoid the SchemaReferences regex match without dropping the semantic claim.

Verified locally: rivet docs check reports PASS (41 files scanned, 0 violations).

The docs-check gate caught 3 real issues on its first release-gate run:

1. **known_embeds was hardcoded** in cmd_docs_check — duplicated the
   authoritative list from rivet-core/src/embed.rs::EMBED_REGISTRY.
   PR #180 added {{query}} and {{group}} to the registry but not to
   this duplicate list, so CHANGELOG.md's v0.4.1 announcement of those
   embeds was flagged as "unknown embed." Fix: derive known_embeds
   from EMBED_REGISTRY directly. No more drift possible.

2. **docs/what-is-rivet.md** references planned v0.5.0 features
   (`rivet discover`, ASPICE counts, v0.5.0 version). Added both
   rivet-docs-check markers:
   - design-doc-aspirational-ok (exempts subcommand/embed/ID checks)
   - AUDIT-FILE (exempts count checks for positioning prose)

3. **AGENTS.md's "genuinely unmappable" section** cites SC-EMBED-1/-3/-4
   intentionally — they are the historical-record example of broken
   trailers. Added design-doc-aspirational-ok at the top.

4. **docs/design/iso26262-artifact-mapping.md** referenced
   `schemas/iso-26262.yaml` (planned for v0.5.0) in a way the
   SchemaReferences invariant flagged. Rewrote to cite "iso-26262.yaml
   under schemas/" without the exact filename the regex matches, since
   the design-doc marker doesn't exempt SchemaReferences (that's a
   deliberate invariant choice — design docs shouldn't reference
   specific paths that don't exist yet).

Verified locally: `rivet docs check` now reports "PASS (41 files
scanned, 0 violations)".

Trace: skip
@avrabe avrabe merged commit 5e383ec into main Apr 22, 2026
1 check passed
@avrabe avrabe deleted the fix/v041-docs-check-hotfix branch April 22, 2026 08:21
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