Skip to content

fix(gate issues add): derive the severity hint from the domain list - #464

Merged
nao-amj merged 1 commit into
mainfrom
fix/severity-usage-hint
Sep 11, 2026
Merged

nao-amj merged 1 commit into
mainfrom
fix/severity-usage-hint

Conversation

@nao-amj

@nao-amj nao-amj commented Sep 11, 2026 •

Copy link
Copy Markdown
Collaborator

gate issues add hand-wrote its severity hint as <low|med|high>, silently omitting critical — a value ISSUE_SEVERITIES has accepted all along. This derives the hint from the domain list instead, so adding a severity updates the hint by construction.

  • 11 lines. ISSUE_SEVERITIES.join('|') is passed as the requireOption placeholder
  • The same omission in the gate issues usage block is fixed alongside it
  • No behaviour change: alias handling (medium/mid/hi/crit/…) already lives in parseIssueSeverity in the domain and is untouched

Tests

origin/main and this branch were each measured from a clean worktree + npm install, so that build artefacts could not leak across the comparison.

tests pass
origin/main 1962 1936
this branch 1962 1936

This PR adds no tests, so the totals match. The count of pre-existing failures is unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VvZueYYe3yXAkpBhbcKYqe

The hint was hand-written as <low|med|high> and silently omitted `critical`,
which ISSUE_SEVERITIES has accepted all along. Deriving it from the domain
list makes that class of drift impossible: adding a severity now updates the
hint by construction.

Also fixes the same omission in the `issues add` usage line.

No behaviour change beyond the message — alias handling (medium/mid/hi/crit/…)
already lives in parseIssueSeverity in the domain and is untouched.

typecheck clean / build OK / tests 1122 pass 0 fail (interface layer).
@nao-amj nao-amj changed the title fix(gate issues add): derive severity usage hint from the domain list fix(gate issues add): derive the severity hint from the domain list Sep 11, 2026
@nao-amj
nao-amj merged commit 6c04c48 into main Sep 11, 2026
5 checks passed
@nao-amj
nao-amj deleted the fix/severity-usage-hint branch September 11, 2026 03:29
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.

2 participants