On this page
Reading a diagnostic
Start with the first error in the earliest failing stage. A lexer or parser can recover and report several errors from one malformed construct. Repairing a missing quote, delimiter or declaration can remove later messages without requiring a separate change for each one. Warnings deserve review, but their presence alone does not explain a command's failure.
Identify the report
A diagnostic has a severity, a stable code such as B4101, a message and, when available, a primary source location. It can also have secondary labels, explanatory notes, suggested fixes, a counterexample and proof provenance. The primary location identifies the failed operation or obligation. A second location can identify the declaration, original move, conflicting borrow or contract that makes the first location significant.
Read notes before changing code. A range failure at assignment can come from a narrower destination even though the arithmetic itself fits its base type. A postcondition failure can reflect a missing frame fact about a called procedure rather than an incorrect final expression. A source location in a predefined unit can identify the contract you violated, while the caller location explains where your code supplied the argument.
Severity, status and exit code
| Field | Interpretation |
|---|---|
| Error | The selected action cannot complete successfully with this unresolved condition. |
| Warning | Review the condition and its effect on guarantees; the action may still succeed. |
| Info | Supporting information rather than a newly failed obligation. |
| Active catalog status | A diagnostic the compiler reports. |
| Reserved catalog status | A code set aside for a diagnostic the compiler does not report. |
| Retired catalog status | A code no longer reported, kept so that old logs still read correctly. |
| Internal catalog status | A failure inside the compiler, not an error in your program. |
The catalog lists default severity. Advisory compilation (--advisory) turns failed proof checks into warnings and keeps them as run-time checks, while language and flow errors remain errors. prove still requires proof under --advisory and --no-prove. A cached build (--proof cached, the default for run in a project) asks no solver: it leaves out the checks the proof cache knows are proved, keeps the rest as run-time checks and counts them in warning B8012. A successful check establishes no proof result. Read analysis modes before comparing two commands.
Use the process exit status with the emitted diagnostics. Program execution can fail after compiler diagnostics have been produced, and not every operating-system failure is a numbered compiler diagnostic. Native runtime failures and foreign process output also have different reporting paths from a language-server diagnostic.
Fix-its and source editing
A fix-it is a proposed source edit, with a location and replacement. For example, a misspelled keyword or an Ada assignment written with = can have an obvious replacement. An import suggestion can require choosing a particular package or resolving a visibility conflict. Review the complete edit in context before applying it. The suggestion expresses the compiler's likely interpretation, not your application's intent.
After editing, rerun the original action. Then prove and test the behavior required for delivery. Changing a result subtype or adding a precondition can silence an error while changing the public interface; callers and boundary cases must agree with the new promise. Avoid accepting a formatter or translator's output as a proof that the edit preserves meaning.
Counterexamples and replay
A solver model describes values consistent with the proof's hypotheses and the negation of its goal. It can expose a real bug, an insufficient loop invariant or an insufficient callee contract. Where reference-model replay is available, Verada reports whether the candidate reaches the failing check. A confirmed replay provides stronger evidence of an actual failing path than an unqualified solver model. Read its qualification explicitly.
Counterexample values are written in Ada's notation in every syntax: a boundary value appears as Integer'Last in a Varc or Vibe report too. The shared numeric rules give each type's bounds.
An unknown proof result, particularly B5115, is different from a confirmed counterexample. Raising a proof budget can help an unresolved query; it cannot repair an invalid boundary condition. See proof outcomes.
Command output and JSON
Human diagnostics normally go to stderr. Structured mode is selected globally:
veradic --diagnostics json prove --no-cache --project verada.tomlThe diagnostics are a JSON array on stdout; the proof summary goes to stderr. run also writes the program's own output to stdout, and inspection options such as --show-flow add text, so parse stdout as one JSON document only for commands that print nothing else.
The Toolchain Manual defines the JSON fields, supplies the schema, and explains automation. Integrations should use codes, severity, structured spans and exit status. Do not scrape English wording, depend on field ordering or assume every diagnostic has a fix-it or model.
A useful report
Keep the full command, source syntax, compiler version, project configuration, first relevant diagnostic with notes, and the smallest complete source set that reproduces it. For a proof that changes from run to run, keep the solver version, proof budget, cache and certificate settings, and whether a run with --no-cache reproduces it. For execution, record whether it was JIT or native and include any C or device dependency. Remove secrets from examples and paths before sharing the reproducer.