Back to dashboardMeaningful ADRs for reliability and integrations

Meaningful ADRs for reliability and integrations

Handbook · Architecture skill · n8n integration

Write an ADR when an actual requirement requires a consequential choice. Do not create a stack of accepted decisions from a template or add every design pattern to a small workflow. Start from the existing project ADRs; a proposed template is not owner acceptance.

DecisionUse whenWhat a useful ADR must settle
IdempotencyRetries/replay can repeat a state-changing effectBusiness key/tenant scope, atomic claim/effect boundary, payload mismatch, in-progress handling, retention, ambiguous external success and recovery
Concurrency/racesDifferent writers/events can violate a shared invariantInvariant owner, conditional update/version/isolation/lock choice, all participating writers, conflict behavior and deterministic interleaving tests
Delivery/recoveryCommit, publication and acknowledgment can fail separatelyLoss/duplication contract, outbox/broker/synchronous alternatives, retry ownership/limits, quarantine/replay and rollback/compensation
Contract evolutionExisting consumers or retained messages can breakSchema/version policy, mixed producer/consumer compatibility, node version evidence, deployment order, replay and rollback
Trust boundariesIngress, automation and downstream services cross identities/data scopesAuthentication/tenant authorization, credentials, data retention/redaction, egress, editing/publishing rights and revocation

These full templates contain context, alternatives/tradeoffs, specific unresolved choices, failure tests and rollout/rollback implications. They work beyond n8n. Use architecture-design to resolve a project choice, and n8n-workflow-integration to apply relevant decisions while adding automation. Every skill links the relevant templates directly; read only the selected ones.

Example: two different failures

A booking event is delivered twice: idempotency defines how the repeated event avoids repeating the protected confirmation effect. Two different booking events compete for the last available slot: concurrency control must preserve the capacity invariant even though their idempotency keys differ. A single “check whether processed” node does not by itself prove either invariant across workers.

If a downstream service completes an action and the response is lost, retrying may repeat the action. Record the provider's idempotency/reconciliation contract and the remaining uncertainty; a database transaction cannot automatically make an unrelated remote call atomic. An outbox may help preserve committed pending delivery, but its consumers still need appropriate duplicate handling. See the decision criteria for primary sources and limits.

How to use

text
/architecture-design Decide idempotency and concurrency handling for booking events. Compare options against our actual provider and all writers; keep ADRs proposed until accepted.
/n8n-workflow-integration Add confirmation automation to the existing booking API. Reuse accepted ADRs and propose only missing idempotency, race and recovery decisions.

Copy applicable proposed templates into the existing project ADR directory with unique IDs. Fill them from inspected requirements, authoritative/provider evidence and actual tests; never prefill a fake passing result. Record accepted status only with actual authorization. Significant changes go through iteration-review. Missing live dependency evidence remains UNVERIFIED. The root application remains uninitialized by adding these framework templates.