carlos / platform Public

docs: group roll verb design names ha_handover for the floor

The floor reads every present edges file's ha_handover (region HA §25.9,
held-floor-capability), not ha_take. Agent manager 8a3d302 asked for the
design doc to match.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 13d1f98d7c2807af99393d0170b6b2135db3cd3f parent 0152e38
1 file changed, +1 −1
  • docs/superpowers/specs/2026-11-09-group-roll-verb-design.md +1 −1

CI failed — run details

Intent

Human

<task-notification> <task-id>aaac076393ec2af43</task-id> <tool-use-id>toolu_01QAfmKztsd7PyyHQzpv3cps</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/a99cbe46-f458-4f72-8b8a-294aae9cdf21/tasks/aaac076393ec2af43.output</output-file> <status>completed</status> <summary>Agent "Build held-floor-capability" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>I made the fix as one commit on `held-floor-capability`: **0152e38e** "region HA: floor counts every edges file by ha_handover" (55-character subject, body, Co-Authored-By line). Nothing was pushed, merged or released, and nothing live was touched. **What changed** - **Edges file (F-a):** every pass of this build now writes `ha_handover: 1` on every box, whatever its capabilities and whatever `CARLOS_REGION_HA` says. It sits next to `ha_take` in `internal/host/edgesfile.go`. `ha_take` is unchanged. Its other readers keep their meaning: `takeCapable`/`PeerTakes` in `internal/edge/hatake.go`, and `admitReplacement` in `internal/grouproll/depart.go`, which checks the replacement member. - **Floor (F-b):** `Engine.Floor` in `internal/grouproll/floor.go` reads `ha_handover` instead of `ha_take`. It counts every edges file in the `control/edges/` listing with no age test, including files with no readable generation. - Anything other than the integer 1 is a DR-4 reason naming the box (`floor_box`, now "Box {box} does not publish ha_handover: 1"). - An unreadable file still refuses with `floor_error`. - The journalled `live` key keeps its name, so the journal format doesn't change; it now lists every box counted. - The floor did not share code with DrainAckPeers (that lives in internal/edge and internal/host), so DrainAckPeers is untouched. The floor's own age constants are deleted. - **Spec:** the §24 Scripts row now states the new rule. E13 now says `ha_handover` never makes a box a take candidate. A new E14 row covers the `ha_handover` reader: it reads every box the same way whether or not it is a member, and leftover files fail safe. §25.9 has a new bullet on why there is no age test, and §25.11 now says fixed boxes need only a release at the floor, not `CARLOS_REGION_HA`. No em dashes added. - **Script:** one header line added to `scripts/region-group-roll.py`; its logic is not patched. - **Parity ledger:** the three `ha_take` floor rows now point at the renamed Go tests with a ruling note. `test_stale_box_is_not_live` is now `does-not-apply`, citing the ruling. **Tests (written first; all failed before the code change)** - Edges file: a box without region HA publishes `ha_handover: 1` and no `ha_take`; an HA box publishes both. Five golden wire bodies were updated (host tests, `edges-p2b-golden.json`, `edges-forward-hub.json`). - Floor: - Files 6 hours and 7 days old, 16 minutes old, 2 hours ahead of the clock, or with no readable generation are counted, and meet the floor when they say `ha_handover: 1`. - Any of them without it, `ha_take: 1` alone included, gives DR-4 naming the box. - `1.0`, `1e0`, `true`, `"1"`, 2, 0 and a missing value don't count. - Unreadable files are still an error. - With `ha_take` absent everywhere the floor still drains. - Depart tests cover the same through the real flow (`TestDepartCountsOldEdgesFiles`, `TestDepartFloorRefused`). - Take candidates: a peer with only `ha_handover: 1` is never sent a take (new case in `TestTakeOnlyToAPeerThatSaysSo`). - Results: - Full `internal/grouproll` package, simulations and parity ledger included: ok (311 s). - Targeted internal/edge tests: ok. Targeted internal/host tests: ok. internal/console capacity tests: ok. - Cross-builds for darwin/arm64, windows/amd64 and linux/arm64: ok. - `go vet` on the three changed packages: ok. `gofmt`: clean. - Two internal/host tests fail the same way on the untouched base commit, so they are not from this change: `TestClaimEgressIsInTheRuntimeResourcesBeforeTheAssembly` and `TestClaimEgressIsClosedThroughTheClaimWiring` ("hostwrite: lifecycle provider unavailable"). - Running `go vet` with GOOS=darwin fails on test helpers in internal/edge and internal/host test files this commit doesn't touch; CI only builds for darwin. **Mutations (each applied, then reverted)** 1. Putting the 15-minute/60-second age test back fails `TestFloorCountsEveryEdgesFileWhateverItsAge` and `TestDepartCountsOldEdgesFiles`. 2. Reading `ha_take` instead of `ha_handover` fails 17 tests, including `TestFloorIgnoresHATake`, `TestFloorFixedForwarderWithoutHAHandover` and `TestDepartFloorRefused`. 3. Extra check: writing `ha_handover` only on HA boxes fails `TestEdgesFileAdvertisesHATake` for the non-HA cases. **Census** - `make census-card` shows one unit, `internal/host/edgesfile.go` `edgesFileWriteClaims`, as a body change with read sites unchanged (70). The `internal/grouproll` and `internal/host` envelopes are re-pinned. - `make census-propose NAME=held-floor-capability` wrote `internal/provision/testdata/plan14-root-reads-held-floor-capability.tsv`, its chain line, and `docs/superpowers/notes/census-proposal-held-floor-capability.md`. The seal is unchanged (`837f27a6…0b58`). The internal/provision census tests and internal/host census tests pass. - The group-name producer inventory digest for `edgesFileWriteClaims` was re-pinned to `f19e0a65…d9d7`. No other record-write census digests moved. - Reviewer approval from the other model family is still owed. - The CLAIMS file is at `.superpowers/held-floor-capability-claims.tsv` (git-excluded). Its full text is one tab-separated line: ``` internal/host/edgesfile.go:edgesFileWriteClaims 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. ``` **Runbook sentences that state the old rule** (`docs/region-ha-runbook.md`, not edited) - Line 62: "The tool checks this before each transaction: every live box in the region, fixed forwarders included, must publish `ha_take: 1`, and for `replace` the release the launch template boots must be at or above `ha_floor`." - Line 64: "A fixed box that forwards into the region needs `CARLOS_REGION_HA=1` in its host.env. Without it, the box publishes no `ha_take`, and the region stays on DR-4." **Not done, and things to know** - `docs/superpowers/specs/2026-11-09-group-roll-verb-design.md:195` still says "The floor: edges files, `ha_take`, …". It wasn't in the brief, so I left it. - I changed the `floor_box` message text in `internal/grouproll/text.go` without a copy review, on the reading that it is a diagnostic. - `go test` could not write to the default Go cache (`~/.cache/go-build`) inside the sandbox, so Go commands ran outside it, with GOCACHE left at its default. - Git reported a lock error on `/home/paulca/amadan.net/carlos/platform/.git/packed-refs.lock` (empty, dated 11:02, before this session started), but the commit is on the branch. I left that file alone. - My temporary worktree and mktemp directories are removed. - Rollout: every box needs a release carrying this commit before the new floor lets a group drain. Until then, boxes still on older releases keep the region on DR-4.</result> <usage><subagent_tokens>148886</subagent_tokens><tool_uses>76</tool_uses><duration_ms>2178432</duration_ms></usage> </task-notification>

