Skip to main content

Crate workyard_state

Crate workyard_state 

Source
Expand description

Versioned documents and stable OS locks for a single workspace.

Use Reader for observations and Store for admitted changes. Records describe task membership and progress. Separate evidence lets recovery reconcile interrupted writes with the worktrees Git actually created.

Modules§

path
Private lossless path encoding. Plain Unicode paths stay readable.

Structs§

InitOptions
Task placement and project selection policy requested at initialization.
Lock
Locks a stable coordination inode, never a replaceable JSON document.
OperationRecord
Stored operation provenance and settlement.
Reader
Shared read access to an existing workspace and its task records.
Store
Workspace state adapter for admitted task mutations.
TaskGuard
Locks and record paths held for one admitted task.
TaskRecord
Versioned on-disk representation of a task incarnation.

Enums§

LockMode
Access requested on a stable OS lock file.
RootEdit
Requested change to the project’s discovery roots.

Functions§

canonical_future
Resolve existing ancestors so absent destinations still compare through symlinks.
discover_state
Locate the workspace marker for the requested placement.
exists
Check path presence while preserving errors that prevent inspection.
find_state
An explicit workspace selects its own marker. Otherwise the nearest ancestor wins.
initialize_workspace
Create an initialized workspace, or return its configured tasks directory.
initialize_workspace_with_control
Initialize a workspace while observing the caller’s cancellation policy.
initialize_workspace_with_options
Initialize a workspace with explicitly selected task and project policies.
task_filename
Derive a record filename directly from the task name without a directory index.