ADL 2 · Part I — Documents and conformance

0.6.0 reconciled + 0.5.1 detail

Conformance and reference conventions

ADL 0.6.0 reference · Review draft 1 · November 14, 2026.

Contents · Source map · Evidence

The 0.6 edition note

A conformance statement needs a subject, a requirement, an entry point, and a result. “ADL accepts this file” might mean that a YAML reader accepted it, that the domain parser built a model, or that a host activated it. State which one occurred.

This edition uses three authority layers. Language requirements retain their governing source or ruling. Implementation observations describe a pinned Kalos profile. Informative guidance explains use without introducing a new obligation. A later source file can contain all three. Its date does not give every sentence equal authority.

The retained Host and Modeller class model remains proposed. A compiler accepting a Journey does not establish Host conformance, and a reference validator’s clean output is limited by its stated coverage. The existing mandatory-keyword convention is retained, including prohibitions; this editorial revision does not ratify a new class system.

Evidence has three independent axes

AxisValues used hereQuestion answered
Editorial progressnew draft; reconciled entry; inherited detailHow much has this edition reviewed?
Implementation coverageobserved; partial; absent; unresolvedWhich build and surface implement the behavior?
Evidence outcomepass; expected rejection; observed deviation; not rerunWhat did the named check actually establish?

A successful test that reproduces a defect belongs under observed deviation, even when its assertion passes. The Arazzo export fixture is such a case: it confirms that the requested format currently produces native JSON. It does not certify an Arazzo document.

New complete examples live in examples/; deliberate rejection inputs live in fixtures/. New prose examples are explanatory unless explicitly tied to an executable file and an expected result. The retained normative-example convention remains attached to its original sources; importing their text does not rerun their examples.

The offline record identifies the executable, source files, inputs, commands, and results. Historical evidence remains historical. No code or document in this draft claims that all 54 chapters have fresh execution evidence. The source map gives each inherited chapter a destination and follow-up verification scope.

No universal requirement-ID scheme is introduced. Existing ADL N §N.n citations remain usable; new Journey sections follow the same notation. Editorial finding identifiers are not runtime codes. The machine diagnostic emitted by a tool must be recorded separately from the requirement it exercises.

Retained reference detail

The numbered sections below are carried from 02-conformance-and-reference-conventions.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.

2.1 Scope and authority

A conformance claim connects a stated requirement to an observable result. A document being accepted, a model being constructed, and a host enforcing that model are different results. This chapter defines the conventions used to describe them; the chapter owning each construct defines its required behavior.

The governing language source for this edition is Draft 05, despite its historical v0.5.0 filename. Its §0.2 carries forward provisions it does not replace. Specific later Owner rulings amend or interpret that text. The source register identifies the sources used by this manual. An implementation observation, an unratified recommendation, or an older example does not override a ratified requirement.

The conformance criterion inherited from the former Introduction, §1.3 (v0.5.0, retired) is satisfaction of every mandatory requirement in the specification. That includes prohibitions expressed as MUST NOT. Domain authors MUST NOT rely on behavior the specification leaves undefined. Implementation documentation can describe additional behavior, but it does not establish a portable ADL contract.

Within this manual, a requirement is normative at its owning chapter. Summaries and applied examples refer to that requirement; they do not create another default. For example, ADL 6 owns version admission, ADL 7 owns address grammar, and ADL 9 owns canonical serialization. ADL 2 owns how their requirements and evidence are expressed. Until those bodies are drafted, their outlines identify the governing provisions.

Informative material explains, illustrates, or recommends a design. It cannot independently establish an implementation failure. Likewise, an editorial proposal in this chapter remains a proposal even when it describes a useful future conformance process.

2.2 Requirement levels

The capitalized keywords below carry their RFC 2119 meanings, as adopted by Draft 05 §0.1. Their force depends on the subject and conditions of the owning requirement, not on the volume in which the text appears.

KeywordMeaning
MUSTThe stated requirement is mandatory.
MUST NOTThe stated behavior is prohibited.
SHOULDFollow the recommendation unless a particular circumstance justifies a different choice after considering its consequences.
SHOULD NOTAvoid the behavior unless a particular circumstance justifies it after considering its consequences.
MAYThe behavior or feature is optional.

AVOID is the manual’s additional editorial term, inherited from the former Introduction §1.4. It has the force of SHOULD NOT and identifies a syntactically valid construct likely to produce an unintended result. It is not a separate RFC 2119 keyword, a parser error, or a diagnostic code.

