v2.65.1 — project-audit fixes (CSRF guard · green tests · lint)
Fixes from a project health audit.
- Security (CSRF) — the board set
Access-Control-Allow-Origin: *with no Origin check on most mutation endpoints; a page the user visits could POST to localhost and approve an autopilot gate (→ run an irreversible connector write), approve a dev gate, or mutate tasks. Added a same-origin guard on everyPOST/PUT/PATCH/DELETE(exempting the HMAC-authenticated/api/autopilot/ingestwebhook). Cross-origin mutations → 403; reads, same-origin, and CLI calls unaffected. - Tests —
packs-integrationwas red (2 fail): the reviewer test now parsesPACK_REVIEWERSdynamically and the overlay harness gained the 4 missing packs. 5/5. - Lint —
agent-prompt-lintmis-read YAML block scalars (description: |) as 1 char → 3 false errors (exit 1). Now parses|/>block bodies; exit 0.
No regression: lib 348/348, hooks 63/63, board-gate 5/5, tsc 0.