carlos / platform Public

edge-roll-blip: census proposal (Edge.Reload, RunWithActivatorReady; envelope internal/edge)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev fe5e9dc57052161113924df354af9d45bea4cb4e parent 01f1edc
3 files changed, +29 −0
  • docs/superpowers/notes/census-proposal-edge-roll-blip.md +21 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-edge-roll-blip.tsv +7 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/notes/census-proposal-edge-roll-blip.md b/docs/superpowers/notes/census-proposal-edge-roll-blip.md
new file mode 100644
index 000000000..df24f6f64
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-edge-roll-blip.md
@@ -0,0 +1,21 @@
+# Census approval: edge-roll-blip
+
+Ruling `census-ruling-edge-roll-blip`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `internal/edge/edge.go` `Edge.Reload` | body | unchanged (52) | the tcpProxy and multiProxy calls pass e.hold (the per-Edge localHold set once in newEdge): a loopback TCP upstream that refuses is redialled for up to 13 s and a probed route with a local upstream waits for prober readmission instead of answering 502/503 (#434 part B); edge-side dial policy only, no read added, same 52 sites |
+| `internal/edge/edge.go` `RunWithActivatorReady` | body | unchanged (5) | the :80/:443 (and dev) listeners are bound on the calling goroutine with net.Listen via listen()/listenAddr (same empty-address defaults as ListenAndServe) before the serve goroutines, which now call Serve/ServeTLS on them, and one log line names the bound addresses; no read added, same 5 sites |
+
+Envelopes re-pinned: `internal/edge`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Escalate if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. An escalation goes to the census owner as a decision.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `internal/edge/edge.go` `Edge.Reload`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-design-edge-rate-limit-358;basis=each route's upstream entry gains rate: e.parseRateSettings(t), the row's rate_limit column parsed once per reload; the one added site is that whole:Route pass of t (parseRateSettings is a new unit, classified in the decisions overlay); no other read added;rev3=census-ruling-certwarm-wake;basis=the single reload hook call becomes runReloadHooks(), which runs every registered hook in order (#386); no read added, same 57 sites (56 before #358 landed on main);rev3=census-ruling-edge-asset-cache-3;basis=each tenant reverse proxy built in the switch (the tunnel, fleet, socket and TCP arms, every *httputil.ReverseProxy) is installed behind assetScrubbedProxy, which hands the proxy an assetInformationalScrub writer so an app's 1xx (103) loses the asset cache's reserved headers (X-Carlos-Asset-Fill, -Fill-Ack, -Expires, Carlos-Cache) on every local path, as the backhaul already does (final review F6); a type check of the proxy it just built and a wrapper around it; static and status handlers untouched; read sites unchanged (57), offsets moved; no read added;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: after the path fold, a resolved platform alias takes its source's own upstream entry (same proxy, route, hibernating: the existing activator wake, lease and fence), keeping its own prefix map (none for a minted apex) and never inheriting the source's (Astra r2 P1); a refused alias, or one whose source has no entry, is dropped from the map (not served, not Allowed); the attached-hostname fold clears platformAlias;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test (generation proxy, hib, no-activator 404) is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance goes through the activator; binary rows unchanged
+- `internal/edge/edge.go` `RunWithActivatorReady`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-certwarm-wake;basis=registers the cert warm's nudge on OnReload and on the home map's new served-hosts wake (#386); nudge only sends on a buffered channel; no read added, same 5 sites
+
+Seal: `9e0c4a0c3c5299f68a046e989f49f35cfd2af82dbc76f2e5f00d15512f101a9d` → `ab592e9b44bdda98faab565c30fc8b36f57748e100ff79093c7341e62b95c892`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-edge-roll-blip.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 92fe53086..4521f0593 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -19,3 +19,4 @@ plan14-root-reads-nearest-region-followups.tsv f5afdacd495705841fcc8441eaefe0efb
plan14-root-reads-region-ha-p1b1.tsv 185170fe393cb565d18a3359dee5ace12676b3e1adecb8b638199d25ceeb779f
plan14-root-reads-rootfs-apps-3.tsv 4337475617b84cadf26e62a31387b7de1b6e9174bf5e6fa4d191f2d2a024e930
plan14-root-reads-retire-join-units-on-adopt.tsv 9e0c4a0c3c5299f68a046e989f49f35cfd2af82dbc76f2e5f00d15512f101a9d
+plan14-root-reads-edge-roll-blip.tsv ab592e9b44bdda98faab565c30fc8b36f57748e100ff79093c7341e62b95c892
diff --git a/internal/provision/testdata/plan14-root-reads-edge-roll-blip.tsv b/internal/provision/testdata/plan14-root-reads-edge-roll-blip.tsv
new file mode 100644
index 000000000..d6ad432fd
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-edge-roll-blip.tsv
@@ -0,0 +1,7 @@
+# Census overlay edge-roll-blip, written by census-propose (#369). census-ruling-edge-roll-blip, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-edge-roll-blip.md.
+# 2 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+@legacy f199794b321215a252cbb56c3ca1d34f5ce21d1c0928cffcaa35623e6761dc07 internal/edge/edge.go Edge.Reload legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-design-edge-rate-limit-358;basis=each route's upstream entry gains rate: e.parseRateSettings(t), the row's rate_limit column parsed once per reload; the one added site is that whole:Route pass of t (parseRateSettings is a new unit, classified in the decisions overlay); no other read added;rev3=census-ruling-certwarm-wake;basis=the single reload hook call becomes runReloadHooks(), which runs every registered hook in order (#386); no read added, same 57 sites (56 before #358 landed on main);rev3=census-ruling-edge-asset-cache-3;basis=each tenant reverse proxy built in the switch (the tunnel, fleet, socket and TCP arms, every *httputil.ReverseProxy) is installed behind assetScrubbedProxy, which hands the proxy an assetInformationalScrub writer so an app's 1xx (103) loses the asset cache's reserved headers (X-Carlos-Asset-Fill, -Fill-Ack, -Expires, Carlos-Cache) on every local path, as the backhaul already does (final review F6); a type check of the proxy it just built and a wrapper around it; static and status handlers untouched; read sites unchanged (57), offsets moved; no read added;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: after the path fold, a resolved platform alias takes its source's own upstream entry (same proxy, route, hibernating: the existing activator wake, lease and fence), keeping its own prefix map (none for a minted apex) and never inheriting the source's (Astra r2 P1); a refused alias, or one whose source has no entry, is dropped from the map (not served, not Allowed); the attached-hostname fold clears platformAlias;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test (generation proxy, hib, no-activator 404) is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance goes through the activator; binary rows unchanged;rev3=census-ruling-edge-roll-blip;basis=the tcpProxy and multiProxy calls pass e.hold (the per-Edge localHold set once in newEdge): a loopback TCP upstream that refuses is redialled for up to 13 s and a probed route with a local upstream waits for prober readmission instead of answering 502/503 (#434 part B); edge-side dial policy only, no read added, same 52 sites registry:Account@20309,registry:Alias@18478,registry:Alias@18565,registry:Alias@18801,registry:FleetBox@5526,registry:Health@7671,registry:Health@7797,registry:Host@13212,registry:Host@15119,registry:Host@15427,registry:Host@15454,registry:Host@16255,registry:Host@16521,registry:Host@18604,registry:Host@6080,registry:Host@8280,registry:Host@8375,registry:Host@8663,registry:Host@8689,registry:Host@8741,registry:Kind@11548,registry:Kind@11570,registry:Kind@8837,registry:Kind@8897,registry:Name@20299,registry:Prefix@16496,registry:Region@2252,registry:Socket@15435,registry:Socket@5633,registry:Socket@6144,registry:Status@1835,registry:Target@16508,registry:Tunnel@4574,registry:Tunnel@4630,registry:Version@11529,registry:Version@11631,whole:Fleet@20249,whole:Fleet@20278,whole:Route@130,whole:Route@15487,whole:Route@15494,whole:Route@15590,whole:Route@17399,whole:Route@4692,whole:Route@5590,whole:Route@6200,whole:Route@648,whole:Route@8814,whole:Route@8887,whole:Route@8947,whole:RouteAlias@18449,whole:RoutePath@16233 d8c48c887841a643a6d9db6d58c8b7213c8024e8b2f6c6c25f355db03413a9f8
+@legacy 528f68a4cbb7495c8fd1f8466db17b41c33a36bfcaaff49ae8ea8306d88004fa internal/edge/edge.go RunWithActivatorReady legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-certwarm-wake;basis=registers the cert warm's nudge on OnReload and on the home map's new served-hosts wake (#386); nudge only sends on a buffered channel; no read added, same 5 sites;rev3=census-ruling-edge-roll-blip;basis=the :80/:443 (and dev) listeners are bound on the calling goroutine with net.Listen via listen()/listenAddr (same empty-address defaults as ListenAndServe) before the serve goroutines, which now call Serve/ServeTLS on them, and one log line names the bound addresses; no read added, same 5 sites data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 bd0fe0c5d01e83e4de5bb755d791cf9e53168be3083424df147c879004c784bf
+internal/edge/edge.go Edge.Reload legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-design-edge-rate-limit-358;basis=each route's upstream entry gains rate: e.parseRateSettings(t), the row's rate_limit column parsed once per reload; the one added site is that whole:Route pass of t (parseRateSettings is a new unit, classified in the decisions overlay); no other read added;rev3=census-ruling-certwarm-wake;basis=the single reload hook call becomes runReloadHooks(), which runs every registered hook in order (#386); no read added, same 57 sites (56 before #358 landed on main);rev3=census-ruling-edge-asset-cache-3;basis=each tenant reverse proxy built in the switch (the tunnel, fleet, socket and TCP arms, every *httputil.ReverseProxy) is installed behind assetScrubbedProxy, which hands the proxy an assetInformationalScrub writer so an app's 1xx (103) loses the asset cache's reserved headers (X-Carlos-Asset-Fill, -Fill-Ack, -Expires, Carlos-Cache) on every local path, as the backhaul already does (final review F6); a type check of the proxy it just built and a wrapper around it; static and status handlers untouched; read sites unchanged (57), offsets moved; no read added;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: after the path fold, a resolved platform alias takes its source's own upstream entry (same proxy, route, hibernating: the existing activator wake, lease and fence), keeping its own prefix map (none for a minted apex) and never inheriting the source's (Astra r2 P1); a refused alias, or one whose source has no entry, is dropped from the map (not served, not Allowed); the attached-hostname fold clears platformAlias;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test (generation proxy, hib, no-activator 404) is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance goes through the activator; binary rows unchanged;rev3=census-ruling-edge-roll-blip;basis=the tcpProxy and multiProxy calls pass e.hold (the per-Edge localHold set once in newEdge): a loopback TCP upstream that refuses is redialled for up to 13 s and a probed route with a local upstream waits for prober readmission instead of answering 502/503 (#434 part B); edge-side dial policy only, no read added, same 52 sites registry:Account@20309,registry:Alias@18478,registry:Alias@18565,registry:Alias@18801,registry:FleetBox@5526,registry:Health@7671,registry:Health@7797,registry:Host@13212,registry:Host@15119,registry:Host@15427,registry:Host@15454,registry:Host@16255,registry:Host@16521,registry:Host@18604,registry:Host@6080,registry:Host@8280,registry:Host@8375,registry:Host@8663,registry:Host@8689,registry:Host@8741,registry:Kind@11548,registry:Kind@11570,registry:Kind@8837,registry:Kind@8897,registry:Name@20299,registry:Prefix@16496,registry:Region@2252,registry:Socket@15435,registry:Socket@5633,registry:Socket@6144,registry:Status@1835,registry:Target@16508,registry:Tunnel@4574,registry:Tunnel@4630,registry:Version@11529,registry:Version@11631,whole:Fleet@20249,whole:Fleet@20278,whole:Route@130,whole:Route@15487,whole:Route@15494,whole:Route@15590,whole:Route@17399,whole:Route@4692,whole:Route@5590,whole:Route@6200,whole:Route@648,whole:Route@8814,whole:Route@8887,whole:Route@8947,whole:RouteAlias@18449,whole:RoutePath@16233 d8c48c887841a643a6d9db6d58c8b7213c8024e8b2f6c6c25f355db03413a9f8
+internal/edge/edge.go RunWithActivatorReady legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-certwarm-wake;basis=registers the cert warm's nudge on OnReload and on the home map's new served-hosts wake (#386); nudge only sends on a buffered channel; no read added, same 5 sites;rev3=census-ruling-edge-roll-blip;basis=the :80/:443 (and dev) listeners are bound on the calling goroutine with net.Listen via listen()/listenAddr (same empty-address defaults as ListenAndServe) before the serve goroutines, which now call Serve/ServeTLS on them, and one log line names the bound addresses; no read added, same 5 sites data-literal@129,data-literal@148,data-literal@284,data-literal@417,file:Open@1013 bd0fe0c5d01e83e4de5bb755d791cf9e53168be3083424df147c879004c784bf
+@coverage internal/edge c49b61e4d73f72240764abffd6e6a72ec67d87686d64163bbb094b374742b008