feat(kanban): triage layer Phase 1 — labels column + LLM-emitted assignee + routing engine - #25870
Closed
jjaavvin-web wants to merge 6 commits into
Closed
feat(kanban): triage layer Phase 1 — labels column + LLM-emitted assignee + routing engine#25870jjaavvin-web wants to merge 6 commits into
jjaavvin-web wants to merge 6 commits into
Conversation
Phase 1 of the Kanban triage layer. The new tasks.labels column holds a JSON-encoded array of strings populated by the LLM specifier and consumed by the routing engine. Stored separately from task_runs.metadata so tags stay structurally distinct from arbitrary per-run data. - Adds labels TEXT NOT NULL DEFAULT '[]' to the tasks CREATE TABLE. - Adds _migrate_add_labels_column() and wires it into the existing _migrate_add_optional_columns() migration pass so legacy DBs pick up the column on first connect(). - Adds set_task_labels() / get_task_labels() helpers with strict input validation (rejects non-list, non-str elements, tuples) plus strip + dedupe so re-emitting a tag set is idempotent. - Adds tests/hermes_cli/test_kanban_labels.py covering schema on fresh DBs, legacy-DB migration, set/get roundtrip, and malformed input. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…allel-defense tests Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Contributor
|
Thanks @jjaavvin-web — closing this one. The Phase 1 triage layer (labels column + LLM-emitted assignee + routing engine, 1360 LOC + 84 tests) overlaps with the existing orchestrator-driven |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 1 of the triage routing layer that fills the "auto-assignee" gap in Kanban dispatch:
hermes_cli/kanban_db.py— addslabelsJSON column to tasks + migration for legacy DBs +set_task_labels/get_task_labelshelpershermes_cli/kanban_specify.py— specifier LLM now emits{title, body, assignee_suggestion, labels}instead of just title/body; suggestion fills empty assignee, labels written via schema column with metadata fallbackhermes_cli/triage_routing.py(new) —route(labels, llm_suggested_assignee, routing_rules)with first-match-wins subset semantics; readstriage.routing_rulesfrom~/.hermes/config.yamlroute()after parsing LLM output → final assignee flows tospecify_triage_taskRouting rules block (drop into config.yaml when ready):
Test plan
tests/hermes_cli/test_kanban_labels.py,test_kanban_specify.py,test_kanban_specify_db.py,test_triage_routing.py🤖 Generated with Claude Code