Files
PaperClipAI/server
DottaandPaperclip a6b22197b4 feat(issues): add issues.scope surface visibility foundation
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>
2026-11-30 18:11:55 -06:00
..