Two branches, two purposes
Each run creates two Git branches that work in tandem:
The run branch is a regular Git branch that grows one commit per completed node. The metadata branch is an orphan branch (no shared history with your code) that stores structured data using Git’s object database directly — no working tree needed.
Run branch commits
After each node finishes, Fabro stages file changes and creates a commit on the run branch. Files matching[run.checkpoint] exclude_globs patterns (configured in run.toml or settings.toml) are excluded from staging:
The
Fabro-Checkpoint trailer links each run branch commit to its metadata branch commit, so you can navigate from file changes to the full execution state and back.
Fabro disables Git commit and tag signing for checkpoint commits created inside a sandbox. Your personal or repository-level signing settings can stay enabled, but sandbox bookkeeping does not need access to your signing key.
Metadata branch
The metadata branch (fabro/meta/{run_id}) is an orphan branch that stores structured run data using Git’s object storage directly. Fabro writes it from inside the sandbox with Git plumbing commands, without checking out a metadata worktree. It is initialized at run start with:
run.json— Current projection snapshot: run spec, start/status records, current checkpoint, conclusion, sandbox, and other run-level metadatagraph.fabro— Workflow source for the run
run.json— Refreshed projection snapshot with the new current checkpointstages/{rank:03}-{node_id}@{visit}/...— Execution-order-prefixed per-stage trace files (prompts, responses, status, diffs, command output, and tool metadata)
What’s in a checkpoint
Therun.json.checkpoint snapshot captures everything needed to resume a run:
The durable run store also keeps the current checkpoint so
resume, inspect, and API reads do not need to rely on scratch files.
Worktrees
Fabro uses Git worktrees to isolate workflow runs from your working directory. When a local run starts in a Git repository:- Fabro records the current HEAD as the base SHA
- Creates a new branch
fabro/run/{run_id}at that SHA - Adds a worktree at
{run_dir}/worktreeon that branch - Changes into the worktree directory for the duration of the run
If the working directory has uncommitted changes, the worktree starts from committed
HEAD and those uncommitted changes are not included. Fabro logs a warning so you can commit, stash, or run explicitly in place when that is what you want.Resuming a run
Resume an interrupted run from its durable checkpoint:What happens during resume
What happens during resume
- Fabro looks up the run directory by ID prefix
- Validates that a checkpoint exists in durable state and no engine process is already running
- Cleans stale local artifacts from the previous execution
- Resets status to
Submittedand spawns a new engine subprocess with--resume - The engine restores the full context, completed node list, retry counts, and failure signatures from durable state
- If the checkpointed node used
fullfidelity, downgrades the first resumed node tosummary:high(since the original conversation thread no longer exists in memory) - Continues execution from
next_node_id
Resuming an in-flight stage
If the latest checkpoint captured a stage that was still running, resume allocates a new stage execution ID instead of rewriting the original history. For example, a resumedwork@1 stage continues as work@2, and the new record sets resumed_from_stage_id = "work@1". The earlier stage remains immutable.
The number after @ is the stage execution ordinal. It is separate from the graph visit count and from a handler’s retry attempt, so loops, retries, and resume ancestry can be inspected independently.
The checkpoint cycle
Here’s the full sequence that runs after every node completes:- Append checkpoint event — Persist the new checkpoint into durable run state
- Write metadata branch — Serialize the checkpoint and any new artifacts to the metadata branch (shadow commit)
- Commit to run branch — Stage all file changes, commit with structured trailers linking to the shadow commit SHA
- Update durable checkpoint — Persist the
git_commit_shaassociated with the run-branch commit
RunNotice warning event. Resume still uses the durable checkpoint in the run store.
Inspecting run history
Because checkpoints are plain Git commits, you can inspect them with standard Git tools:Rewinding to an earlier checkpoint
If a later stage goes off-track, you can rewind a terminal run to an earlier checkpoint and resume from there instead of restarting the entire workflow. Rewind creates a replacement run at the target checkpoint, archives the source run, and prints the new run ID to resume:succeeded, failed, or dead). If the source is archived, unarchive it first. If archive fails after the replacement run is created, do not retry fabro rewind; archive the source run manually.
See fabro rewind for the full command reference.
Forking a run
If you want to explore an alternate path from a checkpoint without archiving the original run, usefabro fork instead of fabro rewind. Fork creates a new independent run branching from the target checkpoint; the original run stays intact.
fabro rewind --list, fabro fork --list, fabro rewind, and fabro fork are server-backed. Timeline listing reads durable run-store checkpoints; it does not rebuild missing metadata branches.
See fabro fork for the full command reference.
When checkpointing is active
Git checkpointing activates automatically when:- The run uses a Git repository and checkpointing has not been explicitly disabled
- Local runs can create a Git worktree under the run scratch directory
- Docker or Daytona can clone the configured GitHub origin into the sandbox
- The working directory is not a Git repository
- The run uses
--dry-run - The run is explicitly started in place with checkpointing disabled