Skip to content

fix: separate label name and color in dispatch guidance (#9056) - #9062

Merged
atomantic merged 3 commits into
mainfrom
claim/issue-9056
Sep 28, 2026
Merged

atomantic merged 3 commits into
mainfrom
claim/issue-9056

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

Fixed malformed repo labels with embedded color hex values (e.g., model:light D4C5F9) that were created by agents copying the color guidance directly as label names.

  • Rewrote the color guidance in MANDATORY_DISPATCH_HINT_GUIDANCE to separate label names and hex colors with parentheses and explicit command patterns
  • Deleted all 34 malformed labels from the repo (all had 0 usage)
  • Updated test to verify colors are included but not combined with names

Test plan

  • Verified all malformed labels have been deleted from the repo (0 remaining)
  • Tests pass: npm test -- lib/dispatchLabels.test.js (40/40 passing)
  • New guidance format explicitly shows label names and colors in separate tokens to prevent miscopying

Verification

  • Regex check confirms: gh label list | grep -E ' [0-9A-Fa-f]{6}' returns 0 malformed labels
  • Acceptance criteria met: No label name matches / [0-9A-Fa-f]{6}( |$)/
  • Guidance text cannot be directly copied into a malformed label name

Closes #9056

…#9056)

A `model:light D4C5F9` list read as one token, and agents minted it as a
label name. The guidance now builds each command from DISPATCH_LABEL_COLORS,
bumping claim-issue (v37), claim-issue-gitlab (v33) and issue-reconcile (v8)
so other installs recognize the retired defaults.
@atomantic
atomantic merged commit 17fdb78 into main Sep 28, 2026
9 checks passed
@atomantic
atomantic deleted the claim/issue-9056 branch September 28, 2026 08:56
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.

Malformed repo labels with embedded color hex (e.g. 'model:light D4C5F9')

1 participant