ADL 0.6.0 Reference · Appendix B

Appendix B — Migration procedures

Migration has two outputs: the application that now runs and evidence that its intended behavior survived. A successful parse is one part of that evidence.

  1. Identify the source contract. Record the old adl, domain/suite versions, active schema, plugins, and deployment settings. A document recovered from the archive retains its historical assumptions until reviewed.
  2. Separate language and application changes. Choose the lowest admitted language version needed by the grammar, and choose the application version according to ADL 6 and 17. A 0.6 declaration does not justify an unrelated schema rewrite.
  3. Resolve syntax differences. Use current root placement, addresses, references, state-machine layout, and version gates. Treat warnings and unknown-key findings as information to examine; do not assume an ignored key has an effect.
  4. Validate a complete model. Run strict domain validation, the independent reference checker within its coverage, and Journey compilation. Keep positive controls and deliberately rejected neighbors.
  5. Review the schema transition. Follow ADL 17 and the detailed migration manual. Check data-preservation and destructive-change behavior on a disposable copy before activation.
  6. Test the operation boundary. Exercise the intended role, a denied role, the relevant state, protected fields, and actual stored values. Record the store, plugins, mode, and source/binary identities.
  7. Update clients and task projections. Recompile Journeys, compare artifacts, and test live refusal handling. A button that was once offered can become unavailable after a state or authority change.

Adding policies

Install a supervising extension and explicitly select its mode. observe or warn does not enforce the same refusal behavior as enforce or strict. Configure trusted claims at the server boundary; placing a claimed qualification in a request body does not establish it.

Test every affected operation class. A successful get does not establish list-count correctness, import behavior, custom-operation coverage, or internal-caller behavior. Use the operation table and the owning chapter to choose the cases.

Adding integrity

Existing history rows do not become historical proof when chaining is enabled. The current implementation leaves earlier rows unchained. Decide how the transition will be explained to operators, and record the first chained range.

Review retention and erasure together. Positive day-based retention conflicts with immutable/chained history in this profile. Retaining history during erasure may preserve captured personal values. External checkpointing is a separate operational responsibility; the local verifier does not detect every possible database rewrite.

Adding Journeys

Model the real caller, preconditions, and field authority. Use reference inputs for records and explicit states for queues where appropriate. Repair missing ownership mechanisms instead of declaring actor: owner. Keep task feasibility separate from claim-dependent policies and live guards.

Do not rewrite historical evidence dates during migration. Retain the old result and add the new one, so a later reviewer can tell which behavior changed and which checks were repeated.