--- kind: task slug: ops-copilot-context-tools title: Ops copilot — server tools over convoys, backlog, events plan_slug: automation-foundation epic_slug: ops-copilot status: ready priority: P2 tenant_id: global owner: unassigned cursor_todo_id: null updated_at: "2026-08-12" --- # Task summary Implement workspace-scoped tool functions the ops copilot model can call: gate inbox, convoy summary, recent events, ready backlog (if available), recent runs — all filtered by `workspace_id`. ## Description Pattern after gate co-pilot + AI SDK tools. Register role route `ops-copilot`. No UI yet. ### Tools (v1) - `list_gate_inbox` - `get_convoy_summary` - `list_recent_events` - `list_ready_backlog` (no-op / empty if tree API missing) - `list_recent_runs` ## Subtasks - [ ] Shared zod tool schemas - [ ] Server implementation with membership checks - [ ] Seed `ops-copilot` role route - [ ] Unit tests for workspace isolation ## Estimation M ## Acceptance criteria - [ ] Tools refuse cross-workspace ids - [ ] Gate inbox tool matches Mission Control counts for a fixture workspace ## Links - Epic: `./Epic-ops-copilot.md`