# ADR : Evolve compatibly Status: proposed — template; decision and owner acceptance are not recorded. Date / source revision / owner / supersedes: ## Context and decision trigger Identify producer, application adapter, n8n workflow/node versions, consumers and replayed/stored messages. Name the concrete incompatible change (field shape/type/meaning, auth, response timing, event ordering, endpoint or node behavior). A purely internal refactor with no consequential contract change may not need an ADR. ## Alternatives and tradeoffs Compare additive compatible fields, an explicit contract version, separate endpoint/event type, a translation adapter and a coordinated breaking deployment. State whether consumers tolerate unknown fields and how missing/default values affect business meaning. Pin actual n8n/node schema evidence rather than inventing a portable workflow format. ## Decision to complete Record source-of-truth schema/examples, compatibility policy, version negotiation/dispatch, validation location, event and correlation IDs, defaults/nullability, producer/consumer deployment order, deprecation owner/window, data retention and replay support. Record environment-specific credential/sub-workflow/URL mappings separately. A same-name workflow with different semantics is not automatically compatible. ## Validation and acceptance Test old producer/new consumer and new producer/old consumer for supported combinations; reject unsupported versions clearly. Test missing/extra/type-invalid fields, duplicate/replayed old payloads, and response/timeout changes. Use actual node/provider versions for import/runtime evidence. JSON parsing alone does not validate expression semantics or credentials. Capture exact fixtures, versions, commands and gaps. ## Consequences, rollout and rollback Describe maintenance overhead and the supported compatibility matrix. Plan mixed-version rollout, monitoring and deprecation. Rollback must restore compatible mappings/adapters and preserve the ability to process pending old/new messages or explicitly quarantine/reconcile them. Do not silently drop events that no longer match the new shape.