design: agent role badge system for v0.9.0 workforce expansion#600
Open
design: agent role badge system for v0.9.0 workforce expansion#600
Conversation
Introduces visual role differentiation for all ten agent roles (5 original + 5 new: refactor, research, enricher, tester, auditor). - New AgentRole type + inferAgentRole() in ui/src/types/agent-roles.ts Derives role from agent name until orchestrator exposes a role field - New AgentRoleBadge component with badge/dot/icon-only variants Each role has a distinct Tailwind colour and lucide-react icon - AgentTable: new Role column between Name and Status - AgentFilters: new Role dropdown filter (URL param: ?role=) - useAgents hook: client-side role filter via inferred role Colour assignments follow semantic intent: planner→blue, worker→emerald, reviewer→amber, documenter→violet, designer→pink, refactor→teal, research→indigo, enricher→sky, tester→lime, auditor→rose Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…plans Adds architect, triage, and release as canonical roles, and registers aliases for the variant names used across milestones #17/#18/#19: researcher → research security → auditor test-writer → tester test → tester release-mgr → release issue-quality→ enricher Colour/icon additions: architect → slate + Compass (blueprints, system structure) triage → orange + Tags (urgency, prioritisation) release → cyan + Rocket (shipping, delivery) Also documents the v0.9.0 triple-milestone naming collision (#17, #18, #19) in agent-roles.ts so the discrepancy is visible at the type boundary. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Renames 'auditor' → 'security' throughout the role badge system to match the agent name, GitHub label, and canonical naming established in milestone #19 (Specialized Agent Ecosystem), confirmed as the authoritative plan by the group analysis session. Alias direction flipped: auditor → security (was security → auditor). 'enricher' and 'tester' are retained as canonical TS identifiers (not 'issue-quality' / 'test') because they are hyphen-free and produce clearer badge labels; inferAgentRole() maps the #19 YAML agent names to them transparently. Also updates all three style maps and the component docstring to reflect #19 as the settled source of truth. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds the Conductor agent (v0.10.0 Autonomous Development Pipeline, milestone #20) to the role badge system: conductor → purple / Workflow icon The conductor runs on a 15-min cron, manages the git-spice merge queue, restacks dependent branches, and escalates conflicts. Purple reflects its orchestration/coordination function; Workflow is the most semantically accurate lucide icon for pipeline air-traffic control. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7 tasks
Remove `architect` and `release` from AgentRole type, BADGE_STYLES, DOT_STYLES, ROLE_ICONS, ROLE_LABELS, and ALL_AGENT_ROLES. Both roles were dropped when the planner superseded milestones #17 and #19 with the consolidated #18 (Autonomous Development Pipeline). PR #595 (architect) was closed without merging. Both names now alias to `unknown` via ROLE_ALIASES so existing agent names don't throw at runtime. Removes unused Compass and Rocket lucide imports. Updates docstrings to reference milestone #18 as authoritative. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #600 +/- ##
=======================================
Coverage 55.40% 55.40%
=======================================
Files 126 126
Lines 13518 13518
=======================================
Hits 7490 7490
Misses 6028 6028 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
AgentRoletype +inferAgentRole()utility that derives an agent's functional role from its name (e.g.refactor-agent→refactor). This is a stopgap until the orchestrator exposes a dedicatedrolefield onAgent— the inference logic is isolated inui/src/types/agent-roles.tsand can be replaced with a direct field read when the backend lands.AgentRoleBadgecomponent with three variants:badge(coloured pill + icon),dot(status circle),icon-only(icon with tooltip). All ten agent roles have distinct Tailwind colours and lucide-react icons chosen to reflect their purpose.AgentTablewith a Role column between Name and Status.AgentFilterswith a Role dropdown filter (synced to the?role=URL param, bookmarkable).useAgentshook to apply client-side role filtering.Role → Colour design rationale
All badge styles follow the same
bg-{colour}-100 / text-{colour}-800(light) +dark:bg-{colour}-900/30 / dark:text-{colour}-400(dark) pattern established inStatusBadge— no new design tokens needed.Follow-up (not in scope for this PR)
rolefield toAgentConfig/Agent, updateAgentRoleBadgeto readagent.config.roledirectly and deprecateinferAgentRole.ui/design/agentd.penwith role badge specs once Pencil is available.AgentSummarydashboard card.Test plan
planner,refactor-agent,tester-agent-1) show the correct coloured badge in the table?role=testerURL param is respected on page load and cleared on reset🤖 Generated with Claude Code