Record A typed, versioned repository of knowledge, research and data. Compiled from plain-text sources.

Build toolchain

One Python script with three pinned dependencies validates and compiles the repository to static HTML and JSON; no site framework.

IdentifierDEC-000002 (cite this revision as DEC-000002@1)
TypeDecision (DEC)
Revision1, 2026-12-03
Statusdraft
Created2026-12-03
LicenseCC-BY-4.0
Contributorsxmzr (author); Claude Opus 5.5 (drafting, AI agent)
Contents

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

  1. record.py implements check, build and new. Its dependencies are pinned in inline script metadata (PEP 723) and run with uv run record.py.
  2. Output is static HTML with one style sheet and no client-side script, plus JSON records, a catalogue and a SKOS export.
  3. URLs are flat: /<ID>, /<ID>@<N>, /<ID>.json, /<ID>.md, /catalog.json. They do not encode taxonomy or titles.
  4. Search is deferred. Pagefind or an SQLite index is added when the repository exceeds about 100 objects.

Consequences

Relations

OutgoingTargetTitle
implementsSTD-000001Repository specification
depends_onDEC-000001Canonical source format
IncomingSourceTitle
depends_onDEC-000006Hosting, URL structure and artifact storage

Revisions

Source

Markdown source · JSON metadata · Catalogue