A recommendation does not become a prohibition merely because an example follows it. Conversely, a mandatory rule does not become optional because a tool has not implemented it. When a feature is optional, requirements governing the feature still apply when it is provided.

Read conditions literally. A rule for a directly submitted root document need not describe a suite member inheriting its root’s version, or a stored document being reparsed during boot. The entry point and context belong in a test’s description; omitting them can turn a correct result into an apparent conflict.

2.3 Host and Modeller responsibilities

Proposed class model. The chapter-structure proposal recommends two classes; the Phase-18 rollout plan uses them to assign vectors. The decision-log entry introducing the model is marked Architect, for ratification. The reviewed record does not establish a separate Owner ratification of the complete class definition. The following is the proposed division for this manual, consistent with those sources and the existing adl-ref specification.

ClassResponsibilityEvidence boundary
HostLoad, resolve, and model ADL, then execute the applicable declared behavior and generated interfaceRequires evidence at the relevant runtime surface as well as shared language checks
ModellerLoad, resolve, and model ADL and describe the applicable results without executing the applicationCan establish parsing, resolution, and model results; cannot establish live enforcement

Here, Host names an implementation class. It does not mean the HTTP Host header used in site-routing rules. kalosd is the planned Host runner and adl-ref the planned Modeller runner; these names identify implementations, not exemptions from the rules.

A shared vector can compare a resolved field type, a rejected address, or a canonical artifact. A Host-specific check can exercise a write rejected by a permission rule, a state transition, or an HTTP routing conflict. A Modeller can describe those runtime contracts without proving that a deployed host enforces them. Producing OpenAPI is similarly distinct from serving the advertised route.

Class applicability follows the operation being specified. Implementation coverage follows the capability actually present in a particular build. A missing shared capability is a limitation in a claim; it does not become inapplicable merely by being absent. The older adl-ref specification has its own coverage vocabulary and v0.3.1 scope. A tool’s coverage complete message is therefore not a declaration of complete ADL v0.5.1 conformance.

For publication, describe a limited result precisely: for example, “these two version-admission examples were checked through this CLI.” Reserve a broader class claim for evidence covering its applicable requirements. This reporting practice is proposed here; it does not supply the uncompleted fixture inventory.

Sources: language structure, §6.2 (v0.5.0, retired), decision log, and rollout plan, Phase-18.

2.4 Notation, references, and version markers

Code font identifies literal keys, values, paths, function names, and diagnostic identifiers. Grammar notation and signature notation describe the language; they are not automatically text that can be pasted into a YAML document.

The signature form inherited from the former Introduction §1.4 is:

functionName(param: Type, optional?: Type) → ReturnType

This line is metanotation, not a declaration of an ADL function. A ? on a parameter means the argument can be omitted. A | B denotes a union and Type[] an array. Optionality does not by itself permit a supplied null value; null belongs in the value contract where permitted. Actual AEL signatures and evaluation contexts belong to ADL 18.

Reference formDestination
ADL N §N.nA stable language chapter and section, regardless of its volume
§N.nA section in the language book, where the surrounding text makes that scope clear
Delta §N.nA provision in the governing Draft 05 delta, whose numbering differs from the book
KD NA chapter in the kalosd Platform Specification
AR NA chapter in the adl-ref Specification
Appendix XAn appendix in this manual

Thus Delta §23 is not ADL 23: the former contains conformance vectors; the latter is the rules-engine chapter. Links in this draft resolve to a written chapter, its outline, or the named source. The Appendix E outline covers permanent redirects; the revision record maps the conventions moved from the old Introduction to this chapter.

Historical introduction markers such as [v0.3] and [v0.4] retain their provenance meaning. In that inherited notation, unmarked constructs predate v0.3; [deprecated vN.N] records supersession while retaining the introduction marker. Behavior changes belong in revision records. A historical introduction marker alone does not establish present acceptance or runtime availability.

Keep these markers distinct from an actual adl: declaration, a domain’s version, and a server release cut. The ratified version rule says a document declares the lowest language version whose grammar it uses. A 0.5.1 host accepts 0.5.0 and 0.5.1; suite grammar requires 0.5.1. Tags such as adl-v0.5.1-a identify server cuts and are not values for adl:. These are applications of the signed ruling, R0-a, with the full contract assigned to ADL 6.

2.5 Examples, fragments, and rejection cases

The example convention carried from the former Introduction §1.4 is that a YAML example is normative unless its first line is marked # illustrative. A normative example MUST be accepted without parser error and MUST produce the outcome described by its surrounding text. This establishes a positive example as a conformance obligation, rather than merely suggested syntax.

