What problem does it solve? Local test runs fail or silently mislead when pytest, initdb, Postgres, or cleanup processes misbehave — leaked throwaway Postgres clusters wedge the box, shared venvs get corrupted by symlinks, and tests pass for the wrong reasons. This Skill encodes the correct commands, isolation rules, and recovery procedures for the Ava repo's test infrastructure. ## Core Features & Use Cases - Layered test execution: Runs the right scope per change — pre-commit lint hooks, targeted pytest for touched areas, frontend vitest/eslint/tsc checks, and full e2e suites with real gateway, agent subprocess, Next.js, and Playwright Chromium. - Wedged infrastructure recovery: Diagnoses and sweeps leaked throwaway Postgres clusters that exhaust macOS System V shared memory (shmmni), using flock-based owner locks and path-based identification to avoid killing real clusters. - Test integrity guardrails: Enforces proving new tests fail without the fix, verifying end-to-end results externally rather than trusting agent self-reports, and safe pkill discipline anchored to instance directories. - Use Case: Before pushing a change to shared/, run the full non-e2e pytest suite, confirm your new regression test goes red against the pre-fix code, then push knowing CI will not surprise you. ## Quick Start Run the local tests for the files I just changed and tell me whether anything failed before I push.