---
title: "Discussion on \"The Workflow Problem That Made Me Stop Trusting Glue Code\" | Hashnode"
description: "Discussion on \"The Workflow Problem That Made Me Stop Trusting Glue Code\". A webhook handler charged a card twice in one minute. How hidden workflow state, side effects, and informal runtime contracts pushed me toward Gust."
url: "https://hashnode.com/posts/the-workflow-problem-that-made-me-stop-trusting-glue-code/69fbd94f50ecad45338ee764"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Workflow Problem That Made Me Stop Trusting Glue Code](https://blog.narcolepticfox.com/the-workflow-problem-that-made-me-stop-trusting-glue-code?utm_source=hashnode&utm_medium=feed)

A webhook handler charged a card twice in one minute. How hidden workflow state, side effects, and informal runtime contracts pushed me toward Gust.

May 7 · 6 min read · blog.narcolepticfox.com  
Updated Oct 18  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#go](https://hashnode.com/tag/go)
-   [#architecture](https://hashnode.com/tag/architecture)
-   [#workflow](https://hashnode.com/tag/workflow)

## Written by

[Brock Claussen](https://hashnode.com/@claus)

@claus · Florida, US

  
[View profile](https://hashnode.com/@claus)

Founder of Narcoleptic Fox. Marine veteran. Senior engineer learning AI/ML and writing about it. Building Mousing.ai, Reqforay,.ai, and foxstash.

## Responses 2

Markdown supported · ⌘↵ to post

[EgeTheCEO](https://hashnode.com/@egecelik)

[Jul 14](https://hashnode.com/posts/the-workflow-problem-that-made-me-stop-trusting-glue-code/69fbd94f50ecad45338ee764/comment/6a56aad67d9abc1d26c2095e)

The double-charge example is the boundary that changes the conversation from “glue” to a real workflow system. My rule is that every side effect needs a business idempotency key owned by the caller—not just the provider’s request ID—and a durable record of intent before execution.

For CRM/voice workflows we use an outbox-style command record with: workflow ID, target system, normalized operation, idempotency key, attempt, and evidence pointer. The worker can retry indefinitely, but the target write is either naturally idempotent or guarded by that key. Compensation is explicit; it is never hidden in a catch block.

We learned this while building Atlantic after seeing retries create duplicate contact activity. Making the workflow state visible also gave operators a safe “replay from here” control instead of rerunning the whole chain.

I’m Ege, co-founder of Atlantic, sharing our production pattern. Your point about success and retry paths being authored months apart is exactly why the invariant has to live in shared workflow infrastructure.

[Brock Claussen](https://hashnode.com/@claus)

[Oct 3](https://hashnode.com/posts/the-workflow-problem-that-made-me-stop-trusting-glue-code/69fbd94f50ecad45338ee764/comment/6a56aad67d9abc1d26c2095e#reply-6ac13b0eb8814cf02d22b090)

Sorry for the slow reply, Ege, I missed this one. "Compensation is never hidden in a catch block" is a better one-liner than anything in the post. Caller-owned keys plus a durable record of intent is the right pair: the provider's request ID only protects you from the provider, not from your own retry path.

That boundary is what my next post is about: separating replay-safe effects from committed actions so the runtime knows which is which without inferring it from a function name. [effects actions and why workflow runtimes need side effect boundaries](https://foxhole.hashnode.dev/effects-actions-and-why-workflow-runtimes-need-side-effect-boundaries)
