ADL 51 · Part VII — Journeys

New in ADL 0.6.0

Static compilation and verdicts

New reference draft · November 14, 2026.

Contents · Compiler evidence · Source

51.1 What a verdict describes

A compiler verdict describes a task under a model: declared actors, available resources, input preconditions, operation schemas, and modeled state changes. It is valuable because incompatible declarations can be rejected before a caller tries the task. Its value depends on making those assumptions visible.

proved is not a promise that the next live request succeeds. A record may have changed, a claim may be absent, a guard may reject the actual user, or a required service may be unavailable. The complete calibration Journey compiles as proved; the handbook’s runtime evidence still records self-review and missing-training refusals. No contradiction is necessary: the static and dynamic checks have different scope.

51.2 Compilation stages

The source describes five stages: identifier/source resolution; control-flow well-formedness; composition flattening and specialization; semantic analysis; and compiled-artifact emission. Semantic analysis combines actor/ownership feasibility, state reachability, schema/field checks, expression scope, and UI advice.

Errors prevent a successful task result. Warnings describe weaker concerns or authoring advice; tooling can choose to treat them as a failing gate with strict-warning options. A warning count of zero is not a claim that runtime obligations disappeared.

51.3 Verdict tiers and aggregation

VerdictSource contract’s evidence tierLimit
provedLocal or available sibling ADL modelWithin implemented analysis and declared assumptions
attestedPinned remote Kalos description or imported ADL modelDepends on the supplied model/attestation matching the runtime
schema-checkedPinned OpenAPI descriptionSchema compatibility does not establish ADL permissions or state behavior
unverifiedRaw HTTP descriptionNo comparable model proof
failedCompilation diagnostics reject the taskFailure state, not a weaker successful tier

For successful steps, the overall task cannot claim a stronger tier than its weakest participating step. In the selected implementation, the source branch assigns tiers from source type and whether an OpenAPI source supplies model, then returns before the local-resource semantic analysis. A tier label alone therefore does not establish that remote permissions or state were analyzed. Fresh evidence in this edition covers local results and selected errors, not remote semantic proof.

The implementation’s source admission also differs from the consolidated pin examples:

Source typeRequired fields in inspected gate
kalos-domaindomain, version
kalos-remoteurl, version
openapispec, sha256; model affects the tier label
httpurl; emits raw-HTTP advice

The fresh source-shape fixture supplies the consolidated document’s url/pin form for kalos-remote and receives E-JRN-SOURCE-UNPINNED because version is missing. A version string or digest field is not proof that the artifact was fetched, validated, or enforced remotely. That stronger claim needs its own execution evidence.

51.4 State sets and universal edges

A compiler handle represents a particular record through the task. A create seeds the initial state. A reference input with inState seeds that set; without the constraint, the possible set is all states of the resource.

A transition must exist from every possible source state for that handle, and the effective actor must satisfy the modeled transition authority. After the transition, the possible set contains the corresponding target states. At a join, the analysis must preserve possibilities from the reaching paths; a favorable single path is insufficient.

This explains why a staff task benefits from an explicit submitted-state input. It makes the intended work queue visible and narrows the static transition obligation. It does not make the input truthful at runtime. The server must still load and check the actual record.

51.5 Schema and expression soundness

Create steps must account for required fields without a default or generator. Transition required fields must be supplied or known populated across prior paths. Literal fields must match the modeled schema, and field authority is checked for the effective actor.

Closed expression analysis rejects unknown roots, undeclared inputs, inaccessible fields, and results unavailable on every path. Different syntax locations have different scopes; ADL 49 owns the reading rules. The new unknown-input fixture demonstrates a precise error rather than relying on a runtime null result.

51.6 Policies and unresolved dynamic conditions

Resource policies can depend on trusted claims, current rows, cross-resource reads, configured supervisor modes, and the particular operation. This edition does not claim that the Journey compiler proves every such policy condition. In particular, the calibration result is not a certificate that the inspector’s training claim exists or that an independent-review guard accepts the actual actor.

Record the modeled proof and the remaining obligations together. Do not downgrade a governing runtime requirement to fit the compiler, and do not describe unmodeled obligations as already proved. A stronger policy-aware compiler needs its own coverage inventory, fixtures, and verdict rules.

The executed diagnostics are listed in Appendix D. The larger E-JRN-*/W-JRN-* source catalog is a contract and implementation inventory with separate evidence; this draft does not claim every entry has been freshly triggered.