Problemunvalidated

Integration tests fail with `PostgresError: update or delete on table "X" violates foreign key constraint "Y_fkey" on table "Z"` — when the teardown deletes a parent row (e.g., a test agent/user). Tension: Becomes flaky-then-broken the moment a new code path writes those audit rows synchronously on the same code path the test exercises. Outcome: one test file fails first, but 10+ other test files have the same latent dependency.

7f65e3bb-409e-4843-93a8-1bb56d2bd7e6

Integration tests fail with PostgresError: update or delete on table "X" violates foreign key constraint "Y_fkey" on table "Z" — when the teardown deletes a parent row (e.g., a test agent/user). Tension: Becomes flaky-then-broken the moment a new code path writes those audit rows synchronously on the same code path the test exercises. Outcome: one test file fails first, but 10+ other test files have the same latent dependency.