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 include/import resolution, lockfile identity, and registry failures. 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 08-reuse-imports-registries-and-lockfiles.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.
8.1 Choose the reuse relationship
An import declares a dependency on a domain in another suite. It identifies shared material without copying that material into the importing domain. The address says which declaration is needed; the source locator identifies its package; a lockfile records the selected artifact and its digests.
The governing provisions are Draft 05 §7.1 and §§7.4–7.6, with §§7.2–7.3 defining related derivation forms. There is no standalone legacy ADL 8 body to convert. The later Spec-04 trust-model ruling retains CLI-side verification and explicitly makes publisher signing a v0.5.1 non-goal. The revision record maps source authority.
| Construct | Relationship | Owning reference |
|---|---|---|
imports | Dependency on another suite’s domain; reference rather than absorption | This chapter |
Domain extends | Linked derivation whose upstream relationship persists | ADL 14; locator/lockfile boundary here |
derivedFrom | Detached-copy provenance; no fetch or ongoing resolution | ADL 14; digest exception here |
$ref, $merge, traits | Document/model composition | ADL 13 |
type: reference | A field that holds a resource-row reference | ADL 12 |
Prerequisites are ADL 5 for suite identity, ADL 6 for versions and major ownership, and ADL 7 for address grammar and pins. ADL 9 owns canonicalization and exact digest computation. This chapter states what consumes those digests.
8.2 Import declaration and placement
Draft 05 §7.1 declares imports under the domain body as a mapping from an alias to an entry. This is a contextual fragment from the complete member in §8.4:
imports:
party:
address: "adl.core.party@[^1.0]"
source: "https://registry.example/packages/core/party"
| Element | Value and meaning |
|---|---|
imports | Mapping of declared dependencies |
party | Local mapping key identifying this import entry |
address | Required domain address: adl.<suite>.<domain> with applicable pins |
source | Required package locator under the governing §7.1 rule |
The alias labels the entry; it does not rename the provider domain, copy its
resources, or replace the suite/domain segments in an absolute address. A
resource address such as adl.core.party.Person is the wrong kind for an
import. A suite address such as adl.core does not satisfy the checked
per-domain import entry either. ADL 7 owns the complete address grammar.
Every import MUST carry source, including an import whose target happens
to be installed locally. Omitting it is IMPORT_SOURCE_MISSING. An authored
import MUST NOT contain a content digest; MANIFEST_DIGEST_FORBIDDEN applies
to attempts to embed that integrity evidence in the manifest.
Checked declaration surface. The parser requires the mapping form and
accepts only address and source in an entry. It explicitly rejects digest
keys such as sourceDigest and reports other extra entry keys as UNKNOWN_KEY.
The current suite parser rejects suite.imports as an unknown suite key.
Imports in the checked implementation therefore belong on individual members.
The reviewed Phase-16 status report §3A
proposes suite-level imports as the primary form and optional source for
locally resolvable targets. It labels those changes proposed amendments requiring
another implementation round. This chapter retains the explicit §7.1 rule
and the checked declaration surface until a ruling changes them.
8.3 Addresses and artifact locators have different jobs
In the example, adl.core.party@[^1.0] constrains the domain identity and
version. https://registry.example/packages/core/party identifies the package
from which an artifact would be obtained. One cannot substitute for the other.
A domain address is not a URL, and a source URL is not an addressable declaration.
The governing locator rules are:
sourceis an absolutehttps:URL, or an explicitly suppliedfile:URL for an offline build.- It identifies the package rather than a single selected artifact. The resolver obtains the version-specific artifact locator after selection.
- Redirects remain on the same origin unless the resolver was invoked with an explicit policy allowing a cross-origin redirect.
- A package locator is not a request to perform runtime network access.
An illustrative offline locator is file:///packages/core/party. Its concrete
package contents and selected artifact are build inputs, not additional address
segments. The package index/distribution protocol owns the fetch layout; this
chapter does not prescribe an ad hoc URL concatenation algorithm.
Checked locator limits. The current parser checks source prefixes rather
than complete URL validity: it rejects ftp://registry.example/p but accepts
bare https:// and file: strings. Those accepted strings are discrepancy
inputs, not useful package locators. The local resolver records source and
never fetches it. With party already Active, submission also succeeds using
file:///adl8-missing-package/core/party without that package being provided.
This demonstrates the local implementation boundary; it does not validate
file-package loading, redirects, or offline artifact integrity.
8.4 A provider and a consumer in two suites
The checked example contains two explicit suites. The provider root
core.suite.yaml is:
# Complete illustrative provider suite.
adl: "0.5.1"
suite:
name: core
version: "1.0.0"
domains: [./party.yaml]
Its complete party.yaml member declares domain
party at version 1.2.0 with resource Person, a UUID primary key, and a string
name field. The provider suite and member versions are intentionally different.
The consumer root, clinic.suite.yaml, is:
# Complete illustrative consumer suite.
adl: "0.5.1"
suite:
name: clinic
version: "1.0.0"
domains: [./clinical.yaml]
Its member clinical.yaml declares the dependency:
# Consumer member; the locator is recorded by the checked local resolver.
domain:
name: clinical
version: "1.0.0"
imports:
party:
address: "adl.core.party@[^1.0]"
source: "https://registry.example/packages/core/party"
resources:
Visit:
object:
id: { type: uuid, primaryKey: true }
reason: { type: string }
Both members inherit language 0.5.1. clinical declares its own Visit; the
import does not add Person to its resource declarations. A use of the imported
resource identifies it through adl.core.party.Person and the relevant consumer
contract. The example URL is illustrative and no network fetch is performed.
The four files are complete in their stated root/member contexts. The verifier embeds the member texts when calling production suite handlers. It first submits the provider to a disposable in-memory store, then resolves and submits the consumer. The example index also supplies a baseline standalone document for independent parser comparison and explicit missing-source/digest rejection files.
8.5 The registry contract and the local implementation
Draft 05 §7.4 defines a publishing registry as a kalosd server exposing immutable
package artifacts at the locators used by source. Its own domain MUST have
zero imports and zero extends, preventing registry resolution from depending
on resolution of the registry itself.
The machine-generated registry index enumerates available versions, each with an artifact locator and source digest. The index MUST carry digests; the prohibition on manifest digests applies to hand-authored ADL, not this generated verification material. The distribution companion owns the index wire protocol, which Draft 05 excludes from language-normative scope. No index protocol is invented by this chapter.
The governing execution boundary is explicit: resolution and verification are CLI-side and complete before submission. A running kalosd does not contact a publishing registry. An obtained artifact must execute without registry contact. The text also prohibits adding runtime entitlement, license, or telemetry checks without a major version. Fetch-time distribution policy does not become an ADL runtime permission or callback.
The available Phase-16 branch instead resolves during a local server handler
call against AdlRegistry, the server’s own stored domain records. It requires
an Active target row and does not fetch a source package or remote index.
The branch also exposes a separate adl.domain.resolve handler that creates a
resolution result without installation. Its D3 interpretation is that the
network prohibition excludes the local store; the status report explicitly
asks the Architect to rule on that interpretation of §7.4.
Accordingly, this chapter labels the following workflow checked local implementation, not a ratification that CLI-side resolution is optional. It also does not equate an Active local domain record with a fully implemented immutable publishing registry. The registry-domain zero-dependency requirement has no implemented registry-domain marker in this branch and remains a stated implementation gap in the Phase-16 report.
8.6 Resolve before installing the consumer
For the local implementation, the following sequence was executed against the four example files and disposable stores:
| Step | Direct handler result | Registry/application observation |
|---|---|---|
| Submit clinic before core exists | 422 ADDRESS_UNRESOLVED | No domains installed |
| Submit core | 201 | party Active at 1.2.0 |
| Resolve clinic | 200 with exact resolved source, lockfile, and digests | Still only party; application table inventory unchanged |
Submit clinic with the returned lockfile and require_lockfile: true | 201 | clinical installed; returned lockfile digest matches resolve |
The resolver checks the import’s suite membership and domain pin against the
Active row. A suite pin is checked independently against the suite version;
for an implicit suite, the domain version supplies that suite version. A wrong
suite is ADDRESS_UNRESOLVED; an unsatisfied domain or suite pin is
ADDRESS_PIN_UNSATISFIED. A present but Failed provider also rejects. The
checked same-suite import is IMPORT_INTRA_SUITE, because sibling addressing
uses the existing suite context.
The selected import address becomes adl.core.party@[1.2.0]. The stored
resolved consumer source contains that exact address, while the authored
constraint remains in the lockfile’s address field. The resolved digest is
computed over the rewritten consumer model. ADL 9 owns the encoding and the
source/resolved distinction; lexing a range alone does not resolve it.
The local registry supplies one Active version for this domain. When the
provider advances to 1.2.1, the consumer’s old lockfile fails with
SOURCE_DIGEST_MISMATCH, even though 1.2.1 satisfies ^1.0. The handler resolves
the current row and compares it; it does not retrieve the old locked artifact
from a multi-version index. ADL 7’s highest-satisfying selector tests must not
be read as evidence of that missing artifact repository.
A resolution response is generated evidence. The checked handle_resolve
ignores a supplied lockfile with a changed source digest and returns a fresh
result. It is not a verification endpoint for that supplied file. Retain the
lockfile of record and use the documented verification boundary when checking
a repeated build; silently replacing it with new resolution would conceal drift.
8.7 The lockfile records resolution
Under Draft 05 §7.5, a lockfile is required for a domain carrying imports or
cross-suite extends. A build with no lockfile resolves and writes one; a build
whose existing lockfile disagrees with resolution fails. This makes absence on
a first build different from an optional integrity check on subsequent builds.
The resolver computes both digests after fetching and canonicalizing the
artifact under the governing contract. The source digest verifies the pinned
package; the resolved digest detects changes in the model produced by resolution.
Neither belongs in an authored import. derivedFrom is the sole authored
exception: its required source digest records a detached copy obtained once,
not an ongoing dependency resolution directive.
The checked branch generates a per-domain lockfile with this vocabulary:
| Field | Meaning in the current generated format |
|---|---|
lockfile | Format marker, string 0.5.1 |
domain | Importing domain name; its version is excluded |
imports | Mapping keyed by declared import alias |
Entry address | Authored address and constraint |
Entry resolved | Selected exact domain address |
Entry version | Selected domain version |
Entry source | Recorded package locator |
Entry sourceDigest | Provider’s source digest |
Entry resolvedDigest | Provider’s resolved digest |
extends | Corresponding locked derivation entry when the branch detects a source-bearing extends |
The complete clinical.lock.yaml was
emitted from the checked resolution. It records version 1.2.0 and actual
64-hex-character digests; its values are not placeholders or hand-computed
claims. The equality of the two provider digests in this simple example does
not make the two fields interchangeable.
lockfileDigest is the digest of the generated lockfile tree, using the
canonicalizer; it is distinct from either provider digest and from the
importer’s resolved-model digest. Excluding the importer’s version allows
unchanged dependency resolution to retain the same lockfile digest when the
consumer suite version advances. This format, placement, and scope are branch
choices under review in Phase-16 Q2, not a finalized language lockfile schema.
For an explicit suite request, the current handler takes
lockfiles: {"./clinical.yaml": <lockfile object or text>} in the request
envelope. A standalone request takes lockfile. These are host request fields,
not extra suite/domain grammar keys. The companion’s generated request records
contain the exact envelopes used.
8.8 Repeated builds and mismatch handling
The governing comparison is performed on every subsequent build. A changed
source digest is SOURCE_DIGEST_MISMATCH; a changed resolved digest is
RESOLVED_DIGEST_MISMATCH. Draft 05 requires both at status 409. A permitted
version range does not authorize bypassing an existing lockfile’s integrity
record. Dependency updates require deliberate new resolution and review.
| Checked repeat after installing the example | Result |
|---|---|
| Higher clinic suite version, original member and correct lockfile object | 201; same lockfile digest |
| Another higher suite version, lockfile supplied as serialized JSON text | 201; same lockfile digest |
Higher suite version, changed supplied sourceDigest | 409 SOURCE_DIGEST_MISMATCH |
Higher suite version, changed supplied resolvedDigest | 409 RESOLVED_DIGEST_MISMATCH |
| Higher suite version, required import entry absent | 422 LOCKFILE_MISSING |
First consumer submission with require_lockfile: true, no file supplied | 422 LOCKFILE_MISSING |
The two digest mismatches and the missing-entry rejection preserve the
registered consumer and suite versions. The request’s strict switch and configuration
adl.imports.require_lockfile both require a supplied lockfile on the exercised
member path. A request setting require_lockfile: false does not disable a true
configuration requirement. These switches are implementation policy controls;
the language requirement to retain and verify resolution evidence remains.
Verification limits in the checked branch:
- A byte-identical suite submission returns 200
unchangedbefore member verification. A deliberately changed source digest in the supplied lockfile is ignored; the stored lockfile remains the record. This is D14/Q11 under review, not evidence that the new supplied file was verified. - The comparison checks required entries and their two digest strings. It does not validate all supplied metadata. A file with a different format marker, importer name, address, resolved address, version, source, and an extra import is accepted when the expected alias’s digest pair matches. The handler returns and stores its newly generated correct lockfile; it does not adopt the altered target. The gap is incomplete validation of the supplied record.
- Provider digests are read from the local registry row. This is not a fresh fetch, package-file scan, or recomputation of the provider artifact’s bytes.
Do not infer verification of an arbitrary lockfile from a successful NoOp, resolution response, or matching digest strings alone. The chapter preserves these limitations alongside the required integrity contract.
8.9 Dependency cycles and dependency scope
The dependency graph over imports and extends MUST be acyclic (Draft 05
§7.6). A cycle is rejected with DEPENDENCY_CYCLE, including the full path.
Import and derivation edges participate in the same dependency constraint even
though the two constructs have different model semantics.
The example starts with clinical → party. A changed provider that imports
clinical would introduce:
party → clinical → party
The checked handler rejects that change with the complete path and retains
party at 1.2.0 and core at 1.0.0. The cycle walk uses the candidate domain’s
new edges and existing registry edges for the other domains. This scoped
rollback result does not establish a distributed transaction over packages
or every side effect of a later activation failure; ADL 5/17 own those limits.
The current lockfile contains direct imports, not a flattened transitive
closure. In a checked chain analytics → clinical → party, the analytics
lockfile contains clinical; party remains in clinical’s own lockfile.
The ability to walk registry edges for cycle detection does not imply a single
artifact pins and revalidates the entire transitive graph. The proposed
per-suite transitive lockfile in status-report §3A is separate work.
Changing a provider major still creates the identity and migration obligations in ADL 6. An import constraint and a lockfile do not convert stored consumer data or transfer major-upgrade ownership to the publisher.
8.10 Derivation, runtime access, and offline use
Cross-suite extends follows the same mandatory locator and lockfile rules as
imports. Intra-suite extends MAY omit source, because the suite root provides
the locator. ADL 14 owns copying, overrides, protection, and persistent upstream
relationships; this chapter owns the common resolution boundary.
The checked source-bearing derivation produces lockfile.extends with the
selected version and provider digests. A second probe removes source while
still deriving across suites: the branch accepts it and produces no lockfile.
That behavior conflicts with the governing cross-suite requirement. Its use
of source presence as the locking discriminator is Q7 in the status report;
the proposed amendment would instead inspect where the base lives.
An import also participates in the branch’s AEL query-access path. Existing Phase-16 tests resolve a cross-suite query target with the import, reject it when the importer has no corresponding declaration, and permit a same-suite sibling without an import. That D7 read-grant interpretation is itself under review. It does not establish permission for writes, cascades, arbitrary SQL, or every generated operation. ADL 12/18/21 own those contracts, and ADL 7 records the separate pin-consumer gaps.
For offline operation, the governing build uses explicitly supplied file:
locators and retained artifacts/lockfiles. A source locator must not turn into
a runtime entitlement callback. Publisher signing is a ratified v0.5.1 non-goal;
digest integrity does not establish publisher identity or a licensing decision.
No signing or key-distribution mechanism is added by this chapter.
The branch’s bootstrap reader replaces a document’s extension with
.lock.yaml: clinical.yaml reads clinical.lock.yaml. It reads one lockfile
beside each member; an ordinary request carries the content inline and does
not read that source path. The existing bootstrap test proves that a wrong
digest in the adjacent file is read and rejected. The branch reports no CLI
command that completes remote resolution and writes these files; the chapter’s
verifier saves the returned lockfile explicitly. A local dependency resolver
and a file: prefix are not a complete offline distribution implementation.
8.11 Diagnostics, pending rulings, and availability
| Condition | Governing or checked diagnostic |
|---|---|
| Import omits a required locator | IMPORT_SOURCE_MISSING |
| Authored import/linked derivation embeds a digest | MANIFEST_DIGEST_FORBIDDEN |
| Wrong source scheme | Checked IMPORT_SOURCE_INVALID |
| Malformed import or non-domain address | Checked IMPORT_INVALID or the underlying address diagnostic |
| Unknown import-entry or suite key | Checked UNKNOWN_KEY |
| Missing/inactive target or wrong suite | Checked ADDRESS_UNRESOLVED |
| Unsatisfied suite/domain constraint | Checked ADDRESS_PIN_UNSATISFIED |
| Import targets its own suite | Checked IMPORT_INTRA_SUITE |
| Missing required lockfile/entry | Checked LOCKFILE_MISSING |
| Source/resolved digest disagreement | 409 SOURCE_DIGEST_MISMATCH / RESOLVED_DIGEST_MISMATCH |
| Dependency cycle | DEPENDENCY_CYCLE, including path |
The checked handlers use 422 for the listed non-digest failures. The CLI can
wrap a language code inside a message under outer code E000; these are
interface-specific representations. Several added diagnostic names are among
the Phase-16 report’s questions for ratification. The table identifies observed
behavior rather than silently enlarging the normative error catalog.
At inspected revision cafaf6ab, the Phase-16 report describes the implementation
as complete on its branch and awaiting rulings. Its §3A proposals include:
| Pending subject | Current checked behavior | Proposed direction |
|---|---|---|
| Import placement | Per-domain alias mapping | Add suite-level imports as primary package dependency declarations |
| Locator requirement | Unconditional on imports | Permit omission for locally resolvable targets |
| Lockfile scope | Per-domain direct entries and per-member request map | Per-suite file, transitive entries, suite request lockfile |
| Cross-suite derivation locking | Triggered by source presence | Determine scope from the actual base suite |
| Resolution authority and NoOp verification | Local handler resolution; NoOp skips verification | Ratification requested; governing boundary needs reconciliation |
These are not accepted examples or completed runtime changes in this draft. The chapter’s available evidence includes the implemented branch, so it no longer describes all reuse work as merely planned. It still does not claim that cut -c, the publishing registry, or the final lockfile contract has shipped.
8.12 Verification and remaining review
The verification record retains exact request sequences, generated lockfile, outputs, source/binary hashes, and 50 passing existing Release tests covering imports, AEL targets, suite submission, and digests. The example adapter calls production handlers in disposable in-memory SQLite stores. It contacts no existing server, external registry, or package locator.
Both production CLI and adl-ref accept the standalone baseline. For the
missing-source example, the CLI rejects as required; adl-ref exits successfully
with an unsupported-imports warning and constructs no import model. That
result is a modeller coverage limit, not independent validation of the import
contract. Full conformance and a fresh production HEAD build are not claimed.
Publication review must reconcile the pending placement/locator/lockfile rulings, local versus CLI-side resolution, verification on NoOp and resolve paths, metadata checks, source-free cross-suite derivation, and transitive integrity. Remote artifact fetching, redirect policy, immutable index behavior, and the registry-domain zero-dependency rule need their own implementation evidence. This chapter remains Draft 1 with those boundaries explicit.