Repository navigation
Description
Problem
After #819 lands, Codev's label namespaces will use two different separators:
type:bug,type:project,type:spike(colon)priority:high,priority:medium,priority:low(colon)area/auth,area/core,area/cross-cutting(slash) — introduced by core: parseAreaLabels helper + flow areas[] through BacklogItem and BuilderOverview #819
The justification in #819 for area/ is Kubernetes / Terraform / CNCF alignment. The justification for keeping type: / priority: on colon is cited as "web dashboard pathway compatibility" (per a prior decision — exact constraint unverified at the time of #819 planning).
Why slash is the established OSS convention for namespaced labels
The <namespace>/<value> pattern is the de facto standard across the cloud-native ecosystem and beyond, used by dozens of high-traffic open-source projects on GitHub. A non-exhaustive survey:
CNCF projects (graduated and incubating)
- Kubernetes —
kind/bug,priority/important-soon,triage/accepted,sig/api-machinery,lifecycle/active,area/*,do-not-merge/*,needs-rebase - Istio —
area/networking,area/security,kind/bug,kind/enhancement,release-notes/* - Envoy —
area/* - etcd —
area/*,priority/*,type/* - Prometheus —
kind/*,area/* - containerd —
area/*,kind/* - Knative —
area/*,kind/*,priority/* - OpenTelemetry —
area/*,pkg/*,priority/*,release:*(one of the few mixed-separator users — and a cautionary tale, see Tooling section) - Linkerd —
area/*,priority/* - Cilium —
area/*,kind/*,release-note/* - Operator SDK —
area/*,kind/* - Rook —
area/* - Helm —
kind/*
Non-CNCF major users
- HashiCorp (Terraform, Vault, Consul, Nomad, Packer) —
area/*,kind/*,crash,bug,enhancement(mixed prefixed + bare, but namespacing is on slash) - Terraform AWS Provider specifically —
service/*(one of the largest GitHub repos using namespaced labels)
The slash convention isn't arbitrary — it tracks the hierarchical naming used everywhere else in the cloud-native stack: Kubernetes API group/resource paths (apps/v1), URI segments, container image namespaces (library/nginx), Go module paths (github.com/foo/bar). When a reader sees area/core, the namespace-as-hierarchy reading is immediate; area:core reads as a key:value pair, which is also valid but a different mental model.
Tooling that depends on this convention
The slash convention is parseable infrastructure, not just decoration:
- Kubernetes prow (used by k8s, Istio, Knative, and most CNCF projects) —
/area,/kind,/priority,/sigChatOps commands all assume slash-prefixed labels and break on colon. - GitHub label-sync tools (e.g.
kubernetes/test-infra/label_sync) — keyed off slash. - GitHub label dropdowns — render slash-prefixed labels with visual indentation in some clients (extension-dependent, but slash is the assumed grouping char).
- OpenTelemetry's mixed-separator state (mostly slash, but
release:*on colon) has produced repeated issues in their own tooling — a live counter-example of the cost of the mixed posture this issue is asking us to avoid.
Counter-conventions (for honesty)
Not every project follows slash:
- Rust uses single-letter prefixes with dash —
A-collections,C-bug,P-high,T-libs. Internally consistent, but their own thing. - VS Code uses flat labels with no namespace — relies on label-set conventions instead.
- GitLab (their own product, not their issue tracker for OSS) uses
::for scoped labels — yet another separator.
None of these support colon specifically. The two real options in the OSS world are: slash-prefixed (the cloud-native standard) or no-prefix (flat labels). Colon-prefixed (type:bug) is a Codev-specific choice that doesn't track any established convention.
Why this is worth resolving
- The "Kubernetes-specific" framing undersells the precedent. It's the cloud-native ecosystem standard, used by ~all CNCF graduated projects, all HashiCorp products, and the majority of GitHub-hosted infrastructure projects. Half-aligning (slash for
area/, colon fortype:/priority:) is strictly worse than picking one and sticking with it. - Cost is already visible in core: parseAreaLabels helper + flow areas[] through BacklogItem and BuilderOverview #819 — it adds a second nearly-identical parser (
parseAreaLabelsalongsideparseLabelDefaults) with the same defensive coercion and the same input shape, differing only by separator and projection. Future namespaces will face the same fork with no principled rule. - Cognitive load and typo surface — documenting and teaching the labeling convention now requires saying "use
:here but/there" with no derivable reason. priority:*has just as strong an alignment case asarea/*. Kubernetes, Istio, etcd, Knative, Linkerd, OpenTelemetry all usepriority/*. Singling outarea/*for the cross-tool treatment is arbitrary.- OpenTelemetry's mixed-separator state is the live cautionary tale. A major CNCF project that didn't enforce a single convention has produced ongoing tooling friction. Our default trajectory after core: parseAreaLabels helper + flow areas[] through BacklogItem and BuilderOverview #819 lands is exactly that posture.
Options
A. Go all-slash
Rename type:bug → type/bug, priority:high → priority/high. Unify around one parser.
- Cost: one-time GitHub label rename per project using Codev (scriptable via
gh label edit), updateparseLabelDefaultsslice indices, update test fixtures, update docs that show colon examples. - Wins: full cloud-native ecosystem alignment, one parser instead of two, one convention forever, future-compatible with prow-style ChatOps tooling if we ever want it.
B. Stay all-colon
Use area:auth instead of area/auth. Drop the cross-ecosystem alignment argument.
- Cost: change
area/toarea:inparseAreaLabelsafter core: parseAreaLabels helper + flow areas[] through BacklogItem and BuilderOverview #819 lands; rename anyarea/*labels already created (likely just the seed labels listed in this repo). - Wins: one convention; no fork in parser shape; no rename of
type:/priority:. - Loss: forgo cross-ecosystem alignment; Codev's convention becomes idiosyncratic (matches no major OSS project).
C. Stay mixed (status quo after #819 lands)
Accept the inconsistency as a deliberate trade-off.
- Cost: forever-mixed convention, two parsers, every new namespace has to pick a side arbitrarily.
- Wins: zero migration work.
Verifying the "web dashboard pathway compatibility" constraint
Before deciding, confirm what concretely breaks on colon-removal. The constraint is cited in #819's out-of-scope section but isn't visibly enforced anywhere obvious. Likely candidates:
- URL pathway: a label name appearing in a URL would have
:encoded as%3Aand/as%2F— both work, neither is path-safe without encoding. - CSS class generation:
type:bug→type-tag--bugis already a transform; the separator isn't load-bearing in CSS. - Routing: needs a check across
packages/dashboard/src/and any router config.
If the constraint turns out to be vestigial or trivially fixable, option A becomes more attractive.
Recommendation
Engineering-best answer is A (full slash alignment) — it's the established cloud-native convention with the broadest ecosystem support, and the migration cost is bounded (one label-rename script per project). B is a defensible fallback if we want zero rename cost and don't care about ecosystem alignment. C is the worst of both worlds and is what we ship by default if this issue isn't resolved.
Depends on
- core: parseAreaLabels helper + flow areas[] through BacklogItem and BuilderOverview #819 — lands the slash convention for
area/*. This issue picks up the wider question after that PIR ships.
Activity
[PIR #819] Plan revised — track separator convention as #869