/** * GAP-RUN-003: Run Forking and Branching. * * Provides primitives for forking a run at a specific effect point, * creating a new branch of execution from an existing run. */ export interface ForkOptions { /** Source run to fork from. */ sourceRunId: string; /** Effect ID at which to fork, or 'latest' for the current head. */ forkPoint: string | 'latest'; /** Optional label for the forked branch. */ label?: string; } export interface ForkResult { /** ID of the newly forked run. */ forkedRunId: string; /** The resolved fork point (effect ID). */ forkPoint: string; /** Branch label for the fork. */ branchLabel: string; /** ID of the parent run. */ parentRunId: string; } export interface RunForkMetadata { /** Run ID. */ runId: string; /** ISO timestamp when the run was created. */ createdAt: string; /** All effect IDs in order. */ effectIds: string[]; /** Current status. */ status: string; } /** * Validate fork options against the source run and produce fork metadata. * Throws if the fork point does not exist in the source run. */ export declare function prepareFork(sourceRun: RunForkMetadata, options: ForkOptions): ForkResult; /** * Produce a human-readable description of a fork result. */ export declare function describeFork(result: ForkResult): string; //# sourceMappingURL=runForking.d.ts.map