| index d14dac4f8..8951cbaa0 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-path-routes-across-boxes.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-path-routes-across-boxes.tsv |
| @@ -1,6 +1,6 @@ |
| # Census overlay path-routes-across-boxes, written by census-propose (#369). census-ruling-path-routes-across-boxes, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-path-routes-across-boxes.md. |
| # 9 body, 6 sites, 5 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| -# 27 new dispositions: 3 reads re-frozen at their disposition with the claim, 23 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 1 other. |
| +# 30 new dispositions: 3 reads re-frozen at their disposition with the claim, 26 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 1 other. |
| @legacy 75dbec326bc35243b152bee43c4d40cc0d0d64615f3c86de30deabda4f0124c3 internal/edge/demo.go Edge.handleDemoRequest legacy accepted-legacy accepted-legacy;rev3=census-ruling-agent-start-demo-2;basis=demo.go:87-109 classifies request authority using the loaded refusal/upstream maps and checks the existing Route binding before protected dispatch. Five whole Route uses; malformed, unknown and expired names receive fixed policy-bearing refusals, never ordinary fallback. No new storage read.;rev3=census-ruling-agent-start-demo-3;basis=Check verified moved notices before route lookup so a purged source can still display its bounded notice. Census read-site delta: unchanged (5).;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 8: the upstream comes from selectUpstream(r, host, path), which is lookupUpstreamPath(host, path) unless the request carries a link pin; same reads;rev3=census-ruling-path-routes-across-boxes;basis=#186: reads the selection through requestSelection.sameBox() (a cross-box or case 3 selection answers the front's own local entry, as before #186) instead of dereferencing a *upstream; same demo checks on the same route fields; no read added whole:Route@414,whole:Route@481,whole:Route@522,whole:Route@738,whole:Route@780 f394ead598b9a011c9fe2ca5a9ca0609b0e5998f92c87fd9eb4ffd9d62c72d78 |
| @legacy 1b11107629eea59e6c5828b5dff0ec8a4c3ab432f9a87c32be413c418fccc3a6 internal/edge/demo.go Edge.redirectDemoRequest legacy accepted-legacy accepted-legacy;rev3=census-ruling-agent-start-demo-2;basis=demo.go:87-102 answers a plain-HTTP demo request with a 308 to the same host and path over HTTPS, with demo policy headers, only after the loaded Route, alias and serving checks pass; reads only the already-loaded Route (whole value), never dispatches, counts or opens anything.;rev3=census-ruling-agent-start-demo-3;basis=Serve signed moved notices at the demo redirect entry before redirecting; retain exact-host validation. Census read-site delta: unchanged (3).;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 8: the upstream comes from selectUpstream(r, host, path), which is lookupUpstreamPath(host, path) unless the request carries a link pin (never on :80); same reads;rev3=census-ruling-path-routes-across-boxes;basis=#186: reads the selection through requestSelection.sameBox() instead of dereferencing a *upstream; the demo refusal conditions are unchanged; no read added whole:Route@264,whole:Route@306,whole:Route@400 6399a0c3621be74b20c31fcbda3af2fff5cd15798d17de59ce2dcd042f3c73e2 |
| @legacy bd431d4b46a5652cef037343def78345d39bce0ededd71d8afe337f41c938682 internal/edge/edge.go Edge.holdsHost legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): new; reports from the already-published upstream map (e.upstreams.Load) whether the host is a hibernating route this edge holds streams for. In-memory map lookup of a loaded Route; no registry or bucket read.;rev3=census-ruling-path-routes-across-boxes;basis=#186: reads the published routeTable (e.table().hosts) instead of the bare map pointer; same lookup and hibernation check; no read added registry:Hibernate@148,whole:Route@150 1bce769bc7f93145fc629b89c6faf6e75894a1c998035e13fcade6a80354bcd0 |
| @@ -21,13 +21,16 @@ |
| @legacy 9ae42eee6b3598617815b0e683901e7af12f8a89568b23977d8254d84087c585 internal/edge/pathremote.go forwardHostsOf legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the set of forward-row hosts among Reload's routes; reads Route.Host registry:Host@147,whole:Route@109 b8d77715b0bbe687aa9497a7a9e1ecdf4b6d3cd90550f736c0da0d000d1be6af |
| @legacy 8b88241aff06cafa4bb012139d359376d4c3317f52f79b90eb14b8a0ef7afdf5 internal/edge/pathremote.go pathRowCache.load legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: returns the cached route_paths rows while registry.PathsGeneration equals the generation read with them, else ListPaths; never reuses on a generation error; reads the registry via the two callbacks Reload passes whole:PathsGen@207,whole:PathsGen@216,whole:PathsGen@334,whole:PathsGen@354,whole:RoutePath@233,whole:RoutePath@341,whole:RoutePath@359,whole:RoutePath@387 fdde1c747be9f4f0ce907a6ea24832a4363384268b1edfc2e9a614167bd5e89d |
| @legacy c83ef356a9ed8f3476e52bd511fdd19e1f54fe1a542fbc997a58a62f7467be13 internal/edge/pathselect.go Edge.pathMatch legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the old lookupUpstreamPath over one map (same 09-02 matcher, one hop) plus the same-box guard: refuses an attached-alias target and a target of another account than the front; reads in-memory entries whole:Route@1676,whole:Route@1710 024aa9b4387dad765d83558c2279091029aece9dba2e6b09f16a65871a18fc79 |
| -@legacy 70be17222eb4a54727303d7d06f9ccc5e504d5263b76f47c3c9005cd5c56ebc7 internal/edge/pathselect.go Edge.selectFromServedFront legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new, case 2: a served exact PathFront route's prefix names a target not on this box; Remote only when the home map's exact row for the target is PathTarget in the front's account; reads in-memory entries and the home map registry:Host@261,whole:Route@267,whole:Route@315,whole:Route@619 33ae312712bb52e229fe61ac9017535db8f29e0fc37aec465252f53d1f521297 |
| -@legacy 2fe83d09f9ff6c57ac9859b4260a8e011c0da623015342f3200c1c81ad99f139 internal/edge/pathselect.go requestSelection.haRouteName legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the name HA decisions are judged under: the selected local target's route host, else the request host; reads the in-memory selection registry:Host@89,whole:Route@94 13808cc0acd3206b6e9aaace4afbd22cdde9856f4fee0f941fd07fd3724bb877 |
| +@legacy 60aa56beccf72c95d8facb4d8e6240e9a2460baaf36c602d65f7b41044e3eed6 internal/edge/pathselect.go Edge.selectFromServedFront legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new, case 2: a served front that passes isFrontRoute and whose prefix names a target not on this box; Remote only when the home map's exact row for the target is PathTarget in the front's account; reads in-memory entries and the home map whole:Route@477 d10ddc96c36076255a75a8ac5ceaf2afc32656775b7eb38ae98b5d699447f983 |
| +@legacy e8dd0989749f650027245cf583853a476e329543c71c5ff8014c7d738be8edff internal/edge/pathselect.go Edge.selectUpstream legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: THE selection (pin, case 1, cases 2 and 3); on case 1 sets FrontAccount from release.RouteAccount of the front's in-memory entry when isFrontRoute holds; reads in-memory entries whole:Route@1179 be40d62594d60bf1dc82472ff81bf9b1e819bac28fe7477f6879c6f7f1c6a589 |
| +@legacy ccb88859a49607d0ad3b7059f0f5e9a28bd1734545f9d44691a728f75f4b9fea internal/edge/pathselect.go isFrontRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the front-route test on a box that serves host (cases 1 and 2): its exact in-memory entry, not an alias, platform alias or regional entry, route Host equal to host, and registry.PathFront; reads in-memory entries registry:Host@189,whole:Route@195,whole:Route@242 b006895450fe294774212e77ac91856a82016e9b86beafb97bf24bb467ac13b6 |
| +@legacy d62933f6b800582c4fd30acad3b9fa993f84504d27d82fc672348de5c228585e internal/edge/pathselect.go requestSelection.haRouteName legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the name HA decisions are judged under: the selected local target's route host when a front route's prefix selected it (FrontAccount set; whole-branch R1 P1-2), else the request host; reads the in-memory selection registry:Host@113,whole:Route@118 cd6b20e5f943224b8f67e2f597739322d6a765330b536f95ae660c21f68bb270 |
| @legacy 3685a7f410bd7d5f5779eccaff91f85b2023f223ac27e39d4c35e7550f40ce27 internal/edge/pathselect.go selectedEntry legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: resolves a platform-alias target to its instance's own entry (must be the same instance and not an alias), else refuses; reads in-memory entries registry:Host@134,registry:Host@196,registry:Host@215,whole:Route@137,whole:Route@201,whole:Route@218,whole:Route@251,whole:Route@261 3866fc70e74c2fab8da89b8451d0ed9f2cb0de69864cb0a8c0c303047260d108 |
| @legacy 76000593af05ca4ebe624b6413f030800d97529bb44f3f61627a7f15cf932081 internal/edge/pathselect.go unservedFrontTarget legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new, case 3: the local entry a prefix of an unserved front dispatches to, only when it is a PathTarget route of the front's account and not an attached alias or regional entry; reads in-memory entries registry:Host@292,whole:Route@295,whole:Route@346,whole:Route@380 41bbbf8888d820ee72b2f5dd197880e68325aaf31cd22041c35d28e3d84b1da5 |
| -@legacy 8b693ee3f28ae7c67a708b3824d5f4bd9d2d9b8313322afb601b8c9c24f2b624 internal/registry/pathroute.go PathFront legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: pure predicate: Kind instance or static, not forward, demo or sidecar; reads Route fields registry:Kind@36,registry:Kind@61 d8189237d173310f23503efbf13e8ab6214572355e8674fa63d12c3f99edd50b |
| -@legacy e5798b7b6f6905c01949e2215f89ec79ddd9bae450a72d2b4f6514fdf22b8664 internal/registry/pathroute.go PathTarget legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: pure predicate: Status ready and PathFront; reads Route fields registry:Status@41,whole:Route@75 2fce599ad278d696550bc354f26a08f670b8f68d51f0c196a5c880acf2723043 |
| -@legacy 4daf04f6ca0c9b760ab3e93701729b45739582128d3de90fb4ff4e834e771dd9 internal/registry/pathroute.go var PathEligibilityCases legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: a test table of literal Route values and expected PathFront/PathTarget answers, in a non-test file so other packages' tests share it; no runtime read whole:Route@1081,whole:Route@177,whole:Route@281,whole:Route@387,whole:Route@490,whole:Route@593,whole:Route@704,whole:Route@76,whole:Route@830,whole:Route@951 dd53fc1c476388a9ce7726a43258dce890b4c32758253967662e5aece6a3d6a0 |
| +@legacy 01435a3f77bd8aebfb56775d017022d40b982d30d6d3eade5acf49c22edc6422 internal/registry/pathroute.go PathFront legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: pure predicate: pathRouteKind and an empty ImportGate (an uncommitted import, open or rollback-closed, is never a cross-box front; whole-branch R1 P1-1); reads Route fields registry:ImportGate@61,whole:Route@54 3a4a1e5453123a15ab021e7205c07d89e585ab40a44cfd6301782a1625055cf1 |
| +@legacy b755cce25397184d41ac63814e32cb3f022098499b22fe772967a9c2a25e6479 internal/registry/pathroute.go PathTarget legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: pure predicate: Status ready and pathRouteKind (an import-gated target stays a target; its own box's import gate refuses it); reads Route fields registry:Status@41,whole:Route@79 65affaaeadba11ac36a219a60619776b03226cca4f554bf8663fc12d7391783d |
| +@legacy 20a0404b77c798fcb3085d0320367daf21c8d4339686e8ebab13235e5f0af613 internal/registry/pathroute.go pathRouteKind legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: pure predicate shared by PathFront and PathTarget: Kind instance or static, not forward, demo or sidecar; reads Route fields registry:Kind@40,registry:Kind@65 41176cbc7309fa8bdb8a9c415111e2135817c9bfba40f3b143829503cea17406 |
| +@legacy c8cf4d461ad1863929aebd660292259268afe5c484dfcbbd64a41789e9548411 internal/registry/pathroute.go var PathEligibilityCases legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: a test table of literal Route values (import-gated and rollback-closed rows included) and expected PathFront/PathTarget answers, in a non-test file so other packages' tests share it; no runtime read whole:Route@1081,whole:Route@1424,whole:Route@1563,whole:Route@177,whole:Route@281,whole:Route@387,whole:Route@490,whole:Route@593,whole:Route@704,whole:Route@76,whole:Route@830,whole:Route@951 1dd6b0df508d8f06c720d173a15659d868d9c32b33b2668fb106706c852969c5 |
| @legacy 075f9870859925124ab0d3937b1c2d8a2356c9bd48267cec2584eeeeef7aabe3 internal/registry/pathsgen.go Registry.ApplyPaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: writes a pass's route_paths upserts and deletes in one BEGIN IMMEDIATE transaction (500-row statements) and returns route_paths_gen before and after; remote form over the registry socket; reads and writes the registry SQLite only file:QueryRowContext@2038,file:QueryRowContext@516,registry:Account@1087,registry:App@1098,registry:Epoch@2091,registry:Epoch@570,registry:Host@1059,registry:Host@1508,registry:N@2081,registry:N@559,registry:PathGens@277,registry:PathGens@294,registry:Prefix@1067,registry:Prefix@1523,registry:Target@1077,registry:remote@114,registry:remote@146,whole:PathsGen@2166,whole:PathsGen@2174,whole:PathsGen@281,whole:PathsGen@298,whole:PathsGen@462,whole:PathsGen@470,whole:RoutePath@1000,whole:RoutePath@1028,whole:RoutePath@1230,whole:RoutePath@1500,whole:RoutePath@1508,whole:RoutePath@1523,whole:RoutePath@218,whole:RoutePath@231,whole:RoutePath@941,whole:remoteClient@116,whole:remoteClient@148 6f5bc23cc3a955fd02def8ecf48da3144c0744e0f34b9677d651dc046be9a20d |
| @legacy 655c87dbf7a8e4d42510f4617e760c64e1471995e6f916a3bd6b86b600d9cdcc internal/registry/pathsgen.go Registry.PathsGeneration legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: reads route_paths_gen (gen, epoch) and checks all three triggers exist and the epoch is set, else ErrPathsGenerationUnavailable; remote form over the registry socket; reads the registry SQLite only file:QueryRowContext@314,registry:Epoch@459,registry:Epoch@534,registry:Epoch@657,registry:N@453,registry:PathGen@185,registry:remote@61,registry:remote@93,registry:sql@314,whole:PathsGen@189,whole:PathsGen@677,whole:remoteClient@63,whole:remoteClient@95 f39d4f4f77b89971ae43e3a61e9953d5c4fa73e36c649b256fcdb9663354d8eb |
| @legacy f5a17d1e21ac05c331f7237b79c9165ea19b947aa854535c3b4b0c284d7ae8d3 internal/registry/pathsgen.go Registry.dispatchRemotePaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the registry socket server's route_paths methods (ListPaths, UpsertPath, DeletePath moved from dispatchRemote; ApplyPaths, PathsGeneration new); reads the remote request fields registry:Host@249,registry:Method@99,registry:P@203,registry:PathDeletes@357,registry:PathGen@399,registry:PathGens@289,registry:PathGens@306,registry:PathUpserts@342,registry:Paths@131,registry:Prefix@257,whole:PathsGen@293,whole:PathsGen@310,whole:PathsGen@403,whole:RoutePath@135,whole:RoutePath@205,whole:RoutePath@344 03ad1417e3cda2b4c5b22a9734b33275aa467a6ba8f8d3fb9c81cb112067ef24 |
| @@ -60,13 +63,16 @@ internal/edge/pathremote.go buildRemotePaths legacy accepted-legacy accepted-leg |
| internal/edge/pathremote.go forwardHostsOf legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the set of forward-row hosts among Reload's routes; reads Route.Host registry:Host@147,whole:Route@109 b8d77715b0bbe687aa9497a7a9e1ecdf4b6d3cd90550f736c0da0d000d1be6af |
| internal/edge/pathremote.go pathRowCache.load legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: returns the cached route_paths rows while registry.PathsGeneration equals the generation read with them, else ListPaths; never reuses on a generation error; reads the registry via the two callbacks Reload passes whole:PathsGen@207,whole:PathsGen@216,whole:PathsGen@334,whole:PathsGen@354,whole:RoutePath@233,whole:RoutePath@341,whole:RoutePath@359,whole:RoutePath@387 fdde1c747be9f4f0ce907a6ea24832a4363384268b1edfc2e9a614167bd5e89d |
| internal/edge/pathselect.go Edge.pathMatch legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the old lookupUpstreamPath over one map (same 09-02 matcher, one hop) plus the same-box guard: refuses an attached-alias target and a target of another account than the front; reads in-memory entries whole:Route@1676,whole:Route@1710 024aa9b4387dad765d83558c2279091029aece9dba2e6b09f16a65871a18fc79 |
| -internal/edge/pathselect.go Edge.selectFromServedFront legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new, case 2: a served exact PathFront route's prefix names a target not on this box; Remote only when the home map's exact row for the target is PathTarget in the front's account; reads in-memory entries and the home map registry:Host@261,whole:Route@267,whole:Route@315,whole:Route@619 33ae312712bb52e229fe61ac9017535db8f29e0fc37aec465252f53d1f521297 |
| -internal/edge/pathselect.go requestSelection.haRouteName legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the name HA decisions are judged under: the selected local target's route host, else the request host; reads the in-memory selection registry:Host@89,whole:Route@94 13808cc0acd3206b6e9aaace4afbd22cdde9856f4fee0f941fd07fd3724bb877 |
| +internal/edge/pathselect.go Edge.selectFromServedFront legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new, case 2: a served front that passes isFrontRoute and whose prefix names a target not on this box; Remote only when the home map's exact row for the target is PathTarget in the front's account; reads in-memory entries and the home map whole:Route@477 d10ddc96c36076255a75a8ac5ceaf2afc32656775b7eb38ae98b5d699447f983 |
| +internal/edge/pathselect.go Edge.selectUpstream legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: THE selection (pin, case 1, cases 2 and 3); on case 1 sets FrontAccount from release.RouteAccount of the front's in-memory entry when isFrontRoute holds; reads in-memory entries whole:Route@1179 be40d62594d60bf1dc82472ff81bf9b1e819bac28fe7477f6879c6f7f1c6a589 |
| +internal/edge/pathselect.go isFrontRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the front-route test on a box that serves host (cases 1 and 2): its exact in-memory entry, not an alias, platform alias or regional entry, route Host equal to host, and registry.PathFront; reads in-memory entries registry:Host@189,whole:Route@195,whole:Route@242 b006895450fe294774212e77ac91856a82016e9b86beafb97bf24bb467ac13b6 |
| +internal/edge/pathselect.go requestSelection.haRouteName legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the name HA decisions are judged under: the selected local target's route host when a front route's prefix selected it (FrontAccount set; whole-branch R1 P1-2), else the request host; reads the in-memory selection registry:Host@113,whole:Route@118 cd6b20e5f943224b8f67e2f597739322d6a765330b536f95ae660c21f68bb270 |
| internal/edge/pathselect.go selectedEntry legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: resolves a platform-alias target to its instance's own entry (must be the same instance and not an alias), else refuses; reads in-memory entries registry:Host@134,registry:Host@196,registry:Host@215,whole:Route@137,whole:Route@201,whole:Route@218,whole:Route@251,whole:Route@261 3866fc70e74c2fab8da89b8451d0ed9f2cb0de69864cb0a8c0c303047260d108 |
| internal/edge/pathselect.go unservedFrontTarget legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new, case 3: the local entry a prefix of an unserved front dispatches to, only when it is a PathTarget route of the front's account and not an attached alias or regional entry; reads in-memory entries registry:Host@292,whole:Route@295,whole:Route@346,whole:Route@380 41bbbf8888d820ee72b2f5dd197880e68325aaf31cd22041c35d28e3d84b1da5 |
| -internal/registry/pathroute.go PathFront legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: pure predicate: Kind instance or static, not forward, demo or sidecar; reads Route fields registry:Kind@36,registry:Kind@61 d8189237d173310f23503efbf13e8ab6214572355e8674fa63d12c3f99edd50b |
| -internal/registry/pathroute.go PathTarget legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: pure predicate: Status ready and PathFront; reads Route fields registry:Status@41,whole:Route@75 2fce599ad278d696550bc354f26a08f670b8f68d51f0c196a5c880acf2723043 |
| -internal/registry/pathroute.go var PathEligibilityCases legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: a test table of literal Route values and expected PathFront/PathTarget answers, in a non-test file so other packages' tests share it; no runtime read whole:Route@1081,whole:Route@177,whole:Route@281,whole:Route@387,whole:Route@490,whole:Route@593,whole:Route@704,whole:Route@76,whole:Route@830,whole:Route@951 dd53fc1c476388a9ce7726a43258dce890b4c32758253967662e5aece6a3d6a0 |
| +internal/registry/pathroute.go PathFront legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: pure predicate: pathRouteKind and an empty ImportGate (an uncommitted import, open or rollback-closed, is never a cross-box front; whole-branch R1 P1-1); reads Route fields registry:ImportGate@61,whole:Route@54 3a4a1e5453123a15ab021e7205c07d89e585ab40a44cfd6301782a1625055cf1 |
| +internal/registry/pathroute.go PathTarget legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: pure predicate: Status ready and pathRouteKind (an import-gated target stays a target; its own box's import gate refuses it); reads Route fields registry:Status@41,whole:Route@79 65affaaeadba11ac36a219a60619776b03226cca4f554bf8663fc12d7391783d |
| +internal/registry/pathroute.go pathRouteKind legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: pure predicate shared by PathFront and PathTarget: Kind instance or static, not forward, demo or sidecar; reads Route fields registry:Kind@40,registry:Kind@65 41176cbc7309fa8bdb8a9c415111e2135817c9bfba40f3b143829503cea17406 |
| +internal/registry/pathroute.go var PathEligibilityCases legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: a test table of literal Route values (import-gated and rollback-closed rows included) and expected PathFront/PathTarget answers, in a non-test file so other packages' tests share it; no runtime read whole:Route@1081,whole:Route@1424,whole:Route@1563,whole:Route@177,whole:Route@281,whole:Route@387,whole:Route@490,whole:Route@593,whole:Route@704,whole:Route@76,whole:Route@830,whole:Route@951 1dd6b0df508d8f06c720d173a15659d868d9c32b33b2668fb106706c852969c5 |
| internal/registry/pathsgen.go Registry.ApplyPaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: writes a pass's route_paths upserts and deletes in one BEGIN IMMEDIATE transaction (500-row statements) and returns route_paths_gen before and after; remote form over the registry socket; reads and writes the registry SQLite only file:QueryRowContext@2038,file:QueryRowContext@516,registry:Account@1087,registry:App@1098,registry:Epoch@2091,registry:Epoch@570,registry:Host@1059,registry:Host@1508,registry:N@2081,registry:N@559,registry:PathGens@277,registry:PathGens@294,registry:Prefix@1067,registry:Prefix@1523,registry:Target@1077,registry:remote@114,registry:remote@146,whole:PathsGen@2166,whole:PathsGen@2174,whole:PathsGen@281,whole:PathsGen@298,whole:PathsGen@462,whole:PathsGen@470,whole:RoutePath@1000,whole:RoutePath@1028,whole:RoutePath@1230,whole:RoutePath@1500,whole:RoutePath@1508,whole:RoutePath@1523,whole:RoutePath@218,whole:RoutePath@231,whole:RoutePath@941,whole:remoteClient@116,whole:remoteClient@148 6f5bc23cc3a955fd02def8ecf48da3144c0744e0f34b9677d651dc046be9a20d |
| internal/registry/pathsgen.go Registry.PathsGeneration legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: reads route_paths_gen (gen, epoch) and checks all three triggers exist and the epoch is set, else ErrPathsGenerationUnavailable; remote form over the registry socket; reads the registry SQLite only file:QueryRowContext@314,registry:Epoch@459,registry:Epoch@534,registry:Epoch@657,registry:N@453,registry:PathGen@185,registry:remote@61,registry:remote@93,registry:sql@314,whole:PathsGen@189,whole:PathsGen@677,whole:remoteClient@63,whole:remoteClient@95 f39d4f4f77b89971ae43e3a61e9953d5c4fa73e36c649b256fcdb9663354d8eb |
| internal/registry/pathsgen.go Registry.dispatchRemotePaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the registry socket server's route_paths methods (ListPaths, UpsertPath, DeletePath moved from dispatchRemote; ApplyPaths, PathsGeneration new); reads the remote request fields registry:Host@249,registry:Method@99,registry:P@203,registry:PathDeletes@357,registry:PathGen@399,registry:PathGens@289,registry:PathGens@306,registry:PathUpserts@342,registry:Paths@131,registry:Prefix@257,whole:PathsGen@293,whole:PathsGen@310,whole:PathsGen@403,whole:RoutePath@135,whole:RoutePath@205,whole:RoutePath@344 03ad1417e3cda2b4c5b22a9734b33275aa467a6ba8f8d3fb9c81cb112067ef24 |
| @@ -83,7 +89,7 @@ internal/registry/registry.go Registry.Fingerprint legacy accepted-legacy accept |
| internal/registry/registry.go Registry.migrate legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;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), on every registry open; a box CLI verb that opens the registry directly runs it as whoever runs the verb: census-ruling-seeded-instances's body with two more columns added to routes (incarnation and serving_seq, INTEGER NOT NULL DEFAULT 0, idempotent through the duplicate-column rule); self-serve moves 1 Task 7;rev3=census-ruling-rootfs-apps-2;basis=one more ALTER TABLE, routes ADD COLUMN runtime TEXT NOT NULL DEFAULT '', beside main's rate_limit, assets_off, asset_gen, incarnation and serving_seq (the last four from the merges of origin/main 3c33f2eb and 953b9fda); the same sixteen sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328/#329 plan 1 Task 4: three more ALTER TABLE statements in the existing loop, routes ADD COLUMN egress_allow, size and policy_expires_at, each TEXT NOT NULL DEFAULT '' and idempotent through the duplicate-column rule; the same sixteen sites, no read added.;rev3=census-ruling-region-ha-p1a;basis=one more ALTER TABLE in the existing loop: routes ADD COLUMN ha INTEGER NOT NULL DEFAULT 0, idempotent through the duplicate-column rule; the same sixteen sites, no read added;rev3=census-ruling-ha-p1a-433;basis=the registry's SQLite side as carlos (agent, registry child; a box CLI verb that opens the registry directly runs it as whoever runs it), on every registry open: the ALTER TABLE routes statements are now built from the one migration definition routeAddedColumns (addedColumn name, type, default; review r1 P2): for each entry without the Claim mark, "ALTER TABLE routes ADD COLUMN " + spec(), byte for byte the statements main runs, in main's order, under the same duplicate-column rule. +registry:Claim is that mark, +whole:addedColumn the struct. Every name, type and default is an in-binary literal; no statement added, removed or changed; no read added.;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: one more CREATE TABLE IF NOT EXISTS regional_domains (host TEXT PRIMARY KEY, target, account, app, region TEXT NOT NULL DEFAULT '', created_at INTEGER NOT NULL DEFAULT 0), beside wildcard_domains; the added sites are that statement (+file:Exec, +registry:sql), an in-binary literal; additive, no existing statement changed;rev3=census-ruling-region-ha-p1b3b-t;basis=Create local HA duty/replay tables and revision triggers in the existing registry connection; no new database path.;rev3=census-ruling-agent-start-demo-3;basis=Create moved-notice storage as a single (id, wire) row; fingerprints include the stored wire bytes. Census read-site delta: +file:Exec, +registry:sql.;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 1: calls migrateLinks after migrateHADuties (one CREATE TABLE IF NOT EXISTS link_channels, an in-binary literal); additive, no existing statement changed; linked deployments slice 1 Task 7: also runs migrateHomeLink (CREATE TABLE IF NOT EXISTS home_link and home_link_apps) after migrateLinks; additive, the box's own registry database, as carlos;rev3=census-ruling-account-subdomains;basis=one more CREATE TABLE IF NOT EXISTS account_namespaces (name TEXT PRIMARY KEY, account TEXT NOT NULL), an in-binary literal (+file:Exec, +registry:sql); additive, no existing statement changed;rev3=census-ruling-path-routes-across-boxes;basis=#186: calls migratePathsGen after route_paths is created (route_paths_gen table, epoch column, three triggers); adds a read of r.sql only file:Exec@1124,file:Exec@1855,file:Exec@212,file:Exec@2409,file:Exec@3057,file:Exec@3822,file:Exec@4325,file:Exec@51,file:Exec@5188,file:Exec@5364,file:Exec@761,registry:Claim@686,registry:sql@1124,registry:sql@1855,registry:sql@212,registry:sql@2409,registry:sql@3057,registry:sql@3822,registry:sql@4274,registry:sql@4325,registry:sql@51,registry:sql@5188,registry:sql@5364,registry:sql@761,whole:addedColumn@661 2ff5d0572166f09f57942ae2291ae9215c2d0fa36c943517b0bec9ef224fbce0 |
| @coverage . 3c6e0001c8f8a1f42e111818ebcb6dc0a787c94498697a9c69a7dbfed8ad2deb |
| @coverage internal/domains 45a4e7cf7cbbba5129d381d67f83df26d35941b2d66a7249f269f887946de3e1 |
| -@coverage internal/edge 52efc14f057ca8cca21bee7e0e4dcfd7c1aac2fb0be7b4985da060a37bedceb6 |
| +@coverage internal/edge b1fc4c9369072afeb6aa99957c0d8f9ad6e524f3d554126b0f473f64c47577d3 |
| @coverage internal/host b914741981b533165a5c990ab966021b32b15781d487eaa847eed474a5123578 |
| -@coverage internal/registry 4de497c49269424a691e5a90065567fa5b82ba702086e9e2990c81f1d2d743f0 |
| +@coverage internal/registry a0cf4a911d6dcf00a5bcdf379b52fd2338e08ad5e70c218748b87ab002a1a53f |
| @fields ?,A,Account,Accounts,AcquiredGeneration,AddedAt,Addr,Addrs,Adoption,Alias,Aliases,Alive,AllowAbsent,App,AppsDomain,Archives,Args,AssetGen,AssetsOff,Assigned,Assignment,At,Attempts,B,Backing,Basis,Binding,Blocked,Body,BoxLabel,Bucket,BuildState,By,Callback,CallbackError,CallbackFailed,Canary,Caps,CertExpiresAt,Changed,Channel,CheckedAt,Claim,ClaimIncarnation,ClaimOwner,ClaimOwnership,ClaimRowID,ClaimStamp,Class,Code,Column,ConnGen,Connected,Contents,Copies,Count,CreatedAt,Cursor,DBPath,DNSCheckedAt,DNSStatus,Deadline,Default,DeleteUncertain,Demand,DemoExpiresAt,DemoHost,DemoID,DemoLifetime,Departure,DepartureIID,DepartureRef,Departures,Digest,DoneBefore,DrainingSince,Due,DueAt,Duty,EdgesETag,EgressAllow,EnrolledAt,Env,EnvBefore,Environment,Epoch,Error,ErrorKind,ExcludeHosts,ExpectGood,ExpectOp,ExpectPair,Expected,ExpectedPair,F,Failed,FenceGen,Field,FillLegacyRegistration,Fleet,FleetBox,FleetBoxes,FleetLabel,Fleets,Found,From,FromDB,FromOp,FromSock,Front,Gate,Generation,GoodDemand,GoodDigest,GoodVersion,HA,HAJournal,Hash,Health,Held,Hibernate,Hint,Hints,HoldOp,HolderEpoch,HolderIID,HolderRef,HomeAccount,HomeApp,HomeHost,HomeLink,HomeLinkApp,HomeLinkApps,Host,Hosts,ID,IID,Id,IdValue,Identity,Idle,IdleSeconds,Import,ImportGate,Inbox,Incarnation,InventoryGeneration,Journal,Keep,Key,KeyFP,Keys,Kind,Label,LabelledAt,LastAt,LastBlocked,LastError,LastMs,LastPage,LastStatus,Lifetime,Limit,Link,LinkID,LinkSeen,LockETag,LockGeneration,Managed,MaxRun,MaxRunSeconds,MessageID,Method,Moved,Ms,N,Name,Names,Next,NextAt,NextAttempt,NextDue,NextGood,NextValue,NotBefore,Now,Number,Number64,Observation,Observed,ObservedValue,Offset,Old,Oldest,On,OnConflict,Op,Original,Owner,Ownership,P,Page,PagesOff,Pair,Path,PathDeletes,PathGen,PathGens,PathUpserts,Paths,PermissionAlerted,Phase,Platform,PolicyExpiresAt,Pool,Prefix,Prev,PrevVersion,ProofDigest,ProofKey,Provisioned,Pub,RDs,RateLimit,Raw,Receipt,ReceivedAt,RecordDigest,RecordKey,Ref,Region,Regional,Registration,Replica,ReplicaIncarnation,ReplicaLife,ReplicaRevision,Replicas,Replication,Rescan,Result,Retirement,RetryCount,Revision,RotateGen,RotatePending,Route,Routes,Row,Rows,Runtime,Scan,SecretsKeyFP,SecretsKeySetAt,SecretsKeySetBy,SecretsPub,Seed,SeedID,SeedSource,SeenAt,Seq,Sequence,ServingSeq,ServingURL,ServingVersion,Size,Slug,Socket,Spec,Sqid,StartedAt,State,Stateless,Status,StatusNamed,Steering,StringMap,Summary,T,TValue,Tags,Target,Targets,Text,Timer,Timers,Times,To,ToDB,ToOp,ToSock,Token,TokenHash,Tunnel,TunnelURL,Type,Unit,UnlinkPending,Unresolved,UpdateSettings,Ver,Version,ViewKey,Visited,W,Waiting,Wake,WakeDigest,WakeIncarnation,Walk,Wildcards,closed,conn,connect,ctx,d,dec,done,enc,full,input,output,path,readOnly,remote,slot,sql,wait |