carlos / platform Public

edge: narrow the demo referrer invariant's comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev df4f943713e1259d5fbfbf7d7a2d8b59d83f8b6d parent b862c6b
1 file changed, +6 −3
  • internal/edge/demo_referrer_test.go +6 −3
diff --git a/internal/edge/demo_referrer_test.go b/internal/edge/demo_referrer_test.go
index 35f9728e6..478c8ab63 100644
--- a/internal/edge/demo_referrer_test.go
+++ b/internal/edge/demo_referrer_test.go
@@ -16,9 +16,12 @@ import (
// same-origin check refused every order a visitor placed (2026-11-11
// recording). curl tests set Origin by hand and could not see it.
//
-// The invariant: on a demo page, a same-origin form POST carries the
-// page's real Origin, and no request to another origin carries a
-// referrer.
+// The invariant, while the edge-provided policy is the one in effect: on a
+// demo page, a same-origin form POST carries the page's real Origin, and
+// no request to another origin carries a referrer. The app's own HTML can
+// weaken the policy (a meta referrer tag, a referrerpolicy attribute), as
+// it could under no-referrer too; the edge does not rewrite documents for
+// that, and this test does not claim it.
// browserReferrerPolicy is the policy a browser applies from a
// Referrer-Policy header: the last recognised token in the comma list