Documentation
¶
Overview ¶
Command launchrender renders the launch artefacts under docs/launch/ from the templates in docs/launch/templates/ and checks every launch file (Story 4.17).
Every number a template shows comes from a placeholder: {{bench.<path>}} reads docs/benchmark/results.json, {{registry.providers}} and friends count the embedded registry, {{card.alt}} and friends come from the share card, and {{video.<path>}} reads docs/launch/templates/video.yaml (the recording parameters). A format may follow a bar: {{bench.union_recall.value|pct}} (see values.go). A template docs/launch/templates/<path>.md.tmpl renders docs/launch/<path>.md.
The share card docs/launch/share-card.png is rendered from the demo fixture scan: the README demo sandbox (scripts/demo-env.sh) seeded with generated test keys and scanned by a benchmark build whose verification answers come from a ground truth (OpenAI and Groq live, Anthropic dead), with --format card: totals only, no repository name. Its alt text is {{card.alt}}.
With -check it writes nothing and fails on: a rendered file or the card that differs from what the inputs render (drift), a literal number in launch prose that no placeholder produced (dates, versions, list numbering, code and URLs excepted), a block or prevent claim without docs/hooks/policy.md's "live and high-confidence keys" or an absolute claim such as "stops every leak", a key-shaped string (AD-3), non-ASCII text, a draft that does not lead with a number, cites results without the benchmark's bias statement or lacks the share card alt text, a missing draft, the Show HN title, and any mention of re:Invent or a literal date in a post. docs/launch/what-your-coding-agent-remembers.md is tools/genremembers' and is only checked here.
Usage:
go run ./tools/launchrender render (make launch-render) go run ./tools/launchrender -check drift and content checks (make launch-check)
Exit codes: 0 done or clean, 1 a check failed, 2 bad input (a placeholder without a value, an unreadable or invalid data file, a card that cannot be rendered, bad flags); on exit 2 nothing is written. Messages never carry key material (AD-3).