<?xml version="1.0" encoding="UTF-8"?><oembed><type>video</type><version>1.0</version><html>&lt;iframe src=&quot;https://www.loom.com/embed/679eb54f26de4ab98d895c8f9c7f493b&quot; frameborder=&quot;0&quot; width=&quot;1920&quot; height=&quot;1440&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</html><height>1440</height><width>1920</width><provider_name>Loom</provider_name><provider_url>https://www.loom.com</provider_url><thumbnail_height>1440</thumbnail_height><thumbnail_width>1920</thumbnail_width><thumbnail_url>https://cdn.loom.com/sessions/thumbnails/679eb54f26de4ab98d895c8f9c7f493b-1fc8c1849fc2b522.gif</thumbnail_url><duration>237.805</duration><title>Enterprise Profitability Guardrail (n8n &amp;amp; ClickUp + Postgres State Machine) - 22 February 2026</title><description>A technical walkthrough of a Fault-Tolerant Financial Monitor designed to prevent project budget overruns in real-time.

Architecture Highlights:
Tech Stack: n8n (Self-Hosted Docker), PostgreSQL, ClickUp API, Webhooks.
State Machine Logic: Uses a local database to track atomic state changes, ensuring alerts are only sent during critical status shifts (Idempotency).
Dead Letter Queue (DLQ): A dedicated error-handling branch that logs failed API calls to Postgres for audit and retry, preventing silent data loss.

This system demonstrates how to move beyond simple &quot;Trigger-Action&quot; automations into robust, state-aware engineering.</description></oembed>