# Meaningful ADRs for reliability and integrations [Handbook](README.md) · [Architecture skill](reference/skills/architecture-design.md) · [n8n integration](reference/skills/n8n-workflow-integration.md) 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. | Decision | Use when | What a useful ADR must settle | |---|---|---| | [Idempotency](../.claude/framework/templates/adr/idempotency.md) | Retries/replay can repeat a state-changing effect | Business key/tenant scope, atomic claim/effect boundary, payload mismatch, in-progress handling, retention, ambiguous external success and recovery | | [Concurrency/races](../.claude/framework/templates/adr/concurrency.md) | Different writers/events can violate a shared invariant | Invariant owner, conditional update/version/isolation/lock choice, all participating writers, conflict behavior and deterministic interleaving tests | | [Delivery/recovery](../.claude/framework/templates/adr/delivery-recovery.md) | Commit, publication and acknowledgment can fail separately | Loss/duplication contract, outbox/broker/synchronous alternatives, retry ownership/limits, quarantine/replay and rollback/compensation | | [Contract evolution](../.claude/framework/templates/adr/contract-evolution.md) | Existing consumers or retained messages can break | Schema/version policy, mixed producer/consumer compatibility, node version evidence, deployment order, replay and rollback | | [Trust boundaries](../.claude/framework/templates/adr/trust-boundaries.md) | Ingress, automation and downstream services cross identities/data scopes | Authentication/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](../.claude/framework/decision-records.md) 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.