region-host: capacity alarm comment states the 5/5 trade-offs exactly
Astra R1 P2: a period breaches when the group is short or an ASG input is missing (FILL), so 5/5 is five breaching periods, not five minutes short, and latency sits inside the window. The comment now says so. The approved alarm description is kept verbatim. P3: supersession notes in the two P3 plans that specified 1/1. Census re-proposed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 files changed,
+21
−11
docs/superpowers/notes/census-proposal-group-capacity-damping.md+2 −2docs/superpowers/plans/2026-11-01-region-ha-p3-group.md+3 −0docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md+3 −0infra/modules/region-host/group_alarms.tf+9 −5internal/provision/testdata/plan14-root-reads-chain.tsv+1 −1internal/provision/testdata/plan14-root-reads-group-capacity-damping.tsv+3 −3
CI failed — run details
diff --git a/docs/superpowers/notes/census-proposal-group-capacity-damping.md b/docs/superpowers/notes/census-proposal-group-capacity-damping.md| index 3911149af..8b12b0b07 100644 |
| --- a/docs/superpowers/notes/census-proposal-group-capacity-damping.md |
| +++ b/docs/superpowers/notes/census-proposal-group-capacity-damping.md |
| @@ -4,7 +4,7 @@ Ruling `census-ruling-group-capacity-damping`. The independent reviewer approves |
| | unit | change | read sites | what changed | |
| |---|---|---|---| |
| -| `infra/modules/region-host/group_alarms.tf` `external` | body | unchanged (1) | group_capacity alarm: evaluation_periods and datapoints_to_alarm 1 -> 5 (alarms after 5 of 5 one-minute periods short), description and comment updated; same metric math, threshold, missing-data handling and actions. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. | |
| +| `infra/modules/region-host/group_alarms.tf` `external` | body | unchanged (1) | group_capacity alarm: evaluation_periods and datapoints_to_alarm 1 -> 5 (alarms after 5 of 5 one-minute periods breaching), comment updated, description unchanged; same metric math, threshold, missing-data handling and actions. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. | |
| | `infra/modules/region-host/tests/group_alarms.tftest.hcl` `external` | body | unchanged (1) | Assert the group capacity alarm window is 5 of 5 (was 1 of 1) and update its message. Mock-provider test only, no root runtime read. | |
| Envelopes re-pinned: `infra/modules/region-host`, `infra/modules/region-host/tests`. |
| @@ -16,6 +16,6 @@ Recorded dispositions, which each change must still satisfy: |
| - `infra/modules/region-host/group_alarms.tf` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Add default-off termination queue age alarm, using existing queue name and regional SNS topic; no IAM, queue, consumer or instance changes. Copy sweep 1: apply approved variable and alarm descriptions verbatim; no resource, threshold, action or read changes.;rev3=census-ruling-region-ha-p3b;basis=Add group capacity, memory, clock, missing-clock and launch-failure notifications; preserve account-owner SNS rights and scope CloudWatch/EventBridge publishers by source account/ARN. Operator-applied Terraform, no box file read; notifications grant no replacement authority.;rev3=census-ruling-region-ha-g2-t3;basis=T3b: add one group-mode SuspectHolderHosts Maximum alarm, 60 seconds, 1 of 1, threshold greater than zero, missing data notBreaching, existing regional SNS actions and ASG dimension. No replacement, scale, IAM, storage or root runtime authority.;rev3=census-ruling-region-ha-g3-fixes;basis=Send existing queue, group and launch-failure notifications to the selected regional SNS topic. Keep externally owned topic policy and subscriptions outside this module; no replacement or scale authority and no new root runtime read. |
| - `infra/modules/region-host/tests/group_alarms.tftest.hcl` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Add plan-only mock queue alarm defaults, thresholds, missing-data and regional notification assertions.;rev3=census-ruling-region-ha-p3b;basis=Mock group metric producers, alarm dimensions/windows/missing data and complete scoped SNS policy; retain fixed alarm expectations. Test-only Terraform input, no root runtime read.;rev3=census-ruling-region-ha-p3b1-fixes;basis=Supply the real-shape group queue URL in the group alarm mock so the launch URL equality guard is exercised. Mock plans only; no runtime reads.;rev3=census-ruling-region-ha-g2-t3;basis=T3b: pin fixed-mode zero count, group shape, regional SNS actions and non-breaching missing data for the new alarm; mock-provider test only, no root runtime read. |
| -Seal: `43260792034a1a20791d14c4e4476e762b40d7bcca64257ef2e9899da6af5df0` → `20c1d07970cec7fc99fa89a3171209e632119a58e79f2785a73a2eac70adb0f7`. |
| +Seal: `43260792034a1a20791d14c4e4476e762b40d7bcca64257ef2e9899da6af5df0` → `f021a34c3ff3415fb3aa46029891acd22255fa030b34480885dce852f1216833`. |
| Overlay: `internal/provision/testdata/plan14-root-reads-group-capacity-damping.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/docs/superpowers/plans/2026-11-01-region-ha-p3-group.md b/docs/superpowers/plans/2026-11-01-region-ha-p3-group.md| index b1bd581fe..91f2eb17b 100644 |
| --- a/docs/superpowers/plans/2026-11-01-region-ha-p3-group.md |
| +++ b/docs/superpowers/plans/2026-11-01-region-ha-p3-group.md |
| @@ -272,6 +272,9 @@ The admitted check refuses startup/shutdown; the start callback additionally pro |
| | Local set-aside / files / migration | Reason counts; oldest continuous unpublished >300s, snapshot >2 configured intervals, partial/backfill failure and migration refusal; existing runtime producers, migration slice owns its signal; **I2**. | |
| | Wake without eligible capacity | Existing per-region/hour notification from placement, not a new per-box alarm sender; **A20/H4**. | |
| +> **Superseded 2026-11-11 (branch group-capacity-damping, Paul via 8a3d302):** the group-capacity alarm is now 5 of 5 one-minute periods, not 1 of 1, because planned member launches (1-2 min short) fired it on every launch. See the comment on `group_capacity` in `infra/modules/region-host/group_alarms.tf`. |
| + |
| + |
| - [ ] **Step 4 — verify sources and routing.** PASS local/mock tests; exercise every threshold/recovery/missing-data case with fake time. At integration, each non-P3 row must cite the actual merged producer or remain a named G2 blocker; writing an alarm with no stream does not complete §20. Migration/backfill signals are conditional on that later feature, not a requirement to build migration before G2. Add no migration feature just to produce its alarm. Verify subscriptions before live faults; alarm lag is recorded separately from failover time. |
| - [ ] **Step 5 — commit**, bundled with its visible slice; deferred producers are not implemented against branch previews. |
diff --git a/docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md b/docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md| index 3b5d85838..eb3f8802d 100644 |
| --- a/docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md |
| +++ b/docs/superpowers/plans/2026-11-04-region-ha-p3b-group.md |
| @@ -193,6 +193,9 @@ The first **live** step of P3b-2 is one approved disposable Enter/ExitStandby ob |
| - [ ] Extend actual simulation with boot/hook/response-loss/admission/first-direct-service hang, pre-admission departure delivery/redelivery/failed boot, and both no-hook and Pending:Wait maintenance-return actions; retain I1–I6 and merged production predicates. Mutation pre-admission service and failed-health completion must fail; one serial nice-19 3,000-seed sweep per implementation revision. Do not model unmerged drain as complete. Run named metrics/budget/mock tests; no extra task review solely for metrics. |
| - [ ] Complete census/whole-branch review and Task 8's first-service subsection under a dated scoped go. Reuse dev ingress or separately approved group ingress, set console full ingress **before** group publication, roll all readers first, verify exact SSM path reads with the actual box role, and show signed release/version and hapair service. No empty NLB acceptance. N-HA19 settles D1/D2; the dated execution card remains required before build; P2b merge is **not** a prerequisite for this limited observation. Only then land P3b-1 through amadan with exact-tip green CI; read main CI afterward. |
| +> **Superseded 2026-11-11 (branch group-capacity-damping, Paul via 8a3d302):** the group-capacity alarm is now 5 of 5 one-minute periods, not 1 of 1, because planned member launches (1-2 min short) fired it on every launch. See the comment on `group_capacity` in `infra/modules/region-host/group_alarms.tf`. |
| + |
| + |
| ### Task 7: Operator Standby roll and T1/I4 witness [own review: root/termination] |
| **Files:** later, separate `platform-infrastructure` branch: proposed `scripts/roll-region-group.sh`, proposed `scripts/tests/roll-region-group-test.sh` for fake-AWS/transport tests, `dev/region-ha-group.tf`, and `docs/superpowers/notes/2026-11-04-region-ha-p3b-dev-drill.md`. These are proposed private paths, not existing interfaces. This planning commission writes none of them. Platform changes, if needed by testing, remain in Task 4's reviewed guard. |
diff --git a/infra/modules/region-host/group_alarms.tf b/infra/modules/region-host/group_alarms.tf| index dfc5128fb..9d8e5f10d 100644 |
| --- a/infra/modules/region-host/group_alarms.tf |
| +++ b/infra/modules/region-host/group_alarms.tf |
| @@ -35,14 +35,18 @@ locals { |
| # return, replacement) leaves the group one short for one to two minutes: |
| # 76 such ALARM/OK pairs on the dev IE and flagship US groups between |
| # 2026-11-04 and 11-11, none longer than two minutes, which taught people |
| -# to ignore this alarm. A real shortfall now pages after five minutes |
| -# instead of one; a member that never comes back still pages, and so do |
| -# five minutes of missing data. Launch failures page on their own through |
| -# the EventBridge rule below. |
| +# to ignore this alarm. It now needs five consecutive breaching periods |
| +# instead of one, about four periods later for the same data. A period |
| +# breaches when the group is short OR an ASG input is missing (FILL makes |
| +# a late sample breach), so five periods mixing the two also alarm, and a |
| +# late sample can delay the clear. A member that never comes back still |
| +# pages. A shortfall that clears within any five periods does not page |
| +# here; launch failures notify separately through the EventBridge rule |
| +# below (best effort, no added window). |
| resource "aws_cloudwatch_metric_alarm" "group_capacity" { |
| count = var.mode == "group" ? 1 : 0 |
| alarm_name = "${var.name}-group-capacity" |
| - alarm_description = "Fewer group members have been in service than the current desired capacity for 5 minutes. Check launch failures and member health." |
| + alarm_description = "Fewer group members are in service than the current desired capacity. Check launch failures and member health." |
| comparison_operator = "LessThanThreshold" |
| threshold = 0 |
| evaluation_periods = 5 |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 305139fbf..5387bbcd4 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -165,4 +165,4 @@ plan14-root-reads-demo-terms-links.tsv c8e2c7ed3850823a8e379d880738982772b870ad8 |
| plan14-root-reads-fix-silent-start-kill-861.tsv 733204d61bea49fe418d8ff0f1bfa20d77bdffb1f08a216d9de92923eea22557 |
| plan14-root-reads-group-bucket-region.tsv 733204d61bea49fe418d8ff0f1bfa20d77bdffb1f08a216d9de92923eea22557 |
| plan14-root-reads-w6-ingress-drain.tsv 43260792034a1a20791d14c4e4476e762b40d7bcca64257ef2e9899da6af5df0 |
| -plan14-root-reads-group-capacity-damping.tsv 20c1d07970cec7fc99fa89a3171209e632119a58e79f2785a73a2eac70adb0f7 |
| +plan14-root-reads-group-capacity-damping.tsv f021a34c3ff3415fb3aa46029891acd22255fa030b34480885dce852f1216833 |
diff --git a/internal/provision/testdata/plan14-root-reads-group-capacity-damping.tsv b/internal/provision/testdata/plan14-root-reads-group-capacity-damping.tsv| index 8e94d4e51..2b6516950 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-group-capacity-damping.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-group-capacity-damping.tsv |
| @@ -1,8 +1,8 @@ |
| # Census overlay group-capacity-damping, written by census-propose (#369). census-ruling-group-capacity-damping, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-group-capacity-damping.md. |
| # 2 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| -@legacy 07497d3f9f6d867ef276933446048ca8245ed269585142d395bf2546aa9b8f5d infra/modules/region-host/group_alarms.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Add default-off termination queue age alarm, using existing queue name and regional SNS topic; no IAM, queue, consumer or instance changes. Copy sweep 1: apply approved variable and alarm descriptions verbatim; no resource, threshold, action or read changes.;rev3=census-ruling-region-ha-p3b;basis=Add group capacity, memory, clock, missing-clock and launch-failure notifications; preserve account-owner SNS rights and scope CloudWatch/EventBridge publishers by source account/ARN. Operator-applied Terraform, no box file read; notifications grant no replacement authority.;rev3=census-ruling-region-ha-g2-t3;basis=T3b: add one group-mode SuspectHolderHosts Maximum alarm, 60 seconds, 1 of 1, threshold greater than zero, missing data notBreaching, existing regional SNS actions and ASG dimension. No replacement, scale, IAM, storage or root runtime authority.;rev3=census-ruling-region-ha-g3-fixes;basis=Send existing queue, group and launch-failure notifications to the selected regional SNS topic. Keep externally owned topic policy and subscriptions outside this module; no replacement or scale authority and no new root runtime read.;rev3=census-ruling-group-capacity-damping;basis=group_capacity alarm: evaluation_periods and datapoints_to_alarm 1 -> 5 (alarms after 5 of 5 one-minute periods short), description and comment updated; same metric math, threshold, missing-data handling and actions. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. file:external@0 4b760dbd47b6877ae42c4c9375118f6f0ea1ddb12f3bf9b04a216187823ac43e |
| +@legacy 79beeddb7d0dd4e3fa941bcdac7240aa2b2559cb0f1a52f058e62c0478ed4a65 infra/modules/region-host/group_alarms.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Add default-off termination queue age alarm, using existing queue name and regional SNS topic; no IAM, queue, consumer or instance changes. Copy sweep 1: apply approved variable and alarm descriptions verbatim; no resource, threshold, action or read changes.;rev3=census-ruling-region-ha-p3b;basis=Add group capacity, memory, clock, missing-clock and launch-failure notifications; preserve account-owner SNS rights and scope CloudWatch/EventBridge publishers by source account/ARN. Operator-applied Terraform, no box file read; notifications grant no replacement authority.;rev3=census-ruling-region-ha-g2-t3;basis=T3b: add one group-mode SuspectHolderHosts Maximum alarm, 60 seconds, 1 of 1, threshold greater than zero, missing data notBreaching, existing regional SNS actions and ASG dimension. No replacement, scale, IAM, storage or root runtime authority.;rev3=census-ruling-region-ha-g3-fixes;basis=Send existing queue, group and launch-failure notifications to the selected regional SNS topic. Keep externally owned topic policy and subscriptions outside this module; no replacement or scale authority and no new root runtime read.;rev3=census-ruling-group-capacity-damping;basis=group_capacity alarm: evaluation_periods and datapoints_to_alarm 1 -> 5 (alarms after 5 of 5 one-minute periods breaching), comment updated, description unchanged; same metric math, threshold, missing-data handling and actions. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. file:external@0 5a50c6413335f8deb821552dc1cf4a811e02f67bdfac49e75a11c0d0f382b19e |
| @legacy 674f4270a71ac724298658e6ae347810c6b3102b47255ce15a552f5bdfcd5baf infra/modules/region-host/tests/group_alarms.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Add plan-only mock queue alarm defaults, thresholds, missing-data and regional notification assertions.;rev3=census-ruling-region-ha-p3b;basis=Mock group metric producers, alarm dimensions/windows/missing data and complete scoped SNS policy; retain fixed alarm expectations. Test-only Terraform input, no root runtime read.;rev3=census-ruling-region-ha-p3b1-fixes;basis=Supply the real-shape group queue URL in the group alarm mock so the launch URL equality guard is exercised. Mock plans only; no runtime reads.;rev3=census-ruling-region-ha-g2-t3;basis=T3b: pin fixed-mode zero count, group shape, regional SNS actions and non-breaching missing data for the new alarm; mock-provider test only, no root runtime read.;rev3=census-ruling-group-capacity-damping;basis=Assert the group capacity alarm window is 5 of 5 (was 1 of 1) and update its message. Mock-provider test only, no root runtime read. file:external@0 1180c329fff3d82e5f03e7792cb4c2435b6f3e03762b9b62762f615daeff5787 |
| -infra/modules/region-host/group_alarms.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Add default-off termination queue age alarm, using existing queue name and regional SNS topic; no IAM, queue, consumer or instance changes. Copy sweep 1: apply approved variable and alarm descriptions verbatim; no resource, threshold, action or read changes.;rev3=census-ruling-region-ha-p3b;basis=Add group capacity, memory, clock, missing-clock and launch-failure notifications; preserve account-owner SNS rights and scope CloudWatch/EventBridge publishers by source account/ARN. Operator-applied Terraform, no box file read; notifications grant no replacement authority.;rev3=census-ruling-region-ha-g2-t3;basis=T3b: add one group-mode SuspectHolderHosts Maximum alarm, 60 seconds, 1 of 1, threshold greater than zero, missing data notBreaching, existing regional SNS actions and ASG dimension. No replacement, scale, IAM, storage or root runtime authority.;rev3=census-ruling-region-ha-g3-fixes;basis=Send existing queue, group and launch-failure notifications to the selected regional SNS topic. Keep externally owned topic policy and subscriptions outside this module; no replacement or scale authority and no new root runtime read.;rev3=census-ruling-group-capacity-damping;basis=group_capacity alarm: evaluation_periods and datapoints_to_alarm 1 -> 5 (alarms after 5 of 5 one-minute periods short), description and comment updated; same metric math, threshold, missing-data handling and actions. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. file:external@0 4b760dbd47b6877ae42c4c9375118f6f0ea1ddb12f3bf9b04a216187823ac43e |
| +infra/modules/region-host/group_alarms.tf external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Add default-off termination queue age alarm, using existing queue name and regional SNS topic; no IAM, queue, consumer or instance changes. Copy sweep 1: apply approved variable and alarm descriptions verbatim; no resource, threshold, action or read changes.;rev3=census-ruling-region-ha-p3b;basis=Add group capacity, memory, clock, missing-clock and launch-failure notifications; preserve account-owner SNS rights and scope CloudWatch/EventBridge publishers by source account/ARN. Operator-applied Terraform, no box file read; notifications grant no replacement authority.;rev3=census-ruling-region-ha-g2-t3;basis=T3b: add one group-mode SuspectHolderHosts Maximum alarm, 60 seconds, 1 of 1, threshold greater than zero, missing data notBreaching, existing regional SNS actions and ASG dimension. No replacement, scale, IAM, storage or root runtime authority.;rev3=census-ruling-region-ha-g3-fixes;basis=Send existing queue, group and launch-failure notifications to the selected regional SNS topic. Keep externally owned topic policy and subscriptions outside this module; no replacement or scale authority and no new root runtime read.;rev3=census-ruling-group-capacity-damping;basis=group_capacity alarm: evaluation_periods and datapoints_to_alarm 1 -> 5 (alarms after 5 of 5 one-minute periods breaching), comment updated, description unchanged; same metric math, threshold, missing-data handling and actions. tofu only, run on an operator machine; no read is added and nothing on a box reads the file. file:external@0 5a50c6413335f8deb821552dc1cf4a811e02f67bdfac49e75a11c0d0f382b19e |
| infra/modules/region-host/tests/group_alarms.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p3a;basis=Add plan-only mock queue alarm defaults, thresholds, missing-data and regional notification assertions.;rev3=census-ruling-region-ha-p3b;basis=Mock group metric producers, alarm dimensions/windows/missing data and complete scoped SNS policy; retain fixed alarm expectations. Test-only Terraform input, no root runtime read.;rev3=census-ruling-region-ha-p3b1-fixes;basis=Supply the real-shape group queue URL in the group alarm mock so the launch URL equality guard is exercised. Mock plans only; no runtime reads.;rev3=census-ruling-region-ha-g2-t3;basis=T3b: pin fixed-mode zero count, group shape, regional SNS actions and non-breaching missing data for the new alarm; mock-provider test only, no root runtime read.;rev3=census-ruling-group-capacity-damping;basis=Assert the group capacity alarm window is 5 of 5 (was 1 of 1) and update its message. Mock-provider test only, no root runtime read. file:external@0 1180c329fff3d82e5f03e7792cb4c2435b6f3e03762b9b62762f615daeff5787 |
| -@coverage infra/modules/region-host a7447fbc687f106943efec620ab3449a064f94e3898df6c4171f8dea41aefdf5 |
| +@coverage infra/modules/region-host 4840daf00fb1298be31c7a38a03b2c72da085dd09949f19650e6429b5e5d66dc |
| @coverage infra/modules/region-host/tests da426764959112acb9eba280a61938710e551c1aef02ef0cb7e4f04c217598ec |