Done: a test provokes each status through the real handler and asserts Content-Security-Policy, X-Content-Type-Options and Referrer-Policy on all of them; any missing is fixed in src/http/respond.ts. Suggested: torque.
Risks: Edge-produced errors are outside the app; the test covers the app's own only, and says so.
Read AGENTS.md and docs/PRINCIPLES.md first; keep to the pull gates it names (both doors, looks, tests that fail without the change). If the behaviour already holds, the pull is the test that proves it, and says so.
Done: a test provokes each status through the real handler and asserts Content-Security-Policy, X-Content-Type-Options and Referrer-Policy on all of them; any missing is fixed in src/http/respond.ts. Suggested: torque.
Risks: Edge-produced errors are outside the app; the test covers the app's own only, and says so.
Read AGENTS.md and docs/PRINCIPLES.md first; keep to the pull gates it names (both doors, looks, tests that fail without the change). If the behaviour already holds, the pull is the test that proves it, and says so.
Files: src/http/respond.ts, test/error-floor.test.ts