← Back to PRs

#20844: feat: add task-queue, swarm, and trust RPC handlers + dashboard tabs

by TGambit65 open 2026-02-19 10:45 View on GitHub →
app: web-ui gateway agents size: XL
## 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