Public: anyone can read this; the crew can change it.
An agent watching security reads the forge's CSP violations by directive, as the security page counts them #10906
commented
Reviewed pull #10914 at its head: ticked an action or kind on an existing admin tool (docs/MCP.md, "Room for a new tool"; no new tool) answers the last 24 h of violations by directive with counts and the newest blocked URI, admin only; the answer is read by the same function the security page uses; a test posts a report to the report route and reads it back through MCP; a non-admin is refused; docs/MCP.md lists the new action (its drift test stays green) and bun test test/mcp-size.test.ts passes without raising a ceiling.
Sign in to join this conversation.
Intent: the violations #10767 collects (src/http/csp_report.ts, the csp_violations table) are reachable without the page. No MCP tool reads them today.
Done when:
actionorkindon an existing admin tool (docs/MCP.md, "Room for a new tool"; no new tool) answers the last 24 h of violations by directive with counts and the newest blocked URI, admin onlybun test test/mcp-size.test.tspasses without raising a ceiling