ADL 0.6.0 reference · Review draft 1 · November 14, 2026.
Contents · Source map · Evidence
The 0.6 edition note
This chapter retains the detailed language contract and its source-specific observations. Its chapter number and numbered sections remain stable. The 0.6 additions do not by themselves change this subject’s defaults or supply fresh execution evidence for it.
Reverification should cover address grammar, cross-domain lookup, and diagnostic locations. Use the original examples and evidence links below to recover the earlier test context. The new edition’s source map records this chapter as inherited detail; the current draft does not claim those historical tests were rerun.
Retained reference detail
The numbered sections below are carried from 07-addresses.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.
7.1 What an address names
An address names a declaration: a suite, domain, resource, field, or supported platform leaf. A reference literal combines a resource address with the UUID of one row. Neither is a filesystem path, package download location, REST route, or instruction to fetch a remote object.
The governing source is Draft 05 §5, which introduces this address scheme without a v0.3 predecessor. Related requirements are in §§4.1, 6, 7, 10, 13, 14, and 21.5. Later rulings qualify the storage and remote-reference consumers. The revision record maps those provisions to this chapter.
| Question | Owning reference |
|---|---|
| Which root declaration and parse stages apply? | ADL 4 |
| How are suite and member identities declared? | ADL 5 |
| What do language versions and domain majors mean? | ADL 6 |
| How are imports, locators, and lockfiles resolved? | ADL 8 |
| How are addresses represented in canonical digests? | ADL 9 |
| How do reference fields bind and enforce relationships? | ADL 12 |
| How do AEL functions use targets? | ADL 18 |
| Which bus action or generated route performs an operation? | ADL 3, ADL 26 |
An address can be well formed while naming nothing in the available model. It can also name a known declaration whose runtime target is unavailable. Keep these questions separate when interpreting a parser result or diagnostic.
7.2 Grammar and spelling
Draft 05 §5.1 defines these productions. ALPHA, DIGIT, and HEXDIG are
ASCII classes; %s marks the literal root spelling in the supplied ABNF.
address = adl-address / kalos-address
adl-address = %s"adl" "." suite [ "." domain [ "." resource [ "." field ] ] ]
kalos-address = %s"kalos" "." kalos-ns "." kalos-leaf
suite = ns-segment [ pin ]
domain = ns-segment [ pin ]
resource = id-segment
field = id-segment
kalos-ns = id-segment
kalos-leaf = id-segment
ns-segment = ALPHA *( ALPHA / DIGIT / "_" / "-" )
id-segment = ALPHA *( ALPHA / DIGIT / "_" )
pin = "@" "[" pin-expr "]"
pin-expr = 1*( %x20-5A / %x5C / %x5E-7E )
A name segment is limited to 64 characters and a whole address to 512.
Namespaces begin with a letter and can contain letters, digits, underscores,
and hyphens. Resource, field, and platform identifiers exclude hyphens.
Thus adl.my-suite.city-permits.Application has valid shape, while
adl.core.party.Person-Record does not.
Pins have their own brackets and expression syntax; dots inside a pin do not increase address arity. The checked lexer applies the 64-character limit to the segment name and the 512-character limit to the complete address including pins. Boundary probes accept a 64-character name and reject 65, and accept a 512-character lexical input and reject 513. The latter uses pin padding to isolate length; it is not a recommended version expression.
Two additional restrictions apply beyond the character productions:
$MUST NOT appear anywhere in an address, including inside a pin. The diagnostic isADDRESS_FORBIDDEN_SIGIL(§5.3). This does not remove$this,$ref, or other constructs from their separate syntactic contexts.- A domain name MUST NOT contain
_vimmediately followed by a digit (§5.1). That spelling is reserved for the bus version infix; §7.10 explains why.
Use the lowercase roots adl and kalos shown above. The lexer also accepts
uppercase roots, but not every consumer recognizes them consistently: the
checked query-target path treats ADL.party.party.Person as an unresolved local
name. This chapter does not generalize lexer case folding into a guarantee
that every address consumer accepts alternative root spelling.
7.3 Arity determines the declaration kind
Count segments including the adl root, but excluding dots inside bracketed
pins. Each permitted arity has exactly one meaning:
| Arity | Form | Declaration named |
|---|---|---|
| 2 | adl.core | Suite core |
| 3 | adl.core.party | Domain party in suite core |
| 4 | adl.core.party.Person | Resource Person in that domain |
| 5 | adl.core.party.Person.email | Field email of that resource |
adl.party.Person is therefore a domain address: suite party, domain
Person. It is not shorthand for resource Person in domain party.
Its shape is valid; if that domain does not exist, resolution fails with
ADDRESS_UNRESOLVED. The withdrawn arity-4-or-5 rule must not be restored.
For a standalone domain named party, permanent suite-of-one sugar makes its
implicit suite also party. Its Person resource address is consequently
adl.party.party.Person. Packaging that same domain under explicit suite
core changes the address to adl.core.party.Person.
Only suites, domains, resources, and fields are authored addressable constructs
in this edition. Enums, properties, shared objects, traits, states, transitions,
rules, validations, and permissions do not gain an address by appending their
name. Composition constructs have their own $ref/merge/trait mechanisms;
relationships are reached through the field carrying the foreign key.
For example, adl.core.blog.Post.publish has the shape of a field address.
It cannot identify a transition merely because publish sounds like a verb.
A future extension needs an explicit discriminator rather than a guess based
on the last word. A consumer can also require a narrower kind: references
requires a resource address, while an import identifies a domain.
7.4 Pins belong to suites and domains
A pin binds only to the segment immediately before it. Brackets are required. These are illustrative address strings, not complete ADL documents:
adl.core@[1.4.0].party.Person
adl.core.party@[^2.1].Person
adl.core@[1.4.0].party@[^2.1].Person
The first pins the suite; the second constrains the domain; the third does both.
Neither pins Person independently: a resource inherits its domain version.
Pins on the root, resource, field, or any kalos segment are invalid.
adl.core.party@1.2.0.Person is also invalid because its pin is unbracketed.
Draft 05 §5.4 specifies npm-style semver ranges with the closed operator set
=, ^, ~, >, >=, <, <=, ||, and hyphen ranges. Bracket contents
must satisfy that semantic contract as well as the printable-character rule.
The following ordinary numeric cases were checked with the production selector:
| Expression | Candidate-set observation |
|---|---|
1.2.3 or =1.2.3 | Selects exactly 1.2.3 |
^1.2 | Selects 1.9.0 from the recorded candidates, excluding 2.0.0 |
~1.2.0 | Selects 1.2.9, excluding 1.4.0 |
>=1.2.0 <2.0.0 | Selects 1.9.0 |
>1.2.3 <=1.2.9 | Selects 1.2.9 |
| `^1.0 | |
1.2.0 - 1.5.0 | Selects 1.4.0 |
^9.0 | No candidate satisfies the expression |
The full candidate list is in the evidence data. An unsatisfiable pin is a
resolution failure, not a warning. The checked import resolver reports
ADDRESS_PIN_UNSATISFIED and identifies the active version. A helper that
selects the highest member of a supplied list does not establish remote
package discovery or several active versions in the registry.
A resolved artifact MUST contain no unresolved range selections
(ADDRESS_PIN_UNRESOLVED). Authored ranges are legal inputs to resolution.
Draft 05 §21.5 also requires digest coverage of both the authored constraint
and the exact selected version: retaining the former as provenance does not
permit leaving the effective selection open. ADL 8/9 own the lockfile and
canonical representation. Existing Phase-16 tests verify an import’s range
becoming an exact resolved address and its digest pair entering the lockfile.
Checked limits. The lexer stores bracket contents largely as opaque text.
It accepts @[banana], @[1..3], and @[1.2.3garbage]; its range classifier even
labels 1..3 as non-range. The selector accepts the numeric prefix of
1.2.3garbage, and treats 1.* as 1.0.0 in the recorded candidate set.
These are not additional accepted language forms or complete range validation.
The Phase-16 guide’s D10 treatment of prerelease/build suffixes is an
implementation decision with an acknowledged grammar-review boundary; this
chapter does not ratify its ignored-suffix behavior as full semver compatibility.
7.5 Reference literals name rows
Draft 05 §5.2 gives a distinct production for values referring to an instance:
reference = address ":" instance-id
instance-id = 8HEXDIG "-" 4HEXDIG "-" 4HEXDIG "-" 4HEXDIG "-" 12HEXDIG
The address part names the resource whose row is referenced. The checked reference parser requires resource arity 4; a suite, domain, or field address cannot identify a resource row. Reference literals are permitted where an appropriate value is expected, never in an address-only declaration slot.
This complete illustrative value names one Person row:
adl.core.party.Person:018f2c6e-4a2b-7cde-8000-0123456789ab
The UUID accepts hexadecimal letters in either case and is emitted lowercase
with hyphens in the 8-4-4-4-12 positions. The address uses declaration casing;
do not lowercase resource and field names merely because the UUID tail is
lowercased. Non-UUID primary-key values are outside this reference production;
person-7 is not an alternative instance identifier. This production does not
impose the separate UUID field validator’s UUID-v4 wording on the reference.
A colon separates declaration and instance. # already belongs to JSON-pointer
usage in $ref; / would suggest a route. Neither substitutes for the colon.
A reference string passed to the address-only parser is rejected, as required.
A field declared type: reference uses references for its resource target;
a plain type: uuid field does not accept the whole address-plus-UUID value.
ADL 12 owns target binding, existence checks, and relationship enforcement.
The checked field validator verifies reference shape and the string transform
normalizes the UUID. It also accepts an unrelated resource prefix at this
isolated validation layer. That result does not establish target matching,
row existence, permission to read the row, or a successful write through the
complete runtime path.
7.6 A complete suite example
These three files form the checked example package. Its root is
suite.yaml:
# Complete illustrative suite root.
adl: "0.5.1"
suite:
name: core
version: "1.0.0"
domains: [./party.yaml, ./billing.yaml]
The first member, party.yaml, declares the target:
# Illustrative member of suite core; inherits adl.
domain:
name: party
version: "1.2.0"
resources:
Person:
object:
id: { type: uuid, primaryKey: true }
email: { type: string }
The second, billing.yaml, carries a reference:
# Illustrative member; the target is a declaration, not a row.
domain:
name: billing
version: "1.0.0"
resources:
Invoice:
object:
id: { type: uuid, primaryKey: true }
personRef:
type: reference
references: "adl.core.party.Person"
Both members inherit language 0.5.1. Their application versions remain
independent. The target address comes from suite/domain/resource declarations,
not the member filename. The resource address names Person generally; a
particular invoice’s personRef value would use the reference form in §7.5.
The suite parser accepts these files and retains the target in field metadata. The adapter supplies their exact texts as member inputs. This example check performs no installation or row write. Existing Phase-12 tests separately exercise suite activation order, exports, and reference-column storage.
The accompanying standalone.yaml
declares only the baseline party domain under language 0.5.0. Both the
production CLI and adl-ref accept it. Its implicit suite is party, so its
resource address differs from the explicit-suite example as explained in §7.3.
7.7 Resolution has several stages
Draft 05 §4.1 inserts address handling at stage 5.5 of the parse pipeline.
Eligible intra-suite targets can be resolved there. Cross-suite addresses
survive into the model for later resolution; the target may not be loaded or
available to the parser. An address does not resolve away like a composition
$ref whose target content has been copied into the document.
| Stage | Question answered | A successful result does not establish |
|---|---|---|
| Lexing | Does the text have an allowed root, shape, kind, and pin placement? | Valid range semantics or target existence |
| Declaration lookup | Which declared suite/domain/resource/field matches? | A satisfying version or active runtime target |
| Pin resolution | Which available version satisfies the constraint? | Permission, row existence, or network reachability |
| Runtime access | Can this operation reach the bound target under its context? | Permission for a different operation or automatic remote expansion |
These are semantic responsibilities, not a promise that the host implements four interchangeable public functions. The detailed parser ordering remains with ADL 4, and import resolution has its own build/load boundary in ADL 8.
Intra-suite helper limit. Given suite core and domain names party and
billing, the checked helper folds suite/domain spelling and records a
resolved_to string. It receives no resource or field inventory and no
versions. Accordingly, it also reports success for party.Missing and
party.Person.missing, and does not check a @[99.0.0] pin. Its output is an
intermediate identity record, not proof that the complete target exists.
Pins remain in separate fields; the helper’s resolved_to string omits them.
A missing domain in that supplied suite and an address targeting another suite both remain unresolved at this helper. Deferral of an external target is not itself an error. Once a required lookup is attempted, however, a missing target must produce the appropriate resolution failure rather than silently naming a different declaration.
Model coverage limit. The checked suite preserves references on the field,
while its DomainModel.addresses list is empty for these examples. That list is
therefore not a complete inventory of address-bearing declarations. The parser’s
resolved_json also retains a range or malformed pin in references during
isolated parsing. Its name does not certify a fully pin-resolved artifact.
The current import range guard inspects imports, not every address-bearing
field in the model. End-to-end coverage of other consumers remains necessary.
An address to another suite is not necessarily remote: the suite can be
co-located in the same site. Conversely, preserving an external reference does
not prove dereferencing support across sites. The ratified
R4 ruling forbids an
ownerField chain crossing an unresolved reference and states that ?include=
does not expand a remote reference in 0.5.1; the canonical reference string is
returned without a bus fetch. ADL 12/21/26 own those consumer contracts.
7.8 Case, canonical identity, and collisions
Draft 05 §5.7 requires case-insensitive resolution with canonical spelling
as declared. Given suite core, domain party, and resource Person,
adl.Core.Party.person identifies the same declaration as
adl.core.party.Person. A fully resolved artifact records the latter spelling.
This rule concerns declaration identity; it does not say every stored string
or generated route is lowercase.
The linter MUST reject case-only collisions among suite, domain, resource,
and field names in their respective sets. Declaring both email and Email
in one resource makes case-insensitive lookup ambiguous. The checked
reject-case-collision.yaml
fails strict parsing with ADDRESS_AMBIGUOUS. Existing tests also reject
case-only resource collisions, sometimes through the earlier
INVALID_COLLECTION guard. The permissive parser test retains an authoring-only
linter boundary; it is not accepted v0.5.1 authoring syntax.
Two checked paths illustrate the remaining work. The intra-suite helper
returns adl.core.party.person, because it restores only suite/domain casing.
The current-domain query resolver does look up the resource and returns
Person for either person or Person; it rejects Missing. Neither result
establishes complete canonicalization of all fields, suites, imports, or
persisted reference strings. Suite/domain collision coverage also needs its
own evidence rather than being inferred from resource/field tests.
The lexer’s reserved-infix check rejects lowercase blog_v1 but accepts
blog_V1. That case-sensitive check needs review against case-insensitive
identity and the bus discriminator. Do not use the accepted uppercase variant
as a way to create a second spelling of a reserved domain identity.
7.9 AEL uses quoted addresses and local names
An address inside an AEL expression is a quoted string. A bare dotted expression
already means member access against a variable; adl.core.party.Person without
quotes does not become an address simply because it resembles one.
Draft 05 §§14.1–14.3 define the target convention and local resolution boundary.
These are illustrative expression fragments, not standalone documents:
query('adl.core.party.Person', {email: 'reader@example.test'})
sum('adl.core.hr.Effort.hours', true)
count(Person, true)
The first two use absolute declaration addresses. The last uses the current
domain’s resource Person. Resource-target and field-target functions require
the appropriate address kind; ADL 18 owns each function’s signature and errors.
Do not infer those requirements from address arity alone or assume a quoted
field target is accepted by every query function.
Within a domain, local name resolution checks AEL context variables, then a
field of the current resource, then a resource in the current domain, and
stops. A bare name never searches other domains. Adding a similarly named
resource elsewhere must not change an existing local expression’s meaning.
AEL variables such as $this remain valid in expressions even though $ is
forbidden in an address string.
Existing Phase-15 tests exercise the local stopping rule, quoted sibling addresses, field targets, and unavailable-target errors. Current Phase-16 tests also require a declared import for another suite’s query target; a sibling in the same suite needs no import. That is the checked implementation’s import read-grant path, not a claim that knowing an address grants every operation. Import declaration and authority details belong in ADL 8/21.
Pin-consumer gap. With current domain party at 1.2.0, the isolated query
resolver still returns Person for both adl.party.party@[99.0.0].Person and
adl.party.party@[^99.0].Person. The current-domain fast path does not check
those pins. This differs from the separately tested import resolver’s pin
rejection. A valid lexer result or passing import test must not be generalized
to pin enforcement at every AEL target consumer.
7.10 Platform addresses and bus identifiers
The kalos address space has exactly three segments and a closed namespace
set (Draft 05 §5.6):
| Namespace | Platform-provided contents |
|---|---|
kalos.system | Version strings, uptime, instance identity |
kalos.store | Adapter kind, connection state, migration head |
kalos.auth | Current principal, roles, token metadata |
kalos.registry | Resolved dependencies, lockfile digest |
kalos.domain | Domain management surface named by the platform contract |
The platform enumerates the leaves; authors cannot create an extension
namespace by inventing a new segment. kalos.vendor.thing is
ADDRESS_ROOT_UNKNOWN. A recognized namespace does not prove a leaf exists:
the checked lexer accepts kalos.system.noSuchLeaf as shape only.
The address surface is read-only under §5.6; management writes use the separately
gated management interface. An address spelling does not invoke an action.
Language addresses and bus action identifiers share some lexical forms. Both examples below have five segments:
adl.core.blog.Post.title
adl.riverbend.blog_v1.post.create
The first is a field address. The second is the specified versioned bus action
form: its second segment identifies a site, its third carries the domain-major
infix, and its last segment is an operation. Arity cannot distinguish them.
The reserved _v{major} infix in the third segment is the discriminator described
in §5.8; authored domain names cannot use it.
These are specification examples. The checked legacy bus implementations and planned bus/management changes have separate evidence in ADL 3. Do not derive an executable bus identifier, REST route, or physical table name by merely lowercasing or appending a verb to an ADL address. Actual storage names also carry the R0-b grandfathering qualification described in ADL 6.
kalos://{host}/… federation syntax is reserved and unspecified (§22).
It is not another spelling accepted by this grammar and supplies no routing,
authentication, or remote-fetch contract. The checked lexer rejects the
illustrative federation URI with ADDRESS_ROOT_UNKNOWN.
7.11 Diagnostics and the governing vector inventory
| Code | Required or checked condition |
|---|---|
ADDRESS_SYNTAX_ERROR | Invalid segment, pin placement/brackets, length, or reference syntax |
ADDRESS_ARITY_ERROR | adl outside 2–5 segments, or kalos outside exactly 3 |
ADDRESS_FORBIDDEN_SIGIL | $ appears in an address |
ADDRESS_ROOT_UNKNOWN | Unknown address root or closed kalos namespace |
ADDRESS_UNRESOLVED | Required declaration lookup finds no target |
ADDRESS_AMBIGUOUS | Case collision or unresolved ambiguity between domain majors |
ADDRESS_PIN_UNRESOLVED | A range survives as an effective selection in resolved ADL |
ADDRESS_PIN_UNSATISFIED | Checked import resolver finds no satisfying active target version |
Cross-suite major identity and pin requirements are owned by ADL 6, applying
Draft 05 §6.2. An unpinned cross-suite address when two majors are present is
ambiguous. The lexer cannot establish that condition because it has no registry
or version inventory. Likewise, an invalid reference value can be wrapped as
field validation code invalid_reference; AEL target failures use AEL-specific
codes. The CLI wraps a forbidden-sigil failure with outer code E000 and the
address code in its message. These wrappers are not interchangeable error APIs.
The following inventory preserves all 22 Draft 05 §5.9 rows. “Shape” deliberately
limits what the lexer establishes. The executable
vectors.json records the expected stage
and the complete UUID used in place of the source table’s abbreviated tail.
| Row | Input | Governing result and checked boundary |
|---|---|---|
| 1 | adl.core | Valid suite shape |
| 2 | adl.core.party | Valid domain shape |
| 3 | adl.core@[^1.2].party | Valid pinned domain shape |
| 4 | adl.core.party.Person | Valid resource shape |
| 5 | adl.core.party.Person.email | Valid field shape |
| 6 | adl.core@[1.4.0].party.Person | Valid suite pin |
| 7 | adl.core.party@[^2.1].Person | Valid domain constraint in source |
| 8 | adl.core.party@[>=1.2.0 <2.0.0].Person | Valid source; unresolved effective range is forbidden in resolved ADL |
| 9 | adl.my-suite.city-permits.Application | Namespace hyphens valid |
| 10 | kalos.system.version | Valid platform shape |
| 11 | kalos.registry.lockfileDigest | Valid platform shape |
| 12 | adl.party.Person | Valid domain shape; missing target fails at resolution |
| 13 | adl | ADDRESS_ARITY_ERROR |
| 14 | adl.core.party.Person.address.city | ADDRESS_ARITY_ERROR |
| 15 | adl.$shared.Party | ADDRESS_FORBIDDEN_SIGIL |
| 16 | adl.core.party.Person-Record | ADDRESS_SYNTAX_ERROR |
| 17 | adl.core.party@1.2.0.Person | ADDRESS_SYNTAX_ERROR |
| 18 | adl.core.blog_v1.Post | ADDRESS_SYNTAX_ERROR |
| 19 | kalos.system.version.extra | ADDRESS_ARITY_ERROR |
| 20 | kalos.vendor.thing | ADDRESS_ROOT_UNKNOWN |
| 21 | Resource address plus : and the complete UUID from §7.5 | Valid reference value; rejected as an address |
| 22 | adl.Core.Party.person | Full target should canonicalize to adl.core.party.Person; helper alone leaves person |
Passing the shape expectations for this inventory is not a claim of full conformance to its resolution rows. Rows 8, 12, and 22 require evidence beyond lexing, and the chapter records those boundaries explicitly.
7.12 Verification and remaining review
The example index links seven YAML inputs, the 22-row vector inventory, and the reproducible production-class adapter. The verification record retains exact requests, outputs, source/binary hashes, and 54 passing existing Release tests across address, reference, AEL-target, and import-resolution targets.
Both production CLI and adl-ref accept the baseline standalone document.
For the forbidden-sigil reference example, adl-ref rejects the unsupported
reference type and warns about references; it does not verify the address
rule independently. That is a modeller coverage boundary, not agreement on
the expected address diagnostic.
The adapter was compiled against the recorded header snapshot and linked with identified existing Release libraries. No production rebuild, live server, remote dereference, full canonicalization assessment, or runtime fix is claimed.
Before publication, complete pin validation and enforcement across consumers, resource/field canonicalization, suite/domain collision coverage, and the address inventory carried through resolution. Review uppercase-root/infix handling and the semver suffix/partial-version boundary. Keep remote-reference and federation limits explicit. This chapter remains Draft 1 with these implementation and publication-review boundaries recorded.