DEVELOPMENT EDITION · 769442725406
Toolchain Manual
On this page

Environment reference

Use command options for per-invocation behavior and verada.toml for project proof settings. veradic reads the environment variables below; PATH and XDG_CACHE_HOME also decide where it finds tools and keeps its caches.

Public settings

Variable Meaning Precedence / affected commands
NO_COLOR Suppress automatic human diagnostic color when present, including an empty value --colour always/never wins; automatic CLI color otherwise follows stderr terminal state; REPL follows stdin terminal state
VERADA_CC C compiler executable path/name --cc PATH, then this value, then cc; native linking and project-C JIT loading
VERADA_SOLVER_TIMEOUT Integer, in milliseconds Replaces the default 60000 ms time limit of each solver call, including the REPL's and the editor's; independent of proof budgets, which count resource units
VERADA_JOBS A positive integer Proof worker sessions when -j is not given (default: half the processor cores); suits a machine whose efficiency cores answer slowly, or one shared with other work
VERADA_PROOF_TRACE A file path Proof writes one tab-separated line per solver call to it (subprogram, check code, offset, stage, assumption count, verdict, translation and solving seconds), for measuring where proof time goes; changes no result

VERADA_CC is an executable, not a shell command with embedded flags. Use an executable wrapper script if the environment needs an adapter. Changing that wrapper does not invalidate cached C objects; see artifacts.

A value of VERADA_SOLVER_TIMEOUT or VERADA_JOBS that is not an integer is ignored. Raising the time limit can help a loaded machine finish work the resource limits allow; it is not a substitute for a larger proof budget.

IDE Assistant settings

The server environment can override the corresponding fields in the IDE profile's agent.json. These fields appear locked in Settings → Assistant. For ordinary use, configure the Assistant in the IDE; environment overrides suit a host-managed launch.

Variable Meaning Precedence / affected commands
VERADA_AGENT_RUNTIME Absolute path to the installed native Codex executable Overrides runtime for the IDE Assistant; requires its matching SHA256
VERADA_AGENT_RUNTIME_SHA256 The executable's 64-digit hexadecimal SHA256 Overrides runtimeSha256; a changed executable requires an explicitly updated identity
VERADA_AGENT_MODEL Exact, explicitly selected model identifier Overrides model for Assistant requests
VERADA_AGENT_PROFILE native, lmstudio-qwen or lmstudio-qwen-no-thinking Overrides profile; native is the default when no profile is configured
VERADA_AGENT_ENDPOINT Complete provider URL ending in /responses Overrides endpoint; HTTPS, or HTTP on literal loopback (127.0.0.1 or [::1]); Qwen profiles require loopback
VERADA_AGENT_API_KEY_ENV Name of an environment variable holding the provider credential Overrides apiKeyEnvironment; the named variable must be set and contain a nonempty credential

VERADA_AGENT_API_KEY_ENV names the credential variable; it is not the credential itself. An environment-supplied credential also locks its endpoint in Settings. These overrides do not install a runtime, start a model server or grant the Assistant native program execution. Invalid or incomplete configuration disables the Assistant while leaving the editor available. Updating configuration does not send a model request.

Internal runtime setting

VERADA_RT_DEBUG, when nonempty, makes a program report on stderr, when it ends, its live heap objects and any unbalanced secondary stack. It is a debugging aid for Verada's runtime; its output is not a stable interface. VERADA_VERIFY_SUMMARIES, when set, makes the prover generate every subprogram's conditions again even when a stored summary says they were proved, to check the summaries; Verada's own tests use it.

Read by your programs

TMPDIR names the directory in which a program's Ada.Text_IO.Create (and the wide forms) makes a temporary file when it is given an empty name; when TMPDIR is unset or empty the file goes in /tmp. The file is deleted when it is closed. veradic itself does not read it.

Tool and cache lookup

PATH supplies veradic, the solvers, the selected C compiler, and, when building Verada, llvm-config and Stack/GHC. veradic looks for Z3, cvc5 and yices-smt2 beside its own executable first (as the binary package installs them), then on PATH; --z3 names Z3 explicitly. An editor launched from a desktop may have a different PATH from an interactive shell; give the editor the absolute path of veradic and make sure its PATH includes Z3.

Runtime objects, C objects and the native objects of programs built without a project are kept in $XDG_CACHE_HOME/verada, or ~/.cache/verada when XDG_CACHE_HOME is unset. For an isolated run:

scratch=$(mktemp -d)
XDG_CACHE_HOME="$scratch/cache" veradic build --project verada.toml -o "$scratch/app"

Project proof caches, .bli files, certificates and project native objects stay in the project's .verada directory; XDG_CACHE_HOME does not move them.

STACK_YAML belongs to the compiler's source-build tool, not to a user's Verada application. The installation instructions use it to select a local Stack configuration. Test-suite variables such as VERADA_ACCEPT belong to Verada's own test suite, not to veradic.