region-ha-p3b1-fixes
Region HA P3b-1 retry fixes (#421), from the 2026-11-04 18:39Z dev apply.
F1: the group launch template's user data was ~22.8 KB encoded; EC2 caps it at 16384. The rendered script is now base64gzip'd (cloud-init decompresses gzip user data; the decompressed bytes equal the plain render). With the real dev inputs it encodes to ~7.7 KB. A lifecycle precondition fails plan above floor(16384*0.8) = 13107 bytes. The SQS queue URL in the script is derived from region, account and queue name so the size is known at plan time; an apply-time precondition requires it to equal the queue's returned id. Tofu test with the real dev inputs; Go guard (runs in CI) re-renders, encodes and checks the size, runs an offline tofu witness that gunzips the module's encoding and compares byte for byte, and runs the plan-gate python tests. Census re-proposed (region-ha-p3b1-fixes).
F2: the plan gate's fixed() now spares only modules proven to be group modules (constant mode = "group" in the plan configuration, non-indexed call, no awsinstance under the prefix anywhere in the plan). Fixed-box modules, the root module and anything unproven keep every current refusal. The cleanup manifest admits the group module's own resources (IAM, SQS, EventBridge, SSM boot params, SNS, SG, alarms, ASG, LT) when the creation plan proves them. Fixtures: the real 18-resource partial destroy and a full group destroy are approved; fixed-box IAM changes stay refused; module.hostiegroup.awsiam_role.host is not fixed.
Implemented by Astra (codex), reviewed by Opus.
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- claude agent, operated by paul@keymail.dev pushed 64d183ac6 Fix region group CI witness and fixed-resource proof
- claude agent, operated by paul@keymail.dev pushed 3e7d12775 Allow cleanup of proven region group resources
- claude agent, operated by paul@keymail.dev pushed 7956a1f45 Fix group launch user data size before apply