ADL 3 · Part I — Documents and conformance

0.6.0 reconciled + 0.5.1 detail

The platform contract

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

Contents · Source map · Evidence

The 0.6 edition note

A host turns a declaration into actions with concrete authority, storage, and failure boundaries. The application author can request a policy or a history chain; the host must supply the components that evaluate or persist it. The declaration alone cannot establish that those components are installed or configured to enforce.

For the inspected Kalos profile, kalos_adl is 0.125.1, kalos_compliance is 0.3.0, and adl.host is interface version 8. These numbers govern different artifacts. Interface 8 includes policy-recording information in PolicyView; it is not an ADL document version.

Policy supervision

ADL calls the extension boundary from covered generated actions after ordinary permission admission. A supervising extension makes the policy decision. Kalos’s compliance plugin supplies modes, configured claims, explanation, and decision recording. A document with a policy cannot assume that a missing supervisor means unrestricted execution: a covered operation is refused with 503 POLICY_SUPERVISOR_MISSING in this profile.

The deployment mode matters. observe and warn allow requests that enforcement would deny. enforce and strict refuse policy denials. The language file therefore does not fully identify the behavior under test; record the plugin configuration too.

Transactions and side effects

An action response, a lifecycle event, a history row, and a policy decision are different artifacts. Do not infer a common transaction merely because one request produces them. In the current permit-recording path, the successful business operation precedes the after-action record, which is outside its transaction. A later recording failure does not roll back the completed operation. Strict-mode handling of decision-log failures does not remove this boundary.

Internal callers must be assessed at their actual entry point. Calling a covered generated action invokes its gate; writing directly through a database connection does not. The current policy notes identify seeder creates as an exception. A system identity available to a policy is context to inspect, not proof that every internal call is trustworthy.

Naming and execution evidence

The retained chapter distinguishes action dispatch from event publication and records the namespace migration. Some implementation statements there predate dual registration. The inspected Journey registrar calls register_action_dual using a legacy base; that source observation does not reverify every historical naming claim or every subscriber. Retain the governing naming requirements and check installed registrations before constructing a client address.

The operation profile and Appendix E identify the covered surfaces. This edition’s new offline checks do not establish event durability, exactly-once delivery, cross-store transactions, or a production deployment’s configuration.

Retained reference detail

The numbered sections below are carried from 03-the-platform-contract.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.

3.1 What the platform contract covers

An ADL declaration can cause work through several entry points. An HTTP client creates a record; a schedule updates it later; a hook invokes another action; an event advances a workflow. The platform contract explains how these operations are named, how control passes between them, and which execution context reaches the declared checks.

An action is an operation addressed to a registered handler. Dispatch returns a response to its caller. An event is a publication on a channel, delivered to matching subscribers. Publishing an event and invoking an action are distinct operations. Similar names do not make a publication execute a resource action.

The earlier chapter described every action as being on the message bus. This draft uses the distinction visible in the platform interfaces: action routing handles operation requests, while publication delivers event messages. The bus also has a request/response facility; that facility is not interchangeable with the action router or its error contract.

The language owns the behavior that authors depend on. The implementation of the kernel, middleware, plugin ABI, authentication service, and local management transport belongs to the platform companion. In particular:

SubjectOwning reference
Requirement levels, examples, and evidenceADL 2
Language addresses and domain-version identityADL 7, ADL 6
Permission expressions and acting-user contextADL 21, ADL 18
Rules, history, hooks, and state transitionsADL 23, 24, 25, 22
Schedule and workflow semanticsADL 36, ADL 37
Routes and errorsADL 26, ADL 31
Kernel, middleware, ABI, and authentication implementationPlatform chapter map (v0.5.0, retired), KD 2/3/6/8

The governing sources are the converted platform-contract chapter (v0.5.0, retired), carried forward under Delta §0.2, and Draft 05, especially §§5.8 and 13. The historical body has documented errors. Sections below retain sound requirements, disclose contradictions, and identify proposed editorial repairs without treating a runtime observation as independent proof of conformance.

3.2 Action identifiers and management actions

