Skip to main content

Crate workyard_core

Crate workyard_core 

Source
Expand description

Workyard’s lifecycle and values. Git, persistence and interfaces remain adapters.

Lifecycle functions coordinate the Git and State ports under task admission. A Task records membership and operation history. Read-only inspection pairs that record with current Git facts before reporting participant health.

Modules§

projects
In-memory references derived from the currently discoverable Git repositories.

Structs§

AmendRequest
Requested changes to an existing task’s membership.
AmendResult
Membership and publication facts available after amendment.
AmendmentChange
A participant and the effect that amendment had on it.
Control
Cancellation is supplied by the host; the domain does not choose its runtime.
CreateRequest
Resolved workspace placement, participants and branch options for task creation.
CreateResult
Task facts and invocation outcome returned by creation.
CreationOptions
Policy shared by initial creation and participant additions.
Decision
Context supplied to a view when an operation needs consent.
GitFacts
Current branch, worktree location and working-copy observations from Git.
Operation
What Workyard attempted and how that attempt settled.
Participant
A repository’s membership, branch choices and linked worktree in a task.
ParticipantInspection
Recorded participant paired with its current observation.
PlacementHint
Last known relationship paths used as starting points for verification.
Problem
Classified failure with diagnostic text and optional recovery guidance.
RecoveryObservation
Facts obtained from Git before resuming a participant.
RecoveryRecord
Task reconstructed from the saved document and independent evidence.
RecoveryResult
The invocation result is separate from preserved task operation history.
Relationship
A participant reconciled with its observed Git registration.
Removal
Evidence retained to continue or undo removal.
RemovalObservation
Git facts used to decide whether unlinking needs consent.
RemovalOptions
Consent and recovery direction for removal.
RemovalParticipant
Facts retained for one participant across removal and undo.
RemovalResult
An invocation outcome does not replace task history when nothing was changed.
RemovalTarget
A selector is bound before any worktree can be renamed or replaced.
Repository
Identity, location and selected remote of a backing Git repository.
RepositoryInput
Repository selection and its per-participant overrides.
Task
Membership, placement and operation history for one task incarnation.
TaskInspection
Snapshot and live participant observations for a task.
TaskSnapshot
Recorded task and evidence available during read-only inspection.
WorktreeLocations
Locations to inspect when Git and recorded placement disagree.

Enums§

AmendRecovery
Inputs needed to resume an interrupted amendment.
AmendmentChangeKind
How an amendment affected a participant.
BranchPlan
Git branch action to use when adding the linked worktree.
DecisionKind
Kind of user consent requested before continuing.
EffectState
Whether managed writers for the recorded effect have stopped.
OperationKind
The operation requested by the caller, distinct from a task’s lifecycle.
OperationOutcome
Settlement of one operation, independent of task health.
Phase
Progress of participant creation, distinct from task lifecycle.
ProblemCode
Machine-readable classification carried by a Workyard problem.
ProblemDetail
Additional facts that a presenter can use without parsing diagnostic prose.
ProjectRemedy
Structured guidance for an ambiguous or conflicting project selection.
RecoveryScope
Authority granted to a recovery invocation.
RemovalDirection
Removal evidence belongs to one task incarnation. Restoration never toggles back.
RemovalPhase
Progress of a participant through unlinking or restoration.
RetainedHistory
Retained branch or commit history disclosed during unlinking.
SourceResolution
Which refs may be used during branch planning.
TaskLifecycle
Whether a task is active or has been retired.
UnlinkFailure
Only a destructive command can leave behind an unconfirmed unlink writer.

Traits§

AmendGit
Git operations required to add, move and reconcile participants.
AmendState
Persistent intent and checkpoints needed for a resumable amendment.
Git
Operations used to validate repository identity, resolve branches and establish worktrees.
ObservationGit
Read-only Git inspection used by status and recovery decisions.
Observer
Receives progress when a task operation reaches a participant step.
RecoveryGit
Git observations and repair operations available during task recovery.
RecoveryState
Access to task records and effect evidence for recovery.
RemovalGit
Inspect, unlink and restore participants while preserving retained history.
RemovalObserver
Receives removal disclosures and requests for consent.
State
Task admission, publication and effect evidence used by lifecycle operations.

Functions§

amend
Apply the requested membership changes to a managed task.
create
Establish the task and its participant worktrees.
inspect
Inspect the selected repository or task without applying changes.
overlaps
Test whether either path contains the other or both denote the same path.
recover
Reconcile the task with recorded evidence and current Git facts.
recover_amend
Resume the recorded amendment using its saved intent.
recover_amend_with_scope
Resume an amendment under the caller’s recovery policy.
recover_removal
Continue removal or restore the task according to stored direction and consent.
recover_with_scope
Run recovery with the caller’s explicit scope.
remove
Inspect and retire the task, retaining its Git branches.
retire
Retire membership without resuming a pending restoration.
safe_component
Check whether a name is safe as one directory component on the current platform.
validate_task
Check that a branch-shaped task name is safe to use beneath the tasks root.