| index 5a0c9d103..5e4dbae8f 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-stateless-replicas-2.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-stateless-replicas-2.tsv |
| @@ -1,6 +1,6 @@ |
| # Census overlay stateless-replicas-2, written by census-propose (#369). census-ruling-stateless-replicas-2, independent approval on #280 required before the merge; the approval card is docs/superpowers/notes/census-proposal-stateless-replicas-2.md. |
| # 4 body, 2 sites, 8 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| -# 29 new dispositions: 16 reads re-frozen at their disposition with the claim, 12 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 1 other. |
| +# 30 new dispositions: 17 reads re-frozen at their disposition with the claim, 12 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 1 other. |
| @legacy 79055c0f7e0c310deb5796a2b8bce0410f5de648d69b7d919e211d3a4273facb internal/registry/forward.go Registry.SetFleetBoxIf legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 1: one conditional UPDATE of fleet_box judging placement on the fleet (region = 'fleet/'||fleet), kind (not a sidecar) and ACTIVE membership in fleet_boxes at the write; returns whether a row changed (+file:Exec, +registry:Changed, +registry:remote x2, +registry:sql, +whole:remoteClient x2). Replaces SetFleetBox.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3): the one conditional UPDATE gains AND fleet_label = '', so a labelled forward row's fleet_box is never changed by a binding. Read sites unchanged (7). It writes less, never more. Agent hub's bindings pass, not root.;rev3=census-ruling-stateless-replicas-2;basis=Existing conditional SQL write refuses every replica projection; a binding cannot collapse a set. No new read source. file:Exec@259,registry:Changed@225,registry:remote@112,registry:remote@80,registry:sql@259,whole:remoteClient@114,whole:remoteClient@82 3ce7adcfb074126b83a93efbd284d9063a62ac0ed8bece4561283705bfdba4f3 |
| @legacy 2341d52700480b570ac5c809280fb50ad29154a11856912c7613c3239ed6351a internal/registry/forward.go Route.InertForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 2: true only when every one of the 50 forbidden columns of §4.2 is zero (one +registry:<field> site each, nothing else). Pure.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 2): two more forbidden fields must be zero on a forward row, Assigned == "" and !Moved (fleet_assigned, fleet_moved in ForwardForbidden). Stricter, never looser.;rev3=census-ruling-stateless-replicas-2;basis=Pure validation additionally refuses malformed set projections; all unrelated forbidden fields still must be zero. registry:Addr@114,registry:Addrs@132,registry:Args@819,registry:AssetGen@304,registry:AssetsOff@287,registry:Assigned@1172,registry:Backing@745,registry:BuildState@1009,registry:Canary@666,registry:Caps@579,registry:ClaimIncarnation@1071,registry:ClaimOwner@1124,registry:ClaimRowID@1148,registry:ClaimStamp@1101,registry:DBPath@349,registry:EgressAllow@937,registry:Environment@534,registry:Gate@647,registry:GoodDemand@464,registry:GoodDigest@440,registry:GoodVersion@415,registry:HA@616,registry:Health@151,registry:Hibernate@598,registry:HoldOp@171,registry:IdleSeconds@837,registry:ImportGate@262,registry:Incarnation@191,registry:LastError@326,registry:MaxRunSeconds@861,registry:Moved@1195,registry:NextDue@705,registry:Platform@785,registry:PolicyExpiresAt@980,registry:Pool@516,registry:PrevVersion@390,registry:Replica@1056,registry:Replicas@1033,registry:Replication@680,registry:Runtime@626,registry:Seed@801,registry:SeedSource@238,registry:ServingSeq@215,registry:ServingVersion@488,registry:Size@962,registry:Socket@94,registry:StatusNamed@726,registry:Steering@887,registry:Tunnel@559,registry:Unit@766,registry:UpdateSettings@909,registry:Version@369 9f79218887204b816bca2d371e96b7a175033136070104a84d8618ef27b2b2da |
| @legacy 7e6da4ae0835f902bbbe42b971e9681493463ddc31461b733f015a489af10c11 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-stateless-replicas-2;basis=Four additive projection columns join the existing routes SELECT and hash only when nonzero; no new query or file read. file:Exec@284,file:Open@188,file:Query@10297,file:Query@368,file:Query@6167,file:Query@6646,file:Query@7632,file:Query@8328,file:Query@9240,registry:ClaimIncarnation@1598,registry:ClaimIncarnation@5075,registry:ClaimIncarnation@5152,registry:ClaimOwner@1642,registry:ClaimOwner@5276,registry:ClaimOwner@5341,registry:ClaimRowID@1661,registry:ClaimRowID@5368,registry:ClaimRowID@5434,registry:ClaimStamp@1623,registry:ClaimStamp@5185,registry:ClaimStamp@5249,registry:Incarnation@1706,registry:Incarnation@5655,registry:Incarnation@5719,registry:ServingSeq@1725,registry:ServingSeq@5746,registry:ServingSeq@5809,registry:Text@158,registry:path@207,registry:remote@55,registry:remote@87,whole:remoteClient@57,whole:remoteClient@89 892ed6fd3faa8afd814643d8ddc1b757587892d43981db456d8b09cec08d07fe |
| @@ -17,6 +17,7 @@ |
| @legacy b9d429d67f30bb21f69ec7453e3f044091f68be2b65f74f271de89e24113f8e5 internal/registry/replicas.go Registry.setReplicaAssignment legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-2;basis=Same local registry SQL connection reads one route in a transaction; freezes identity on seed, rejects lifetime/revision mismatch and forbidden row shapes. Writes declarative set columns only, no paths or bucket data. Fix round 2: the existing UPDATE/DELETE also carries kind <> forward in SQL; writer-inventory tests cover the ordinary change and a forward-row refusal/no-op. Same transaction and read sources. file:Exec@1463,file:QueryRow@698,registry:Backing@1058,registry:Canary@1003,registry:Copies@1353,registry:FleetBoxes@1327,registry:HA@1016,registry:Hibernate@1025,registry:Kind@944,registry:Method@509,registry:Observed@547,registry:Platform@988,registry:Provisioned@970,registry:Region@886,registry:ReplicaIncarnation@1117,registry:ReplicaRevision@1198,registry:ReplicaRevision@1281,registry:Stateless@1388,registry:Tunnel@1078,registry:Unit@1041,registry:remote@335,registry:remote@586,whole:Route@1098,whole:Route@1159,whole:Route@1178,whole:Route@1185,whole:Route@488,whole:Route@549,whole:Route@561,whole:remoteClient@337,whole:remoteClient@588,whole:remoteRequest@605 0565599be1b90bdaf2131bb097b48e44e4269bfa2b9c2610cf0fa7a11ed8a7ec |
| @legacy ef8ee4edcab4e9b1ec2e68c83ac12622b5021ef0f870c73e6b89c669b5b9dee3 internal/registry/replicas.go Route.ReplicaContains legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-2;basis=Pure validated membership of the supplied canonical JSON array; no external read. registry:FleetBoxes@170,registry:FleetBoxes@85 f793980f7dd8efb9fcdfabfb3f60a5797ccd0920c51fd0aae10b276ca3a8223b |
| @legacy bacd27f1b57c551b2a13212c29f2783403ea48e71b4ffe886b3cd80fcb169ab3 internal/registry/replicas.go Route.ValidReplicaProjection legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-2;basis=Pure canonical JSON/count/lifetime/revision/mode validation of supplied route; absent fields remain legacy. registry:Copies@327,registry:Copies@81,registry:FleetBoxes@200,registry:FleetBoxes@425,registry:FleetBoxes@51,registry:Region@380,registry:ReplicaIncarnation@124,registry:ReplicaIncarnation@441,registry:ReplicaRevision@471,registry:ReplicaRevision@496,registry:ReplicaRevision@98,registry:Stateless@534 6ba44570ad006fbfd89257f2969f4940db67f201c08d44763f2989b75b7dc1a5 |
| +@legacy 1c2822022b0430636ad3180aca76c74863ac0084553fec6a01d35cd8cd7b901e internal/activator/activator.go Service.doWakeOnce legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: The former doWake body, not deleted logic: refresh/admit/fence/layout checks remain. Select and verify the actual staged identity before serving Acquire; use canonical mode to call doStatelessWake. Keep SQLite acquire/restore/seed/marker/replicate only in the stateful arm, with the post-acquisition selection recheck and existing cleanup proofs. Fix 3a round 1 I1/I3a: admit config directly only for stateless and mark runtime ownership refusals. Stateful Acquire/Restore precede selection and pending publication; canonical mode inspection is separate, replan precedes settlement. Fix round 2 N2/N3: retain the original route/pin projection for post-lease declaration checks; reuse the unplanned capture so a live-link repoint cannot change the selected build. Stateful capture and changed-copy errors remain start failures after Acquire/Restore. A failed preliminary verification supplies no cached mode observation. No new file path or database authority. Final review C1/R26: unprojected stateful wakes capture and materialize the live link only after Acquire and Restore. Retain original route/generation/pin stateless evidence on the context across fallback, so missing stateless evidence cannot take stateful recovery inference. Known good stateful identity skips canonical declaration lookup. Existing pre-exec verification remains. R28 final fix 2: carry whether this wake has a plan in attempt-local context; no new read here; route, generation and pin stateless projection remains intact.;rev3=census-ruling-stateless-replicas-2;basis=P14: after verified storage-mode selection, before clearing the projected hint or acquiring a database lease, a set row still on the stateful branch returns ErrFenced. Reads the existing route FleetBoxes field only. Verified stateless wakes take their existing branch; legacy rows remain unchanged. No new file, registry query or bucket read. registry:DBPath@1703,registry:DBPath@1719,registry:DBPath@1846,registry:DBPath@1857,registry:DBPath@32483,registry:FleetBoxes@11629,registry:GoodVersion@17513,registry:Host@1532,registry:Host@1607,registry:Host@1685,registry:Host@1837,registry:Host@2171,registry:Host@4121,registry:Host@581,registry:Host@6378,registry:Replication@16140,registry:Replication@16269,registry:Replication@16288,registry:Replication@16369,registry:Replication@32386,registry:Replication@32518,registry:Seed@21208,registry:Socket@1732,registry:Socket@1748,registry:Socket@1871,registry:Socket@1882,registry:Stateless@11347,registry:Stateless@11677,registry:Stateless@19922,registry:Stateless@9232,registry:Stateless@9323,registry:Stateless@9689,registry:Stateless@9975,whole:Route@10299,whole:Route@10397,whole:Route@10488,whole:Route@10620,whole:Route@10743,whole:Route@10797,whole:Route@11069,whole:Route@11245,whole:Route@11249,whole:Route@12078,whole:Route@12379,whole:Route@13684,whole:Route@14361,whole:Route@15242,whole:Route@16120,whole:Route@1630,whole:Route@16371,whole:Route@17716,whole:Route@18307,whole:Route@18472,whole:Route@19408,whole:Route@20204,whole:Route@20479,whole:Route@2066,whole:Route@2071,whole:Route@2125,whole:Route@21309,whole:Route@2131,whole:Route@21380,whole:Route@2197,whole:Route@2205,whole:Route@23792,whole:Route@25650,whole:Route@26296,whole:Route@27603,whole:Route@27757,whole:Route@28256,whole:Route@28326,whole:Route@28913,whole:Route@29998,whole:Route@30429,whole:Route@30637,whole:Route@30691,whole:Route@3156,whole:Route@31620,whole:Route@31805,whole:Route@3250,whole:Route@32595,whole:Route@33007,whole:Route@33056,whole:Route@3317,whole:Route@33434,whole:Route@34656,whole:Route@34751,whole:Route@35592,whole:Route@361,whole:Route@4011,whole:Route@566,whole:Route@5747,whole:Route@6006,whole:Route@6268,whole:Route@6273,whole:Route@6330,whole:Route@6336,whole:Route@6405,whole:Route@6413,whole:Route@6729,whole:Route@6790,whole:Route@6888,whole:Route@7853,whole:Route@8836,whole:Route@9060,whole:Route@9124,whole:Route@9168,whole:Route@9761,whole:Route@9920 65c4225442128a04ea3f79a5981fdd2955a6960dfb20e9313cf94310a2fefbb9 |
| @legacy 2a9189ec9dee7006909290df15aade44740c8331bb156fb08385b9a69689eff1 internal/activator/cmd.go Service.RunCmd legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): admits one run against an awake entry under the agent's own lease, fence and swap checks; it starts nothing itself and root validates what it later names;rev3=census-ruling-edge-request-records;basis=passes nil for begin's new req parameter; no read added;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: a carlos run is refused with ErrCmdBusy while a release record of the host is open (a.releaseOps[rt.Host], in-memory), as a run already in flight refuses it; new site +registry:Host (that map lookup); adds a refusal only;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a: AfterSettled honoured on every path (called before return on each path that starts no unit, else by the settle that proves the unit gone); a rootfs run is refused as a lost lease (CmdStoppedError StopLeaseLost) when its entry is not under the lease watch (residentWatchedLocked), and, off a.mu, when the replica's in-memory SafeUntil leaves less than oneShotStartLead (oneShotHeadroom); new sites are e.route.Rootfs() and a log line; adds refusals only Task 9 (PF-17): a session (spec.TTY) takes the entry's tty slot and a run its cmd slot (holdSlot), the hold carrying its role (newCmdHold); each is refused only for its own role (holdBusyLocked: ErrCmdBusy or ErrTTYBusy), so a run and a session coexist; a release command (a.releaseOps) refuses a run only, since the session's tty unit is its own; no read added, read sites unchanged Task 12 fix round 1 (Astra P1, incarnation binding): a session (spec.TTY) is refused with ErrCmdIncarnation, under a.mu, at admission (before the hold is attached, so nothing of it runs) and again at the last check before the start, unless the awake entry's row lifetime (e.route.Incarnation) equals spec.Incarnation, the lifetime the box's grant authorized; Task 12 fix round 2 (revised ruling): only a mismatch refuses, and 0 matches 0 (a record and row with no lifetime fields); a run is not checked; refuses more, starts nothing new, no read added beyond the in-memory e.route field (sessionIncarnationLocked);rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Take command/TTY mode from the actual serving generation alongside the existing captured environment; no authority comes from a route flag.;rev3=census-ruling-stateless-replicas-2;basis=Only a set command chains the existing exec gate to the current record membership recheck immediately before exec; preserves caller gate and legacy path. file:Prepare@2688,file:Prepare@2722,registry:FleetBoxes@9308,registry:Host@1502,registry:Host@2098,registry:Host@7932,registry:Host@9168,registry:Kind@437,registry:Stateless@5132,whole:Route@683,whole:Route@8336,whole:Route@869,whole:Route@8800,whole:Route@9497,whole:Route@9538 1c58059ab419d2a1fc1647c031f2e81647c1f892642656134cf1721b4d90d689 |
| @legacy dfb973413e87bb5bb88322163377956d199442b4ca9df87126c8ec3c51f10256 internal/activator/cmdunit.go ExecBackend.StartCmd legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): writes launch.cmd.json in the instance's own directory and asks instance control to start the cmd unit; root validates the staged executable it names (refuseStagedExe) and decides the start;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a: after the layout and run-directory checks, a rootfs row returns startRootfsRun (backend_rootfs.go) before nestedGate; the binary path is byte-identical (TestBinaryStartCmdLaunchGolden); new site +whole:Route is rt.Rootfs(); Plan 6 Task 8: a session (spec.TTY): checkCmdLaunch refuses before anything is listened on or written a launch shape (errCmdLaunchShape: process and argv both or neither, a process other than console, a run naming a process, a session with a run directory or streams, an id that is not one path element) and a process on a binary row (errBinaryProcess); then the session verbs (TTYControl) or ErrNoTTY; on a binary row the same nested gate, live link or staged build, launch environment and replica gate as a run; prepare(rt, RoleTTY); the pty and its handoff socket (openTTY) in place of the two streams; launch.tty.json with argv [live link, args...] and childEnv(ttyVars); then TTYControl.TTY, or TTYExe naming the staged build (POST /tty; root Task 6 handler validates it); the run path is unchanged (TestBinaryStartCmdLaunchGolden); new sites are rt to checkCmdLaunch and rt.Host in its error;rev3=census-ruling-stateless-replicas-2;basis=Only a set row invokes the caller's exec gate after binary command launch preparation and before any Cmd/TTY control call. Existing single-copy/stateful command path is unchanged; rootfs commands already invoke the gate. registry:FleetBoxes@2475,registry:Host@1092,registry:Host@1201,registry:Host@1972,registry:Host@2176,registry:Host@218,registry:Host@2404,registry:Host@2693,registry:Host@2767,registry:Host@2841,registry:Host@2915,registry:Host@3299,registry:Host@3432,registry:Host@3468,registry:Host@367,registry:Host@473,registry:Host@685,registry:Host@983,whole:Route@130,whole:Route@1788,whole:Route@1895,whole:Route@2220,whole:Route@2313,whole:Route@2585,whole:Route@298,whole:Route@3233,whole:Route@3237,whole:Route@3519,whole:Route@3523,whole:Route@414,whole:Route@755,whole:Route@792 cf3e3d38b9143532a9821578987c84e0d7dcea85e97a36a6d2aaba585f8081d7 |
| @legacy b0d3308438211ee6ced08e1d63e4179dd0c71fdcd9d35f77f82c3364a7ae32fc internal/activator/rootfsworkers.go Service.runWorkerStart legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one worker start off a.mu: publishes the build's pins, launches through the gate, installs only on the same entry still awake; always ends with the start done and what it started installed, proven gone or a stray;rev3=census-ruling-stateless-replicas-2;basis=Declared stateless set workers use the instance route and existing wake record recheck at actual launch, between two existing local worker gates. No read on a tick without a start, no new reads for stateful or unset assignments. Sidecar entry-point refusal remains. registry:FleetBoxes@2042,registry:Host@1971,registry:Host@2580,registry:Host@2771,registry:Host@3197,whole:Route@1656,whole:Route@2210,whole:Route@2342,whole:Route@2849,whole:Route@3261 924ee9f484d2ae2eaaf1dd250d889cc7f005ddf307aeeafb30874f3003f7fa67 |
| @@ -27,7 +28,7 @@ |
| @legacy 82e2db3ec3ff76eedea214649dba1a3ce0f2824d358cf46bf1bf0415534bf262 internal/activator/wakeidentity.go leaseRouteChanged legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-1b;basis=new (branch review R1 P1-1): a pure comparison of the row a wake began from (began) with the row doWake read under the lease (now): nil now is a row that is gone; then wakeRouteChanged's identity checks; then Assigned and Moved; then Region. It answers an error naming the change, wrapping errRouteChangedUnderLease, or nil. No read beyond its arguments. Agent, not root; it only refuses.;rev3=census-ruling-stateless-replicas-2;basis=Pure comparison adds set/count/revision/lifetime changes to existing wake fence; no new input source. registry:Assigned@559,registry:Assigned@577,registry:Assigned@771,registry:Assigned@796,registry:Copies@388,registry:Copies@404,registry:FleetBoxes@350,registry:FleetBoxes@370,registry:Host@164,registry:Host@732,registry:Host@940,registry:Moved@593,registry:Moved@608,registry:Moved@785,registry:Moved@812,registry:Region@831,registry:Region@847,registry:Region@979,registry:Region@991,registry:ReplicaIncarnation@466,registry:ReplicaIncarnation@494,registry:ReplicaRevision@418,registry:ReplicaRevision@443,whole:Route@234,whole:Route@242,whole:Route@91 692ba8509b2b5dc40a1bd39bf5038b68c5d8c41e8fdc264a1f4041892d300210 |
| @legacy 65ed263d8b271d4034ed07e82186409e2b68c86ff1ea12dd7bb89cda90e5e65e internal/host/fleetbind.go statelessBindingPublisher.publish legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: consume the applied record and serving route already read by reconcile, check instance/account/app/assignment/status/fleet/box and exact held coordinator lifetime, then publish the existing binding key. A per-host state cache excludes expiry-only renewals and avoids unchanged binding I/O. No instance-record scan or root exec; no typed record writer added.;rev3=census-ruling-stateless-replicas-2;basis=Refuses record or route set assignments before the single-box binding writer; no new read. registry:Account@328,registry:App@357,registry:Assigned@378,registry:FleetBoxes@150,registry:Host@305,registry:Provisioned@263,registry:ServingVersion@1067,registry:Stateless@210,registry:Status@281 46ba5abc35a4c59b6ab66e6d3691663ce4f2f9ae0e70b6ac56d2df91127cd24c |
| @legacy 122fa7f57714580041b4e16316fc152a4156a94f1caf344f19a385a1a12d5021 internal/provision/forward.go forwardCurrent legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: compares the existing forward row's declared fields with the wanted one (+registry:Account, App, Channel, Provisioned, RateLimit, Region, Slug, Status, each x2). Pure.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5): the forward row is current only if FleetLabel also matches and, for a labelled want, FleetBox equals the label (+registry:FleetBox x2, +registry:FleetLabel x3). The hub's forward phase in the agent, not root; it may write a row it skipped before, never fewer checks.;rev3=census-ruling-stateless-replicas-2;basis=Pure comparison covers explicit count/set/revision/lifetime and assigned mode; legacy nil-assignment mode comparison remains unchanged. registry:Account@550,registry:Account@570,registry:App@520,registry:App@536,registry:Channel@624,registry:Channel@644,registry:Copies@137,registry:Copies@156,registry:FleetBox@376,registry:FleetBox@774,registry:FleetBox@795,registry:FleetBoxes@118,registry:FleetBoxes@282,registry:FleetBoxes@351,registry:FleetBoxes@95,registry:FleetLabel@704,registry:FleetLabel@727,registry:FleetLabel@749,registry:Provisioned@442,registry:Provisioned@466,registry:RateLimit@662,registry:RateLimit@684,registry:Region@588,registry:Region@607,registry:ReplicaIncarnation@223,registry:ReplicaIncarnation@254,registry:ReplicaRevision@171,registry:ReplicaRevision@199,registry:Slug@488,registry:Slug@505,registry:Stateless@307,registry:Stateless@329,registry:Status@406,registry:Status@425 35f2010c3c11b810e2a7f06c0575c2d08cf1777b71b091d9c432f1835f187c5a |
| -@legacy 043fdc37ebf016a65814e6655a16b69e253a86c4cf523abc41013e6e5fc47a51 internal/provision/reconcile.go Reconcile legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. Fix 3b round 1 I1: binding callback failure is logged and falls through to pr.applied; same per-host callback, record writers, scope and removal gates. TestStatelessBindingFailureContinuesReconcile covers second-record convergence, removal, applied bookkeeping and next-pass retry.;rev3=census-ruling-stateless-replicas-2;basis=P11 and Important 3: same record scan judges legacy row membership for retirement, including old labelled rows in Retiring. Same-owner member rows are replaced only with a provably older nonzero monotonic counter and atomic local replacement or the existing claim retirement hook. Newer/unknown rows, sidecars/platform/canary and unreadable shapes remain protected. Logs failed, successful and changed-row retirement. No new record reads or stop ACK. registry:Account@37944,registry:Account@39700,registry:Account@58050,registry:Account@58096,registry:Account@59411,registry:Account@59788,registry:Account@60014,registry:Account@60081,registry:Account@60127,registry:Account@60220,registry:Account@60262,registry:Account@60910,registry:Account@61168,registry:Account@62074,registry:Account@62122,registry:Account@62531,registry:Account@62577,registry:Account@62822,registry:Account@63247,registry:Account@63735,registry:Account@64471,registry:Account@64664,registry:Account@65076,registry:Account@65255,registry:Account@65578,registry:Account@66143,registry:App@37917,registry:App@39673,registry:App@58070,registry:App@58108,registry:App@59423,registry:App@59800,registry:App@60026,registry:App@60101,registry:App@60139,registry:App@60240,registry:App@60922,registry:App@61180,registry:App@62086,registry:App@62134,registry:App@62551,registry:App@62589,registry:App@62834,registry:App@63259,registry:App@63747,registry:App@64483,registry:App@64676,registry:App@65088,registry:App@65267,registry:App@65590,registry:App@66155,registry:Canary@58563,registry:ClaimOwnership@38531,registry:DBPath@47879,registry:DBPath@47894,registry:DBPath@48140,registry:DBPath@48743,registry:DBPath@48756,registry:EgressAllow@37030,registry:FleetBoxes@58524,registry:FleetBoxes@58672,registry:FleetBoxes@64864,registry:Gate@44224,registry:Gate@44364,registry:Gate@44651,registry:Hibernate@42896,registry:Hibernate@43094,registry:Hibernate@43159,registry:Hibernate@43498,registry:Hibernate@43849,registry:Hibernate@44159,registry:HoldOp@29123,registry:HoldOp@64216,registry:HoldOp@64307,registry:HoldOp@64442,registry:HoldOp@64818,registry:Host@27020,registry:Host@29526,registry:Host@29666,registry:Host@58029,registry:Host@58623,registry:Host@59387,registry:Host@59764,registry:Host@59928,registry:Host@60034,registry:Host@60930,registry:Host@61136,registry:Host@62414,registry:Host@62686,registry:Host@62801,registry:Host@63124,registry:Host@63221,registry:Host@63612,registry:Host@63709,registry:Host@63923,registry:Host@64298,registry:Host@64433,registry:Host@64637,registry:Host@64710,registry:Host@64809,registry:Host@65049,registry:Host@65228,registry:Host@65307,registry:Host@65394,registry:Host@65552,registry:Host@65627,registry:Host@65713,registry:Host@66120,registry:Incarnation@29299,registry:Kind@29511,registry:Kind@29651,registry:Kind@38673,registry:Kind@38925,registry:Kind@39207,registry:Kind@39427,registry:Kind@47797,registry:Kind@47810,registry:Kind@47920,registry:Kind@47933,registry:Kind@48654,registry:Kind@48665,registry:Kind@57153,registry:Kind@63914,registry:Kind@64424,registry:Kind@64800,registry:Kind@65040,registry:Kind@65385,registry:Kind@65543,registry:Kind@65704,registry:Platform@58548,registry:PolicyExpiresAt@37055,registry:Pool@57239,registry:Provisioned@37893,registry:Provisioned@39649,registry:Provisioned@57198,registry:RateLimit@44737,registry:RateLimit@44888,registry:RateLimit@45175,registry:Region@57228,registry:ReplicaIncarnation@29007,registry:ReplicaIncarnation@29044,registry:Replication@43583,registry:Replication@43710,registry:Runtime@30695,registry:Runtime@30873,registry:Runtime@33078,registry:Runtime@42263,registry:Runtime@42317,registry:Runtime@42521,registry:Seed@46277,registry:SeedSource@45760,registry:Size@37046,registry:Socket@47845,registry:Socket@47860,registry:Socket@48157,registry:Socket@48713,registry:Socket@48726,registry:Stateless@48846,registry:Unit@47763,registry:Unit@47776,registry:Unit@48680,registry:Unit@48691,whole:ClaimOwnership@38534,whole:ClaimOwnership@38551,whole:Route@27002,whole:Route@27013,whole:Route@27031,whole:Route@28312,whole:Route@28899,whole:Route@29110,whole:Route@29425,whole:Route@29711,whole:Route@29725,whole:Route@29738,whole:Route@29761,whole:Route@31190,whole:Route@31197,whole:Route@31237,whole:Route@31598,whole:Route@31936,whole:Route@32383,whole:Route@32434,whole:Route@32471,whole:Route@34143,whole:Route@34352,whole:Route@34691,whole:Route@34700,whole:Route@34746,whole:Route@36979,whole:Route@37538,whole:Route@38009,whole:Route@38019,whole:Route@38376,whole:Route@38383,whole:Route@38451,whole:Route@38756,whole:Route@38826,whole:Route@38837,whole:Route@39265,whole:Route@40298,whole:Route@43249,whole:Route@47989,whole:Route@48959,whole:Route@49846,whole:Route@49891,whole:Route@49901,whole:Route@50771,whole:Route@51798,whole:Route@57264,whole:Route@57412,whole:Route@58509,whole:Route@58805,whole:Route@59339,whole:Route@59721,whole:Route@61576,whole:Route@64955,whole:Route@65465,whole:Route@66050,whole:Route@66100 5ac04d6990c2cd39eddd6f14cb69656e603cd1654f8b09bbc68cc1ee427e2094 |
| +@legacy d7e24cfadf0757d3fa3c35b958e68577eac9ac2efd350c0dd98eb699df5ea19d internal/provision/reconcile.go Reconcile legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. Fix 3b round 1 I1: binding callback failure is logged and falls through to pr.applied; same per-host callback, record writers, scope and removal gates. TestStatelessBindingFailureContinuesReconcile covers second-record convergence, removal, applied bookkeeping and next-pass retry.;rev3=census-ruling-stateless-replicas-2;basis=P11 and Important 3: same record scan judges legacy row membership for retirement, including old labelled rows in Retiring. Same-owner member rows are replaced only with a provably older nonzero monotonic counter and atomic local replacement or the existing claim retirement hook. Newer/unknown rows, sidecars/platform/canary and unreadable shapes remain protected. Logs failed, successful and changed-row retirement. No new record reads or stop ACK. P14: admission and nonmember retirement now use pure validation of the same judged atomic record: managed fleet shape, no unknown assignment members, valid assignment, positive revision covered by RecordSeq, and a valid lifetime-bound projection. Removes the unused manifest hook; adds no bucket read. Existing owner/lifetime and conditional registry retirement checks remain. Exec independently rejects any stateful generation for a set row. registry:Account@37940,registry:Account@39696,registry:Account@58046,registry:Account@58092,registry:Account@59403,registry:Account@59780,registry:Account@60006,registry:Account@60073,registry:Account@60119,registry:Account@60212,registry:Account@60254,registry:Account@60902,registry:Account@61160,registry:Account@62062,registry:Account@62110,registry:Account@62519,registry:Account@62565,registry:Account@62810,registry:Account@63235,registry:Account@63723,registry:Account@64459,registry:Account@64652,registry:Account@65064,registry:Account@65243,registry:Account@65566,registry:Account@66131,registry:App@37913,registry:App@39669,registry:App@58066,registry:App@58104,registry:App@59415,registry:App@59792,registry:App@60018,registry:App@60093,registry:App@60131,registry:App@60232,registry:App@60914,registry:App@61172,registry:App@62074,registry:App@62122,registry:App@62539,registry:App@62577,registry:App@62822,registry:App@63247,registry:App@63735,registry:App@64471,registry:App@64664,registry:App@65076,registry:App@65255,registry:App@65578,registry:App@66143,registry:Canary@58559,registry:ClaimOwnership@38527,registry:DBPath@47875,registry:DBPath@47890,registry:DBPath@48136,registry:DBPath@48739,registry:DBPath@48752,registry:EgressAllow@37026,registry:FleetBoxes@58520,registry:FleetBoxes@58668,registry:FleetBoxes@64852,registry:Gate@44220,registry:Gate@44360,registry:Gate@44647,registry:Hibernate@42892,registry:Hibernate@43090,registry:Hibernate@43155,registry:Hibernate@43494,registry:Hibernate@43845,registry:Hibernate@44155,registry:HoldOp@29119,registry:HoldOp@64204,registry:HoldOp@64295,registry:HoldOp@64430,registry:HoldOp@64806,registry:Host@27016,registry:Host@29522,registry:Host@29662,registry:Host@58025,registry:Host@58619,registry:Host@59379,registry:Host@59756,registry:Host@59920,registry:Host@60026,registry:Host@60922,registry:Host@61128,registry:Host@62402,registry:Host@62674,registry:Host@62789,registry:Host@63112,registry:Host@63209,registry:Host@63600,registry:Host@63697,registry:Host@63911,registry:Host@64286,registry:Host@64421,registry:Host@64625,registry:Host@64698,registry:Host@64797,registry:Host@65037,registry:Host@65216,registry:Host@65295,registry:Host@65382,registry:Host@65540,registry:Host@65615,registry:Host@65701,registry:Host@66108,registry:Incarnation@29295,registry:Kind@29507,registry:Kind@29647,registry:Kind@38669,registry:Kind@38921,registry:Kind@39203,registry:Kind@39423,registry:Kind@47793,registry:Kind@47806,registry:Kind@47916,registry:Kind@47929,registry:Kind@48650,registry:Kind@48661,registry:Kind@57149,registry:Kind@63902,registry:Kind@64412,registry:Kind@64788,registry:Kind@65028,registry:Kind@65373,registry:Kind@65531,registry:Kind@65692,registry:Platform@58544,registry:PolicyExpiresAt@37051,registry:Pool@57235,registry:Provisioned@37889,registry:Provisioned@39645,registry:Provisioned@57194,registry:RateLimit@44733,registry:RateLimit@44884,registry:RateLimit@45171,registry:Region@57224,registry:ReplicaIncarnation@29003,registry:ReplicaIncarnation@29040,registry:Replication@43579,registry:Replication@43706,registry:Runtime@30691,registry:Runtime@30869,registry:Runtime@33074,registry:Runtime@42259,registry:Runtime@42313,registry:Runtime@42517,registry:Seed@46273,registry:SeedSource@45756,registry:Size@37042,registry:Socket@47841,registry:Socket@47856,registry:Socket@48153,registry:Socket@48709,registry:Socket@48722,registry:Stateless@48842,registry:Unit@47759,registry:Unit@47772,registry:Unit@48676,registry:Unit@48687,whole:ClaimOwnership@38530,whole:ClaimOwnership@38547,whole:Route@26998,whole:Route@27009,whole:Route@27027,whole:Route@28308,whole:Route@28895,whole:Route@29106,whole:Route@29421,whole:Route@29707,whole:Route@29721,whole:Route@29734,whole:Route@29757,whole:Route@31186,whole:Route@31193,whole:Route@31233,whole:Route@31594,whole:Route@31932,whole:Route@32379,whole:Route@32430,whole:Route@32467,whole:Route@34139,whole:Route@34348,whole:Route@34687,whole:Route@34696,whole:Route@34742,whole:Route@36975,whole:Route@37534,whole:Route@38005,whole:Route@38015,whole:Route@38372,whole:Route@38379,whole:Route@38447,whole:Route@38752,whole:Route@38822,whole:Route@38833,whole:Route@39261,whole:Route@40294,whole:Route@43245,whole:Route@47985,whole:Route@48955,whole:Route@49842,whole:Route@49887,whole:Route@49897,whole:Route@50767,whole:Route@51794,whole:Route@57260,whole:Route@57408,whole:Route@58505,whole:Route@58797,whole:Route@59331,whole:Route@59713,whole:Route@61564,whole:Route@64943,whole:Route@65453,whole:Route@66038,whole:Route@66088 58d8d2dee184c4509cdbe249b98e83476f6b2157ff2101ef0644877be9cca0a4 |
| @legacy 6b946f3390ebc1f5c37960d4ba1f6d9c3869f149866ddf93360a61c948fe9600 internal/provision/reconcile.go convergeOwned 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): the owned-converge arm gains the asset pair beside steering: when the row's assets_off or asset_gen differs from the record's (Record.AssetsOn, Record.AssetGen), Registry.SetAssets converges both in one UPDATE (dry-run logs only); the new kinds are registry:AssetsOff and registry:AssetGen, three sites each, all existing.AssetsOff and existing.AssetGen (the comparison and the two log lines); it now also returns the converge errors it already logged, joined, so Reconcile's completeness report can tell an applied record from one that was not; no other read is added; the agent's own pass, no root decision;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the owned-converge arm gains the app policy: when the row's egress_allow, size or policy_expires_at differs from the pass's columns (ap, only when Known), Registry.SetPolicy writes all three in one UPDATE (dry run logs only), and it reports whether the allow or size moved so Reconcile can call PolicyChanged. New kinds registry:EgressAllow (three sites), registry:Size (three) and registry:PolicyExpiresAt (one), all existing.* of the agent's own row: the comparison and the two log lines; no other read added; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: when the record says HA and the existing row does not, marks the row with reg.SetHA (a dry run logs instead; an error is appended to the pass's errors); converges one way only, nothing clears the mark; +registry:HA is existing.HA; keeps legacy;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 2): when the row's Assigned or Moved differs from the record's FleetBoxAt or FleetBoxMoved, one reg.SetFleetAssignment call (dry-run logs instead); a failure is logged and counted. Agent provision pass, not root.;rev3=census-ruling-stateless-replicas-2;basis=Converges set projection through typed lifetime/revision writer; first seed compares entire observed SQL row. Reads supplied record and existing registry only. registry:Addr@3137,registry:Addr@3359,registry:Addr@3786,registry:Addrs@3164,registry:Addrs@3380,registry:Addrs@3807,registry:AssetGen@4644,registry:AssetGen@4830,registry:AssetGen@5221,registry:AssetsOff@4614,registry:AssetsOff@4804,registry:AssetsOff@5195,registry:Assigned@7927,registry:Assigned@8131,registry:Assigned@8580,registry:Channel@1002,registry:Channel@1333,registry:Channel@872,registry:Copies@309,registry:Copies@328,registry:EgressAllow@10102,registry:EgressAllow@10524,registry:EgressAllow@9846,registry:Environment@1375,registry:Environment@1517,registry:Environment@1876,registry:FleetBoxes@267,registry:FleetBoxes@290,registry:HA@7304,registry:Health@3191,registry:Health@3403,registry:Health@3830,registry:Moved@7966,registry:Moved@8150,registry:Moved@8599,registry:PolicyExpiresAt@9927,registry:Replica@6663,registry:Replica@6791,registry:Replica@7123,registry:ReplicaIncarnation@395,registry:ReplicaIncarnation@426,registry:ReplicaIncarnation@516,registry:ReplicaIncarnation@599,registry:ReplicaIncarnation@707,registry:ReplicaRevision@343,registry:ReplicaRevision@371,registry:Replicas@5794,registry:Replicas@5919,registry:Replicas@6241,registry:Size@10140,registry:Size@10562,registry:Size@9888,registry:Stateless@454,registry:StatusNamed@1952,registry:StatusNamed@2096,registry:StatusNamed@2460,registry:Steering@3866,registry:Steering@3999,registry:Steering@4337,registry:UpdateSettings@8904,registry:UpdateSettings@9044,registry:UpdateSettings@9404,whole:Route@589 549fb3f0a2ea5fcae27c03dedb3f855c75a26d32a183a49056114bdea99313c6 |
| @legacy 0488f5b1e5085bd4a355c1726dca26aa6189486c20ebf3ff2ecb88ec938de1aa internal/registry/forward.go Registry.PutForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 2: the only writer of a forward row's declared columns: refuses an argument whose kind is not forward; copies only the declared fields from its argument (Status ready, Provisioned true; no forbidden column is ever written); inside one IMMEDIATE transaction refuses a host a non-forward row holds (ErrHostHeld); keeps FleetBox while Region is unchanged; preserves the observational columns (+file:Exec, +file:QueryRow, +registry:Account, App, Channel, RateLimit, Region, Slug, +registry:Host x3, +registry:Kind, +registry:remote x2, +whole:Route x3, +whole:remoteClient x2).;rev3=census-ruling-fleet-routes-followups;basis=refuses up front, with the new sentinel ErrNotForward and before any read or write, an rt that is not a forward row (as before, now a sentinel), has an empty Host, or whose Region is not a fleet placement (registry.FleetPlacement); +registry:Host x2 and +registry:Region x2 read only the argument in those checks; the transaction and statement are unchanged;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3), merged with main's ErrNotForward refusals (kept unchanged): the written row also carries FleetLabel = rt.FleetLabel and FleetBox = rt.FleetLabel; its conflict arm (forwardKept) writes fleet_label from the call and fleet_box as the call's label when set, else kept while the region is unchanged. The hub's forward phase in the agent, not root.;rev3=census-ruling-stateless-replicas-1;basis=Carry declarative Stateless into forward rows under existing transaction and shape guards; projection only.;rev3=census-ruling-stateless-replicas-2;basis=Validates canonical set projection, writes explicit declarative columns and clears single-box binding; all forbidden columns zero. Same transaction/read source. file:Exec@1509,file:QueryRow@1285,registry:Account@754,registry:App@731,registry:Channel@807,registry:Copies@1054,registry:FleetBox@1175,registry:FleetBoxes@1031,registry:FleetBoxes@1152,registry:FleetLabel@1187,registry:FleetLabel@942,registry:FleetLabel@972,registry:Host@1339,registry:Host@197,registry:Host@234,registry:Host@419,registry:Host@655,registry:Kind@206,registry:RateLimit@834,registry:Region@428,registry:Region@781,registry:Region@84,registry:ReplicaIncarnation@1122,registry:ReplicaRevision@1082,registry:Slug@707,registry:Stateless@1002,registry:remote@507,registry:remote@537,whole:Route@1542,whole:Route@592,whole:Route@600,whole:remoteClient@509,whole:remoteClient@539 cf547d7bae134b9ca326bd111378d02214373e65e6107ec809eac5e3aef5e7e7 |
| @legacy 4bc653a2811cb1340e1c5ae87403e3cef0ce97105977adef72ea0e09556e5d9c internal/registry/registry.go scanRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user): main's body with the two new columns scanned;rev3=census-ruling-design-edge-rate-limit-358;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user): main's body with the rate_limit column scanned into Route.RateLimit; the new kind is registry:RateLimit, one site; no other read;rev3=census-ruling-rootfs-apps-2;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=main's body with the runtime column scanned into Route.Runtime, before rate_limit; the new kind is registry:Runtime, one site; no other read; re-digested at the merge of origin/main 3c33f2eb: main's assets_off and asset_gen (edge asset cache plan 1) scanned beside runtime and rate_limit; routeColCount 59; re-digested again at the merge of origin/main 953b9fda: main's incarnation and serving_seq (self-serve moves plan 1) scanned after asset_gen; routeColCount 61;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=#328/#329 plan 1 Task 4: main's body with egress_allow, size and policy_expires_at scanned into Route.EgressAllow, Route.Size and Route.PolicyExpiresAt after serving_seq; the new kinds are registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each; routeColCount 64; no other read;rev3=census-ruling-region-ha-p1a;basis=scans one more column, ha, into Route.HA (+registry:HA); routeColCount 64 to 65; keeps legacy;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Tasks 2 and 5): scans three more columns, fleet_assigned, fleet_moved and fleet_label, into Route.Assigned, Moved and FleetLabel. Any root caller of Registry.Get sees three more fields, which no root decision reads (grep: only the activator start rule, edge, provision and registry read them).;rev3=census-ruling-stateless-replicas-1;basis=Decode the additive stateless registry column; no launch authority.;rev3=census-ruling-stateless-replicas-2;basis=Existing row scanner reads four additive SQL columns from the same row and connection. registry:Account@426,registry:Addr@194,registry:Addrs@516,registry:App@269,registry:Args@575,registry:AssetGen@885,registry:AssetsOff@1166,registry:Assigned@981,registry:Backing@351,registry:BuildState@800,registry:Canary@1220,registry:Caps@456,registry:CertExpiresAt@408,registry:Channel@299,registry:ClaimIncarnation@637,registry:ClaimOwner@673,registry:ClaimRowID@688,registry:ClaimStamp@658,registry:Copies@1044,registry:CreatedAt@559,registry:DBPath@230,registry:DNSCheckedAt@391,registry:DNSStatus@377,registry:EgressAllow@931,registry:Environment@440,registry:FleetBox@501,registry:FleetBoxes@1029,registry:FleetLabel@1002,registry:Gate@550,registry:GoodDemand@747,registry:GoodDigest@732,registry:GoodVersion@716,registry:HA@1128,registry:Health@526,registry:Hibernate@1196,registry:HoldOp@703,registry:Host@156,registry:IdleSeconds@584,registry:ImportGate@832,registry:Incarnation@898,registry:Kind@174,registry:LastError@216,registry:MaxRunSeconds@600,registry:Moved@1144,registry:NextDue@339,registry:Platform@1266,registry:PolicyExpiresAt@956,registry:Pool@277,registry:PrevVersion@253,registry:Provisioned@1290,registry:RateLimit@859,registry:Region@288,registry:Replica@1317,registry:ReplicaIncarnation@1075,registry:ReplicaRevision@1055,registry:Replicas@618,registry:Replication@323,registry:Runtime@847,registry:Seed@483,registry:SeedSource@817,registry:ServingSeq@914,registry:ServingVersion@762,registry:Size@947,registry:Slug@165,registry:Socket@183,registry:Stateless@1098,registry:Status@203,registry:StatusNamed@1241,registry:Steering@537,registry:Tunnel@465,registry:Unit@492,registry:UpdateSettings@781,registry:Version@241,whole:Route@1346 a0f26864ffc4267e026c166b681990dad201ce9059b4496c1c6ec0a33f7c8be0 |
| @@ -48,6 +49,7 @@ internal/registry/replicas.go Registry.SeedReplicaAssignment legacy accepted-leg |
| internal/registry/replicas.go Registry.setReplicaAssignment legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-2;basis=Same local registry SQL connection reads one route in a transaction; freezes identity on seed, rejects lifetime/revision mismatch and forbidden row shapes. Writes declarative set columns only, no paths or bucket data. Fix round 2: the existing UPDATE/DELETE also carries kind <> forward in SQL; writer-inventory tests cover the ordinary change and a forward-row refusal/no-op. Same transaction and read sources. file:Exec@1463,file:QueryRow@698,registry:Backing@1058,registry:Canary@1003,registry:Copies@1353,registry:FleetBoxes@1327,registry:HA@1016,registry:Hibernate@1025,registry:Kind@944,registry:Method@509,registry:Observed@547,registry:Platform@988,registry:Provisioned@970,registry:Region@886,registry:ReplicaIncarnation@1117,registry:ReplicaRevision@1198,registry:ReplicaRevision@1281,registry:Stateless@1388,registry:Tunnel@1078,registry:Unit@1041,registry:remote@335,registry:remote@586,whole:Route@1098,whole:Route@1159,whole:Route@1178,whole:Route@1185,whole:Route@488,whole:Route@549,whole:Route@561,whole:remoteClient@337,whole:remoteClient@588,whole:remoteRequest@605 0565599be1b90bdaf2131bb097b48e44e4269bfa2b9c2610cf0fa7a11ed8a7ec |
| internal/registry/replicas.go Route.ReplicaContains legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-2;basis=Pure validated membership of the supplied canonical JSON array; no external read. registry:FleetBoxes@170,registry:FleetBoxes@85 f793980f7dd8efb9fcdfabfb3f60a5797ccd0920c51fd0aae10b276ca3a8223b |
| internal/registry/replicas.go Route.ValidReplicaProjection legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-2;basis=Pure canonical JSON/count/lifetime/revision/mode validation of supplied route; absent fields remain legacy. registry:Copies@327,registry:Copies@81,registry:FleetBoxes@200,registry:FleetBoxes@425,registry:FleetBoxes@51,registry:Region@380,registry:ReplicaIncarnation@124,registry:ReplicaIncarnation@441,registry:ReplicaRevision@471,registry:ReplicaRevision@496,registry:ReplicaRevision@98,registry:Stateless@534 6ba44570ad006fbfd89257f2969f4940db67f201c08d44763f2989b75b7dc1a5 |
| +internal/activator/activator.go Service.doWakeOnce legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: The former doWake body, not deleted logic: refresh/admit/fence/layout checks remain. Select and verify the actual staged identity before serving Acquire; use canonical mode to call doStatelessWake. Keep SQLite acquire/restore/seed/marker/replicate only in the stateful arm, with the post-acquisition selection recheck and existing cleanup proofs. Fix 3a round 1 I1/I3a: admit config directly only for stateless and mark runtime ownership refusals. Stateful Acquire/Restore precede selection and pending publication; canonical mode inspection is separate, replan precedes settlement. Fix round 2 N2/N3: retain the original route/pin projection for post-lease declaration checks; reuse the unplanned capture so a live-link repoint cannot change the selected build. Stateful capture and changed-copy errors remain start failures after Acquire/Restore. A failed preliminary verification supplies no cached mode observation. No new file path or database authority. Final review C1/R26: unprojected stateful wakes capture and materialize the live link only after Acquire and Restore. Retain original route/generation/pin stateless evidence on the context across fallback, so missing stateless evidence cannot take stateful recovery inference. Known good stateful identity skips canonical declaration lookup. Existing pre-exec verification remains. R28 final fix 2: carry whether this wake has a plan in attempt-local context; no new read here; route, generation and pin stateless projection remains intact.;rev3=census-ruling-stateless-replicas-2;basis=P14: after verified storage-mode selection, before clearing the projected hint or acquiring a database lease, a set row still on the stateful branch returns ErrFenced. Reads the existing route FleetBoxes field only. Verified stateless wakes take their existing branch; legacy rows remain unchanged. No new file, registry query or bucket read. registry:DBPath@1703,registry:DBPath@1719,registry:DBPath@1846,registry:DBPath@1857,registry:DBPath@32483,registry:FleetBoxes@11629,registry:GoodVersion@17513,registry:Host@1532,registry:Host@1607,registry:Host@1685,registry:Host@1837,registry:Host@2171,registry:Host@4121,registry:Host@581,registry:Host@6378,registry:Replication@16140,registry:Replication@16269,registry:Replication@16288,registry:Replication@16369,registry:Replication@32386,registry:Replication@32518,registry:Seed@21208,registry:Socket@1732,registry:Socket@1748,registry:Socket@1871,registry:Socket@1882,registry:Stateless@11347,registry:Stateless@11677,registry:Stateless@19922,registry:Stateless@9232,registry:Stateless@9323,registry:Stateless@9689,registry:Stateless@9975,whole:Route@10299,whole:Route@10397,whole:Route@10488,whole:Route@10620,whole:Route@10743,whole:Route@10797,whole:Route@11069,whole:Route@11245,whole:Route@11249,whole:Route@12078,whole:Route@12379,whole:Route@13684,whole:Route@14361,whole:Route@15242,whole:Route@16120,whole:Route@1630,whole:Route@16371,whole:Route@17716,whole:Route@18307,whole:Route@18472,whole:Route@19408,whole:Route@20204,whole:Route@20479,whole:Route@2066,whole:Route@2071,whole:Route@2125,whole:Route@21309,whole:Route@2131,whole:Route@21380,whole:Route@2197,whole:Route@2205,whole:Route@23792,whole:Route@25650,whole:Route@26296,whole:Route@27603,whole:Route@27757,whole:Route@28256,whole:Route@28326,whole:Route@28913,whole:Route@29998,whole:Route@30429,whole:Route@30637,whole:Route@30691,whole:Route@3156,whole:Route@31620,whole:Route@31805,whole:Route@3250,whole:Route@32595,whole:Route@33007,whole:Route@33056,whole:Route@3317,whole:Route@33434,whole:Route@34656,whole:Route@34751,whole:Route@35592,whole:Route@361,whole:Route@4011,whole:Route@566,whole:Route@5747,whole:Route@6006,whole:Route@6268,whole:Route@6273,whole:Route@6330,whole:Route@6336,whole:Route@6405,whole:Route@6413,whole:Route@6729,whole:Route@6790,whole:Route@6888,whole:Route@7853,whole:Route@8836,whole:Route@9060,whole:Route@9124,whole:Route@9168,whole:Route@9761,whole:Route@9920 65c4225442128a04ea3f79a5981fdd2955a6960dfb20e9313cf94310a2fefbb9 |
| internal/activator/cmd.go Service.RunCmd legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): admits one run against an awake entry under the agent's own lease, fence and swap checks; it starts nothing itself and root validates what it later names;rev3=census-ruling-edge-request-records;basis=passes nil for begin's new req parameter; no read added;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: a carlos run is refused with ErrCmdBusy while a release record of the host is open (a.releaseOps[rt.Host], in-memory), as a run already in flight refuses it; new site +registry:Host (that map lookup); adds a refusal only;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a: AfterSettled honoured on every path (called before return on each path that starts no unit, else by the settle that proves the unit gone); a rootfs run is refused as a lost lease (CmdStoppedError StopLeaseLost) when its entry is not under the lease watch (residentWatchedLocked), and, off a.mu, when the replica's in-memory SafeUntil leaves less than oneShotStartLead (oneShotHeadroom); new sites are e.route.Rootfs() and a log line; adds refusals only Task 9 (PF-17): a session (spec.TTY) takes the entry's tty slot and a run its cmd slot (holdSlot), the hold carrying its role (newCmdHold); each is refused only for its own role (holdBusyLocked: ErrCmdBusy or ErrTTYBusy), so a run and a session coexist; a release command (a.releaseOps) refuses a run only, since the session's tty unit is its own; no read added, read sites unchanged Task 12 fix round 1 (Astra P1, incarnation binding): a session (spec.TTY) is refused with ErrCmdIncarnation, under a.mu, at admission (before the hold is attached, so nothing of it runs) and again at the last check before the start, unless the awake entry's row lifetime (e.route.Incarnation) equals spec.Incarnation, the lifetime the box's grant authorized; Task 12 fix round 2 (revised ruling): only a mismatch refuses, and 0 matches 0 (a record and row with no lifetime fields); a run is not checked; refuses more, starts nothing new, no read added beyond the in-memory e.route field (sessionIncarnationLocked);rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Take command/TTY mode from the actual serving generation alongside the existing captured environment; no authority comes from a route flag.;rev3=census-ruling-stateless-replicas-2;basis=Only a set command chains the existing exec gate to the current record membership recheck immediately before exec; preserves caller gate and legacy path. file:Prepare@2688,file:Prepare@2722,registry:FleetBoxes@9308,registry:Host@1502,registry:Host@2098,registry:Host@7932,registry:Host@9168,registry:Kind@437,registry:Stateless@5132,whole:Route@683,whole:Route@8336,whole:Route@869,whole:Route@8800,whole:Route@9497,whole:Route@9538 1c58059ab419d2a1fc1647c031f2e81647c1f892642656134cf1721b4d90d689 |
| internal/activator/cmdunit.go ExecBackend.StartCmd legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): writes launch.cmd.json in the instance's own directory and asks instance control to start the cmd unit; root validates the staged executable it names (refuseStagedExe) and decides the start;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a: after the layout and run-directory checks, a rootfs row returns startRootfsRun (backend_rootfs.go) before nestedGate; the binary path is byte-identical (TestBinaryStartCmdLaunchGolden); new site +whole:Route is rt.Rootfs(); Plan 6 Task 8: a session (spec.TTY): checkCmdLaunch refuses before anything is listened on or written a launch shape (errCmdLaunchShape: process and argv both or neither, a process other than console, a run naming a process, a session with a run directory or streams, an id that is not one path element) and a process on a binary row (errBinaryProcess); then the session verbs (TTYControl) or ErrNoTTY; on a binary row the same nested gate, live link or staged build, launch environment and replica gate as a run; prepare(rt, RoleTTY); the pty and its handoff socket (openTTY) in place of the two streams; launch.tty.json with argv [live link, args...] and childEnv(ttyVars); then TTYControl.TTY, or TTYExe naming the staged build (POST /tty; root Task 6 handler validates it); the run path is unchanged (TestBinaryStartCmdLaunchGolden); new sites are rt to checkCmdLaunch and rt.Host in its error;rev3=census-ruling-stateless-replicas-2;basis=Only a set row invokes the caller's exec gate after binary command launch preparation and before any Cmd/TTY control call. Existing single-copy/stateful command path is unchanged; rootfs commands already invoke the gate. registry:FleetBoxes@2475,registry:Host@1092,registry:Host@1201,registry:Host@1972,registry:Host@2176,registry:Host@218,registry:Host@2404,registry:Host@2693,registry:Host@2767,registry:Host@2841,registry:Host@2915,registry:Host@3299,registry:Host@3432,registry:Host@3468,registry:Host@367,registry:Host@473,registry:Host@685,registry:Host@983,whole:Route@130,whole:Route@1788,whole:Route@1895,whole:Route@2220,whole:Route@2313,whole:Route@2585,whole:Route@298,whole:Route@3233,whole:Route@3237,whole:Route@3519,whole:Route@3523,whole:Route@414,whole:Route@755,whole:Route@792 cf3e3d38b9143532a9821578987c84e0d7dcea85e97a36a6d2aaba585f8081d7 |
| internal/activator/rootfsworkers.go Service.runWorkerStart legacy accepted-legacy accepted-legacy;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one worker start off a.mu: publishes the build's pins, launches through the gate, installs only on the same entry still awake; always ends with the start done and what it started installed, proven gone or a stray;rev3=census-ruling-stateless-replicas-2;basis=Declared stateless set workers use the instance route and existing wake record recheck at actual launch, between two existing local worker gates. No read on a tick without a start, no new reads for stateful or unset assignments. Sidecar entry-point refusal remains. registry:FleetBoxes@2042,registry:Host@1971,registry:Host@2580,registry:Host@2771,registry:Host@3197,whole:Route@1656,whole:Route@2210,whole:Route@2342,whole:Route@2849,whole:Route@3261 924ee9f484d2ae2eaaf1dd250d889cc7f005ddf307aeeafb30874f3003f7fa67 |
| @@ -58,7 +60,7 @@ internal/activator/wakeidentity.go Service.currentWakeRoute legacy accepted-lega |
| internal/activator/wakeidentity.go leaseRouteChanged legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-1b;basis=new (branch review R1 P1-1): a pure comparison of the row a wake began from (began) with the row doWake read under the lease (now): nil now is a row that is gone; then wakeRouteChanged's identity checks; then Assigned and Moved; then Region. It answers an error naming the change, wrapping errRouteChangedUnderLease, or nil. No read beyond its arguments. Agent, not root; it only refuses.;rev3=census-ruling-stateless-replicas-2;basis=Pure comparison adds set/count/revision/lifetime changes to existing wake fence; no new input source. registry:Assigned@559,registry:Assigned@577,registry:Assigned@771,registry:Assigned@796,registry:Copies@388,registry:Copies@404,registry:FleetBoxes@350,registry:FleetBoxes@370,registry:Host@164,registry:Host@732,registry:Host@940,registry:Moved@593,registry:Moved@608,registry:Moved@785,registry:Moved@812,registry:Region@831,registry:Region@847,registry:Region@979,registry:Region@991,registry:ReplicaIncarnation@466,registry:ReplicaIncarnation@494,registry:ReplicaRevision@418,registry:ReplicaRevision@443,whole:Route@234,whole:Route@242,whole:Route@91 692ba8509b2b5dc40a1bd39bf5038b68c5d8c41e8fdc264a1f4041892d300210 |
| internal/host/fleetbind.go statelessBindingPublisher.publish legacy accepted-legacy accepted-legacy;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: consume the applied record and serving route already read by reconcile, check instance/account/app/assignment/status/fleet/box and exact held coordinator lifetime, then publish the existing binding key. A per-host state cache excludes expiry-only renewals and avoids unchanged binding I/O. No instance-record scan or root exec; no typed record writer added.;rev3=census-ruling-stateless-replicas-2;basis=Refuses record or route set assignments before the single-box binding writer; no new read. registry:Account@328,registry:App@357,registry:Assigned@378,registry:FleetBoxes@150,registry:Host@305,registry:Provisioned@263,registry:ServingVersion@1067,registry:Stateless@210,registry:Status@281 46ba5abc35a4c59b6ab66e6d3691663ce4f2f9ae0e70b6ac56d2df91127cd24c |
| internal/provision/forward.go forwardCurrent legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: compares the existing forward row's declared fields with the wanted one (+registry:Account, App, Channel, Provisioned, RateLimit, Region, Slug, Status, each x2). Pure.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5): the forward row is current only if FleetLabel also matches and, for a labelled want, FleetBox equals the label (+registry:FleetBox x2, +registry:FleetLabel x3). The hub's forward phase in the agent, not root; it may write a row it skipped before, never fewer checks.;rev3=census-ruling-stateless-replicas-2;basis=Pure comparison covers explicit count/set/revision/lifetime and assigned mode; legacy nil-assignment mode comparison remains unchanged. registry:Account@550,registry:Account@570,registry:App@520,registry:App@536,registry:Channel@624,registry:Channel@644,registry:Copies@137,registry:Copies@156,registry:FleetBox@376,registry:FleetBox@774,registry:FleetBox@795,registry:FleetBoxes@118,registry:FleetBoxes@282,registry:FleetBoxes@351,registry:FleetBoxes@95,registry:FleetLabel@704,registry:FleetLabel@727,registry:FleetLabel@749,registry:Provisioned@442,registry:Provisioned@466,registry:RateLimit@662,registry:RateLimit@684,registry:Region@588,registry:Region@607,registry:ReplicaIncarnation@223,registry:ReplicaIncarnation@254,registry:ReplicaRevision@171,registry:ReplicaRevision@199,registry:Slug@488,registry:Slug@505,registry:Stateless@307,registry:Stateless@329,registry:Status@406,registry:Status@425 35f2010c3c11b810e2a7f06c0575c2d08cf1777b71b091d9c432f1835f187c5a |
| -internal/provision/reconcile.go Reconcile legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. Fix 3b round 1 I1: binding callback failure is logged and falls through to pr.applied; same per-host callback, record writers, scope and removal gates. TestStatelessBindingFailureContinuesReconcile covers second-record convergence, removal, applied bookkeeping and next-pass retry.;rev3=census-ruling-stateless-replicas-2;basis=P11 and Important 3: same record scan judges legacy row membership for retirement, including old labelled rows in Retiring. Same-owner member rows are replaced only with a provably older nonzero monotonic counter and atomic local replacement or the existing claim retirement hook. Newer/unknown rows, sidecars/platform/canary and unreadable shapes remain protected. Logs failed, successful and changed-row retirement. No new record reads or stop ACK. registry:Account@37944,registry:Account@39700,registry:Account@58050,registry:Account@58096,registry:Account@59411,registry:Account@59788,registry:Account@60014,registry:Account@60081,registry:Account@60127,registry:Account@60220,registry:Account@60262,registry:Account@60910,registry:Account@61168,registry:Account@62074,registry:Account@62122,registry:Account@62531,registry:Account@62577,registry:Account@62822,registry:Account@63247,registry:Account@63735,registry:Account@64471,registry:Account@64664,registry:Account@65076,registry:Account@65255,registry:Account@65578,registry:Account@66143,registry:App@37917,registry:App@39673,registry:App@58070,registry:App@58108,registry:App@59423,registry:App@59800,registry:App@60026,registry:App@60101,registry:App@60139,registry:App@60240,registry:App@60922,registry:App@61180,registry:App@62086,registry:App@62134,registry:App@62551,registry:App@62589,registry:App@62834,registry:App@63259,registry:App@63747,registry:App@64483,registry:App@64676,registry:App@65088,registry:App@65267,registry:App@65590,registry:App@66155,registry:Canary@58563,registry:ClaimOwnership@38531,registry:DBPath@47879,registry:DBPath@47894,registry:DBPath@48140,registry:DBPath@48743,registry:DBPath@48756,registry:EgressAllow@37030,registry:FleetBoxes@58524,registry:FleetBoxes@58672,registry:FleetBoxes@64864,registry:Gate@44224,registry:Gate@44364,registry:Gate@44651,registry:Hibernate@42896,registry:Hibernate@43094,registry:Hibernate@43159,registry:Hibernate@43498,registry:Hibernate@43849,registry:Hibernate@44159,registry:HoldOp@29123,registry:HoldOp@64216,registry:HoldOp@64307,registry:HoldOp@64442,registry:HoldOp@64818,registry:Host@27020,registry:Host@29526,registry:Host@29666,registry:Host@58029,registry:Host@58623,registry:Host@59387,registry:Host@59764,registry:Host@59928,registry:Host@60034,registry:Host@60930,registry:Host@61136,registry:Host@62414,registry:Host@62686,registry:Host@62801,registry:Host@63124,registry:Host@63221,registry:Host@63612,registry:Host@63709,registry:Host@63923,registry:Host@64298,registry:Host@64433,registry:Host@64637,registry:Host@64710,registry:Host@64809,registry:Host@65049,registry:Host@65228,registry:Host@65307,registry:Host@65394,registry:Host@65552,registry:Host@65627,registry:Host@65713,registry:Host@66120,registry:Incarnation@29299,registry:Kind@29511,registry:Kind@29651,registry:Kind@38673,registry:Kind@38925,registry:Kind@39207,registry:Kind@39427,registry:Kind@47797,registry:Kind@47810,registry:Kind@47920,registry:Kind@47933,registry:Kind@48654,registry:Kind@48665,registry:Kind@57153,registry:Kind@63914,registry:Kind@64424,registry:Kind@64800,registry:Kind@65040,registry:Kind@65385,registry:Kind@65543,registry:Kind@65704,registry:Platform@58548,registry:PolicyExpiresAt@37055,registry:Pool@57239,registry:Provisioned@37893,registry:Provisioned@39649,registry:Provisioned@57198,registry:RateLimit@44737,registry:RateLimit@44888,registry:RateLimit@45175,registry:Region@57228,registry:ReplicaIncarnation@29007,registry:ReplicaIncarnation@29044,registry:Replication@43583,registry:Replication@43710,registry:Runtime@30695,registry:Runtime@30873,registry:Runtime@33078,registry:Runtime@42263,registry:Runtime@42317,registry:Runtime@42521,registry:Seed@46277,registry:SeedSource@45760,registry:Size@37046,registry:Socket@47845,registry:Socket@47860,registry:Socket@48157,registry:Socket@48713,registry:Socket@48726,registry:Stateless@48846,registry:Unit@47763,registry:Unit@47776,registry:Unit@48680,registry:Unit@48691,whole:ClaimOwnership@38534,whole:ClaimOwnership@38551,whole:Route@27002,whole:Route@27013,whole:Route@27031,whole:Route@28312,whole:Route@28899,whole:Route@29110,whole:Route@29425,whole:Route@29711,whole:Route@29725,whole:Route@29738,whole:Route@29761,whole:Route@31190,whole:Route@31197,whole:Route@31237,whole:Route@31598,whole:Route@31936,whole:Route@32383,whole:Route@32434,whole:Route@32471,whole:Route@34143,whole:Route@34352,whole:Route@34691,whole:Route@34700,whole:Route@34746,whole:Route@36979,whole:Route@37538,whole:Route@38009,whole:Route@38019,whole:Route@38376,whole:Route@38383,whole:Route@38451,whole:Route@38756,whole:Route@38826,whole:Route@38837,whole:Route@39265,whole:Route@40298,whole:Route@43249,whole:Route@47989,whole:Route@48959,whole:Route@49846,whole:Route@49891,whole:Route@49901,whole:Route@50771,whole:Route@51798,whole:Route@57264,whole:Route@57412,whole:Route@58509,whole:Route@58805,whole:Route@59339,whole:Route@59721,whole:Route@61576,whole:Route@64955,whole:Route@65465,whole:Route@66050,whole:Route@66100 5ac04d6990c2cd39eddd6f14cb69656e603cd1654f8b09bbc68cc1ee427e2094 |
| +internal/provision/reconcile.go Reconcile legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), from its reconcile loops: each listed record is observed through the box's lifetime judge (ObserveWith: the record, then its host incarnation slot) before the shape, channel and scope checks, a stale record is left out and an unjudgeable one protected; the removal phase observes a row's own record key when the pass holds none for it under that key, and deletes a held row whose record is gone or stale through DeleteIfHold; a nil judge (claims on) is main's body; registry read sites unchanged, offsets moved; fix round 1: the removal phase observes a row's own key only under an account the listing trusts, so a retired or unmaterialised account's row keeps record gone, and the pass arms its own context with the judge; Task 7: under a judge an existing provisioned row of the record's own app and account follows the existing-row rules (heldByVanishedPredecessor and retireHeldPredecessor's DeleteIfHold first, the record then minted on the same pass; the hold; installRowLifetime), each a separate write under the host's hold lock; registry read sites unchanged, offsets moved;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the pass reads its apps' policy objects (control/app-policy/<sqid>/<app>.json in the bucket) through the agent's PolicyCache, each verified with ReleasePub by apppolicy.VerifyKey (ed25519 over the policy's own domain line, bound to the account and app, unexpired, not future-dated; anything else is no policy), and carries the columns into its rows. New kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, all the assignment of a fresh row's columns (nr) from policies.cols; plus one whole:Route site, the existing row handed to policies.forRow. Other read sites unchanged, offsets moved; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos, from its reconcile loops: after the scan, hands the in-scope records to cfg.Lifetimes (the box's lifetime index): Merge after a failed read or partial listing, Replace after a complete one, nothing on a dry run or with no index; the scan, judge and removal phases unchanged; the same 166 sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 5 (D5, spec §5.0): a seeded record over a row with a runtime is skipped and logged; a row with a runtime (or a new record with one) takes no seed; runtime and a rootfs row's hibernation are never converged from a record (a mismatch is logged; a record claiming a runtime its row lacks is not applied); reads Runtime of the record and the row; the box writes less; fix wave 1 (ceea6353, whole-branch P1-2): before minting a row for a record with no runtime and no row (both mint paths), the pass reads the app's kind marker once per app per pass (release.ReadAppKindMarker: one GET of the create-only kind.json from the release store s, through freshStore, validated by readAppKindMarker); a rootfs marker leaves the record unmaterialized and logged (an older console stripped its runtime), and a marker that cannot be read defers the mint this pass; a refusal before minting only, registry read sites unchanged, the box writes less; fix wave 2 (whole-branch r2 P1): the kind-marker read and its refusal apply only to a socket-backed instance record (DerivesPaths), so a static or upstream-backed record of a rootfs app, which carries no runtime by design, is minted as before with no read; fewer reads, registry read sites unchanged;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 10: the forward phase on the hub (FleetOwners set): the scan keeps the fleet-placed records it skips and counts records per host; a trash-only marker prefetch; disputed (failed-GET) hosts; armed, a host an in-scope and a fleet record both name is given neither, its journal waits and the removal phase keeps its row (+registry:Account, +registry:App, +registry:Host x2: the collision guard, its log line and report mark); the instance loop leaves a forward host; retirable excludes forward rows. Same record keys; writes only the registry (PutForward, DeleteForward); no bucket write.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 4, rules 2 and 9): after inScope, a record failing cfg.ownsRecord (on a fleet box, labelled for another box: rec.FleetBox != "" and != cfg.FleetBox) is skipped as out of scope, so it is never minted here; in the removal phase such a record no longer keeps the row (inScope && ownsRecord), so the row goes as record gone. Off a fleet ownsRecord is always true. Read sites unchanged (178). The agent's reconcile loops, not root; it mints less, never more.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 3: in the per-record loop, beside the RunSeen call, calls cfg.InteractiveSeen(rec) when the hook is set and the in-scope record carries an interactive-session marker (rec.Interactive != nil), once per record per pass, before the pass acts on it; the hook is the box worker's non-blocking note (Task 12). Same record keys and literal; no read added (registry read sites unchanged, 178); nothing written by the call; merge of origin/main 6f1f6ca6: main's fleet-box ownsRecord skip in the record scan and in the removal phase is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above; read sites unchanged (178);rev3=census-ruling-stateless-replicas-1;basis=Task 3b: call the optional binding callback only for applied, owned stateless rows outside dry run. Reuses this pass record and route reads after existing collision, scope, hold, policy and shape checks; no new record read or typed writer. Fix 3b round 1 I1: binding callback failure is logged and falls through to pr.applied; same per-host callback, record writers, scope and removal gates. TestStatelessBindingFailureContinuesReconcile covers second-record convergence, removal, applied bookkeeping and next-pass retry.;rev3=census-ruling-stateless-replicas-2;basis=P11 and Important 3: same record scan judges legacy row membership for retirement, including old labelled rows in Retiring. Same-owner member rows are replaced only with a provably older nonzero monotonic counter and atomic local replacement or the existing claim retirement hook. Newer/unknown rows, sidecars/platform/canary and unreadable shapes remain protected. Logs failed, successful and changed-row retirement. No new record reads or stop ACK. P14: admission and nonmember retirement now use pure validation of the same judged atomic record: managed fleet shape, no unknown assignment members, valid assignment, positive revision covered by RecordSeq, and a valid lifetime-bound projection. Removes the unused manifest hook; adds no bucket read. Existing owner/lifetime and conditional registry retirement checks remain. Exec independently rejects any stateful generation for a set row. registry:Account@37940,registry:Account@39696,registry:Account@58046,registry:Account@58092,registry:Account@59403,registry:Account@59780,registry:Account@60006,registry:Account@60073,registry:Account@60119,registry:Account@60212,registry:Account@60254,registry:Account@60902,registry:Account@61160,registry:Account@62062,registry:Account@62110,registry:Account@62519,registry:Account@62565,registry:Account@62810,registry:Account@63235,registry:Account@63723,registry:Account@64459,registry:Account@64652,registry:Account@65064,registry:Account@65243,registry:Account@65566,registry:Account@66131,registry:App@37913,registry:App@39669,registry:App@58066,registry:App@58104,registry:App@59415,registry:App@59792,registry:App@60018,registry:App@60093,registry:App@60131,registry:App@60232,registry:App@60914,registry:App@61172,registry:App@62074,registry:App@62122,registry:App@62539,registry:App@62577,registry:App@62822,registry:App@63247,registry:App@63735,registry:App@64471,registry:App@64664,registry:App@65076,registry:App@65255,registry:App@65578,registry:App@66143,registry:Canary@58559,registry:ClaimOwnership@38527,registry:DBPath@47875,registry:DBPath@47890,registry:DBPath@48136,registry:DBPath@48739,registry:DBPath@48752,registry:EgressAllow@37026,registry:FleetBoxes@58520,registry:FleetBoxes@58668,registry:FleetBoxes@64852,registry:Gate@44220,registry:Gate@44360,registry:Gate@44647,registry:Hibernate@42892,registry:Hibernate@43090,registry:Hibernate@43155,registry:Hibernate@43494,registry:Hibernate@43845,registry:Hibernate@44155,registry:HoldOp@29119,registry:HoldOp@64204,registry:HoldOp@64295,registry:HoldOp@64430,registry:HoldOp@64806,registry:Host@27016,registry:Host@29522,registry:Host@29662,registry:Host@58025,registry:Host@58619,registry:Host@59379,registry:Host@59756,registry:Host@59920,registry:Host@60026,registry:Host@60922,registry:Host@61128,registry:Host@62402,registry:Host@62674,registry:Host@62789,registry:Host@63112,registry:Host@63209,registry:Host@63600,registry:Host@63697,registry:Host@63911,registry:Host@64286,registry:Host@64421,registry:Host@64625,registry:Host@64698,registry:Host@64797,registry:Host@65037,registry:Host@65216,registry:Host@65295,registry:Host@65382,registry:Host@65540,registry:Host@65615,registry:Host@65701,registry:Host@66108,registry:Incarnation@29295,registry:Kind@29507,registry:Kind@29647,registry:Kind@38669,registry:Kind@38921,registry:Kind@39203,registry:Kind@39423,registry:Kind@47793,registry:Kind@47806,registry:Kind@47916,registry:Kind@47929,registry:Kind@48650,registry:Kind@48661,registry:Kind@57149,registry:Kind@63902,registry:Kind@64412,registry:Kind@64788,registry:Kind@65028,registry:Kind@65373,registry:Kind@65531,registry:Kind@65692,registry:Platform@58544,registry:PolicyExpiresAt@37051,registry:Pool@57235,registry:Provisioned@37889,registry:Provisioned@39645,registry:Provisioned@57194,registry:RateLimit@44733,registry:RateLimit@44884,registry:RateLimit@45171,registry:Region@57224,registry:ReplicaIncarnation@29003,registry:ReplicaIncarnation@29040,registry:Replication@43579,registry:Replication@43706,registry:Runtime@30691,registry:Runtime@30869,registry:Runtime@33074,registry:Runtime@42259,registry:Runtime@42313,registry:Runtime@42517,registry:Seed@46273,registry:SeedSource@45756,registry:Size@37042,registry:Socket@47841,registry:Socket@47856,registry:Socket@48153,registry:Socket@48709,registry:Socket@48722,registry:Stateless@48842,registry:Unit@47759,registry:Unit@47772,registry:Unit@48676,registry:Unit@48687,whole:ClaimOwnership@38530,whole:ClaimOwnership@38547,whole:Route@26998,whole:Route@27009,whole:Route@27027,whole:Route@28308,whole:Route@28895,whole:Route@29106,whole:Route@29421,whole:Route@29707,whole:Route@29721,whole:Route@29734,whole:Route@29757,whole:Route@31186,whole:Route@31193,whole:Route@31233,whole:Route@31594,whole:Route@31932,whole:Route@32379,whole:Route@32430,whole:Route@32467,whole:Route@34139,whole:Route@34348,whole:Route@34687,whole:Route@34696,whole:Route@34742,whole:Route@36975,whole:Route@37534,whole:Route@38005,whole:Route@38015,whole:Route@38372,whole:Route@38379,whole:Route@38447,whole:Route@38752,whole:Route@38822,whole:Route@38833,whole:Route@39261,whole:Route@40294,whole:Route@43245,whole:Route@47985,whole:Route@48955,whole:Route@49842,whole:Route@49887,whole:Route@49897,whole:Route@50767,whole:Route@51794,whole:Route@57260,whole:Route@57408,whole:Route@58505,whole:Route@58797,whole:Route@59331,whole:Route@59713,whole:Route@61564,whole:Route@64943,whole:Route@65453,whole:Route@66038,whole:Route@66088 58d8d2dee184c4509cdbe249b98e83476f6b2157ff2101ef0644877be9cca0a4 |
| internal/provision/reconcile.go convergeOwned 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): the owned-converge arm gains the asset pair beside steering: when the row's assets_off or asset_gen differs from the record's (Record.AssetsOn, Record.AssetGen), Registry.SetAssets converges both in one UPDATE (dry-run logs only); the new kinds are registry:AssetsOff and registry:AssetGen, three sites each, all existing.AssetsOff and existing.AssetGen (the comparison and the two log lines); it now also returns the converge errors it already logged, joined, so Reconcile's completeness report can tell an applied record from one that was not; no other read is added; the agent's own pass, no root decision;rev3=census-ruling-instance-egress-sizes-328-329;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=#328/#329 plan 1 Task 7: the owned-converge arm gains the app policy: when the row's egress_allow, size or policy_expires_at differs from the pass's columns (ap, only when Known), Registry.SetPolicy writes all three in one UPDATE (dry run logs only), and it reports whether the allow or size moved so Reconcile can call PolicyChanged. New kinds registry:EgressAllow (three sites), registry:Size (three) and registry:PolicyExpiresAt (one), all existing.* of the agent's own row: the comparison and the two log lines; no other read added; the agent's own pass, no root decision;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: when the record says HA and the existing row does not, marks the row with reg.SetHA (a dry run logs instead; an error is appended to the pass's errors); converges one way only, nothing clears the mark; +registry:HA is existing.HA; keeps legacy;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 2): when the row's Assigned or Moved differs from the record's FleetBoxAt or FleetBoxMoved, one reg.SetFleetAssignment call (dry-run logs instead); a failure is logged and counted. Agent provision pass, not root.;rev3=census-ruling-stateless-replicas-2;basis=Converges set projection through typed lifetime/revision writer; first seed compares entire observed SQL row. Reads supplied record and existing registry only. registry:Addr@3137,registry:Addr@3359,registry:Addr@3786,registry:Addrs@3164,registry:Addrs@3380,registry:Addrs@3807,registry:AssetGen@4644,registry:AssetGen@4830,registry:AssetGen@5221,registry:AssetsOff@4614,registry:AssetsOff@4804,registry:AssetsOff@5195,registry:Assigned@7927,registry:Assigned@8131,registry:Assigned@8580,registry:Channel@1002,registry:Channel@1333,registry:Channel@872,registry:Copies@309,registry:Copies@328,registry:EgressAllow@10102,registry:EgressAllow@10524,registry:EgressAllow@9846,registry:Environment@1375,registry:Environment@1517,registry:Environment@1876,registry:FleetBoxes@267,registry:FleetBoxes@290,registry:HA@7304,registry:Health@3191,registry:Health@3403,registry:Health@3830,registry:Moved@7966,registry:Moved@8150,registry:Moved@8599,registry:PolicyExpiresAt@9927,registry:Replica@6663,registry:Replica@6791,registry:Replica@7123,registry:ReplicaIncarnation@395,registry:ReplicaIncarnation@426,registry:ReplicaIncarnation@516,registry:ReplicaIncarnation@599,registry:ReplicaIncarnation@707,registry:ReplicaRevision@343,registry:ReplicaRevision@371,registry:Replicas@5794,registry:Replicas@5919,registry:Replicas@6241,registry:Size@10140,registry:Size@10562,registry:Size@9888,registry:Stateless@454,registry:StatusNamed@1952,registry:StatusNamed@2096,registry:StatusNamed@2460,registry:Steering@3866,registry:Steering@3999,registry:Steering@4337,registry:UpdateSettings@8904,registry:UpdateSettings@9044,registry:UpdateSettings@9404,whole:Route@589 549fb3f0a2ea5fcae27c03dedb3f855c75a26d32a183a49056114bdea99313c6 |
| internal/registry/forward.go Registry.PutForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 2: the only writer of a forward row's declared columns: refuses an argument whose kind is not forward; copies only the declared fields from its argument (Status ready, Provisioned true; no forbidden column is ever written); inside one IMMEDIATE transaction refuses a host a non-forward row holds (ErrHostHeld); keeps FleetBox while Region is unchanged; preserves the observational columns (+file:Exec, +file:QueryRow, +registry:Account, App, Channel, RateLimit, Region, Slug, +registry:Host x3, +registry:Kind, +registry:remote x2, +whole:Route x3, +whole:remoteClient x2).;rev3=census-ruling-fleet-routes-followups;basis=refuses up front, with the new sentinel ErrNotForward and before any read or write, an rt that is not a forward row (as before, now a sentinel), has an empty Host, or whose Region is not a fleet placement (registry.FleetPlacement); +registry:Host x2 and +registry:Region x2 read only the argument in those checks; the transaction and statement are unchanged;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 5, rule 3), merged with main's ErrNotForward refusals (kept unchanged): the written row also carries FleetLabel = rt.FleetLabel and FleetBox = rt.FleetLabel; its conflict arm (forwardKept) writes fleet_label from the call and fleet_box as the call's label when set, else kept while the region is unchanged. The hub's forward phase in the agent, not root.;rev3=census-ruling-stateless-replicas-1;basis=Carry declarative Stateless into forward rows under existing transaction and shape guards; projection only.;rev3=census-ruling-stateless-replicas-2;basis=Validates canonical set projection, writes explicit declarative columns and clears single-box binding; all forbidden columns zero. Same transaction/read source. file:Exec@1509,file:QueryRow@1285,registry:Account@754,registry:App@731,registry:Channel@807,registry:Copies@1054,registry:FleetBox@1175,registry:FleetBoxes@1031,registry:FleetBoxes@1152,registry:FleetLabel@1187,registry:FleetLabel@942,registry:FleetLabel@972,registry:Host@1339,registry:Host@197,registry:Host@234,registry:Host@419,registry:Host@655,registry:Kind@206,registry:RateLimit@834,registry:Region@428,registry:Region@781,registry:Region@84,registry:ReplicaIncarnation@1122,registry:ReplicaRevision@1082,registry:Slug@707,registry:Stateless@1002,registry:remote@507,registry:remote@537,whole:Route@1542,whole:Route@592,whole:Route@600,whole:remoteClient@509,whole:remoteClient@539 cf547d7bae134b9ca326bd111378d02214373e65e6107ec809eac5e3aef5e7e7 |
| internal/registry/registry.go routeArgs authority E3 rev3=census-ruling-seeded-instances;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user), wherever a route is inserted: Upsert, the cold handover restore and the import journal's inserts: the bind list from Registry.Upsert's body (and RestoreClaimRows'), with seed_source and import_gate added; E3, the same family as Registry.Upsert, whose body it came from;rev3=census-ruling-design-edge-rate-limit-358;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user), wherever a route is inserted: the bind list gains t.RateLimit for the new rate_limit column (routeCols and Upsert's conflict clause gain it too); the new kind is registry:RateLimit, one site; it binds the value and decides nothing; E3, as before;rev3=census-ruling-rootfs-apps-2;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=the bind list gains t.Runtime for the new runtime column (routeCols, routeColCount 57 with main's rate_limit, and Upsert's conflict clause gain it too); the new kind is registry:Runtime, one site; it binds the value and decides nothing; E3, as before; re-digested at the merge of origin/main 3c33f2eb: main's assets_off and asset_gen (edge asset cache plan 1) bound beside runtime and rate_limit; routeColCount 59; re-digested again at the merge of origin/main 953b9fda: main's incarnation and serving_seq (self-serve moves plan 1) bound after asset_gen; routeColCount 61;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user);basis=#328/#329 plan 1 Task 4: the bind list gains t.EgressAllow, t.Size and t.PolicyExpiresAt for the three new columns (routeCols, routeColCount 64, and Upsert's conflict clause gain them too); the new kinds are registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each; it binds the values and decides nothing; E3, as before;rev3=census-ruling-region-ha-p1a;basis=binds one more column, ha, as an integer from Route.HA (+registry:HA); keeps authority E3;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Tasks 2 and 5): binds three more columns, t.Assigned, b2iDB(t.Moved) and t.FleetLabel (routeColCount 65 to 68).;rev3=census-ruling-stateless-replicas-1;basis=Encode the additive Stateless flag in the shared SQL insert argument list; no launch authority.;rev3=census-ruling-stateless-replicas-2;basis=Supplied Route contributes four additive declarative SQL values; no external read or new executable path. registry:Account@355,registry:Addr@83,registry:Addrs@451,registry:App@152,registry:Args@505,registry:AssetGen@818,registry:AssetsOff@804,registry:Assigned@916,registry:Backing@253,registry:BuildState@730,registry:Canary@216,registry:Caps@381,registry:CertExpiresAt@338,registry:Channel@177,registry:ClaimIncarnation@577,registry:ClaimOwner@611,registry:ClaimRowID@625,registry:ClaimStamp@597,registry:Copies@992,registry:CreatedAt@492,registry:DBPath@116,registry:DNSCheckedAt@320,registry:DNSStatus@307,registry:EgressAllow@861,registry:Environment@366,registry:FleetBox@439,registry:FleetBoxes@978,registry:FleetLabel@944,registry:Gate@484,registry:GoodDemand@680,registry:GoodDigest@666,registry:GoodVersion@651,registry:HA@909,registry:Health@460,registry:Hibernate@196,registry:HoldOp@639,registry:Host@49,registry:IdleSeconds@513,registry:ImportGate@760,registry:Incarnation@830,registry:Kind@65,registry:LastError@101,registry:MaxRunSeconds@528,registry:Moved@934,registry:NextDue@242,registry:Platform@294,registry:PolicyExpiresAt@884,registry:Pool@159,registry:PrevVersion@137,registry:Provisioned@407,registry:RateLimit@785,registry:Region@167,registry:Replica@565,registry:ReplicaIncarnation@1021,registry:ReplicaRevision@1002,registry:Replicas@547,registry:Replication@227,registry:Runtime@774,registry:Seed@423,registry:SeedSource@746,registry:ServingSeq@845,registry:ServingVersion@694,registry:Size@876,registry:Slug@57,registry:Socket@73,registry:Stateless@964,registry:Status@91,registry:StatusNamed@272,registry:Steering@472,registry:Tunnel@389,registry:Unit@431,registry:UpdateSettings@712,registry:Version@126 aac8acafa9ee736e00f8b3071f02589c74c7b6a167ec9f2b3fb94abc85181ac6 |
| @@ -66,11 +68,11 @@ internal/registry/registry.go scanRoute legacy accepted-legacy accepted-legacy;r |
| internal/registry/remote_dispatch.go Registry.dispatchRemote hint E2 rev3=census-ruling-self-serve-moves-1;basis=the registry child (carlos __registry-child, the service user a root pass forks): plan14-root-reads-e's mixed declaration (E2 adds only the ArtifactHosts read; every other arm is the local method of the same name), with three more write arms, SetHoldIfSeq, ReleaseHoldSeq and InstallLifetimeIf, each calling the local setter; no read operation added; self-serve moves 1 Task 7;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry child (carlos __registry-child, the service user a root pass forks);basis=#328/#329 plan 1 Task 4: one more write arm, SetPolicy, calling the local Registry.SetPolicy with the request's Host, EgressAllow, Size and PolicyExpiresAt (remoteRequest fields sent by the remote handle's holder); the new kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, plus one more registry:Host site, all of the request; no read operation added; the read-only worker never reaches it (serveRemote's method gate); no production root pass sends SetPolicy;rev3=census-ruling-region-ha-p1a;basis=the registry child (carlos __registry-child, the service user a root pass forks): one more write arm, SetHA, calling the local Registry.SetHA with the request's Host (+registry:Host); no read operation added; only the provision pass sends it;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 8: two new remote methods, UpsertUnlessRootfs (carlos add's guarded write) and ResidentInstances (the residency sweep's list), each calling the same-named Registry method;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: two more methods on the existing remote registry transport, ListRegional and ReplaceRegionalSet (request field RDs, response field Regional), each calling the local method of the same name, which validates its own input; no new kind of read;rev3=census-ruling-fleet-secrets-key;basis=one new case, SetFleetSecretsKey, reading the request's Name, Pub, KeyFP, By and At fields and calling SetFleetSecretsKey;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 1-2: three new cases (SetFleetBoxIf reads the request's Fleet and answers Changed; PutForward reads TValue, a whole Route; DeleteForward reads Host and answers Changed); SetFleetBox gone (+registry:Changed x2, +registry:Fleet, +registry:Host, +registry:TValue, +whole:Route). Each case calls the local writer with its own guards.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Tasks 2 and 6b): three more remote methods dispatched to their local forms, SetFleetBoxDraining (q.Fleet, q.Label, q.At, answering Number64), MarkFleetBoxLabelled (q.Fleet, q.Label, q.At) and SetFleetAssignment (q.Host, q.Assigned, q.Moved); remoteRequest gains Assigned and Moved. The registry child, not root.;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-stateless-replicas-2;basis=Dispatches typed seed/update/conditional-retire and P11 atomic older-lifetime replacement; same registry RPC transport, validation delegated to local methods. registry:A@8058,registry:Account@4416,registry:Accounts@3078,registry:Addr@4993,registry:Addrs@5001,registry:Alias@8106,registry:Alias@8170,registry:Alias@8258,registry:Aliases@7980,registry:Alive@9933,registry:Args@7682,registry:AssetGen@5143,registry:AssetsOff@5130,registry:Assigned@5621,registry:Assignment@6952,registry:Assignment@7050,registry:At@2232,registry:At@2621,registry:At@2706,registry:At@6515,registry:At@8189,registry:At@8267,registry:At@9681,registry:Attempts@9703,registry:B@2281,registry:Backing@4812,registry:BuildState@5380,registry:By@2226,registry:Changed@1996,registry:Changed@3501,registry:Changed@3588,registry:Changed@3677,registry:Changed@3748,registry:Changed@3852,registry:Changed@3939,registry:Changed@4032,registry:Changed@4114,registry:Changed@5968,registry:Changed@6105,registry:Changed@6702,registry:Changed@6805,registry:Changed@9613,registry:Channel@4476,registry:Channel@5811,registry:Channel@6360,registry:CheckedAt@6441,registry:Class@4931,registry:DoneBefore@9942,registry:Due@7383,registry:Due@7447,registry:Due@9725,registry:EgressAllow@5283,registry:Env@5879,registry:Env@6271,registry:Env@6371,registry:ExcludeHosts@9408,registry:ExcludeHosts@9503,registry:ExpectGood@6640,registry:ExpectOp@3556,registry:ExpectOp@3806,registry:ExpectPair@3986,registry:Expected@1250,registry:Expected@289,registry:Expected@762,registry:Expected@939,registry:F@1968,registry:F@2029,registry:Fleet@2054,registry:Fleet@2339,registry:Fleet@2421,registry:Fleet@2502,registry:Fleet@2603,registry:Fleet@2688,registry:Fleet@2777,registry:Fleet@6011,registry:FleetBoxes@2738,registry:Fleets@2112,registry:From@4587,registry:From@4648,registry:FromDB@4723,registry:FromOp@3644,registry:FromSock@4733,registry:Hash@5685,registry:Health@5010,registry:Host@10025,registry:Host@1024,registry:Host@1135,registry:Host@272,registry:Host@3262,registry:Host@3303,registry:Host@3456,registry:Host@3532,registry:Host@3618,registry:Host@3710,registry:Host@3782,registry:Host@3888,registry:Host@3978,registry:Host@4066,registry:Host@4158,registry:Host@4408,registry:Host@4468,registry:Host@4526,registry:Host@4579,registry:Host@4640,registry:Host@4715,registry:Host@4804,registry:Host@4858,registry:Host@4923,registry:Host@4985,registry:Host@5063,registry:Host@5122,registry:Host@5210,registry:Host@5275,registry:Host@5372,registry:Host@5437,registry:Host@5498,registry:Host@5548,registry:Host@5613,registry:Host@5677,registry:Host@5738,registry:Host@5871,registry:Host@5925,registry:Host@6003,registry:Host@6140,registry:Host@6193,registry:Host@6423,registry:Host@6507,registry:Host@6564,registry:Host@6632,registry:Host@7027,registry:Host@7184,registry:Host@7260,registry:Host@7320,registry:Host@7375,registry:Host@7439,registry:Host@7623,registry:Host@7674,registry:Host@7741,registry:Host@7816,registry:Host@7879,registry:Host@8476,registry:Host@8602,registry:Host@8756,registry:Host@9044,registry:Host@9108,registry:Host@9167,registry:Host@9250,registry:Host@9333,registry:Host@9564,registry:Host@9649,registry:Host@9781,registry:Host@9862,registry:Hosts@187,registry:Hosts@3141,registry:Hosts@5802,registry:Hosts@6262,registry:Hosts@6351,registry:Id@1244,registry:Id@1555,registry:Id@1654,registry:Id@1734,registry:Id@1885,registry:IdValue@2897,registry:Idle@7749,registry:Journal@1262,registry:Journal@1561,registry:Journal@1740,registry:Journal@442,registry:Keep@10041,registry:KeyFP@2217,registry:Kind@10033,registry:Kind@9870,registry:Label@2348,registry:Label@2430,registry:Label@2511,registry:Label@2612,registry:Label@2697,registry:Label@6020,registry:Limit@9399,registry:Limit@9494,registry:MaxRun@7757,registry:Method@151,registry:Moved@5633,registry:Ms@9697,registry:Name@1032,registry:Name@1143,registry:Name@2082,registry:Name@2202,registry:Name@2916,registry:Name@9116,registry:Name@9175,registry:Name@9258,registry:Name@9572,registry:Name@9657,registry:Name@9789,registry:Next@301,registry:NextAt@9715,registry:NextGood@6654,registry:NextValue@1814,registry:NextValue@1912,registry:Now@1167,registry:Now@7950,registry:Now@9392,registry:Now@9487,registry:Now@9580,registry:Number64@2561,registry:Number64@3004,registry:Number@9830,registry:Number@9901,registry:Number@9986,registry:Observed@365,registry:Observed@6748,registry:Observed@6850,registry:Observed@6925,registry:Observed@7117,registry:ObservedValue@643,registry:Old@1807,registry:Old@1905,registry:On@7064,registry:On@7129,registry:On@7199,registry:On@7328,registry:On@7824,registry:On@7887,registry:Op@3474,registry:Op@3550,registry:Op@3718,registry:Op@3800,registry:Op@3896,registry:Op@4074,registry:Op@4166,registry:Owner@280,registry:Owner@377,registry:Owner@660,registry:P@8710,registry:Pair@3818,registry:Pair@3902,registry:Pair@4000,registry:Path@8941,registry:Paths@8638,registry:PolicyExpiresAt@5306,registry:Prefix@8764,registry:Prev@6579,registry:Pub@2210,registry:RDs@8610,registry:RateLimit@5746,registry:Regional@8508,registry:Registration@1040,registry:Registration@1151,registry:Registration@9266,registry:Registration@9665,registry:Replica@5506,registry:ReplicaLife@6937,registry:ReplicaLife@7035,registry:Replicas@5445,registry:Retirement@1891,registry:Route@3239,registry:Routes@3197,registry:Routes@4192,registry:Routes@7481,registry:Routes@7548,registry:Routes@7917,registry:Rows@9052,registry:Seed@7631,registry:Size@5298,registry:Sqid@2908,registry:Sqid@2971,registry:Sqid@3050,registry:Status@1056,registry:Status@2520,registry:Status@3464,registry:Status@3540,registry:Status@3626,registry:Status@3790,registry:Status@4534,registry:Status@6431,registry:Status@8179,registry:Status@9687,registry:Status@9797,registry:Steering@5071,registry:StringMap@2814,registry:T@757,registry:T@851,registry:T@8992,registry:T@934,registry:TValue@3344,registry:TValue@3411,registry:TValue@6070,registry:TValue@6760,registry:Tags@2439,registry:Target@6201,registry:Targets@453,registry:Text@1460,registry:Text@1607,registry:Text@3018,registry:Text@8797,registry:Text@8860,registry:Timer@709,registry:Timer@891,registry:Timer@9080,registry:Timers@9303,registry:Timers@9362,registry:Timers@9451,registry:Times@10075,registry:To@4595,registry:To@4656,registry:ToDB@4745,registry:ToOp@3636,registry:ToSock@4753,registry:TokenHash@2357,registry:Tunnel@5933,registry:Unit@4866,registry:UpdateSettings@5218,registry:Ver@6572,registry:Ver@7192,registry:Ver@7268,registry:W@8410,registry:Wildcards@8304,whole:Account@3082,whole:ClaimOwnership@282,whole:ClaimOwnership@379,whole:ClaimOwnership@662,whole:ClaimRow@455,whole:ClaimRowArchive@561,whole:ClaimRowArchive@571,whole:ColdRows@1809,whole:ColdRows@1816,whole:ColdRows@1907,whole:ColdRows@1914,whole:Fleet@1970,whole:Fleet@2031,whole:Fleet@2058,whole:Fleet@2116,whole:FleetBox@2283,whole:FleetBox@2742,whole:GoodBuild@6642,whole:GoodBuild@6656,whole:Pair@3820,whole:Pair@3904,whole:Pair@3988,whole:Pair@4002,whole:RegionalDomain@8512,whole:RegionalDomain@8612,whole:Route@3201,whole:Route@3243,whole:Route@3346,whole:Route@3413,whole:Route@367,whole:Route@4196,whole:Route@4351,whole:Route@4357,whole:Route@6072,whole:Route@6750,whole:Route@6762,whole:Route@6852,whole:Route@6927,whole:Route@7119,whole:Route@7485,whole:Route@7552,whole:Route@7921,whole:RouteAlias@7984,whole:RouteAlias@8060,whole:RoutePath@8642,whole:RoutePath@8712,whole:Timer@645,whole:Timer@713,whole:Timer@759,whole:Timer@853,whole:Timer@895,whole:Timer@8994,whole:Timer@9054,whole:Timer@9084,whole:Timer@9307,whole:Timer@936,whole:Timer@9366,whole:Timer@9455,whole:WildcardDomain@8308,whole:WildcardDomain@8412 1bb4e91660d7159ceadc7a7929a40465118b7371e7c2ae50089fea1ac5c2ac86 |
| internal/host/runs.go runsWorker.pickup legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), its runs worker: a picked run's detached execution runs under provision.WithLifetimes of the worker's judge, so execute's record writes refuse a stale record; read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 16 (ruling R7): on a fleet box a run already let go is skipped before any read; the pickup CAS moves behind the run's sink (sinkFor: the bucket's, as before, or on a fleet box the run door relay once a grant verifies); one more whole-Route site, the row this box already owns passed to sinkFor; nothing new opened, run or followed;rev3=census-ruling-stateless-replicas-2;basis=Passes the already-owned Route to the activator current-record recheck before pickup, only for set rows; legacy reads unchanged. whole:Route@1195,whole:Route@1807,whole:Route@951 5f7199c119298d7cb374ec5d77b1478e91dcb7ca3f82106739662cd0b7e635db |
| internal/provision/reconcile.go RouteFor authority C,E3 rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos); also root, in the claim root's landing registration (ClaimRootHTTP.rootLandingRoute) and the relocation install (relocationRecord): census-ruling-seeded-instances's body with two more fields from the record: the row's lifetime pair (rec.Incarnation, rec.MoveSeq), so a row minted outside a move takes the record's lifetime and its last move's sequence (0, 0 for a fieldless record with no move history); every caller gets it, the root ones included: the root callers (ClaimRootHTTP.rootLandingRoute, relocationRecord) now mint (0, move_seq) on a claims-on record, a non-zero sequence once that record has had an offline move (move_seq advances on claims-on offline moves too), which moves Fingerprint and SnapshotFingerprint once for that row; main's C,E3 authority retained; self-serve moves 1 Task 7 (fix round 1: root callers named);rev3=census-ruling-region-ha-p1a;basis=the agent's reconcile passes, and also root's callers (rootupdates.go, rootinventory_install.go and relocationinstall.go on HEAD): one more field copied from the record, HA: rec.HA, so a row minted from a record stamped HA carries the sticky born-HA mark; the record is the console-written instance record each caller already read; root's own code reads nothing of Route.HA, and Fingerprint does not include it (SnapshotFingerprint does, for a set mark); the same nine sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: the row is minted with the record's Runtime (the console-written instance record, guarded by WriteRecord's runtimeFixed); a rootfs row always gets the nested socket and db path under dataDir and no seed or seed source; the paths are computed from the host, not read from the record;rev3=census-ruling-fresh-box-446;basis=#446: a born-HA record mints the nested paths whatever nested says, as a rootfs row already does; same reads;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 2, rule 6): the route also carries Assigned = rec.FleetBoxAt and Moved = rec.FleetBoxMoved, copied from the record it is handed. Read sites unchanged (13). In the agent; in root's claim landing registration (ClaimRootHTTP.rootLandingRoute, shelved claims code) the canonical route gains these two copied fields, which no root check compares (the comparison at rootinventory.go and ValidateAgentInventory read neither). No new input to root.;rev3=census-ruling-stateless-replicas-2;basis=Projects count, canonical boxes, revision, CreatedAt-derived lifetime and stateless hint from the supplied record. No store read; hint does not authorize a database bypass. registry:Addr@2736,registry:Addrs@2745,registry:DBPath@1709,registry:DBPath@2232,registry:DBPath@2654,registry:Health@2755,registry:Hibernate@2176,registry:Seed@2700,registry:SeedSource@2709,registry:Socket@1671,registry:Socket@2194,registry:Socket@2617,whole:Route@1635,whole:Route@2793 996c873399acd5b3ced960e82b699abd8400f89b09877d0522c310710132a6e9 |
| -@coverage . 9857cb346182ee701b2dff653cee0c4b7ed36b038975d3eeaea75cc85da938b7 |
| -@coverage internal/activator 9a709ae51c683ef136e15a5f7d425cac71c82dbed80d9e893bcdd02fed544639 |
| +@coverage . d70f08d0dbf9d4774987f8ae730dc6135b164cc5c683071abe013de1f0c3a88c |
| +@coverage internal/activator 9bfc31d09d6bbbe9a91fb5282c74015b1acacbbd89452bce9793e9ecbe2bfe57 |
| @coverage internal/appconfig 32d5f27628b319917ed88ac39e0b22e25292f8f16ba5ef4e69a57ea35471bf77 |
| @coverage internal/host 68d15300ba45ee8824cb450e15606035c450f815b7bc0e17f5f8b2f57f75a96d |
| -@coverage internal/provision c4a69a96ab2cb84bb8f0405930fdb07fe4840893aeadac9f5c9906910f505d8f |
| +@coverage internal/provision 2da6f5bc4344c27bbf595b6ff5ecb4637844912e48b8808899171cb101f88999 |
| @coverage internal/registry e1e3f0d8614acc3c5f221a4e9705d5d109fa72e4dae211607f231832ace2a7b0 |
| @coverage internal/release 6c7784eb02f9c2b68045266dabf5a79fb656bcb11a06427787d74ca8f3f96dd6 |
| @coverage internal/replicas 6fbf542a6720e5b969b92f8401c7cc8b01f89a0b8b11141e7e7e99a3de612c73 |