DEVELOPMENT EDITION · 769442725406
Toolchain Manual
On this page

Automation and CI

Use a repeatable compiler/solver environment, explicit project paths and isolated outputs. A useful CI gate runs layout checking, language/flow analysis, proof, native build and a behavioral smoke test. These are separate observations: proof does not test a linker or the C implementation behind an imported contract.

A serial application gate

Run from the project directory with an installed compiler and solver/C dependencies:

set -eu
veradic format --check src/*.vads src/*.vadb
veradic --diagnostics json check --project verada.toml > check.json
veradic --diagnostics json prove --no-cache --project verada.toml > proof.json
veradic build --project verada.toml -o app
./app > actual.txt

Choose globs that actually match your project; shells differ when a glob matches no files. For Varc use its explicit .va files. Vibe's Verada formatter is identity, so select and configure a Python formatter separately rather than treating format --check as a Vibe style gate. Compare application output with a reviewed expected file using your CI's normal tool. A CI gate proves with --proof full or prove; do not rely on run's cached default there. Keep source and diagnostic artifacts when a step fails.

Streams and exit status

Operation Stdout Stderr
Human check Normally empty Diagnostics
Human prove/build/emit Proof summary; build/written message after success Diagnostics
Human run Program's captured output; inspection text if requested Compiler diagnostics and runtime failure text
JSON check/prove without inspection One diagnostic array; [] for none Prove summary/statistics, if applicable
JSON build/emit success Diagnostic array followed by normal built/written text Proof summary/statistics
JSON run Diagnostic array followed by program output Proof summary and failure text; direct foreign/runtime stderr may also appear
format/translate/doc/stubs File listings, also with JSON diagnostics selected Human diagnostics when selected
parse --dump Printed parsed program, plus JSON if selected Human diagnostics when selected
explain Markdown explanation Error diagnostic if code invalid
SARIF check/prove One SARIF 2.1.0 log Prove summary/statistics, if applicable
repl Interactive transcript Runtime/foreign direct stderr can also appear
lsp Framed LSP messages only Process/runtime stderr if any

--dump-bir and --show-flow prepend inspection text to stdout. Do not combine them with a single-document JSON consumer. Syntax errors are reported in the selected format like every other diagnostic. Output from a program or foreign library is not escaped into the compiler's diagnostic JSON. For structured CI use check/prove without inspection flags, validate the JSON shape and also retain stderr and exit status. The full schema explains positions and fixes.

Accepted compilation errors and failed program checks normally exit 1; successful operations and warnings-only results exit 0. format --check also exits 1 for layout differences. --advisory permits some proof failures as warnings and so is not a strict release gate. Unhandled process failures, signals and environment problems may not produce a diagnostic array. Do not infer success from an old executable remaining on disk.

Reproducibility and evidence

Record the veradic --version output (the compiler's version and revision, its code generator and each solver it finds, with versions), the C compiler, platform, budget/overrides, mode and environment overrides. Avoid using a shared warm cache as your only release evidence. Clean-run procedures distinguish proof answers, certificates and native/C caches.

Review expected diagnostics by code and severity, not timing or the exact minimized model. Do not normalize away streams, entry-point errors or wrong program output. Counterexamples can be replay-confirmed, unconfirmed or absent; an unknown is not a confirmed counterexample.