Delta §13.1 contract; implementation assigned to cut -c. The generated resource-action form is:

adl.{site}.{domain}_v{major}.{resource}.{operation}

The site identifies the deployment. The domain component identifies the domain, and {major} is the major of its domain version, not the ADL language version or server release. The operation can identify a resource operation or a named transition according to its owning chapter. A syntactically shaped identifier does not establish that an action with that name exists.

For a site riverbend, domain platformexample at domain version 1.0.0, and resource ticket, the following illustrates the required new action form:

adl.riverbend.platformexample_v1.ticket.create

The historical action form is adl.{domain}.{resource}.{operation}. It is still constructed by the inspected action generator and scheduler. The new form adds the site and domain major; declaring adl: "0.5.1" cannot make an older implementation register it. The Phase-17 plan assigns this work to cut -c.

Action identifiers and ADL declaration addresses share the adl. root. Counting segments does not distinguish them: a field address can also have five segments. Delta §5.8 makes the reserved _v{major} infix in the action’s domain segment the discriminator. Address grammar reserves _v followed by a digit in domain names for that reason. A deployment site is not inserted into a declaration address. ADL 7 owns that grammar.

Management actions. Delta §13.2 moves domain management to kalos.:

Historical identifierRequired new identifier
adl.domain.submitkalos.domain.submit
adl.domain.activatekalos.domain.activate

The root distinguishes platform management from authored resource operations. This change does not move all generated resource actions out of adl.. It also does not, by itself, define an HTTP path, a permission grant, or an alias for every historical management operation. The inspected registration still uses adl.domain.submit; the new management namespace was not exercised here.

Other plugins own their action inventories. The old chapter required three components while giving auth.login and seeder.run as two-component examples. This draft does not preserve that contradictory universal grammar. Those names are illustrative registered operations, not an ADL resource naming production.

Name-normalization review. The inherited rule uses the declared domain name and a lowercased resource name, whereas the inspected action helper applies snake case to both. CRUD publishers also differ from that helper (§3.3). Delta §13 resolves the added segments and discriminator but does not explicitly reconcile these spellings. Lowercase single-word names are used in this chapter’s example so its trace is unambiguous; a final normalization rule remains a publication issue recorded in §3.9.

3.3 Events, subscriptions, and the naming transition

The inherited event contract names lifecycle events and transitions separately from their corresponding actions. For example, .create requests an operation and .created announces a lifecycle event. The historical patterns include:

adl.{domain}.{resource}.created
adl.{domain}.{resource}.updated
adl.{domain}.{resource}.deleted
adl.{domain}.{resource}.transition.{transition}

This is the inherited naming vocabulary, not a claim that every generator emits every suffix. History, state-machine, and other subsystem events have their own contracts. ADL 24, ADL 22, and the relevant consuming chapter determine the payload and trigger conditions. For example, the inspected CRUD created and updated payloads contain resource, id, and data; they do not contain a universal actor object. Do not infer actor attribution from the channel name alone.

The current CRUD publishers concatenate the original domain and resource names; the action helper snake-cases them. For a mixed-case resource these can produce different action and event stems. Subscriber construction also varies between subsystems. This is a reviewed interoperability concern, not a reason to infer that matching an action prefix will match every associated event.

Proposed completion of the event rule. Delta §13 speaks of action identifiers and publication while motivating site separation through event streams. It does not give an explicit replacement production for every lifecycle and transition event. This draft proposes using the same qualified base for those events:

adl.riverbend.platformexample_v1.ticket.created
adl.riverbend.platformexample_v1.ticket.transition.publish

These two event spellings are proposed, not recorded as separately ratified or observed. The second has six segments because its suffix includes both transition and the transition name. The five-segment action rule should not be misread as a fixed length for all event channels.

Ratified publication transition. Delta §13.3 requires publication under both legacy and qualified action identifiers while bus.legacy_action_ids is enabled. The Phase-17 plan applies its initial enabled default to 0.5.1; the following minor defaults it off, and 1.0 removes the flag. With the flag enabled, the runtime MUST log the legacy identifier set once at startup. These are platform configuration and publication requirements, not keys in a domain’s ADL document.

