| index 6244c6ca8..a3b52a4c0 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-held-floor-capability.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-held-floor-capability.tsv |
| @@ -1,11 +1,20 @@ |
| # 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. |
| -# 2 body, 0 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 6 body, 0 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| # 1 new dispositions: 0 reads re-frozen at their disposition with the claim, 1 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +@legacy bc4b8ee15c32b3bbcf3d4d4bc53415821d5c0c751b089840e6b940e6fe66bf6e 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;rev3=census-ruling-held-floor-capability;basis=held floor capability (Astra r2 F2.1): the drain alternative of the operator document's allowedPattern becomes `group-maintenance drain --peers=[A-Za-z0-9._,-]* <transaction>`: the verb's acknowledgement list, shell-safe characters only (no space, quote, semicolon or dollar), validated again by root's maintenanceArguments. Every other alternative is unchanged. Needs the document redeployed before a verb on this build can drain. file:external@0 b922ea7dad60357ec66e3b572a0033db6c21e9ed348e15f469ce21214fee1ea9 |
| @legacy 6a8aa49b5c230210f04c48d0c252fff803557d6dce3e1e7e345087a7492e97fa internal/edge/hadrain.go Edge.serveHAControl legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: answers a signed drain ask. Reads the request body (io.ReadAll under MaxBytesReader 4 KiB and a 2 s read deadline), verifies its own mesh-key MAC, requires a phase (draining or drained) and a nonzero publication id, and may refresh the edges fold (the existing refreshHosts: LIST plus GET of control/edges/ in the deployment bucket); reads no local file; answers JSON seen true or false, or a bare 404. Fix round 1: the ask names phase and publication id instead of a generation. held-requests Task 4: accepts POST /.carlos/ha-take beside /.carlos/ha-drain, with the same bounded body read; the signature is verified over the request's own path (one of the two reserved constants), then a take goes to serveHATake (strict JSON with transaction, asker, host, lifetime and a positive marker generation, else a bare 404); no read added here;rev3=census-ruling-held-floor-capability;basis=held floor capability (region HA §25.4 step 1, agent manager 8a3d302, 2026-11-10): a drain ask must also carry a nonce of 32 lower-case hex digits (else a bare 404, like any other malformed ask), and the JSON answer gains sig, an HMAC-SHA256 under the same mesh key (signingKey of the mirrored pair) over a distinct domain, this box, the asker, the transaction, the phase, the publication id, the nonce and the seen value. Computed in memory from the already verified ask; no read added, no file, record or store access added; the take path is unchanged. file:ReadAll@703 5085c6761663c54fbb90687e3ac2f1f1314c82e25352325e08dbed91f532523e |
| -@legacy d9fd3648cb65bbfe2eaf77ff452c15c59b8b3573957ccc881d6e1a52c3705f9f internal/edge/hadrain.go Edge.AskDrainSeen legacy accepted-legacy accepted-legacy;rev3=census-ruling-held-floor-capability;basis=held floor capability (region HA §25.4 step 1, agent manager 8a3d302, 2026-11-10): the ask gains a nonce, 16 bytes from crypto/rand in lower-case hex, inside the already signed body; the answer must carry sig, an HMAC-SHA256 under either mirrored mesh key over a distinct domain, the peer, this box, the transaction, the phase, the id, that nonce and the seen value, verified in constant time; an unsigned, wrongly signed or other-ask answer is an error (not acknowledged), never seen. Reads only the in-memory mesh keys it already used; no store, file or record read added; a drain only fails more often, never proceeds on less. file:Read@833 e4ffe18657820278a126b9dfa0f86e973f7baf669017ee836a90cc3efcb0d5e6 |
| +@legacy fa5fc7a9bef579861e3338b4f71c9483866bda98d412b703a9acbb948c11cdf1 internal/host/hadrain.go drainDriver.moveSteps legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (split from move): drain steps 2-5 over the activator and edge APIs; reads route Host from the activator's in-memory DrainHosts; releases and moves under one 4-way semaphore; no store or file read of its own;rev3=census-ruling-held-floor-capability;basis=held floor capability (Astra r2 F2.1): takes the verb's acknowledgement list (listed) and passes it to the drained-phase publishAndAck, which asks every listed box plus any the fold adds; nothing else changes. No read added; in-memory only. registry:Host@987,whole:Route@989 510582ac2a15ae55282bf2866b45a874d6ee8a147fa40ca3727d4cd95594bc0b |
| +@legacy eb8fbcf4118b191a68a62b86c8be452726800ebb361d27a44b194661e8f138a6 internal/host/hadrain_call_linux.go drainCallExec legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (branch review r1, Astra B1.3): builds the __drain-call child command: the pinned executable /proc/self/fd/3 (registryExecutable, as the registry child), fixed arguments (op from a fixed set, the validated transaction), empty environment, Dir "/", no stdin; the child drops to the agent user before it dials the agent socket; root reads only its bounded stdout (drainCallMax);rev3=census-ruling-held-floor-capability;basis=held floor capability (Astra r2 F2.1): root's drain-call child command gains a third argument for withdraw and move, --peers=<refs joined by commas>, when root was given a list; execDrainCall refuses a list that is not valid (validDrainPeers: at most 256 references in the edges-key grammar [A-Za-z0-9][A-Za-z0-9._-]{0,127}, no duplicates) before any child starts. Same pinned executable, empty environment, "/" directory, no stdin; the child still drops to the agent user before reading anything. No read added. file:Command@158 d1f15ed19e3837e3da1b3a703c437b7f097db7eb22bcea09f7236b3c703e2267 |
| +@legacy 849593102156dd3d4e0a54f841df3f7ce640649fe534b18bb32c8dffb3e88bbc internal/host/hadrain_socket.go drainDriver.handler legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: agent drain socket handler: reads the request body bounded to 4 KiB, strict JSON with one transaction field; served only to a peer SO_PEERCRED reports as root; not a file read;rev3=census-ruling-held-floor-capability;basis=held floor capability (Astra r2 F2.1): the agent's drain socket accepts an optional peers array on withdraw and move (strict JSON, unknown fields still refused; a peers field on cancel, or an invalid list, is a 400), the body bound rises from 4 KiB to 64 KiB for up to 256 references, and the list goes to drainDriver.start, which refuses a step without a valid list (errDrainNoPeers) before anything runs. Peer-credential check unchanged; no file or store read added. file:ReadAll@722 7224fbfc2069ff2b7216c9c14a33f7886b4a79cb0a687bdd3ea1d144f6c2e01d |
| +@legacy e3fece4d48f4bceb8a18c12bec66d693a72dec53d0d35d04bebee1dda9d703d2 internal/edge/hadrain.go Edge.AskDrainSeen legacy accepted-legacy accepted-legacy;rev3=census-ruling-held-floor-capability;basis=held floor capability (region HA §25.4 step 1, agent manager 8a3d302, 2026-11-10): the ask gains a nonce, 16 bytes from crypto/rand in lower-case hex, inside the already signed body; the answer must carry sig, an HMAC-SHA256 under either mirrored mesh key over a distinct domain, the peer, this box, the transaction, the phase, the id, that nonce and the seen value, verified in constant time; an unsigned, wrongly signed or other-ask answer is an error (not acknowledged), never seen. Astra r2 F2.1: when the peer (from the verb's list) has no edges file in this edge's fold, it runs the existing refreshHostsNow once (the receivers' own fold read on an ask: a LIST and GETs of control/edges/ in the deployment bucket, as the agent user, bounded by haDrainRefreshTimeout) and retries controlTarget; still absent, the ask fails naming the peer. No new read kind, path or record; a drain only fails more often, never proceeds on less. file:Read@1398 7f634d395f69292d2fbb6012a65f2cec0e04ae053943052c4ff17e1249f2bd1b |
| +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;rev3=census-ruling-held-floor-capability;basis=held floor capability (Astra r2 F2.1): the drain alternative of the operator document's allowedPattern becomes `group-maintenance drain --peers=[A-Za-z0-9._,-]* <transaction>`: the verb's acknowledgement list, shell-safe characters only (no space, quote, semicolon or dollar), validated again by root's maintenanceArguments. Every other alternative is unchanged. Needs the document redeployed before a verb on this build can drain. file:external@0 b922ea7dad60357ec66e3b572a0033db6c21e9ed348e15f469ce21214fee1ea9 |
| internal/edge/hadrain.go Edge.serveHAControl legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: answers a signed drain ask. Reads the request body (io.ReadAll under MaxBytesReader 4 KiB and a 2 s read deadline), verifies its own mesh-key MAC, requires a phase (draining or drained) and a nonzero publication id, and may refresh the edges fold (the existing refreshHosts: LIST plus GET of control/edges/ in the deployment bucket); reads no local file; answers JSON seen true or false, or a bare 404. Fix round 1: the ask names phase and publication id instead of a generation. held-requests Task 4: accepts POST /.carlos/ha-take beside /.carlos/ha-drain, with the same bounded body read; the signature is verified over the request's own path (one of the two reserved constants), then a take goes to serveHATake (strict JSON with transaction, asker, host, lifetime and a positive marker generation, else a bare 404); no read added here;rev3=census-ruling-held-floor-capability;basis=held floor capability (region HA §25.4 step 1, agent manager 8a3d302, 2026-11-10): a drain ask must also carry a nonce of 32 lower-case hex digits (else a bare 404, like any other malformed ask), and the JSON answer gains sig, an HMAC-SHA256 under the same mesh key (signingKey of the mirrored pair) over a distinct domain, this box, the asker, the transaction, the phase, the publication id, the nonce and the seen value. Computed in memory from the already verified ask; no read added, no file, record or store access added; the take path is unchanged. file:ReadAll@703 5085c6761663c54fbb90687e3ac2f1f1314c82e25352325e08dbed91f532523e |
| 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 |
| -internal/edge/hadrain.go Edge.AskDrainSeen legacy accepted-legacy accepted-legacy;rev3=census-ruling-held-floor-capability;basis=held floor capability (region HA §25.4 step 1, agent manager 8a3d302, 2026-11-10): the ask gains a nonce, 16 bytes from crypto/rand in lower-case hex, inside the already signed body; the answer must carry sig, an HMAC-SHA256 under either mirrored mesh key over a distinct domain, the peer, this box, the transaction, the phase, the id, that nonce and the seen value, verified in constant time; an unsigned, wrongly signed or other-ask answer is an error (not acknowledged), never seen. Reads only the in-memory mesh keys it already used; no store, file or record read added; a drain only fails more often, never proceeds on less. file:Read@833 e4ffe18657820278a126b9dfa0f86e973f7baf669017ee836a90cc3efcb0d5e6 |
| -@coverage internal/edge 614e7fecb803f477303ac01035994faf36c85bb938cc0b46e7481b154b802f0b |
| -@coverage internal/grouproll abed6bcdc98d46503fb8c19b743e2c17cc582a2b46e78cd090ff479d36fca0d1 |
| -@coverage internal/host 9a82591dd908e61d270d26f1aa6c931b2897892f9b7d8cb78378bec7c951fa04 |
| +internal/host/hadrain.go drainDriver.moveSteps legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (split from move): drain steps 2-5 over the activator and edge APIs; reads route Host from the activator's in-memory DrainHosts; releases and moves under one 4-way semaphore; no store or file read of its own;rev3=census-ruling-held-floor-capability;basis=held floor capability (Astra r2 F2.1): takes the verb's acknowledgement list (listed) and passes it to the drained-phase publishAndAck, which asks every listed box plus any the fold adds; nothing else changes. No read added; in-memory only. registry:Host@987,whole:Route@989 510582ac2a15ae55282bf2866b45a874d6ee8a147fa40ca3727d4cd95594bc0b |
| +internal/host/hadrain_call_linux.go drainCallExec legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new (branch review r1, Astra B1.3): builds the __drain-call child command: the pinned executable /proc/self/fd/3 (registryExecutable, as the registry child), fixed arguments (op from a fixed set, the validated transaction), empty environment, Dir "/", no stdin; the child drops to the agent user before it dials the agent socket; root reads only its bounded stdout (drainCallMax);rev3=census-ruling-held-floor-capability;basis=held floor capability (Astra r2 F2.1): root's drain-call child command gains a third argument for withdraw and move, --peers=<refs joined by commas>, when root was given a list; execDrainCall refuses a list that is not valid (validDrainPeers: at most 256 references in the edges-key grammar [A-Za-z0-9][A-Za-z0-9._-]{0,127}, no duplicates) before any child starts. Same pinned executable, empty environment, "/" directory, no stdin; the child still drops to the agent user before reading anything. No read added. file:Command@158 d1f15ed19e3837e3da1b3a703c437b7f097db7eb22bcea09f7236b3c703e2267 |
| +internal/host/hadrain_socket.go drainDriver.handler legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-held-build;basis=new: agent drain socket handler: reads the request body bounded to 4 KiB, strict JSON with one transaction field; served only to a peer SO_PEERCRED reports as root; not a file read;rev3=census-ruling-held-floor-capability;basis=held floor capability (Astra r2 F2.1): the agent's drain socket accepts an optional peers array on withdraw and move (strict JSON, unknown fields still refused; a peers field on cancel, or an invalid list, is a 400), the body bound rises from 4 KiB to 64 KiB for up to 256 references, and the list goes to drainDriver.start, which refuses a step without a valid list (errDrainNoPeers) before anything runs. Peer-credential check unchanged; no file or store read added. file:ReadAll@722 7224fbfc2069ff2b7216c9c14a33f7886b4a79cb0a687bdd3ea1d144f6c2e01d |
| +internal/edge/hadrain.go Edge.AskDrainSeen legacy accepted-legacy accepted-legacy;rev3=census-ruling-held-floor-capability;basis=held floor capability (region HA §25.4 step 1, agent manager 8a3d302, 2026-11-10): the ask gains a nonce, 16 bytes from crypto/rand in lower-case hex, inside the already signed body; the answer must carry sig, an HMAC-SHA256 under either mirrored mesh key over a distinct domain, the peer, this box, the transaction, the phase, the id, that nonce and the seen value, verified in constant time; an unsigned, wrongly signed or other-ask answer is an error (not acknowledged), never seen. Astra r2 F2.1: when the peer (from the verb's list) has no edges file in this edge's fold, it runs the existing refreshHostsNow once (the receivers' own fold read on an ask: a LIST and GETs of control/edges/ in the deployment bucket, as the agent user, bounded by haDrainRefreshTimeout) and retries controlTarget; still absent, the ask fails naming the peer. No new read kind, path or record; a drain only fails more often, never proceeds on less. file:Read@1398 7f634d395f69292d2fbb6012a65f2cec0e04ae053943052c4ff17e1249f2bd1b |
| +@coverage infra/modules/region-group-operator-document bc02dd037f5f04854964d89efcfdb72a5b10221303e346c61e62e7f85a2f0494 |
| +@coverage internal/edge 9c3f3a915e490691be4eb79789067ed1e160f5009990f70b94189c6e04ed7fb4 |
| +@coverage internal/grouproll a6158fde0d68c4123ef0f0a13c4a5e7625c201e9ab67d804a4fda37bc40fea77 |
| +@coverage internal/host 00baab19b9ed34b246421999024d672cadad9dfbd4a760e7a596b1de6fd00686 |