Repository navigation
Description
Context & Rationale
ADR 0001 puts priority on the board. Today priority lives in two places that drift apart.
- It lives in the
priority/pNlabels (.github/labels.yml:83-95) and in the board's Priority field. plan_item_changescopies a label into the field only while the field is unset (github/projects.py:1095;_PRIORITY_LABELSat:1018). After that, a label change never reaches the board, and a board change never reaches the label.gh issues triageandgh issues statusread only labels (github/issues.py:302,:334).- They read at most 100 open issues (
:296,:327), but 163 are open. - Triage also flags every open issue that has no milestone (
:315). After feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739, that is every backlog item.
- They read at most 100 open issues (
- Stray labels:
priority/high, on fix(github): gate pr merge readiness on required approvals, mergeable state, and reviewer feedback #183, Updated Title #185 and ci(workflows): gate pull request workflow on unresolved review threads and merge blockers #188;type/fix(fix(review): correct feedback loop calibration and remediate verified session findings #349) andbug(fix(pr): handle JSON array timeline payload in _parse_timeline_copilot_state #245), alongsidetype/bug.
type/epicis used only on the Release Epics, which feat(github): github-sourced roadmap, migration and generated roadmap view (devops roadmap migrate,render) #739 closes.
Scope & Deliverables
- Deliverable:
gh issues triageandgh issues status, and their MCP mirrorsgh_issue_triageandgh_issue_status, read every open issue and read Priority from the board through the roadmap store (refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768).- Triage flags an open item that has no Priority. It no longer flags a missing milestone, because a backlog item has none by design.
- Reconcile stops reading priority labels: remove
_PRIORITY_LABELSand_declared_priority. .github/labels.ymldrops the fourpriority/*labels andtype/epic.- AGENTS.md,
docs/SDLC.md,docs/SELF_IMPROVEMENT.mdanddocs/ROUTINE_TASKS.mdname the board's Priority field instead of the labels. - After merge, a person removes the labels from GitHub, using the commands below.
- Acceptance criteria:
- Tests against refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768's in-memory adapter, each offline and under 1 s, check four things:
- triage and status report the board's Priority;
- an issue that has a
priority/*label but no field value counts as unprioritized; - with more than 100 open issues, every one is counted;
- a backlog item without a milestone is not flagged.
rg -n 'priority/(p[0-3]|high|medium|low)' src tests .github AGENTS.md docs -g '!docs/agent/**' -g '!docs/adr/**'prints nothing.- Checks a person runs after merge. First,
gh project item-list 2 --owner dan-petty --limit 1000 --format jsonmust show a Priority on every open issue. Then:gh issue edit 349 --remove-label type/fix --add-label type/bug -R dan-petty/devops-cli.gh issue edit 245 --remove-label bug --add-label type/bug -R dan-petty/devops-cli.gh label delete <name> --yes -R dan-petty/devops-clifor each of:priority/p0-critical,priority/p1-high,priority/p2-medium,priority/p3-low,priority/high,priority/medium,type/fix,bugandtype/epic.gh label list -R dan-petty/devops-cli --limit 200 --json name --jq '.[].name' | grep -E '^(priority/|bug$|type/fix$|type/epic$)'prints nothing.
uv run devops cipasses.
- Tests against refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768's in-memory adapter, each offline and under 1 s, check four things:
- Key questions:
- Why delete the labels by hand instead of adding pruning to
gh labels sync? It is a one-off cleanup. A prune flag would be new code used once (proposed). - Does anything read a PR's priority label? No. The labels are also on PRs and go with them (proposed).
- Do the
status/*labels go too? No (proposed). Reconcile still reads them for an unset Status.
- Why delete the labels by hand instead of adding pruning to
- Constraint: never delete a priority label while any open issue has no Priority on the board. The person-run check above comes first.
Strategic Alignment
- Depends on: feat(github): github-sourced roadmap, migration and generated roadmap view (
devops roadmap migrate,render) #739, which fills Priority on every open issue from its label; refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768, the store. - Related: feat(github): single-entry item intake with duplicate detection and placement (
devops roadmap intake) #742, where intake sets Priority.
Split off #739 during the v0.2.25/v0.2.26 readiness review (2026-10-01): The original #739 scope removed the priority/pN labels and made gh issues triage and gh issues status read the board. That needs its own code, tests and person-run label deletions. These can only safely happen after #739's migrate has filled Priority on every open issue. Splitting it off keeps #739 within one PR.
Update 2026-10-08: refinement
- Delivered: triage no longer flags a missing milestone (
github/issues.py:295-300). - Open: triage reads at most 100 of 335 issues (
:302) and reads priority from labels, so intake-placed items look unprioritized. type/fix(11 issues) becomestype/bug; the forms applytype/*andstatus/triage.- Triage counts an intake-placed P2 item with no label as prioritized.
Proposed design
Problem statement
The roadmap's priority field is currently duplicated in two places: the board's Priority field and the priority/pN labels. This duplication causes drift as changes in one location do not propagate to the other, leading to inconsistent prioritization information. Additionally, stray labels like priority/high, type/fix, and bug need consolidation.
Acceptance criteria
- Criterion 1: gh issues triage and status read every open issue and Priority from the board through the roadmap store
Verification: Run tests against refactor(github): roadmap store that reads and writes items, releases and board fields behind one interface #768's in-memory adapter, each offline and under 1 s, to check that triage and status report the board's Priority - Criterion 2: An issue with a priority/* label but no field value counts as unprioritized
Verification: Test that an open item with apriority/*label but no Priority field is counted as unprioritized in triage - Criterion 3: With more than 100 open issues, every one is counted
Verification: Run tests with over 100 open issues to ensure all are properly counted by triage and status - Criterion 4: A backlog item without a milestone is not flagged
Verification: Verify that triage no longer flags an open item without a milestone (backlog item) after the change - Criterion 5: No priority labels remain in the codebase or documentation
Verification: Runrg -n 'priority/(p[0-3]|high|medium|low)' src tests .github AGENTS.md docs -g '!docs/agent/**' -g '!docs/adr/**' -g '!docs/ROADMAP.md'and confirm it prints nothing - Criterion 6: All relevant documentation is updated to reference the board's Priority field
Verification: Check that AGENTS.md, docs/SDLC.md, docs/SELF_IMPROVEMENT.md and docs/ROUTINE_TASKS.md name the board's Priority field instead of labels
Key questions
- Why delete the labels by hand instead of adding pruning to
gh labels sync?: It is a one-off cleanup. A prune flag would be new code used once (proposed). - Do the
status/*labels go too?: No (proposed). Reconcile still reads them for an unset Status.
Open questions
- Does anything read a PR's priority label? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIn Review
Activity
dan-petty commentedon Oct 9, 2026
Folded in from the owner's roadmap Service requests (2026-10-09)
Amendment 2026-10-09: intake is the only automatic path to a Priority
The owner asked (2026-10-09):
Checked at release/v0.2.32 (a9d7fd8) and on board 2 (read-only, 2026-10-09 ~18:00Z).
Already delivered by #742 and #1360. No new Service code is needed.
roadmap/intake.py:665-670)._queue,:686)._intake_due,roadmap/run.py:349-357).What remains is this item's scope:
devops gh project synccopies apriority/*label into an empty Priority (_PRIORITY_LABELS,github/projects.py:782-787;declared_priority,:821-827, used at:852). AGENTS.md:194 and :414 tell agents to run sync after filing. Intake treats any Priority as finished (intake.py:669), so an item prioritized this way never gets a Value, an Effort or a reason comment.--dry-runcommand path is recorded as read-only or mutating, one candidate per offender #986 and docs(agent): pending-a-person steps name only manifests that exist in the repository #1303. docs(agent): pending-a-person steps name only manifests that exist in the repository #1303 was filed on 2026-10-07, after the Service started.gh issues triagereads at most 100 issues and takes Priority from labels (github/issues.py:302,:311,:320). Today it would report 60 issues as missing a priority: the newest open issues that intake placed without a label. The board shows 0.Added acceptance criteria:
devops gh project syncnever writes Priority:_PRIORITY_LABELSanddeclared_priorityare gone. A test shows sync leaves Priority empty on a card whose issue carries apriority/*label.ai/knowledge_base/devops_cli/tasks/github_project_management.md:163say:The "
ValueandEffortare set by hand" sentences go.gh issues triagereads every open issue and prints how many have no Priority on the board. On a fixture that mirrors today's board (300 open issues, all with a Priority, 60 without a label), it prints 0.--dry-runcommand path is recorded as read-only or mutating, one candidate per offender #986 and docs(agent): pending-a-person steps name only manifests that exist in the repository #1303. Intake's next rounds (5 per round) then decide each one's Priority, Value and Effort and leave a reason comment. Each keeps its milestone.gh project item-list 2 --owner dan-petty --limit 1000 --format jsonshows Priority, Value and Effort on every open issue.dan-petty commentedon Oct 17, 2026
Moved to v0.2.37: v0.2.37 started with fewer than its 16 items and was topped up to 16 from Ready items, critical fixes and P0 features first. (devops roadmap reprioritize)
dan-petty commentedon Oct 19, 2026
Status set back to New at 0ae4ea4: refine found it not ready (see Key questions, Fit and Suspected block in the proposed design in the issue body).
dan-petty commentedon Oct 20, 2026
Evidence for this item from 2026-10-20: the board's Priority field and the
priority/*labels disagree on most of the backlog.priority/*label, and 101 of those are in the backlog.priority/*taxonomy labels, and a person reading the issue list sees no priority on most new items.Either intake and reprioritize write the matching
priority/*label with the field, or the labels are retired and AGENTS.md and the triage checks read the board field only, which is this item's direction.chore(main): release 0.4.0 (#1960)