Context
STD-000001 R9 requires a deterministic build that validates the repository and generates every index. The project brief proposed Astro. The decision principles rank long-term maintainability, inspectability and minimal dependencies above feature breadth.
Options
Table 1. Build options.
| Option | Dependencies | Validation | Fit |
|---|---|---|---|
| Astro | Node.js toolchain, hundreds of packages | Content collections with Zod | Strong UI features; high release churn over a multi-decade horizon |
| Hugo | One binary | Weak: no schema validation | Fast; Go templates are hard to extend with custom checks |
| Quarto website | Quarto, Pandoc | None built in | Suited to computational documents, not to a typed object graph |
| MkDocs | Python, plugins | None built in | Documentation layout; weak object model |
| Single script | Python 3.11+, python-markdown, PyYAML, jsonschema | Full: schema, sections, references, revisions | The whole pipeline fits in one inspectable file |
Decision
record.pyimplementscheck,buildandnew. Its dependencies are pinned in inline script metadata (PEP 723) and run withuv run record.py.- Output is static HTML with one style sheet and no client-side script, plus JSON records, a catalogue and a SKOS export.
- URLs are flat:
/<ID>,/<ID>@<N>,/<ID>.json,/<ID>.md,/catalog.json. They do not encode taxonomy or titles. - Search is deferred. Pagefind or an SQLite index is added when the repository exceeds about 100 objects.
Consequences
- The build is replaceable:
catalog.jsonexposes all metadata, so a different frontend can be built without touching objects. - Interactive features (search, graph views) need separate work when they are added.
- Build time grows with commit count because revision history is read from git per object. A single-pass history reader replaces it when builds exceed about 10 s.