Dual publication is not an instruction to perform a write twice. Nor does it alone establish duplicate action registrations or alias dispatch behavior. Subscribers can receive both forms during migration, so consumers with side effects need a deliberate duplicate-handling strategy. The cited provision does not define a common deduplication identifier for the two publications; this chapter does not invent one.

Delta §13.4 permits wildcards in subscription patterns, never in ADL addresses:

adl.riverbend.platformexample_v1.*.create

The in-process matcher supports segment matching. The ZeroMQ migration rationale describes subscriber-side prefix filters. These are different matching surfaces; a literal * in one is not evidence that another transport interprets it as a wildcard. Platform transport documentation owns subscription setup. Changing a filter without checking received publications can fail silently, as §13.3 explains.

3.4 Dispatch, ordering, and failure

Inherited contract. Action dispatch is synchronous: the call does not return until the handler returns. The dispatch layer supplies neither an action queue nor an automatic retry. A subsystem may defer work or provide its own retry policy; its chapter owns those additional guarantees.

Synchronous does not mean that the whole server executes one request at a time. Separate requests can run concurrently, and a handler can invoke another action before returning. Neither property establishes a transaction spanning the calls. The relevant operation and storage contract determines commit and rollback scope.

At an external entry point, middleware can authenticate, enrich, reject, or forward a request. The router then checks the registered action’s authentication and role metadata before invoking it. Resource handlers can perform further permission, validation, lifecycle, and storage checks. Failing an earlier check prevents the later action from running. Middleware priority and registration are platform concerns; authors should not infer subscriber ordering from middleware ordering.

The carried requirement that dispatch failures use the error contract remains. The owning diagnostic reference is ADL 31. The inspected router returns the following results; these observations are not a replacement error catalog:

Condition in the checked routerObserved implementation mapping
No registered action404, ACTION_NOT_FOUND
Required authentication missing401, AUTH_REQUIRED
Required role absent403, FORBIDDEN
Handler throws a std::exception500, INTERNAL_ERROR

The middleware chain maps exceptions from its execution path to MIDDLEWARE_ERROR. Its catch-all also covers non-standard exceptions, while the router’s own handler catch covers only std::exception. Consequently, the blanket inherited claim about all uncaught exceptions is not established for a direct-router call. The error boundary depends on the entry point.

Action registration is a global namespace within the router. The inspected implementation replaces an existing handler on a duplicate registration and logs a warning; the old claim that replacement is silent is inaccurate. This chapter does not prescribe registration collisions as an application override mechanism. Domain replacement and removal remain with ADL 17, including the recorded teardown limitations.

3.5 Event delivery guarantees

Inherited contract. In-process publication invokes matching subscriber callbacks synchronously, on the publisher’s thread, before publication returns. Delivery is best-effort. A subscriber failure MUST NOT abort the publishing operation, and failure in one subscriber does not excuse skipping the remaining subscribers. Subscriber order is undefined; a feature MUST NOT depend on one subscriber running before another.

