Skip to main content
D2 Group
← Automation insights

D2 Automation Knowledge · Systems design

Design Automation from the Source of Truth, Not from Workflow Nodes

A workflow should coordinate responsibilities that already make sense at the system level. Define the business event, authoritative state, deterministic decisions, protected side effects and recovery evidence first — then decide how n8n should implement them.

Direct answer

What does source-of-truth-first automation mean?

Before drawing workflow nodes, define the business event, the authoritative owner of each important state, the deterministic decisions that control transitions, the side effects that must be duplicate-safe, and the evidence operators need to recover. The workflow then implements those responsibilities instead of defining them accidentally.

System model

Event → source of truth → deterministic rules → side effects → evidence/recovery → orchestration.

This sequence forces business meaning and ownership to exist independently of the tool used to implement the workflow.

01

Name the event

Describe the business event precisely: new lead received, refund confirmed, order paid, document approved — not merely webhook triggered or node executed.

02

Declare state ownership

For every important state, name the authoritative system that wins when replicas, caches or downstream copies disagree.

03

Define deterministic rules

Keep routing thresholds, validation, eligibility, deduplication and state-transition rules explicit and inspectable.

04

Identify side effects

List actions that change the outside world — CRM writes, messages, orders, payments, approvals or inventory updates — and protect repeat-sensitive ones with idempotency.

05

Design evidence

Persist event identity, previous state, attempted transition, error context and downstream acknowledgement so operators can explain what happened.

06

Define recovery

Specify retry, replay, reconciliation, manual correction and escalation paths before failures occur.

07

Implement orchestration

Only after responsibilities are clear should n8n or another workflow engine coordinate the steps, APIs and operators.

Control model

One source of truth does not mean one system owns everything.

Ownership is defined per business state. Multiple systems can participate in one process as long as each important state has a clear authoritative owner and conflicts have an explicit resolution rule.

01

Business event

The event should describe a real business transition so every system can agree on what the workflow is trying to accomplish.

event ID · occurred at · business meaning

02

Authoritative state

Each critical state needs one declared owner when copies disagree. Synchronization does not remove the need for ownership.

owner · current state · version

03

Deterministic decision

Validation, thresholds, routing and state transitions should be reviewable rules rather than accidental behavior hidden inside connector order.

rule · input · decision · reason

04

Protected side effect

Actions that cannot safely happen twice need stable business identity, duplicate protection and an explicit uncertain state when the result is ambiguous.

idempotency key · status · acknowledgement

05

Operational evidence

Operators need to connect the event, previous state, attempted change, failure class and final outcome without reading every workflow node manually.

correlation ID · transition · error · outcome

06

Recovery ownership

Retry, replay, reconciliation and manual correction need a named owner and a safe path that respects the same state and duplicate controls as live processing.

retry · replay · reconcile · escalate

Ownership examples

Declare who wins before copies start to disagree.

Lead identity

CRM

Marketing tools and enrichment systems can add attributes, but the CRM remains authoritative for the canonical lead record.

Order status

Commerce / order platform

Analytics or fulfillment systems may mirror status, but they should not overwrite the order platform based on stale copies.

Payment settlement

Payment / finance system

An internal workflow can request or observe payment state, but settled status should come from the authoritative financial source.

Ticket ownership

Support system

Routing automation can assign or escalate, while the support platform owns the current assignee and ticket state.

Document approval

Document / approval record

AI may extract or summarize content, but approval state needs a durable deterministic owner and reviewer evidence.

Conflict resolution

Synchronization is not a conflict policy.

Replica disagrees with owner

Refresh or reconcile the replica from the authoritative state unless an explicit correction workflow proves the owner is wrong.

Two systems both appear authoritative

Split ownership by field or business transition, or define a reconciliation rule. Ambiguous ownership is an architecture problem, not a sync-frequency problem.

Write result is uncertain

Do not assume failure. Query authoritative state or reconcile by stable business key before repeating a duplicate-sensitive side effect.

AI output conflicts with business state

Treat AI output as an interpretation signal unless the process explicitly grants it authority. Deterministic state and validation remain the control boundary.

Common anti-patterns

The workflow should not become the business model by accident.

Node-first architecture

The workflow shape accidentally decides state ownership, retry behavior and business meaning after implementation has already started.

Last write wins by accident

Whichever integration ran most recently overwrites another system even though no ownership rule was defined.

Workflow execution as business state

A successful run is treated as proof that the authoritative system reached the expected state.

Everything in one database

Centralization is mistaken for ownership even though different business domains still have distinct authoritative systems.

AI as silent authority

Probabilistic classification directly changes irreversible business state without deterministic validation or review boundaries.

Replay without reconciliation

Operators rerun a workflow without checking which side effects already happened, creating duplicates or conflicting state.

Pre-build checklist

Ten questions to answer before opening the workflow editor.

1

Write the triggering business event in one sentence using business language rather than tool language.

2

Define a stable event or business identifier where duplicate handling depends on identity.

3

Name the authoritative owner for every state that could be copied into more than one system.

4

Document what happens when a replica disagrees with its owner.

5

Separate deterministic routing, validation and state transitions from AI-assisted interpretation.

6

Identify every repeat-sensitive side effect and its idempotency strategy.

7

Represent uncertain outcomes explicitly instead of forcing success or failure when evidence is incomplete.

8

Persist enough transition and error context for operators to diagnose without reconstructing the run manually.

9

Define retry, replay, reconciliation, escalation and manual-correction ownership before launch.

10

Verify the final authoritative business state after recovery rather than stopping at workflow success.

FAQ

Source-of-truth-first automation questions

What is a source of truth in automation?

A source of truth is the authoritative system or record that owns a business state when multiple copies disagree. Other systems can cache, project or synchronize that state, but conflict resolution should defer to the declared owner unless a documented reconciliation rule says otherwise.

Why design the source of truth before building an n8n workflow?

Because workflow nodes should implement system responsibilities, not invent them accidentally. Defining the event, authoritative state, deterministic rules, side effects and recovery model first makes duplicate handling, retries, reconciliation and operator ownership much easier to reason about.

Does source-of-truth-first automation mean everything must live in one database?

No. Different domains can have different authoritative owners. A CRM may own lead identity, an order platform may own order status, and a finance system may own settled payment state. The important part is that ownership is explicit for each state.

Can n8n itself be the source of truth?

Usually n8n is better used as an orchestration layer than as the primary owner of durable business truth. Important state should survive workflow restarts, retries, scaling and implementation changes in a durable database or authoritative business system.

How should conflicting data between systems be handled?

Define which source wins for each field or state, identify whether the conflict is expected drift or an exception, preserve enough evidence to explain both values, and apply an explicit reconciliation rule rather than whichever workflow executed last.

Where should AI decisions sit in a source-of-truth-first workflow?

AI can assist with bounded interpretation such as classification or extraction, but authoritative state transitions, validation, duplicate protection and irreversible side effects should remain explicit and deterministic unless the business deliberately accepts probabilistic control.

Architecture before nodes

Need an automation system with explicit state ownership and recovery?

D2 maps events, authoritative state, deterministic controls, side effects and operator recovery before committing the process to workflow implementation.

Discuss the automation architecture

Authorship & accountability

D2 AI & Automation Team

Production automation, APIs, data pipelines and AI-assisted systems

D2 keeps claims, assumptions and evidence separate. Citations are attached only when a relevant source or evidence asset is available; unresolved material is not automatically presented as a verified fact.

Review D2's evidence methodology →