Files
PaperClipAI/server/src/__tests__
Devin FoleyandPaperclip b197e4f9f6 Validate reassessed Done decisions for every saved disposition
New evidence can satisfy a completion contract whose saved result reported
needs_review, yielded, or blocked. Validate the proposed authoritative Done
decision so those results reach bounded incomplete-delivery feedback before
the commit guard, rather than retrying as status races.

Add six regressions for the other saved dispositions and both continuation
allowances. Also verify reassessment stays settled after corrective effects
are marked delivered.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-11-18 15:21:55 -08: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.