New reference draft · November 14, 2026.
Contents · Complete example · Evidence
48.1 Scope and authority
A Journey describes a task from the caller’s perspective. It names an actor, accepts inputs, calls application operations, and routes between steps. The resource model still owns storage, permissions, validation, and state. Declaring a task does not introduce an alternative route around those rules.
This chapter consolidates placement, names, and inputs from the Journeys source, chapters 5–6. Its source labels and implementation claims are reconciled through the decision register. The chapter number is an editorial assignment for this edition.
The new examples declare ADL 0.6.0. Current compiler fixtures also accept the simple Journey at 0.5.0, 0.5.1, and 0.5.2; see ADL 6. Do not report a 0.6-only Journey gate that this build does not impose.
48.2 Placement and names
journeys is a map under domain. A key names a Journey and its value describes the task. sources, when used, is a sibling domain declaration. Included Journey fragments are interpreted through the existing include/merge pipeline; a fragment is not necessarily a standalone root.
The consolidated source describes [a-zA-Z][a-zA-Z0-9_]* and lowercase-initial advice. The current implementation differs: source, Journey, input, and step names checked by is_lower_camel_id must match ^[a-z][a-zA-Z0-9]{0,63}$. Uppercase initials and underscores are errors, E-JRN-NAME-FORMAT, in the fresh fixtures. This draft records the disagreement rather than presenting the source’s W-JRN-NAME-CASE claim as current output.
Reserved sets are also context-specific in the compiler. Steps reserve end, default, self, error, retry, and compensate. Inputs reserve self, actor, inputs, steps, journey, and response. Sources reserve self, $self, and default. Journey names are checked for collisions with resources and workflows. Do not substitute the consolidated source’s single broader list for these observed checks, or infer identical output-name checking without evidence.
Four-part resource addresses use adl.<suite>.<domain>.<Resource>. The complete example’s reference is adl.reference.reference.Item, reflecting its standalone-domain context. Keep declaration addresses distinct from action names and HTTP paths.
48.3 Journey members
| Member | Meaning and boundary |
|---|---|
title, summary, tags, deprecated | Descriptive/catalog metadata; not operation authority |
actor | Authentication tier or role; see ADL 50 |
permissions.view | Artifact visibility override; current admin behavior is described in ADL 54 |
inputs | Named typed values and reference preconditions |
steps | Ordered declarations forming the task’s control-flow graph |
outputs | Named expressions selecting the task result |
The current runtime uses its actor visibility predicate when no view override is present. Describing that simply as a literal default list [actor, admin] loses the special handling for anonymous, authenticated, and mixed actors. A visible task can still contain an operation the current caller cannot complete.
Unknown keys do not become portable extensions just because an implementation preserves or ignores them. The parser and compiler have construct-specific checks. This draft does not promise a uniform unknown-key rejection across every Journey object.
48.4 Typed inputs and record handles
Ordinary inputs describe values: their type, requiredness, constraints, and enumerated choices. A reference input additionally identifies an existing resource record. Its preconditions give both the compiler and a client useful information.
# Illustrative fragment from the complete calibration example.
inputs:
calibrationId:
type: reference
references: adl.calibration.calibration.CalibrationRecord
required: true
inState: [submitted]
inState seeds the compiler’s set of possible states. Omitting it seeds all states of the referenced state machine, which may make a later transition unprovable. It is also useful for a worklist filter. It does not reserve the row or prevent another actor from changing its state before execution.
ownerOf: $actor, with true as the documented shorthand, asserts the ownership precondition needed for an owned input handle. The resource must still have a resolvable ownership mechanism. Ownership is neither a login role nor a promise that the live record has not changed; see ADL 50.
Task data is not a second table schema. The consolidated source prohibits storage attributes on task inputs. The inspected parser records a specific forbidden set including primaryKey, unique, index, indexed, immutable, autoNow, autoNowCreate, autoNowUpdate, nullable, hidden, internal, writeOnly, sensitive, requestable, encrypted, security, autoGenerate, and allowUserProvided; the compiler reports E-JRN-INPUT-ATTR. Its type checks separately exclude types such as computed and password. Some names in the source’s broader prohibition, including column and table, are not in that parser set. This edition does not claim complete rejection coverage from the source’s list alone.
48.5 Example and evidence boundary
The complete journey.yaml defines Item, its permissions, a reference input, a GET step, and an output. Both authoring validators accept the document, and the Journey compiler reports proved. Changing the ID expression to $inputs.missing produces the observed E-JRN-EXPR-UNKNOWN-INPUT rejection.
The complete calibration document adds a state-constrained reference and a transition. Its compiler result does not establish that an arbitrary live record meets the input precondition or that the inspector satisfies every dynamic obligation. Fresh checks cover these local examples; they do not cover every input type, include context, or external source.