DEC-AIC-0058: Give workstreams their own five-state lifecycle and distinct visuals in the vault graph
Status: draft · 2026-11-25
Context
DEC-KI-0062 defined one status vocabulary (todo | in-progress | blocked | done) shared by projects, workstreams and areas, and DEC-AIC-0053 separated active workstreams into their own Workstreams category in the vault graph. In practice, a workstream moves through a distinct lifecycle: drafting its scope, becoming ready to start, running in progress, finishing its tasks, and finally harvesting its reusable outputs into Intermediate Packets.
Because every active workstream rendered with the same solid teal dot in the vault graph, and harvest_workstream left a harvested workstream in done, the graph could not show at a glance which workstreams were still drafts, ready to start, actively running, waiting to be harvested, or already migrated to Intermediate Packets.
Decision
- Dedicated five-state vocabulary for workstreams in
libs/vault/domain.WORKSTREAM_STATUSESdefinesdraft | ready | in-progress | finished | migratedandWorkstreamStatustypesWorkstream.status.STATUSES(todo | in-progress | blocked | done) remains unchanged for projects and areas.parseWorkstreamStatusmaps legacytodotoreadyand legacydonetofinishedwhen reading existing notes, whileset_frontmatterandcreate_workstreamvalidate workstream notes againstWORKSTREAM_STATUSES(defaulting new workstreams todraft).planningstops generating daily habit checks once a workstream isfinishedormigrated.
- Automatic transition to
migratedwhen harvesting.harvestWorkstreamaccepts workstreams whose resolved status isfinished(including legacydone).- When packets are written with no errors or collisions,
harvestWorkstreamplans a frontmatter update setting the workstream note'sstatustomigrated, whichexecuteHarvestapplies alongside the new Intermediate Packet files.
- Expose
workstreamStatusonVaultViewGraphnodes.writeViewGraphinlibs/vault/applicationsetsworkstreamStatus: WorkstreamStatus | nullfor every workstream node, reading the note's ownstatusfrontmatter and falling back to the folder workstream's main note (workstreamMainNotePath) for nested notes.
- Render each workstream state distinctly in the vault graph view.
vault-view.htmldefines--ws-draft,--ws-ready,--ws-in-progress,--ws-finished, and--ws-migratedtokens for both dark and light themes.vault-view.jsrenders active workstream nodes by state: dashed outline with tinted fill (draft), hollow ring (ready), solid fill (in-progress), solid fill with checkmark (finished), and double ring (migrated).- The sidebar adds a Workstream states filter section with matching marks and counts, and the note detail panel shows the workstream's status badge.
Consequences
- Active workstreams show their lifecycle stage directly in the vault graph and can be filtered by state.
- Harvesting a finished workstream automatically marks it
migrated, keeping the graph and planning overview aligned with Intermediate Packet creation. - Existing vault notes using
status: todoorstatus: doneon workstreams continue to parse cleanly without warnings. docs/guide/vault-view.md,apps/vault-servertool schemas/descriptions, and.agents/skills(vault-planning,organize-projects) are updated to document the five workstream states.
Alternatives Considered
- Reuse
STATUSESfor workstreams and adddraft/migratedto projects and areas too. Rejected: projects and areas do not get harvested into Intermediate Packets, and keeping their vocabulary focused avoids invalid combinations. - Keep
harvest_workstreamread-only on the workstream note and require a separateset_frontmattercall. Rejected: leaving the transition manual causes finished and already-harvested workstreams to drift out of sync in the graph. - Distinguish workstream states by colour alone. Rejected: combining distinct colours with distinct stroke and mark styles (dashed, hollow ring, solid, checkmark, double ring) keeps all five states legible in both themes and without relying on hue alone.