1BUSINESS OWNER
Domain Event
TP2A Business Service
Writes outbox event with business transaction.
Control: Owning service + PostgreSQL transaction.
TP2A Prototype B
n8n is an orchestration layer, not the owner of business state. Events arrive through the controlled event bridge; n8n can only request allowlisted actions through TP2A APIs.
TP2A Business Service
Writes outbox event with business transaction.
Outbox Worker
Publishes durable at-least-once event transport.
TP2A Integration Worker
Consumes stream and forwards an idempotent event envelope to n8n.
Automation Layer
Maps known events to allowlisted automation requests.
TP2A Application
Authenticates automation key, identity and event/action mapping.
TP2A Workflow
Persists requested work for governed downstream execution.
payment.mismatch_detected ↓ Redis Stream ↓ Event Bridge + consumer checkpoint ↓ n8n webhook ↓ START_RECONCILIATION_AGENT request ↓ TP2A Automation API ↓ Persisted automation request ↓ M8 governed AI runtime execution