Skip to main content

Module goal

Module goal 

Source
Expand description

Canonical durable contract for thread goal snapshots.

Every goal mutation publishes a GoalUpdatedEvent through ThreadEvent::GoalUpdated so timeline consumers (CLI status, desktop goal bar, session archives) replay typed goal state instead of re-parsing rendered output. goal: None signals a cleared goal; Some carries the user-facing surface only — identity, state, objective, and progress counters.

Structs§

GoalSnapshot
User-facing goal snapshot: identity, state, objective, and progress.
GoalUpdatedEvent
Goal mutation payload. goal: None signals a cleared goal.

Enums§

GoalState
Coarse goal lifecycle state for timeline consumers.