Fragments, deliberately invalid inputs, and examples omitting necessary context are marked illustrative. The marker changes the example’s status; it does not make unsupported syntax valid or remove a cited rejection rule. For a rejection case, the expected failure comes from the owning rule. Acceptance is then a failed expectation, even if the command exits successfully.

An executable example identifies its root form, language declaration, required files, and relevant environment. A suite member can omit its own adl: because the suite supplies the version; an isolated member fragment is not thereby a complete standalone submission. Likewise, ... used to elide material is not an instruction to submit the elided text.

The YAML blocks in §2.6 are fixture wrappers, not ADL root documents. Their input strings contain the documents to check. Both wrappers are illustrative: they demonstrate the ratified fixture shape with local encoding choices. Their version expectations are derived from the governing rule before execution.

When an implementation disagrees with an example, review both against that rule. An implementation failure and an erroneous example are each possible. A count of implementations accepting the example cannot decide which is correct; see §2.8 and the editorial correction recorded with this draft.

2.6 Conformance vectors and fixture format

Delta §23 requires implementations to pass the applicable vectors before claiming parser, resolver, transport, or canonicalization conformance. It also requires the repository to ship machine-readable inputs, expected diagnostics, and the specified canonical bytes and digests before specification ratification. A prose table or a few chapter examples do not discharge that obligation.

The ratified fixture shape is YAML, one vector per file:

FieldContent specified by Delta §23
vectorVector identifier
classList of applicable classes
inputInput to the check
expect.outcomeExpected outcome
expect.error_codeExpected diagnostic code
expect.pathExpected diagnostic path
expect.cbor_hexExpected deterministic-CBOR bytes for §21 vectors
expect.sha256SHA-256 value for §21 vectors

This shape was ratified by the Owner in the Spec-04 ruling, D4-4 and is incorporated in Delta §23. It does not by itself define every field’s encoding or runner behavior. In the following examples, lowercase host and modeller, accept and reject, the scalar input, and null handling are local illustrative choices. path: null means that these examples assert no diagnostic location. It does not require a tool to omit a location. The adl2.* identifiers are local to this chapter, not assigned identifiers in an official vector registry.

The acceptance fixture contains a complete baseline domain. It declares 0.5.0 because it uses no newer grammar:

# illustrative — proposed conformance fixture, not an ADL root document
vector: adl2.accept-domain
class: [host, modeller]
input: |
  adl: "0.5.0"
  domain:
    name: conformanceexample
    version: "1.0.0"
    resources:
      Note:
        object:
          id: { type: uuid, primaryKey: true }
          title: { type: string, required: true }
expect:
  outcome: accept
  error_code: null
  path: null

The rejection fixture changes only the embedded language declaration. The expected diagnostic follows Delta §1.1 and the ratified accept-set:

# illustrative — proposed conformance fixture, not an ADL root document
vector: adl2.reject-unsupported-version
class: [host, modeller]
input: |
  adl: "9.9.9"
  domain:
    name: conformanceexample
    version: "1.0.0"
    resources:
      Note:
        object:
          id: { type: uuid, primaryKey: true }
          title: { type: string, required: true }
expect:
  outcome: reject
  error_code: ADL_VERSION_UNSUPPORTED
  path: null

These check version admission only. The full vector inventory has wider scope:

Governing groupRequired subject matterOwning manual chapters
Delta §23.1Suite/member loading, standalone roots, version inheritance, monotonicity, and idempotent resubmissionADL 4, 5, 6
Delta §23.2Site resolution from host binding and path, conflict, and missing-site outcomesADL 26, 31; platform transport
Delta §23.3 and §5.9Address parsing and resolution, reference values, type rejection, and binding differencesADL 7, 10, 12
Delta §23.4Trait precedence, explicit overrides, machine conflicts, retained state references, and permission conjunctionADL 13, 21, 22
Delta §23.5Canonical equivalence and differences, exact decimals, versioned defaults, variables, digest failures, and mapping-key treatmentADL 9, with 8 for reuse

Delta §23.3 incorporates the 22 address vectors of §5.9. Canonicalization vectors require byte equality with the published fixtures; digest comparison is secondary and MUST use SHA-256 over those exact bytes. An independently reviewed expected byte sequence is therefore needed. Comparing two digests produced by the same implementation cannot establish that either encoded the required artifact.

Do not infer that every reordered YAML map or every YAML/JSON conversion has the same digest. Delta §21 distinguishes ordered collections, enum mappings, source and resolved artifacts, and package-file contributions. Those rules belong to ADL 9; this chapter does not supply substitute CBOR values or claim that its two examples cover canonicalization.

