Skip to content

fix(github): roadmap sync reads each item's priority from its own tag (#583) - #584

Merged
dan-petty merged 1 commit into
release/v0.2.23from
fix/583-roadmap-priority-from-tag
Sep 25, 2026
Merged

dan-petty merged 1 commit into
release/v0.2.23from
fix/583-roadmap-priority-from-tag

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

devops gh sync-roadmap took each new issue's priority label from the first keyword found anywhere in a roadmap item's header or body, P0 words first. "Blocker" in a title, or "critical" or "higher" in a description, overrode the item's own (Pn - ...) tag. After #580, 19 of the 189 open items would have been filed with the wrong label: 17 as P0 and 2 as P1.

The priority now comes only from the item's own tag, so the #580 entries can be synced safely.

Changes

  • _extract_priority (github/roadmap_sync.py) reads only the header line, through one anchored regex. The tag may sit inside the bold title, followed only by parentheticals such as (Issue #5), or directly after the closing **. Only the digit counts: (P0 - High) is P0. Tag-shaped title words such as (P1-era), backticked f(P0 - z) and description text never decide it, and an untagged item keeps the P1 default.
  • CONST_ROADMAP_PRIORITY_TAGS, the substring keyword table, is replaced by CONST_ROADMAP_PRIORITY_LABELS, a map from tag digit to label. Nothing else used it. The Projects v2 Priority field comes from issue labels, so it follows the corrected label.
  • Roadmap and task file: the fix is recorded as delivered in v0.2.23. The Roadmap Deferrals entry, which listed it as its first step, and the upstream-survey extension are updated. The task file is included.

Verification

  • test_extract_roadmap_items_live_file_priorities_match_tags asserts that every open item in docs/ROADMAP.md has exactly one tag and derives that priority. It failed on the old parser with the 19 mislabelled items. Now: 189 open, 0 mismatches, 0 untagged.
  • test_extract_priority_and_derive_scope covers the misleading cases: a P1 item with "Blocker" in its title and "critical" in its body, a tag inside or after the bold, a nested parenthetical, tag-shaped title words, and an untagged header.
  • The implementation was reviewed from correctness and conventions angles for three rounds. Each finding was checked by an independent skeptic, and the last round found only nits.
  • The full devops ci gate passed on push.

Closes #583

…#583)

`devops gh sync-roadmap` took each new issue's priority label from the
first keyword found anywhere in the item's header or body, P0 words
first. "Blocker" in a title, or "critical" or "higher" in a description,
overrode the item's own tag: 19 of the 189 open roadmap items would have
been filed with the wrong label, 17 of them as P0.

The priority now comes only from the item's own (P0 - ...) to
(P3 - ...) tag, inside the bold title or directly after it. Only the
digit counts; title words and description text never change it, and an
untagged item keeps the P1 default. The keyword table is removed.

A test over the live roadmap asserts every open item has a tag and
derives exactly that priority; it failed on the old parser with the 19
mislabelled items. The Roadmap Deferrals entry, which listed this fix as
its first step, is updated.

Closes #583
@dan-petty dan-petty added this to the v0.2.23 milestone Sep 25, 2026
@dan-petty
dan-petty merged commit a7fcb5e into release/v0.2.23 Sep 25, 2026
8 checks passed
@dan-petty
dan-petty deleted the fix/583-roadmap-priority-from-tag branch September 25, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant