region HA: floor counts every edges file by ha_handover
Every box on this build publishes ha_handover: 1 in its edges file, set by the pass and independent of CARLOS_REGION_HA: the binary understands the held-requests headers and the drain acknowledgement. ha_take is unchanged and still alone makes a box a take candidate. The group roll verb's floor (Engine.Floor) now reads ha_handover, not ha_take, and counts every edges file in the control/edges/ listing whatever its age. The 15-minute age test hid quiet live boxes (non-HA fixed boxes publish hours apart), and requiring ha_take failed every non-HA fixed box. A file without the integer 1 is a DR-4 reason naming the box; an unreadable file still refuses. DrainAckPeers is unchanged. Spec §24 (Scripts row, E13, new E14), §25.9 and §25.11 updated; the superseded script gets one header line. Parity ledger: the stale-box test no longer applies (ruling). Census overlay held-floor-capability and the group-name producer inventory re-pinned for edgesFileWriteClaims.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/notes/census-proposal-held-floor-capability.md+19 −0docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md+6 −4internal/edge/hatake_test.go+7 −4internal/edge/testdata/edges-forward-hub.json+1 −1internal/grouproll/depart_test.go+17 −11internal/grouproll/fake_test.go+24 −10internal/grouproll/floor.go+19 −22internal/grouproll/floor_test.go+85 −46internal/grouproll/testdata/parity-ledger.tsv+4 −4internal/grouproll/text.go+1 −1internal/host/edgesfile.go+9 −0internal/host/edgesfile_test.go+12 −6internal/host/egress_nopolicy_linux_test.go+2 −2internal/host/group_names_test.go+1 −1internal/host/testdata/edges-p2b-golden.json+1 −1internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-held-floor-capability.tsv+5 −0scripts/region-group-roll.py+1 −0
CI cancelled — superseded by a newer push — run details
Intent
<paseo-system version="1" kind="agent-message" source-agent-id="9ab9ba86-e287-4c0a-a8ae-ecf3b4bea8a9" message-id="6696fa1d-3d42-4e7d-ba39-d4c07a53164f" source-agent-title="Group roll tool as a carlos verb in Go (design)"> From the group roll verb session (via 8a3d302): on dev after the v0.34.39 stable promote, dennis-stenciling's edges file (eu-west-2, generation 10:58:27Z, checked 11:11Z) publishes NO ha_take. In slot 1 on v0.34.38 (08:08Z) the floor held, so every live box had ha_take: 1 then. Effect: the §25.9 floor is not met deployment-wide, the Go verb falls back to DR-4, and today's W2 roll ran without a drain (8 x 503 + 3 x 502 on the IE fixture apps at 11:09:32-40Z). Please check whether dennis lost CARLOS_REGION_HA in the v0.34.39 roll, or whether v0.34.39 stopped publishing ha_take on a fixed box that views another region. Evidence: s3://carlos-dev-640012953448/control/edges/dennis-stenciling.json; ~/.cache/group-roll-go/w/s2/. </paseo-system>
<task-notification> <task-id>b9rdabjzq</task-id> <tool-use-id>toolu_014UFzk8C5iXvp55enq8iqK5</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a99cbe46-f458-4f72-8b8a-294aae9cdf21/tasks/b9rdabjzq.output</output-file> <status>completed</status> <summary>Background command "Answer the group-roll session" completed (exit code 0)</summary> </task-notification>
diff --git a/docs/superpowers/notes/census-proposal-held-floor-capability.md b/docs/superpowers/notes/census-proposal-held-floor-capability.md| new file mode 100644 |
| index 000000000..198fe35eb |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-held-floor-capability.md |
| @@ -0,0 +1,19 @@ |
| +# Census approval: held-floor-capability |
| + |
| +Ruling `census-ruling-held-floor-capability`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26). |
| + |
| +| unit | change | read sites | what changed | |
| +|---|---|---|---| |
| +| `internal/host/edgesfile.go` `edgesFileWriteClaims` | body | unchanged (70) | held floor capability (region HA §25.9, agent manager 8a3d302, 2026-11-10): sets the constant ha_handover=1 on the box's own edges file on every pass, whatever its capabilities (this build understands the held-requests headers and the drain acknowledgement); the group roll floor reads it. Not from config or any read; ha_take unchanged; a report other tools read, not a root decision; no read added; F,J1 authority retained. One-off cost: the first pass after the upgrade writes once per box. | |
| + |
| +Envelopes re-pinned: `internal/grouproll`, `internal/host`. |
| + |
| +Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner. |
| + |
| +Recorded dispositions, which each change must still satisfy: |
| + |
| +- `internal/host/edgesfile.go` `edgesFileWriteClaims`: authority, task F,J1. Basis: rev3=census-ruling-self-serve-moves-1;basis=root-route;kept=F;scope=protected-decision-only; the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): region-ha-2a's body, which with the box's lifetimes switch on also publishes each served row's lifetime pair (registry:Incarnation and registry:ServingSeq, two new sites on the rows it already lists) and an alias's or served catch-all's primary's pair, and names that primary as target_host whatever the switch; a report the edge orders unstamped entries by, not a decision; no record, /data, release or claim read added; F,J1 authority retained; self-serve moves 1 Task 8;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 8: takes a localAddrs reader (instancectl.LocalAddresses in production, which reads /proc/net/fib_trie and /proc/net/if_inet6 in the agent) and publishes its non-loopback entries as the edges file's addrs before the write gate (boxAddrs, no read of its own), so an address change writes once. The same 44 sites, offsets moved; no record, /data, release or claim read added; a report the console's egress grant check reads, not a root decision; F,J1 authority retained.;rev3=census-ruling-edge-asset-cache-3;basis=starts with assets = assets.active(), so a policy whose box has not opened its asset store publishes no assets blocks and reads no manifests, and copies the decision's Primary (the route host the block was decided for, drift D4) into the published assets block; read sites unchanged (44); no read added. Merged onto main's #328 body, which takes the localAddrs reader: the assets.active() line sits after that signature and the loop passes pub and instancectl.LocalAddresses;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: the claims argument (*edgesClaims) becomes addrs (AddressSource) and the applyEdgesClaims(ctx, claims, routes, hosts) call is deleted with edgesclaims.go, which is the one whole:Route site removed: no host claim is read and every served row publishes as with region HA off; the box-address publication is the same code reading addrs.BoxAddresses() instead of claims.addrs; a report the edge reads, not a root decision; no read added; merge of origin/main d7ae1d76: main's edge asset cache plan 3 body is kept (census-ruling-edge-asset-cache-3): the first line is assets = assets.active(), so a policy whose store has not opened publishes no assets blocks and reads no manifests, and edgesFileLoop passes pub (assets.active() for that tick) in the assets argument; main's claims *edgesClaims argument is this branch's addrs AddressSource, and no edgesClaims, applyEdgesClaims or hostclaim reference remains;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: skips publishing a platform alias edge.PlatformAliasFold refuses (and so anything attached to it); reads the same route listing;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 and its fix rounds: publishes by FleetArmVerdict (via fleetRefusedFor): withheld rows left out; a forward host's path rows left out of its owner; no assets for forward rows; the alias loop replays Reload's alias fold from the served rows so a chained alias carries its root primary's owner; certRefused and parentRefused leave out a refused claim's wildcard parent (+registry:Alias x5, +registry:Host x4, +whole:Route, +whole:RouteAlias x2, +whole:RoutePath x7, +whole:WildcardDomain). Rows already read in the pass; keeps authority F,J1; publishes less, never more.;rev3=census-ruling-probe-burst-limit;basis=sets the constant BurstNotices=true on the box's own edges file (this build's edge answers probe-burst notices, so peers may send them); not from config or any read; the same 65 sites; a report other edges read, not a root decision; F,J1 authority retained; no new root read or write kind;rev3=census-ruling-region-ha-p3a;basis=Publish one injected role snapshot with box_role/admitted/drained; retain legacy route and alias rows during booting, cutting namespace withdrawal under the 2026-11-04 ruling; acknowledge the exact published tuple only after PUT; existing registry reads unchanged.;rev3=census-ruling-region-ha-p2b;basis=region HA P2b-1 T0 (Q1 ruling): before building the comparison copy and the body, a nil NamedPools on the identity becomes []string{} so the additive named_pools field is always an explicit array; the list itself is computed once at arm by edgesFileEligibility from the same provisionTickConfig(os.Getenv) parse as serves_shared_pool (CARLOS_POOLS through provision.ParseBoxPools, filtered to nonempty provision.ValidPool names, sorted, unique). A report the console reads for create admission, not a root decision; no record, /data, release or claim read added; read sites unchanged (65); F,J1 authority retained. One-off cost: the first pass after the upgrade writes once per box (seeded gate null vs []).;rev3=census-ruling-region-ha-p3b;basis=Require cached GroupReadersReady before first group publication and append additive names-2 capability even for supplied identities. Agent writes the same edges object/index with existing registry reads; known readers come from root boot configuration, snapshot from existing fold, no added GET/LIST or root authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Omit non-forward, non-platform-alias rows outside local served pools from home publication; added Host/Pool field reads and local configuration use, existing registry/store operations retained.;rev3=census-ruling-edge-page-cache-1;basis=prunes the manifest cache through the new atomic pointer (assets.manifests.Load().prune(...), nil-safe); nothing else changes; read sites unchanged (67); no read added;rev3=census-ruling-region-ha-held-build;basis=writes also when DrainPublishRequired, and reports the written drain state, its ha_drain mark (transaction and publication id) and generation to DrainSource (in-memory); the file gains ha_drained and ha_drain beside the existing draining; no read added. held-requests Task 4: sets the constant ha_take=1 on the box's own file when its in-memory capabilities include region-ha-1 (this build's edge answers take requests); not from config or any read; a report other edges read, not a root decision; no read added;rev3=census-ruling-warm-set-published-724;basis=#724: the agent as carlos: reads PLATFORM_APPS_DOMAIN from the environment once per pass (the variable domainsLoop already reads) and sets an additive dns_pointing mark on each published custom name through dnsPointingMark: true on a published alias (registry:Alias, already published only when its dns_status is pointing), and on a route with a hostname outside the apps domain whether its registry:DNSStatus is pointing (registry:Host, registry:DNSStatus on rows the pass already lists). No mark under the apps domain, on a wildcard row, or with no apps domain set. A report the issuer cert warm reads to leave a not-yet-pointing custom name out of its set, not a root decision; it publishes the same names as before. No record, /data, release or claim read added; no new registry query; F,J1 authority retained. One-off cost: the first pass after the upgrade writes once on a box homing a custom name. |
| + |
| +Seal: `837f27a6b7b6ed272f8c68aca07650fa32cf3ec92ce28bf9d812a4282eeb0b58` → `837f27a6b7b6ed272f8c68aca07650fa32cf3ec92ce28bf9d812a4282eeb0b58`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-held-floor-capability.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md b/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md| index 6e5f7f5ff..e5192feb3 100644 |
| --- a/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md |
| +++ b/docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md |
| @@ -1000,11 +1000,12 @@ the same rule for every box. |
| | C16 | Console and CLI region names | Blind: any member can name its AWS region. | |
| | C17 | Asset status home election | Blind, with the same member routing rules as E2. | |
| | C18 | Domain attach conflict check | Blind: live member routes reserve names, as H2. | |
| -| Scripts | Group roll and boot witness | Aware operator tools: inspect members by reference and check that a completed witness left no member files. The roll tool's §25.9 floor check reads `ha_take` on every live box of the region's view, fixed forwarders included, and refuses a drain unless each says the number 1. A file older than 15 minutes (60 s skew allowed) is skipped: a dead box sends nothing, so it needs no take capability. | |
| +| Scripts | Group roll and boot witness | Aware operator tools: inspect members by reference and check that a completed witness left no member files. The roll tool's §25.9 floor check (E14) reads `ha_handover` on every edges file in the deployment's listing, fixed forwarders included, whatever the file's age, and refuses a drain unless each says the number 1. There is no age test: a box that is not HA publishes only on change, hours apart, so an age test skipped quiet live boxes. A dead box's leftover file keeps the region on DR-4, naming the box, until departure or the operator removes it. The superseded script still has the old rule (`ha_take`, files under 15 minutes old) and is not used. | |
| | E10 | Silence rule (`Edge.PeerDraining`, read by the activator's `NoteForward`; §25.5) | Blind: a box whose file says `draining` or `ha_drained` is not made silent or suspect for a held answer. Dial failures still make any box suspect. A terminated member that was draining keeps that file until departure, so only its silence is ignored. | |
| | E11 | Holder-cache drop (`notePeerDrained`, §25.4 step 4) | Blind: a file that says `ha_drained` drops this box's holder-cache entries naming that box, once per publication (its `ha_drain` id, else its generation), before the drained acknowledgement. From then until a later publication of that box no longer says `ha_drained`, neither cache installs or follows the box as a holder: a lock read that was in flight across the drop, and a delayed holder answer naming it, are not used (build ruling, 2026-11-09). A stale drained file drops nothing new. A box that is only `draining` stays a holder. | |
| | E12 | Drain acknowledgement receiver (`/.carlos/ha-drain`, `foldedDrain`, §25.4 step 1) | Blind: it reads the asker's own file by its exact key and answers whether its fold shows `draining` or `ha_drained` under the asked `ha_drain` transaction and id. A file that no longer matches, a stale one included, is answered as not seen. | |
| -| E13 | Take capability (`takeCapable`, `Edge.PeerTakes`; §25.7) | Blind: a box is asked to take only when its file says `ha_take` as the number 1. Absent, other numbers, strings and booleans mean no. A stale member file can still name a successor; the take then fails its dial, and the drain tries the next candidate or fails. | |
| +| E13 | Take capability (`takeCapable`, `Edge.PeerTakes`; §25.7) | Blind: a box is asked to take only when its file says `ha_take` as the number 1. Absent, other numbers, strings and booleans mean no. A stale member file can still name a successor; the take then fails its dial, and the drain tries the next candidate or fails. `ha_handover` is not a take capability: a box that is not HA says `ha_handover: 1` and no `ha_take`, and is never asked to take. | |
| +| E14 | Held-requests floor (`ha_handover`, read by the group roll verb's `Engine.Floor`, `internal/grouproll/floor.go`; §25.9) | Blind: every edges file in the deployment's listing counts, member or fixed box, whatever its age. Each must say `ha_handover` as the number 1. Absent, other numbers, `1.0`, strings and booleans are a DR-4 reason naming the box; an unreadable file refuses the transaction. A terminated member's unchanged file counts until departure removes it, and a terminated fixed box's until the operator does (runbook, "A fixed box has been terminated"). Until then the region stays on DR-4, which is safe. | |
| The drain state reuses the existing box-level `draining` field, so the |
| placement readers already listed (E5, C1, C6, C10, H5, and db-read |
| @@ -1196,7 +1197,8 @@ Both control paths, `/.carlos/ha-take` and `/.carlos/ha-drain`, are reserved on |
| ### 25.9 The floor |
| A drain is only safe when every box that may send A a request understands the new headers, and successors understand a take. So: |
| -- `drain` refuses unless every live box of the deployment that views the region publishes `ha_take: 1`. The same release adds every behaviour in this section. Fixed forwarders such as adi count. |
| +- `drain` refuses unless every box of the deployment publishes `ha_handover: 1`. Every box on a release with this section writes it, HA or not, with no setting: it says the binary understands the held-requests headers (`X-Carlos-Handover`, the replay mark) and the drain acknowledgement. Fixed forwarders such as adi count. A take still needs `ha_take: 1` and a box serving the pool (E13); `ha_handover` never makes a box a take candidate. |
| +- The floor counts every edges file present in the deployment's `control/edges/` listing, whatever its age (E14). The capability belongs to the running binary, and every start republishes the file, so a present file says what that box last ran. An age test would hide quiet live boxes: a box that is not HA publishes only on change, often hours apart, and could forward to the member on an old binary. The risk left is a dead box's leftover file. Departure removes a member's; the operator removes a fixed box's (runbook, "A fixed box has been terminated"). Until then the floor uses DR-4 and names the box, so it fails safe. |
| - `replace` also checks that the release the pinned launch template boots (`group_config.release`, `infra/modules/region-host/group.tf:50`) is at or above the floor. After the launch, it checks that the replacement publishes `ha_take: 1`. |
| - **First install.** Rolling a group onto the first release with §25 cannot drain. That roll uses today's DR-4 rule, replacing only lock-free members, and the tool says which rule it applied. |
| - A rollback below the floor brings DR-4 back. The tool checks the floor on every transaction. |
| @@ -1267,7 +1269,7 @@ W1 to W4 passing on a release at the floor is what retires the DR-4 rule. |
| - **Shape:** |
| - the nested layout; |
| - the region in group mode (`infra/modules/region-host`), with its NLB, launch hook, terminations queue and rule; |
| - - `CARLOS_REGION_HA` and `CARLOS_GROUP_ADMISSION` on the members, and `CARLOS_REGION_HA=1` on every fixed box that forwards into the region: a box without it publishes no `ha_take`, and the §25.9 floor keeps the region on DR-4; |
| + - `CARLOS_REGION_HA` and `CARLOS_GROUP_ADMISSION` on the members. Fixed boxes need no `CARLOS_REGION_HA` for the §25.9 floor, only a release at the floor: every box on such a release publishes `ha_handover: 1`. A fixed box whose edges file is left from an older release, or from a terminated box, keeps the region on DR-4 until it is updated or its file is removed; |
| - chrony, and SSM on the members for the roll tool. |
| - **Pool:** a named HA pool in `CONSOLE_HA_CAPACITY_CONFIG` (`ha_pools`), and `CONSOLE_HA_REGIONS` on the console (§23). |
| - **Which instances benefit:** only born-HA instances in that pool (N-HA7). Existing instances need the operator migration slice, which is not built. Until it is, they resize the old way. |
diff --git a/internal/edge/hatake_test.go b/internal/edge/hatake_test.go| index 3171b52fd..6fc2645df 100644 |
| --- a/internal/edge/hatake_test.go |
| +++ b/internal/edge/hatake_test.go |
| @@ -209,15 +209,18 @@ func TestTakeAnswersWithoutAHolder(t *testing.T) { |
| } |
| // A peer whose file does not say ha_take: 1 is never sent a take: on an |
| -// older box the path would reach a tenant's app. |
| +// older box the path would reach a tenant's app. ha_handover: 1 alone (a |
| +// box that understands held requests but is not HA, §25.9) is not a take |
| +// capability either. |
| func TestTakeOnlyToAPeerThatSaysSo(t *testing.T) { |
| - for name, v := range map[string]any{"absent": nil, "0": 0, "2": 2, "a string": "1", "true": true} { |
| + for name, fields := range map[string]map[string]any{"absent": nil, "0": {"ha_take": 0}, "2": {"ha_take": 2}, |
| + "a string": {"ha_take": "1"}, "true": {"ha_take": true}, "ha_handover alone": {"ha_handover": 1}} { |
| t.Run(name, func(t *testing.T) { |
| s := newTakeScene(t) |
| - if v == nil { |
| + if fields == nil { |
| delete(s.extra, "betty") |
| } else { |
| - s.extra["betty"] = map[string]any{"ha_take": v} |
| + s.extra["betty"] = fields |
| } |
| s.file(t, s.betty, drainGen0.Add(time.Second), notDrain) |
| s.sync(t) |
diff --git a/internal/edge/testdata/edges-forward-hub.json b/internal/edge/testdata/edges-forward-hub.json| index afc899c1b..5d64d4f05 100644 |
| --- a/internal/edge/testdata/edges-forward-hub.json |
| +++ b/internal/edge/testdata/edges-forward-hub.json |
| @@ -1 +1 @@ |
| -{"v":1,"box":"hub","eip":"198.51.100.7","hibernation_configured":false,"serves_shared_pool":false,"accepts_inbound":false,"named_pools":[],"burst_notices":true,"capabilities":["names-2"],"moves_protocol":0,"seeds_protocol":0,"addrs":null,"generation":"2026-10-30T00:00:00Z","hosts":{"*.bah-certonly.example.com":{"role":"wildcard","platform":false,"wildcard":true},"*.bah-certs.example.com":{"role":"wildcard","platform":false,"wildcard":true},"*.bah-regional.example.com":{"role":"wildcard","platform":false,"wildcard":true},"*.bah-wild.example.com":{"role":"home","platform":false,"alias":true,"wildcard":true,"account":"bah","app":"shop","target_host":"shop.bah.example.com"},"bah-certonly.example.com":{"role":"home","platform":false,"alias":true,"account":"bah","app":"shop","target_host":"shop.bah.example.com"},"shop.bah-custom.example.com":{"role":"home","platform":false,"alias":true,"account":"bah","app":"shop","target_host":"shop.bah.example.com"},"shop.bah.example.com":{"role":"home","platform":true,"account":"bah","app":"shop"},"tickets.example.com":{"role":"home","platform":false,"alias":true,"account":"bah","app":"shop","target_host":"shop.bah.example.com"}}} |
| +{"v":1,"box":"hub","eip":"198.51.100.7","hibernation_configured":false,"serves_shared_pool":false,"accepts_inbound":false,"named_pools":[],"burst_notices":true,"ha_handover":1,"capabilities":["names-2"],"moves_protocol":0,"seeds_protocol":0,"addrs":null,"generation":"2026-10-30T00:00:00Z","hosts":{"*.bah-certonly.example.com":{"role":"wildcard","platform":false,"wildcard":true},"*.bah-certs.example.com":{"role":"wildcard","platform":false,"wildcard":true},"*.bah-regional.example.com":{"role":"wildcard","platform":false,"wildcard":true},"*.bah-wild.example.com":{"role":"home","platform":false,"alias":true,"wildcard":true,"account":"bah","app":"shop","target_host":"shop.bah.example.com"},"bah-certonly.example.com":{"role":"home","platform":false,"alias":true,"account":"bah","app":"shop","target_host":"shop.bah.example.com"},"shop.bah-custom.example.com":{"role":"home","platform":false,"alias":true,"account":"bah","app":"shop","target_host":"shop.bah.example.com"},"shop.bah.example.com":{"role":"home","platform":true,"account":"bah","app":"shop"},"tickets.example.com":{"role":"home","platform":false,"alias":true,"account":"bah","app":"shop","target_host":"shop.bah.example.com"}}} |
diff --git a/internal/grouproll/depart_test.go b/internal/grouproll/depart_test.go| index b1dca97ab..4203fcc60 100644 |
| --- a/internal/grouproll/depart_test.go |
| +++ b/internal/grouproll/depart_test.go |
| @@ -42,8 +42,8 @@ func newHeldHarnessAt(t *testing.T, root string, members int, configure func(c * |
| }) |
| f := h.f |
| f.version = "v0.35.0" |
| - f.haTake = map[string]any{} |
| - f.fixed = map[string]fixedEdges{"adi": {haTake: int64(1), age: 5 * time.Second}} |
| + f.haTake, f.haHandover = map[string]any{}, map[string]any{} |
| + f.fixed = map[string]fixedEdges{"adi": {haHandover: int64(1), age: 5 * time.Second}} |
| f.templateRelease = "v0.35.0" |
| f.pointers = map[string][]byte{"stable": floorFixture(t, "router-pointer-golden.json")} |
| f.held = newHeldFake(f) |
| @@ -1069,17 +1069,17 @@ func mustFloorRefused(t *testing.T, h *harness, reason string) { |
| } |
| func TestDepartFloorRefused(t *testing.T) { |
| - t.Run("member without ha_take", func(t *testing.T) { |
| + t.Run("member without ha_handover", func(t *testing.T) { |
| h := newHeldHarness(t, 2, nil) |
| - h.f.haTake[ref(fakePeer)] = nil |
| + h.f.haHandover[ref(fakePeer)] = nil |
| mustFloorRefused(t, h, Text("floor_box", "box", ref(fakePeer))) |
| }) |
| - t.Run("member with other ha_take", func(t *testing.T) { |
| + t.Run("member with other ha_handover", func(t *testing.T) { |
| h := newHeldHarness(t, 2, nil) |
| - h.f.haTake[ref(fakeIID)] = int64(2) |
| + h.f.haHandover[ref(fakeIID)] = int64(2) |
| mustFloorRefused(t, h, Text("floor_box", "box", ref(fakeIID))) |
| }) |
| - t.Run("fixed forwarder without ha_take", func(t *testing.T) { |
| + t.Run("fixed forwarder without ha_handover", func(t *testing.T) { |
| h := newHeldHarness(t, 2, nil) |
| h.f.fixed["adi"] = fixedEdges{age: 5 * time.Second} |
| mustFloorRefused(t, h, Text("floor_box", "box", "adi")) |
| @@ -1152,16 +1152,22 @@ func TestDepartFloorErrorRefusesWithoutDR4(t *testing.T) { |
| } |
| // test_stale_box_is_not_live, through a whole replace. |
| -func TestDepartStaleBoxIsNotLive(t *testing.T) { |
| +// The floor counts every present edges file whatever its age (held floor |
| +// capability ruling, 2026-11-10): an hours-old file that says |
| +// ha_handover: 1 is counted and met, and one without it is DR-4. |
| +func TestDepartCountsOldEdgesFiles(t *testing.T) { |
| h := newHeldHarness(t, 2, nil) |
| - h.f.fixed["old"] = fixedEdges{age: 16 * time.Minute} |
| + h.f.fixed["old"] = fixedEdges{haHandover: int64(1), age: 6 * time.Hour} |
| if err := h.depart("replace", heldTx); err != nil { |
| t.Fatal(err) |
| } |
| floor, _ := h.txJournal(heldTx).Last("floor", nil) |
| - if h.f.states[fakeIID] != "Terminated" || containsValue(floor["live"], "old") { |
| + if h.f.states[fakeIID] != "Terminated" || floor["rule"] != "drain" || !containsValue(floor["live"], "old") { |
| t.Fatalf("state %s floor %v", h.f.states[fakeIID], floor) |
| } |
| + h = newHeldHarness(t, 2, nil) |
| + h.f.fixed["old"] = fixedEdges{haTake: int64(1), age: 6 * time.Hour} |
| + mustFloorRefused(t, h, Text("floor_box", "box", "old")) |
| } |
| // RemoveTests and RemoveMinimumTests. |
| @@ -1383,7 +1389,7 @@ func TestDrainedRollLockAfterPermitReturnsAndRevokes(t *testing.T) { |
| // test_roll_below_floor_uses_dr4_and_says_so. |
| func TestDrainedRollBelowFloorUsesDR4AndSaysSo(t *testing.T) { |
| h := newHeldHarness(t, 2, nil) |
| - h.f.haTake[ref(fakePeer)] = nil |
| + h.f.haHandover[ref(fakePeer)] = nil |
| if err := h.heldRoll(); err != nil { |
| t.Fatal(err) |
| } |
diff --git a/internal/grouproll/fake_test.go b/internal/grouproll/fake_test.go| index 2340b3b2c..da0d79528 100644 |
| --- a/internal/grouproll/fake_test.go |
| +++ b/internal/grouproll/fake_test.go |
| @@ -125,23 +125,25 @@ type fake struct { |
| // The floor's objects (held-floor-sha-map's HeldFake). haTake is |
| // each member box's ha_take by box ref when set (an absent ref |
| // publishes 1, a nil value publishes none); a nil map publishes no |
| - // ha_take at all. fixed are boxes outside the group with an edges |
| - // file; pointers are the router pointers' bytes by channel (an absent |
| - // channel fails the GET). |
| - haTake map[string]any |
| - fixed map[string]fixedEdges |
| - pointers map[string][]byte |
| + // ha_take at all. haHandover is the same for ha_handover, the |
| + // capability the floor counts. fixed are boxes outside the group with |
| + // an edges file; pointers are the router pointers' bytes by channel (an |
| + // absent channel fails the GET). |
| + haTake map[string]any |
| + haHandover map[string]any |
| + fixed map[string]fixedEdges |
| + pointers map[string][]byte |
| // held is the planned handovers' provider and agent (the held |
| // branch's HeldFake); nil keeps the roll fake as it was. |
| held *heldFake |
| } |
| -// fixedEdges is a box outside the group: its ha_take (nil: none) and how |
| -// old its edges file's generation is. |
| +// fixedEdges is a box outside the group: its ha_take and ha_handover |
| +// (nil: none) and how old its edges file's generation is. |
| type fixedEdges struct { |
| - haTake any |
| - age time.Duration |
| + haTake, haHandover any |
| + age time.Duration |
| } |
| // newFake is a group of n members (the script's Fake has two): the |
| @@ -834,6 +836,9 @@ func (s fakeStore) Get(ctx context.Context, key string) ([]byte, string, error) |
| if fx.haTake != nil { |
| e["ha_take"] = fx.haTake |
| } |
| + if fx.haHandover != nil { |
| + e["ha_handover"] = fx.haHandover |
| + } |
| return e, nil |
| }) |
| if err != nil { |
| @@ -887,6 +892,15 @@ func (s fakeStore) Get(ctx context.Context, key string) ([]byte, string, error) |
| e["ha_take"] = take |
| } |
| } |
| + if f.haHandover != nil { |
| + handover, set := f.haHandover[ref] |
| + if !set { |
| + handover = int64(1) |
| + } |
| + if handover != nil { |
| + e["ha_handover"] = handover |
| + } |
| + } |
| if f.held != nil { |
| if pools, ok := f.held.pools[ref]; ok { |
| e["served_pools"] = pools |
diff --git a/internal/grouproll/floor.go b/internal/grouproll/floor.go| index 8d1ee85b8..379d860d0 100644 |
| --- a/internal/grouproll/floor.go |
| +++ b/internal/grouproll/floor.go |
| @@ -12,13 +12,6 @@ import ( |
| "github.com/carlosframework/platform/internal/release" |
| ) |
| -// DrainAckPeers' liveness for an edges file (script :258): a generation |
| -// at most 15 minutes old and at most 60 s ahead. |
| -const ( |
| - edgesMaxAge = 15 * time.Minute |
| - edgesSkew = 60 * time.Second |
| -) |
| - |
| // The release mapping's defaults (script release_for_sha). |
| var ( |
| defaultReleaseChannels = []string{"stable"} |
| @@ -27,10 +20,21 @@ var ( |
| // Floor is the script's Operator.floor (held-floor-sha-map; region HA |
| // spec §25.9, group roll verb spec §9): which rule a departure or a roll |
| -// takes. "drain" when every live box publishes ha_take: 1 and the release |
| -// the transaction leaves running is at or above ha_floor; "dr4" when a |
| -// definite finding says otherwise. kind is "replace", "remove" or "roll"; |
| -// version is the release the member prepared (roll only). |
| +// takes. "drain" when every box with an edges file publishes |
| +// ha_handover: 1 and the release the transaction leaves running is at or |
| +// above ha_floor; "dr4" when a definite finding says otherwise. kind is |
| +// "replace", "remove" or "roll"; version is the release the member |
| +// prepared (roll only). |
| +// |
| +// The floor counts every edges file in the deployment's control/edges/ |
| +// listing, whatever its age (§25.9; held floor capability ruling, |
| +// 2026-11-10). ha_handover is a property of the binary, and every start |
| +// republishes the file, so a present file says what its box last ran. An |
| +// age test hid quiet live boxes: a box that is not HA publishes only on |
| +// change, hours apart. A dead box's leftover file fails safe (DR-4, named) |
| +// until departure or the operator removes it. ha_take is not read here: it |
| +// says a box answers takes (region HA), which only take candidates need. |
| +// The journaled live list is the boxes counted. |
| // |
| // A floor that cannot be read (an unreadable edges file or listing, a |
| // template release that cannot be compared, a SHA-256 that cannot be |
| @@ -70,18 +74,11 @@ func (e *Engine) Floor(ctx context.Context, kind, version string) (rule string, |
| continue |
| } |
| edges, _ := v.(map[string]any) |
| - generation, err := instant(edges["generation"]) |
| - if err != nil { |
| - continue |
| - } |
| - // DrainAckPeers' liveness: a file outside it is not a live box. |
| - if age := e.clock().Sub(generation); age < -edgesSkew || age > edgesMaxAge { |
| - continue |
| - } |
| + // Every present file counts, with no age test. |
| live = append(live, m[1]) |
| - // type(take) is int and take == 1: the decoder keeps 1.0 and 1e0 |
| - // as json.Number and true as bool, so only the integer 1 counts. |
| - if take, ok := edges["ha_take"].(int64); !ok || take != 1 { |
| + // Only the integer 1 counts: the decoder keeps 1.0 and 1e0 as |
| + // json.Number and true as bool. |
| + if handover, ok := edges["ha_handover"].(int64); !ok || handover != 1 { |
| reasons = append(reasons, Text("floor_box", "box", m[1])) |
| } |
| } |
diff --git a/internal/grouproll/floor_test.go b/internal/grouproll/floor_test.go| index 5c2db3ab4..c4dfcc588 100644 |
| --- a/internal/grouproll/floor_test.go |
| +++ b/internal/grouproll/floor_test.go |
| @@ -80,9 +80,10 @@ func floorPointer(current map[string]any, channel string, extra map[string]any) |
| } |
| // newFloorHarness is HeldBase.setUp: ha_floor v0.35.0 with a data bucket |
| -// and prefix, every live box publishing ha_take 1 (the members and the |
| -// fixed box adi), the template pinned at v0.35.0, and the golden pointer |
| -// in the stable channel. withKey adds the golden release_public_key |
| +// and prefix, every box publishing ha_handover 1 (the members, which also |
| +// publish ha_take 1, and the fixed box adi, which is not HA and publishes |
| +// no ha_take), the template pinned at v0.35.0, and the golden pointer in |
| +// the stable channel. withKey adds the golden release_public_key |
| // (ReleaseMapTests). |
| func newFloorHarness(t *testing.T, withKey bool) *harness { |
| t.Helper() |
| @@ -94,8 +95,8 @@ func newFloorHarness(t *testing.T, withKey bool) *harness { |
| h.c.ReleasePublicKey = &pub |
| } |
| h.f.c = h.c |
| - h.f.haTake = map[string]any{} |
| - h.f.fixed = map[string]fixedEdges{"adi": {haTake: int64(1), age: 5 * time.Second}} |
| + h.f.haTake, h.f.haHandover = map[string]any{}, map[string]any{} |
| + h.f.fixed = map[string]fixedEdges{"adi": {haHandover: int64(1), age: 5 * time.Second}} |
| h.f.templateRelease = "v0.35.0" |
| h.f.pointers = map[string][]byte{"stable": floorFixture(t, "router-pointer-golden.json")} |
| return h |
| @@ -247,18 +248,39 @@ func TestFloorMetDrains(t *testing.T) { |
| } |
| } |
| -func TestFloorMemberWithoutHATake(t *testing.T) { |
| +func TestFloorMemberWithoutHAHandover(t *testing.T) { |
| h := newFloorHarness(t, false) |
| - h.f.haTake[ref(fakePeer)] = nil |
| + h.f.haHandover[ref(fakePeer)] = nil |
| h.refused(t, h.floor("replace", ""), Text("floor_box", "box", ref(fakePeer))) |
| + // ha_take is not the floor's capability: a member that says ha_take: 1 |
| + // and no ha_handover is still below the floor. |
| + if h.f.haTake[ref(fakePeer)] != nil { |
| + t.Fatal("the peer's ha_take was overridden") |
| + } |
| +} |
| + |
| +// The floor counts ha_handover, not ha_take: no box needs ha_take for the |
| +// floor, so a floor met with no ha_take anywhere drains. |
| +func TestFloorIgnoresHATake(t *testing.T) { |
| + h := newFloorHarness(t, false) |
| + h.f.haTake = nil |
| + row := h.drained(t, h.floor("replace", "")) |
| + if !sameValue(row["live"], []any{"adi", ref(fakeIID), ref(fakePeer)}) { |
| + t.Fatalf("live = %v", row["live"]) |
| + } |
| + // A fixed box that is not HA publishes ha_handover and no ha_take. |
| + h = newFloorHarness(t, false) |
| + h.f.fixed["tito"] = fixedEdges{haHandover: int64(1), age: time.Minute} |
| + h.drained(t, h.floor("replace", "")) |
| } |
| -// The script's test is `type(take) is int and take == 1`: only the JSON |
| -// integer 1 is the floor value. 1.0 and 1e0 are floats to json.loads, and |
| -// True is a bool, so each is a DR-4 reason, never a refusal; the edges_key |
| -// row journals 1.0 and 1e0 as 1 (the journal's float ruling) while the |
| -// floor reads the raw token the decoder kept as a json.Number. |
| -func TestFloorMemberWithOtherHATake(t *testing.T) { |
| +// Only the JSON integer 1 is the floor value (the script's `type(take) is |
| +// int and take == 1`, now read from ha_handover). 1.0 and 1e0 are floats |
| +// to json.loads, and True is a bool, so each is a DR-4 reason, never a |
| +// refusal; the edges_key row journals 1.0 and 1e0 as 1 (the journal's |
| +// float ruling) while the floor reads the raw token the decoder kept as a |
| +// json.Number. |
| +func TestFloorMemberWithOtherHAHandover(t *testing.T) { |
| for _, c := range []struct { |
| take any |
| raw string |
| @@ -268,7 +290,7 @@ func TestFloorMemberWithOtherHATake(t *testing.T) { |
| } { |
| t.Run(c.raw, func(t *testing.T) { |
| h := newFloorHarness(t, false) |
| - h.f.haTake[ref(fakeIID)] = c.take |
| + h.f.haHandover[ref(fakeIID)] = c.take |
| r := h.floor("replace", "") |
| if c.raw == "1" { |
| h.drained(t, r) |
| @@ -278,8 +300,8 @@ func TestFloorMemberWithOtherHATake(t *testing.T) { |
| if c.raw == "1.0" || c.raw == "1e0" { |
| for _, row := range r.e.j.Rows() { |
| res, _ := row["result"].(map[string]any) |
| - if row["kind"] == "response" && res["box"] == ref(fakeIID) && res["ha_take"] != int64(1) { |
| - t.Fatalf("journaled ha_take = %#v, want 1", res["ha_take"]) |
| + if row["kind"] == "response" && res["box"] == ref(fakeIID) && res["ha_handover"] != int64(1) { |
| + t.Fatalf("journaled ha_handover = %#v, want 1", res["ha_handover"]) |
| } |
| } |
| } |
| @@ -287,44 +309,61 @@ func TestFloorMemberWithOtherHATake(t *testing.T) { |
| } |
| } |
| -func TestFloorFixedForwarderWithoutHATake(t *testing.T) { |
| +func TestFloorFixedForwarderWithoutHAHandover(t *testing.T) { |
| h := newFloorHarness(t, false) |
| h.f.fixed["adi"] = fixedEdges{age: 5 * time.Second} |
| h.refused(t, h.floor("replace", ""), Text("floor_box", "box", "adi")) |
| + // ha_take does not stand in for it. |
| + h = newFloorHarness(t, false) |
| + h.f.fixed["adi"] = fixedEdges{haTake: int64(1), age: 5 * time.Second} |
| + h.refused(t, h.floor("replace", ""), Text("floor_box", "box", "adi")) |
| } |
| -// test_stale_box_is_not_live: an edges file outside DrainAckPeers' |
| -// liveness (older than 15 minutes, more than 60 s ahead, or with no |
| -// readable generation) is not a live box, so its ha_take does not count. |
| -func TestFloorStaleEdgesFileIgnored(t *testing.T) { |
| - for name, age := range map[string]time.Duration{"old": 16 * time.Minute, "ahead": -61 * time.Second} { |
| +// The floor counts every edges file present in the listing, whatever its |
| +// age (held floor capability ruling, 2026-11-10): a box that publishes |
| +// only on change may be hours quiet and still forward. An old file that |
| +// says ha_handover: 1 is counted and met; one without it, of any age, is |
| +// a DR-4 reason naming the box. A file ahead of the clock, or with no |
| +// readable generation, is counted the same way. |
| +func TestFloorCountsEveryEdgesFileWhateverItsAge(t *testing.T) { |
| + ages := map[string]time.Duration{"old": 6 * time.Hour, "week": 7 * 24 * time.Hour, |
| + "just-past": 16 * time.Minute, "ahead": -2 * time.Hour, "fresh": time.Second} |
| + for name, age := range ages { |
| + t.Run(name, func(t *testing.T) { |
| + h := newFloorHarness(t, false) |
| + h.f.fixed[name] = fixedEdges{haHandover: int64(1), age: age} |
| + row := h.drained(t, h.floor("replace", "")) |
| + if !containsValue(row["live"], name) { |
| + t.Fatalf("%s is not counted: %v", name, row["live"]) |
| + } |
| + h = newFloorHarness(t, false) |
| + h.f.fixed[name] = fixedEdges{haTake: int64(1), age: age} |
| + r := h.floor("replace", "") |
| + h.refused(t, r, Text("floor_box", "box", name)) |
| + if !containsValue(r.row(t, "floor")["live"], name) { |
| + t.Fatalf("%s is not counted: %v", name, r.row(t, "floor")["live"]) |
| + } |
| + }) |
| + } |
| + // No readable generation: counted by its capability, not an error. |
| + for _, handover := range []any{int64(1), nil} { |
| h := newFloorHarness(t, false) |
| - h.f.fixed[name] = fixedEdges{age: age} |
| - row := h.drained(t, h.floor("replace", "")) |
| - if containsValue(row["live"], name) { |
| - t.Fatalf("%s is live: %v", name, row["live"]) |
| + h.f.fixed["nogen"] = fixedEdges{haHandover: handover} |
| + h.f.wrap = func(op string, args map[string]any, r any, err error) (any, error) { |
| + if op == "edges" && args["box_ref"] == "nogen" { |
| + r.(map[string]any)["generation"] = "yesterday" |
| + } |
| + return r, err |
| } |
| - } |
| - // The bounds themselves are live. |
| - h := newFloorHarness(t, false) |
| - h.f.fixed["edge-old"] = fixedEdges{haTake: int64(1), age: 15 * time.Minute} |
| - h.f.fixed["edge-ahead"] = fixedEdges{haTake: int64(1), age: -60 * time.Second} |
| - row := h.drained(t, h.floor("replace", "")) |
| - if !containsValue(row["live"], "edge-old") || !containsValue(row["live"], "edge-ahead") { |
| - t.Fatalf("live = %v", row["live"]) |
| - } |
| - // No readable generation: skipped, not an error. |
| - h = newFloorHarness(t, false) |
| - h.f.fixed["nogen"] = fixedEdges{} |
| - h.f.wrap = func(op string, args map[string]any, r any, err error) (any, error) { |
| - if op == "edges" && args["box_ref"] == "nogen" { |
| - r.(map[string]any)["generation"] = "yesterday" |
| + r := h.floor("replace", "") |
| + if handover == nil { |
| + h.refused(t, r, Text("floor_box", "box", "nogen")) |
| + } else { |
| + h.drained(t, r) |
| + } |
| + if !containsValue(r.row(t, "floor")["live"], "nogen") { |
| + t.Fatalf("nogen is not counted: %v", r.row(t, "floor")["live"]) |
| } |
| - return r, err |
| - } |
| - row = h.drained(t, h.floor("replace", "")) |
| - if containsValue(row["live"], "nogen") { |
| - t.Fatalf("live = %v", row["live"]) |
| } |
| } |
diff --git a/internal/grouproll/testdata/parity-ledger.tsv b/internal/grouproll/testdata/parity-ledger.tsv| index 8d15c757a..89304e31f 100644 |
| --- a/internal/grouproll/testdata/parity-ledger.tsv |
| +++ b/internal/grouproll/testdata/parity-ledger.tsv |
| @@ -199,10 +199,10 @@ held CancelDrainTests.test_cancel_lifts_fence_after_failed_drain ported TestCanc |
| held CancelDrainTests.test_refused_cancel_keeps_fence ported TestCancelDrainRefusedKeepsFence |
| held CancelDrainTests.test_cancel_proven_by_status ported TestCancelDrainProvenByStatus |
| held CancelDrainTests.test_cancel_only_for_a_failed_drain_of_this_member ported TestCancelDrainOnlyForAFailedDrainOfThisMember |
| -held FloorTests.test_member_without_ha_take ported TestFloorMemberWithoutHATake TestDepartFloorRefused |
| -held FloorTests.test_member_with_other_ha_take ported TestFloorMemberWithOtherHATake TestDepartFloorRefused |
| -held FloorTests.test_fixed_forwarder_without_ha_take ported TestFloorFixedForwarderWithoutHATake TestDepartFloorRefused |
| -held FloorTests.test_stale_box_is_not_live ported TestFloorStaleEdgesFileIgnored TestDepartStaleBoxIsNotLive |
| +held FloorTests.test_member_without_ha_take ported TestFloorMemberWithoutHAHandover TestFloorIgnoresHATake TestDepartFloorRefused ruling: ha_handover, not ha_take, is the floor's capability (held floor capability, agent manager 8a3d302, 2026-11-10) |
| +held FloorTests.test_member_with_other_ha_take ported TestFloorMemberWithOtherHAHandover TestDepartFloorRefused ruling: ha_handover, not ha_take, is the floor's capability (held floor capability, agent manager 8a3d302, 2026-11-10) |
| +held FloorTests.test_fixed_forwarder_without_ha_take ported TestFloorFixedForwarderWithoutHAHandover TestDepartFloorRefused ruling: ha_handover, not ha_take, is the floor's capability (held floor capability, agent manager 8a3d302, 2026-11-10) |
| +held FloorTests.test_stale_box_is_not_live does-not-apply ruling: held floor capability (agent manager 8a3d302, 2026-11-10): the floor counts every present edges file whatever its age, so no file is skipped as stale (TestFloorCountsEveryEdgesFileWhateverItsAge, TestDepartCountsOldEdgesFiles) |
| held FloorTests.test_old_pinned_template ported TestFloorOldPinnedTemplate TestDepartFloorRefused |
| held FloorTests.test_uncomparable_pinned_template_is_an_error ported TestFloorUncomparablePinnedTemplateIsAnError TestDepartFloorErrorRefusesWithoutDR4 |
| held FloorTests.test_no_floor_config ported TestFloorNoFloorConfig TestDepartFloorRefused |
diff --git a/internal/grouproll/text.go b/internal/grouproll/text.go| index d8c21e565..4ddd113a5 100644 |
| --- a/internal/grouproll/text.go |
| +++ b/internal/grouproll/text.go |
| @@ -91,7 +91,7 @@ var text = map[string]string{ |
| "cancel_refused": "cancel-drain needs this member's transaction after a failed drain: closed, or stopped while its drain was still moving hosts", |
| "cancel_failed": "drain --cancel did not finish. The fence stays: {detail}", |
| "cancelled": "The drain was cancelled and the start fence removed.", |
| - "floor_box": "Live box {box} does not publish ha_take: 1", |
| + "floor_box": "Box {box} does not publish ha_handover: 1", |
| "floor_unreadable": "The edges file {key} cannot be read", |
| "floor_template": "The pinned launch template boots release {release}, below ha_floor", |
| "floor_version": "The roll's release {release} is below ha_floor", |
diff --git a/internal/host/edgesfile.go b/internal/host/edgesfile.go| index 3fedae8b9..5bf859bc1 100644 |
| --- a/internal/host/edgesfile.go |
| +++ b/internal/host/edgesfile.go |
| @@ -396,6 +396,14 @@ type edgesFile struct { |
| // ignores it. Absent is an older build or a box that is not HA, which a |
| // draining box never asks. |
| HATake int `json:"ha_take,omitempty"` |
| + // HAHandover is 1 on every box this build writes, HA or not, set by the |
| + // pass itself and never from config: the binary understands the held |
| + // requests headers (X-Carlos-Handover, the replay mark) and the drain |
| + // acknowledgement it may be asked for (region HA §25.4-§25.9). The |
| + // group roll's floor (internal/grouproll Engine.Floor) counts every |
| + // edges file by it. It says nothing about takes: ha_take alone does. |
| + // Additive (omitempty): absent is an older build. |
| + HAHandover int `json:"ha_handover,omitempty"` |
| // SecretsKeyFP is the fingerprint of this box's CARLOS_SECRETS_KEY's |
| // public half (appconfig.KeyFingerprint), NEVER the key. Additive and |
| @@ -1049,6 +1057,7 @@ func edgesFileWriteClaims(ctx context.Context, s release.Store, reg *registry.Re |
| f.Capabilities = append(slices.Clone(f.Capabilities), edgesfile.NamesCapability) |
| } |
| f.BurstNotices = true |
| + f.HAHandover = 1 |
| if slices.Contains(f.Capabilities, capRegionHA1) { |
| f.HATake = 1 |
| } |
diff --git a/internal/host/edgesfile_test.go b/internal/host/edgesfile_test.go| index b441259e5..3985157e0 100644 |
| --- a/internal/host/edgesfile_test.go |
| +++ b/internal/host/edgesfile_test.go |
| @@ -327,7 +327,7 @@ func TestEdgesFileRawWireBodyMatchesSchema(t *testing.T) { |
| t.Fatalf("generation %q is not RFC3339: %v", probe.Generation, err) |
| } |
| - want := `{"v":1,"box":"quiet-harbour","eip":"203.0.113.10","hibernation_configured":false,"serves_shared_pool":false,"accepts_inbound":false,"named_pools":[],"burst_notices":true,"capabilities":["names-2"],"moves_protocol":0,"seeds_protocol":0,"addrs":null,"generation":"` + |
| + want := `{"v":1,"box":"quiet-harbour","eip":"203.0.113.10","hibernation_configured":false,"serves_shared_pool":false,"accepts_inbound":false,"named_pools":[],"burst_notices":true,"ha_handover":1,"capabilities":["names-2"],"moves_protocol":0,"seeds_protocol":0,"addrs":null,"generation":"` + |
| probe.Generation + `","hosts":{"app.example.com":{"role":"home","platform":false}}}` |
| if string(got) != want { |
| t.Fatalf("raw wire body =\n%s\nwant\n%s", got, want) |
| @@ -370,7 +370,7 @@ func TestEdgesFileRawWireBodyRegionField(t *testing.T) { |
| t.Fatal(err) |
| } |
| gen := genOf(t, got) |
| - want := `{"v":1,"box":"quiet-harbour","eip":"203.0.113.10","hibernation_configured":false,"serves_shared_pool":false,"accepts_inbound":false,"named_pools":[],"burst_notices":true,"capabilities":["names-2"],"moves_protocol":0,"seeds_protocol":0,"addrs":null,"generation":"` + |
| + want := `{"v":1,"box":"quiet-harbour","eip":"203.0.113.10","hibernation_configured":false,"serves_shared_pool":false,"accepts_inbound":false,"named_pools":[],"burst_notices":true,"ha_handover":1,"capabilities":["names-2"],"moves_protocol":0,"seeds_protocol":0,"addrs":null,"generation":"` + |
| gen + `","hosts":{"app.example.com":{"role":"home","platform":false}}}` |
| if string(got) != want { |
| t.Fatalf("raw wire body (region unset) =\n%s\nwant\n%s", got, want) |
| @@ -389,7 +389,7 @@ func TestEdgesFileRawWireBodyRegionField(t *testing.T) { |
| t.Fatal(err) |
| } |
| gen := genOf(t, got) |
| - want := `{"v":1,"box":"quiet-harbour","eip":"203.0.113.10","region":"eu-west-1","hibernation_configured":false,"serves_shared_pool":false,"accepts_inbound":false,"named_pools":[],"burst_notices":true,"capabilities":["names-2"],"moves_protocol":0,"seeds_protocol":0,"addrs":null,"generation":"` + |
| + want := `{"v":1,"box":"quiet-harbour","eip":"203.0.113.10","region":"eu-west-1","hibernation_configured":false,"serves_shared_pool":false,"accepts_inbound":false,"named_pools":[],"burst_notices":true,"ha_handover":1,"capabilities":["names-2"],"moves_protocol":0,"seeds_protocol":0,"addrs":null,"generation":"` + |
| gen + `","hosts":{"app.example.com":{"role":"home","platform":false}}}` |
| if string(got) != want { |
| t.Fatalf("raw wire body (region set) =\n%s\nwant\n%s", got, want) |
| @@ -943,7 +943,7 @@ func TestEdgesFileRawWireBodyPlacementField(t *testing.T) { |
| if err := json.Unmarshal(got, &probe); err != nil { |
| t.Fatal(err) |
| } |
| - want := `{"v":1,"box":"quiet-harbour","eip":"203.0.113.10","region":"eu-west-2","placement":"uk","hibernation_configured":false,"serves_shared_pool":false,"accepts_inbound":false,"named_pools":[],"burst_notices":true,"capabilities":["names-2"],"moves_protocol":0,"seeds_protocol":0,"addrs":null,"generation":"` + |
| + want := `{"v":1,"box":"quiet-harbour","eip":"203.0.113.10","region":"eu-west-2","placement":"uk","hibernation_configured":false,"serves_shared_pool":false,"accepts_inbound":false,"named_pools":[],"burst_notices":true,"ha_handover":1,"capabilities":["names-2"],"moves_protocol":0,"seeds_protocol":0,"addrs":null,"generation":"` + |
| probe.Generation + `","hosts":{"app.example.com":{"role":"home","platform":false}}}` |
| if string(got) != want { |
| t.Fatalf("raw wire body (placement set) =\n%s\nwant\n%s", got, want) |
| @@ -1467,7 +1467,9 @@ func TestEdgesFileAdvertisesBurstNotices(t *testing.T) { |
| // An HA box says ha_take: 1 (region HA §25.7): its edge answers take |
| // requests itself, and a draining box sends takes only to a file that says |
| -// so. Every other box's file is unchanged: no ha_take key at all. |
| +// so. Every other box's file has no ha_take key at all. Every box, HA or |
| +// not, says ha_handover: 1 (§25.9): the binary understands held requests, |
| +// which is what the group roll's floor counts. |
| func TestEdgesFileAdvertisesHATake(t *testing.T) { |
| for name, tc := range map[string]struct { |
| caps []string |
| @@ -1496,6 +1498,10 @@ func TestEdgesFileAdvertisesHATake(t *testing.T) { |
| if tc.want == "" && ok || tc.want != "" && string(got) != tc.want { |
| t.Fatalf("ha_take = %q (present %v) in %s, want %q", got, ok, body, tc.want) |
| } |
| + // ha_handover is the binary's, whatever the box's capabilities. |
| + if got := string(raw["ha_handover"]); got != "1" { |
| + t.Fatalf("ha_handover = %q in %s, want 1", got, body) |
| + } |
| }) |
| } |
| } |
| @@ -1820,7 +1826,7 @@ func TestEdgesFileAddrsEmptyAndUnreadable(t *testing.T) { |
| } |
| return strings.Replace(string(body), probe.Generation, "GEN", 1) |
| } |
| - const head = `{"v":1,"box":"%s","eip":"203.0.113.10","hibernation_configured":false,"serves_shared_pool":false,"accepts_inbound":false,"named_pools":[],"burst_notices":true,"capabilities":["names-2"],"moves_protocol":0,"seeds_protocol":0,` |
| + const head = `{"v":1,"box":"%s","eip":"203.0.113.10","hibernation_configured":false,"serves_shared_pool":false,"accepts_inbound":false,"named_pools":[],"burst_notices":true,"ha_handover":1,"capabilities":["names-2"],"moves_protocol":0,"seeds_protocol":0,` |
| const tail = `,"generation":"GEN","hosts":{"app.example.com":{"role":"home","platform":false}}}` |
| r := &addrsReader{} |
diff --git a/internal/host/egress_nopolicy_linux_test.go b/internal/host/egress_nopolicy_linux_test.go| index aa896778f..48288321c 100644 |
| --- a/internal/host/egress_nopolicy_linux_test.go |
| +++ b/internal/host/egress_nopolicy_linux_test.go |
| @@ -385,9 +385,9 @@ func TestEgressNoPolicyBoxPublishesAsMain(t *testing.T) { |
| mainBody := fmt.Sprintf(mainNoPolicyEdges, probeGen.Generation) |
| const addrsField = `"addrs":["10.0.1.5","fe80::1"],` |
| wantBody := strings.Replace(mainBody, `"generation":`, addrsField+`"generation":`, 1) |
| - wantBody = strings.Replace(wantBody, `"moves_protocol":`, `"named_pools":[],"burst_notices":true,"capabilities":["names-2"],"moves_protocol":`, 1) |
| + wantBody = strings.Replace(wantBody, `"moves_protocol":`, `"named_pools":[],"burst_notices":true,"ha_handover":1,"capabilities":["names-2"],"moves_protocol":`, 1) |
| if string(body) != wantBody { |
| - t.Fatalf("the edges file is not main's plus addrs and burst_notices:\n%s\nwant:\n%s", body, wantBody) |
| + t.Fatalf("the edges file is not main's plus addrs, burst_notices and ha_handover:\n%s\nwant:\n%s", body, wantBody) |
| } |
| }) |
| } |
diff --git a/internal/host/group_names_test.go b/internal/host/group_names_test.go| index e321b405c..a879b782b 100644 |
| --- a/internal/host/group_names_test.go |
| +++ b/internal/host/group_names_test.go |
| @@ -462,7 +462,7 @@ var groupNameProducerInventory = map[string]string{ |
| "claimunit_binding.go:claimUnitShape.route": "f38fd6e10aba680354ee908c255fd34e731fe2d1a22fffd41ac449e8b763dd2c", |
| "claimunit_policy.go:claimUnitShapeCheck": "45f16830e5ed834995ca573a710f1e390a504b7eb78c3c0465ac70e7f306e50c", |
| "claimunit_policy.go:rootClaimRestartShape": "1d0370516c32482b1784f4bd4ab0deb042c31120d81f4dc8c417f52b24ef76ac", |
| - "edgesfile.go:edgesFileWriteClaims": "577e7cec14583485e02efe50f53160cd626322b2ff494fc0c86fbfbd1cfac24a", // #724: dns_pointing mark on custom names only; no name or class derivation |
| + "edgesfile.go:edgesFileWriteClaims": "f19e0a6547b891ad689fb58b11d842ba9b7214f6df766bc46e9da0a4cce4d9d7", // held floor capability: constant ha_handover=1 on every pass; no name or class derivation |
| "movesheldenv.go:composeHeldEnv": "17ad3714758d1c07a71375734c125496855a16ca800eb814bde58283d3a5318b", |
| "movesheldrelease_root.go:heldReleaseRoute": "10bf824edc963319a38a47b91877b865977b1dc4a27c6e7680c46704289a7df7", |
| "movesstage.go:heldReleasePublished": "edad51c04a01657b77a9fc469404db5fde51cff1f2c61e243d6a717fb6224e85", |
diff --git a/internal/host/testdata/edges-p2b-golden.json b/internal/host/testdata/edges-p2b-golden.json| index 20d9c3248..dbfbb96a7 100644 |
| --- a/internal/host/testdata/edges-p2b-golden.json |
| +++ b/internal/host/testdata/edges-p2b-golden.json |
| @@ -1 +1 @@ |
| -{"box_role":"serve","admitted":true,"drained":false,"v":1,"box":"leo","eip":"203.0.113.10","region":"eu-west-1","data_bucket":"test-data","data_bucket_region":"eu-west-1","hibernation_configured":true,"serves_shared_pool":false,"accepts_inbound":true,"named_pools":["cohort1","hapair"],"burst_notices":true,"ha_take":1,"secrets_key_fp":"sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","box_id":"leo","capabilities":["region-ha-1","names-2"],"headroom":{"mem_free_mib":512,"disk_free_mib":2048,"awake":0,"mem_total_mib":1024,"disk_total_mib":4096},"moves_protocol":0,"seeds_protocol":0,"addrs":null,"generation":"2026-11-04T12:00:00Z","hosts":{"app.example.com":{"role":"home","platform":false}}} |
| \ No newline at end of file |
| +{"box_role":"serve","admitted":true,"drained":false,"v":1,"box":"leo","eip":"203.0.113.10","region":"eu-west-1","data_bucket":"test-data","data_bucket_region":"eu-west-1","hibernation_configured":true,"serves_shared_pool":false,"accepts_inbound":true,"named_pools":["cohort1","hapair"],"burst_notices":true,"ha_take":1,"ha_handover":1,"secrets_key_fp":"sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","box_id":"leo","capabilities":["region-ha-1","names-2"],"headroom":{"mem_free_mib":512,"disk_free_mib":2048,"awake":0,"mem_total_mib":1024,"disk_total_mib":4096},"moves_protocol":0,"seeds_protocol":0,"addrs":null,"generation":"2026-11-04T12:00:00Z","hosts":{"app.example.com":{"role":"home","platform":false}}} |
| \ No newline at end of file |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index a1bc01fc6..71bd7a974 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -154,3 +154,4 @@ plan14-root-reads-warm-set-published-724.tsv 158a30344d45448de74c9d6fbcc46eeab1e |
| plan14-root-reads-gvisor-probe-diag.tsv a9ae6b238b6b2e177be1f9c7ae06ea0f24477e4eb0e58abda63f4b7337dbe3ee |
| plan14-root-reads-deploy-happy-path.tsv a9ae6b238b6b2e177be1f9c7ae06ea0f24477e4eb0e58abda63f4b7337dbe3ee |
| plan14-root-reads-held-move-speed.tsv 837f27a6b7b6ed272f8c68aca07650fa32cf3ec92ce28bf9d812a4282eeb0b58 |
| +plan14-root-reads-held-floor-capability.tsv 837f27a6b7b6ed272f8c68aca07650fa32cf3ec92ce28bf9d812a4282eeb0b58 |
diff --git a/internal/provision/testdata/plan14-root-reads-held-floor-capability.tsv b/internal/provision/testdata/plan14-root-reads-held-floor-capability.tsv| new file mode 100644 |
| index 000000000..cb37e058c |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-held-floor-capability.tsv |
| @@ -0,0 +1,5 @@ |
| +# Census overlay held-floor-capability, written by census-propose (#369). census-ruling-held-floor-capability, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-held-floor-capability.md. |
| +# 1 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +internal/host/edgesfile.go edgesFileWriteClaims authority F,J1 rev3=census-ruling-self-serve-moves-1;basis=root-route;kept=F;scope=protected-decision-only; the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): region-ha-2a's body, which with the box's lifetimes switch on also publishes each served row's lifetime pair (registry:Incarnation and registry:ServingSeq, two new sites on the rows it already lists) and an alias's or served catch-all's primary's pair, and names that primary as target_host whatever the switch; a report the edge orders unstamped entries by, not a decision; no record, /data, release or claim read added; F,J1 authority retained; self-serve moves 1 Task 8;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Task 8: takes a localAddrs reader (instancectl.LocalAddresses in production, which reads /proc/net/fib_trie and /proc/net/if_inet6 in the agent) and publishes its non-loopback entries as the edges file's addrs before the write gate (boxAddrs, no read of its own), so an address change writes once. The same 44 sites, offsets moved; no record, /data, release or claim read added; a report the console's egress grant check reads, not a root decision; F,J1 authority retained.;rev3=census-ruling-edge-asset-cache-3;basis=starts with assets = assets.active(), so a policy whose box has not opened its asset store publishes no assets blocks and reads no manifests, and copies the decision's Primary (the route host the block was decided for, drift D4) into the published assets block; read sites unchanged (44); no read added. Merged onto main's #328 body, which takes the localAddrs reader: the assets.active() line sits after that signature and the loop passes pub and instancectl.LocalAddresses;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: the claims argument (*edgesClaims) becomes addrs (AddressSource) and the applyEdgesClaims(ctx, claims, routes, hosts) call is deleted with edgesclaims.go, which is the one whole:Route site removed: no host claim is read and every served row publishes as with region HA off; the box-address publication is the same code reading addrs.BoxAddresses() instead of claims.addrs; a report the edge reads, not a root decision; no read added; merge of origin/main d7ae1d76: main's edge asset cache plan 3 body is kept (census-ruling-edge-asset-cache-3): the first line is assets = assets.active(), so a policy whose store has not opened publishes no assets blocks and reads no manifests, and edgesFileLoop passes pub (assets.active() for that tick) in the assets argument; main's claims *edgesClaims argument is this branch's addrs AddressSource, and no edgesClaims, applyEdgesClaims or hostclaim reference remains;rev3=census-ruling-alias-wake-338;basis=#338 follow-up: skips publishing a platform alias edge.PlatformAliasFold refuses (and so anything attached to it); reads the same route listing;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Task 6 and its fix rounds: publishes by FleetArmVerdict (via fleetRefusedFor): withheld rows left out; a forward host's path rows left out of its owner; no assets for forward rows; the alias loop replays Reload's alias fold from the served rows so a chained alias carries its root primary's owner; certRefused and parentRefused leave out a refused claim's wildcard parent (+registry:Alias x5, +registry:Host x4, +whole:Route, +whole:RouteAlias x2, +whole:RoutePath x7, +whole:WildcardDomain). Rows already read in the pass; keeps authority F,J1; publishes less, never more.;rev3=census-ruling-probe-burst-limit;basis=sets the constant BurstNotices=true on the box's own edges file (this build's edge answers probe-burst notices, so peers may send them); not from config or any read; the same 65 sites; a report other edges read, not a root decision; F,J1 authority retained; no new root read or write kind;rev3=census-ruling-region-ha-p3a;basis=Publish one injected role snapshot with box_role/admitted/drained; retain legacy route and alias rows during booting, cutting namespace withdrawal under the 2026-11-04 ruling; acknowledge the exact published tuple only after PUT; existing registry reads unchanged.;rev3=census-ruling-region-ha-p2b;basis=region HA P2b-1 T0 (Q1 ruling): before building the comparison copy and the body, a nil NamedPools on the identity becomes []string{} so the additive named_pools field is always an explicit array; the list itself is computed once at arm by edgesFileEligibility from the same provisionTickConfig(os.Getenv) parse as serves_shared_pool (CARLOS_POOLS through provision.ParseBoxPools, filtered to nonempty provision.ValidPool names, sorted, unique). A report the console reads for create admission, not a root decision; no record, /data, release or claim read added; read sites unchanged (65); F,J1 authority retained. One-off cost: the first pass after the upgrade writes once per box (seeded gate null vs []).;rev3=census-ruling-region-ha-p3b;basis=Require cached GroupReadersReady before first group publication and append additive names-2 capability even for supplied identities. Agent writes the same edges object/index with existing registry reads; known readers come from root boot configuration, snapshot from existing fold, no added GET/LIST or root authority.;rev3=census-ruling-region-ha-g2-fixes;basis=Omit non-forward, non-platform-alias rows outside local served pools from home publication; added Host/Pool field reads and local configuration use, existing registry/store operations retained.;rev3=census-ruling-edge-page-cache-1;basis=prunes the manifest cache through the new atomic pointer (assets.manifests.Load().prune(...), nil-safe); nothing else changes; read sites unchanged (67); no read added;rev3=census-ruling-region-ha-held-build;basis=writes also when DrainPublishRequired, and reports the written drain state, its ha_drain mark (transaction and publication id) and generation to DrainSource (in-memory); the file gains ha_drained and ha_drain beside the existing draining; no read added. held-requests Task 4: sets the constant ha_take=1 on the box's own file when its in-memory capabilities include region-ha-1 (this build's edge answers take requests); not from config or any read; a report other edges read, not a root decision; no read added;rev3=census-ruling-warm-set-published-724;basis=#724: the agent as carlos: reads PLATFORM_APPS_DOMAIN from the environment once per pass (the variable domainsLoop already reads) and sets an additive dns_pointing mark on each published custom name through dnsPointingMark: true on a published alias (registry:Alias, already published only when its dns_status is pointing), and on a route with a hostname outside the apps domain whether its registry:DNSStatus is pointing (registry:Host, registry:DNSStatus on rows the pass already lists). No mark under the apps domain, on a wildcard row, or with no apps domain set. A report the issuer cert warm reads to leave a not-yet-pointing custom name out of its set, not a root decision; it publishes the same names as before. No record, /data, release or claim read added; no new registry query; F,J1 authority retained. One-off cost: the first pass after the upgrade writes once on a box homing a custom name.;rev3=census-ruling-held-floor-capability;basis=held floor capability (region HA §25.9, agent manager 8a3d302, 2026-11-10): sets the constant ha_handover=1 on the box's own edges file on every pass, whatever its capabilities (this build understands the held-requests headers and the drain acknowledgement); the group roll floor reads it. Not from config or any read; ha_take unchanged; a report other tools read, not a root decision; no read added; F,J1 authority retained. One-off cost: the first pass after the upgrade writes once per box. registry:Account@16743,registry:Alias@10183,registry:Alias@10340,registry:Alias@10410,registry:Alias@10442,registry:Alias@11186,registry:Alias@11396,registry:Alias@14216,registry:Alias@14266,registry:Alias@9544,registry:Alias@9563,registry:Alias@9662,registry:Alias@9716,registry:Alias@9751,registry:Alias@9813,registry:App@16755,registry:DNSStatus@10349,registry:DNSStatus@5731,registry:DNSStatus@9858,registry:Host@14119,registry:Host@14139,registry:Host@14404,registry:Host@14484,registry:Host@14519,registry:Host@14568,registry:Host@15030,registry:Host@15065,registry:Host@16173,registry:Host@4188,registry:Host@4279,registry:Host@4325,registry:Host@4384,registry:Host@5723,registry:Host@5970,registry:Host@6940,registry:Host@9589,registry:Host@9637,registry:Incarnation@5930,registry:Platform@5238,registry:Pool@4239,registry:Provisioned@5252,registry:Replica@5276,registry:ServingSeq@5945,registry:Status@2957,whole:Route@1026,whole:Route@18213,whole:Route@1841,whole:Route@19038,whole:Route@19213,whole:Route@2327,whole:Route@7025,whole:Route@750,whole:RouteAlias@14170,whole:RouteAlias@18235,whole:RouteAlias@19228,whole:RouteAlias@9427,whole:RouteAlias@9509,whole:RouteAlias@9701,whole:RoutePath@18228,whole:RoutePath@19221,whole:RoutePath@6809,whole:RoutePath@6841,whole:RoutePath@6888,whole:RoutePath@6916,whole:RoutePath@6954,whole:RoutePath@6974,whole:RoutePath@6986,whole:RoutePath@7040,whole:WildcardDomain@14097,whole:WildcardDomain@14473 3f2f6d92db4a60e2931eb80fc0f0d94fba9a75172a36aa03dcda890f2134f681 |
| +@coverage internal/grouproll 1670ce50257c4122d80889f300f9a4084ea9087ad01e5cbb0914558c9c02d9e2 |
| +@coverage internal/host 51cb2d1bd01e1c97a2dda2e73c3eb34d8670c2ce5fe2b5beaece6ef0c3e81ef3 |
diff --git a/scripts/region-group-roll.py b/scripts/region-group-roll.py| index fbeef8f24..76a8627d7 100755 |
| --- a/scripts/region-group-roll.py |
| +++ b/scripts/region-group-roll.py |
| @@ -6,6 +6,7 @@ |
| # replacement can later pass without its own readiness and ha_take check; |
| # (2) after the terminate check, a desired or minimum below N is raised again, |
| # so an outside capacity reduction after the restore launches capacity. |
| +# Its floor is also stale: the Go verb counts every edges file by ha_handover, no age test. |
| """Attended, serialized maintenance of one Auto Scaling group member. |
| Run as root on the shared operator host. All operators must use the same |