Repository navigation
Description
Problem
The backlog view (packages/vscode/src/views/backlog.ts) is a flat list of every open GitHub issue. At any non-trivial repo size, scanning the list mixes work across every product surface — auth, mobile, vscode, tower — with no axis that mirrors how engineers actually coordinate work.
The earlier framing of this issue grouped by Type (feature / bug / refactor). That axis fails the coordination test: "two features" doesn't tell you anything about overlap risk; "two issues both in auth" does. Type stays useful as a per-row chip (rendering, per #816) but is not the right grouping axis.
Why area (not type)
Engineers need to spot overlapping work that shouldn't be developed in parallel. The axis that answers that is which part of the product — not what kind of work. Two area/auth issues conflict regardless of whether they're labelled bug or feature. Two feature issues in different areas don't conflict at all.
The area/* label namespace makes the grouping axis identical across both backlog and builders (#818), so engineers learn one mental model.
Why area/ (slash), not area: (colon)
Established industry convention: Kubernetes, HashiCorp Terraform, and many CNCF projects use area/* (slash) for this exact purpose. Codev follows the convention for external standards alignment. The mixed-separator state (type:, priority:, area/) is the explicit trade-off — external alignment matters more for the namespace most likely to cross-pollinate with other projects.
Current state
BacklogItem.labelsalready flows through the wire (per existingparseLabelDefaultsconsumption). The raw labels are accessible client-side.parseLabelDefaultshandlestype:*andpriority:*namespaces only — noarea/*handling today.- A new sibling helper
parseAreaLabels(labels)is needed; tracked in a separate small helper issue (see Related). - Backlog renders as a flat list today — no grouping headers.
Proposed behavior
1. Group by area
Backlog view becomes two-level:
Codev: Backlog
▾ vscode (20)
#787 PR sidebar sort [type:feature]
#807 Reader View [type:feature]
...
▾ terminal (6)
#788 Stop dev server identity [type:feature]
#796 Dev server stale state [bug]
...
▾ porch (4)
#776 porch verify-wedge [bug]
#817 Project Status outbound [type:feature]
...
▸ cross-cutting (N) — issues tagged area/cross-cutting
▸ Uncategorized (N) — issues with no area/* label
- Group header:
<area> (<count>). - Per-row chips show the issue's other labels (type, priority, etc.) via vscode: render GitHub labels as colored chips on backlog and builder rows (rendering, not grouping) #816 — keeps Type visible without making it the grouping axis.
- Expand state per group persists via
workspaceState.
2. Resolution rule for multi-area issues
parseAreaLabels(labels) returns ALL area/* values. The grouping rule:
- If
area/cross-cuttingis in the list → place under cross-cutting group exclusively (this is the "I touch many things" explicit opt-in). - Else if any
area/*label → place under the first alphabetical specific area. - Else → Uncategorized.
The area/cross-cutting convention is the explicit answer for issues that genuinely span areas. Tag it area/cross-cutting only (don't list every individual area); the dedicated group surfaces them for coordination review.
3. Group ordering
cross-cuttinggroup first (highest-coordination-risk surfaced at top).- Then alphabetical by area name.
Uncategorizedalways last.
4. Within-group ordering
Preserve existing backlog sort (priority desc, then createdAt desc). The Mine/All toggle from #809 still applies — orthogonal axis (whose items, not which area).
5. Reactive
Refreshes via the existing OverviewCache SSE tick. When an issue's labels change on GitHub, the next overview tick re-groups it.
6. No toggle
This is the default rendering. Repos that haven't applied area/* labels see everything under Uncategorized (functionally identical to today's flat list). No-cost migration.
Acceptance criteria
- Backlog tree renders area group headers with
<area> (<count>). -
area/cross-cuttingissues land in their own top group. - Issues without
area/*land inUncategorized(last). - Groups sort: cross-cutting first, then alphabetical, Uncategorized last.
- Within-group ordering preserves existing backlog sort.
- Mine/All toggle (vscode: backlog view — toggle between 'mine only' (default) and 'all' #809) operates as a per-group filter.
- No new GraphQL fetches needed (uses existing label data).
Out of scope
- Reading GitHub Issue Types (intentionally — labels are universal; see prior decision).
- Grouping by Type (intentionally — Type stays as a per-row chip via vscode: render GitHub labels as colored chips on backlog and builder rows (rendering, not grouping) #816, not the grouping axis).
- Custom user-defined groupings.
Related
- vscode: render GitHub labels as colored chips on backlog and builder rows (rendering, not grouping) #816 — labels as row chips (rendering); shows Type / Priority / other labels on each row.
- vscode: group builders in the tree by area (area/* label namespace, identical to backlog) #818 — builders tree groups by the same
area/*axis, identical resolution rule. - Parser helper issue (to be filed) —
parseAreaLabels(labels)andBacklogItem.areas/BuilderOverview.areaswire fields.
Activity
[-]vscode: group builders in the tree by GitHub label (single primary label, with namespace precedence)[/-][+]vscode: group backlog by GitHub Issue Type[/+][-]vscode: group backlog by GitHub Issue Type[/-][+]vscode: group backlog by type (label-derived classification, no Issue Type dependency)[/+][-]vscode: group backlog by type (label-derived classification, no Issue Type dependency)[/-][+]vscode: group backlog by area (area/* label namespace, predictable across views)[/+]amrmelsayed commentedon May 27, 2026
On it! Working on this with the PIR protocol (plan + dev-approval gates before PR).
[PIR #811] Plan draft
[PIR #811] Group backlog tree by area/* label
[PIR #811] Thread: log implement-phase progress
[PIR #811] Replace hardcoded cross-cutting with codev.backlog.priorit…
[PIR #811] Plan + thread: revise to user-configurable priority areas
[PIR #811] Flatten single-Uncategorized backlog to row list (no header)
[PIR #811] Review + retrospective
[PIR #811] Address Claude COMMENT: drop void prefix on fire-and-forge…
[PIR #811] Thread: log review-phase consult verdicts and pr gate
[PIR #811] Drop codev.backlog.priorityAreas mechanism per architect r…
[PIR #811] Address Codex REQUEST_CHANGES: fill TBD/<sha> placeholders…
[PIR #811] Thread: log iter-2 consult verdicts and Codex disposition
Merge pull request #886 from cluesmith/builder/pir-811
docs(vscode-changelog): add #811 backlog area-grouping under [Unrelea…