DEVELOPMENT EDITION · 769442725406
Maintenance
On this page

Authoring and validating the manuals

The six manuals are maintained entirely under docs/manuals, with their examples, catalogs, coverage records and publication assets. The default build publishes the whole collection. The edition review lists the current validation records.

The manuals describe the implementation as designed. They do not list defects: a defect found while writing is fixed in the compiler, and the page then describes the fixed behaviour. The authoring records follow the same rule.

Coverage and ownership

The three capability manifests track 550 language, toolchain, verification and library records. Finite catalogs reconcile the actual commands and options, configuration patterns, REPL and LSP surfaces, environment reads, diagnostic codes, recognized names and 1,707 library declaration blocks across 130 units. A block is not necessarily one API: a nested generic can contain several public declarations and private implementation text.

The readable inventory links each capability's canonical chapter. Dedicated coverage maps record language and syntax sections, tool options, verification topics, unit and declaration guidance and diagnostic regression sources. Excluded features are documented with their status.

Static validation

Use Python 3.9 or later. A built compiler can be found on PATH, supplied through a validation script's --compiler PATH, or discovered in the local Stack build tree. Proof needs its configured solvers; native exercises also need a working C compiler. Publication uses Pandoc 3.11 and Typst 0.14 or later, neither of which is a Verada run-time dependency.

python3 docs/manuals/authoring/inventory.py
python3 docs/manuals/authoring/validate.py --write-coverage
python3 docs/manuals/authoring/validate.py --catalog
python3 docs/manuals/authoring/library-generation.py
python3 docs/manuals/authoring/diagnostics.py
python3 docs/manuals/authoring/check-coverage.py

These checks validate manifest fields and IDs, source evidence and fingerprints, canonical chapter destinations and anchors, Markdown links, exact annotated source excerpts, generated declaration freshness and the reconciled finite surfaces. The catalog comparison ignores an otherwise unchanged baseline commit label, so a documentation-only commit does not stale all source evidence; actual source fingerprints still guard the extracted data.

library-generation.py checks all 130 declaration pages: 127 exact veradic doc outputs and three source-derived pages for the generic subprograms and the library instance that veradic doc writes no page for. Use its --write only when deliberately refreshing generated pages. diagnostics.py refreshes catalog metadata, the code index and the regression-source mapping without replacing reviewed explanations. The installed explain command embeds docs/errors; a code page under docs/manuals/diagnostics is seeded from it only when missing.

Executable examples

Each validation program works in temporary copies and writes its commands, outputs, compiler and fixture fingerprints and expected outcomes to a JSON record:

python3 docs/manuals/authoring/validate.py --examples
python3 docs/manuals/authoring/reference-validation.py --syntax
python3 docs/manuals/authoring/context-views-validation.py
python3 docs/manuals/examples/syntax-reference/vibe/validate.py --compiler "$(command -v veradic)" --corpora --record docs/manuals/authoring/vibe-validation.json
python3 docs/manuals/examples/verification/validate.py --compiler "$(command -v veradic)" --record docs/manuals/authoring/verification-validation.json
python3 docs/manuals/authoring/toolchain-validation.py
python3 docs/manuals/authoring/library-validation.py

validate.py --examples exercises the three-syntax first-proof, range and vector examples, modes and streams, and all six translation directions, each translated program checked, proved and run with the original output. The shared-reference validator runs the shared example and the complete syntax programs, in memory and natively. The context-clause checks show private with accepted, limited with accepted where it forms no cycle, and a cycle through limited with reported as B1006. The Vibe case catalog runs the core program, the compatibility programs and the expected rejections, each with its diagnostic. The toolchain validator covers every command, proof settings, output formats, C, the REPL, the language server and headless editor attachment.

The programmer, Vada/Varc syntax and APL records preserve their complete projects and results; the edition review links every record and its scope. An expected error case passes when the documented diagnostic is reported. An unexpected result leaves an incomplete or failed record.

The compiler's own catalog and UI regression tests are separate diagnostic evidence. They check the embedded explanations and actual reports, not every prose fragment of the manual. Fresh installation, human editor and debugger use, external GNAT/GNATprove/CPython comparisons beyond the recorded ones, other hosts and library-body assurance are not inferred from these runs.

Refresh an inventory deliberately

python3 docs/manuals/authoring/inventory.py --write
python3 docs/manuals/authoring/validate.py --write-coverage

Review source and capability changes rather than accepting regenerated output automatically. The extractor uses anchored source forms and guarded fingerprints. Keep separate states for available, partial, planned and excluded, plus independent execution and review evidence. A positive sample does not promote a whole subsystem to exhaustively validated.

Build and review the collection

From the repository root, build the complete publication with:

./gomanuals.sh
./gomanuals.sh --watch
./gomanuals.sh --force

