mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 09:39:53 +01:00
Introduce `issues.scope` (`board` | `channel` | `agent` | `chat`) to unify surface visibility across human board tasks, 1:1 Agent Chats, agent-managed operational tasks, and upcoming headless channels without introducing separate issue types. - Add `scope` column, check constraints, and composite indexes to `issues` with an online-compatible migration (`0511_pale_kronos.sql`) that backfills existing 1:1 conversations (`chat`) and automated/agent-created tasks (`agent`) - Automatically derive default `scope` in `issueService.create` when omitted so existing Agent Chats, routines, Slack tasks, and chat-to-board handoffs remain 100% backwards-compatible - Consolidate list, count, and Mine visibility predicates onto `issues.scope` while isolating `channel` and `chat` scopes from default board views Co-Authored-By: Paperclip <noreply@paperclip.ing>