2.7 Recording results and limiting claims

Proposed reporting practice; informative. Record enough context to reproduce the comparison: the rule and vector identifier, exact input and dependencies, language version, implementation identity, entry point, relevant configuration, expected result, observed output, and differences. Identify binaries separately from source checkouts when build provenance has not been established.

Use results such as these in a chapter’s evidence record. They are reporting labels, not new ADL keywords or a mandated fixture vocabulary.

ResultMeaning
PassThe specified observation matched the independently established expectation.
FailThe check ran and contradicted that expectation.
Not runNo execution evidence was collected for this check.
UnsupportedA known implementation or runner limitation prevented the required check; this is not a pass.
Not applicableThe requirement does not apply to the stated class, operation, or configuration for an identified reason.

Keep layers of evidence separate. A loader accepting bytes establishes input acceptance at that entry point. Model inspection adds evidence about resolved declarations. An offline export shows what that generator emitted. Runtime tests are needed for permission enforcement, transaction behavior, routing, and other execution claims. Agreement between tools adds a comparison; it cannot replace the governing expectation or prove correctness on untested cases.

For negative vectors, inspect the reason for rejection. A command failing because it could not open the input file has not demonstrated a version error. Similarly, a CLI’s wrapper code and the language diagnostic it contains are different observations. Any adapter between them belongs in the evidence record; a permissive message search is not proof of the full structured error contract.

2.8 A checked disagreement

Informative observation, 2026-09-07. Each §2.6 wrapper was parsed and its input string written to a temporary file. The production CLI’s validate command and adl-ref check then read that extracted document.

ExampleRequired expectationProduction CLI observationadl-ref observation
adl2.accept-domainAcceptExit 0; success; one resource; no errors or warningsExit 0; no errors or warnings; reported coverage complete
adl2.reject-unsupported-versionReject with ADL_VERSION_UNSUPPORTEDExit 1; failure; diagnostic message begins with the expected language codeExit 0; no errors or warnings; reported coverage complete

The acceptance expectation was met by both commands. The production command rejected the unsupported declaration for the expected semantic reason, but its JSON error object’s code was E000; ADL_VERSION_UNSUPPORTED appeared in message. This records semantic rejection, not a passing assertion that the CLI exposes the language code in a dedicated field. No diagnostic path was asserted by the local fixture.

The adl-ref command failed the rejection expectation. Its coverage message does not make 9.9.9 valid or establish v0.5.1 version-gate coverage. This is an observed gap for that command against the stated target, not evidence that the language’s accept-set is ambiguous. The expected result remains rejection.

The rollout plan treats a shared-vector disagreement as a specification defect requiring resolution. For this manual’s evidence practice, retain that review obligation while investigating the cause: the implementation, modeller, adapter, fixture, or governing text may need correction. Do not preassign the cause or rewrite an expected value merely to make the tools agree. This interpretation is disclosed in the revision record; it does not amend the program’s release gate.

This negative input deliberately uses an explicit unsupported version. The ratified authoring/boot distinction allows permissive reparsing of legacy input without an adl: declaration while requiring strict authoring rejection. An explicit wrong declaration is refused on every path. A missing-version vector therefore needs the correct entry-point context; this chapter does not use permissive CLI behavior to redefine it.

The verification record contains the binary and input hashes, reproduction procedure, outputs, and limits. No domain was activated and no live Host execution, canonical-byte comparison, or complete class conformance assessment was performed.

2.9 Revision records and publication status

The inherited revision convention places a chapter’s history in a neighboring file with -revisions appended to its name. Each record names the version or draft, date, and substantive changes. Where a specification change was made to align with an implementation, the record MUST disclose that fact explicitly. A rule written from observed implementation behavior cannot later serve as independent evidence of that implementation’s correctness. This requirement comes from the former Introduction §1.4.

This chapter’s record distinguishes relocation of existing conventions, ratified additions, proposed editorial choices, and observed tool behavior. ADL 1 remains informative. Existing historical citations remain addressable; the correspondence here does not silently rewrite the published redirect appendix.

Draft status, fixture availability, and implementation availability are separate facts. The signed ruling leaves whole-specification freeze subject to the stated open boundaries; it does not reopen already closed feature decisions. This chapter supplies a reviewed draft and two checked illustrative examples. The complete ratified fixture set, its byte-level expectations, and evidence for any broader Host or Modeller claim remain separate deliverables.