Skip to content

fix(kanban): --severity filter uses >= comparison per documented behavior#26661

Closed
shellybotmoyer wants to merge 1 commit into
NousResearch:mainfrom
shellybotmoyer:fix/kanban-severity-filter
Closed

fix(kanban): --severity filter uses >= comparison per documented behavior#26661
shellybotmoyer wants to merge 1 commit into
NousResearch:mainfrom
shellybotmoyer:fix/kanban-severity-filter

Conversation

@shellybotmoyer

Copy link
Copy Markdown
Contributor

Summary

Fixes #26379. The --severity filter in hermes kanban diagnostics was documented as filtering "at or above this severity" but was implemented as an exact-match equality check (d.severity == sev). This caused --severity warning to silently return zero diagnostics when all existing diagnostics were error-severity.

Change

Change the filter in hermes_cli/kanban.py:1406 from:

kept = [d for d in diags_by_task[tid] if d.severity == sev]

to:

kept = [d for d in diags_by_task[tid] if kd.SEVERITY_ORDER.index(d.severity) >= kd.SEVERITY_ORDER.index(sev)]

Verification

  • SEVERITY_ORDER is already defined in kanban_diagnostics.py as ("warning", "error", "critical").
  • The patch makes the implementation match the documented argparse help text: "Only show diagnostics at or above this severity".

Closes #26379

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists labels May 16, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #26384 which fixes the same severity filter exact-match bug (#26379). Also see competing fix #26431.

teknium1 added a commit that referenced this pull request May 17, 2026
…tors

Adds release-note attribution mappings for 10 contributors from the
low-hanging-fruit salvage group 2 batch:
- @shellybotmoyer (PR #26661, #25576)
- @ether-btc (PR #26632)
- @LifeJiggy (PR #26516)
- @nekwo (PR #26481)
- @flooryyyy (PR #26374)
- @dgians (PR #26034, incl. zealy-tzco bot-committer alias)
- @flanny7 (PR #27030)
- @hermesagent26 (PR #26438)
- @kriscolab (PR #26926, co-author on salvage commit)
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #27292 — your commit was cherry-picked onto current main as part of a batch salvage of low-risk new-contributor PRs. Authorship preserved (fix(kanban): --severity filter uses >= comparison per documented behavior). Thanks for the contribution.

@teknium1 teknium1 closed this May 17, 2026
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…tors

Adds release-note attribution mappings for 10 contributors from the
low-hanging-fruit salvage group 2 batch:
- @shellybotmoyer (PR NousResearch#26661, NousResearch#25576)
- @ether-btc (PR NousResearch#26632)
- @LifeJiggy (PR NousResearch#26516)
- @nekwo (PR NousResearch#26481)
- @flooryyyy (PR NousResearch#26374)
- @dgians (PR NousResearch#26034, incl. zealy-tzco bot-committer alias)
- @flanny7 (PR NousResearch#27030)
- @hermesagent26 (PR NousResearch#26438)
- @kriscolab (PR NousResearch#26926, co-author on salvage commit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hermes kanban diagnostics --severity filter is exact-match, not "at or above" as documented (kanban.py:1406)

3 participants