#20844: feat: add task-queue, swarm, and trust RPC handlers + dashboard tabs
app: web-ui
gateway
agents
size: XL
Cluster:
UI Enhancements and Fixes
## Summary
- Adds three new gateway RPC handlers: `taskQueue.list`, `swarm.list`/`swarm.hierarchy`, and `trust.profile`/`trust.log`
- Adds two new dashboard tabs: **Task Queue** (Control group) and **Swarm** (Agent group)
- Wires full controller → view → navigation → state pipeline for both tabs
- Adds i18n keys for `task-queue` and `swarm` in all four supported locales (en, zh-CN, zh-TW, pt-BR)
## New Gateway Methods
| Method | Handler | Description |
|--------|---------|-------------|
| `taskQueue.list` | `task-queue.ts` | Returns Trello-backed task cards, approval queue, sprint summary |
| `swarm.list` | `swarm.ts` | Live worker status from `/tmp/swarm/` |
| `swarm.hierarchy` | `swarm.ts` | Agent org tree from `agents/` directory |
| `trust.profile` | `trust.ts` | Agent trust scores |
| `trust.log` | `trust.ts` | Trust audit trail |
## New Dashboard Tabs
**Task Queue** — Shows Trello board columns (Proposed → In Progress → Done), approval queue items, and sprint summary card.
**Swarm** — Shows agent hierarchy tree (root manager + child agents from `agents/` profiles) and active swarm worker grid from `/tmp/swarm/`.
## Test plan
- [ ] `taskQueue.list` RPC returns valid `TaskQueueSnapshot` (or empty object if Trello not configured)
- [ ] `swarm.list` + `swarm.hierarchy` return valid data (or empty when no active swarms)
- [ ] Task Queue tab appears in Control group, Swarm tab in Agent group
- [ ] Both tabs render loading state, error state, and populated state
- [ ] Tab labels/subtitles render correctly in EN, zh-CN, zh-TW, pt-BR
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Adds three new RPC handler groups (`taskQueue`, `swarm`, `trust`) to expose Trello task boards, agent hierarchy, and trust scores to the dashboard. Adds Task Queue and Swarm tabs to the UI with full controller/view/navigation wiring and i18n support for 4 locales.
**Key changes:**
- Gateway handlers: `taskQueue.list` (Trello integration), `swarm.list`/`swarm.hierarchy` (agent hierarchy from filesystem), `trust.profile`/`trust.log` (trust score data)
- UI: Two new tabs (Task Queue in Control group, Swarm in Agent group) with loading/error states and refresh capability
- i18n: Added keys for `task-queue` and `swarm` in en, zh-CN, zh-TW, pt-BR
**Issues found:**
- **Authorization gap**: `swarm.list`, `swarm.hierarchy`, `trust.profile`, and `trust.log` are not added to READ_METHODS, so they fall through to the default admin-only authorization at line 175. This means these read-only methods require `operator.admin` scope instead of `operator.read`.
- `/tmp/swarm` is hardcoded in two places, which won't work cross-platform (Windows uses different temp paths).
<h3>Confidence Score: 3/5</h3>
- This PR has a critical authorization bug that would block legitimate read access to new RPC methods, but no security vulnerabilities
- The authorization gap is a critical bug - the new read-only methods (`swarm.list`, `swarm.hierarchy`, `trust.profile`, `trust.log`) will incorrectly require admin scope instead of read scope, breaking functionality for non-admin operators. The hardcoded `/tmp/swarm` paths are platform-specific but won't cause security issues. Otherwise the implementation is solid with proper error handling, type safety, and UI integration.
- src/gateway/server-methods.ts requires immediate fix for authorization of new RPC methods
<sub>Last reviewed commit: 7df67ad</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#12168: feat: integrate Mission Control dashboard into Control UI
by riftagent-git · 2026-02-08
79.8%
#21679: fix: Mission Control dashboard issues for agent status, stale sessi...
by thejawdoc · 2026-02-20
77.0%
#14618: feat(ui): add AgentHQ - agent workspace evolution viewer
by eddie333016 · 2026-02-12
75.6%
#20081: feat: post-compaction triage UX — fuzzy ok + stage-2 gate + Discord...
by PrivacySmurf · 2026-02-18
74.2%
#13537: Gateway: add commands.list slash command metadata API
by Pyiner · 2026-02-10
74.1%
#8522: feat(control-ui): Add Model Requests panel for real-time API monito...
by GiantAxeWhy · 2026-02-04
73.3%
#12434: Add K8s support with SA Trust architecture
by NTurakulov · 2026-02-09
73.2%
#14222: core: add needsApproval to before_tool_call; move AgentShield to ex...
by Eventedge · 2026-02-11
73.1%
#11788: feat: inter-agent communication via CLI scripts
by jingkang0822 · 2026-02-08
73.0%
#8713: feat: gateway memory monitor, install linger, docs and failover
by quratus · 2026-02-04
72.9%