Built in n8n / Documented implementation2026 · Portfolio engineering
FlowGuardFailures you can explain. Recovery you can control.
A real n8n Error Trigger connected to the three portfolio workflows, plus synthetic controls for incident lifecycle demonstrations. It classifies failures, deduplicates events, correlates incidents and applies explicit operator gates before controlled recovery probes.
Actual n8n editor capture · isolated workflow copy Select the canvas to view it at full resolution.
46functional nodes
129documented assertions
42published test requests / runs
€0external API spend in this demo
The operational problem
Less repetition. More accountability.
A failed execution is only the beginning of an incident. Repeated alerts hide the signal, retries can repeat business actions, and a green execution status does not prove that the incident was safely stored.
My contribution
Workflow architecture, node implementation, deterministic rules, review and recovery paths, test scenarios and operating documentation.
n8n Error TriggerJavaScriptEvent identityIncident correlationWait nodesLocal alert records
Inside the implementation
The actual workflow. Every branch has a reason.
Real n8n editor screenshots of isolated, inactive copies of the documented workflows. Credentials, live state and private execution data were not imported.
MiladFlowGuard04Source: October 2026 workflow export · No live executions altered
Step by step
From input to a reviewable result.
This is the implemented flow—not a proposed diagram. The exact branch depends on the selected synthetic scenario.
01
Separate trusted inputs
Native n8n failures use a dedicated adapter. Synthetic webhook controls cannot claim a native-error origin.
Error Trigger / control validation
02
Sanitize and classify
Keep essential source identifiers; redact known sensitive patterns and classify timeout, rate limit, invalid JSON, auth and unknown failures.
Metadata / taxonomy
03
Deduplicate events
A repeated event ID returns its receipt without inflating incident counts. Native execution IDs anchor identity where available.
Event deduplication
04
Correlate the incident
Group related failures by source and class. New events after closure reopen a new generation; conflicting keys are rejected.
Incident lifecycle
05
Control alert noise
Write one local alert per generation and severity. Three retained occurrences open the demo circuit and raise priority.
Alert / circuit policy
06
Gate recovery explicitly
Require acknowledgement, synthetic origin, eligible class, repair where necessary and remaining attempts. Native failures are never replayed.
Operator and origin gates
07
Probe, close or escalate
Controlled probes wait two seconds, with a maximum of two attempts. Summaries distinguish resolved from manually closed incidents.
Wait / probe / handoff
Explore the decisions
What happens when things change?
Choose a documented scenario and inspect its expected result. This is an interactive guide to the runbook; it does not execute n8n or re-run the original tests.
Documented scenario 1 / 6
Repeated event
Expected / recorded result
No extra incident or repeated alert
What still needs production validation?
The native Error Trigger and waits are real; operators, alerts and recovery probes are local demonstrations. No external notification is sent and no business workflow is replayed. Crucially, three overlapping captures completed but retained only one incident. This version is not a production on-call system.
Browse the shared stages. This is a reference guide, not the execution trace of the selected scenario.
1 / 7
Step 1
Separate trusted inputs
Native n8n failures use a dedicated adapter. Synthetic webhook controls cannot claim a native-error origin.
Error Trigger / control validation
Design decisions
Not just the happy path.
01 / Explainability
Rules you can inspect.
The current implementation uses JavaScript rules and known fixtures. It does not hide a model call behind an “AI” label or present rule scores as calibrated confidence.
02 / Controlled side effects
Permission has a boundary.
Real source failures are never automatically replayed. Recovery probes apply only to controlled synthetic incidents.
03 / Recoverability
Stop after a known budget.
Real Wait nodes make the retry timing visible. Recovery attempts are bounded; exhausted cases remain available for inspection instead of looping forever.
Verification
Evidence over big promises.
The supplied runbook records 129 assertions across 42 published test requests / executions. These are engineering checks from the documented release, not customer outcomes or a fresh production load test.
Read the boundary as carefully as the passing paths.
ScenarioExpected / documented result
Repeated eventNo extra incident or repeated alert
New correlated eventIncident updated without an alert storm
Unacknowledged / auth / nativeRecovery blocked
Repair then retryControlled probe after the required gate
Two-attempt recoveryAt least four seconds of real waits
Three concurrent native capturesKnown failure: only one incident persisted
Estimated impact
Make the assumptions visible.
No time-saving study or client cost data has been supplied. This calculator is an illustrative planning scenario. Change the assumptions to see the arithmetic; it is not a performance claim.
Under these assumptions
3.5net hours / month potentially freed
Illustrative allocation for this workflowHosting budget not supplied
Share of hosting
Not calculated
Optional service usage
€0.00 / month
Production cost drivers Incident volume, log retention, durable storage and notification delivery would affect monitoring costs. No production usage or supplier bill has been supplied.
Net time = volume × (manual − review) ÷ 60 − maintenance hours Workflow allocation = shared hosting ÷ workflows + volume × service cost
Enter one shared monthly hosting budget, then divide it across the workflows using that budget. Four is an editable allocation assumption for this portfolio. Equal shares are a budgeting method, not measured server usage. Each page is an independent scenario; the full server bill should not be counted again for every workflow. These demonstrations make no paid external API calls. One-time setup, labour, backups and other fees are excluded.
The production roadmap
Built to demonstrate. A clear path to harden.
The working portfolio implementation is the starting point. These are proposed next steps, not features already delivered.
Phase 1
Replace snapshots with durable event inserts and unique event keys.
Phase 2
Use transactional incident updates or a serialized consumer.
Phase 3
Test overlapping ingestion, restart recovery and safe record retention.
Phase 4
Add authenticated operators and authorized external notification adapters.
What this project taught me
A workflow can finish successfully and still lose state. Persistence needs its own evidence.