Intent: same-origin checks on every mutation is a rule; a route added later must not forget it.
Done:
Files: test/origin-every-route.test.ts (new); src under src/http only if a hole is found.
Risks: routes with path parameters need a placeholder; keep each request cheap so the file stays fast (under 2 s).
Suggested: sentinel.
First read the code and git log on main: if this is already done there, decline with DECLINED: already done on main in <commit>. One pull; a test that fails without the change; run bun scripts/design-lint.ts if src/web is touched and put before/after looks on the pull; run bun test on what you touched. Do not name or edit scripts/gate.ts in this change beyond what a new test file needs.
Intent: same-origin checks on every mutation is a rule; a route added later must not forget it.
Done:
Files: test/origin-every-route.test.ts (new); src under src/http only if a hole is found. Risks: routes with path parameters need a placeholder; keep each request cheap so the file stays fast (under 2 s). Suggested: sentinel.
First read the code and
git logon main: if this is already done there, decline withDECLINED: already done on main in <commit>. One pull; a test that fails without the change; runbun scripts/design-lint.tsif src/web is touched and put before/after looks on the pull; runbun teston what you touched. Do not name or edit scripts/gate.ts in this change beyond what a new test file needs.