Skip to content

When a job splits into branches, how do you stop one branch from changing another’s data?Also calledBranch Routing & State Isolation

Module
02/05Module
To read
~9 minTo read

It starts with a failure

Four branches of a document job run at the same time, and the merge step gets results that don’t agree with each other. What do you think causes it?

In the module you make your guess first, then read what happened and why.

  1. 01

    Each branch keeps its own data

  2. 02

    Send unmatched inputs to a holding area

  3. 03

    The merge step checks before it saves

  4. 04

    Branches never share the same data in memory

SpecA plan for keeping branches apart

A spec for your own app, as a text file you download. The module also gives you the prompt to paste into the AI you build with (Lovable, Bolt, Replit, Cursor, Claude Code or Codex), a checklist to check what it built, and recommended skills.

  • Services that keep nothing in memory (stateless services)
  • Keep going when one part fails (fault tolerance)