ADL 0.6.0 reference · Review draft 1 · November 14, 2026.
Contents · Source map · Evidence
The 0.6 edition note
A version names a contract; it is not an instruction to enable every feature bearing the same release label. Keep language admission separate from construct admission and runtime coverage.
Current standalone admission profile
The strict parser inspected and executed for this edition has an explicit accept set:
Root adl | Current strict standalone result |
|---|---|
"0.5.0", "0.5.1", "0.5.2", "0.6.0" | Accepted for a baseline domain |
"0.6.1", "0.3.1", "6.0.0" | ADL_VERSION_UNSUPPORTED |
"0.5.1-a", "^0.6.0", numeric 0.6 | ADL_VERSION_UNSUPPORTED |
| missing declaration | ADL_VERSION_MISSING |
These are results for this build and entry point. They do not silently amend the earlier same-minor admission ruling into a general rule that every future host accepts every earlier minor. The retained §6.3 table describes a 0.5.1 server; its 0.6 rejection row must not be used as the current build’s accept set.
The inspected suite parser accepts explicit suite roots at 0.5.1, 0.5.2, and 0.6.0. Suite members inherit the root declaration. This draft has fresh standalone fixtures, not a newly executed suite/activation/boot matrix.
Construct gates
Declared queries require 0.5.2 or 0.6.0 in this profile. Resource policies, ranked handling additions, and history integrity/immutability require 0.6.0. A successful baseline 0.5.1 document therefore does not establish that adding one of these constructs remains valid. The rejection fixtures isolate policies, queries, and history rather than depending on whichever error a larger document happens to encounter first.
Journeys are a compatibility exception in the current implementation: the new fixtures compile the same Journey under 0.5.0, 0.5.1, 0.5.2, and 0.6.0. This edition uses 0.6.0 for new examples. It does not invent a Journey-only version rejection that the parser does not make.
Other identities
domain.version identifies an application release and participates in domain identity as specified below. suite.version identifies a suite release. The ADL plugin’s 0.125.1 version, compliance plugin’s 0.3.0 version, and extension interface 8 describe implementation artifacts. None belongs in the root adl key. A printed edition date is another identity again.
Changing adl does not perform a data migration, grant capabilities, load a plugin, or approve a destructive schema change. Consult ADL 17 for evolution and Appendix B for a migration sequence. Fresh parser admission evidence is deliberately narrower than activation evidence; the distinction prevents an apparently successful version edit from becoming an unsupported deployment promise.
Retained reference detail
The numbered sections below are carried from 06-version-declarations-rejection-and-identity.md. Their original baseline and evidence remain attached to the source. Statements about “current” or “checked” behavior in this retained text refer to those original observations unless the edition note explicitly updates them. This is a consolidated draft, not a claim of complete re-verification.
6.1 Scope and authority
A version declaration answers a specific compatibility question. The root
adl value selects the language grammar. Suite and domain versions identify
application releases. A domain’s major component also participates in its
identity. Changing one of these values does not automatically change the others.
The governing provisions are Draft 05 §§1 and 6, with §§0.4–0.5, 2.1, and 21 supplying the related boundaries. The A1/A5 amendments fix the declaration key and retire runtime version-coexistence machinery. The later R0-a/R0-b ruling defines the accepted patch set and qualifies physical naming. Its detailed current-and-earlier-patches rule controls over abbreviated “all patches” summaries.
| Subject | Owning reference |
|---|---|
| Complete roots, members, includes, and parse stages | ADL 4 |
| Suite declarations and independent member submissions | ADL 5 |
| Address syntax and resolution | ADL 7 |
| Package imports and version constraints | ADL 8 |
| Canonicalization and digest computation | ADL 9 |
| Schema evolution and migration operations | ADL 17 |
| Generated action identities and execution context | ADL 3 |
This chapter has no standalone legacy ADL 6 body. Historical document-structure and schema-evolution text supplies context, but its advisory-version model is superseded. The revision record identifies those changes and maps the new sections to their sources.
6.2 Keep the version axes distinct
| Value | Placement or owner | What it governs |
|---|---|---|
| Language version | Root adl: "0.5.1" | Grammar and the declared ADL contract |
| Suite version | suite.version: "1.0.0" | Release of a package containing independently versioned domains |
| Domain version | domain.version: "2.1.0" | Release of a domain model; its major participates in identity |
| Server release and cut | Host build/release metadata, including -a, -b, -c | Which implementation and feature set is installed |
| Plugin C ABI version | Platform ABI contract | Compatibility between compiled plugins and the host |
| Plugin/package/API version lines | Their respective manifests and platform interfaces | Their own artifact or interface contracts |
Draft 05 §§0.4–0.5 explicitly separate language compatibility from the plugin C ABI. An ADL language compatibility statement does not guarantee that a compiled plugin can load. The platform reference owns ABI negotiation and its required load-time rejection. The historical version numbers in §0.4 describe that source snapshot; they are not a current inventory of this checkout.
For example, a suite at 1.0.0 can contain a domain at 2.1.0, inherit language
0.5.1, and run on a server identified by a longer release tag. None of these
numbers is an alias for the others. A client route’s API version is likewise
not a value to copy into adl.
6.3 Declare the lowest language version the grammar requires
Under R0-a, a server accepts the current patch and every earlier patch of the
same minor. A server implementing ADL 0.5.1 therefore accepts exactly
"0.5.0" and "0.5.1" as language declarations. This rule does not accept a
future patch or an earlier minor merely because its numeric value is lower.
| Root declaration on an ADL 0.5.1 server | Language-gate result |
|---|---|
adl: "0.5.0" | Accepted for grammar available at 0.5.0 |
adl: "0.5.1" | Accepted for grammar available at 0.5.1 |
adl: "0.3.1" | Rejected: different minor |
adl: "0.5.2" | Rejected: future patch. A server implementing 0.5.2 (kalos_adl 0.121.0 and later) accepts it; 0.5.2 adds queries: (ADL 38 §38.8), and a document that uses queries: must declare it |
adl: "0.6.0" | Rejected: different minor. A server implementing 0.6.0 (kalos_adl 0.123.0 and later) accepts it; 0.6.0 adds policies: on a resource (ADL 21 §21.12), and a document that uses policies: must declare it. Since kalos_adl 0.124.0 it also adds ranked classifications, a resource’s privacy: block and the integration keys region, source and purpose (ADL 45 §45.10). Since kalos_adl 0.125.0 it adds integrity and immutable on a resource’s history (ADL 24 §24.9) and record on a policy (ADL 21 §21.12.5). queries: and aggregate: are accepted under "0.6.0" as under "0.5.2" |
adl: "0.5.1-a" | Rejected: server cut tag used as a language version |
adl: "^0.5.0" | Rejected: a range is not an exact language declaration |
adl: 0.5 | Rejected: numeric value instead of a quoted version string |
The checked strict parser agrees with this table. Each rejection carries
ADL_VERSION_UNSUPPORTED in its diagnostic. Acceptance here means passing the
language gate; other grammar, resolution, and model checks still apply.
A baseline standalone domain using no 0.5.1 constructs keeps adl: "0.5.0".
An explicit suite root requires adl: "0.5.1". The earlier suite examples
in Draft 05 that use "0.5.0" are corrected by R0-a. The available suite parser
rejects such an input even though the server accepts baseline 0.5.0 documents.
The three cut tags identify server releases. All three use language
adl: "0.5.1". A construct assigned to a later cut may be rejected as an
unknown key on an earlier cut. Changing the declaration to "0.5.1-b" cannot
enable it. Check the construct’s own chapter and dated implementation evidence;
do not infer full feature support from this accept set.
6.4 Declaration placement and value types
A standalone domain root declares adl beside domain. This complete
illustrative input is base.yaml:
# Illustrative complete baseline domain for ADL 6.
adl: "0.5.0"
domain:
name: versiondemo
version: "2.1.0"
description: Versioned catalog example.
resources:
Item:
object:
id: { type: uuid, primaryKey: true }
label: { type: string, required: true, maxLength: 40 }
An explicit suite root declares adl beside suite. Its members and included
fragments inherit that version and MUST NOT declare another adl key. The
complete suite.yaml is:
adl: "0.5.1"
suite:
name: versionpkg
version: "1.0.0"
domains: [./member.yaml]
The accompanying member.yaml
contains the baseline domain body without adl. In suite context it inherits
0.5.1 while retaining domain version 2.1.0. It is not a complete independently
submittable root. No declaration is required in the member because the suite
already supplies it; this is contextual inheritance, not a default version.
Both domain.version and suite.version MUST be quoted exact semver strings.
Use complete values such as "2.1.0"; a range belongs only in a construct that
explicitly permits one. These version fields are required and have no inferred
application-version default. Omitting the root language version is also an
error, rather than a request to select the newest grammar.
Checked admission gaps. The available domain parser accepts numeric 2,
short string "2.1", and arbitrary string "banana" as domain versions. A
fresh direct submission also accepts each. These discrepancy cases do not
extend the permitted syntax. Separately, the non-strict parser and production
CLI accept a standalone file without adl as legacy input; strict authoring
rejects it with ADL_VERSION_MISSING. Use an explicit root declaration for
v0.5.1 authoring. ADL 4 owns the complete entry-point comparison.
6.5 Monotonic submission and idempotency
Draft 05 §1.2 requires a domain version to increase monotonically across changed submissions of the same domain name within a site. An equal version is valid only when both source and resolved digests are unchanged. A lower version is rejected even if the resource structure appears unchanged.
| Incoming version compared with registered version | Digest comparison | Required version-gate outcome |
|---|---|---|
| No registered version | No prior pair | Initial admission, subject to all other checks |
| Lower | Any | DOMAIN_VERSION_NOT_MONOTONIC |
| Equal | Source equal and resolved equal | Idempotent NoOp |
| Equal | Source changed, resolved equal | DOMAIN_VERSION_NOT_MONOTONIC |
| Equal | Source equal, resolved changed | DOMAIN_VERSION_NOT_MONOTONIC |
| Equal | Both changed | DOMAIN_VERSION_NOT_MONOTONIC |
| Higher | Any | Pass this gate; continue other validation and migration checks |
Compare version components numerically. For ordinary release triplets,
2.10.0 is higher than 2.9.0. The checked handler accepts this increase;
lexicographic string ordering would give the wrong answer. This example does
not establish complete prerelease or malformed-version comparison behavior.
Draft 05 §2.1 applies the same monotonic rule to suite versions and suite digests. Suite and domain gates are independent. Increasing the suite version does not authorize changed member content at an unchanged member version. Increasing a member version also changes the package’s content, so an explicit suite submission must advance its suite version as well. The worked suite cases and transaction limits are in ADL 5 §5.7.
A higher version is not permission for a destructive migration or an implicit major conversion. This gate establishes ordering; ADL 17 owns the operations needed to apply a permitted change.
6.6 What the two digest comparisons protect
The source digest covers the canonical authored model after includes and before environment substitution, plus the package file set as a path-to-digest manifest. The resolved digest covers the fully resolved model. Draft 05 §21.2 requires consumers to distinguish them; ADL 9 owns their exact calculation.
For the version gate, a textual edit is not automatically a content change, and unchanged source is not automatically unchanged execution content. The following isolated parser observations show why both digests are needed:
| Change to the baseline input | Source digest | Resolved digest |
|---|---|---|
| Add a comment and reserialize the same YAML values | Unchanged | Unchanged |
Change only domain.description | Changed | Changed |
| Change only the synthetic package file manifest | Changed | Unchanged |
Keep ${ADL6_LABEL:Draft} in source; resolve it with a different value | Unchanged | Changed |
Change only adl from 0.5.0 to 0.5.1 | Changed | Changed |
The package probe supplies two different synthetic digest tokens for the same hook path. It isolates manifest participation; it does not read or execute an actual Lua body. The environment probe changes only a variable in the disposable verification process. Neither is a package installation or deployment example.
Under §1.2, equal-version submissions for each of the four changed-digest rows must reject. Merely retaining the same generated table shape is insufficient. Likewise, “the YAML file did not change” does not justify an unchanged version when its resolved digest differs. The complete canonicalization rules also cover ordering and expanded defaults; these few cases do not constitute a canonicalization conformance suite.
6.7 Worked updates and the checked handler boundary
Each sequence below begins with a fresh in-memory store and a successful
submission of base.yaml at domain version 2.1.0. The responses are from direct
production handler calls in the recorded Debug build, not live HTTP requests.
| Next submission | Observed result |
|---|---|
Submit base.yaml again | 201, zero DDL statements; both digests retained |
changed-same-version.yaml: add note, widen label, keep 2.1.0 | 422 DOMAIN_VERSION_NOT_MONOTONIC; registered version/digests retained |
reject-lower-version.yaml: baseline structure at 2.0.9 | 422 DOMAIN_VERSION_NOT_MONOTONIC; registered version/digests retained |
changed-higher-version.yaml: changed fields at 2.1.1 | 201; registered version becomes 2.1.1 |
The changed model adds a field as well as widening label.maxLength. This
check proves that the combined structural change is detected. It does not
establish that every constraint-only edit is represented by the differ or
that SQLite enforces the declared string limit.
Digest-gate discrepancy. Repeating the metadata, synthetic manifest, environment, and language-patch changes from §6.6 at domain version 2.1.0 also returns 201. The stored digest pair changes in precisely the ways shown in that table. This conflicts with the equal-version rejection rule.
The inspected handler explains the boundary: for an already Active domain
with an available stored model, it compares model structure with diff_models.
Its empty-diff reapplication branch runs before equal-version changed-content
rejection and does not require equality of the prior digest pair. The chapter
retains the governing digest rule; the narrower structural test is an
implementation finding. These observations do not characterize every failed,
inactive, missing-snapshot, or internal rederivation path.
NoOp response distinction. An identical bare-domain repeat returns 201
with ddl_count: 0 and adds a migration-history entry: the count rises from
one to two. Thus this check establishes unchanged model/schema content, not
a completely side-effect-free operation. An identical explicit-suite repeat
returns 200 with unchanged: true and leaves the member history count at one.
The normative NoOp rule does not itself specify an HTTP status code; these
are concrete handler observations and must not be substituted for that rule.
6.8 Authoring rejection and boot degradation
Version rejection has different consequences at authoring and restoration. A new submission with an unsupported declaration is rejected. A previously persisted domain whose language version is unsupported when the server boots is marked Failed, with a diagnostic identifying its declared version and the accepted version set. The server continues serving the other domains. This is the A5/Draft 05 §6.0 contract.
The inspected plugin restore loop considers previously Active rows, checks
the stored adl_version against 0.5.0 and 0.5.1, logs a mismatch, marks that
row Failed, and continues. It subsequently checks snapshot integrity and
restores the model. The ordinary submission probes confirm that the accepted
language declaration is persisted separately from domain.version.
This chapter did not restart a live server with an unsupported persisted row. Boot degradation is therefore supported here by source inspection, not an executed restoration claim. The passing bootstrap tests cover file-based submission and a simulated failed-row reapplication, among other cases; a bootstrap handler invocation is not execution of the plugin’s restore loop.
Removing adl or editing a registry field is not a language migration. An
older document must be converted according to the applicable migration guide
before being admitted under a supported declaration. Refer to
Appendix B for the migration map and
the platform reference for operational recovery procedures.
6.9 Major versions participate in identity
Draft 05 §6.1 treats party@1 and party@2 as different domain identities.
They have no shared instance identity and no implicit conversion. A row
identifier that happens to be equal in the two domains does not identify one
shared object.
Within a major, party@1.2 and party@1.7 describe the same domain, and
compatible requirements within a suite resolve flat to the highest compatible
version. These are identity/constraint illustrations from the governing text;
they are not complete domain.version declarations. Exact declarations use
values such as "1.2.0".
Minor-version dependency diamonds can therefore resolve to one compatible
version. References to different majors designate different domains. The
specification requires cross-suite addresses to carry at least the major pin;
an unpinned cross-suite address with two available majors is
ADDRESS_AMBIGUOUS. ADL 7 owns the complete address syntax, lookup order, and
absence/ambiguity distinctions; ADL 8 owns package resolution.
A5 explicitly retires runtime version-coexistence machinery. The remaining
identity rules do not promise that a particular server supports simultaneously
installing two majors. In the checked bare-domain handler, submitting 3.0.0
after 2.1.0 leaves one versiondemo registry row, now at 3.0.0, and the same
versiondemo_items table. That narrow observation is a runtime limitation,
not an implementation of two distinct installed identities or a recommended
major-upgrade procedure.
6.9.1 Addresses and actual storage names
Draft 05 §§6.2, 12, and 13 require major discrimination in the relevant identities. R0-b narrows physical naming: the new naming rule applies to domains first activated under 0.5.1; existing tables are grandfathered, with actual physical names recorded in the exports fact table. There is no mass rename migration in cut -a.
The cut -a handoff still records the physical naming switch as outstanding. The example handler uses the legacy table name even for the explicit 0.5.1 suite. These observations are not proof that the new-activation naming rule is fully implemented. Consumers must resolve actual recorded names rather than invent a name from a version suffix. ADL 3 records the separate generated-action and bus naming boundaries.
6.10 The consumer owns a major upgrade
Draft 05 §6.3 requires published package documentation to state who owns a
bedrock major upgrade: the consumer owns the data migration. Publishing
party@2 does not migrate consumers pinned to party@1, convert their objects,
or authorize changing their pins. The publisher can supply guidance and tools;
the consumer still chooses and executes its migration.
The specification’s promise that an existing pin is not silently upgraded is an ownership rule. Read it with A5’s explicit limit on runtime coexistence, rather than as evidence that the checked host can keep two majors installed. A package’s single-source-of-truth claim is scoped to one major (§6.4).
An illustrative package notice is:
This release introduces party major 2. Publishing it does not update an existing major-1 consumer. The consuming application owns its data conversion, validation, and adoption of the new major pin.
The following is informative planning guidance, not new ADL syntax:
- Inventory the consuming domains, pins, stored references, and retained data.
- Define how old records map to the new identity and how to handle records without a valid conversion.
- Establish host support, validation, backup, and recovery procedures for the proposed deployment sequence.
- Perform the approved migration and update consumer pins deliberately.
ADL 17 owns the migration mechanisms. Merely submitting a numerically higher version, or obtaining a zero-DDL response, does not complete this work.
6.11 Diagnostics and tooling differences
| Situation | Required diagnostic or consequence | Evidence boundary |
|---|---|---|
Independent root omits adl | ADL_VERSION_MISSING | Strict parser rejects; non-strict CLI accepts legacy input |
| Root declares unsupported language version | ADL_VERSION_UNSUPPORTED | Checked parser rejects all six invalid values in §6.3 |
| Explicit suite declares 0.5.0 | ADL_VERSION_UNSUPPORTED | Checked suite parser and submit handler reject |
| Member declares its own language version | ADL_VERSION_MEMBER_FORBIDDEN | Existing suite tests and ADL 5 evidence |
| Lower version or equal version with changed content | DOMAIN_VERSION_NOT_MONOTONIC | Lower/structural-change cases reject; digest-only differences expose §6.7 gap |
| Unsupported language in persisted domain | Domain Failed; diagnostic; continue server | Restore source inspected; live boot not exercised |
| Unpinned cross-suite address with two majors | ADDRESS_AMBIGUOUS | Governing rule; this chapter does not install two majors to test it |
Diagnostics also have interface-specific wrappers. The CLI reports the rejected
cut declaration with outer code E000 and embeds ADL_VERSION_UNSUPPORTED in
the message. The numeric-adl parser diagnostic still lists only 0.5.0 even
though the actual set includes 0.5.1. Neither wording should redefine the
accepted set or become a new portable error-code contract.
Both production CLI and adl-ref accept the complete baseline domain. However,
adl-ref also accepts the deliberately invalid "0.5.1-a" declaration with
zero errors and warnings. That disagreement leaves the rejection requirement
intact. A successful baseline check is limited independent evidence; the
modeller’s “coverage complete” output does not establish v0.5.1 version-gate
conformance.
6.12 Verification and remaining review
The example index identifies accepted roots, contextual members, rejection inputs, and update prerequisites. The verification record retains commands, exact generated request texts, outputs, hashes, and 42 passing existing tests.
The submission adapter uses production classes and disposable SQLite stores. Its library and matching header snapshot predate the inspected checkout. The record identifies this boundary, including an initial adapter setup failure caused by changed build configuration. No fresh HEAD build, full conformance run, live endpoint, or runtime fix is claimed.
Before publication, review the exact-semver admission gap, equality of both digests on domain reapplication, observable NoOp effects, and the diagnostic accept-set wording. Boot degradation needs a controlled restoration test; major identity needs evidence at its address/storage consumers. ADL 8/9/17 will supply the detailed import, canonicalization, and migration coverage. The chapter’s editorial status remains Draft 1 until those boundaries and the cross-chapter requirements receive publication review.