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§
- Amend
Request - Requested changes to an existing task’s membership.
- Amend
Result - Membership and publication facts available after amendment.
- Amendment
Change - A participant and the effect that amendment had on it.
- Control
- Cancellation is supplied by the host; the domain does not choose its runtime.
- Create
Request - Resolved workspace placement, participants and branch options for task creation.
- Create
Result - Task facts and invocation outcome returned by creation.
- Creation
Options - 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.
- Participant
Inspection - Recorded participant paired with its current observation.
- Placement
Hint - Last known relationship paths used as starting points for verification.
- Problem
- Classified failure with diagnostic text and optional recovery guidance.
- Recovery
Observation - Facts obtained from Git before resuming a participant.
- Recovery
Record - Task reconstructed from the saved document and independent evidence.
- Recovery
Result - 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.
- Removal
Observation - Git facts used to decide whether unlinking needs consent.
- Removal
Options - Consent and recovery direction for removal.
- Removal
Participant - Facts retained for one participant across removal and undo.
- Removal
Result - An invocation outcome does not replace task history when nothing was changed.
- Removal
Target - A selector is bound before any worktree can be renamed or replaced.
- Repository
- Identity, location and selected remote of a backing Git repository.
- Repository
Input - Repository selection and its per-participant overrides.
- Task
- Membership, placement and operation history for one task incarnation.
- Task
Inspection - Snapshot and live participant observations for a task.
- Task
Snapshot - Recorded task and evidence available during read-only inspection.
- Worktree
Locations - Locations to inspect when Git and recorded placement disagree.
Enums§
- Amend
Recovery - Inputs needed to resume an interrupted amendment.
- Amendment
Change Kind - How an amendment affected a participant.
- Branch
Plan - Git branch action to use when adding the linked worktree.
- Decision
Kind - Kind of user consent requested before continuing.
- Effect
State - Whether managed writers for the recorded effect have stopped.
- Operation
Kind - The operation requested by the caller, distinct from a task’s lifecycle.
- Operation
Outcome - Settlement of one operation, independent of task health.
- Phase
- Progress of participant creation, distinct from task lifecycle.
- Problem
Code - Machine-readable classification carried by a Workyard problem.
- Problem
Detail - Additional facts that a presenter can use without parsing diagnostic prose.
- Project
Remedy - Structured guidance for an ambiguous or conflicting project selection.
- Recovery
Scope - Authority granted to a recovery invocation.
- Removal
Direction - Removal evidence belongs to one task incarnation. Restoration never toggles back.
- Removal
Phase - Progress of a participant through unlinking or restoration.
- Retained
History - Retained branch or commit history disclosed during unlinking.
- Source
Resolution - Which refs may be used during branch planning.
- Task
Lifecycle - Whether a task is active or has been retired.
- Unlink
Failure - Only a destructive command can leave behind an unconfirmed unlink writer.
Traits§
- Amend
Git - Git operations required to add, move and reconcile participants.
- Amend
State - Persistent intent and checkpoints needed for a resumable amendment.
- Git
- Operations used to validate repository identity, resolve branches and establish worktrees.
- Observation
Git - Read-only Git inspection used by status and recovery decisions.
- Observer
- Receives progress when a task operation reaches a participant step.
- Recovery
Git - Git observations and repair operations available during task recovery.
- Recovery
State - Access to task records and effect evidence for recovery.
- Removal
Git - Inspect, unlink and restore participants while preserving retained history.
- Removal
Observer - 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.