Stripe's July engineering account starts with a deadlock: correcting shard votes required healthy nodes, while rebuilding nodes required correct votes. Handling one issue at a time could keep selecting individually sensible operations without escaping the dependency.
The replacement represents shard states as graph nodes and valid operations as edges. Simulation prunes transitions that violate quorum or configuration invariants; operation time contributes to path cost. If complete health is unreachable, the planner can choose a partial repair. An abstraction lets the same logic run against in-memory state and durable Temporal workflows.
Stripe reports 30% fewer pages—around 200 annually—and 12 fewer days of unhealthy shard states. These are company observations from a historical case. The planner's assurances extend only as far as the modeled states and rules; layout transformations and blue-green automation were proposed future work.