gomanuals.sh runs python3 docs/manuals/authoring/build.py --pdf, from any working directory. It accepts the builder's options, including --pandoc PATH, --typst PATH, and --interval SECONDS for watch polling (default: two seconds). Set PYTHON to use a particular Python executable. Stop the watcher with Ctrl-C; a failed build is reported and retried after the next input change. Watch mode is a local authoring process, not a service.

The six books are the Programmer Guide, Language Reference (including Vada, Varc and Vibe), Verification Manual, Toolchain Manual, Library Reference and Diagnostics Reference. Their chapter order and filenames come from collection.json; changing that file changes the publication without editing a script. The tutorial in docs/book remains a separate book.

Publication needs Python 3.9+, Pandoc 3.11 and Typst 0.14+. No third-party Python packages are needed for the build. For example, on macOS:

brew install pandoc typst

The print style requests Libertinus Serif and DejaVu Sans Mono. Typst supplies Libertinus; install DejaVu Sans Mono on the build host for consistent code typography (for example, brew install --cask font-dejavu). Use typst fonts to inspect available families. The book's ReportLab exporter is tailored to its illustrated syntax panels; the manuals use Pandoc and Typst to support large tables, long declarations, outlines and internal links.

Every PDF opens with a dedicated title page featuring the full Verada owl, the document title, edition and revision. The shared assets/print.typ style reads the canonical resources/images/verada-owl.png through Typst's verada-mascot input; the builder supplies its absolute path and fingerprints the image so artwork changes rebuild every cover. The cover has no printed page number; contents and chapter numbering follow as before.

The HTML collection, each manual's opening page and the Beta Quick Start have matching owl-and-title sections. The builder bundles resources/images/verada-owl-512.png with the offline HTML assets, preserves the title anchors and keeps individual chapters compact.

The PDF build also refreshes the standalone toolchain/beta-quick-start.pdf from its Markdown chapter using the same title-page style. To rebuild it independently, run python3 docs/manuals/authoring/build-quick-start.py. The helper skips unchanged inputs and repairs a missing or changed output; its cache lives in _build/quick-start-manifest.json. Its links point at the published companion so they work when the PDF is downloaded alone.

To build only HTML, or check the publication:

python3 docs/manuals/authoring/build.py
python3 docs/manuals/authoring/check-publication.py
node docs/manuals/authoring/check-search.cjs
python3 docs/manuals/authoring/test-build.py

collection.json defines the ordered navigation and the six print books; each navigation label is its page's title. Searchable HTML goes to _build/html/index.html; one PDF per manual goes to _build/pdf, with download links in the HTML navigation when built with --pdf. These regenerable outputs are ignored by version control. Assets, example downloads and linked source evidence accompany the HTML for offline use. PDFs link to other chapters within the same book and to companion HTML for other volumes and downloadable source. Keep the sibling html and pdf directories together when distributing the collection.

The build manifest records all inputs, renderer identities and output hashes. An unchanged publication is a no-op, preserving output timestamps. Changes to Markdown, assets, collection metadata, authoring scripts, example downloads or linked repository evidence trigger a rebuild, including file additions and removals within linked directories. Renderer version or executable path changes and missing or altered outputs also trigger a rebuild. Conversion caches reuse unchanged pages; PDF caches reuse unchanged books and fingerprint their image bytes as well as their text and print style. --force bypasses both caches, including after installing or changing system fonts, which are not fingerprinted. A clean build is also possible by deleting _build and running ./gomanuals.sh again.

gorelease.sh builds the complete HTML/PDF publication before checking its HTML targets. The normal gobuild.sh path remains a compiler/test build, so coding does not require Pandoc or Typst. Use ./gomanuals.sh --watch alongside it for continuous manual builds.

HTML link and anchor checking and a local JavaScript search test work without network access. They are structural checks, not a browser accessibility audit.

test-build.py builds a tiny temporary collection with the real Pandoc and Typst renderers. It checks no-op builds, image and chapter invalidation, linked-directory additions/removals, output repair, style changes, forced rebuilds, HTML/PDF switching and watch-mode recovery.

For PDF review, render-review.py uses Poppler, Pillow and pypdf to render every page plus contact sheets and selected full-size samples. Inspect the contact sheets and representative full-size pages, and check tables, code, fonts, breaks and diagram labels. The optional check-publication.py --pdf uses pdfplumber and pypdf to check text bounds, missing glyphs, output hashes and outlines. The print renderer may reflow long Ada/Varc declarations at token whitespace, express long Ada string literals as equivalent concatenations, and wrap shell commands with explicit continuations; maintained and downloadable source and the generated declaration pages keep their exact bytes. Long tables split across pages; library-unit entries flow within the reference instead of forcing namespace-only pages.

Consistent source ownership

Before a release

Revalidate the capability records as the compiler changes: rerun the inventory, the coverage check and every executable record above with the release compiler, and rebuild and review the collection. Fresh-install trials, real editor-client trials, independent novice and expert reading, external-language comparisons and broad platform checks are separate gates; a green run of these checks does not credit them.