| index 2187ae53f..b7b554e57 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-region-ha-held-build.tsv |
| @@ -1,7 +1,9 @@ |
| # Census overlay region-ha-held-build, written by census-propose (#369). census-ruling-region-ha-held-build, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-region-ha-held-build.md. |
| -# 14 body, 3 sites, 5 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 16 body, 3 sites, 7 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| # 42 new dispositions: 2 reads re-frozen at their disposition with the claim, 40 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| -@legacy 5e951bf7d7064772b99ddb7c29f05b93bce034db99011bf7b3bd2cf7fcf7282e infra/modules/region-group-operator-document/tool-pattern.txt external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2-ops;basis=new: Branch T grammar admitting only region-group-roll.py remote_command forms (status/prepare/permit/revoke/apply/rollback);rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 6: Branch T admits three more exact operator forms the roll tool sends for planned handovers: drain <txn> under a 3600 s timeout, fence-clear <txn> && status, and a 120 s bounded systemctl stop of carlos-edge.service followed by systemctl show MainPID/ActiveState; txn is [A-Za-z0-9_][A-Za-z0-9_-]{0,79}; drain --cancel is not admitted; nothing else changes file:external@0 0be3532c27becb91b8a41abfc14f9845ca9c323aa4036847e186c8670a92dd41 |
| +@legacy 5021dfccb03c494459dd50e5f7942d94cd29d71a80f384e4913d5eb67f27d96c infra/modules/region-group-operator-document/tool-pattern.txt external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2-ops;basis=new: Branch T grammar admitting only region-group-roll.py remote_command forms (status/prepare/permit/revoke/apply/rollback);rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 6 fix 1: Branch T admits exactly the tool forms status, revoke, prepare --sha256 SHA, permit && status, apply and rollback (900 s), plus the planned-handover forms "timeout --signal=TERM --kill-after=30s 3600s ... group-maintenance drain TX", "timeout --signal=TERM --kill-after=30s 300s ... group-maintenance drain --cancel TX && ... status", "... group-maintenance fence-clear TX && ... status" and "timeout --signal=TERM --kill-after=10s 120s /usr/bin/systemctl stop carlos-edge.service; /usr/bin/systemctl show --property=MainPID --property=ActiveState carlos-edge.service", where TX is [A-Za-z0-9_][A-Za-z0-9_-]{0,79}; nothing else file:external@0 b1d7a8b8877ee8c82c971146c634242bd6571eee6c9947a89562b9c368484535 |
| +@legacy c154fb8261758b6bf19eb45348186b5a238fee3036f6202d394ec08992926862 infra/modules/region-host/group_operator.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=New output only (no resource): IAM policy JSON for the attended roll operator. UpdateASG/EnterStandby/ExitStandby on the exact group ARN+tags (CompleteLifecycleAction removed per Paul 2026-11-05: the tool never completes lifecycle actions), describes, StartSession on group-tagged instances with one approved document, own-session Terminate/Resume, OpenDataChannel, s3:GetObject on control/edges/*. Never read or executed by root on a box.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 6 fix 1: the attended operator policy output gains, for planned handovers only: TerminateInstanceInAutoScalingGroup on this group ARN with the deployment and region tag conditions; ec2:DescribeLaunchTemplateVersions in the region-scoped observe statement; s3:ListBucket on the deployment bucket with s3:prefix = control/edges/; s3:ListBucket on the data bucket with s3:prefix like <lock prefix>/ and <lock prefix>/*/lock.json; s3:GetObject on <data bucket>/<lock prefix>/*/lock.json; new variable group_operator_lock_prefix (default instances, validated). Code only; applies nothing file:external@0 cf96d42393abb46668b8a8fcf4ea49fdeddfde240120efe7355bb33ad561e79b |
| +@legacy a2f7651e473800705c12186ceb9f5f53dda994c935c2c5f49183ee180c941594 infra/modules/region-host/tests/group_operator.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=Test-only mock assertions of the exact operator policy set and document precondition. No runtime reads.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 6 fix 1: asserts the exact new statements, that termination is granted once on this group ARN with its tag conditions, that every S3 list carries a prefix condition and reads are limited to edges files and lock.json keys, the custom lock prefix, and two invalid prefixes; session-document assertion selects by Sid file:external@0 1c53f5483f45cc57a08e4b29bc3cd39c2bd91999ccbeb966dce7360295fa7c23 |
| @legacy d7e7ce059e9cbccbaf3c20735a45ba4676131b7aa99dc2bd644cb17e131154ae internal/activator/activator.go Service.finishStop legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with a run's settle checked before replication closes, which keeps the stop pending until the run is proven stopped; read sites unchanged, offsets moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: an HA entry (its replica is an HA one, haEntryRep) now releases through releaseHAClean (a new unit on this card) instead of e.rep.Close; when that answers errHostSliceUnproven the stop is kept pending (keepPendingLocked) with the lease held and renewing, and the sweep finishes it once proven; a non-HA entry is unchanged; the same five sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a forgotten entry's stop is noted for its resident (noteResidentStopLocked: crash or lost lease backs off, any other stop restarts on the next tick) and its ownerDone channel is closed; no read added;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: while the host has a release command's record (a.releaseOps[e.host], running or not proven stopped), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the record's proof; the same five read sites, no read added; only holds a release back;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.20: while a rootfs worker may run or is a stray (rootfsWorkersLiveLocked, in-memory, read under a.mu), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the workers are proven stopped; the same five read sites, no read added; only holds a release back;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1 (Astra P1): beside the worker check, under the same lock, a stop with a lease stop of its commands outstanding (e.leaseStops) is kept pending, the replica and lease held, and the sweep finishes it once they have returned; the entry is never released while a kill captured for it may still reach its unit; the same five read sites, no read added Task 9 (PF-3): the count is pendingLeaseStopsLocked(e), the sum of e.leaseStops over both one-shot roles (now a map per role, cmd and tty), so a session's lease stop of the tty unit keeps the stop pending, the replica and lease held, as a run's does; the same five read sites, no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Retain command, worker, release and cgroup proofs. For an actual stateless generation no replica needs closing; close local lifecycle ownership only once those proofs finish.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) under a.mu just before the entry is deleted; it only calls the legs' context cancel functions. No read added, none removed.;rev3=census-ruling-region-ha-g2-fixes;basis=Latch HA loss if release leaves an obligation; stopping proofs still precede entry removal; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5 fix 1: records the finished stop's release outcome (marker written, clean) in the drain transaction's in-memory release log while a drain records (noteDrainReleaseLocked); memory only; no read added registry:Socket@4344,registry:Socket@4449,whole:Route@4294,whole:Route@4346,whole:Route@4451 f903a725db0e07bc16c921ce6d0c99600720a94697a42bd662ceb948f6276f8e |
| @legacy cf55ebdbd229c4a4ed2533fa4c184f700dbfc35d1ecc70b28b2bc80e67e8e275 internal/activator/activator.go Service.serve legacy accepted-legacy accepted-legacy;rev3=census-ruling-hotfix281;basis=Startup repeats the existing Kind and Hibernate checks; error logging moved to serveWakeError. A request held through startup re-reads its own route's Socket and Addr and can only refuse (wake-timeout 503) when recovery moved them; agent-side, deny-only, no root decision.;rev3=census-ruling-edge-request-records;basis=passes the member request r to begin's new req parameter; no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance is the activator's; same deploy-safety for binary rows;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: a verified HA hop this box cannot serve gets the holder diagnostic; two new whole:Route sites pass the route to answerForwarded/noteNoHolder; no new kind of read;rev3=census-ruling-region-ha-g2-fixes;basis=Refuse latched HA lease loss before startup wait or proxy accounting, and schedule bounded recovery; reads supplied route, no new external read here.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 2: after begin succeeds, edge.ReleaseMoveTicket(r) ends the request's in-memory admission ticket; on the sidecar path the same after BeginSidecarRequest; no read added registry:Addr@1131,registry:Addr@1145,registry:Host@1056,registry:Host@1256,registry:Socket@1102,registry:Socket@1118,whole:Route@1081,whole:Route@1190,whole:Route@1324,whole:Route@198,whole:Route@261,whole:Route@2873,whole:Route@2974,whole:Route@298,whole:Route@3788,whole:Route@3851,whole:Route@526 aa0786cb4f635aa33ea7c0ef884d82d9d43c0de1a47bc2c441e5c83fa93578be |
| @legacy 4ce180eb76cb536e1b2ad70762386957efbe1be9c002f0e4a1537f87d6f16944 internal/activator/haduties.go Service.dutyInput legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read HA classification/lifetime from the existing backend and route host, HA, replica, tunnel, import gate and status; read advisory DutyStore state and cached home projection outside a.mu. No new filesystem or bucket path. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged.;rev3=census-ruling-region-ha-g2-fixes;basis=Apply LocalEligible before legacy/HA duty shortcuts: HA and Provisioned routes require pool membership, operator-placed non-HA routes keep their prior behavior; no new direct I/O.;rev3=census-ruling-region-ha-held-build;basis=LocalDenied also when IsDraining() (this box in the planned-handover drain state); only narrows duty and adoption starts; no read added registry:Basis@1349,registry:HA@326,registry:HolderEpoch@1584,registry:HolderIID@1426,registry:HolderIID@1628,registry:HolderRef@1362,registry:HolderRef@1412,registry:HolderRef@1614,registry:Host@122,registry:Host@1280,registry:Host@592,registry:Host@658,registry:ImportGate@891,registry:NotBefore@1654,registry:NotBefore@1710,registry:Replica@858,registry:Status@915,registry:Status@934,registry:Tunnel@872,registry:ViewKey@1457,whole:DutyState@1327,whole:DutyState@1738,whole:Route@1086,whole:Route@152,whole:Route@231,whole:Route@298,whole:Route@394,whole:Route@686 bd5eb406a50f93e2fe8d5db0044d77a727b0d614dc5186237dd2ac30f192c8c1 |
| @@ -57,7 +59,9 @@ |
| @legacy 6952458a99cf962dcd6f9bf0ed2e6c1918857e5773c16270c0480f4af0779e9c internal/activator/activator.go Service.WakeWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-remote-instance-metrics;basis=the entries-map insertion goes through putEntryLocked (which also notes the route's tenant in memory for the metrics sampler); no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Read serving lease health through servingError: stateless generations use local lifecycle/process supervision, while stateful generations keep the existing lease checks. No new I/O.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: check local tenant admission and start permission before lease/restore, preserving already-awake reuse during drain and existing serialization. Whole Route passes to the local predicate; no new filesystem or store read.;rev3=census-ruling-region-ha-g2-fixes;basis=Check latched HA loss and schedule bounded recovery before worker wake; route passed to the separately claimed loss helpers.;rev3=census-ruling-region-ha-held-build;basis=Task 4 fix round 1: now a one-line wrapper, wakeWorker(context.Background(), rt); its body moved unchanged to wakeWorker; behaviour and reads unchanged whole:Route@99 74e6c176e875798b68f7d28a398c40421c726305788188873f2ea9382a9d315c |
| @legacy d827d4e494c6712ea2b572cdf71a99180342e8d4ffb35027656353e9a86319a9 internal/edge/forwardha.go Edge.frontForwardHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b2;basis=new (region HA P1b-2): the agent's edge decides at the front door whether to forward a visitor request: reads the route's HA flag and host from the box's own registry row and asks the activator; forwards only to a box in view over the existing signed hop; root never calls it;rev3=census-ruling-region-ha-dead-holder-backoff;basis=ForwardTarget returns a ForwardDecision (Ref, Refuse, Gen); a Refuse is answered at the front door with the existing unreachable answer (503, Retry-After: 10, same body, via answerHolderUnreachable), with no forward, dial, note or per-request step. A forward passes the decision to forwardHA and NoteForward carries Ref and Gen back. The round-1 connection callback (NoteConnected) is gone: the dial bound now lives in forwardTransport's forwardDialGate, which coalesces TCP dials per holder address in memory. The same 5 read sites; no new read; root never calls it.;rev3=census-ruling-region-ha-p1b3a;basis=Pass the existing route to a lazy cached wakeSnapshot closure, handle explicit local denial before all accounting, and refuse a disappeared Placement choice rather than falling through locally; whole Route read only, no new store or filesystem operation and no root authority.;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): for a marked request to a hibernating HA route it uses the new HAForwarderFromMemory (ForwardTargetFromMemory) instead of ForwardTarget, so the hold path makes no holder-lock read; a non-stream marked request is left to this box's classification, and a holder not known from memory is answered with the one-retry event. The unmarked path is unchanged. Reads only the request mark and the already-loaded route and home map; no read added.;rev3=census-ruling-region-ha-followups;basis=Report detached TCP/TLS failure after a canceled Placement or Recovery request through the existing NoteForward classifier, preserving Ref, Gen and PeerGen. Reuse the route Host to correlate the late result; no new storage read or routing authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Share forwarding observation helper and refuse disappearance of a selected peer when local pool-ineligible; existing route input, two Host reads moved to helper.;rev3=census-ruling-region-ha-held-build;basis=held-requests Task 3: calls forwardHAFollow instead of forwardHAAndNote, and when a handover answer named this box returns false so the request takes the existing local path (only when the route is locally pool-eligible); the same route reads; no read added registry:HA@225,registry:Hibernate@584,whole:Route@1244,whole:Route@1368,whole:Route@1602,whole:Route@1651,whole:Route@1856,whole:Route@228,whole:Route@515,whole:Route@587 43b47f419e9d094f67e9fb1737b9988efb7d732f09a52884197726a31cc68b85 |
| @legacy 2b78e0c2c661c5d38042a6921119146c298eb2883ee70f4541f815b8b0f66d23 internal/edge/haingress.go Edge.routeHAIngress legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Resolve exact/alias/catchall authority and bind projected primary identity for HA forwarding. A zero projection permits an existing non-activator-owned upstream to continue its ordinary path; managed rows still refuse. New in-memory Host and route reads only.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 2: just before frontForwardHAIngress, the handover decision moveGate runs on the already-resolved primary route rt (whole Route passed in memory); it can only hold the request, answer it with an existing refusal or forward it to a confirmed holder over the existing signed hop; no store or filesystem read added registry:Account@1361,registry:Account@2752,registry:Account@3006,registry:Account@3026,registry:Account@519,registry:App@1378,registry:App@2775,registry:App@3040,registry:App@3056,registry:App@543,registry:ClaimStamp@638,registry:HA@1099,registry:HA@1921,registry:HA@1998,registry:HA@2308,registry:HA@3176,registry:Host@1190,registry:Host@1248,registry:Host@1874,registry:Host@1980,registry:Host@2290,registry:Host@2495,registry:Host@251,registry:Host@2728,registry:Host@2978,registry:Host@2995,registry:Host@374,registry:Incarnation@1399,registry:Incarnation@2802,registry:Incarnation@3094,registry:Incarnation@3118,registry:Incarnation@570,registry:Pool@3066,registry:Pool@3083,registry:ServingSeq@1427,registry:ServingSeq@2836,registry:ServingSeq@3136,registry:ServingSeq@3159,registry:ServingSeq@604,whole:Route@1732,whole:Route@1807,whole:Route@1924,whole:Route@1959,whole:Route@2074,whole:Route@2157,whole:Route@2263,whole:Route@254,whole:Route@2938,whole:Route@2968,whole:Route@2981,whole:Route@3009,whole:Route@3043,whole:Route@3069,whole:Route@3097,whole:Route@3139,whole:Route@3179,whole:Route@3422,whole:Route@3544,whole:Route@377,whole:Route@522,whole:Route@546,whole:Route@573,whole:Route@607,whole:Route@641,whole:Route@892 5e0dfdd7bf53cadf9d9a1de94475d3cc4d6fb316d72c8b45e0b19e04e7e29153 |
| -infra/modules/region-group-operator-document/tool-pattern.txt external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2-ops;basis=new: Branch T grammar admitting only region-group-roll.py remote_command forms (status/prepare/permit/revoke/apply/rollback);rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 6: Branch T admits three more exact operator forms the roll tool sends for planned handovers: drain <txn> under a 3600 s timeout, fence-clear <txn> && status, and a 120 s bounded systemctl stop of carlos-edge.service followed by systemctl show MainPID/ActiveState; txn is [A-Za-z0-9_][A-Za-z0-9_-]{0,79}; drain --cancel is not admitted; nothing else changes file:external@0 0be3532c27becb91b8a41abfc14f9845ca9c323aa4036847e186c8670a92dd41 |
| +infra/modules/region-group-operator-document/tool-pattern.txt external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2-ops;basis=new: Branch T grammar admitting only region-group-roll.py remote_command forms (status/prepare/permit/revoke/apply/rollback);rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 6 fix 1: Branch T admits exactly the tool forms status, revoke, prepare --sha256 SHA, permit && status, apply and rollback (900 s), plus the planned-handover forms "timeout --signal=TERM --kill-after=30s 3600s ... group-maintenance drain TX", "timeout --signal=TERM --kill-after=30s 300s ... group-maintenance drain --cancel TX && ... status", "... group-maintenance fence-clear TX && ... status" and "timeout --signal=TERM --kill-after=10s 120s /usr/bin/systemctl stop carlos-edge.service; /usr/bin/systemctl show --property=MainPID --property=ActiveState carlos-edge.service", where TX is [A-Za-z0-9_][A-Za-z0-9_-]{0,79}; nothing else file:external@0 b1d7a8b8877ee8c82c971146c634242bd6571eee6c9947a89562b9c368484535 |
| +infra/modules/region-host/group_operator.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=New output only (no resource): IAM policy JSON for the attended roll operator. UpdateASG/EnterStandby/ExitStandby on the exact group ARN+tags (CompleteLifecycleAction removed per Paul 2026-11-05: the tool never completes lifecycle actions), describes, StartSession on group-tagged instances with one approved document, own-session Terminate/Resume, OpenDataChannel, s3:GetObject on control/edges/*. Never read or executed by root on a box.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 6 fix 1: the attended operator policy output gains, for planned handovers only: TerminateInstanceInAutoScalingGroup on this group ARN with the deployment and region tag conditions; ec2:DescribeLaunchTemplateVersions in the region-scoped observe statement; s3:ListBucket on the deployment bucket with s3:prefix = control/edges/; s3:ListBucket on the data bucket with s3:prefix like <lock prefix>/ and <lock prefix>/*/lock.json; s3:GetObject on <data bucket>/<lock prefix>/*/lock.json; new variable group_operator_lock_prefix (default instances, validated). Code only; applies nothing file:external@0 cf96d42393abb46668b8a8fcf4ea49fdeddfde240120efe7355bb33ad561e79b |
| +infra/modules/region-host/tests/group_operator.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3b2;basis=Test-only mock assertions of the exact operator policy set and document precondition. No runtime reads.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 6 fix 1: asserts the exact new statements, that termination is granted once on this group ARN with its tag conditions, that every S3 list carries a prefix condition and reads are limited to edges files and lock.json keys, the custom lock prefix, and two invalid prefixes; session-document assertion selects by Sid file:external@0 1c53f5483f45cc57a08e4b29bc3cd39c2bd91999ccbeb966dce7360295fa7c23 |
| internal/activator/activator.go Service.finishStop legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with a run's settle checked before replication closes, which keeps the stop pending until the run is proven stopped; read sites unchanged, offsets moved;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: an HA entry (its replica is an HA one, haEntryRep) now releases through releaseHAClean (a new unit on this card) instead of e.rep.Close; when that answers errHostSliceUnproven the stop is kept pending (keepPendingLocked) with the lease held and renewing, and the sweep finishes it once proven; a non-HA entry is unchanged; the same five sites, no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a forgotten entry's stop is noted for its resident (noteResidentStopLocked: crash or lost lease backs off, any other stop restarts on the next tick) and its ownerDone channel is closed; no read added;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: while the host has a release command's record (a.releaseOps[e.host], running or not proven stopped), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the record's proof; the same five read sites, no read added; only holds a release back;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W, W1.20: while a rootfs worker may run or is a stray (rootfsWorkersLiveLocked, in-memory, read under a.mu), replication and the lease stay and the stop is kept pending (keepPendingLocked) until the workers are proven stopped; the same five read sites, no read added; only holds a release back;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1 (Astra P1): beside the worker check, under the same lock, a stop with a lease stop of its commands outstanding (e.leaseStops) is kept pending, the replica and lease held, and the sweep finishes it once they have returned; the entry is never released while a kill captured for it may still reach its unit; the same five read sites, no read added Task 9 (PF-3): the count is pendingLeaseStopsLocked(e), the sum of e.leaseStops over both one-shot roles (now a map per role, cmd and tty), so a session's lease stop of the tty unit keeps the stop pending, the replica and lease held, as a run's does; the same five read sites, no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Retain command, worker, release and cgroup proofs. For an actual stateless generation no replica needs closing; close local lifecycle ownership only once those proofs finish.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) under a.mu just before the entry is deleted; it only calls the legs' context cancel functions. No read added, none removed.;rev3=census-ruling-region-ha-g2-fixes;basis=Latch HA loss if release leaves an obligation; stopping proofs still precede entry removal; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 5 fix 1: records the finished stop's release outcome (marker written, clean) in the drain transaction's in-memory release log while a drain records (noteDrainReleaseLocked); memory only; no read added registry:Socket@4344,registry:Socket@4449,whole:Route@4294,whole:Route@4346,whole:Route@4451 f903a725db0e07bc16c921ce6d0c99600720a94697a42bd662ceb948f6276f8e |
| internal/activator/activator.go Service.serve legacy accepted-legacy accepted-legacy;rev3=census-ruling-hotfix281;basis=Startup repeats the existing Kind and Hibernate checks; error logging moved to serveWakeError. A request held through startup re-reads its own route's Socket and Addr and can only refuse (wake-timeout 503) when recovery moved them; agent-side, deny-only, no root decision.;rev3=census-ruling-edge-request-records;basis=passes the member request r to begin's new req parameter; no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test is Route.ActivatorOwned instead of Kind and Hibernate inline, so a resident rootfs instance is the activator's; same deploy-safety for binary rows;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: a verified HA hop this box cannot serve gets the holder diagnostic; two new whole:Route sites pass the route to answerForwarded/noteNoHolder; no new kind of read;rev3=census-ruling-region-ha-g2-fixes;basis=Refuse latched HA lease loss before startup wait or proxy accounting, and schedule bounded recovery; reads supplied route, no new external read here.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 2: after begin succeeds, edge.ReleaseMoveTicket(r) ends the request's in-memory admission ticket; on the sidecar path the same after BeginSidecarRequest; no read added registry:Addr@1131,registry:Addr@1145,registry:Host@1056,registry:Host@1256,registry:Socket@1102,registry:Socket@1118,whole:Route@1081,whole:Route@1190,whole:Route@1324,whole:Route@198,whole:Route@261,whole:Route@2873,whole:Route@2974,whole:Route@298,whole:Route@3788,whole:Route@3851,whole:Route@526 aa0786cb4f635aa33ea7c0ef884d82d9d43c0de1a47bc2c441e5c83fa93578be |
| internal/activator/activator.go type Service authority B,C,D,F,J4 rev3=PROPOSED-seed; existing activator lifecycle and due-wake state plus owned seed exclusion and incarnation-keyed diagnostics; normal refusal and preparation ordering remain authoritative; PROPOSED-plans-2-box-limits adds the idleFor hook field, which only narrows idle windows;rev3=census-ruling-plans-4c-box-throttle;basis=gains the maxRunFor hook field beside idleFor (plans 4c). No read added.;rev3=census-ruling-plans-4d-lapse;basis=gains the disabledFor hook field beside maxRunFor (plans 4d). No read added.;rev3=census-ruling-remote-instance-metrics;basis=gains tenancySeq, hostTenants and hostMixed, in-memory fields for Tenancies; no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more field, markers (markerRetry: an atomic running flag and the last log time) for retryOwedMarkers; no read added; merge of origin/main d7ae1d76: main's fields are kept as main has them (census-ruling-remote-instance-metrics: tenancySeq, hostTenants, hostMixed); this branch's change is the same as above;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: new fields for rootfs admission (rootfsArmed, rootfsSwept), the per-host gate ask and refusal memo, and residency state (lister, backoff, start ceiling, cursor, test seam); no read;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: one new field, releaseOps (host to the in-memory release record, under a.mu); no read;rev3=census-ruling-rootfs-apps-3-workers;basis=rootfs Plan 3 Group W: one new field, leaseNow (a clock seam for a worker start's headroom against the lease deadline, nil is the real clock); no read;rev3=census-ruling-region-ha-p1b2;basis=region HA P1b-2: gains the holder cache and its single-flight state; no read;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (controller ruling after branch review R1, and Paul's R2 ruling): one field, Fleet (activator.FleetWake: the box's fleet state, not on a fleet by default, on a fleet with a known label and a record reader, or on a fleet with an invalid identity), set by the agent before Start and read only by routeCurrentUnderLease. No read in the declaration. Agent, not root.;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 7a fix round 1: one field, drainBudget (time.Duration), which New copies from residentDrainBudget and a rootfs entry's lease watch reads in its place, so a test's change of the package var never races a watch goroutine; declaration only, reads nothing; merge of origin/main 6f1f6ca6: main's one field, Fleet (activator.FleetWake), is kept as main has it (census-ruling-managed-fleets-1b); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b3a;basis=Add bounded placement peer and diagnostic state and the over-capacity callback; no read in this declaration and no new root authority.;rev3=census-ruling-stateless-replicas-1;basis=Add coordinator, existing-record observation callback and per-host preparation locks; no read in the declaration. Task 3a: Add optional canonical storage-selection and durable deploy-ID callbacks; declaration only, no read or authority in these fields.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds the heldLegs map to actEntry (legs by id, under a.mu) and heldWakeHook (atomic pointer to a callback) and heldLegSeq (atomic counter) to Service. State only, in memory; no read of tenant, app or box-agent-writable input.;rev3=census-ruling-wake-storm-cap;basis=the agent as carlos: one field, wakeSlots (chan struct{}, the wake semaphore made by New from Config.WakeSlots, default 4); declaration only, no read.;rev3=census-ruling-region-ha-p1b3b-t;basis=Add the B2 DutyStore interface field and process-local duty view, suppression and invalidation state. No read added. B2 adds the verified-successor identity callback; no read in the declaration. B3b adds a nonblocking departure-suspicion callback, invoked only after an accepted holder-forward failure and after cache locks release; it cannot authorize a take.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: immutable callbacks installed before Start for tenant admission, local start permission, fixed route exemptions and shutdown closure; nil callbacks preserve switch-off behavior; no new reads. Fix R1: add an immutable startup-phase callback for response copy, set before service startup. No new read or execution authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Add in-memory HA loss state and pool withdrawal jobs; no new read.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 1: one new field, drain (drainSources: two atomic func pointers for this box's and peers' drain state); no read added. region HA held-requests Task 2: one new field, moves (moveTable: per-host move state, hold counts and admission tickets in memory, under mu); no read added 75edfe53c51de9280821822962ef618de6ecdbd054ad48d9fab3c398d439a3e5 |
| @@ -116,7 +120,9 @@ internal/edge/forwardha.go Edge.forwardHAAndNote legacy accepted-legacy accepted |
| internal/activator/activator.go Service.WakeWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-remote-instance-metrics;basis=the entries-map insertion goes through putEntryLocked (which also notes the route's tenant in memory for the metrics sampler); no read added;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Read serving lease health through servingError: stateless generations use local lifecycle/process supervision, while stateful generations keep the existing lease checks. No new I/O.;rev3=census-ruling-region-ha-p3a;basis=P3a Task 3: check local tenant admission and start permission before lease/restore, preserving already-awake reuse during drain and existing serialization. Whole Route passes to the local predicate; no new filesystem or store read.;rev3=census-ruling-region-ha-g2-fixes;basis=Check latched HA loss and schedule bounded recovery before worker wake; route passed to the separately claimed loss helpers.;rev3=census-ruling-region-ha-held-build;basis=Task 4 fix round 1: now a one-line wrapper, wakeWorker(context.Background(), rt); its body moved unchanged to wakeWorker; behaviour and reads unchanged whole:Route@99 74e6c176e875798b68f7d28a398c40421c726305788188873f2ea9382a9d315c |
| internal/edge/forwardha.go Edge.frontForwardHA legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b2;basis=new (region HA P1b-2): the agent's edge decides at the front door whether to forward a visitor request: reads the route's HA flag and host from the box's own registry row and asks the activator; forwards only to a box in view over the existing signed hop; root never calls it;rev3=census-ruling-region-ha-dead-holder-backoff;basis=ForwardTarget returns a ForwardDecision (Ref, Refuse, Gen); a Refuse is answered at the front door with the existing unreachable answer (503, Retry-After: 10, same body, via answerHolderUnreachable), with no forward, dial, note or per-request step. A forward passes the decision to forwardHA and NoteForward carries Ref and Gen back. The round-1 connection callback (NoteConnected) is gone: the dial bound now lives in forwardTransport's forwardDialGate, which coalesces TCP dials per holder address in memory. The same 5 read sites; no new read; root never calls it.;rev3=census-ruling-region-ha-p1b3a;basis=Pass the existing route to a lazy cached wakeSnapshot closure, handle explicit local denial before all accounting, and refuse a disappeared Placement choice rather than falling through locally; whole Route read only, no new store or filesystem operation and no root authority.;rev3=census-ruling-edge-held-streams;basis=the edge in the agent (carlos-edge.service, user carlos): for a marked request to a hibernating HA route it uses the new HAForwarderFromMemory (ForwardTargetFromMemory) instead of ForwardTarget, so the hold path makes no holder-lock read; a non-stream marked request is left to this box's classification, and a holder not known from memory is answered with the one-retry event. The unmarked path is unchanged. Reads only the request mark and the already-loaded route and home map; no read added.;rev3=census-ruling-region-ha-followups;basis=Report detached TCP/TLS failure after a canceled Placement or Recovery request through the existing NoteForward classifier, preserving Ref, Gen and PeerGen. Reuse the route Host to correlate the late result; no new storage read or routing authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Share forwarding observation helper and refuse disappearance of a selected peer when local pool-ineligible; existing route input, two Host reads moved to helper.;rev3=census-ruling-region-ha-held-build;basis=held-requests Task 3: calls forwardHAFollow instead of forwardHAAndNote, and when a handover answer named this box returns false so the request takes the existing local path (only when the route is locally pool-eligible); the same route reads; no read added registry:HA@225,registry:Hibernate@584,whole:Route@1244,whole:Route@1368,whole:Route@1602,whole:Route@1651,whole:Route@1856,whole:Route@228,whole:Route@515,whole:Route@587 43b47f419e9d094f67e9fb1737b9988efb7d732f09a52884197726a31cc68b85 |
| internal/edge/haingress.go Edge.routeHAIngress legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g2-fixes;basis=Resolve exact/alias/catchall authority and bind projected primary identity for HA forwarding. A zero projection permits an existing non-activator-owned upstream to continue its ordinary path; managed rows still refuse. New in-memory Host and route reads only.;rev3=census-ruling-region-ha-held-build;basis=region HA held-requests Task 2: just before frontForwardHAIngress, the handover decision moveGate runs on the already-resolved primary route rt (whole Route passed in memory); it can only hold the request, answer it with an existing refusal or forward it to a confirmed holder over the existing signed hop; no store or filesystem read added registry:Account@1361,registry:Account@2752,registry:Account@3006,registry:Account@3026,registry:Account@519,registry:App@1378,registry:App@2775,registry:App@3040,registry:App@3056,registry:App@543,registry:ClaimStamp@638,registry:HA@1099,registry:HA@1921,registry:HA@1998,registry:HA@2308,registry:HA@3176,registry:Host@1190,registry:Host@1248,registry:Host@1874,registry:Host@1980,registry:Host@2290,registry:Host@2495,registry:Host@251,registry:Host@2728,registry:Host@2978,registry:Host@2995,registry:Host@374,registry:Incarnation@1399,registry:Incarnation@2802,registry:Incarnation@3094,registry:Incarnation@3118,registry:Incarnation@570,registry:Pool@3066,registry:Pool@3083,registry:ServingSeq@1427,registry:ServingSeq@2836,registry:ServingSeq@3136,registry:ServingSeq@3159,registry:ServingSeq@604,whole:Route@1732,whole:Route@1807,whole:Route@1924,whole:Route@1959,whole:Route@2074,whole:Route@2157,whole:Route@2263,whole:Route@254,whole:Route@2938,whole:Route@2968,whole:Route@2981,whole:Route@3009,whole:Route@3043,whole:Route@3069,whole:Route@3097,whole:Route@3139,whole:Route@3179,whole:Route@3422,whole:Route@3544,whole:Route@377,whole:Route@522,whole:Route@546,whole:Route@573,whole:Route@607,whole:Route@641,whole:Route@892 5e0dfdd7bf53cadf9d9a1de94475d3cc4d6fb316d72c8b45e0b19e04e7e29153 |
| -@coverage infra/modules/region-group-operator-document d8b264af0b240b7dc88f8a50fd3cdfd68a5fd3f74ea7553416011b2f0e1671b9 |
| +@coverage infra/modules/region-group-operator-document 4e6b842cc6a23bc4f2e6eaca6b110122cb30ccd3edecb1a253810f7cce1bc510 |
| +@coverage infra/modules/region-host 9af5bd50e77a8e3cb4b0c2daa89ca3897ba23c14a45cbcbe508ba55b316234a9 |
| +@coverage infra/modules/region-host/tests d8fdb8790155ad2a047933252716ac59510aa0918ef4176f3a86529c0133c50b |
| @coverage internal/activator d9dbe98d462846747488fb6ded61ed1c1e201b58bd7a9260ef389b1d67d55301 |
| @coverage internal/edge 20ed897b7834583a3230bb3aa2580fadc5d0a6ac5f708e47b1fa553b2eb7ca14 |
| @coverage internal/host c4fdac6d6b53726a4da32fd8996df6377c40c3c16871cce3503f6e6f57569509 |