Skip to main content

Module task_store

Module task_store 

Source
Expand description

Persistent task storage with JSONL format.

TaskStore provides load/save operations for the .ralph/agent/tasks.jsonl file, with convenience methods for querying and updating tasks.

§Multi-loop Safety

When multiple Ralph loops run concurrently (in worktrees), this store uses file locking to ensure safe concurrent access:

  • Shared locks for reading: Multiple loops can read simultaneously
  • Exclusive locks for writing: Only one loop can write at a time

Use load() and save() for simple single-operation access, or use with_exclusive_lock() for read-modify-write operations that need atomicity.

Structs§

TaskStore
A store for managing tasks with JSONL persistence and file locking.