Authorize the theme bootstrap with a CSP nonce
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
Not deployed through the forge lane
No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.
Changed files
-
modified
AGENTS.md -
modified
INVARIANTS.md -
modified
docs/2026-08-20-integration-hardening-and-staging-readiness-recommendations.md -
modified
docs/component-library.md -
modified
lib/openagents_web/components/layouts/root.html.heex -
added
lib/openagents_web/plugs/content_security_policy.ex -
modified
lib/openagents_web/router.ex -
modified
test/openagents_web/home_controller_test.exs
Diff
8 files changed, +85 -8
AGENTS.md modified +1 -1
@@ -52,7 +52,7 @@ custom classes must fully style the input
| 52 | 52 |
|
| 53 | 53 |
|
| 54 | 54 |
|
| 55 |
|
|
| 55 |
|
|
| 56 | 56 |
|
| 57 | 57 |
|
| 58 | 58 |
|
INVARIANTS.md modified +6 -4
@@ -1523,16 +1523,18 @@ Adopting an additional Basecoat component requires a
| 1523 | 1523 |
|
| 1524 | 1524 |
|
| 1525 | 1525 |
|
| 1526 |
|
|
| 1527 |
|
|
| 1528 |
|
|
| 1526 |
|
|
| 1527 |
|
|
| 1528 |
|
|
| 1529 |
|
|
| 1529 | 1530 |
|
| 1530 | 1531 |
|
| 1531 | 1532 |
|
| 1532 | 1533 |
|
| 1533 | 1534 |
|
| 1534 | 1535 |
|
| 1535 |
|
|
| 1536 |
|
|
| 1537 |
|
|
| 1536 | 1538 |
|
| 1537 | 1539 |
|
| 1538 | 1540 |
|
docs/2026-08-20-integration-hardening-and-staging-readiness-recommendations.md modified +3
@@ -448,6 +448,9 @@ records.
| 448 | 448 |
|
| 449 | 449 |
|
| 450 | 450 |
|
| 451 |
|
|
| 452 |
|
|
| 453 |
|
|
| 451 | 454 |
|
| 452 | 455 |
|
| 453 | 456 |
|
docs/component-library.md modified +4
@@ -76,6 +76,10 @@ OpenAgents style pack, every supported button variant survives compilation, no
| 76 | 76 |
|
| 77 | 77 |
|
| 78 | 78 |
|
| 79 |
|
|
| 80 |
|
|
| 81 |
|
|
| 82 |
|
|
| 79 | 83 |
|
| 80 | 84 |
|
| 81 | 85 |
|
lib/openagents_web/components/layouts/root.html.heex modified +1 -1
@@ -15,7 +15,7 @@
| 15 | 15 |
|
| 16 | 16 |
|
| 17 | 17 |
|
| 18 |
|
|
| 18 |
|
|
| 19 | 19 |
|
| 20 | 20 |
|
| 21 | 21 |
|
lib/openagents_web/plugs/content_security_policy.ex added +40
@@ -0,0 +1,40 @@
| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
lib/openagents_web/router.ex modified +2 -2
@@ -14,11 +14,11 @@ defmodule OpenAgentsWeb.Router do
| 14 | 14 |
|
| 15 | 15 |
|
| 16 | 16 |
|
| 17 |
|
|
| 18 |
|
|
| 19 | 17 |
|
| 20 | 18 |
|
| 21 | 19 |
|
| 20 |
|
|
| 21 |
|
|
| 22 | 22 |
|
| 23 | 23 |
|
| 24 | 24 |
|
test/openagents_web/home_controller_test.exs modified +28
@@ -36,6 +36,34 @@ defmodule OpenAgentsWeb.HomeControllerTest do
| 36 | 36 |
|
| 37 | 37 |
|
| 38 | 38 |
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
| 60 |
|
|
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 64 |
|
|
| 65 |
|
|
| 66 |
|
|
| 39 | 67 |
|
| 40 | 68 |
|
| 41 | 69 |
|