# Consequential reliability and integration decisions Use a project ADR only when an actual requirement/risk forces a choice, not because a pattern appears in a menu. Inspect existing decisions first; preserve accepted history by superseding, never silently overwriting. Templates start proposed with an unresolved decision. Copy relevant templates into the application's established ADR location (otherwise docs/project/adr/) and use unique project IDs. These are not accepted product decisions or executed test results. | Trigger / question | Template | Distinct responsibility | |---|---|---| | Can retries/replay repeat a protected effect? | templates/adr/idempotency.md | Define duplicate identity, atomic processing boundary, retention and ambiguous-outcome recovery | | Can different events/writers violate a shared invariant? | templates/adr/concurrency.md | Define cross-writer atomicity, conflict/ordering semantics and deterministic race tests | | Can commit/delivery/acknowledgment fail independently? | templates/adr/delivery-recovery.md | Define loss/duplication contract, retry ownership, pending work, quarantine/replay and compensation | | Can schema/API/node changes break consumers or old messages? | templates/adr/contract-evolution.md | Define compatibility/versioning, mixed rollout and retained-message replay | | Who may trigger, edit or access credentials/data? | templates/adr/trust-boundaries.md | Define authenticated/authorized boundaries, credential scope, data/egress controls and audit | For every applicable decision record actual context/invariant, competing options, chosen mechanism/rationale, cost/failure tradeoffs, evidence, validation and rollout/rollback. Name unresolved choices and required owner decisions. Recommendations are not approvals. Mark a template not applicable with a reason when the concern is absent; do not generate decorative ADRs for each n8n node. Idempotency and concurrency are separate: deduplicating one event does not prevent two distinct events from overselling capacity or losing an update. A process-local lock or global workflow concurrency limit does not cover every application writer. A durable outbox addresses a local commit/publication gap but may deliver duplicates; an external effect can remain ambiguous after response loss. Do not claim exactly-once end-to-end effects from retries, a queue or a graph setting alone. Keep invariants at their authoritative application/data boundary unless an explicit architecture decision changes that ownership. Match transactional/isolation guarantees to the actual provider/version. Bound retries, choose one retry owner per boundary and test crash windows. Rollback/replay must preserve deduplication history and pending work; reverting code or JSON does not retract an irreversible external effect. Sources checked 2026-12-02: [PostgreSQL transaction isolation](https://www.postgresql.org/docs/current/transaction-iso.html), [AWS transactional outbox guidance](https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/transactional-outbox.html), [Stripe idempotent requests](https://docs.stripe.com/api/idempotent_requests), [n8n error handling](https://docs.n8n.io/flow-logic/error-handling/). These illustrate distinct mechanisms, not universal guarantees or a recommendation to install those providers. Verify the actual target versions/contracts before adopting syntax or guarantees.