census: re-pin the root envelope after the copy correction
039f23f8 changed instances_pages.go's printed "off" line (copy review EPC-4/13/16). printSetPages reads nothing, so no census unit changed and only the root envelope (.) moved. census-propose refuses a claim for a unit it does not see, so the change is recorded as a comment in the claims file; the overlay is re-proposed under the same name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+2
−1
docs/superpowers/notes/census-claims-edge-page-cache-1.tsv+1 −0internal/provision/testdata/plan14-root-reads-edge-page-cache-1.tsv+1 −1
CI passed — run details
Intent
Attributed to this commit: 91.8 g CO₂e (5,080,002 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on edge-page-cache-1, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/notes/census-claims-edge-page-cache-1.tsv b/docs/superpowers/notes/census-claims-edge-page-cache-1.tsv| index b202155be..3829a219f 100644 |
| --- a/docs/superpowers/notes/census-claims-edge-page-cache-1.tsv |
| +++ b/docs/superpowers/notes/census-claims-edge-page-cache-1.tsv |
| @@ -69,3 +69,4 @@ cli.go:runInstances Task 12: one more arm in the instances verb switch, "set-pag |
| internal/edge/pagecache.go:Edge.ownsHost purgeOwns over one snapshot of the live route table (e.current()), for the control socket's purge bridge (ledger R10); in memory, no file or registry read |
| internal/edge/pagecache.go:pageServedHere a pure predicate over a live-table snapshot and a route row: pageRowEligible(rt), and the snapshot's entry for rt.Host (the registry:Host site) is the same instance (sameInstance), not served over a tunnel, with no path rows; asked by pageRouteEligible and applyPageRoutes; in memory |
| internal/edge/purge_header.go:purgeOwns a pure predicate over a live-table snapshot (ledger R10): whether host resolves (lookupIn) to owner's instance (sameInstance), or path-routes to owner.Host (pathRoutesTo) while the snapshot's entry for owner.Host is owner's instance; in memory; it only narrows which LRU entries a purge may remove |
| +# 039f23f8 (copy review EPC-4/13/16): instances_pages.go:printSetPages prints the corrected "off" line ("... will keep no copies of its pages. servers pick this up within a minute."); a printed string only, no read, so no census unit changed and only the root envelope (.) is re-pinned. census-propose refuses a claim for a unit it does not see, hence this comment rather than a claim line. |
diff --git a/internal/provision/testdata/plan14-root-reads-edge-page-cache-1.tsv b/internal/provision/testdata/plan14-root-reads-edge-page-cache-1.tsv| index 4fb6656f0..7ac88dba0 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-edge-page-cache-1.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-edge-page-cache-1.tsv |
| @@ -134,7 +134,7 @@ internal/edge/edge.go Edge.Reload legacy accepted-legacy accepted-legacy;rev3=J1 |
| internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here.;rev3=census-ruling-edge-protection-2;basis=runs the guard, a pure in-memory matcher on r.URL.Path and RawQuery (internal/edgeguard), once per request after the meter and observer defer and before the password gate, the upgrade branch, the cache and the activator, for a request that is not a door call, a backhauled door hop or a tunnel delivery; a matched block answers a 404 itself through guardDecide; the two new sites are one expression, up.route.Kind == "static" (a static route this box serves checks only the hard tier here and leaves the probe tier to serveTree), a read of the route row the edge already resolved; no new kind of read;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25);rev3=census-ruling-static-headers;basis=the shared response cache is no longer looked up or filled for a static-kind route: one more read of the route row the edge already resolved (up.route.Kind == "static") in the cacheable expression; a refusal only, nothing new opened or followed;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2 (N-HA10): one call, frontForwardHA, right after the route lookup's !ok block and before the login POST; same reads;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 4: loginPost and cacheable treat a forward row as not this box's to answer (IsForward(), +whole:Route x2): no login form and no shared cache for a forward host. Serving only.;rev3=census-ruling-tunnel-websockets;basis=Deletes the Carlos-Upgrade marker header from incoming requests and puts the upgrade admission (host, path, the entry tenancy, all in hand) on a tunnel arm request. For a login POST on an ungated ArmTunnel row it reads the visitor request body (bounded by gate.MaxFormBody, 413 past it; a request body, not a file) and resolves next against the entry Reload built (Gate, Route); the bytes pass on only when loginPassesThrough holds (spec 7, Tasks 3, 5 and 6).;rev3=census-ruling-console-protection-tab;basis=one more call in the observer defer, observeGuardCount(up.route, out), beside the observeRecords call that files the guard Match: it passes on the route row the defer already holds (+whole:Route) and the request outcome to the usage meter, which counts the check in memory. Called whether or not the request was unbilled, as observeRecords is. Nothing is opened, read or followed; no new kind of read; no check, refusal or serving decision changes.;rev3=census-ruling-probe-burst-limit;basis=answers a probe-burst notice POST (serveBurstNotice) ahead of every route for a non-door caller; builds the guard state for up.route and stamps its account and app (RouteAccount, App) for the cool-down's this-app/other-app label; for a catalogue match on a non-static or tunnelled route, offers the burst rule (in-memory limiter, burstDecide: 429 or a watch verdict, never a block for a fleet or forward row); the observer defer calls noteBurst(up.route, ...); the added sites are the route value already in hand (+registry:App, +whole:Route x5); no new root read or write kind;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): parses the request's query once (stripHoldMarker) to record the carlos_hold=1 mark in the request context; calls classifyHold on the upstream already resolved from the loaded map (the +whole:Route is that in-memory Route), including a second pass for a login POST; gives a marked request on a door-refused route the plain 404; adds the hold branch (planThrottleAdmit, rateAdmit, serveHeld) after the gate; and excludes marked requests from the shared cache. Reads only the request and the already-loaded upstream map; no registry or bucket read added.;rev3=census-ruling-region-ha-p3a;basis=Complete the P3a cut: an exact peer name with no dial target answers the approved admission 503 before local wildcard dispatch or asset serving. ExactHome and lookupHome stop fallback at a present non-dial entry; backhaulTo refuses an empty target before signing or dialing. Retain Task 3 local admission and fixed platform/unit exemptions. Two added whole Route uses feed the local in-memory admission predicate; existing Route values and store/path reads are unchanged.;rev3=census-ruling-stateless-coordinator-route;basis=P24/P25: POST only, exact /api/fleet/replicas/ prefix on the reserved tunnel host calls the existing local console proxy only for an unescaped, already-clean path; malformed forms remain on the hub. No new read sites relative to origin/main. Merge with main 3487d6f6 retains its region HA admission checks before routing and after login target lookup, its empty-home refusal, and their two existing whole:Route reads; these change this unit's digest relative to the previously approved branch tip 92b24a7d.;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: pass the already-resolved Route to the reserved replica-probe handler after acceptHop and existing admissionRefuses, requiring tunnel context plus private marker and refusing door/backhaul ingress. Added whole Route use only; scrub marker before forwarding; HA calls remain unchanged.;rev3=census-ruling-region-ha-p3b;basis=Resolve local aliases/catch-alls with cached peer name ownership before serving. Add registry Account/App/ClaimStamp/Host/Incarnation/ServingSeq and six whole Route references for NameClaim; inputs are agent registry rows/edges publications used by unprivileged edge, not root permits. Closed owners retain names and return 503; aware remote owner cannot fall through on missing transport, while legacy hop/door behavior remains. Merge 45cebde4 retains authenticated replica probes after local admission and before ordinary name resolution; probe authentication still requires the tunnel context.;rev3=census-ruling-agent-start-demo-2;basis=edge.go:1901 enters the protected demo path before ordinary exits; :2012-2015 rechecks the selected marked Route after lookup. Added whole Route use routes demos through serving checks, counters and policy; no new registry query or file open in this unit.;rev3=census-ruling-demo-api-site-route;basis=Reserve the configured site API namespace after hop verification and control-header scrubbing, before ordinary static, cache, billing and tenant dispatch. Validate hop field shape and delegate only allowlisted operations to the dedicated console path with verified client attribution and console admission. The alias helper enables HTTP/1.1 full duplex so an early console refusal does not wait for upload EOF. Existing 56 read sites unchanged; no new registry, bucket or file read.;rev3=census-ruling-region-ha-g2-fixes;basis=Consult HA ingress after region admission and before miss/alias backhaul; no new direct read; routing-only metadata does not create an upstream.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3/W4: backhaul and door calls pass the owner the door checked into backhaulTo; the §6.5 holder follow (once, GET/HEAD or an unswitched upgrade, no body) and one connect-failure fallback dial only boxes in the holder region's view (same Region/Placement/DataBucket, HomeEligible, fresh) for that owner. Holder name comes only from the TLS-verified signed hop answer; app-set X-Carlos-Holder stays stripped. Routing only; the receiving box still re-checks the lease. No new read site.;rev3=census-ruling-edge-page-cache-1;basis=attaches an in-memory page mark holder to every request to an instance route (the +registry:Kind check of up.route.Kind), wraps the hold and upgrade branches in pageDiagnostics, asks servePage after the plan throttle (a hit answered from the page index over the asset store), keeps an opted-in instance out of the LRU (pagesOptedIn), wraps the response in the page writer, and wraps the proxy's writer in assetInformationalScrub on the remaining arms; the page reads are in the new pagecache.go units file:ReadAll@16764,registry:Account@8267,registry:App@23657,registry:App@8291,registry:ClaimStamp@8321,registry:Gate@15738,registry:Gate@28048,registry:Gate@28108,registry:Gate@28166,registry:Host@28151,registry:Host@8498,registry:ImportGate@36464,registry:Incarnation@8356,registry:Kind@20691,registry:Kind@22519,registry:Kind@25957,registry:Kind@36406,registry:Kind@36435,registry:ServingSeq@8390,whole:Route@15633,whole:Route@15744,whole:Route@18561,whole:Route@19345,whole:Route@19803,whole:Route@19995,whole:Route@20694,whole:Route@22522,whole:Route@23583,whole:Route@23649,whole:Route@23660,whole:Route@23913,whole:Route@24008,whole:Route@24084,whole:Route@24128,whole:Route@24430,whole:Route@24460,whole:Route@25960,whole:Route@26245,whole:Route@28051,whole:Route@28111,whole:Route@28154,whole:Route@28169,whole:Route@29196,whole:Route@31484,whole:Route@36409,whole:Route@36438,whole:Route@36467,whole:Route@36499,whole:Route@38933,whole:Route@6341,whole:Route@6440,whole:Route@6535,whole:Route@8270,whole:Route@8294,whole:Route@8324,whole:Route@8359,whole:Route@8393,whole:Route@8501 d0d929f6d6c5c8635fda6599f25a909902973b94da8ae09d6c2dae4e20c7c2a9 |
| internal/edge/purge_header.go Edge.applyPurgeHeader legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-page-cache-1;basis=takes the asked Host, takes one route table snapshot (e.current()) for the whole declaration, resolves owners through resolvePurgeOwnersIn and, with no Carlos-Purge-Host, the page hosts through pageHostsFor (the +whole:Route site); then applyPurgeTargets; in-memory only registry:Host@1448,whole:Route@1303,whole:Route@1408 7edbfc8b501f83fc667bca48743a2d309d457dae00ee1dedbee8166412ba2c42 |
| internal/edge/purge_header.go Edge.resolvePurgeHosts legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-page-cache-1;basis=now a wrapper: resolvePurgeOwnersIn(e.current(), rt, declared) and the hosts of its answer; its read sites moved verbatim into resolvePurgeOwnersIn, so they show as removed here; no read added whole:Route@140 d8bbc036cf3b5959e4af7ff4f38de9d30f3f32c6f0dd29ba10bc515ba177c2ab |
| -@coverage . ef6acb79e68293c6388cffbacbfda3a3a0f14aa5e2507a56db1f36983bb93820 |
| +@coverage . e1a3820d6e93c1a09387a07c1114500d7150aab7ca875bf43f9517ddb96ebdbd |
| @coverage internal/activator 306c9930c6a3375d7eb77ac802d42396bffaea83991a90e0ef19b3ba7bad307a |
| @coverage internal/assetcache 961aebe547eac250194e91f8bd1d819977b7f6163ccb8a31725d93573f2a6c54 |
| @coverage internal/edge 6597b91a8043ecfe78e1caecbc68ef641460030e69049f0ded2191b104e97a7e |