Skip to content

refactor(roadmap): the package declares the workflow labels #4652

Closed
1 of 1 issue completed
Closed

Description

@dan-petty

Problem or Motivation

  • devops-cli .github/labels.yml holds 83 labels: 33 workflow labels that the roadmap code reads or writes (type 9, status 6, priority 4, value 3, effort 3, owner 3, review 3, plan 1 and source 1) and 45 scope/ labels.
  • The 6 other repositories hold the same old hand copy (blob 8886b989: budget 1, priority 4, source 1, status 5 and type 9).
  • homelab lacks status/planned, owner/* and plan/* on GitHub, which the Service writes (src/devops_cli/config/constants.py:3593-3599, stage_verify.py:84).
  • src/devops_cli/roadmap/onboard.py:123-176 checks only YAML validity and a type/* label, so it cannot find a missing workflow label.

Proposed Solution & Architectural Design

  • Declare the 33 workflow labels once in the package (name, colour and description), next to the constants that read them.
  • Onboard row 4 compares GitHub with this list plus the labels.yml of the repository. --confirm creates the missing labels through the REST labels API, as it does today.
  • The readers of type/* (title_labels.declared_type_labels) read the package list.
  • The labels.yml of each repository keeps only its own labels (scope/* and local labels). pull_labels.py reads the scopes from it as today.
  • devops-cli's labels.yml gets the same split, and devops gh labels sync applies both sources.

Target Subsystem

SDLC, Git & PR Governance (src/devops_cli/roadmap/onboard.py and src/devops_cli/github/labels.py).

Existing Tool Considered

The GitHub REST labels API creates the labels, as today. The Probot Settings app syncs labels only from a file in each repository, so the copies drift again. Cost: about 80 lines and 4 tests, about 250,000 tokens and 3 hours to build.

Acceptance Criteria

  • A test: every label name that the roadmap code writes is in the package list (the test collects the constants).
  • A test: onboard row 4 for a fake repository with no status/planned reports it missing.
  • devops-cli .github/labels.yml holds no status/, priority/, value/, effort/, owner/, review/, plan/, source/ or type/ label.
  • uv run devops roadmap onboard --repo dan-petty/homelab lists status/planned, owner/* and plan/needs-fix as missing.

Dependencies

None.

Source: #4627

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/refactor
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/refactor. The refactor prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It fixes label drift across repositories but does not block a release or fix a crash.
    • Value: Medium. It stops missing labels in repositories such as homelab, but users do not see the change directly.
    • Effort: Low. The body states about 80 lines and 4 tests, roughly 3 hours of work.
    • Related: feat(roadmap): onboard writes the labels file and the status workflow #3753, which asks for a different change. Both touch onboard and labels, but #3753 writes the labels.yml file to a repository while the candidate moves the canonical label definitions into the package.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Scope from the design spec plan (2026-11-11)

    The design spec tracker #4735 folds its label item into this issue.

    Problem. 83 labels use 27 colors. One green (#0e8a16) has 5 meanings. There are 3 reds and 3 brand colors (326ce5, 0db7ed, f6821f).

    Scope added. The package label list and .github/labels.yml take one color for each label family from the light token hex values of #4738:

    Family Color
    priority/p0 status.error b3261e
    priority/p1 status.warn 946200
    priority/p2 accent 0b6e8a
    priority/p3 fg-muted 5f5f59
    type/* data.cat.1 a463f2, data.cat.2 e7298a, data.cat.3 002d9c, and the grays
    Other families the grays 86867f and dcdcd6

    No label uses a brand color.

    Acceptance criteria added.

    • A test asserts that every label color in the package list and in .github/labels.yml is a token hex value of src/devops_cli/design/tokens-light.json.
    • One color for each meaning; 0 brand colors.

    Dependencies added. #4738 (the token JSON).

  6. added
    owner/agent
    on Nov 11, 2026
  7. added
    status/in-progress
    and removed
    status/new
    on Nov 11, 2026
  8. removed
    status/in-progress
    owner/agent
    on Nov 11, 2026
  9. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-11 23:31 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/roadmapsource/agenttype/refactorvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions