Expand description
Workstream domain types (DOC-48 §2).
Why: a workstream needs a canonical, serializable shape so it can survive
daemon restarts (persisted to the flat JSON store, §3) and be returned
over the future RPC/REST surface (#3295) without ambiguity. State is
deliberately NOT a stored field — §2.2/§3.2 require it to be computed
from the store’s active_workstream_id pointer on every read, so an
operator can never desync the persisted state from the pointer that
actually governs it.
What: WorkstreamId (a UUID newtype, mirrors
trusty_mpm::session_manager::ManagedSessionId’s pattern), WorkstreamState
(the computed active | idle | closed enum), and Workstream (the
persisted record: id, name, session_ids, timestamps, metadata — §2.1).
Test: model_tests.
Structs§
- Workstream
- A durable named grouping of sessions, scoped to a single daemon instance (DOC-48 §2.1).
- Workstream
Id - Opaque identifier for a workstream.
Enums§
- Workstream
State - Computed lifecycle state of a
Workstream(DOC-48 §2.2).