# Railgate fault recovery replay

Source: https://andrewriefenstahl.com/work/railgate/

One worker goes down mid-job; a second takes over from the checkpoint and
finishes it. Railgate is a governed HTTP and MCP gateway with a durable agent
runtime, open source at https://github.com/riefer02/railgate.

The page is an interactive replay of recorded events from a local test stack.
This file describes what the replay shows. For the reasoning behind the design
and what would need testing before production use, read the case study:
https://andrewriefenstahl.com/posts/2026-12-05-railgate-worker-recovery/

## What the replay demonstrates

- A worker is killed mid-job. Its job lease expires, and a second replica claims
  the job from the last saved checkpoint and completes it.
- A connector call returns HTTP 503. The runtime retries with backoff and the
  call recovers.
- A connector action is held for approval before it executes, and resumes only
  after the approval is recorded against that specific action.

## Source and test setup

This is a local test stack, not a production deployment: a short job lease, two
runtime replicas, and the repository's fault-injecting test upstream. The case
study covers what the run shows and what would be tested before relying on it in
production.

- Source: https://github.com/riefer02/railgate
- Chaos test instructions: https://github.com/riefer02/railgate/blob/main/docs/chaos.md
- Raw replay data: https://andrewriefenstahl.com/work/railgate/replay.json
- How Railgate audits and traces work: https://andrewriefenstahl.com/posts/2026-12-05-railgate-worker-recovery/#how-i-know-what-actually-ran

## Related

- Applied AI agent and MCP integration consulting: https://riefproductions.com/services/ai-agent-integration/
