DEC-AIC-0053: Separate workstreams into their own category in the vault graph
Accepted
Status: accepted · 2026-11-21
Context
DEC-KI-0062 splits each project into workstreams under 1.Projects/<Project>/Workstreams/, either as a single note (Workstreams/<Name>.md) or a folder of notes (Workstreams/<Name>/...).
In the vault graph view (libs/vault/adapter-view/assets/vault-view.js), every node's colour, filter chip, layout anchor and overview bar segment was derived solely from its top-level ParaBucket (inbox, projects, areas, resources, archive, none). Because workstreams live inside 1.Projects/, all workstream notes were displayed, coloured and counted as Projects (observed: live vault graph at http://127.0.0.1:4747/graph.json @ 2026-11-21 showed 32 nodes under Projects, of which 26 were under Workstreams/ and 6 were project notes).
Decision
- Detect workstream paths in the vault domain.
isWorkstreamPath(relPath)inlibs/vault/domainreturnstruefor any note under1.Projects/<Project>/Workstreams/or4.Archive/<Project>/Workstreams/.ParaBucketandclassify()remain the five top-level PARA folders unchanged. - Expose
workstream: booleanon everyVaultViewGraphnode.writeViewGraphinlibs/vault/applicationsetsworkstream: isWorkstreamPath(n.id)while keepingbucketas the node'sParaBucket | null. - Display active workstreams in their own
Workstreamscategory in the vault graph view.BUCKETSinvault-view.jsadds['workstreams', 'Workstreams']directly afterProjects, with dedicated--workstreamsCSS colour tokens for dark and light themes invault-view.html.bucketOf(n)maps nodes wheren.workstream && n.bucket === 'projects'to'workstreams'. Archived workstreams (n.bucket === 'archive') remain in'archive'so toggling Archive continues to hide or show all archived notes together.- The note detail panel shows the eyebrow
Workstreamfor non-concept, non-raw workstream notes.
Consequences
- Project notes and active workstream notes are visually distinct, clustered separately, counted separately in the overview bar, and independently filterable in the vault graph.
ParaBucketsemantics inlibs/vault/domainandgraph.jsonstay backwards-compatible for all filing, archiving and planning use cases.- Archived workstreams do not leak into the active graph when the
Archivefilter is off. docs/guide/vault-view.mddocuments theWorkstreamsgraph category.
Alternatives Considered
- Add
workstreamstoParaBucketinlibs/vault/domain. Rejected:ParaBucketmodels the five top-level PARA folders (0.Inboxthrough4.Archive) used by filing, archiving andinit_vault; a workstream is a subfolder inside a project, not a sixth PARA root. - Classify workstreams in the browser by parsing node path strings. Rejected: path conventions (
WORKSTREAMS_FOLDER) belong inlibs/vault/domain, not duplicated in view assets (DEC-AIC-0052). - Show workstreams under the
Kindsfilter instead of thePARAcategory list. Rejected: workstreams were being misattributed toProjectsin the category list, colour scheme and overview bar; giving them a category besideProjectsdirectly separates them from project notes.