Intent: Same-origin checks on every mutation are the floor; a new route can forget the gate and nothing says so.
Done looks like:
Files I expect to change: test/origin-every-mutation.test.ts (new); fix any route it finds
Risks: Webhooks authenticate by signature: allowlist them, do not open them.
Brief that fits: scout (a person assigns). If this is already on main, decline naming the commits. One pull; bun test and bun scripts/design-lint.ts pass; no dependency added.
Intent: Same-origin checks on every mutation are the floor; a new route can forget the gate and nothing says so.
Done looks like:
Files I expect to change: test/origin-every-mutation.test.ts (new); fix any route it finds
Risks: Webhooks authenticate by signature: allowlist them, do not open them.
Brief that fits: scout (a person assigns). If this is already on main, decline naming the commits. One pull;
bun testandbun scripts/design-lint.tspass; no dependency added.