region HA P3b-2: apply copy pass to roll fixes
3 files changed,
+18
−18
docs/superpowers/notes/2026-11-05-region-ha-p3b2-operator.md+13 −13internal/host/group_hairpin_retry.go+1 −1scripts/region-group-roll.py+4 −4
diff --git a/docs/superpowers/notes/2026-11-05-region-ha-p3b2-operator.md b/docs/superpowers/notes/2026-11-05-region-ha-p3b2-operator.md| index 2dc583d07..ffbf0b6af 100644 |
| --- a/docs/superpowers/notes/2026-11-05-region-ha-p3b2-operator.md |
| +++ b/docs/superpowers/notes/2026-11-05-region-ha-p3b2-operator.md |
| @@ -138,19 +138,19 @@ access keys, profile selection and endpoint overrides from child commands. |
| ## Refusal and recovery |
| -If a transaction's member has been lost, use `close-lost --transaction '<id>'` |
| -with the script that created its journal: `region-group-roll.py` for a roll |
| -or `region-group-probe.py` for a probe. Under the group lock, it requires an |
| -active, unfinished journal and fresh reads proving that the member is absent |
| -from the exact group ARN and is terminated or not found in EC2. Any other |
| -state or read error refuses closure. |
| - |
| -`close-lost` records `lost-member-closed` and finishes with outcome |
| -`failed-member-lost`. This records failure rather than recovery. It clears |
| -`active.json` without changing the group, a box or `provider-observation.json`. |
| -Any `provider-divergence.json` stays in place and is reported in the output; |
| -it continues to block rolls until the controller resolves it. The saved journal |
| -remains available through `status`. A second `close-lost` refuses. |
| +If a transaction's member is lost, use `close-lost --transaction '<id>'` with |
| +the matching script to close it: `region-group-roll.py` for a roll or |
| +`region-group-probe.py` for a probe. The script requires the group lock, an |
| +active unfinished journal, and fresh reads |
| +confirming that the member is absent from the exact group ARN and is terminated |
| +or not found in EC2. It refuses closure for any other state or read error. |
| + |
| +The `close-lost` operation records `lost-member-closed` and finishes as a |
| +`failed-member-lost` transaction. This records failure, not recovery. It clears |
| +`active.json` without changing the group, a box, or `provider-observation.json`. |
| +A `provider-divergence.json` record stays in place and is reported in the |
| +output. It continues to block rolls until the controller resolves it. The saved |
| +journal remains available through `status`. A second `close-lost` refuses. |
| Before group writes, the tool requires min=desired=max=N with N at least two, |
| all members SSM-online, healthy InService peers in both target groups, exact |
diff --git a/internal/host/group_hairpin_retry.go b/internal/host/group_hairpin_retry.go| index 5b453fb9a..4bb87e40a 100644 |
| --- a/internal/host/group_hairpin_retry.go |
| +++ b/internal/host/group_hairpin_retry.go |
| @@ -23,7 +23,7 @@ const ( |
| groupHairpinWaitText = "hairpin" |
| groupHairpinRetryFailureText = "group hairpin activation failed: code=%s; retry in %s" |
| groupHairpinAlertSubjectText = "Group hairpin enable needs attention" |
| - groupHairpinAlertBodyText = "Box %s cannot enable hairpin. Failure code: %s. Admission has stayed closed for 15 minutes. Local retries continue." |
| + groupHairpinAlertBodyText = "Box %s could not enable hairpin. Failure code: %s. Admission remains closed after 15 minutes. Local retries continue." |
| groupHairpinClearSubjectText = "Group hairpin enable recovered" |
| groupHairpinClearBodyText = "Box %s enabled hairpin and opened admission. Previous failure code: %s." |
| groupHairpinPageFailureText = "group hairpin alert delivery failed: %v" |
diff --git a/scripts/region-group-roll.py b/scripts/region-group-roll.py| index 0a9b11525..92f27b06a 100755 |
| --- a/scripts/region-group-roll.py |
| +++ b/scripts/region-group-roll.py |
| @@ -26,8 +26,8 @@ rollback restores the recorded old artifact in Standby, using a new rollback |
| permit in the same transaction. return performs only the return and cleanup |
| steps. status prints the saved transaction without contacting AWS. abandon |
| closes a transaction only before any group write intent was recorded. |
| -close-lost closes an active transaction after fresh group and EC2 reads prove |
| -the member is gone. It records failure and preserves any divergence flag. |
| +close-lost closes an active transaction after fresh group and EC2 reads confirm |
| +that the member is gone. It records failure and preserves any divergence flag. |
| An uncertain consumed box action stays in Standby for operator investigation. |
| The command never replays it, restarts a unit by hand, terminates a member, |
| @@ -93,8 +93,8 @@ TEXT = { |
| "return": "Return an already restarted and admitted member.", |
| "status": "Read the saved journal without contacting AWS.", |
| "abandon": "Close a transaction that has no group write intent.", |
| - "close-lost": "Close an active transaction whose member is confirmed gone, recording failure.", |
| - "close_lost_refused": "The member must be absent from the exact group and terminated or absent in EC2", |
| + "close-lost": "Close an active transaction after confirming that its member is gone. Record failure.", |
| + "close_lost_refused": "The member must be absent from the exact group and either terminated or absent from EC2.", |
| "lost_closed": "Transaction closed with outcome failed-member-lost. This does not record recovery.", |
| "divergence_retained": "Provider divergence flag retained: {path}", |
| "abandoned": "Transaction abandoned before any group write intent.", |