iiRecord
Agentic AI Atlas · GAP-RUN-003: Run Forking and Branching
page:docs-harness-features-backlog-gaps-run-lifecycle-gap-run-003a5c.ai
II.
Page reference

page:docs-harness-features-backlog-gaps-run-lifecycle-gap-run-003

Reading · 1 min

GAP-RUN-003: Run Forking and Branching reference

Fork a run at any point in its journal. Create branch runs that diverge from a common history.

Pagewiki/docs/harness-features-backlog/gaps/run-lifecycle/GAP-RUN-003.mdOutgoing · 0Incoming · 1

GAP-RUN-003: Run Forking and Branching

FieldValue
Categoryrun-lifecycle
PriorityMedium
EffortL
StatusMissing

Description

Fork a run at any point in its journal. Create branch runs that diverge from a common history.

Current State

No forking. Must create new run and replay manually.

Target State

run:fork creates new run from specific journal point. Fork inherits journal history up to fork point. Multiple forks coexist. Fork relationships tracked. Enables exploring alternative orchestration paths.

Dependencies

Key Files

ComponentPath
Journal storagepackages/sdk/src/storage/
Replay enginepackages/sdk/src/runtime/replay/createReplayEngine.ts
State cachepackages/sdk/src/runtime/replay/stateCache.ts

Recommendation

Phase 3 implementation. Add run:fork command. Copy journal up to fork point. Create new run directory with forked history. Track fork relationships in metadata.