| index 9a3b2eff3..c19e284ee 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-managed-fleets-1b.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-managed-fleets-1b.tsv |
| @@ -32,7 +32,7 @@ |
| @legacy 2d74456e69da112fc6b9b43472e8f77eb38ae38f7eb1638d7229f671a0ebf52d internal/registry/registry.go scanRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user): main's body with the two new columns scanned;rev3=census-ruling-design-edge-rate-limit-358;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user): main's body with the rate_limit column scanned into Route.RateLimit; the new kind is registry:RateLimit, one site; no other read;rev3=census-ruling-rootfs-apps-2;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=main's body with the runtime column scanned into Route.Runtime, before rate_limit; the new kind is registry:Runtime, one site; no other read; re-digested at the merge of origin/main 3c33f2eb: main's assets_off and asset_gen (edge asset cache plan 1) scanned beside runtime and rate_limit; routeColCount 59; re-digested again at the merge of origin/main 953b9fda: main's incarnation and serving_seq (self-serve moves plan 1) scanned after asset_gen; routeColCount 61;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=#328/#329 plan 1 Task 4: main's body with egress_allow, size and policy_expires_at scanned into Route.EgressAllow, Route.Size and Route.PolicyExpiresAt after serving_seq; the new kinds are registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each; routeColCount 64; no other read;rev3=census-ruling-region-ha-p1a;basis=scans one more column, ha, into Route.HA (+registry:HA); routeColCount 64 to 65; keeps legacy;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Tasks 2 and 5): scans three more columns, fleet_assigned, fleet_moved and fleet_label, into Route.Assigned, Moved and FleetLabel. Any root caller of Registry.Get sees three more fields, which no root decision reads (grep: only the activator start rule, edge, provision and registry read them). registry:Account@415,registry:Addr@183,registry:Addrs@505,registry:App@258,registry:Args@564,registry:AssetGen@874,registry:AssetsOff@1044,registry:Assigned@970,registry:Backing@340,registry:BuildState@789,registry:Canary@1098,registry:Caps@445,registry:CertExpiresAt@397,registry:Channel@288,registry:ClaimIncarnation@626,registry:ClaimOwner@662,registry:ClaimRowID@677,registry:ClaimStamp@647,registry:CreatedAt@548,registry:DBPath@219,registry:DNSCheckedAt@380,registry:DNSStatus@366,registry:EgressAllow@920,registry:Environment@429,registry:FleetBox@490,registry:FleetLabel@991,registry:Gate@539,registry:GoodDemand@736,registry:GoodDigest@721,registry:GoodVersion@705,registry:HA@1006,registry:Health@515,registry:Hibernate@1074,registry:HoldOp@692,registry:Host@145,registry:IdleSeconds@573,registry:ImportGate@821,registry:Incarnation@887,registry:Kind@163,registry:LastError@205,registry:MaxRunSeconds@589,registry:Moved@1022,registry:NextDue@328,registry:Platform@1144,registry:PolicyExpiresAt@945,registry:Pool@266,registry:PrevVersion@242,registry:Provisioned@1168,registry:RateLimit@848,registry:Region@277,registry:Replica@1195,registry:Replicas@607,registry:Replication@312,registry:Runtime@836,registry:Seed@472,registry:SeedSource@806,registry:ServingSeq@903,registry:ServingVersion@751,registry:Size@936,registry:Slug@154,registry:Socket@172,registry:Status@192,registry:StatusNamed@1119,registry:Steering@526,registry:Tunnel@454,registry:Unit@481,registry:UpdateSettings@770,registry:Version@230,whole:Route@1224 a84a3286cc44511e686ebc605ce99966f53b91a8c0f96ffcfc135a43ca8032f0 |
| @legacy 5d96fff3aa63ce72278fff08f4e7a85e795a91992e62c0d5f0b36d99bb481280 internal/activator/activator.go Service.doWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body (census ruling 292's legacy start mark and lease give-back; census ruling owed's pending record) with the seeded change ruled under census-ruling-seeded-instances (the refreshed row checked against the row the wake began from, twice; the seed's first upload recorded after the wake), and now one more line on a failed start: a start its pre-exec gate refused (launchNotStarted: the exec gate, the pending record or its recheck answered no before root was asked) is recorded as known not started (stopObservation.notStarted) instead of uncertain, only when the wake has started nothing else (wakeStartedNothing); otherwise it goes through cleanupFailedWake and its proofs. A refusal before its lease (step 1), which has started nothing, is recorded the same way. Read sites unchanged; no new read and no root decision;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=marks the end of each wake step on the woken instance's journal timer (wakeSteps: a.now() and a slice append, journal only); no read added, no step reordered;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: (1) after the restore it asks the backend for the replication class an HA restore imported from the host's published wake state (restoredReplication(rt)) and, if it differs, logs it and sets rt.Replication and the entry's route to it; (2) an HA lease of the stream class replicates with a 1 s monitor interval (SetMonitorInterval); (3) after Replicate, an HA replica opens the entry's files publisher (openEntryFiles(ctx, e, rt)) and starts it, and a publisher that will not open fails the wake through cleanupFailedWake; (4) every cleanupFailedWake call passes e; (5) final fix F1: the two start-error arms that gave the lease straight back (a start its pre-exec gate refused with nothing started, and the default arm) now call giveBackAfterStart(ctx, rt, w, lease), which gives a legacy lease back exactly as before and an HA one only over an empty host slice. New sites: registry:Replication x5 (the class compare, the log line, the assignment and the HA sync-interval check) and whole:Route x6 (rt handed to restoredReplication, openEntryFiles, the cleanup calls and giveBackAfterStart); no file read in this body; only adds a condition before an HA release, no check removed;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: the rootfs admission runs before the claim path and before Acquire on the refreshed row (rootfsWakeRefusal), again in full if a re-read under the lock changed any gate field, and a resident wake re-checks residentRunnable; for a rootfs row a held lease or refused config is an ownership refusal; a rootfs first boot (no good version, fresh) places the empty database under the lease (placeRootfsDB) and uploads it once (syncRootfsPlaceholder), while fresh with a good version is refused as a lost database; declared processes are logged after the wake (rootfsProcessesHook); binary rows unchanged; fix wave 1 and 2 (6189a9db, then the r2 ruling "refuse interrupted init"): a fresh rootfs first boot goes through rootfsFirstBoot (rootfsmarker.go) instead of placeRootfsDB alone: under the lease it reads the lifetime's first-boot marker from the hibernate bucket (present or unreadable refuses, present as errRootfsReplicaMissing), writes it create-only, reads it back (only a read back that finds it confirms it; a write conflict proves nothing), and only then places the database; a warm wake does nothing with the marker (fix wave 1's settleRootfsFirstBoot call and its whole:Route site are gone, no local pending record); adds refusals only, binary rows unchanged;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R3: (1) refuses (errWakeUnproven) while another entry's release record of the host is open; (2) a rootfs row with a plan or a pin reads its declared processes before the lease (declaredProcesses(rt, g): the existing staged-manifest read of ExecBackend.Processes, the manifest root's staging wrote, checked against the identity's path and digest) and refuses before Acquire on an error; (3) the staged-identity start runs releaseInWake(ctx, e, rt, id, lease) before startGenExe, under this wake's lease, and a release that did not pass fails the wake; (4) a rootfs row with no plan, no pin and no staged identity is refused, the lease given back, nothing started; (5) a start error whose release is not proven stopped hands the lease to the release record (oweWakeLeaseToRelease) instead of giving it back. New sites +whole:Route x2 (rt to declaredProcesses and releaseInWake); no new file read beyond the existing staged-manifest read; binary rows unchanged;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1: step 7 no longer calls rootfsProcessesHook (log only); it calls declareRootfsWorkers(e, rt, w), which registers the workers the wake's generation declares as pending and starts nothing (the resident tick starts them once the entry is awake under its lease watch); a worker is never a failure of the wake; the read of the declaration is the existing staged-manifest read (see registerRootfsWorkers); the same read sites in this body, no new read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: a successful acquire drops the host's holder-cache entry; same reads;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1 and the controller ruling after it): after the lease, doWake asks routeCurrentUnderLease(ctx, rt, e.worker) (the +whole:Route site), which re-reads the host's row from the box's own registry and, for a labelled row on a fleet box, reads the instance record once; a row that is not this box's and current gives the lease back and refuses the wake, nothing restored or started. Its checks up to the spawn ask wakeGoesOn(e), which adds the entry's in-memory retired mark (set by RetireExcept) to the fence test. Task 6a's awake record call is removed. Agent, not root; it only refuses more. registry:DBPath@1699,registry:DBPath@1715,registry:DBPath@1842,registry:DBPath@1853,registry:DBPath@29529,registry:GoodVersion@14700,registry:Host@1528,registry:Host@1603,registry:Host@1681,registry:Host@1833,registry:Host@2167,registry:Host@4117,registry:Host@577,registry:Host@6374,registry:Replication@13327,registry:Replication@13456,registry:Replication@13475,registry:Replication@13556,registry:Replication@29432,registry:Replication@29564,registry:Seed@18254,registry:Socket@1728,registry:Socket@1744,registry:Socket@1867,registry:Socket@1878,whole:Route@10871,whole:Route@11548,whole:Route@12429,whole:Route@13307,whole:Route@13558,whole:Route@14903,whole:Route@16188,whole:Route@1626,whole:Route@16380,whole:Route@17070,whole:Route@18355,whole:Route@18426,whole:Route@2062,whole:Route@2067,whole:Route@20838,whole:Route@2121,whole:Route@2127,whole:Route@2193,whole:Route@2201,whole:Route@22696,whole:Route@23342,whole:Route@24649,whole:Route@24803,whole:Route@25302,whole:Route@25372,whole:Route@25959,whole:Route@27044,whole:Route@27475,whole:Route@27683,whole:Route@27737,whole:Route@28666,whole:Route@28851,whole:Route@29641,whole:Route@30053,whole:Route@30102,whole:Route@30480,whole:Route@3152,whole:Route@31702,whole:Route@31797,whole:Route@3246,whole:Route@32638,whole:Route@3313,whole:Route@357,whole:Route@4007,whole:Route@562,whole:Route@5743,whole:Route@6002,whole:Route@6264,whole:Route@6269,whole:Route@6326,whole:Route@6332,whole:Route@6401,whole:Route@6409,whole:Route@6725,whole:Route@6786,whole:Route@6884,whole:Route@7708,whole:Route@8691,whole:Route@9265,whole:Route@9566 1a615573d46cafb210b31a7fdcd5b0cae84edfd32ede26cd1ed3b320ce1be47f |
| @legacy 3f01cc862370228e2c986aa553ec69a7871eccee2b91bd98f2ffe078f73d48bc internal/activator/backend_exec.go ExecBackend.restorePlain legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): body of the frozen ExecBackend.Restore, which is now its dispatcher, with the seed marker reconciled before the warm-cache check; same staging fallback and replica restore;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: first asks haRestore(ctx, rt) (+whole:Route x2: rt to haRestore and to restoreHA); an HA host restores through restoreHA (hawake.go, a new unit) and never through the warm cache or the staging fallback; an error there fails the restore; a non-HA host takes the unchanged path;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 3, rule 6 start rule): the +whole:Route sites are calls taking rt: reconcileAssignment before the seed-marker check (a labelled row's copy not kept under rt.Assigned is moved into <DataDir>/.superseded/<host>/, never deleted), startAllowed on the warm-cache, restored and fresh paths (a labelled row may refuse with ErrNothingToRestore), and establishAssignment after a restore and before a fresh boot (writes the <db>.assigned marker). Task 6a's record clear after a restore is removed. An unlabelled row (Assigned "") takes none of these. Agent, not root; it refuses more, never less. file:Stat@1179,registry:Host@370,whole:Route@1036,whole:Route@1116,whole:Route@1392,whole:Route@243,whole:Route@323,whole:Route@390,whole:Route@5629,whole:Route@5719,whole:Route@6296,whole:Route@6527,whole:Route@659 35c21389c435c3f11579e2e9e38f2b0e7a00203f77ef539024b84539134b7385 |
| -@legacy a6ace0b354932db168db0dbd27b16c6fc68c522800f15d76ac53213929f59268 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;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: after the alias fold, reads the regional_domains rows (e.reg.ListRegional; an error aborts the reload as every registry read here does) and applies them with foldRegional against the routes slice the same reload read; the added reads are that one registry list and the routes already read;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 4 and 6: the forward case (fleetProxy toward the binding's FleetBox, throttled refusal); one refusal check before the switch from FleetArmVerdict (sidecar not judged; a non-ready forward row refused; a forward row always judged by FleetServeEligible, any other row only where tunnels are on; an alias of a refused source refused with it); the accountless note; path rows of a forward host not folded; no alias folded onto a refused row; refusedHosts held through every fold. ListFleets and FleetChannelAuth read before the loop (+registry:FleetBox, +registry:Host x7, +whole:Route x3). Serving only; the hub's agent, not root. Review R1 finding 2: the switch reads verdict.Served (FleetArmVerdict) by host; the forward case and the fleet-placed case take their fleet from it (served.Fleet) instead of FleetPlacement(t.Region), and an admitted forward row not Served continues rather than falling through (+registry:Host, -registry:Region); the same rows take the same arms; no read added. Review R2: the switch is on DispatchArm(t, viaFleet, tunnels) (the order moved there unchanged: forward only when in Arm, own Tunnel, fleet, socket, addrs, static, status, else continue), the fleet cases read verdict.Arm (renamed from Served), and the platform-alias fold is foldPlatformAliases with the same take (source entry, own paths, alias marks) and the same refusal log (-registry:Kind x2, -registry:Socket, -registry:Tunnel, +whole:Route: those reads moved into DispatchArm); same rows, same arms, same entries; no read added.;rev3=census-ruling-fleet-routes-followups;basis=the owners map is now e.reg.FleetOwners() instead of ListFleets folded inline: the same fresh-connection ListFleets read and the same name->account map (-registry:Account, -registry:Name, -whole:Fleet x2 move into Registry.FleetOwners); no read added; same error path (abort the reload);rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3): the two fleet proxy builds pass the row to fleetBoxOf(t) instead of reading t.FleetBox (-registry:FleetBox x2, +whole:Route x2); fleetBoxOf answers FleetLabel as authoritative when set, else FleetBox; an authoritative box has no fallback to another of the fleet's channels (503 errFleetDark instead). The edge in the agent, not root; it routes to fewer channels, never more. registry:Alias@23639,registry:Alias@23726,registry:Alias@24306,registry:Health@12592,registry:Health@12718,registry:Host@10273,registry:Host@10330,registry:Host@10366,registry:Host@11014,registry:Host@13201,registry:Host@13296,registry:Host@13584,registry:Host@13610,registry:Host@13662,registry:Host@18115,registry:Host@20022,registry:Host@20330,registry:Host@20357,registry:Host@21158,registry:Host@21730,registry:Host@24060,registry:Host@24109,registry:Host@4537,registry:Host@4591,registry:Host@4641,registry:Host@5508,registry:Kind@16451,registry:Kind@16473,registry:Prefix@21705,registry:Socket@11078,registry:Socket@20338,registry:Status@4462,registry:Target@21717,registry:Tunnel@8889,registry:Version@16432,registry:Version@16534,whole:RegionalDomain@24776,whole:Route@10421,whole:Route@10529,whole:Route@11134,whole:Route@130,whole:Route@13735,whole:Route@13799,whole:Route@13850,whole:Route@20390,whole:Route@20397,whole:Route@20493,whole:Route@21593,whole:Route@22761,whole:Route@24768,whole:Route@3217,whole:Route@3275,whole:Route@5537,whole:Route@6413,whole:Route@6521,whole:Route@8951,whole:RouteAlias@23610,whole:RoutePath@21136 9725995383ae7c27bb9643adfe93de08e486b3442870e32d116ecbce830a87d5 |
| +@legacy ed24d7e4ff87e222931c1e851b390d5ffc5e4efa52276739a9054834b4a99da9 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;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: after the alias fold, reads the regional_domains rows (e.reg.ListRegional; an error aborts the reload as every registry read here does) and applies them with foldRegional against the routes slice the same reload read; the added reads are that one registry list and the routes already read;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 4 and 6: the forward case (fleetProxy toward the binding's FleetBox, throttled refusal); one refusal check before the switch from FleetArmVerdict (sidecar not judged; a non-ready forward row refused; a forward row always judged by FleetServeEligible, any other row only where tunnels are on; an alias of a refused source refused with it); the accountless note; path rows of a forward host not folded; no alias folded onto a refused row; refusedHosts held through every fold. ListFleets and FleetChannelAuth read before the loop (+registry:FleetBox, +registry:Host x7, +whole:Route x3). Serving only; the hub's agent, not root. Review R1 finding 2: the switch reads verdict.Served (FleetArmVerdict) by host; the forward case and the fleet-placed case take their fleet from it (served.Fleet) instead of FleetPlacement(t.Region), and an admitted forward row not Served continues rather than falling through (+registry:Host, -registry:Region); the same rows take the same arms; no read added. Review R2: the switch is on DispatchArm(t, viaFleet, tunnels) (the order moved there unchanged: forward only when in Arm, own Tunnel, fleet, socket, addrs, static, status, else continue), the fleet cases read verdict.Arm (renamed from Served), and the platform-alias fold is foldPlatformAliases with the same take (source entry, own paths, alias marks) and the same refusal log (-registry:Kind x2, -registry:Socket, -registry:Tunnel, +whole:Route: those reads moved into DispatchArm); same rows, same arms, same entries; no read added.;rev3=census-ruling-fleet-routes-followups;basis=the owners map is now e.reg.FleetOwners() instead of ListFleets folded inline: the same fresh-connection ListFleets read and the same name->account map (-registry:Account, -registry:Name, -whole:Fleet x2 move into Registry.FleetOwners); no read added; same error path (abort the reload);rev3=census-ruling-tunnel-websockets;basis=The ArmTunnel arm now records its tenancy (Account, App, Tunnel) copied from the row t that Reload already lists; no new registry query, no file read. Also the reload mutex taken first and held to return, five nil-in-production test hooks, and the sweepUpgrades call after the swap, which reads only the map Reload has just built (spec 7, Tasks 3 and 4).;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3): the two fleet proxy builds pass the row to fleetBoxOf(t) instead of reading t.FleetBox (-registry:FleetBox x2, +whole:Route x2); fleetBoxOf answers FleetLabel as authoritative when set, else FleetBox; an authoritative box has no fallback to another of the fleet's channels (503 errFleetDark instead). The edge in the agent, not root; it routes to fewer channels, never more. registry:Account@9444,registry:Alias@24246,registry:Alias@24333,registry:Alias@24913,registry:App@9460,registry:Health@13185,registry:Health@13311,registry:Host@10771,registry:Host@10828,registry:Host@10864,registry:Host@11607,registry:Host@13794,registry:Host@13889,registry:Host@14177,registry:Host@14203,registry:Host@14255,registry:Host@18708,registry:Host@20615,registry:Host@20923,registry:Host@20950,registry:Host@21765,registry:Host@22337,registry:Host@24667,registry:Host@24716,registry:Host@4701,registry:Host@4755,registry:Host@4805,registry:Host@5826,registry:Kind@17044,registry:Kind@17066,registry:Prefix@22312,registry:Socket@11671,registry:Socket@20931,registry:Status@4626,registry:Target@22324,registry:Tunnel@9304,registry:Tunnel@9475,registry:Version@17025,registry:Version@17127,whole:RegionalDomain@25555,whole:Route@10919,whole:Route@11027,whole:Route@11727,whole:Route@14328,whole:Route@14392,whole:Route@14443,whole:Route@20983,whole:Route@20990,whole:Route@21086,whole:Route@22200,whole:Route@23368,whole:Route@25547,whole:Route@294,whole:Route@3381,whole:Route@3439,whole:Route@5855,whole:Route@6731,whole:Route@6839,whole:Route@9366,whole:RouteAlias@24217,whole:RoutePath@21743 006faba36713e6d70771282762d0ede361ea9de04106470884b7d0bf6ffc8153 |
| @legacy 5014cf7b0b2ab31b3846237afbc69de77d8282627177fdf3326a0c2cffeb2f20 internal/registry/fleets.go Registry.migrateFleets legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-fleet-secrets-key;basis=fleet secrets key (#366): four more idempotent migration statements: ALTER TABLE fleets ADD COLUMN for secrets_pubkey, secrets_key_fp, secrets_key_set_at, secrets_key_set_by (duplicate column ignored) and CREATE UNIQUE INDEX IF NOT EXISTS fleets_secrets_key_fp ON fleets (secrets_key_fp) WHERE secrets_key_fp != ''; CREATE TABLE IF NOT EXISTS fleet_secrets_key_fps (fp primary key, fleet, account, at), the permanent reservation of every registered fingerprint to its fleet, and an idempotent backfill INSERT ... SELECT of the fleets rows' current non-empty fingerprints ON CONFLICT(fp) DO NOTHING; fixed SQL, no new read of any input;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 6b): two more idempotent statements, ALTER TABLE fleet_boxes ADD COLUMN draining_since INTEGER and labelled_at INTEGER (duplicate column ignored), the +file:Exec and +registry:sql sites. Fixed SQL, no input. Registry side, not root. file:Exec@1207,file:Exec@1699,file:Exec@1933,file:Exec@2471,file:Exec@2686,file:Exec@313,file:Exec@57,file:Exec@735,registry:sql@1207,registry:sql@1699,registry:sql@1933,registry:sql@2471,registry:sql@2686,registry:sql@313,registry:sql@57,registry:sql@735 7d2d5e945297abc2a6c97c2b75895e5c6602200a2bea505c4858f7d5a2d0da86 |
| internal/activator/activator.go Service.wake legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added;rev3=census-ruling-plans-4d-lapse;basis=cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's active probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: a refusal before the lease is reported once per change (noteRootfsRefusal) instead of a wake-failure event; the proc, generation and replica are installed through installProcLocked (which puts a resident under its lease watch before the fence); residency notes the outcome (noteResidentWakeLocked); same generation values;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.5]: the wake's context ceiling is wakeCeilingFor(e.route): the old 5 minutes for a binary row, 5 minutes plus runs.MaxTimeout for a rootfs row (room for a release inside the wake); new site +whole:Route (e.route to wakeCeilingFor, which reads Runtime only); no other change;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1): the wake's context is also cancelled before doWake when RetireExcept has marked the entry retired (e.retired, in memory under a.mu), as it is for a fence or a shutdown. Read sites unchanged (13). Agent, not root; it only refuses more. registry:Socket@7696,registry:Socket@7857,whole:Route@1047,whole:Route@2499,whole:Route@2590,whole:Route@2647,whole:Route@417,whole:Route@5944,whole:Route@7649,whole:Route@7698,whole:Route@7859,whole:Route@9182,whole:Route@9203 c61d54e942227517281b14652f2e04231961cfe327ab0d94762b0c34b146f4ce |
| internal/activator/activator.go type Service authority B,C,D,F,J4 rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added.;rev3=census-ruling-remote-instance-metrics;basis=gains tenancySeq, hostTenants and hostMixed, in-memory fields for Tenancies; no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more field, markers (markerRetry: an atomic running flag and the last log time) for retryOwedMarkers; no read added; merge of origin/main d7ae1d76: main's fields are kept as main has them (census-ruling-remote-instance-metrics: tenancySeq, hostTenants, hostMixed); this branch's change is the same as above;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: new fields for rootfs admission (rootfsArmed, rootfsSwept), the per-host gate ask and refusal memo, and residency state (lister, backoff, start ceiling, cursor, test seam); no read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: one new field, releaseOps (host to the in-memory release record, under a.mu); no read;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one new field, leaseNow (a clock seam for a worker start's headroom against the lease deadline, nil is the real clock); no read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: gains the holder cache and its single-flight state; no read;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): one field, Fleet (activator.FleetWake: the box's fleet state, not on a fleet by default, on a fleet with a known label and a record reader, or on a fleet with an invalid identity), set by the agent before Start and read only by routeCurrentUnderLease. No read in the declaration. Agent, not root. 415ec6dae7f2367684d32f0fb69591dc54c0048a08699c46767aeb696d6611e2 |
| @@ -71,12 +71,12 @@ internal/registry/registry.go scanRoute legacy accepted-legacy accepted-legacy;r |
| internal/registry/remote_dispatch.go Registry.dispatchRemote hint E2 rev3=census-ruling-self-serve-moves-1;basis=the registry child (carlos __registry-child, the service user a root pass forks): plan14-root-reads-e's mixed declaration (E2 adds only the ArtifactHosts read; every other arm is the local method of the same name), with three more write arms, SetHoldIfSeq, ReleaseHoldSeq and InstallLifetimeIf, each calling the local setter; no read operation added; self-serve moves 1 Task 7;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry child (carlos __registry-child, the service user a root pass forks);basis=#328/#329 plan 1 Task 4: one more write arm, SetPolicy, calling the local Registry.SetPolicy with the request's Host, EgressAllow, Size and PolicyExpiresAt (remoteRequest fields sent by the remote handle's holder); the new kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, plus one more registry:Host site, all of the request; no read operation added; the read-only worker never reaches it (serveRemote's method gate); no production root pass sends SetPolicy;rev3=census-ruling-region-ha-p1a;basis=the registry child (carlos __registry-child, the service user a root pass forks): one more write arm, SetHA, calling the local Registry.SetHA with the request's Host (+registry:Host); no read operation added; only the provision pass sends it;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 8: two new remote methods, UpsertUnlessRootfs (carlos add's guarded write) and ResidentInstances (the residency sweep's list), each calling the same-named Registry method;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: two more methods on the existing remote registry transport, ListRegional and ReplaceRegionalSet (request field RDs, response field Regional), each calling the local method of the same name, which validates its own input; no new kind of read;rev3=census-ruling-fleet-secrets-key;basis=one new case, SetFleetSecretsKey, reading the request's Name, Pub, KeyFP, By and At fields and calling SetFleetSecretsKey;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 1-2: three new cases (SetFleetBoxIf reads the request's Fleet and answers Changed; PutForward reads TValue, a whole Route; DeleteForward reads Host and answers Changed); SetFleetBox gone (+registry:Changed x2, +registry:Fleet, +registry:Host, +registry:TValue, +whole:Route). Each case calls the local writer with its own guards.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Tasks 2 and 6b): three more remote methods dispatched to their local forms, SetFleetBoxDraining (q.Fleet, q.Label, q.At, answering Number64), MarkFleetBoxLabelled (q.Fleet, q.Label, q.At) and SetFleetAssignment (q.Host, q.Assigned, q.Moved); remoteRequest gains Assigned and Moved. The registry child, not root. registry:A@7519,registry:Account@4416,registry:Accounts@3078,registry:Addr@4993,registry:Addrs@5001,registry:Alias@7567,registry:Alias@7631,registry:Alias@7719,registry:Aliases@7441,registry:Alive@9394,registry:Args@7143,registry:AssetGen@5143,registry:AssetsOff@5130,registry:Assigned@5621,registry:At@2232,registry:At@2621,registry:At@2706,registry:At@6515,registry:At@7650,registry:At@7728,registry:At@9142,registry:Attempts@9164,registry:B@2281,registry:Backing@4812,registry:BuildState@5380,registry:By@2226,registry:Changed@1996,registry:Changed@3501,registry:Changed@3588,registry:Changed@3677,registry:Changed@3748,registry:Changed@3852,registry:Changed@3939,registry:Changed@4032,registry:Changed@4114,registry:Changed@5968,registry:Changed@6105,registry:Changed@9074,registry:Channel@4476,registry:Channel@5811,registry:Channel@6360,registry:CheckedAt@6441,registry:Class@4931,registry:DoneBefore@9403,registry:Due@6844,registry:Due@6908,registry:Due@9186,registry:EgressAllow@5283,registry:Env@5879,registry:Env@6271,registry:Env@6371,registry:ExcludeHosts@8869,registry:ExcludeHosts@8964,registry:ExpectGood@6640,registry:ExpectOp@3556,registry:ExpectOp@3806,registry:ExpectPair@3986,registry:Expected@1250,registry:Expected@289,registry:Expected@762,registry:Expected@939,registry:F@1968,registry:F@2029,registry:Fleet@2054,registry:Fleet@2339,registry:Fleet@2421,registry:Fleet@2502,registry:Fleet@2603,registry:Fleet@2688,registry:Fleet@2777,registry:Fleet@6011,registry:FleetBoxes@2738,registry:Fleets@2112,registry:From@4587,registry:From@4648,registry:FromDB@4723,registry:FromOp@3644,registry:FromSock@4733,registry:Hash@5685,registry:Health@5010,registry:Host@1024,registry:Host@1135,registry:Host@272,registry:Host@3262,registry:Host@3303,registry:Host@3456,registry:Host@3532,registry:Host@3618,registry:Host@3710,registry:Host@3782,registry:Host@3888,registry:Host@3978,registry:Host@4066,registry:Host@4158,registry:Host@4408,registry:Host@4468,registry:Host@4526,registry:Host@4579,registry:Host@4640,registry:Host@4715,registry:Host@4804,registry:Host@4858,registry:Host@4923,registry:Host@4985,registry:Host@5063,registry:Host@5122,registry:Host@5210,registry:Host@5275,registry:Host@5372,registry:Host@5437,registry:Host@5498,registry:Host@5548,registry:Host@5613,registry:Host@5677,registry:Host@5738,registry:Host@5871,registry:Host@5925,registry:Host@6003,registry:Host@6140,registry:Host@6193,registry:Host@6423,registry:Host@6507,registry:Host@6564,registry:Host@6632,registry:Host@6721,registry:Host@6781,registry:Host@6836,registry:Host@6900,registry:Host@7084,registry:Host@7135,registry:Host@7202,registry:Host@7277,registry:Host@7340,registry:Host@7937,registry:Host@8063,registry:Host@8217,registry:Host@8505,registry:Host@8569,registry:Host@8628,registry:Host@8711,registry:Host@8794,registry:Host@9025,registry:Host@9110,registry:Host@9242,registry:Host@9323,registry:Host@9486,registry:Hosts@187,registry:Hosts@3141,registry:Hosts@5802,registry:Hosts@6262,registry:Hosts@6351,registry:Id@1244,registry:Id@1555,registry:Id@1654,registry:Id@1734,registry:Id@1885,registry:IdValue@2897,registry:Idle@7210,registry:Journal@1262,registry:Journal@1561,registry:Journal@1740,registry:Journal@442,registry:Keep@9502,registry:KeyFP@2217,registry:Kind@9331,registry:Kind@9494,registry:Label@2348,registry:Label@2430,registry:Label@2511,registry:Label@2612,registry:Label@2697,registry:Label@6020,registry:Limit@8860,registry:Limit@8955,registry:MaxRun@7218,registry:Method@151,registry:Moved@5633,registry:Ms@9158,registry:Name@1032,registry:Name@1143,registry:Name@2082,registry:Name@2202,registry:Name@2916,registry:Name@8577,registry:Name@8636,registry:Name@8719,registry:Name@9033,registry:Name@9118,registry:Name@9250,registry:Next@301,registry:NextAt@9176,registry:NextGood@6654,registry:NextValue@1814,registry:NextValue@1912,registry:Now@1167,registry:Now@7411,registry:Now@8853,registry:Now@8948,registry:Now@9041,registry:Number64@2561,registry:Number64@3004,registry:Number@9291,registry:Number@9362,registry:Number@9447,registry:Observed@365,registry:ObservedValue@643,registry:Old@1807,registry:Old@1905,registry:On@6789,registry:On@7285,registry:On@7348,registry:Op@3474,registry:Op@3550,registry:Op@3718,registry:Op@3800,registry:Op@3896,registry:Op@4074,registry:Op@4166,registry:Owner@280,registry:Owner@377,registry:Owner@660,registry:P@8171,registry:Pair@3818,registry:Pair@3902,registry:Pair@4000,registry:Path@8402,registry:Paths@8099,registry:PolicyExpiresAt@5306,registry:Prefix@8225,registry:Prev@6579,registry:Pub@2210,registry:RDs@8071,registry:RateLimit@5746,registry:Regional@7969,registry:Registration@1040,registry:Registration@1151,registry:Registration@8727,registry:Registration@9126,registry:Replica@5506,registry:Replicas@5445,registry:Retirement@1891,registry:Route@3239,registry:Routes@3197,registry:Routes@4192,registry:Routes@6942,registry:Routes@7009,registry:Routes@7378,registry:Rows@8513,registry:Seed@7092,registry:Size@5298,registry:Sqid@2908,registry:Sqid@2971,registry:Sqid@3050,registry:Status@1056,registry:Status@2520,registry:Status@3464,registry:Status@3540,registry:Status@3626,registry:Status@3790,registry:Status@4534,registry:Status@6431,registry:Status@7640,registry:Status@9148,registry:Status@9258,registry:Steering@5071,registry:StringMap@2814,registry:T@757,registry:T@8453,registry:T@851,registry:T@934,registry:TValue@3344,registry:TValue@3411,registry:TValue@6070,registry:Tags@2439,registry:Target@6201,registry:Targets@453,registry:Text@1460,registry:Text@1607,registry:Text@3018,registry:Text@8258,registry:Text@8321,registry:Timer@709,registry:Timer@8541,registry:Timer@891,registry:Timers@8764,registry:Timers@8823,registry:Timers@8912,registry:Times@9536,registry:To@4595,registry:To@4656,registry:ToDB@4745,registry:ToOp@3636,registry:ToSock@4753,registry:TokenHash@2357,registry:Tunnel@5933,registry:Unit@4866,registry:UpdateSettings@5218,registry:Ver@6572,registry:Ver@6729,registry:W@7871,registry:Wildcards@7765,whole:Account@3082,whole:ClaimOwnership@282,whole:ClaimOwnership@379,whole:ClaimOwnership@662,whole:ClaimRow@455,whole:ClaimRowArchive@561,whole:ClaimRowArchive@571,whole:ColdRows@1809,whole:ColdRows@1816,whole:ColdRows@1907,whole:ColdRows@1914,whole:Fleet@1970,whole:Fleet@2031,whole:Fleet@2058,whole:Fleet@2116,whole:FleetBox@2283,whole:FleetBox@2742,whole:GoodBuild@6642,whole:GoodBuild@6656,whole:Pair@3820,whole:Pair@3904,whole:Pair@3988,whole:Pair@4002,whole:RegionalDomain@7973,whole:RegionalDomain@8073,whole:Route@3201,whole:Route@3243,whole:Route@3346,whole:Route@3413,whole:Route@367,whole:Route@4196,whole:Route@4351,whole:Route@4357,whole:Route@6072,whole:Route@6946,whole:Route@7013,whole:Route@7382,whole:RouteAlias@7445,whole:RouteAlias@7521,whole:RoutePath@8103,whole:RoutePath@8173,whole:Timer@645,whole:Timer@713,whole:Timer@759,whole:Timer@8455,whole:Timer@8515,whole:Timer@853,whole:Timer@8545,whole:Timer@8768,whole:Timer@8827,whole:Timer@8916,whole:Timer@895,whole:Timer@936,whole:WildcardDomain@7769,whole:WildcardDomain@7873 8134a78481b3be708fec2f9daad6492074113a582c0f8e61f69ecf360df95424 |
| internal/activator/activator.go Service.doWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-292fix;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body (census ruling 292's legacy start mark and lease give-back; census ruling owed's pending record) with the seeded change ruled under census-ruling-seeded-instances (the refreshed row checked against the row the wake began from, twice; the seed's first upload recorded after the wake), and now one more line on a failed start: a start its pre-exec gate refused (launchNotStarted: the exec gate, the pending record or its recheck answered no before root was asked) is recorded as known not started (stopObservation.notStarted) instead of uncertain, only when the wake has started nothing else (wakeStartedNothing); otherwise it goes through cleanupFailedWake and its proofs. A refusal before its lease (step 1), which has started nothing, is recorded the same way. Read sites unchanged; no new read and no root decision;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=marks the end of each wake step on the woken instance's journal timer (wakeSteps: a.now() and a slice append, journal only); no read added, no step reordered;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: (1) after the restore it asks the backend for the replication class an HA restore imported from the host's published wake state (restoredReplication(rt)) and, if it differs, logs it and sets rt.Replication and the entry's route to it; (2) an HA lease of the stream class replicates with a 1 s monitor interval (SetMonitorInterval); (3) after Replicate, an HA replica opens the entry's files publisher (openEntryFiles(ctx, e, rt)) and starts it, and a publisher that will not open fails the wake through cleanupFailedWake; (4) every cleanupFailedWake call passes e; (5) final fix F1: the two start-error arms that gave the lease straight back (a start its pre-exec gate refused with nothing started, and the default arm) now call giveBackAfterStart(ctx, rt, w, lease), which gives a legacy lease back exactly as before and an HA one only over an empty host slice. New sites: registry:Replication x5 (the class compare, the log line, the assignment and the HA sync-interval check) and whole:Route x6 (rt handed to restoredReplication, openEntryFiles, the cleanup calls and giveBackAfterStart); no file read in this body; only adds a condition before an HA release, no check removed;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: the rootfs admission runs before the claim path and before Acquire on the refreshed row (rootfsWakeRefusal), again in full if a re-read under the lock changed any gate field, and a resident wake re-checks residentRunnable; for a rootfs row a held lease or refused config is an ownership refusal; a rootfs first boot (no good version, fresh) places the empty database under the lease (placeRootfsDB) and uploads it once (syncRootfsPlaceholder), while fresh with a good version is refused as a lost database; declared processes are logged after the wake (rootfsProcessesHook); binary rows unchanged; fix wave 1 and 2 (6189a9db, then the r2 ruling "refuse interrupted init"): a fresh rootfs first boot goes through rootfsFirstBoot (rootfsmarker.go) instead of placeRootfsDB alone: under the lease it reads the lifetime's first-boot marker from the hibernate bucket (present or unreadable refuses, present as errRootfsReplicaMissing), writes it create-only, reads it back (only a read back that finds it confirms it; a write conflict proves nothing), and only then places the database; a warm wake does nothing with the marker (fix wave 1's settleRootfsFirstBoot call and its whole:Route site are gone, no local pending record); adds refusals only, binary rows unchanged;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R, R3: (1) refuses (errWakeUnproven) while another entry's release record of the host is open; (2) a rootfs row with a plan or a pin reads its declared processes before the lease (declaredProcesses(rt, g): the existing staged-manifest read of ExecBackend.Processes, the manifest root's staging wrote, checked against the identity's path and digest) and refuses before Acquire on an error; (3) the staged-identity start runs releaseInWake(ctx, e, rt, id, lease) before startGenExe, under this wake's lease, and a release that did not pass fails the wake; (4) a rootfs row with no plan, no pin and no staged identity is refused, the lease given back, nothing started; (5) a start error whose release is not proven stopped hands the lease to the release record (oweWakeLeaseToRelease) instead of giving it back. New sites +whole:Route x2 (rt to declaredProcesses and releaseInWake); no new file read beyond the existing staged-manifest read; binary rows unchanged;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1: step 7 no longer calls rootfsProcessesHook (log only); it calls declareRootfsWorkers(e, rt, w), which registers the workers the wake's generation declares as pending and starts nothing (the resident tick starts them once the entry is awake under its lease watch); a worker is never a failure of the wake; the read of the declaration is the existing staged-manifest read (see registerRootfsWorkers); the same read sites in this body, no new read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: a successful acquire drops the host's holder-cache entry; same reads;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1 and the controller ruling after it): after the lease, doWake asks routeCurrentUnderLease(ctx, rt, e.worker) (the +whole:Route site), which re-reads the host's row from the box's own registry and, for a labelled row on a fleet box, reads the instance record once; a row that is not this box's and current gives the lease back and refuses the wake, nothing restored or started. Its checks up to the spawn ask wakeGoesOn(e), which adds the entry's in-memory retired mark (set by RetireExcept) to the fence test. Task 6a's awake record call is removed. Agent, not root; it only refuses more. registry:DBPath@1699,registry:DBPath@1715,registry:DBPath@1842,registry:DBPath@1853,registry:DBPath@29529,registry:GoodVersion@14700,registry:Host@1528,registry:Host@1603,registry:Host@1681,registry:Host@1833,registry:Host@2167,registry:Host@4117,registry:Host@577,registry:Host@6374,registry:Replication@13327,registry:Replication@13456,registry:Replication@13475,registry:Replication@13556,registry:Replication@29432,registry:Replication@29564,registry:Seed@18254,registry:Socket@1728,registry:Socket@1744,registry:Socket@1867,registry:Socket@1878,whole:Route@10871,whole:Route@11548,whole:Route@12429,whole:Route@13307,whole:Route@13558,whole:Route@14903,whole:Route@16188,whole:Route@1626,whole:Route@16380,whole:Route@17070,whole:Route@18355,whole:Route@18426,whole:Route@2062,whole:Route@2067,whole:Route@20838,whole:Route@2121,whole:Route@2127,whole:Route@2193,whole:Route@2201,whole:Route@22696,whole:Route@23342,whole:Route@24649,whole:Route@24803,whole:Route@25302,whole:Route@25372,whole:Route@25959,whole:Route@27044,whole:Route@27475,whole:Route@27683,whole:Route@27737,whole:Route@28666,whole:Route@28851,whole:Route@29641,whole:Route@30053,whole:Route@30102,whole:Route@30480,whole:Route@3152,whole:Route@31702,whole:Route@31797,whole:Route@3246,whole:Route@32638,whole:Route@3313,whole:Route@357,whole:Route@4007,whole:Route@562,whole:Route@5743,whole:Route@6002,whole:Route@6264,whole:Route@6269,whole:Route@6326,whole:Route@6332,whole:Route@6401,whole:Route@6409,whole:Route@6725,whole:Route@6786,whole:Route@6884,whole:Route@7708,whole:Route@8691,whole:Route@9265,whole:Route@9566 1a615573d46cafb210b31a7fdcd5b0cae84edfd32ede26cd1ed3b320ce1be47f |
| internal/activator/backend_exec.go ExecBackend.restorePlain legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): body of the frozen ExecBackend.Restore, which is now its dispatcher, with the seed marker reconciled before the warm-cache check; same staging fallback and replica restore;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: first asks haRestore(ctx, rt) (+whole:Route x2: rt to haRestore and to restoreHA); an HA host restores through restoreHA (hawake.go, a new unit) and never through the warm cache or the staging fallback; an error there fails the restore; a non-HA host takes the unchanged path;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 3, rule 6 start rule): the +whole:Route sites are calls taking rt: reconcileAssignment before the seed-marker check (a labelled row's copy not kept under rt.Assigned is moved into <DataDir>/.superseded/<host>/, never deleted), startAllowed on the warm-cache, restored and fresh paths (a labelled row may refuse with ErrNothingToRestore), and establishAssignment after a restore and before a fresh boot (writes the <db>.assigned marker). Task 6a's record clear after a restore is removed. An unlabelled row (Assigned "") takes none of these. Agent, not root; it refuses more, never less. file:Stat@1179,registry:Host@370,whole:Route@1036,whole:Route@1116,whole:Route@1392,whole:Route@243,whole:Route@323,whole:Route@390,whole:Route@5629,whole:Route@5719,whole:Route@6296,whole:Route@6527,whole:Route@659 35c21389c435c3f11579e2e9e38f2b0e7a00203f77ef539024b84539134b7385 |
| -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;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: after the alias fold, reads the regional_domains rows (e.reg.ListRegional; an error aborts the reload as every registry read here does) and applies them with foldRegional against the routes slice the same reload read; the added reads are that one registry list and the routes already read;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 4 and 6: the forward case (fleetProxy toward the binding's FleetBox, throttled refusal); one refusal check before the switch from FleetArmVerdict (sidecar not judged; a non-ready forward row refused; a forward row always judged by FleetServeEligible, any other row only where tunnels are on; an alias of a refused source refused with it); the accountless note; path rows of a forward host not folded; no alias folded onto a refused row; refusedHosts held through every fold. ListFleets and FleetChannelAuth read before the loop (+registry:FleetBox, +registry:Host x7, +whole:Route x3). Serving only; the hub's agent, not root. Review R1 finding 2: the switch reads verdict.Served (FleetArmVerdict) by host; the forward case and the fleet-placed case take their fleet from it (served.Fleet) instead of FleetPlacement(t.Region), and an admitted forward row not Served continues rather than falling through (+registry:Host, -registry:Region); the same rows take the same arms; no read added. Review R2: the switch is on DispatchArm(t, viaFleet, tunnels) (the order moved there unchanged: forward only when in Arm, own Tunnel, fleet, socket, addrs, static, status, else continue), the fleet cases read verdict.Arm (renamed from Served), and the platform-alias fold is foldPlatformAliases with the same take (source entry, own paths, alias marks) and the same refusal log (-registry:Kind x2, -registry:Socket, -registry:Tunnel, +whole:Route: those reads moved into DispatchArm); same rows, same arms, same entries; no read added.;rev3=census-ruling-fleet-routes-followups;basis=the owners map is now e.reg.FleetOwners() instead of ListFleets folded inline: the same fresh-connection ListFleets read and the same name->account map (-registry:Account, -registry:Name, -whole:Fleet x2 move into Registry.FleetOwners); no read added; same error path (abort the reload);rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3): the two fleet proxy builds pass the row to fleetBoxOf(t) instead of reading t.FleetBox (-registry:FleetBox x2, +whole:Route x2); fleetBoxOf answers FleetLabel as authoritative when set, else FleetBox; an authoritative box has no fallback to another of the fleet's channels (503 errFleetDark instead). The edge in the agent, not root; it routes to fewer channels, never more. registry:Alias@23639,registry:Alias@23726,registry:Alias@24306,registry:Health@12592,registry:Health@12718,registry:Host@10273,registry:Host@10330,registry:Host@10366,registry:Host@11014,registry:Host@13201,registry:Host@13296,registry:Host@13584,registry:Host@13610,registry:Host@13662,registry:Host@18115,registry:Host@20022,registry:Host@20330,registry:Host@20357,registry:Host@21158,registry:Host@21730,registry:Host@24060,registry:Host@24109,registry:Host@4537,registry:Host@4591,registry:Host@4641,registry:Host@5508,registry:Kind@16451,registry:Kind@16473,registry:Prefix@21705,registry:Socket@11078,registry:Socket@20338,registry:Status@4462,registry:Target@21717,registry:Tunnel@8889,registry:Version@16432,registry:Version@16534,whole:RegionalDomain@24776,whole:Route@10421,whole:Route@10529,whole:Route@11134,whole:Route@130,whole:Route@13735,whole:Route@13799,whole:Route@13850,whole:Route@20390,whole:Route@20397,whole:Route@20493,whole:Route@21593,whole:Route@22761,whole:Route@24768,whole:Route@3217,whole:Route@3275,whole:Route@5537,whole:Route@6413,whole:Route@6521,whole:Route@8951,whole:RouteAlias@23610,whole:RoutePath@21136 9725995383ae7c27bb9643adfe93de08e486b3442870e32d116ecbce830a87d5 |
| +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;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: after the alias fold, reads the regional_domains rows (e.reg.ListRegional; an error aborts the reload as every registry read here does) and applies them with foldRegional against the routes slice the same reload read; the added reads are that one registry list and the routes already read;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 4 and 6: the forward case (fleetProxy toward the binding's FleetBox, throttled refusal); one refusal check before the switch from FleetArmVerdict (sidecar not judged; a non-ready forward row refused; a forward row always judged by FleetServeEligible, any other row only where tunnels are on; an alias of a refused source refused with it); the accountless note; path rows of a forward host not folded; no alias folded onto a refused row; refusedHosts held through every fold. ListFleets and FleetChannelAuth read before the loop (+registry:FleetBox, +registry:Host x7, +whole:Route x3). Serving only; the hub's agent, not root. Review R1 finding 2: the switch reads verdict.Served (FleetArmVerdict) by host; the forward case and the fleet-placed case take their fleet from it (served.Fleet) instead of FleetPlacement(t.Region), and an admitted forward row not Served continues rather than falling through (+registry:Host, -registry:Region); the same rows take the same arms; no read added. Review R2: the switch is on DispatchArm(t, viaFleet, tunnels) (the order moved there unchanged: forward only when in Arm, own Tunnel, fleet, socket, addrs, static, status, else continue), the fleet cases read verdict.Arm (renamed from Served), and the platform-alias fold is foldPlatformAliases with the same take (source entry, own paths, alias marks) and the same refusal log (-registry:Kind x2, -registry:Socket, -registry:Tunnel, +whole:Route: those reads moved into DispatchArm); same rows, same arms, same entries; no read added.;rev3=census-ruling-fleet-routes-followups;basis=the owners map is now e.reg.FleetOwners() instead of ListFleets folded inline: the same fresh-connection ListFleets read and the same name->account map (-registry:Account, -registry:Name, -whole:Fleet x2 move into Registry.FleetOwners); no read added; same error path (abort the reload);rev3=census-ruling-tunnel-websockets;basis=The ArmTunnel arm now records its tenancy (Account, App, Tunnel) copied from the row t that Reload already lists; no new registry query, no file read. Also the reload mutex taken first and held to return, five nil-in-production test hooks, and the sweepUpgrades call after the swap, which reads only the map Reload has just built (spec 7, Tasks 3 and 4).;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3): the two fleet proxy builds pass the row to fleetBoxOf(t) instead of reading t.FleetBox (-registry:FleetBox x2, +whole:Route x2); fleetBoxOf answers FleetLabel as authoritative when set, else FleetBox; an authoritative box has no fallback to another of the fleet's channels (503 errFleetDark instead). The edge in the agent, not root; it routes to fewer channels, never more. registry:Account@9444,registry:Alias@24246,registry:Alias@24333,registry:Alias@24913,registry:App@9460,registry:Health@13185,registry:Health@13311,registry:Host@10771,registry:Host@10828,registry:Host@10864,registry:Host@11607,registry:Host@13794,registry:Host@13889,registry:Host@14177,registry:Host@14203,registry:Host@14255,registry:Host@18708,registry:Host@20615,registry:Host@20923,registry:Host@20950,registry:Host@21765,registry:Host@22337,registry:Host@24667,registry:Host@24716,registry:Host@4701,registry:Host@4755,registry:Host@4805,registry:Host@5826,registry:Kind@17044,registry:Kind@17066,registry:Prefix@22312,registry:Socket@11671,registry:Socket@20931,registry:Status@4626,registry:Target@22324,registry:Tunnel@9304,registry:Tunnel@9475,registry:Version@17025,registry:Version@17127,whole:RegionalDomain@25555,whole:Route@10919,whole:Route@11027,whole:Route@11727,whole:Route@14328,whole:Route@14392,whole:Route@14443,whole:Route@20983,whole:Route@20990,whole:Route@21086,whole:Route@22200,whole:Route@23368,whole:Route@25547,whole:Route@294,whole:Route@3381,whole:Route@3439,whole:Route@5855,whole:Route@6731,whole:Route@6839,whole:Route@9366,whole:RouteAlias@24217,whole:RoutePath@21743 006faba36713e6d70771282762d0ede361ea9de04106470884b7d0bf6ffc8153 |
| internal/registry/fleets.go Registry.migrateFleets legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-fleet-secrets-key;basis=fleet secrets key (#366): four more idempotent migration statements: ALTER TABLE fleets ADD COLUMN for secrets_pubkey, secrets_key_fp, secrets_key_set_at, secrets_key_set_by (duplicate column ignored) and CREATE UNIQUE INDEX IF NOT EXISTS fleets_secrets_key_fp ON fleets (secrets_key_fp) WHERE secrets_key_fp != ''; CREATE TABLE IF NOT EXISTS fleet_secrets_key_fps (fp primary key, fleet, account, at), the permanent reservation of every registered fingerprint to its fleet, and an idempotent backfill INSERT ... SELECT of the fleets rows' current non-empty fingerprints ON CONFLICT(fp) DO NOTHING; fixed SQL, no new read of any input;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 6b): two more idempotent statements, ALTER TABLE fleet_boxes ADD COLUMN draining_since INTEGER and labelled_at INTEGER (duplicate column ignored), the +file:Exec and +registry:sql sites. Fixed SQL, no input. Registry side, not root. file:Exec@1207,file:Exec@1699,file:Exec@1933,file:Exec@2471,file:Exec@2686,file:Exec@313,file:Exec@57,file:Exec@735,registry:sql@1207,registry:sql@1699,registry:sql@1933,registry:sql@2471,registry:sql@2686,registry:sql@313,registry:sql@57,registry:sql@735 7d2d5e945297abc2a6c97c2b75895e5c6602200a2bea505c4858f7d5a2d0da86 |
| -@coverage . 72c07efa951bb35eac60f704e1afeb7da4224608ced01e395f9fd433c4ee5374 |
| +@coverage . 5fe34eb66eed4348b733bdfa8883c55185c213bda95c0265bbe87321f5fcf397 |
| @coverage internal/activator e4b12ea58c39000f84f3c687891933573b64d0cbcf4c45e22f3cb39a9124b651 |
| -@coverage internal/edge 095d70162367b564b90e8b1361d42fad0fd01c5779062098cf2a0446b72c575d |
| -@coverage internal/host 6cf3cb862ebba88827c26b18dee152c4a85d6ff397e9ebecebaffdee734bea5b |
| +@coverage internal/edge 6c7b58a499079da5fcb4d110135ee546b3917cb808453764619bce513c15d8b1 |
| +@coverage internal/host 5b39a530b7b83006a11b2740aa5589c0caf3ecf84966786b09290c8fe508e0b9 |
| @coverage internal/lease 772314b303f47818872d5540226c4043508b9849dbfcc4a2edf2ed90ff5ce4b7 |
| @coverage internal/provision 9600992800511e93ba9b756c2fa12c00a5e499530c4c2fa054003cca642e5601 |
| @coverage internal/registry 25b3f1d118d7c64b1c8255e8dacb204ffed1a37b87dcdebbd28d0aaa10aeb718 |