---
title: "#state-machines articles | Hashnode"
description: "Explore 34 articles tagged #state-machines on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/state-machines"
---

Tag

# #state-machines

34 posts · 2 followers

[Can Burak Sofyalioglu](https://hashnode.com/@webmeister) · [Sep 23](https://hashnode.com/posts/road-to-state-machines-part-i/6ab423709306aef0e3f79d7e)

### [Road to State Machines Part I](https://webmeister.hashnode.dev/road-to-state-machines-part-i?utm_source=hashnode&utm_medium=feed)

Let's begin with a very fundamental question whose answer is not so obvious. How to design software that always takes the correct action? Designing Systems When the Past Determines What Is Allowed Nex

9 min read · [webmeister.hashnode.dev](https://webmeister.hashnode.dev/road-to-state-machines-part-i?utm_source=hashnode&utm_medium=feed)

[BridgeXAPI](https://hashnode.com/@bridgexapi) · [May 28](https://hashnode.com/posts/we-accidentally-built-an-oscillating-policy-engine/6a1817f0badcd8afcb87b2dd)

### [We accidentally built an oscillating policy engine](https://brid.hashnode.dev/we-accidentally-built-an-oscillating-policy-engine?utm_source=hashnode&utm_medium=feed)

How Route 4A inside BXRuntime gradually evolved from monitoring infrastructure into execution policy orchestration.

5 min read · [brid.hashnode.dev](https://brid.hashnode.dev/we-accidentally-built-an-oscillating-policy-engine?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/we-accidentally-built-an-oscillating-policy-engine/6a1817f0badcd8afcb87b2dd)

[Brock Claussen](https://hashnode.com/@claus) · [May 20](https://hashnode.com/posts/states-transitions-effects-what-a-gu-file-actually-buys/6a0df99b8b03460221a194e3)

### [States, Transitions, Effects: What a \`.gu\` File Actually Buys](https://blog.narcolepticfox.com/states-transitions-effects-what-a-gu-file-actually-buys?utm_source=hashnode&utm_medium=feed)

What a .gu workflow contract actually buys: typed states, explicit transitions, generated code, and effect boundaries, walked through concretely.

8 min read · [blog.narcolepticfox.com](https://blog.narcolepticfox.com/states-transitions-effects-what-a-gu-file-actually-buys?utm_source=hashnode&utm_medium=feed)

[Cédric Bahirwe](https://hashnode.com/@cedricbahirwe) · [May 18](https://hashnode.com/posts/using-state-machines-to-model-ussd-flows-in-the-dial-it-ios-app/6a0b33ea4e81b7304870c4f2)

### [Using State Machines to Model USSD Flows in the Dial It iOS App](https://blog.cedricbahirwe.com/using-state-machines-to-model-ussd-flows-in-the-dial-it-ios-app?utm_source=hashnode&utm_medium=feed)

Some mobile flows are not APIs. They are negotiations with the operating system. USSD is one of those flows.

8 min read · [blog.cedricbahirwe.com](https://blog.cedricbahirwe.com/using-state-machines-to-model-ussd-flows-in-the-dial-it-ios-app?utm_source=hashnode&utm_medium=feed)

[Subhanshu Mohan Gupta](https://hashnode.com/@SubhanshuMG) · [Apr 19](https://hashnode.com/posts/stop-building-agents-like-prompts-build-them-like-state-machines/69e4a4eeee84f66e943d98e7)

### [Stop building agents like prompts. Build them like state machines.](https://blogs.subhanshumg.com/stop-building-agents-like-prompts-build-them-like-state-machines?utm_source=hashnode&utm_medium=feed)

Durable execution (Temporal, Restate, Inngest), idempotency keys for tool calls, and human-in-the-loop as an interrupt primitive.

11 min read · [blogs.subhanshumg.com](https://blogs.subhanshumg.com/stop-building-agents-like-prompts-build-them-like-state-machines?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/stop-building-agents-like-prompts-build-them-like-state-machines/69e4a4eeee84f66e943d98e7)

[kingsley ebube onoh](https://hashnode.com/@kingsley-onoh) · [Apr 18](https://hashnode.com/posts/workflow-automation-engine-dynamic-dag-branching/69e391df04dc6f8f83d5070f)

### [Building a DAG Orchestrator That Rewrites Its Own Execution Plan](https://kingsleyonoh.hashnode.dev/workflow-automation-engine-dynamic-dag-branching?utm_source=hashnode&utm_medium=feed)

Step 7 is a condition: if the HTTP response came back 200, continue to step 8 and step 9. If not, skip them and jump to step 10. Five steps…

7 min read · [kingsleyonoh.hashnode.dev](https://kingsleyonoh.hashnode.dev/workflow-automation-engine-dynamic-dag-branching?utm_source=hashnode&utm_medium=feed)

[Abstract Algorithms](https://hashnode.com/@abstractalgorithms) · [Mar 28](https://hashnode.com/posts/from-langchain-to-langgraph-when-agents-need-state-machines/69c7f504257e620abbb4862d)

### [From LangChain to LangGraph: When Agents Need State Machines](https://abstractalgorithms.hashnode.dev/from-langchain-to-langgraph-when-agents-need-state-machines?utm_source=hashnode&utm_medium=feed)

LangChain's AgentExecutor handles simple loops — but stateful branching, long-running tasks, and human-in-the-loop require LangGraph's graph model.

18 min read · [abstractalgorithms.hashnode.dev](https://abstractalgorithms.hashnode.dev/from-langchain-to-langgraph-when-agents-need-state-machines?utm_source=hashnode&utm_medium=feed)

[Stephen Ashmore](https://hashnode.com/@StephenAshmore) · [Jan 13](https://hashnode.com/posts/building-a-sync-status-indicator/69665e00b93705ea014a1dd2)

### [Building a Sync Status Indicator](https://blog.aethas.ai/building-a-sync-status-indicator?utm_source=hashnode&utm_medium=feed)

How we built a sync status indicator with state machines, cross-platform events, and a debounce pattern that prevents UI flicker during rapid file changes.

5 min read · [blog.aethas.ai](https://blog.aethas.ai/building-a-sync-status-indicator?utm_source=hashnode&utm_medium=feed)

[John Costa](https://hashnode.com/@johntcosta) · [Dec 30, 2025](https://hashnode.com/posts/modeling-react-state-as-a-finite-state-machine/6954466417672c9edc5e9a6d)

### [Modeling React State as a Finite State Machine](https://johntcosta.hashnode.dev/modeling-react-state-as-a-finite-state-machine?utm_source=hashnode&utm_medium=feed)

A modern approach using TypeScript discriminated unions and hooks

5 min read · [johntcosta.hashnode.dev](https://johntcosta.hashnode.dev/modeling-react-state-as-a-finite-state-machine?utm_source=hashnode&utm_medium=feed)

[Michael Ivertowski](https://hashnode.com/@mivertowski) · [Sep 3, 2025](https://hashnode.com/posts/event-sourced-state-machines-in-orleans/68b7f4aa5cea4dd74b2af4fe)

### [Event-Sourced State Machines in Orleans](https://mivertowski.hashnode.dev/event-sourced-state-machines-in-orleans?utm_source=hashnode&utm_medium=feed)

The good thing about agentic coding is, you can easily awake dead repos out of experiments back to life. Event sourced grain state machines is such an example. Short version: take a clean Stateless state machine, host it as a grain, and let events be...

4 min read · [mivertowski.hashnode.dev](https://mivertowski.hashnode.dev/event-sourced-state-machines-in-orleans?utm_source=hashnode&utm_medium=feed)
