Files
PaperClipAI/server/src/__tests__
DottaandPaperclip ca94323056 fix(issues): tighten scope authz, backfill, and visibility helper
Match isAgentCreatedIssue in the 0511 backfill (include created_by_user_id IS NULL), extract surfaceScopeCondition into issue-visibility.ts, let explicit scope filters override includeAgentCreatedTasks=false, reject scope='chat' on non-conversation issues, and forbid agent actors from setting scope='board' on POST/PATCH.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-11-30 18:11:55 -06:00
..
…

Server Tests

Server tests that need a real PostgreSQL process must use ./helpers/embedded-postgres.ts instead of constructing embedded-postgres directly.

The shared helper creates a throwaway data directory and a reserved-safe loopback port for each test database. This protects the live Paperclip control-plane Postgres from server vitest runs; see PAP-2033 for the incident that introduced this guard.