Expand description
Loop run state persistence for loop-engineering workflows.
A loop is a long-lived scheduler that invokes the vtcode harness repeatedly.
LoopRunState captures the durable state a loop scheduler reads on resume:
current step index, last artifact path, and status.
State is persisted as JSON under {workspace}/.vtcode/state/loop-{id}.json.
Structs§
- Loop
RunState - Durable state for a single loop run. The loop scheduler reads this on resume to know where execution left off.
Enums§
- Loop
Status - Lifecycle status of a loop run.
Functions§
- delete_
loop_ state - Delete a loop state file from disk.
- list_
loop_ states - List all loop state files in the state directory.
- load_
loop_ state - Load loop run state from disk.
- loop_
state_ path - Resolve the path for a specific loop state file.
- save_
loop_ state - Save loop run state to disk using atomic write (temp file + rename).
- state_
dir - Resolve the
.vtcode/state/directory for a workspace.