| new file mode 100644 |
| index 000000000..d14dac4f8 |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-path-routes-across-boxes.tsv |
| @@ -0,0 +1,89 @@ |
| +# 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. |
| +@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 |
| +@legacy 4e8f95b89d3534685b7f05e186e5b15b42ab42a09a34b150698d14d0629a145d internal/edge/haingress.go Edge.routeHAIngress legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Resolve exact/alias/catchall authority and bind projected primary identity for HA forwarding. A zero projection permits an existing non-activator-owned upstream to continue its ordinary path; managed rows still refuse. New in-memory Host and route reads only.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 2: just before frontForwardHAIngress, the handover decision moveGate runs on the already-resolved primary route rt (whole Route passed in memory); it can only hold the request, answer it with an existing refusal or forward it to a confirmed holder over the existing signed hop; no store or filesystem read added;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 8: the handover gate's forwardable argument is also false for a linked request; no read added;rev3=census-ruling-path-routes-across-boxes;basis=#186 spec 5.7: takes routeName beside host; the HA projection, name resolution, local claim and blocked set are judged under routeName (the selected local target's route host when a prefix selected one, else host); forwards still carry and sign the wire host; no new read source registry:Account@1412,registry:Account@2813,registry:Account@3067,registry:Account@3087,registry:Account@545,registry:App@1429,registry:App@2836,registry:App@3101,registry:App@3117,registry:App@569,registry:ClaimStamp@664,registry:HA@1150,registry:HA@1977,registry:HA@2054,registry:HA@2364,registry:HA@3237,registry:Host@1241,registry:Host@1299,registry:Host@1930,registry:Host@2036,registry:Host@2346,registry:Host@2556,registry:Host@277,registry:Host@2789,registry:Host@3039,registry:Host@3056,registry:Host@400,registry:Incarnation@1450,registry:Incarnation@2863,registry:Incarnation@3155,registry:Incarnation@3179,registry:Incarnation@596,registry:Pool@3127,registry:Pool@3144,registry:ServingSeq@1478,registry:ServingSeq@2897,registry:ServingSeq@3197,registry:ServingSeq@3220,registry:ServingSeq@630,whole:Route@1788,whole:Route@1863,whole:Route@1980,whole:Route@2015,whole:Route@2130,whole:Route@2213,whole:Route@2319,whole:Route@280,whole:Route@2999,whole:Route@3029,whole:Route@3042,whole:Route@3070,whole:Route@3104,whole:Route@3130,whole:Route@3158,whole:Route@3200,whole:Route@3240,whole:Route@3483,whole:Route@3636,whole:Route@403,whole:Route@548,whole:Route@572,whole:Route@599,whole:Route@633,whole:Route@667,whole:Route@943 30770461c4d643a4f7aacde5148ef81e3a30b1858184fa6ffda384220c1e0bab |
| +@legacy 1d920d64dffa0db833ef75ae863fa663366713806fed6a4d8ecec6bf0e15af61 internal/edge/pagecache.go Edge.pageRouteEligible legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-page-cache-1;basis=the route half of the page rule: row eligible (pageRowEligible), not via a tunnel, no plan throttle, no path rows on the asked host or the primary (live table lookups), the serving build's asset declarations known and not covering path (the policy's in-memory manifest cache, DeclaresPrefix), and current inputs known (Cache.CurrentInputs); no direct file or registry read; final fix wave: the row, tunnel and primary-entry tests move into pageServedHere over the same live table snapshot (the -registry:Host site is the primary lookup that moved there); the same rule, and the primary entry must now also be the same instance (sameInstance); no read added;rev3=census-ruling-path-routes-across-boxes;basis=#186: also refuses page caching when up.front is set (a case 3 target selected for a front this box does not serve); stricter only; no read added registry:Host@422,registry:Host@440,registry:Version@703,whole:Route@152,whole:Route@199,whole:Route@324,whole:Route@426,whole:Route@798 891351f669865b48e652b20ed4e9cb4e63b0ff7b3350a3042c4652535913ed87 |
| +@legacy 8f7ba7d7137a1e5654f11a272b76409852f2a2fdceccffb0e7dc61239ba28660 internal/edge/pagecache.go pageServe.stillCurrent legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-page-cache-1;basis=before a recorded page is published, re-resolves host and path in the live table (lookupUpstreamPath), checks the same instance and scope, re-runs pageRouteEligible and compares the current and process inputs with the recording's; in memory;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 8: re-resolves through selectUpstream(ps.r, host, path) instead of lookupUpstreamPath (identical without a link pin; a linked request never records a page); same reads;rev3=census-ruling-path-routes-across-boxes;basis=#186: re-selects through requestSelection.sameBox(), so a cross-box or case 3 selection never matches the recorded page; no read added registry:Host@155,registry:Host@173,registry:Host@383,whole:Route@159,whole:Route@179,whole:Route@387 9d2fcf4c12fa44ed0708e26613703cf4da9edc1ae8ffe737796fce39cc67261f |
| +@legacy 6d891a3752ecdd6303a9eb4e8c15de59db0837f5c8fe83e8385efd1545daa51f internal/edge/replicaconsole.go Edge.serveReplicaConsole legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-coordinator-route;basis=Reads existing in-memory route fields to select a unique accountless console.service local upstream; refuses missing or ambiguous console, tenant routes, remote and tunnel upstreams. Reuses proxy and version wrapper; leaves fleet identity authentication at console.;rev3=census-ruling-retry-after-503;basis=the missing/ambiguous-console 503s go through UnavailableHeader (adds Retry-After 2 and answer/box headers); selection unchanged; no read added;rev3=census-ruling-replica-console-account;basis=when operator config CARLOS_REPLICA_CONSOLE_ADDR (hub host.env, read once in enableTunnelsFromEnv, refused at load unless a literal loopback IP and port) is set, replica calls go to a proxy built only from that address, stamping the hub build as X-Carlos-Version; no route field is read, so records can neither choose, redirect nor disable the endpoint. Unset, the selection is byte-identical to main (accountless console.service local route). Witnesses TestReplicaConsoleConfiguredEndpoint (distinct destinations, injected and rewritten rows, endpoint down), TestReplicaConsoleUnconfiguredIgnoresAccountRows, TestParseReplicaConsoleAddr, TestReplicaConsoleAddrFromHostEnv. Same reads, no new read source, no write.;rev3=census-ruling-path-routes-across-boxes;basis=#186: iterates e.table().hosts (the routeTable snapshot) instead of the bare map pointer; same filter on the same route fields; no read added registry:Account@328,registry:App@348,registry:Host@269,registry:Socket@446,registry:Unit@371,whole:Route@250 da4b55f97fc3f4084f1fbb0e97130ce3ddc40601fe7d989912821ddc1d375d23 |
| +@legacy bbf239573bd0637ce11afc5af3a4d42d8931b4a724c5592ff38a034fde165780 internal/registry/registry.go Registry.DeletePath legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-staticcheck-sa1012;basis=nil context replaced by context.Background(), behaviour unchanged;rev3=census-ruling-path-routes-across-boxes;basis=#186: the DELETE statement moved to the deletePathSQL constant (pathsgen.go), text unchanged; no read added file:Exec@227,registry:remote@63,registry:remote@93,registry:sql@227,whole:remoteClient@65,whole:remoteClient@95 ec5f66a08beab95dab86bada289cf43c989ca6b595f75b4aadf2d13ffce3f5ad |
| +@legacy 7abee55346e12a21178de8da399d6530dd6ce9bf8e9e19a44bcf2e47549ab9e4 internal/registry/registry.go Registry.UpsertPath legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-staticcheck-sa1012;basis=nil context replaced by context.Background(), behaviour unchanged;rev3=census-ruling-path-routes-across-boxes;basis=#186: the upsert statement moved to the upsertPathSQL constant (pathsgen.go), text unchanged; no read added file:Exec@197,registry:Account@251,registry:App@262,registry:Host@223,registry:Prefix@231,registry:Target@241,registry:remote@55,registry:remote@85,registry:sql@197,whole:RoutePath@157,whole:RoutePath@160,whole:remoteClient@57,whole:remoteClient@87 0d7b4014aa37f3ba2b2f1e00a1d71619dce7f9aa4d82fb2c8dd007088f3a1cc8 |
| +@legacy 10e6ee79b974bde2d00e0b423942e9eaf1dd7652b2889d9916504ead48d1e957 internal/domains/aliases.go derivePaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: per-claim route_paths derivation, moved out of ReconcileAliasesReport and now run on every box; refuses sidecar-suffix hosts and targets, a local host route of another account/app, a local target of another account, an unready local target; a non-local target derives its row (checked at request time); cap and sorted order kept; reads the claim and local route rows registry:App@631,registry:App@827,registry:Status@3288,whole:Route@2736,whole:Route@3175,whole:Route@3250,whole:Route@608,whole:Route@675,whole:Route@818 41774598b69878db736c5b157f800e7ef1229a539ab290f27947960d6abe09cd |
| +@legacy f887b413442bc87ddae4ec7f16b2b0704748d00ff6e5d0bd8a3dfbe37eba6394 internal/domains/pathwrite.go newPathSet legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: an empty desired route_paths set with a sha256 digest; no registry read whole:RoutePath@46 ee5f4d2b26b04dc29a9e29ed93eb2aa5af6bbf401f41a59cf0d64726ff1a31e2 |
| +@legacy 183db5c46634becea2cb202e5afda47efa6189a04fcffea9a972db93b603775d internal/domains/pathwrite.go pathSet.add legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: adds one desired RoutePath and length-prefixes its five fields into the digest; reads the RoutePath fields only registry:Account@160,registry:App@171,registry:Host@132,registry:Host@54,registry:Prefix@140,registry:Prefix@68,registry:Target@150,whole:RoutePath@49,whole:RoutePath@80 31af76b8d2e124694a767aa37a27d45cb042200179307c36fc144bf4bac3202a |
| +@legacy 734652c135d0f06bc231b5b4c1cdaced62ba4a705c09eeca04f04c911e04515d internal/domains/pathwrite.go writePaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: brings route_paths to the desired set: skips the pass when digest and PathsGeneration equal the memo, else reads ListPaths, upserts changed rows and deletes undesired ones (kept for unread claims or noRemoval) in one ApplyPaths transaction; reads the registry's route_paths and its generation registry:Host@1120,registry:Host@517,registry:Host@853,registry:Host@897,registry:Prefix@1128,registry:Prefix@531,registry:Prefix@867,whole:PathsGen@1533,whole:PathsGen@1543,whole:PathsGen@1549,whole:PathsGen@1555,whole:PathsGen@1630,whole:PathsGen@297,whole:RoutePath@1154,whole:RoutePath@1228,whole:RoutePath@1333,whole:RoutePath@460,whole:RoutePath@490,whole:RoutePath@503,whole:RoutePath@543,whole:RoutePath@609,whole:RoutePath@632,whole:RoutePath@656,whole:RoutePath@663,whole:RoutePath@730,whole:RoutePath@739,whole:RoutePath@756,whole:RoutePath@765,whole:RoutePath@815,whole:RoutePath@848 d6c8118aff6318324494b0dab1a96d1f3302b5df3dc506f2ce7e698fbc68675c |
| +@legacy f57de830e5d612ff04172d0779f28268780451112064826826d6e69cdc269611 internal/edge/pathhop.go Edge.nameOwnerVerdict legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: ServeHTTP's ownership decision moved out of ServeHTTP with no side effect (held / elsewhere / refused / local), judged on the front's own entry; a case 3 target is served only while its front mark holds, else refused; shared with upgradeSelection; reads the same route fields the old inline block read, plus the in-memory home map registry:Account@723,registry:App@747,registry:ClaimStamp@776,registry:Host@951,registry:Incarnation@811,registry:ServingSeq@845,whole:Route@726,whole:Route@750,whole:Route@779,whole:Route@814,whole:Route@848,whole:Route@954 7bccacc301e7a69a710ef258fca98fc8008401f3e18239a17fdae39334371665 |
| +@legacy 65ddb463b30ec6cd6b3de0d66d6ae9982639a64108629574995e0c7622ae5af1 internal/edge/pathremote.go Edge.heldNames legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: names this Reload keeps out of its map on purpose (fleet-refused, demo-refused routes, demo names, names the filters removed), which the remote map may not serve either; reads route hosts registry:Host@329,registry:Host@351,whole:Route@300,whole:Route@338 0dc71a025f11f302338480a26231398ea5e3fa55957b61fed1beb1768a392baa |
| +@legacy 9ae1164fbcf4ab533a25b12ab8550c3ba90ff54007ee42cd4164b6d35de7b0c0 internal/edge/pathremote.go attachPaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the old Reload loop folding route_paths rows into served hosts' prefix maps (forward hosts skipped), moved out of Reload; reads RoutePath and the in-memory entries registry:Host@109,registry:Host@269,registry:Prefix@244,registry:Target@256,whole:Route@132,whole:RoutePath@88 a6054fada58857cc4985e875f9754a2cb0b7b42dc4cc22295b2050a312d144fd |
| +@legacy 522a520599363a28c61e65c88438472d7aed2e492dcfadb3e92d618807556a64 internal/edge/pathremote.go buildRemotePaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the remote prefix map for hosts this box does not serve, skipping forward, regional, held and demo-reserved hosts and targets, and dropping a host whose rows name two claims; reads route_paths rows already loaded by Reload registry:Account@547,registry:Account@616,registry:Account@834,registry:App@563,registry:App@639,registry:App@845,registry:Host@286,registry:Host@318,registry:Host@338,registry:Host@354,registry:Host@371,registry:Host@398,registry:Host@466,registry:Host@577,registry:Host@656,registry:Host@686,registry:Host@806,registry:Prefix@882,registry:Target@422,registry:Target@894,whole:RoutePath@259 0924fb32e95cfdb40da131b1e085b9172cc4b22356c89efbcc9ca59e641c6705 |
| +@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 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 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 |
| +@legacy 26dbdb29a7c029eb1d969c7f75a4b2d516b6bb969a2658e53c428e5e8f5a97b8 internal/registry/pathsgen.go hashRoutePaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: Fingerprint's route_paths section: generation, epoch and row count when the triggers and epoch column exist, else every row as before; reads the registry SQLite only file:QueryContext@888,file:QueryRowContext@154,file:QueryRowContext@469 4d2bf44e89eb2b57391eed1f4fa6b08baf1dcfbeaac2d30c108ad9ef0269146b |
| +@legacy e2cfc0a1268151fb1e8d7680c97f907a09f0eca000dd337bd88d7bec7b1925da internal/registry/pathsgen.go migratePathsGen legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: creates route_paths_gen, adds its epoch column if missing, seeds the row with a random epoch and creates the three triggers; reads pragma_table_info of the registry SQLite only file:QueryRowContext@308 3dd6b7a827c8d78cb853ffbb910cbac0a908eadf434864eaf2c84b919757d0e4 |
| +@legacy e1a741bcd595d968908d3c219f58c67cf970a929ceee6149dedc25926d8bf8e4 internal/edge/forwardha.go Edge.forwardHAFollow legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): wraps the existing front forward; installs the in-memory attempt counter, and on a handover answer to the marked first attempt sends the in-memory body copy once more to the checked ref, or reports that the ref names this box so the caller serves it through the existing local path; passes the whole route in memory; no store or filesystem read;rev3=census-ruling-path-routes-across-boxes;basis=#186: handover log line names hopName(host, rt.Host) (wire host and route host when they differ); log text only, adds a read of Route.Host registry:Host@614,whole:Route@185,whole:Route@189,whole:Route@267,whole:Route@669,whole:Route@673,whole:Route@746 8b518815f2fad0a5dea56d89a737bb7b814139f4d513066e86db111daa7ecb0b |
| +@legacy 100a794d0ef5a739ec5db478ade2bcf2366962af061502026ca88e4932bce2ba internal/edge/forwardha.go Edge.forwardHAObserved legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=held-requests Task 3: spends one in-memory attempt; on the first copies a request body of known length at most 64 KiB (or none) into memory and marks the hop X-Carlos-Replayable, on the second sends that copy unmarked, never a third; wraps the existing forward transport to consume a handover answer to the marked attempt and to strip X-Carlos-Handover from relayed answers; the ref is checked with the in-memory view (boxInView) and handoverAuthority; reads the route in memory; no store or filesystem read. Task 3 fix round 1: a body that is not copied is wrapped (watchBody, in memory) to note when it has all been read, and a relayed answer the upstream closes after, while that body is unfinished, gets Connection: close (closeAfterEarlyAnswer); a handover naming this box also clears the already-met Expect header on the request served here; no read added. Task 3 fix round 3: after relaying an early closing answer (closeAfterEarlyAnswer, which now also sets the client connection's read deadline 1 s ahead), finishEarlyAnswer flushes the answer and reads and discards the client's own request body until it ends or that deadline passes, so the client connection closes within about 1 s; reads only the request body, no store or filesystem read. Task 3 fix round 4: the 1 s read deadline is set in finishEarlyAnswer after the relay, not when the answer's headers arrive, so a slow closing answer is relayed whole first; no read added;rev3=census-ruling-path-routes-across-boxes;basis=#186: log lines name hopName(host, at.rt.Host); log text only, adds reads of the attempt's Route.Host registry:Host@378,whole:Route@381,whole:Route@4625 52674a9ca6688352c6222ff81d4df618184803461a6fb53d3504a58fe1be131a |
| +@legacy 2cd88a908c8266b70b34409ded129d6f17d84a3e01af92008ad0c96b66857f2d internal/domains/aliases.go ReconcileAliasesReport legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), in its alias pass (aliasPassReporting in runAgent; ReconcileAliases, now a wrapper, is its other caller): main's ReconcileAliases body, moved here with the same reads and writes, plus a completeness report (AliasReport) set false at every point that already logged a failure and carried on, and when relevantDropped names a listed claim the pass could not rule out; the box's asset authority clock advances only after a complete pass; one more whole:Route and whole:RouteAlias site each, the routes and alias rows the pass already read handed to relevantDropped; no registry, file or bucket read added; no root pass calls it; no root decision;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: in the alias pass inside the agent: reads the existing regional_domains rows (reg.ListRegional) beside the alias rows, derives a regional claim's rows through deriveRegional for AliasReport.Region (the caller's ReconcileConfig.Region, set by aliasPassReporting) and its wildcard parent when bound, skipping the alias, paths and catch-all halves for it, writes them through writeRegional, and keeps an unread regional claim's wildcard parent while the kept apex row still binds a target RegionalTarget accepts on the routes this pass read (same account and app, per-box cap); claims are read as before (the listing and per-claim GETs it already does); the added reads are the registry's regional rows and fields of rows the pass already holds;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 fix rounds 2-3: AliasReport.FleetRefused (edge.FleetArmVerdict's refused set) is called once on the pass's own listing; a Wildcard claim whose primary is fleet-refused derives no wildcard_domains row (an earlier one goes with the ordinary removal); the catch-all alias is derived as before (+registry:Host, +whole:Route). Rows already read; writes less, never more; no root pass calls it.;rev3=census-ruling-region-ha-g2-fixes;basis=Project accepted regional exact/catchall names and plain/delegated aliases into routing-only reports using existing claims and pre-pool metadata; new whole Route/RegionalDomain uses, no new external reader.;rev3=census-ruling-fix-incomplete-domains-pass;basis=adds AliasReport.StartupNoRemoval, an input set only by the agent startup HA ingress pass (host startupAliasPass via runHAIngressStartup): when set, the pass skips the route_aliases, wildcard_domains and route_paths removals (each skipped removal marks the pass incomplete) and the removal rules themselves are unchanged; derivations, refusals and writes are unchanged; same read sites (body change only); no new registry, file or bucket read; deletes less, never more, and only on the startup pass; no root pass calls it; no root decision;rev3=census-ruling-account-subdomains;basis=with AliasReport.AppsDomain set, reads the box's own account_namespaces table (reg.ListAccountNamespaces), sorts a listed-but-unread namespace claim (ParseNamespaceHost on the dropped host): a not-found body keeps nothing and is not counted by relevantDropped, any other failure keeps that name's recorded rows; runs deriveNamespaceAliases after deriveInstanceAliases on the routes, alias rows and claims it already read (AccountNamespaces over the read claims), keepNamespaceAliases for unread names, and writes the table through writeAccountNamespaces (once, only when it differs; no shrink under StartupNoRemoval); the added sites are the routes and alias rows already read handed to those helpers; no file or bucket read added; fix round 1: keepNamespaceAliases runs before deriveNamespaceAliases, and repairNamespaceStatus stamps "pointing" on derived-shape rows of exact claims and kept names, over claims and rows already read;rev3=census-ruling-path-routes-across-boxes;basis=#186: path derivation moved to derivePaths and the route_paths write to writePaths (pathwrite.go); its own route_paths reads moved with them; unread claims now keep their path rows like regional rows; no read added here registry:Account@14966,registry:Account@14981,registry:Account@15099,registry:Account@15451,registry:Account@15464,registry:Alias@12960,registry:Alias@13093,registry:Alias@13163,registry:App@14994,registry:App@15005,registry:App@15112,registry:App@15477,registry:App@15486,registry:App@5182,registry:App@5378,registry:App@8724,registry:App@8924,registry:App@9080,registry:App@9281,registry:Host@14776,registry:Host@14851,registry:Host@14874,registry:Host@14926,registry:Host@15260,registry:Host@15332,registry:Host@15436,registry:Host@15747,registry:Host@15893,registry:Host@15965,registry:Host@834,registry:Host@9647,registry:Region@15121,registry:Target@14946,registry:Target@15051,whole:RegionalDomain@13740,whole:RegionalDomain@13758,whole:RegionalDomain@14704,whole:RegionalDomain@14742,whole:RegionalDomain@14763,whole:RegionalDomain@14786,whole:RegionalDomain@14913,whole:RegionalDomain@276,whole:RegionalDomain@3633,whole:RegionalDomain@3834,whole:Route@1045,whole:Route@10529,whole:Route@11654,whole:Route@11662,whole:Route@12493,whole:Route@12583,whole:Route@12591,whole:Route@15044,whole:Route@15095,whole:Route@2251,whole:Route@337,whole:Route@3815,whole:Route@4234,whole:Route@4525,whole:Route@5222,whole:Route@5373,whole:Route@5429,whole:Route@7471,whole:Route@787,whole:Route@816,whole:Route@827,whole:Route@845,whole:Route@8693,whole:Route@8768,whole:Route@8915,whole:Route@8977,whole:Route@9120,whole:Route@9276,whole:RouteAlias@11670,whole:RouteAlias@12475,whole:RouteAlias@12599,whole:RouteAlias@12754,whole:RouteAlias@12935,whole:RouteAlias@2259,whole:WildcardDomain@14810,whole:WildcardDomain@14839,whole:WildcardDomain@15320,whole:WildcardDomain@15342,whole:WildcardDomain@15366,whole:WildcardDomain@15415,whole:WildcardDomain@15578,whole:WildcardDomain@15706,whole:WildcardDomain@15735,whole:WildcardDomain@4048,whole:WildcardDomain@9843 0e69131d30c682a9c210877fc879b4c998cfe2c155eca3b3c43d3bfbf070cecf |
| +@legacy 260d248e6e3249432dacc05c2647dc429e38cc476ffc689392953001d6771d4c 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.;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): after the new upstream map is published, closes the held streams of any host the new map no longer holds (absent, not hibernating, route no longer Hibernate). Reads the freshly built in-memory map m and the in-memory held set; no read added beyond the rebuild Reload already does.;rev3=census-ruling-devbox-identity;basis=#486 A: only the devbox edge created by newDevboxEdge (carlos-devbox service user, not root) enables the new proxy hooks. Saves the existing DispatchArm result and reads t.Socket from an already-listed route when that arm is ArmSocket, passing it to configureDevboxProxy for per-request expected-owner validation and visitor-header rewriting. Adds one registry:Socket field site; no new registry query or file open, and ordinary fleet/agent edges leave the hook disabled. Final fix wave: its devbox-only outgoing-header/trailer hooks now also strip case-insensitive underscore/hyphen aliases through stripVisitorHeaders; no new read.;rev3=census-ruling-agent-start-demo-1;basis=Checks demo route eligibility and filters the final folded map using the existing registry listing; no new registry or store query. Merge resolution against origin/main 9bd45488 retains main's devbox proxy hooks (reading the existing route Socket) alongside demo filtering; no additional registry query.;rev3=census-ruling-stateless-replicas-3;basis=Task 3: dispatch admitted stateless set rows through replicaProxy before legacy fleetBoxOf. Read Host and supplied whole Route values from the existing listing to build and filter the set probe inputs after all registry reads and alias folds; synchronize before map publication. Tenancy comes only from FleetArmVerdict. No new external read; no set row reaches legacy fallback, local addresses, provision.Health or hibernation on the hub. Fix round 1 M2: comment and whitespace correction only; read sites and routing behavior unchanged.;rev3=census-ruling-agent-start-demo-2;basis=edge.go:1175-1177 passes an already-listed demo Route to demoProxy; :1358 passes existing Route and RouteAlias slices to demoRefusalNames; :1401 publishes refusal names before upstreams. Adds whole-value uses only, no new registry query; retained names refuse fallback after filtering.;rev3=census-ruling-demo-api-site-route;basis=Build a dedicated demo API proxy from the selected existing socket, TCP or probed console transport in the same atomic route snapshot, before ordinary wrappers. Reads existing route Host twice, Version and two whole Route values for exact operator-configured console eligibility. No additional registry query or external read.;rev3=census-ruling-agent-start-demo-3;basis=Refresh the verified moved snapshot from registry on reload before route-independent serving. Census read-site delta: unchanged (87).;rev3=census-ruling-region-ha-g2-fixes;basis=Derive blocked ingress names from already listed unready/held/import-gated/sidecar and fleet-refused rows; added field reads only.;rev3=census-ruling-edge-page-cache-1;basis=keeps every row this reload already read from the registry (e.pageRoutes, e.pageRoutesRead = routes, true, under reloadMu) for the page reload hook; the +whole:Route sites are that assignment of the same slice; no new read;rev3=census-ruling-held-move-speed;basis=the six tenant reverse proxies' ModifyResponse is now classifyMoveStreams(e.responseModifier(t)): MarkMoveStream first reads the response head (status 101, or Content-Type text/event-stream) and sets a flag on the request's in-memory StreamEnd, then responseModifier runs unchanged (byte-identical to main). The hook never wraps or touches the body, so the trailer scrubs keep the proxy as their one closer (Astra r2 F2.1: the graceful boundary end and its watcher were cut). No read added;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 3: with tunnels on, the pass also reads LinkChannelAuth and LinkOwners from the box's own registry (fresh connection, as FleetChannelAuth and FleetOwners) and merges each well-formed link channel's hash into the set SetDynamicAuth takes; the verdict judges link-placed forward rows by the link owners; an admitted one takes the new ArmLink case (linkProxy down the link's channel, tenancy with the link); the door's fleet snapshot stays fleet owners only and link owners go to a separate snapshot; +whole:Route is the row handed to the new case's responseModifier; the edge process as carlos, no root decision; linked deployments slice 1 Task 8: each upstream entry also records localBackend (ArmSocket, or an instance the activator runs here), from values the pass already holds; no read added; linked deployments slice 1 Task 11: the LinkChannelAuth read (the same fresh-connection read) moves to the top of the pass, before List, and its map is applied at once through the hub's new SetLinkAuth (the link half of the credential set only; fleet entries untouched), so a link revocation or rotation closes the home connection on the old hash even when a later read or step of the same reload fails; the same map is still merged into the set SetDynamicAuth takes; no read added, one moved; the edge process as carlos, no root decision; Task 11 fix round 1: comments only (the reload hook contract now says the link credentials are applied before afterRead); no code or read changed; final review fix: the store of the unread linkAccounts snapshot is deleted (fleetAccounts unchanged); no read added or moved;rev3=census-ruling-stateless-replicas-4-drill3;basis=drill 3 R23: keeps the map it replaces (e.current(), under reloadMu) and, for an ArmReplica row, hands the listed row t and that host's previous entry to replicaHandoffFor; the result is set on the new replica transport and the upstream entry. Review round 3: an activator-owned row's app socket proxy is built with ManyCopies(t), the listed row's own copy count, scoping only when an outside stop may refuse a request. +registry:Host and +whole:Route are the already-listed row t; no registry query, file or store read added; the edge process as carlos, no root decision;rev3=census-ruling-stateless-replicas-4-r28;basis=R28 (#511): right before it publishes the new map, passes the map it replaces (prevMap, already held under reloadMu) and the new map m to noteRetiredCopies, which keeps in memory, for retiredCopyGrace (120 s), the names of this box's replica copies that retired (an instance row of a set with more than one copy, absent from m) and logs one line each. Review round 1: an activator-owned row's app socket proxy is built with the in-memory e.retired.retiring check beside ManyCopies(t), so a request that chose the row before it was dropped ends its dial hold and is refused (REFUSED_STREAM) once the copy is retiring; no registry, file or store read added; the edge process as carlos, no root decision;rev3=census-ruling-path-routes-across-boxes;basis=#186: route_paths rows come through pathRowCache.load (reused while registry.PathsGeneration is unchanged, else ListPaths as before); attachPaths folds them; buildRemotePaths builds the remote map for hosts this box does not serve; publishes routeTable{hosts, remote}; reads the same registry tables as before registry:Account@12872,registry:Alias@27723,registry:Alias@27810,registry:Alias@28390,registry:App@12888,registry:Health@16693,registry:Health@16819,registry:Hibernate@33197,registry:HoldOp@31806,registry:Host@14199,registry:Host@14256,registry:Host@14292,registry:Host@15059,registry:Host@17302,registry:Host@17397,registry:Host@17685,registry:Host@17711,registry:Host@17763,registry:Host@20593,registry:Host@20626,registry:Host@22649,registry:Host@24556,registry:Host@24864,registry:Host@24891,registry:Host@28144,registry:Host@28193,registry:Host@31242,registry:Host@31267,registry:Host@31284,registry:Host@31883,registry:Host@6218,registry:Host@6587,registry:Host@6641,registry:Host@6691,registry:Host@7805,registry:Host@8040,registry:Host@8132,registry:ImportGate@31825,registry:Kind@20985,registry:Kind@21007,registry:Socket@15158,registry:Socket@20864,registry:Socket@24872,registry:Status@31782,registry:Status@6512,registry:Tunnel@12711,registry:Tunnel@12903,registry:Version@20716,registry:Version@20966,registry:Version@21068,whole:RegionalDomain@29087,whole:Route@10250,whole:Route@1045,whole:Route@12793,whole:Route@14347,whole:Route@14475,whole:Route@15098,whole:Route@15234,whole:Route@17856,whole:Route@17921,whole:Route@17972,whole:Route@20643,whole:Route@20650,whole:Route@20774,whole:Route@24952,whole:Route@24959,whole:Route@25073,whole:Route@26845,whole:Route@29079,whole:Route@29171,whole:Route@29211,whole:Route@29381,whole:Route@29412,whole:Route@31148,whole:Route@31182,whole:Route@31270,whole:Route@31349,whole:Route@31768,whole:Route@33199,whole:Route@33256,whole:Route@33287,whole:Route@5238,whole:Route@5296,whole:Route@6226,whole:Route@7834,whole:Route@8079,whole:Route@8287,whole:Route@8421,whole:Route@8444,whole:Route@8459,whole:Route@9305,whole:Route@9433,whole:RouteAlias@27694,whole:RouteAlias@29179,whole:RoutePath@25823,whole:RoutePath@29359 ecd63ba4729d31f13a054adf70b914383a6aa43fc81cb0f191a37240e320f5fd |
| +@legacy 681082d0e6cc104f5b6aef23f9f12c6a69f2818329e05d421aa1213e84f6d4b9 internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here.;rev3=census-ruling-edge-protection-2;basis=runs the guard, a pure in-memory matcher on r.URL.Path and RawQuery (internal/edgeguard), once per request after the meter and observer defer and before the password gate, the upgrade branch, the cache and the activator, for a request that is not a door call, a backhauled door hop or a tunnel delivery; a matched block answers a 404 itself through guardDecide; the two new sites are one expression, up.route.Kind == "static" (a static route this box serves checks only the hard tier here and leaves the probe tier to serveTree), a read of the route row the edge already resolved; no new kind of read;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25);rev3=census-ruling-static-headers;basis=the shared response cache is no longer looked up or filled for a static-kind route: one more read of the route row the edge already resolved (up.route.Kind == "static") in the cacheable expression; a refusal only, nothing new opened or followed;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2 (N-HA10): one call, frontForwardHA, right after the route lookup's !ok block and before the login POST; same reads;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 4: loginPost and cacheable treat a forward row as not this box's to answer (IsForward(), +whole:Route x2): no login form and no shared cache for a forward host. Serving only.;rev3=census-ruling-tunnel-websockets;basis=Deletes the Carlos-Upgrade marker header from incoming requests and puts the upgrade admission (host, path, the entry tenancy, all in hand) on a tunnel arm request. For a login POST on an ungated ArmTunnel row it reads the visitor request body (bounded by gate.MaxFormBody, 413 past it; a request body, not a file) and resolves next against the entry Reload built (Gate, Route); the bytes pass on only when loginPassesThrough holds (spec 7, Tasks 3, 5 and 6).;rev3=census-ruling-console-protection-tab;basis=one more call in the observer defer, observeGuardCount(up.route, out), beside the observeRecords call that files the guard Match: it passes on the route row the defer already holds (+whole:Route) and the request outcome to the usage meter, which counts the check in memory. Called whether or not the request was unbilled, as observeRecords is. Nothing is opened, read or followed; no new kind of read; no check, refusal or serving decision changes.;rev3=census-ruling-probe-burst-limit;basis=answers a probe-burst notice POST (serveBurstNotice) ahead of every route for a non-door caller; builds the guard state for up.route and stamps its account and app (RouteAccount, App) for the cool-down's this-app/other-app label; for a catalogue match on a non-static or tunnelled route, offers the burst rule (in-memory limiter, burstDecide: 429 or a watch verdict, never a block for a fleet or forward row); the observer defer calls noteBurst(up.route, ...); the added sites are the route value already in hand (+registry:App, +whole:Route x5); no new root read or write kind;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): parses the request's query once (stripHoldMarker) to record the carlos_hold=1 mark in the request context; calls classifyHold on the upstream already resolved from the loaded map (the +whole:Route is that in-memory Route), including a second pass for a login POST; gives a marked request on a door-refused route the plain 404; adds the hold branch (planThrottleAdmit, rateAdmit, serveHeld) after the gate; and excludes marked requests from the shared cache. Reads only the request and the already-loaded upstream map; no registry or bucket read added.;rev3=census-ruling-region-ha-p3a;basis=Complete the P3a cut: an exact peer name with no dial target answers the approved admission 503 before local wildcard dispatch or asset serving. ExactHome and lookupHome stop fallback at a present non-dial entry; backhaulTo refuses an empty target before signing or dialing. Retain Task 3 local admission and fixed platform/unit exemptions. Two added whole Route uses feed the local in-memory admission predicate; existing Route values and store/path reads are unchanged.;rev3=census-ruling-stateless-coordinator-route;basis=P24/P25: POST only, exact /api/fleet/replicas/ prefix on the reserved tunnel host calls the existing local console proxy only for an unescaped, already-clean path; malformed forms remain on the hub. No new read sites relative to origin/main. Merge with main 3487d6f6 retains its region HA admission checks before routing and after login target lookup, its empty-home refusal, and their two existing whole:Route reads; these change this unit's digest relative to the previously approved branch tip 92b24a7d.;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: pass the already-resolved Route to the reserved replica-probe handler after acceptHop and existing admissionRefuses, requiring tunnel context plus private marker and refusing door/backhaul ingress. Added whole Route use only; scrub marker before forwarding; HA calls remain unchanged.;rev3=census-ruling-region-ha-p3b;basis=Resolve local aliases/catch-alls with cached peer name ownership before serving. Add registry Account/App/ClaimStamp/Host/Incarnation/ServingSeq and six whole Route references for NameClaim; inputs are agent registry rows/edges publications used by unprivileged edge, not root permits. Closed owners retain names and return 503; aware remote owner cannot fall through on missing transport, while legacy hop/door behavior remains. Merge 45cebde4 retains authenticated replica probes after local admission and before ordinary name resolution; probe authentication still requires the tunnel context.;rev3=census-ruling-agent-start-demo-2;basis=edge.go:1901 enters the protected demo path before ordinary exits; :2012-2015 rechecks the selected marked Route after lookup. Added whole Route use routes demos through serving checks, counters and policy; no new registry query or file open in this unit.;rev3=census-ruling-demo-api-site-route;basis=Reserve the configured site API namespace after hop verification and control-header scrubbing, before ordinary static, cache, billing and tenant dispatch. Validate hop field shape and delegate only allowlisted operations to the dedicated console path with verified client attribution and console admission. The alias helper enables HTTP/1.1 full duplex so an early console refusal does not wait for upload EOF. Existing 56 read sites unchanged; no new registry, bucket or file read.;rev3=census-ruling-region-ha-g2-fixes;basis=Consult HA ingress after region admission and before miss/alias backhaul; no new direct read; routing-only metadata does not create an upstream.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3/W4: backhaul and door calls pass the owner the door checked into backhaulTo; the §6.5 holder follow (once, GET/HEAD or an unswitched upgrade, no body) and one connect-failure fallback dial only boxes in the holder region's view (same Region/Placement/DataBucket, HomeEligible, fresh) for that owner. Holder name comes only from the TLS-verified signed hop answer; app-set X-Carlos-Holder stays stripped. Routing only; the receiving box still re-checks the lease. No new read site.;rev3=census-ruling-edge-page-cache-1;basis=attaches an in-memory page mark holder to every request to an instance route (the +registry:Kind check of up.route.Kind), wraps the hold and upgrade branches in pageDiagnostics, asks servePage after the plan throttle (a hit answered from the page index over the asset store), keeps an opted-in instance out of the LRU (pagesOptedIn), wraps the response in the page writer, and wraps the proxy's writer in assetInformationalScrub on the remaining arms; the page reads are in the new pagecache.go units;rev3=census-ruling-region-ha-held-build;basis=first branch: a request for the reserved control paths /.carlos/ha-drain and /.carlos/ha-take goes to serveHAControl and returns (refused unless a signed ask); no request on those paths reaches a route, a forward or an app; no read added here. region HA held-requests Task 2: X-Carlos-Replayable is read from verified hops only and deleted from every request; just before frontForwardHA, moveGate runs for an HA hibernating route (route HA, Host and the whole Route passed in memory) and can only hold, refuse with an existing answer or front-forward to the confirmed holder; ReleaseMoveTicket before serveHeld; no store or filesystem read added; region HA held-requests Task 5: after the HA control-path branch, every request is counted by the connection drain (conns.track: a cancellable request context, and Connection: close only while draining); memory only; no read added; Task 5 fix 1: after the drain's final barrier a new request is refused at once through handoverExit with the existing answerHolderUnreachable, never forwarded; the tracked request also carries its connection (from ConnContext) so the drain can close it at its bound; memory only; no read added;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 3: the inbound strip also deletes tunnelclient.LinkAppHeader (Carlos-Link-App) from every client request, beside Carlos-Tunnel-Upgrade; a header delete, no read added; linked deployments slice 1 Task 8: a request carrying a link pin (ServeLinked, set only by the home agent's link handler from its own registry's published set) skips the edge's own handlers (HA control, demo handling, the steering probe, the tunnel hub, hop acceptance, the burst notice, the demo API alias, the replica probe), takes its upstream from selectUpstream (the pinned exact entry or a 502), never enters the alias/catch-all backhaul block, the HA front forward, the local asset catch, the page cache or the response LRU; the two lookupUpstreamPath calls become selectUpstream; no read added;rev3=census-ruling-stateless-replicas-4-r28;basis=R28 (#511): for a request whose host has no entry (the lookup miss), after the replica-probe branch, calls refuseRetiredCopy(r, host): within the grace of a host whose replica copy this box retired, the fleet tunnel stream is refused with REFUSED_STREAM (tunnelclient.Refuse) and nothing is written; any other miss gets the unknown-host answer as before; memory only, a refusal only, no read added;rev3=census-ruling-static-site-geo-962;basis=discussion #962: after planDisabledAdmit and before the page mark holder and the observer, a request whose cleaned path is /.carlos/geo (not a linked request) is answered by serveGeoAnswer from the request's geo answer already on the context (decideGeo), 200 JSON no-store or 405, and returns; merged with main (no new read);rev3=census-ruling-fleet-unrouted-503;basis=a request the hub tunnel delivered (tunnelclient mark, not a link channel) for a host this box neither routes nor backhauls answers 503 Retry-After 2 instead of the unknown-host 404; no new read, dial or store access; unmarked requests unchanged (#1008);rev3=census-ruling-fleet-unrouted-503-fix1;basis=a request the hub delivered over this fleet box's channel (MarkFleetChannel, set by the box's own tunnel loop for a "<fleet>/<label>" channel, plus the tunnel client mark) for a host this box neither routes nor backhauls, and not under a platform domain, answers 503 Retry-After 2 instead of the unknown-host 404; fixed log key; no new read, dial or store access; every other request unchanged (#1008);rev3=census-ruling-fix-dbforward-reuse-1032;basis=the drain tracking call now takes withDeclaredBodyEnd(r) instead of r: an HTTP/1 request with a declared Content-Length is served from there on with a body that answers EOF itself after those bytes (#1032), so a proxy transport's confirming read after sending the body upstream no longer lands on the server's closed request body and tears down the upstream connection; HTTP/2 requests are left as they are (Astra r1 P2); memory only, no read, dial or store access added;rev3=census-ruling-path-routes-across-boxes;basis=#186: selection returns requestSelection; a Remote selection is dispatched by servePathRemote (one signed hop, never from a verified hop, door call or pin); the ownership block moved to serveNameOwner/nameOwnerVerdict (pathhop.go), so its route reads left; login re-selection via loginLookupPath plus refuseLoginAcross; LRU also requires pathLRUAllowed; no read added file:ReadAll@19372,registry:App@26649,registry:Gate@18346,registry:Gate@31040,registry:Gate@31100,registry:Gate@31158,registry:HA@14090,registry:HA@14432,registry:Host@14471,registry:Host@31143,registry:ImportGate@40035,registry:Kind@23683,registry:Kind@25511,registry:Kind@28949,registry:Kind@39977,registry:Kind@40006,whole:Route@14093,whole:Route@14187,whole:Route@14435,whole:Route@14474,whole:Route@18241,whole:Route@18352,whole:Route@20651,whole:Route@21435,whole:Route@21893,whole:Route@22085,whole:Route@23686,whole:Route@25514,whole:Route@26575,whole:Route@26641,whole:Route@26652,whole:Route@26905,whole:Route@27000,whole:Route@27076,whole:Route@27120,whole:Route@27422,whole:Route@27452,whole:Route@28952,whole:Route@29237,whole:Route@31043,whole:Route@31103,whole:Route@31146,whole:Route@31161,whole:Route@32372,whole:Route@34660,whole:Route@39980,whole:Route@40009,whole:Route@40038,whole:Route@40070,whole:Route@42537,whole:Route@8686,whole:Route@8785,whole:Route@8891 3ace808e10a4d7eee4aa52ead058311027286fafef2de55788aa0a67f7a46254 |
| +@legacy 8dccca75c93796197d636e6bcfa194e367eba0c3896686056835aa4b641f215c internal/registry/registry.go Registry.Fingerprint 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); the remote arm, unchanged, in the process that holds a remote handle: census-ruling-seeded-instances's body with the row's lifetime pair (incarnation, serving_seq) folded into the edge's change poll, each only when non-zero, so a registry with no pair digests as before; self-serve moves 1 Task 7;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: hashes regional_domains (host, target, account, app, region; created_at not) over the same fresh connection, with a section marker written only when a row exists, so a registry with no regional rows digests as before; the one added site is that SELECT (+file:Query) on the box's own registry database, as carlos; no file path read;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): review R1 finding 1: the routes SELECT also reads host, kind, account, app, platform and fingerprintForwardInert (one CASE over the ForwardForbidden columns), and every row folds host, kind, account and app (tagged, quoted), platform when set, and forward_inert=0 for a forward row that is not inert, so a rowid reused by another hostname, an in-place account or app rewrite, or a stray forbidden column moves the edge's change poll. Same one SELECT per table on the same fresh connection to the box's own registry database, as carlos; no table, file or bucket read added; a digest, never a decision.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5): the SELECT also reads fleet_label and, only when it is set, hashes "fleet_label=<q>" into the digest, so labelling a row moves the edge's reload fingerprint. Read sites unchanged (33). Registry side, not root; an unlabelled registry's digest is byte-identical.;rev3=census-ruling-stateless-replicas-1;basis=Read the additive stateless projection in the existing registry SELECT and hash only when set; no new read source.;rev3=census-ruling-agent-start-demo-1;basis=Existing SELECT reads four more demo columns; only a marked row adds them to the hash, so ordinary hashes remain unchanged.;rev3=census-ruling-stateless-replicas-2;basis=Four additive projection columns join the existing routes SELECT and hash only when nonzero; no new query or file read. merge of origin/main 6be08467: Union main demo identity and expiry with replica columns in the same SELECT and hash; merge-only body change.;rev3=census-ruling-agent-start-demo-3;basis=Hash moved-notice wire bytes so notice-only changes invalidate an edge route snapshot. Census read-site delta: +file:QueryRow.;rev3=census-ruling-edge-page-cache-1;basis=selects the new pages_off column with the rest and folds "pages_off=1" into the hash only when set, as assets_off, so a registry that never sets it fingerprints as before; same routes SELECT, no new table; read sites unchanged (34); no read added;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 1: hashes link_channels (link_id, account, token_hash, status, generation; connected, seen_at, seq and created_at not) over the same fresh connection, with a section marker written only when a row exists, so a registry with no links digests as before; the one added site is that SELECT (+file:Query) on the box's own registry database, as carlos; a digest, never a decision; linked deployments slice 1 Task 7: also folds home_link (id, serving_url, tunnel_url, the token's sha256 never the token, account, apps_domain, box_label, conn_gen; state and created_at not) and home_link_apps (name, home_account, home_app, home_host) through fingerprintHomeLink over the same fresh connection, each section marker written only when a row exists, so a registry with no link digests as before; no file path read; a digest, never a decision;rev3=census-ruling-account-subdomains;basis=hashes account_namespaces (name, account) over the same fresh connection, with a section marker written only when a row exists, so a registry with no held names digests as before; the one added site is that SELECT (+file:Query) on the box's own registry database, as carlos; a digest, never a decision;rev3=census-ruling-staticcheck-sa1012;basis=nil context replaced by context.Background(), behaviour unchanged;rev3=census-ruling-path-routes-across-boxes;basis=#186 spec 6: the route_paths section is hashRoutePaths (generation, epoch and row count when the three triggers and epoch column exist, else every row as before); its own Query left for that helper file:Exec@301,file:Open@205,file:Query@10412,file:Query@11334,file:Query@12437,file:Query@385,file:Query@6672,file:Query@7151,file:Query@8137,file:Query@8833,file:QueryRow@13354,registry:ClaimIncarnation@1746,registry:ClaimIncarnation@5580,registry:ClaimIncarnation@5657,registry:ClaimOwner@1790,registry:ClaimOwner@5781,registry:ClaimOwner@5846,registry:ClaimRowID@1809,registry:ClaimRowID@5873,registry:ClaimRowID@5939,registry:ClaimStamp@1771,registry:ClaimStamp@5690,registry:ClaimStamp@5754,registry:Incarnation@1865,registry:Incarnation@6160,registry:Incarnation@6224,registry:ServingSeq@1884,registry:ServingSeq@6251,registry:ServingSeq@6314,registry:Text@175,registry:path@224,registry:remote@55,registry:remote@87,whole:remoteClient@57,whole:remoteClient@89 4c652fc3906d681a36b1143813437d4622ce8d9b46514a9a22c426894187eaed |
| +@legacy ad31e18f73facecbf379a5639b776bbfa09b5227531f402984cfd9d9f4ade8ea 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 |
| +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 |
| +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 |
| +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 |
| +internal/edge/haingress.go Edge.routeHAIngress legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Resolve exact/alias/catchall authority and bind projected primary identity for HA forwarding. A zero projection permits an existing non-activator-owned upstream to continue its ordinary path; managed rows still refuse. New in-memory Host and route reads only.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 2: just before frontForwardHAIngress, the handover decision moveGate runs on the already-resolved primary route rt (whole Route passed in memory); it can only hold the request, answer it with an existing refusal or forward it to a confirmed holder over the existing signed hop; no store or filesystem read added;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 8: the handover gate's forwardable argument is also false for a linked request; no read added;rev3=census-ruling-path-routes-across-boxes;basis=#186 spec 5.7: takes routeName beside host; the HA projection, name resolution, local claim and blocked set are judged under routeName (the selected local target's route host when a prefix selected one, else host); forwards still carry and sign the wire host; no new read source registry:Account@1412,registry:Account@2813,registry:Account@3067,registry:Account@3087,registry:Account@545,registry:App@1429,registry:App@2836,registry:App@3101,registry:App@3117,registry:App@569,registry:ClaimStamp@664,registry:HA@1150,registry:HA@1977,registry:HA@2054,registry:HA@2364,registry:HA@3237,registry:Host@1241,registry:Host@1299,registry:Host@1930,registry:Host@2036,registry:Host@2346,registry:Host@2556,registry:Host@277,registry:Host@2789,registry:Host@3039,registry:Host@3056,registry:Host@400,registry:Incarnation@1450,registry:Incarnation@2863,registry:Incarnation@3155,registry:Incarnation@3179,registry:Incarnation@596,registry:Pool@3127,registry:Pool@3144,registry:ServingSeq@1478,registry:ServingSeq@2897,registry:ServingSeq@3197,registry:ServingSeq@3220,registry:ServingSeq@630,whole:Route@1788,whole:Route@1863,whole:Route@1980,whole:Route@2015,whole:Route@2130,whole:Route@2213,whole:Route@2319,whole:Route@280,whole:Route@2999,whole:Route@3029,whole:Route@3042,whole:Route@3070,whole:Route@3104,whole:Route@3130,whole:Route@3158,whole:Route@3200,whole:Route@3240,whole:Route@3483,whole:Route@3636,whole:Route@403,whole:Route@548,whole:Route@572,whole:Route@599,whole:Route@633,whole:Route@667,whole:Route@943 30770461c4d643a4f7aacde5148ef81e3a30b1858184fa6ffda384220c1e0bab |
| +internal/edge/pagecache.go Edge.pageRouteEligible legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-page-cache-1;basis=the route half of the page rule: row eligible (pageRowEligible), not via a tunnel, no plan throttle, no path rows on the asked host or the primary (live table lookups), the serving build's asset declarations known and not covering path (the policy's in-memory manifest cache, DeclaresPrefix), and current inputs known (Cache.CurrentInputs); no direct file or registry read; final fix wave: the row, tunnel and primary-entry tests move into pageServedHere over the same live table snapshot (the -registry:Host site is the primary lookup that moved there); the same rule, and the primary entry must now also be the same instance (sameInstance); no read added;rev3=census-ruling-path-routes-across-boxes;basis=#186: also refuses page caching when up.front is set (a case 3 target selected for a front this box does not serve); stricter only; no read added registry:Host@422,registry:Host@440,registry:Version@703,whole:Route@152,whole:Route@199,whole:Route@324,whole:Route@426,whole:Route@798 891351f669865b48e652b20ed4e9cb4e63b0ff7b3350a3042c4652535913ed87 |
| +internal/edge/pagecache.go pageServe.stillCurrent legacy accepted-legacy accepted-legacy;rev3=census-ruling-edge-page-cache-1;basis=before a recorded page is published, re-resolves host and path in the live table (lookupUpstreamPath), checks the same instance and scope, re-runs pageRouteEligible and compares the current and process inputs with the recording's; in memory;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 8: re-resolves through selectUpstream(ps.r, host, path) instead of lookupUpstreamPath (identical without a link pin; a linked request never records a page); same reads;rev3=census-ruling-path-routes-across-boxes;basis=#186: re-selects through requestSelection.sameBox(), so a cross-box or case 3 selection never matches the recorded page; no read added registry:Host@155,registry:Host@173,registry:Host@383,whole:Route@159,whole:Route@179,whole:Route@387 9d2fcf4c12fa44ed0708e26613703cf4da9edc1ae8ffe737796fce39cc67261f |
| +internal/edge/replicaconsole.go Edge.serveReplicaConsole legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-coordinator-route;basis=Reads existing in-memory route fields to select a unique accountless console.service local upstream; refuses missing or ambiguous console, tenant routes, remote and tunnel upstreams. Reuses proxy and version wrapper; leaves fleet identity authentication at console.;rev3=census-ruling-retry-after-503;basis=the missing/ambiguous-console 503s go through UnavailableHeader (adds Retry-After 2 and answer/box headers); selection unchanged; no read added;rev3=census-ruling-replica-console-account;basis=when operator config CARLOS_REPLICA_CONSOLE_ADDR (hub host.env, read once in enableTunnelsFromEnv, refused at load unless a literal loopback IP and port) is set, replica calls go to a proxy built only from that address, stamping the hub build as X-Carlos-Version; no route field is read, so records can neither choose, redirect nor disable the endpoint. Unset, the selection is byte-identical to main (accountless console.service local route). Witnesses TestReplicaConsoleConfiguredEndpoint (distinct destinations, injected and rewritten rows, endpoint down), TestReplicaConsoleUnconfiguredIgnoresAccountRows, TestParseReplicaConsoleAddr, TestReplicaConsoleAddrFromHostEnv. Same reads, no new read source, no write.;rev3=census-ruling-path-routes-across-boxes;basis=#186: iterates e.table().hosts (the routeTable snapshot) instead of the bare map pointer; same filter on the same route fields; no read added registry:Account@328,registry:App@348,registry:Host@269,registry:Socket@446,registry:Unit@371,whole:Route@250 da4b55f97fc3f4084f1fbb0e97130ce3ddc40601fe7d989912821ddc1d375d23 |
| +internal/registry/registry.go Registry.DeletePath legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-staticcheck-sa1012;basis=nil context replaced by context.Background(), behaviour unchanged;rev3=census-ruling-path-routes-across-boxes;basis=#186: the DELETE statement moved to the deletePathSQL constant (pathsgen.go), text unchanged; no read added file:Exec@227,registry:remote@63,registry:remote@93,registry:sql@227,whole:remoteClient@65,whole:remoteClient@95 ec5f66a08beab95dab86bada289cf43c989ca6b595f75b4aadf2d13ffce3f5ad |
| +internal/registry/registry.go Registry.UpsertPath legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-staticcheck-sa1012;basis=nil context replaced by context.Background(), behaviour unchanged;rev3=census-ruling-path-routes-across-boxes;basis=#186: the upsert statement moved to the upsertPathSQL constant (pathsgen.go), text unchanged; no read added file:Exec@197,registry:Account@251,registry:App@262,registry:Host@223,registry:Prefix@231,registry:Target@241,registry:remote@55,registry:remote@85,registry:sql@197,whole:RoutePath@157,whole:RoutePath@160,whole:remoteClient@57,whole:remoteClient@87 0d7b4014aa37f3ba2b2f1e00a1d71619dce7f9aa4d82fb2c8dd007088f3a1cc8 |
| +internal/domains/aliases.go derivePaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: per-claim route_paths derivation, moved out of ReconcileAliasesReport and now run on every box; refuses sidecar-suffix hosts and targets, a local host route of another account/app, a local target of another account, an unready local target; a non-local target derives its row (checked at request time); cap and sorted order kept; reads the claim and local route rows registry:App@631,registry:App@827,registry:Status@3288,whole:Route@2736,whole:Route@3175,whole:Route@3250,whole:Route@608,whole:Route@675,whole:Route@818 41774598b69878db736c5b157f800e7ef1229a539ab290f27947960d6abe09cd |
| +internal/domains/pathwrite.go newPathSet legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: an empty desired route_paths set with a sha256 digest; no registry read whole:RoutePath@46 ee5f4d2b26b04dc29a9e29ed93eb2aa5af6bbf401f41a59cf0d64726ff1a31e2 |
| +internal/domains/pathwrite.go pathSet.add legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: adds one desired RoutePath and length-prefixes its five fields into the digest; reads the RoutePath fields only registry:Account@160,registry:App@171,registry:Host@132,registry:Host@54,registry:Prefix@140,registry:Prefix@68,registry:Target@150,whole:RoutePath@49,whole:RoutePath@80 31af76b8d2e124694a767aa37a27d45cb042200179307c36fc144bf4bac3202a |
| +internal/domains/pathwrite.go writePaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: brings route_paths to the desired set: skips the pass when digest and PathsGeneration equal the memo, else reads ListPaths, upserts changed rows and deletes undesired ones (kept for unread claims or noRemoval) in one ApplyPaths transaction; reads the registry's route_paths and its generation registry:Host@1120,registry:Host@517,registry:Host@853,registry:Host@897,registry:Prefix@1128,registry:Prefix@531,registry:Prefix@867,whole:PathsGen@1533,whole:PathsGen@1543,whole:PathsGen@1549,whole:PathsGen@1555,whole:PathsGen@1630,whole:PathsGen@297,whole:RoutePath@1154,whole:RoutePath@1228,whole:RoutePath@1333,whole:RoutePath@460,whole:RoutePath@490,whole:RoutePath@503,whole:RoutePath@543,whole:RoutePath@609,whole:RoutePath@632,whole:RoutePath@656,whole:RoutePath@663,whole:RoutePath@730,whole:RoutePath@739,whole:RoutePath@756,whole:RoutePath@765,whole:RoutePath@815,whole:RoutePath@848 d6c8118aff6318324494b0dab1a96d1f3302b5df3dc506f2ce7e698fbc68675c |
| +internal/edge/pathhop.go Edge.nameOwnerVerdict legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: ServeHTTP's ownership decision moved out of ServeHTTP with no side effect (held / elsewhere / refused / local), judged on the front's own entry; a case 3 target is served only while its front mark holds, else refused; shared with upgradeSelection; reads the same route fields the old inline block read, plus the in-memory home map registry:Account@723,registry:App@747,registry:ClaimStamp@776,registry:Host@951,registry:Incarnation@811,registry:ServingSeq@845,whole:Route@726,whole:Route@750,whole:Route@779,whole:Route@814,whole:Route@848,whole:Route@954 7bccacc301e7a69a710ef258fca98fc8008401f3e18239a17fdae39334371665 |
| +internal/edge/pathremote.go Edge.heldNames legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: names this Reload keeps out of its map on purpose (fleet-refused, demo-refused routes, demo names, names the filters removed), which the remote map may not serve either; reads route hosts registry:Host@329,registry:Host@351,whole:Route@300,whole:Route@338 0dc71a025f11f302338480a26231398ea5e3fa55957b61fed1beb1768a392baa |
| +internal/edge/pathremote.go attachPaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the old Reload loop folding route_paths rows into served hosts' prefix maps (forward hosts skipped), moved out of Reload; reads RoutePath and the in-memory entries registry:Host@109,registry:Host@269,registry:Prefix@244,registry:Target@256,whole:Route@132,whole:RoutePath@88 a6054fada58857cc4985e875f9754a2cb0b7b42dc4cc22295b2050a312d144fd |
| +internal/edge/pathremote.go buildRemotePaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: the remote prefix map for hosts this box does not serve, skipping forward, regional, held and demo-reserved hosts and targets, and dropping a host whose rows name two claims; reads route_paths rows already loaded by Reload registry:Account@547,registry:Account@616,registry:Account@834,registry:App@563,registry:App@639,registry:App@845,registry:Host@286,registry:Host@318,registry:Host@338,registry:Host@354,registry:Host@371,registry:Host@398,registry:Host@466,registry:Host@577,registry:Host@656,registry:Host@686,registry:Host@806,registry:Prefix@882,registry:Target@422,registry:Target@894,whole:RoutePath@259 0924fb32e95cfdb40da131b1e085b9172cc4b22356c89efbcc9ca59e641c6705 |
| +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 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/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 |
| +internal/registry/pathsgen.go hashRoutePaths legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: Fingerprint's route_paths section: generation, epoch and row count when the triggers and epoch column exist, else every row as before; reads the registry SQLite only file:QueryContext@888,file:QueryRowContext@154,file:QueryRowContext@469 4d2bf44e89eb2b57391eed1f4fa6b08baf1dcfbeaac2d30c108ad9ef0269146b |
| +internal/registry/pathsgen.go migratePathsGen legacy accepted-legacy accepted-legacy;rev3=census-ruling-path-routes-across-boxes;basis=#186 new: creates route_paths_gen, adds its epoch column if missing, seeds the row with a random epoch and creates the three triggers; reads pragma_table_info of the registry SQLite only file:QueryRowContext@308 3dd6b7a827c8d78cb853ffbb910cbac0a908eadf434864eaf2c84b919757d0e4 |
| +internal/edge/forwardha.go Edge.forwardHAFollow legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (held-requests Task 3): wraps the existing front forward; installs the in-memory attempt counter, and on a handover answer to the marked first attempt sends the in-memory body copy once more to the checked ref, or reports that the ref names this box so the caller serves it through the existing local path; passes the whole route in memory; no store or filesystem read;rev3=census-ruling-path-routes-across-boxes;basis=#186: handover log line names hopName(host, rt.Host) (wire host and route host when they differ); log text only, adds a read of Route.Host registry:Host@614,whole:Route@185,whole:Route@189,whole:Route@267,whole:Route@669,whole:Route@673,whole:Route@746 8b518815f2fad0a5dea56d89a737bb7b814139f4d513066e86db111daa7ecb0b |
| +internal/edge/forwardha.go Edge.forwardHAObserved legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=held-requests Task 3: spends one in-memory attempt; on the first copies a request body of known length at most 64 KiB (or none) into memory and marks the hop X-Carlos-Replayable, on the second sends that copy unmarked, never a third; wraps the existing forward transport to consume a handover answer to the marked attempt and to strip X-Carlos-Handover from relayed answers; the ref is checked with the in-memory view (boxInView) and handoverAuthority; reads the route in memory; no store or filesystem read. Task 3 fix round 1: a body that is not copied is wrapped (watchBody, in memory) to note when it has all been read, and a relayed answer the upstream closes after, while that body is unfinished, gets Connection: close (closeAfterEarlyAnswer); a handover naming this box also clears the already-met Expect header on the request served here; no read added. Task 3 fix round 3: after relaying an early closing answer (closeAfterEarlyAnswer, which now also sets the client connection's read deadline 1 s ahead), finishEarlyAnswer flushes the answer and reads and discards the client's own request body until it ends or that deadline passes, so the client connection closes within about 1 s; reads only the request body, no store or filesystem read. Task 3 fix round 4: the 1 s read deadline is set in finishEarlyAnswer after the relay, not when the answer's headers arrive, so a slow closing answer is relayed whole first; no read added;rev3=census-ruling-path-routes-across-boxes;basis=#186: log lines name hopName(host, at.rt.Host); log text only, adds reads of the attempt's Route.Host registry:Host@378,whole:Route@381,whole:Route@4625 52674a9ca6688352c6222ff81d4df618184803461a6fb53d3504a58fe1be131a |
| +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.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Add SetServingMode dispatch using the existing remote request Host, Ver and On fields; the same local narrow writer handles it. No new transport or root path. Task 4 R24: dispatch SeedStateless with the existing Observed Route and On carriers to its symmetric guarded local method. No new transport; the existing read-only service gate still refuses writes.;rev3=census-ruling-region-ha-p1b3b-t;basis=Dispatch typed duty, import, exact replacement and guarded receipt operations through the existing service-user registry transport, preserving comparisons and errors. B2 fix r1: dispatch AdvanceHADuty through the existing service-user registry channel and error mapping, reading the request Host only. Read-only method allowlist remains unchanged. B3b: transport bounded typed local journal requests and results over the existing authenticated registry channel; no arbitrary SQL or disk path.;rev3=census-ruling-managed-fleets-2a;basis=Expose the two owned managed preparation methods with Fleet envelope fields, preserving conditional result. Witness TestManagedRegistryPreparationMethods local/remote parity. Dispatch ClearFleetBoxDraining with fleet, label and timestamp to validated local method; no new transport or root path. Witness TestManagedConditionalDrainClear. Dispatch managed insert with FleetBox and At, and return Changed for conditional drain clear. Existing transport and local validation; no new root path. Witness TestAddManagedFleetBox local/remote parity.;rev3=census-ruling-stateless-replicas-2;basis=Slice 3b: adds ClearReplicaAssignment over the existing typed registry RPC; local writer checks the complete observed row. Existing read-only RPC gate unchanged. merge of origin/main 9b8b2c50: retain all HA journal/duty/wake/adoption RPCs alongside replica assignment RPCs; union of request/response fields and error sentinels, unchanged transport and read-only gate. Merge 0b3098cb also retains main's two managed fleet RPCs; the replica RPCs and shared refusal gate remain intact.;rev3=census-ruling-managed-fleets-2b1;basis=managed fleets 2b-1 Task 1: the registry child (carlos __registry-child, the service user a root pass forks) answers GetFleet and ListFleetBoxes with GetFleetContext(ctx, q.Name) and ListFleetBoxesContext(ctx, q.Fleet), passing its existing request context so a cancelled caller ends the child's SQL read; same request fields (Name, Fleet) and same local queries; no method, field or read operation added; read-only method gate unchanged;rev3=census-ruling-edge-page-cache-1;basis=adds the SetPages method: r.SetPages(q.Host, q.PagesOff), the request's PagesOff field (the +registry:Host and +registry:PagesOff sites); the same dispatch as SetAssets. Merged onto main's body at 04dc1dc0 (managed fleets 2b-1: GetFleet and ListFleetBoxes now go through their Context forms with the dispatch ctx), which this branch does not change;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 1: nine more cases (PutLinkChannel, RevokeLinkChannel, LinkChannelAuth, LinkOwners, SetLinkSeen, ResetLinkSeen, LinkSeen, LinkForwards, DeleteLinkForward), each calling the local method with request fields; no other case changed; linked deployments slice 1 Task 7: ten cases for the home link methods (HomeLink, PutHomeLink, DeleteHomeLink, ClaimHomeLink, SetHomeLinkState, HomeLinkConnGen, HomeLinkApps, HomeLinkAppByName, PutHomeLinkApp, DeleteHomeLinkApp), each passing the request's HomeLink, HomeLinkApp, Label, Status or Name to the registry method of that name; the same transport, no read added; linked deployments slice 1 Task 7 fix round 1: one more case, SetHomeLinkUnlinkPending, passing the request's LinkID and On to the registry method of that name; no read added; linked deployments final review fix: HomeLinkConnGen's case removed (-registry:Number64); HomeLinkAppByName passes the request's LinkID as well as Name; one more case, SetHomeLinkRotatePending, passing the request's LinkID and On to the registry method of that name; no read added; rotation fix (Astra final re-review, C): SetHomeLinkRotatePending's case removed; two cases added, RotateHomeLinkKey (passing the request's HomeLink ID, Token and RotatePending) and ClearHomeLinkRotatePending (passing LinkID and Seq, answering Changed), each to the registry method of that name, which validates its own input; no read added;rev3=census-ruling-account-subdomains;basis=two more cases: ListAccountNamespaces (answers in StringMap) and SetAccountNamespaces (request field Names), each calling the registry method of the same name on the child's own database; no other case changed;rev3=census-ruling-path-routes-across-boxes;basis=#186: ListPaths/UpsertPath/DeletePath and the new ApplyPaths/PathsGeneration remote methods are dispatched to dispatchRemotePaths; remoteRequest gains PathUpserts/PathDeletes and remoteResponse PathGens/PathGen; same socket and auth registry:A@10963,registry:Account@2988,registry:Account@3087,registry:Account@7179,registry:Accounts@5841,registry:Addr@7756,registry:Addrs@7764,registry:Adoption@1013,registry:Adoption@818,registry:Alias@11011,registry:Alias@11075,registry:Alias@11163,registry:Aliases@10885,registry:Alive@12950,registry:Args@10587,registry:AssetGen@7963,registry:AssetsOff@7950,registry:Assigned@8441,registry:Assignment@9857,registry:Assignment@9955,registry:At@11094,registry:At@11172,registry:At@12698,registry:At@3322,registry:At@3390,registry:At@3782,registry:At@3879,registry:At@3964,registry:At@9335,registry:Attempts@12720,registry:B@3385,registry:B@3439,registry:Backing@7575,registry:Bucket@3100,registry:BuildState@8200,registry:By@3316,registry:Changed@12630,registry:Changed@2860,registry:Changed@2933,registry:Changed@3034,registry:Changed@322,registry:Changed@3721,registry:Changed@4152,registry:Changed@4225,registry:Changed@464,registry:Changed@4674,registry:Changed@4915,registry:Changed@5259,registry:Changed@5572,registry:Changed@564,registry:Changed@6264,registry:Changed@6351,registry:Changed@6440,registry:Changed@6511,registry:Changed@6615,registry:Changed@6702,registry:Changed@6795,registry:Changed@6877,registry:Changed@832,registry:Changed@8788,registry:Changed@8925,registry:Changed@929,registry:Changed@9522,registry:Changed@9710,registry:Channel@7239,registry:Channel@8631,registry:Channel@9180,registry:CheckedAt@9261,registry:Class@7694,registry:DoneBefore@12959,registry:Due@10288,registry:Due@10352,registry:Due@12742,registry:Duty@312,registry:Duty@390,registry:Duty@634,registry:EgressAllow@8103,registry:Env@8699,registry:Env@9091,registry:Env@9191,registry:ExcludeHosts@12425,registry:ExcludeHosts@12520,registry:ExpectGood@9460,registry:ExpectOp@6319,registry:ExpectOp@6569,registry:ExpectPair@6749,registry:Expected@1001,registry:Expected@1153,registry:Expected@1626,registry:Expected@1803,registry:Expected@2114,registry:F@2832,registry:F@2893,registry:F@2978,registry:F@2988,registry:F@3077,registry:F@3087,registry:F@3100,registry:Fleet@3132,registry:Fleet@3497,registry:Fleet@3579,registry:Fleet@3660,registry:Fleet@3764,registry:Fleet@3861,registry:Fleet@3946,registry:Fleet@4047,registry:Fleet@8831,registry:FleetBoxes@3996,registry:Fleets@3202,registry:From@7350,registry:From@7411,registry:FromDB@7486,registry:FromOp@6407,registry:FromSock@7496,registry:HAJournal@183,registry:HAJournal@221,registry:Hash@8505,registry:Health@7773,registry:HomeLink@4751,registry:HomeLink@4827,registry:HomeLink@5162,registry:HomeLink@5177,registry:HomeLink@5195,registry:HomeLinkApp@5418,registry:HomeLinkApp@5528,registry:HomeLinkApps@5348,registry:Host@10089,registry:Host@10165,registry:Host@10225,registry:Host@10280,registry:Host@10344,registry:Host@10528,registry:Host@10579,registry:Host@10646,registry:Host@10721,registry:Host@10784,registry:Host@1136,registry:Host@11381,registry:Host@11507,registry:Host@12061,registry:Host@12125,registry:Host@12184,registry:Host@12267,registry:Host@12350,registry:Host@12581,registry:Host@12666,registry:Host@12798,registry:Host@12879,registry:Host@13042,registry:Host@1888,registry:Host@1999,registry:Host@286,registry:Host@350,registry:Host@422,registry:Host@4713,registry:Host@501,registry:Host@602,registry:Host@6025,registry:Host@6066,registry:Host@6219,registry:Host@6295,registry:Host@6381,registry:Host@6473,registry:Host@6545,registry:Host@6651,registry:Host@6741,registry:Host@6829,registry:Host@6921,registry:Host@694,registry:Host@7171,registry:Host@7231,registry:Host@7289,registry:Host@7342,registry:Host@7403,registry:Host@7478,registry:Host@7567,registry:Host@7621,registry:Host@7686,registry:Host@772,registry:Host@7748,registry:Host@7826,registry:Host@7883,registry:Host@7942,registry:Host@8030,registry:Host@8095,registry:Host@8192,registry:Host@8257,registry:Host@8318,registry:Host@8368,registry:Host@8433,registry:Host@8497,registry:Host@8558,registry:Host@869,registry:Host@8691,registry:Host@8745,registry:Host@8823,registry:Host@8960,registry:Host@9013,registry:Host@9243,registry:Host@9327,registry:Host@9384,registry:Host@9452,registry:Host@9667,registry:Host@973,registry:Host@9932,registry:Hosts@1051,registry:Hosts@5904,registry:Hosts@8622,registry:Hosts@9082,registry:Hosts@9171,registry:ID@5162,registry:Id@2108,registry:Id@2419,registry:Id@2518,registry:Id@2598,registry:Id@2749,registry:IdValue@5660,registry:Idle@10654,registry:Import@734,registry:Journal@1306,registry:Journal@2126,registry:Journal@2425,registry:Journal@2604,registry:Keep@13058,registry:KeyFP@3307,registry:Kind@12887,registry:Kind@13050,registry:Label@3506,registry:Label@3588,registry:Label@3669,registry:Label@3773,registry:Label@3870,registry:Label@3955,registry:Label@4950,registry:Label@8840,registry:Lifetime@358,registry:Lifetime@430,registry:Lifetime@517,registry:Lifetime@610,registry:Lifetime@877,registry:Limit@12416,registry:Limit@12511,registry:Link@4188,registry:LinkID@4264,registry:LinkID@4443,registry:LinkID@4635,registry:LinkID@4721,registry:LinkID@5091,registry:LinkID@5307,registry:LinkID@5461,registry:LinkSeen@4545,registry:MaxRun@10662,registry:Method@151,registry:Moved@8453,registry:Ms@12714,registry:Name@12133,registry:Name@12192,registry:Name@12275,registry:Name@12589,registry:Name@12674,registry:Name@12806,registry:Name@1896,registry:Name@2007,registry:Name@2978,registry:Name@3077,registry:Name@3172,registry:Name@3292,registry:Name@5471,registry:Name@5611,registry:Name@5679,registry:Names@11663,registry:Next@1165,registry:NextAt@12732,registry:NextGood@9474,registry:NextValue@2678,registry:NextValue@2776,registry:Now@10855,registry:Now@12409,registry:Now@12504,registry:Now@12597,registry:Now@2031,registry:Number64@3819,registry:Number64@5767,registry:Number@12847,registry:Number@12918,registry:Number@13003,registry:Observed@10022,registry:Observed@1229,registry:Observed@9568,registry:Observed@9655,registry:Observed@9755,registry:Observed@9830,registry:ObservedValue@1507,registry:Old@2671,registry:Old@2769,registry:On@10034,registry:On@10104,registry:On@10233,registry:On@10729,registry:On@10792,registry:On@4460,registry:On@5101,registry:On@9969,registry:Op@6237,registry:Op@6313,registry:Op@6481,registry:Op@6563,registry:Op@6659,registry:Op@6837,registry:Op@6929,registry:Owner@1144,registry:Owner@1241,registry:Owner@1524,registry:PagesOff@7891,registry:Pair@509,registry:Pair@6581,registry:Pair@6665,registry:Pair@6763,registry:Pair@780,registry:Pair@981,registry:Path@11958,registry:PolicyExpiresAt@8126,registry:Prev@9399,registry:Pub@3300,registry:RDs@11515,registry:RateLimit@8566,registry:Receipt@889,registry:Regional@11413,registry:Registration@12283,registry:Registration@12682,registry:Registration@1904,registry:Registration@2015,registry:Replica@8326,registry:ReplicaLife@9842,registry:ReplicaLife@9940,registry:Replicas@8265,registry:Retirement@2755,registry:Revision@529,registry:Revision@622,registry:Revision@989,registry:RotatePending@5195,registry:Route@6002,registry:Routes@10386,registry:Routes@10453,registry:Routes@10822,registry:Routes@4602,registry:Routes@5960,registry:Routes@6955,registry:Rows@12069,registry:Seed@10536,registry:SeenAt@4466,registry:Seq@4453,registry:Seq@5317,registry:Size@8118,registry:Sqid@5671,registry:Sqid@5734,registry:Sqid@5813,registry:Status@11084,registry:Status@12704,registry:Status@12814,registry:Status@1920,registry:Status@3678,registry:Status@5012,registry:Status@6227,registry:Status@6303,registry:Status@6389,registry:Status@6553,registry:Status@7297,registry:Status@9251,registry:Steering@7834,registry:StringMap@11555,registry:StringMap@4084,registry:StringMap@4301,registry:StringMap@4364,registry:T@12009,registry:T@1621,registry:T@1715,registry:T@1798,registry:TValue@6107,registry:TValue@6174,registry:TValue@8890,registry:TValue@9580,registry:Tags@3597,registry:Target@9021,registry:Targets@1317,registry:Text@11814,registry:Text@11877,registry:Text@2324,registry:Text@2471,registry:Text@5781,registry:Timer@12097,registry:Timer@1573,registry:Timer@1755,registry:Timers@12320,registry:Timers@12379,registry:Timers@12468,registry:Times@13092,registry:To@7358,registry:To@7419,registry:ToDB@7508,registry:ToOp@6399,registry:ToSock@7516,registry:Token@5177,registry:TokenHash@3515,registry:Tunnel@8753,registry:Unit@7629,registry:UpdateSettings@8038,registry:Ver@10097,registry:Ver@10173,registry:Ver@9392,registry:W@11315,registry:Wake@702,registry:Wake@788,registry:Wildcards@11209,whole:Account@5845,whole:ClaimOwnership@1146,whole:ClaimOwnership@1243,whole:ClaimOwnership@1526,whole:ClaimRow@1319,whole:ClaimRowArchive@1425,whole:ClaimRowArchive@1435,whole:ColdRows@2673,whole:ColdRows@2680,whole:ColdRows@2771,whole:ColdRows@2778,whole:DutyState@316,whole:DutyState@394,whole:DutyState@636,whole:Fleet@2834,whole:Fleet@2895,whole:Fleet@2980,whole:Fleet@2990,whole:Fleet@3079,whole:Fleet@3089,whole:Fleet@3102,whole:Fleet@3136,whole:Fleet@3206,whole:FleetBox@3387,whole:FleetBox@3441,whole:FleetBox@4000,whole:GoodBuild@9462,whole:GoodBuild@9476,whole:HAAdoption@1015,whole:HAAdoption@822,whole:HAWakeImport@704,whole:HAWakeImport@790,whole:HomeLink@4755,whole:HomeLink@4829,whole:HomeLink@5164,whole:HomeLink@5179,whole:HomeLink@5197,whole:HomeLinkApp@5352,whole:HomeLinkApp@5422,whole:HomeLinkApp@5530,whole:LinkChannel@4190,whole:LinkSeen@4549,whole:Pair@511,whole:Pair@6583,whole:Pair@6667,whole:Pair@6751,whole:Pair@6765,whole:Pair@782,whole:Pair@983,whole:RegionalDomain@11417,whole:RegionalDomain@11517,whole:Route@10024,whole:Route@10390,whole:Route@10457,whole:Route@10826,whole:Route@1231,whole:Route@4606,whole:Route@5964,whole:Route@6006,whole:Route@6109,whole:Route@6176,whole:Route@6959,whole:Route@7114,whole:Route@7120,whole:Route@8892,whole:Route@9570,whole:Route@9582,whole:Route@9657,whole:Route@9757,whole:Route@9832,whole:RouteAlias@10889,whole:RouteAlias@10965,whole:Timer@12011,whole:Timer@12071,whole:Timer@12101,whole:Timer@12324,whole:Timer@12383,whole:Timer@12472,whole:Timer@1509,whole:Timer@1577,whole:Timer@1623,whole:Timer@1717,whole:Timer@1759,whole:Timer@1800,whole:WildcardDomain@11213,whole:WildcardDomain@11317,whole:haJournalRequest@223,whole:haJournalResponse@187,whole:remoteRequest@11782,whole:remoteResponse@11786 e950b1d2c86d09ba966957b23d6412dbb65c0a343d2589255b19f02e3a1c5ace |
| +internal/domains/aliases.go ReconcileAliasesReport legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-edge-asset-cache-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), in its alias pass (aliasPassReporting in runAgent; ReconcileAliases, now a wrapper, is its other caller): main's ReconcileAliases body, moved here with the same reads and writes, plus a completeness report (AliasReport) set false at every point that already logged a failure and carried on, and when relevantDropped names a listed claim the pass could not rule out; the box's asset authority clock advances only after a complete pass; one more whole:Route and whole:RouteAlias site each, the routes and alias rows the pass already read handed to relevantDropped; no registry, file or bucket read added; no root pass calls it; no root decision;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: in the alias pass inside the agent: reads the existing regional_domains rows (reg.ListRegional) beside the alias rows, derives a regional claim's rows through deriveRegional for AliasReport.Region (the caller's ReconcileConfig.Region, set by aliasPassReporting) and its wildcard parent when bound, skipping the alias, paths and catch-all halves for it, writes them through writeRegional, and keeps an unread regional claim's wildcard parent while the kept apex row still binds a target RegionalTarget accepts on the routes this pass read (same account and app, per-box cap); claims are read as before (the listing and per-claim GETs it already does); the added reads are the registry's regional rows and fields of rows the pass already holds;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 fix rounds 2-3: AliasReport.FleetRefused (edge.FleetArmVerdict's refused set) is called once on the pass's own listing; a Wildcard claim whose primary is fleet-refused derives no wildcard_domains row (an earlier one goes with the ordinary removal); the catch-all alias is derived as before (+registry:Host, +whole:Route). Rows already read; writes less, never more; no root pass calls it.;rev3=census-ruling-region-ha-g2-fixes;basis=Project accepted regional exact/catchall names and plain/delegated aliases into routing-only reports using existing claims and pre-pool metadata; new whole Route/RegionalDomain uses, no new external reader.;rev3=census-ruling-fix-incomplete-domains-pass;basis=adds AliasReport.StartupNoRemoval, an input set only by the agent startup HA ingress pass (host startupAliasPass via runHAIngressStartup): when set, the pass skips the route_aliases, wildcard_domains and route_paths removals (each skipped removal marks the pass incomplete) and the removal rules themselves are unchanged; derivations, refusals and writes are unchanged; same read sites (body change only); no new registry, file or bucket read; deletes less, never more, and only on the startup pass; no root pass calls it; no root decision;rev3=census-ruling-account-subdomains;basis=with AliasReport.AppsDomain set, reads the box's own account_namespaces table (reg.ListAccountNamespaces), sorts a listed-but-unread namespace claim (ParseNamespaceHost on the dropped host): a not-found body keeps nothing and is not counted by relevantDropped, any other failure keeps that name's recorded rows; runs deriveNamespaceAliases after deriveInstanceAliases on the routes, alias rows and claims it already read (AccountNamespaces over the read claims), keepNamespaceAliases for unread names, and writes the table through writeAccountNamespaces (once, only when it differs; no shrink under StartupNoRemoval); the added sites are the routes and alias rows already read handed to those helpers; no file or bucket read added; fix round 1: keepNamespaceAliases runs before deriveNamespaceAliases, and repairNamespaceStatus stamps "pointing" on derived-shape rows of exact claims and kept names, over claims and rows already read;rev3=census-ruling-path-routes-across-boxes;basis=#186: path derivation moved to derivePaths and the route_paths write to writePaths (pathwrite.go); its own route_paths reads moved with them; unread claims now keep their path rows like regional rows; no read added here registry:Account@14966,registry:Account@14981,registry:Account@15099,registry:Account@15451,registry:Account@15464,registry:Alias@12960,registry:Alias@13093,registry:Alias@13163,registry:App@14994,registry:App@15005,registry:App@15112,registry:App@15477,registry:App@15486,registry:App@5182,registry:App@5378,registry:App@8724,registry:App@8924,registry:App@9080,registry:App@9281,registry:Host@14776,registry:Host@14851,registry:Host@14874,registry:Host@14926,registry:Host@15260,registry:Host@15332,registry:Host@15436,registry:Host@15747,registry:Host@15893,registry:Host@15965,registry:Host@834,registry:Host@9647,registry:Region@15121,registry:Target@14946,registry:Target@15051,whole:RegionalDomain@13740,whole:RegionalDomain@13758,whole:RegionalDomain@14704,whole:RegionalDomain@14742,whole:RegionalDomain@14763,whole:RegionalDomain@14786,whole:RegionalDomain@14913,whole:RegionalDomain@276,whole:RegionalDomain@3633,whole:RegionalDomain@3834,whole:Route@1045,whole:Route@10529,whole:Route@11654,whole:Route@11662,whole:Route@12493,whole:Route@12583,whole:Route@12591,whole:Route@15044,whole:Route@15095,whole:Route@2251,whole:Route@337,whole:Route@3815,whole:Route@4234,whole:Route@4525,whole:Route@5222,whole:Route@5373,whole:Route@5429,whole:Route@7471,whole:Route@787,whole:Route@816,whole:Route@827,whole:Route@845,whole:Route@8693,whole:Route@8768,whole:Route@8915,whole:Route@8977,whole:Route@9120,whole:Route@9276,whole:RouteAlias@11670,whole:RouteAlias@12475,whole:RouteAlias@12599,whole:RouteAlias@12754,whole:RouteAlias@12935,whole:RouteAlias@2259,whole:WildcardDomain@14810,whole:WildcardDomain@14839,whole:WildcardDomain@15320,whole:WildcardDomain@15342,whole:WildcardDomain@15366,whole:WildcardDomain@15415,whole:WildcardDomain@15578,whole:WildcardDomain@15706,whole:WildcardDomain@15735,whole:WildcardDomain@4048,whole:WildcardDomain@9843 0e69131d30c682a9c210877fc879b4c998cfe2c155eca3b3c43d3bfbf070cecf |
| +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.;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): after the new upstream map is published, closes the held streams of any host the new map no longer holds (absent, not hibernating, route no longer Hibernate). Reads the freshly built in-memory map m and the in-memory held set; no read added beyond the rebuild Reload already does.;rev3=census-ruling-devbox-identity;basis=#486 A: only the devbox edge created by newDevboxEdge (carlos-devbox service user, not root) enables the new proxy hooks. Saves the existing DispatchArm result and reads t.Socket from an already-listed route when that arm is ArmSocket, passing it to configureDevboxProxy for per-request expected-owner validation and visitor-header rewriting. Adds one registry:Socket field site; no new registry query or file open, and ordinary fleet/agent edges leave the hook disabled. Final fix wave: its devbox-only outgoing-header/trailer hooks now also strip case-insensitive underscore/hyphen aliases through stripVisitorHeaders; no new read.;rev3=census-ruling-agent-start-demo-1;basis=Checks demo route eligibility and filters the final folded map using the existing registry listing; no new registry or store query. Merge resolution against origin/main 9bd45488 retains main's devbox proxy hooks (reading the existing route Socket) alongside demo filtering; no additional registry query.;rev3=census-ruling-stateless-replicas-3;basis=Task 3: dispatch admitted stateless set rows through replicaProxy before legacy fleetBoxOf. Read Host and supplied whole Route values from the existing listing to build and filter the set probe inputs after all registry reads and alias folds; synchronize before map publication. Tenancy comes only from FleetArmVerdict. No new external read; no set row reaches legacy fallback, local addresses, provision.Health or hibernation on the hub. Fix round 1 M2: comment and whitespace correction only; read sites and routing behavior unchanged.;rev3=census-ruling-agent-start-demo-2;basis=edge.go:1175-1177 passes an already-listed demo Route to demoProxy; :1358 passes existing Route and RouteAlias slices to demoRefusalNames; :1401 publishes refusal names before upstreams. Adds whole-value uses only, no new registry query; retained names refuse fallback after filtering.;rev3=census-ruling-demo-api-site-route;basis=Build a dedicated demo API proxy from the selected existing socket, TCP or probed console transport in the same atomic route snapshot, before ordinary wrappers. Reads existing route Host twice, Version and two whole Route values for exact operator-configured console eligibility. No additional registry query or external read.;rev3=census-ruling-agent-start-demo-3;basis=Refresh the verified moved snapshot from registry on reload before route-independent serving. Census read-site delta: unchanged (87).;rev3=census-ruling-region-ha-g2-fixes;basis=Derive blocked ingress names from already listed unready/held/import-gated/sidecar and fleet-refused rows; added field reads only.;rev3=census-ruling-edge-page-cache-1;basis=keeps every row this reload already read from the registry (e.pageRoutes, e.pageRoutesRead = routes, true, under reloadMu) for the page reload hook; the +whole:Route sites are that assignment of the same slice; no new read;rev3=census-ruling-held-move-speed;basis=the six tenant reverse proxies' ModifyResponse is now classifyMoveStreams(e.responseModifier(t)): MarkMoveStream first reads the response head (status 101, or Content-Type text/event-stream) and sets a flag on the request's in-memory StreamEnd, then responseModifier runs unchanged (byte-identical to main). The hook never wraps or touches the body, so the trailer scrubs keep the proxy as their one closer (Astra r2 F2.1: the graceful boundary end and its watcher were cut). No read added;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 3: with tunnels on, the pass also reads LinkChannelAuth and LinkOwners from the box's own registry (fresh connection, as FleetChannelAuth and FleetOwners) and merges each well-formed link channel's hash into the set SetDynamicAuth takes; the verdict judges link-placed forward rows by the link owners; an admitted one takes the new ArmLink case (linkProxy down the link's channel, tenancy with the link); the door's fleet snapshot stays fleet owners only and link owners go to a separate snapshot; +whole:Route is the row handed to the new case's responseModifier; the edge process as carlos, no root decision; linked deployments slice 1 Task 8: each upstream entry also records localBackend (ArmSocket, or an instance the activator runs here), from values the pass already holds; no read added; linked deployments slice 1 Task 11: the LinkChannelAuth read (the same fresh-connection read) moves to the top of the pass, before List, and its map is applied at once through the hub's new SetLinkAuth (the link half of the credential set only; fleet entries untouched), so a link revocation or rotation closes the home connection on the old hash even when a later read or step of the same reload fails; the same map is still merged into the set SetDynamicAuth takes; no read added, one moved; the edge process as carlos, no root decision; Task 11 fix round 1: comments only (the reload hook contract now says the link credentials are applied before afterRead); no code or read changed; final review fix: the store of the unread linkAccounts snapshot is deleted (fleetAccounts unchanged); no read added or moved;rev3=census-ruling-stateless-replicas-4-drill3;basis=drill 3 R23: keeps the map it replaces (e.current(), under reloadMu) and, for an ArmReplica row, hands the listed row t and that host's previous entry to replicaHandoffFor; the result is set on the new replica transport and the upstream entry. Review round 3: an activator-owned row's app socket proxy is built with ManyCopies(t), the listed row's own copy count, scoping only when an outside stop may refuse a request. +registry:Host and +whole:Route are the already-listed row t; no registry query, file or store read added; the edge process as carlos, no root decision;rev3=census-ruling-stateless-replicas-4-r28;basis=R28 (#511): right before it publishes the new map, passes the map it replaces (prevMap, already held under reloadMu) and the new map m to noteRetiredCopies, which keeps in memory, for retiredCopyGrace (120 s), the names of this box's replica copies that retired (an instance row of a set with more than one copy, absent from m) and logs one line each. Review round 1: an activator-owned row's app socket proxy is built with the in-memory e.retired.retiring check beside ManyCopies(t), so a request that chose the row before it was dropped ends its dial hold and is refused (REFUSED_STREAM) once the copy is retiring; no registry, file or store read added; the edge process as carlos, no root decision;rev3=census-ruling-path-routes-across-boxes;basis=#186: route_paths rows come through pathRowCache.load (reused while registry.PathsGeneration is unchanged, else ListPaths as before); attachPaths folds them; buildRemotePaths builds the remote map for hosts this box does not serve; publishes routeTable{hosts, remote}; reads the same registry tables as before registry:Account@12872,registry:Alias@27723,registry:Alias@27810,registry:Alias@28390,registry:App@12888,registry:Health@16693,registry:Health@16819,registry:Hibernate@33197,registry:HoldOp@31806,registry:Host@14199,registry:Host@14256,registry:Host@14292,registry:Host@15059,registry:Host@17302,registry:Host@17397,registry:Host@17685,registry:Host@17711,registry:Host@17763,registry:Host@20593,registry:Host@20626,registry:Host@22649,registry:Host@24556,registry:Host@24864,registry:Host@24891,registry:Host@28144,registry:Host@28193,registry:Host@31242,registry:Host@31267,registry:Host@31284,registry:Host@31883,registry:Host@6218,registry:Host@6587,registry:Host@6641,registry:Host@6691,registry:Host@7805,registry:Host@8040,registry:Host@8132,registry:ImportGate@31825,registry:Kind@20985,registry:Kind@21007,registry:Socket@15158,registry:Socket@20864,registry:Socket@24872,registry:Status@31782,registry:Status@6512,registry:Tunnel@12711,registry:Tunnel@12903,registry:Version@20716,registry:Version@20966,registry:Version@21068,whole:RegionalDomain@29087,whole:Route@10250,whole:Route@1045,whole:Route@12793,whole:Route@14347,whole:Route@14475,whole:Route@15098,whole:Route@15234,whole:Route@17856,whole:Route@17921,whole:Route@17972,whole:Route@20643,whole:Route@20650,whole:Route@20774,whole:Route@24952,whole:Route@24959,whole:Route@25073,whole:Route@26845,whole:Route@29079,whole:Route@29171,whole:Route@29211,whole:Route@29381,whole:Route@29412,whole:Route@31148,whole:Route@31182,whole:Route@31270,whole:Route@31349,whole:Route@31768,whole:Route@33199,whole:Route@33256,whole:Route@33287,whole:Route@5238,whole:Route@5296,whole:Route@6226,whole:Route@7834,whole:Route@8079,whole:Route@8287,whole:Route@8421,whole:Route@8444,whole:Route@8459,whole:Route@9305,whole:Route@9433,whole:RouteAlias@27694,whole:RouteAlias@29179,whole:RoutePath@25823,whole:RoutePath@29359 ecd63ba4729d31f13a054adf70b914383a6aa43fc81cb0f191a37240e320f5fd |
| +internal/edge/edge.go Edge.ServeHTTP legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the edge inside the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with the import gate checked after the door's scope and a gated row left out of the response cache; serving only;rev3=census-ruling-edge-request-records;basis=one more call in the observer defer, observeRecords(up.route, ...), passing on the route the defer already holds; no new kind of read;rev3=census-ruling-design-edge-rate-limit-358;basis=calls rateAdmit twice, and an admitted request holds a slot on both paths: on the upgrade path before the activator or proxy (the handshake holds its slot through slotWriter, given back at the first final answer or at the reverse proxy's hijack on a 101, so an open WebSocket is not counted; released by a defer), and on the ordinary path after the response-cache check and before the activator and proxy (an admitted request holds a slot through slotWriter, released by a defer); a refusal is a 429 written there and returns; the upgrade path's comment now names slotWriter as its one wrapper; one comment on the door mark reworded; read sites unchanged (22: main's 21 plus edge-request-records' observeRecords pass of the route), offsets moved; no read added;rev3=census-ruling-plans-4c-box-throttle;basis=calls planThrottleAdmit before the response cache, and on an upgrade trackUpgrade then planUpgradeAdmit (plans 4c, Astra findings 1 and 2); the new reads live in those units (plans-4c-units decision). The same read sites here.;rev3=census-ruling-plans-4d-lapse;basis=calls planDisabledAdmit right after the import gate, passing the final upstream's route and the request host; a turned-off route gets the fixed disabled page before the meter, gate, cache and activator (plans 4d). The new read lives in that unit (plans-4d-units decision); one more whole-row pass here.;rev3=census-ruling-edge-protection-2;basis=runs the guard, a pure in-memory matcher on r.URL.Path and RawQuery (internal/edgeguard), once per request after the meter and observer defer and before the password gate, the upgrade branch, the cache and the activator, for a request that is not a door call, a backhauled door hop or a tunnel delivery; a matched block answers a 404 itself through guardDecide; the two new sites are one expression, up.route.Kind == "static" (a static route this box serves checks only the hard tier here and leaves the probe tier to serveTree), a read of the route row the edge already resolved; no new kind of read;rev3=census-ruling-edge-asset-cache-3;basis=the asset cache's three hooks (asset cache plan 3): the request's reserved asset headers are deleted at entry (the fill assertion kept only beside a verified hop); on the exact-remote and lookup-miss branches the far catch (serveAssetFar) is tried before backhaulTo and backhaul; after the observer defer and main's hard and probe checks, a verified hop with a valid fill assertion is answered by serveAssetFillForHop; after the upgrade branch and before gzip and the shared cache, the local catch (serveAssetLocal); the observer defer skips only the usage meter for an acknowledged home fill (out.unbilled); the new reads live in the new units of the edge-asset-cache-3-decisions overlay; the same route row and read sites (25); no read added;rev3=census-ruling-regional-domains-447;basis=#447 Task 5: straight after lookupUpstreamPath it calls regionalGate (regional.go), which for an entry built from a regional_domains row answers 503 to a hop or a deny entry before any arm that can leave the box (the exact-home backhaul, the far asset catch, the door dial, the miss backhaul), and lets a star match through only to the exact-home arm when ExactHome names another box for that distinct exact name; after the exact-home arm a regional deny entry the arm did not answer is refused (regionalRefuse, 503); refusals only, on the route map the edge already holds; read sites unchanged (25);rev3=census-ruling-static-headers;basis=the shared response cache is no longer looked up or filled for a static-kind route: one more read of the route row the edge already resolved (up.route.Kind == "static") in the cacheable expression; a refusal only, nothing new opened or followed;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2 (N-HA10): one call, frontForwardHA, right after the route lookup's !ok block and before the login POST; same reads;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 4: loginPost and cacheable treat a forward row as not this box's to answer (IsForward(), +whole:Route x2): no login form and no shared cache for a forward host. Serving only.;rev3=census-ruling-tunnel-websockets;basis=Deletes the Carlos-Upgrade marker header from incoming requests and puts the upgrade admission (host, path, the entry tenancy, all in hand) on a tunnel arm request. For a login POST on an ungated ArmTunnel row it reads the visitor request body (bounded by gate.MaxFormBody, 413 past it; a request body, not a file) and resolves next against the entry Reload built (Gate, Route); the bytes pass on only when loginPassesThrough holds (spec 7, Tasks 3, 5 and 6).;rev3=census-ruling-console-protection-tab;basis=one more call in the observer defer, observeGuardCount(up.route, out), beside the observeRecords call that files the guard Match: it passes on the route row the defer already holds (+whole:Route) and the request outcome to the usage meter, which counts the check in memory. Called whether or not the request was unbilled, as observeRecords is. Nothing is opened, read or followed; no new kind of read; no check, refusal or serving decision changes.;rev3=census-ruling-probe-burst-limit;basis=answers a probe-burst notice POST (serveBurstNotice) ahead of every route for a non-door caller; builds the guard state for up.route and stamps its account and app (RouteAccount, App) for the cool-down's this-app/other-app label; for a catalogue match on a non-static or tunnelled route, offers the burst rule (in-memory limiter, burstDecide: 429 or a watch verdict, never a block for a fleet or forward row); the observer defer calls noteBurst(up.route, ...); the added sites are the route value already in hand (+registry:App, +whole:Route x5); no new root read or write kind;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): parses the request's query once (stripHoldMarker) to record the carlos_hold=1 mark in the request context; calls classifyHold on the upstream already resolved from the loaded map (the +whole:Route is that in-memory Route), including a second pass for a login POST; gives a marked request on a door-refused route the plain 404; adds the hold branch (planThrottleAdmit, rateAdmit, serveHeld) after the gate; and excludes marked requests from the shared cache. Reads only the request and the already-loaded upstream map; no registry or bucket read added.;rev3=census-ruling-region-ha-p3a;basis=Complete the P3a cut: an exact peer name with no dial target answers the approved admission 503 before local wildcard dispatch or asset serving. ExactHome and lookupHome stop fallback at a present non-dial entry; backhaulTo refuses an empty target before signing or dialing. Retain Task 3 local admission and fixed platform/unit exemptions. Two added whole Route uses feed the local in-memory admission predicate; existing Route values and store/path reads are unchanged.;rev3=census-ruling-stateless-coordinator-route;basis=P24/P25: POST only, exact /api/fleet/replicas/ prefix on the reserved tunnel host calls the existing local console proxy only for an unescaped, already-clean path; malformed forms remain on the hub. No new read sites relative to origin/main. Merge with main 3487d6f6 retains its region HA admission checks before routing and after login target lookup, its empty-home refusal, and their two existing whole:Route reads; these change this unit's digest relative to the previously approved branch tip 92b24a7d.;rev3=census-ruling-stateless-replicas-3;basis=Task 1a: pass the already-resolved Route to the reserved replica-probe handler after acceptHop and existing admissionRefuses, requiring tunnel context plus private marker and refusing door/backhaul ingress. Added whole Route use only; scrub marker before forwarding; HA calls remain unchanged.;rev3=census-ruling-region-ha-p3b;basis=Resolve local aliases/catch-alls with cached peer name ownership before serving. Add registry Account/App/ClaimStamp/Host/Incarnation/ServingSeq and six whole Route references for NameClaim; inputs are agent registry rows/edges publications used by unprivileged edge, not root permits. Closed owners retain names and return 503; aware remote owner cannot fall through on missing transport, while legacy hop/door behavior remains. Merge 45cebde4 retains authenticated replica probes after local admission and before ordinary name resolution; probe authentication still requires the tunnel context.;rev3=census-ruling-agent-start-demo-2;basis=edge.go:1901 enters the protected demo path before ordinary exits; :2012-2015 rechecks the selected marked Route after lookup. Added whole Route use routes demos through serving checks, counters and policy; no new registry query or file open in this unit.;rev3=census-ruling-demo-api-site-route;basis=Reserve the configured site API namespace after hop verification and control-header scrubbing, before ordinary static, cache, billing and tenant dispatch. Validate hop field shape and delegate only allowlisted operations to the dedicated console path with verified client attribution and console admission. The alias helper enables HTTP/1.1 full duplex so an early console refusal does not wait for upload EOF. Existing 56 read sites unchanged; no new registry, bucket or file read.;rev3=census-ruling-region-ha-g2-fixes;basis=Consult HA ingress after region admission and before miss/alias backhaul; no new direct read; routing-only metadata does not create an upstream.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3/W4: backhaul and door calls pass the owner the door checked into backhaulTo; the §6.5 holder follow (once, GET/HEAD or an unswitched upgrade, no body) and one connect-failure fallback dial only boxes in the holder region's view (same Region/Placement/DataBucket, HomeEligible, fresh) for that owner. Holder name comes only from the TLS-verified signed hop answer; app-set X-Carlos-Holder stays stripped. Routing only; the receiving box still re-checks the lease. No new read site.;rev3=census-ruling-edge-page-cache-1;basis=attaches an in-memory page mark holder to every request to an instance route (the +registry:Kind check of up.route.Kind), wraps the hold and upgrade branches in pageDiagnostics, asks servePage after the plan throttle (a hit answered from the page index over the asset store), keeps an opted-in instance out of the LRU (pagesOptedIn), wraps the response in the page writer, and wraps the proxy's writer in assetInformationalScrub on the remaining arms; the page reads are in the new pagecache.go units;rev3=census-ruling-region-ha-held-build;basis=first branch: a request for the reserved control paths /.carlos/ha-drain and /.carlos/ha-take goes to serveHAControl and returns (refused unless a signed ask); no request on those paths reaches a route, a forward or an app; no read added here. region HA held-requests Task 2: X-Carlos-Replayable is read from verified hops only and deleted from every request; just before frontForwardHA, moveGate runs for an HA hibernating route (route HA, Host and the whole Route passed in memory) and can only hold, refuse with an existing answer or front-forward to the confirmed holder; ReleaseMoveTicket before serveHeld; no store or filesystem read added; region HA held-requests Task 5: after the HA control-path branch, every request is counted by the connection drain (conns.track: a cancellable request context, and Connection: close only while draining); memory only; no read added; Task 5 fix 1: after the drain's final barrier a new request is refused at once through handoverExit with the existing answerHolderUnreachable, never forwarded; the tracked request also carries its connection (from ConnContext) so the drain can close it at its bound; memory only; no read added;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 3: the inbound strip also deletes tunnelclient.LinkAppHeader (Carlos-Link-App) from every client request, beside Carlos-Tunnel-Upgrade; a header delete, no read added; linked deployments slice 1 Task 8: a request carrying a link pin (ServeLinked, set only by the home agent's link handler from its own registry's published set) skips the edge's own handlers (HA control, demo handling, the steering probe, the tunnel hub, hop acceptance, the burst notice, the demo API alias, the replica probe), takes its upstream from selectUpstream (the pinned exact entry or a 502), never enters the alias/catch-all backhaul block, the HA front forward, the local asset catch, the page cache or the response LRU; the two lookupUpstreamPath calls become selectUpstream; no read added;rev3=census-ruling-stateless-replicas-4-r28;basis=R28 (#511): for a request whose host has no entry (the lookup miss), after the replica-probe branch, calls refuseRetiredCopy(r, host): within the grace of a host whose replica copy this box retired, the fleet tunnel stream is refused with REFUSED_STREAM (tunnelclient.Refuse) and nothing is written; any other miss gets the unknown-host answer as before; memory only, a refusal only, no read added;rev3=census-ruling-static-site-geo-962;basis=discussion #962: after planDisabledAdmit and before the page mark holder and the observer, a request whose cleaned path is /.carlos/geo (not a linked request) is answered by serveGeoAnswer from the request's geo answer already on the context (decideGeo), 200 JSON no-store or 405, and returns; merged with main (no new read);rev3=census-ruling-fleet-unrouted-503;basis=a request the hub tunnel delivered (tunnelclient mark, not a link channel) for a host this box neither routes nor backhauls answers 503 Retry-After 2 instead of the unknown-host 404; no new read, dial or store access; unmarked requests unchanged (#1008);rev3=census-ruling-fleet-unrouted-503-fix1;basis=a request the hub delivered over this fleet box's channel (MarkFleetChannel, set by the box's own tunnel loop for a "<fleet>/<label>" channel, plus the tunnel client mark) for a host this box neither routes nor backhauls, and not under a platform domain, answers 503 Retry-After 2 instead of the unknown-host 404; fixed log key; no new read, dial or store access; every other request unchanged (#1008);rev3=census-ruling-fix-dbforward-reuse-1032;basis=the drain tracking call now takes withDeclaredBodyEnd(r) instead of r: an HTTP/1 request with a declared Content-Length is served from there on with a body that answers EOF itself after those bytes (#1032), so a proxy transport's confirming read after sending the body upstream no longer lands on the server's closed request body and tears down the upstream connection; HTTP/2 requests are left as they are (Astra r1 P2); memory only, no read, dial or store access added;rev3=census-ruling-path-routes-across-boxes;basis=#186: selection returns requestSelection; a Remote selection is dispatched by servePathRemote (one signed hop, never from a verified hop, door call or pin); the ownership block moved to serveNameOwner/nameOwnerVerdict (pathhop.go), so its route reads left; login re-selection via loginLookupPath plus refuseLoginAcross; LRU also requires pathLRUAllowed; no read added file:ReadAll@19372,registry:App@26649,registry:Gate@18346,registry:Gate@31040,registry:Gate@31100,registry:Gate@31158,registry:HA@14090,registry:HA@14432,registry:Host@14471,registry:Host@31143,registry:ImportGate@40035,registry:Kind@23683,registry:Kind@25511,registry:Kind@28949,registry:Kind@39977,registry:Kind@40006,whole:Route@14093,whole:Route@14187,whole:Route@14435,whole:Route@14474,whole:Route@18241,whole:Route@18352,whole:Route@20651,whole:Route@21435,whole:Route@21893,whole:Route@22085,whole:Route@23686,whole:Route@25514,whole:Route@26575,whole:Route@26641,whole:Route@26652,whole:Route@26905,whole:Route@27000,whole:Route@27076,whole:Route@27120,whole:Route@27422,whole:Route@27452,whole:Route@28952,whole:Route@29237,whole:Route@31043,whole:Route@31103,whole:Route@31146,whole:Route@31161,whole:Route@32372,whole:Route@34660,whole:Route@39980,whole:Route@40009,whole:Route@40038,whole:Route@40070,whole:Route@42537,whole:Route@8686,whole:Route@8785,whole:Route@8891 3ace808e10a4d7eee4aa52ead058311027286fafef2de55788aa0a67f7a46254 |
| +internal/host/edgesfile.go edgesFileWriteClaims authority F,J1 rev3=census-ruling-self-serve-moves-1;basis=root-route;kept=F;scope=protected-decision-only; the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): region-ha-2a's body, which with the box's lifetimes switch on also publishes each served row's lifetime pair (registry:Incarnation and registry:ServingSeq, two new sites on the rows it already lists) and an alias's or served catch-all's primary's pair, and names that primary as target_host whatever the switch; a report the edge orders unstamped entries by, not a decision; no record, /data, release or claim read added; F,J1 authority retained; self-serve moves 1 Task 8;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 8: takes a localAddrs reader (instancectl.LocalAddresses in production, which reads /proc/net/fib_trie and /proc/net/if_inet6 in the agent) and publishes its non-loopback entries as the edges file's addrs before the write gate (boxAddrs, no read of its own), so an address change writes once. The same 44 sites, offsets moved; no record, /data, release or claim read added; a report the console's egress grant check reads, not a root decision; F,J1 authority retained.;rev3=census-ruling-edge-asset-cache-3;basis=starts with assets = assets.active(), so a policy whose box has not opened its asset store publishes no assets blocks and reads no manifests, and copies the decision's Primary (the route host the block was decided for, drift D4) into the published assets block; read sites unchanged (44); no read added. Merged onto main's #328 body, which takes the localAddrs reader: the assets.active() line sits after that signature and the loop passes pub and instancectl.LocalAddresses;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: the claims argument (*edgesClaims) becomes addrs (AddressSource) and the applyEdgesClaims(ctx, claims, routes, hosts) call is deleted with edgesclaims.go, which is the one whole:Route site removed: no host claim is read and every served row publishes as with region HA off; the box-address publication is the same code reading addrs.BoxAddresses() instead of claims.addrs; a report the edge reads, not a root decision; no read added; merge of origin/main d7ae1d76: main's edge asset cache plan 3 body is kept (census-ruling-edge-asset-cache-3): the first line is assets = assets.active(), so a policy whose store has not opened publishes no assets blocks and reads no manifests, and edgesFileLoop passes pub (assets.active() for that tick) in the assets argument; main's claims *edgesClaims argument is this branch's addrs AddressSource, and no edgesClaims, applyEdgesClaims or hostclaim reference remains;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: skips publishing a platform alias edge.PlatformAliasFold refuses (and so anything attached to it); reads the same route listing;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 and its fix rounds: publishes by FleetArmVerdict (via fleetRefusedFor): withheld rows left out; a forward host's path rows left out of its owner; no assets for forward rows; the alias loop replays Reload's alias fold from the served rows so a chained alias carries its root primary's owner; certRefused and parentRefused leave out a refused claim's wildcard parent (+registry:Alias x5, +registry:Host x4, +whole:Route, +whole:RouteAlias x2, +whole:RoutePath x7, +whole:WildcardDomain). Rows already read in the pass; keeps authority F,J1; publishes less, never more.;rev3=census-ruling-probe-burst-limit;basis=sets the constant BurstNotices=true on the box's own edges file (this build's edge answers probe-burst notices, so peers may send them); not from config or any read; the same 65 sites; a report other edges read, not a root decision; F,J1 authority retained; no new root read or write kind;rev3=census-ruling-region-ha-p3a;basis=Publish one injected role snapshot with box_role/admitted/drained; retain legacy route and alias rows during booting, cutting namespace withdrawal under the 2026-11-04 ruling; acknowledge the exact published tuple only after PUT; existing registry reads unchanged.;rev3=census-ruling-region-ha-p2b;basis=region HA P2b-1 T0 (Q1 ruling): before building the comparison copy and the body, a nil NamedPools on the identity becomes []string{} so the additive named_pools field is always an explicit array; the list itself is computed once at arm by edgesFileEligibility from the same provisionTickConfig(os.Getenv) parse as serves_shared_pool (CARLOS_POOLS through provision.ParseBoxPools, filtered to nonempty provision.ValidPool names, sorted, unique). A report the console reads for create admission, not a root decision; no record, /data, release or claim read added; read sites unchanged (65); F,J1 authority retained. One-off cost: the first pass after the upgrade writes once per box (seeded gate null vs []).;rev3=census-ruling-region-ha-p3b;basis=Require cached GroupReadersReady before first group publication and append additive names-2 capability even for supplied identities. Agent writes the same edges object/index with existing registry reads; known readers come from root boot configuration, snapshot from existing fold, no added GET/LIST or root authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Omit non-forward, non-platform-alias rows outside local served pools from home publication; added Host/Pool field reads and local configuration use, existing registry/store operations retained.;rev3=census-ruling-edge-page-cache-1;basis=prunes the manifest cache through the new atomic pointer (assets.manifests.Load().prune(...), nil-safe); nothing else changes; read sites unchanged (67); no read added;rev3=census-ruling-region-ha-held-build;basis=writes also when DrainPublishRequired, and reports the written drain state, its ha_drain mark (transaction and publication id) and generation to DrainSource (in-memory); the file gains ha_drained and ha_drain beside the existing draining; no read added. held-requests Task 4: sets the constant ha_take=1 on the box's own file when its in-memory capabilities include region-ha-1 (this build's edge answers take requests); not from config or any read; a report other edges read, not a root decision; no read added;rev3=census-ruling-warm-set-published-724;basis=#724: the agent as carlos: reads PLATFORM_APPS_DOMAIN from the environment once per pass (the variable domainsLoop already reads) and sets an additive dns_pointing mark on each published custom name through dnsPointingMark: true on a published alias (registry:Alias, already published only when its dns_status is pointing), and on a route with a hostname outside the apps domain whether its registry:DNSStatus is pointing (registry:Host, registry:DNSStatus on rows the pass already lists). No mark under the apps domain, on a wildcard row, or with no apps domain set. A report the issuer cert warm reads to leave a not-yet-pointing custom name out of its set, not a root decision; it publishes the same names as before. No record, /data, release or claim read added; no new registry query; F,J1 authority retained. One-off cost: the first pass after the upgrade writes once on a box homing a custom name.;rev3=census-ruling-held-floor-capability;basis=held floor capability (region HA §25.9, agent manager 8a3d302, 2026-11-10): sets the constant ha_handover=1 on the box's own edges file on every pass, whatever its capabilities (this build understands the held-requests headers and the drain acknowledgement); the group roll floor reads it. Not from config or any read; ha_take unchanged; a report other tools read, not a root decision; no read added; F,J1 authority retained. One-off cost: the first pass after the upgrade writes once per box.;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 3: fleetArmInputs now returns edge.ForwardOwners (this box's fleets table and its active links, registry LinkOwners, read only where tunnels are on), passed to edge.FleetArmVerdict as before, so the hub's eligible link-placed forward rows are published for backhaul like fleet rows; same listing and verdict, no read added in the unit;rev3=census-ruling-path-routes-across-boxes;basis=#186 spec 5.1: publishes route_account, route_app, path_front, path_target (registry.PathFront/PathTarget over the route row) on exact real route rows only (never a platform alias or a '*.' row); additive omitempty fields read from the registry route rows already loaded; adds reads of Route.Host and Route.App registry:Account@17096,registry:Alias@10015,registry:Alias@10069,registry:Alias@10104,registry:Alias@10166,registry:Alias@10536,registry:Alias@10693,registry:Alias@10763,registry:Alias@10795,registry:Alias@11539,registry:Alias@11749,registry:Alias@14569,registry:Alias@14619,registry:Alias@9897,registry:Alias@9916,registry:App@17108,registry:App@6228,registry:DNSStatus@10211,registry:DNSStatus@10702,registry:DNSStatus@5744,registry:Host@14472,registry:Host@14492,registry:Host@14757,registry:Host@14837,registry:Host@14872,registry:Host@14921,registry:Host@15383,registry:Host@15418,registry:Host@16526,registry:Host@4189,registry:Host@4292,registry:Host@4338,registry:Host@4397,registry:Host@5736,registry:Host@6155,registry:Host@6323,registry:Host@7293,registry:Host@9942,registry:Host@9990,registry:Incarnation@5943,registry:Platform@5251,registry:Pool@4252,registry:Provisioned@5265,registry:Replica@5289,registry:ServingSeq@5958,registry:Status@2953,whole:Route@1026,whole:Route@1839,whole:Route@18566,whole:Route@19391,whole:Route@19566,whole:Route@2323,whole:Route@6224,whole:Route@6284,whole:Route@6308,whole:Route@7378,whole:Route@750,whole:RouteAlias@10054,whole:RouteAlias@14523,whole:RouteAlias@18588,whole:RouteAlias@19581,whole:RouteAlias@9780,whole:RouteAlias@9862,whole:RoutePath@18581,whole:RoutePath@19574,whole:RoutePath@7162,whole:RoutePath@7194,whole:RoutePath@7241,whole:RoutePath@7269,whole:RoutePath@7307,whole:RoutePath@7327,whole:RoutePath@7339,whole:RoutePath@7393,whole:WildcardDomain@14450,whole:WildcardDomain@14826 2bf6724af03ea2e937bf6fd02754decb7e2b6c493dff9990ed22e90dcffab6d3 |
| +internal/registry/registry.go Registry.Fingerprint 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); the remote arm, unchanged, in the process that holds a remote handle: census-ruling-seeded-instances's body with the row's lifetime pair (incarnation, serving_seq) folded into the edge's change poll, each only when non-zero, so a registry with no pair digests as before; self-serve moves 1 Task 7;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: hashes regional_domains (host, target, account, app, region; created_at not) over the same fresh connection, with a section marker written only when a row exists, so a registry with no regional rows digests as before; the one added site is that SELECT (+file:Query) on the box's own registry database, as carlos; no file path read;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): review R1 finding 1: the routes SELECT also reads host, kind, account, app, platform and fingerprintForwardInert (one CASE over the ForwardForbidden columns), and every row folds host, kind, account and app (tagged, quoted), platform when set, and forward_inert=0 for a forward row that is not inert, so a rowid reused by another hostname, an in-place account or app rewrite, or a stray forbidden column moves the edge's change poll. Same one SELECT per table on the same fresh connection to the box's own registry database, as carlos; no table, file or bucket read added; a digest, never a decision.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5): the SELECT also reads fleet_label and, only when it is set, hashes "fleet_label=<q>" into the digest, so labelling a row moves the edge's reload fingerprint. Read sites unchanged (33). Registry side, not root; an unlabelled registry's digest is byte-identical.;rev3=census-ruling-stateless-replicas-1;basis=Read the additive stateless projection in the existing registry SELECT and hash only when set; no new read source.;rev3=census-ruling-agent-start-demo-1;basis=Existing SELECT reads four more demo columns; only a marked row adds them to the hash, so ordinary hashes remain unchanged.;rev3=census-ruling-stateless-replicas-2;basis=Four additive projection columns join the existing routes SELECT and hash only when nonzero; no new query or file read. merge of origin/main 6be08467: Union main demo identity and expiry with replica columns in the same SELECT and hash; merge-only body change.;rev3=census-ruling-agent-start-demo-3;basis=Hash moved-notice wire bytes so notice-only changes invalidate an edge route snapshot. Census read-site delta: +file:QueryRow.;rev3=census-ruling-edge-page-cache-1;basis=selects the new pages_off column with the rest and folds "pages_off=1" into the hash only when set, as assets_off, so a registry that never sets it fingerprints as before; same routes SELECT, no new table; read sites unchanged (34); no read added;rev3=census-ruling-linked-deployments-slice1;basis=linked deployments slice 1 Task 1: hashes link_channels (link_id, account, token_hash, status, generation; connected, seen_at, seq and created_at not) over the same fresh connection, with a section marker written only when a row exists, so a registry with no links digests as before; the one added site is that SELECT (+file:Query) on the box's own registry database, as carlos; a digest, never a decision; linked deployments slice 1 Task 7: also folds home_link (id, serving_url, tunnel_url, the token's sha256 never the token, account, apps_domain, box_label, conn_gen; state and created_at not) and home_link_apps (name, home_account, home_app, home_host) through fingerprintHomeLink over the same fresh connection, each section marker written only when a row exists, so a registry with no link digests as before; no file path read; a digest, never a decision;rev3=census-ruling-account-subdomains;basis=hashes account_namespaces (name, account) over the same fresh connection, with a section marker written only when a row exists, so a registry with no held names digests as before; the one added site is that SELECT (+file:Query) on the box's own registry database, as carlos; a digest, never a decision;rev3=census-ruling-staticcheck-sa1012;basis=nil context replaced by context.Background(), behaviour unchanged;rev3=census-ruling-path-routes-across-boxes;basis=#186 spec 6: the route_paths section is hashRoutePaths (generation, epoch and row count when the three triggers and epoch column exist, else every row as before); its own Query left for that helper file:Exec@301,file:Open@205,file:Query@10412,file:Query@11334,file:Query@12437,file:Query@385,file:Query@6672,file:Query@7151,file:Query@8137,file:Query@8833,file:QueryRow@13354,registry:ClaimIncarnation@1746,registry:ClaimIncarnation@5580,registry:ClaimIncarnation@5657,registry:ClaimOwner@1790,registry:ClaimOwner@5781,registry:ClaimOwner@5846,registry:ClaimRowID@1809,registry:ClaimRowID@5873,registry:ClaimRowID@5939,registry:ClaimStamp@1771,registry:ClaimStamp@5690,registry:ClaimStamp@5754,registry:Incarnation@1865,registry:Incarnation@6160,registry:Incarnation@6224,registry:ServingSeq@1884,registry:ServingSeq@6251,registry:ServingSeq@6314,registry:Text@175,registry:path@224,registry:remote@55,registry:remote@87,whole:remoteClient@57,whole:remoteClient@89 4c652fc3906d681a36b1143813437d4622ce8d9b46514a9a22c426894187eaed |
| +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/host b914741981b533165a5c990ab966021b32b15781d487eaa847eed474a5123578 |
| +@coverage internal/registry 4de497c49269424a691e5a90065567fa5b82ba702086e9e2990c81f1d2d743f0 |
| +@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 |