Human

<paseo-system version="1" kind="agent-message" source-agent-id="8a3d302a-eac7-407c-b61c-f5ccc66b5544" message-id="4eceaa31-840a-4e59-bffc-a1e9ad968133"> Agent manager 8a3d302: good. Yes, fix the design doc line in this branch. For the runbook (docs/region-ha-runbook.md lines 62 and 64): draft replacement sentences that say every box in the deployment must publish ha_handover: 1, which any box on the release does without CARLOS_REGION_HA, and that a stale file from a dead box refuses until it&apos;s removed. Open a copy review for Paul with just those strings, on a small docs branch, and send me the link. Don&apos;t change the runbook until he approves. </paseo-system>

diff --git a/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md b/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md
index 4375bc964..4d6463d5b 100644
--- a/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md
+++ b/docs/superpowers/specs/2026-11-09-group-roll-verb-design.md
@@ -192,7 +192,7 @@ with a `_other.go` sibling, per the cross-compile gate.
| | Target health in each target group |
| `Classify` (the script's `classify()`) and `TerminateDecision` (`terminate_decision()`) | Lower or raise minimum; raise desired (H4: never lower) |
| Preflight shape rules, readiness, identity, permit and process checks over box status | Park a member: `EnterStandby` with decrement; unpark: `ExitStandby` |
-| The floor: edges files, `ha_take`, the pinned and the prepared release (§9) | Terminate a parked member without decrement |
+| The floor: every present edges file's `ha_handover` (no age test; region HA §25.9), the pinned and the prepared release (§9) | Terminate a parked member without decrement |
| The drain, the H5 pre-action check, the lock sweep (S3-compatible reads of the data bucket) | Scaling activities for one member, classified enter, exit or terminate |
| The depart watch and its reports | The lifecycle hook description; whether a member is online for sessions; whether an instance is gone |
| The box-verb protocol: the framed remote command and parsing its output | Running one framed remote command on one member (Session Manager) |