Transactional writes. Ordinary subscriber events held by a database transaction are delivered after its outer commit, or discarded on rollback (#1370, #1415). Default-on CRUD transactions apply that boundary to generated writes (#1373). Explicit internal aggregate/reactive subscribers participate in the write itself: failure of their required derived database work aborts the request transaction, even though the bus catches their exception. They are not ordinary downstream consumers covered by the failure-isolation rule above. See ADL 29 §29.7 for opt-out and preflight boundaries.

These guarantees describe callback delivery. If a callback starts a worker or hands data to an external transport, its return does not prove completion of that later work. The contract supplies no durable replay, exactly-once delivery, or shared transaction across subscriber effects. A business dependency such as “send a message only after the history entry exists” needs an explicit mechanism owned by the responsible subsystem.

Implementation limit. The inspected message bus catches and logs std::exception from a subscriber and continues its loop. It has no catch-all for other thrown values. The source therefore supports a narrower exception boundary than the unrestricted inherited requirement. The requirement is not weakened here; the gap is recorded for review. The selected tests exercise publication, matching, and request/response behavior, but do not demonstrate isolation of every kind of subscriber failure.

3.6 Execution identity and delegated calls

Three questions determine the context of a write: which actor is attributed, which roles are supplied, and which enforcement path is entered? They have different answers. Preserving an actor ID does not necessarily preserve that actor’s ordinary privileges; skipping middleware does not necessarily skip checks in the router or resource handler.

Carried author obligation. A subsystem dispatching directly to an action MUST NOT rely on skipped middleware to enforce permissions on its behalf. This retains the obligation from the former §3.4 while correcting its overbroad list of requests said to skip middleware.

Observed paths, not a universal identity rule. The source inspected at 9f4bdf5f has the following behavior:

OriginActor and roles constructed by that pathMiddleware path
HTTP requestAuthenticated client context, with roles supplied by the configured authentication/RBAC pathEnters middleware
Default seeder dispatch__system__, with admin roleseeder dispatches directly to router
Seeder dispatch as a named userResolved user ID, with trusted admin roleSame direct path
Forwarded local management action__system__, with admin rolemgmt enters middleware
Scheduled actionsystem; username scheduler:<schedule>; admin rolescheduler dispatches directly to router
Workflow stepTrigger actor ID when present, otherwise system; admin roleworkflow dispatches directly to router
Nested kalos.call()Copies the outer user context when availableUses internal, which enters middleware

The current kernel’s direct list is seeder, lua, workflow, and scheduler. The fact that lua is on that list does not mean every Lua-originated request uses it: the inspected kalos.call() path sets internal. Some nearby comments still describe an older bypass behavior. The executable branch, not that stale comment, supports the table.

__system__ has a specific role in the inspected RBAC middleware: it skips the middleware’s normal role lookup and checks. Router metadata and ADL handler checks are still distinct. The ADL permission checker does not treat the string __system__, or the presence of an admin role, as an unconditional success for every permission expression. A role list matches its permitted roles; an expression is evaluated with the supplied user context.

The old §3.6 asserted that all internal writes appear as __system__ and bypass RBAC. That wording conflicts with these paths. This draft proposes replacing it with the explicit separation above. This is a disclosed implementation-informed correction for review, not an assertion that the old requirement independently proves the implementation correct.

The trusted identities and transports are constructed by host components. They are not domain declarations that authors can select to grant themselves privileges. Authentication setup, management access controls, and plugin trust belong to KD 8 (v0.5.0, retired) and the platform companion. No new capability mechanism is specified here.

3.7 A client write and a scheduled write

Illustrative example. The complete tickets.yaml provides one resource and a disabled schedule. Its 0.5.0 declaration uses the lowest language version needed by these baseline constructs. All names used in the action/event trace are lowercase single words.

# illustrative — complete input for ADL 3's platform trace
adl: "0.5.0"
domain:
  name: platformexample
  version: "1.0.0"
  resources:
    ticket:
      object:
        id: { type: uuid, primaryKey: true }
        title: { type: string, required: true }
        processed: { type: boolean, default: false }
      permissions:
        read: [editor, admin]
        create: [editor, admin]
        update: [editor, admin]
        delete: [admin]
schedules:
  markProcessed:
    recurrence: "daily at 02:00"
    source:
      resource: ticket
    action: update
    skipIf: "processed == true"
    input:
      processed: "true"
    enabled: false

The schedule uses the inspected parser’s source.resource shape. The converted ADL 36 example instead shows a direct resource key; this source discrepancy is recorded in the revision record. The fixture is illustrative and does not silently amend schedule grammar. input.processed is the AEL expression string "true", and enabled: false means this file does not request automatic runs. ADL 36 owns schedule recurrence, selection, enabling, and run records.

The following diagram summarizes the inspected successful dispatch paths. It is a source-based trace, not a capture from a live deployment:

flowchart LR
    H[HTTP client request] --> M[Middleware]
    L[Nested Lua call with outer identity] --> M
    M --> R[Router metadata checks]
    S[Scheduler: system actor and admin role] --> R
    R --> A[Resource permission and write checks]
    A --> E[Lifecycle event publication]
    E --> C[Matching subscriber callbacks]

For a client create, the route resolves to the registered create action. A client with an editor role can satisfy this example’s create role list; a caller lacking either listed role cannot satisfy it. Validation and other applicable checks can still reject the write. On the inspected baseline path, the action is adl.platformexample.ticket.create and its CRUD publication is adl.platformexample.ticket.created.

If markProcessed is later enabled and selects an unprocessed record, the inspected scheduler constructs adl.platformexample.ticket.update. It sets actor system, username scheduler:markProcessed, and the admin role. The update handler still checks resource permissions; admin is explicitly included in this example. It evaluates the normal update path, and a successful write can publish adl.platformexample.ticket.updated. A failed action response is converted into the schedule’s execution error; there is no waiting HTTP client.

Trace propertyClient createScheduled update
AttributionClient user contextsystem, scheduler-specific username
MiddlewareEnteredSkipped by the scheduler transport
Handler permissionsEvaluated with client roles/contextEvaluated with supplied trusted roles/context
Failure surfaceAction response returned to client transportFailed action recorded through scheduler execution handling
Baseline CRUD channeladl.platformexample.ticket.createdadl.platformexample.ticket.updated
Cut -c action targetadl.riverbend.platformexample_v1.ticket.createadl.riverbend.platformexample_v1.ticket.update

The final row illustrates Delta §13.1 at an assumed site riverbend; it is not the identifier used by the inspected baseline generator. The event migration requires the clarification identified in §3.3.

Both validators accepted the complete input, and adl-ref’s model summary reported one resource with three fields. Those checks do not prove that a timer fired, that the schedule selected a record, or that these writes and events occurred. No live domain was submitted for this chapter.

3.8 Evidence and applicability

The chapter’s verification record identifies the exact input, source checkout, binaries, commands, and limits. Execution covered the production validator, adl-ref check and model, and four existing test executables: action router, middleware chain, message bus, and reentrant dispatch. All 31 selected tests passed. Their assertions were inspected so the recorded claims do not extend beyond what those tests check.

A 2026-09-08 recheck again passed the example checks and all 31 tests using the available binaries. Its separate execution record preserves the original evidence date and the source context of the identity table; it does not establish new cut -c behavior.

The identity table, CRUD channel spellings, scheduler error handling, and exception-boundary findings are based on source inspection. They were not established by live HTTP, scheduler, workflow, seeder, or management tests. The 31 tests are selected platform evidence, not an ADL Host conformance assessment.

The cut -a handoff reports the earlier release and its remaining limitations. The current checked binaries are identified by hashes, not asserted to be that release tag. Site-qualified actions, management renaming, the compatibility flag, and dual publication remain Phase-17 targets in the reviewed plan; they were not tested as implemented features here.

3.9 Corrections and remaining publication decisions

IssueTreatment in this draft
Actions conflated with event publicationDistinguish dispatch and publication without changing the declared operation’s semantics
Silent collision claimReport the inspected warning and last-registration behavior
All internal paths described as bypassing middlewareRetain the no-reliance obligation; identify each inspected transport path
All internal actors described as __system__Propose explicit actor, roles, and enforcement-path distinctions; disclose implementation-informed correction
Case normalization differs between old prose, generators, and subscribersRecord the conflict; final namespace normalization requires reconciliation
Delta action migration lacks explicit coverage of every event familyPropose a shared qualified base; retain the required publication transition without inventing alias or deduplication semantics
Exception isolation stated more broadly than direct-path catchesRetain inherited requirements and report the unverified or narrower implementation boundary
Schedule example disagrees on resource placementLabel the checked fixture’s implementation-derived spelling and leave the grammar decision with ADL 36

The revision record gives the historical section correspondence and source provenance for these changes. This chapter is a written reference draft with checked baseline evidence. The listed publication decisions and cut -c execution evidence remain explicit work for their owners.