ADL 52 · Part VII — Journeys

New in ADL 0.6.0

Journey execution and failure

New reference draft · November 14, 2026.

Contents · Step grammar · Source

52.1 The execution boundary

A Journey composes requests. Each request retains the target operation’s authorization, validation, state, policy, and storage behavior. Successful compilation is preparation for execution, not a substitute for it.

The runtime expression environment binds supplied inputs, completed step results, the current response where in scope, and actor/task identity. A step calls its operation, evaluates its declared success condition, captures outputs, and chooses the next route or failure handler according to the task. A transport success and a task’s business success need not be identical; the declaration must say which response satisfies the step.

The source describes both a client/task execution model and a CLI test runner. The inspected CLI uses an in-process runtime with synthetic actors and seeded fixtures. This draft does not silently describe that runner as an arbitrary remote-HTTP client or a durable production orchestration service.

52.2 Outcomes and partial progress

Completion reaches the declared terminal route or outcome and produces the selected outputs. A failure may select recovery, bounded retry, or a failed outcome. A result should distinguish task completion from an earlier completed mutation.

For example, a create followed by a refused transition can leave the created record in its original state. The task failed to complete, but the first operation may have committed. A client should retain the created ID and actual outcome rather than assume the application returned to its starting state.

State and permission checks must use the live operation surface. A worklist entry or dry-run answer can become stale before the mutating request. A server refusal is a valid outcome of this race; clients need a way to refresh and explain it.

52.3 Retry semantics

Retry limits bound task control flow. They do not establish exactly-once execution or prevent duplicates after an uncertain response. The safety of retrying a create, integration dispatch, or transition depends on that operation’s own idempotency and concurrency behavior.

An onFailure condition can inspect response status or the machine error code. Recovery should use those structured facts. Human message wording is not a stable branch interface. A missing supervisor is a deployment problem; a failed review guard is a business restriction; treating both as transient failures would hide useful information.

52.4 Compensation

The Journey source describes compensate on mutating resource steps. If the task ends in a failed outcome, inverse calls run in reverse completion order. The compiler checks compensation from the forward step’s modeled post-state.

The source forbids nested compensation, compensation routing, compensation on read-only GET/list steps, and compensation attached to a sub-Journey call. The inspected implementation has a narrower demonstrated boundary: control-flow keys inside compensation emit E-JRN-CPS-CONTROL-FLOW, while compensation on get/list emits W-JRN-CPS-ON-READ. The new read-compensation fixture is accepted with that warning. It is an observed disagreement with the source’s error-level prohibition, not a conformance success. This draft has no fresh sub-Journey-compensation rejection evidence.

A compensation call is another operation. It can fail, lack permission, encounter a changed state, or be unable to retract an external notification. History and recorded permits may correctly retain both the forward and compensating actions. Describe compensation as attempted business recovery, never as an implied database rollback across the whole Journey.

52.5 Dry-run

The documented HTTP dry-run evaluates preconditions and simulates supported local steps using live records and hypothetical changes. Its result vocabulary is walkable, blocked, or partial. The selected implementation keeps simulated rows and reached-state sets in memory; its purpose is to avoid business writes.

A dry-run cannot reserve the rows it read, commit an ownership precondition, or guarantee a later policy decision. External and unsupported effects need an explicit partial result or other reported boundary. Do not silently equate walkable with “the real run will succeed.”

The stronger claim of zero writes requires measuring the actual surface, including any incidental records if those are in scope. This edition has reviewed the dry-run source but has not rerun a database-difference test for it. A historical CLI or UI report remains evidence for its own command and configuration.

52.6 Current evidence

Fresh checks compile the calibration task but do not execute the generic Journey runner. The linked handbook evidence exercises the task’s underlying HTTP operations and denials on isolated SQLite hosts. Those are useful operation checks; they are not mislabeled as a Journey-runner, compensation, concurrency, or browser proof.

Further execution coverage should pair successful steps with wrong-role, wrong-state, missing-input, policy-denial, retry-exhaustion, and compensation-failure controls. Each result needs its actor and store profile. Appendix E keeps these unexecuted areas visible.