carlos / platform Public

grouproll: an enforced generations floor

Group config gains generations_floor (an optional release, decoded and
validated as ha_floor is, and recorded in the begin row's config). While
it is set, Floor refuses with floor_generations, never DR-4, when a
replace's pinned template boots a release below it, a roll's release is
below it, or any present edges file lacks replica-generations-1; the
findings are journaled in a floor-error row naming generations_floor and
said. The roll's prepare refuses a release below it too, before any group
write, so a lock-free member never rolls on. Unset, behaviour is
unchanged. The production value is v0.39.0 (slice 0); nothing here sets
it on a live group.

Five new operator strings (floor_generations and its four findings) are
owed a copy review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev c5ddae7869d08b860fd928bd12bb70ef5076e0d3 parent a469055
7 files changed, +344 −11
  • internal/grouproll/config.go +15 −2
  • internal/grouproll/config_test.go +37 −0
  • internal/grouproll/floor.go +81 −6
  • internal/grouproll/floor_test.go +193 −0
  • internal/grouproll/roll.go +6 −0
  • internal/grouproll/text.go +8 −0
  • internal/grouproll/text_test.go +4 −3

CI failed — run details

diff --git a/internal/grouproll/config.go b/internal/grouproll/config.go
index d47fa9f34..b77d6b0e0 100644
--- a/internal/grouproll/config.go
+++ b/internal/grouproll/config.go
@@ -32,6 +32,16 @@ type Config struct {
DataBucket *string `json:"data_bucket,omitempty"`
DataPrefix *string `json:"data_prefix,omitempty"`
+ // GenerationsFloor is the enforced floor of region HA storage
+ // generations (spec 2026-11-12 §9; ruling A, 2026-11-17). Unlike
+ // ha_floor it is a hard gate: while it is set, Floor and the roll's
+ // prepare refuse (floor_generations, never DR-4) a roll or replacement
+ // to a release below it, and Floor refuses while any edges file lacks
+ // replica-generations-1. The floor release is the first release that
+ // refuses a generations lock (slice 0, v0.39.0). nil is unset: today's
+ // behaviour.
+ GenerationsFloor *string `json:"generations_floor,omitempty"`
+
// SHA-pinned release mapping (§25.9). ReleasePublicKey keeps the
// config's text, surrounding space included, as the script does.
ReleasePublicKey *string `json:"release_public_key,omitempty"`
@@ -72,7 +82,7 @@ var (
var requiredKeys = []string{"deployment", "account", "region", "group", "group_arn", "hook",
"target_groups", "bucket", "document", "state_dir", "profile", "min_release"}
-var optionalKeys = []string{"ha_floor", "data_prefix", "data_bucket",
+var optionalKeys = []string{"ha_floor", "generations_floor", "data_prefix", "data_bucket",
"release_public_key", "release_channels", "release_platform", "fixed_boxes", "no_fixed_boxes"}
// boxRef is a box reference as an edges key names it (EdgesKey).
@@ -177,6 +187,9 @@ func ValidateConfig(v any) (Config, error) {
if out.HAFloor, ok = optional("ha_floor", releaseVersion.MatchString); !ok {
return Config{}, invalid
}
+ if out.GenerationsFloor, ok = optional("generations_floor", releaseVersion.MatchString); !ok {
+ return Config{}, invalid
+ }
if out.DataBucket, ok = optional("data_bucket", Bucket.MatchString); !ok {
return Config{}, invalid
}
@@ -274,7 +287,7 @@ func (c Config) Map() map[string]any {
"profile": c.Profile, "min_release": c.MinRelease,
}
for k, p := range map[string]*string{
- "ha_floor": c.HAFloor, "data_bucket": c.DataBucket, "data_prefix": c.DataPrefix,
+ "ha_floor": c.HAFloor, "generations_floor": c.GenerationsFloor, "data_bucket": c.DataBucket, "data_prefix": c.DataPrefix,
"release_public_key": c.ReleasePublicKey, "release_platform": c.ReleasePlatform,
} {
if p != nil {
diff --git a/internal/grouproll/config_test.go b/internal/grouproll/config_test.go
index 31211261e..6b8d6ad9d 100644
--- a/internal/grouproll/config_test.go
+++ b/internal/grouproll/config_test.go
@@ -247,3 +247,40 @@ func TestLoadConfig(t *testing.T) {
t.Errorf("missing: %v, want record", err)
}
}
+
+// generations_floor is an optional release, decoded and validated as
+// ha_floor is; Map carries it so the begin row records it. The floor
+// judges it against ha_floor, data_bucket and data_prefix.
+func TestConfigGenerationsFloor(t *testing.T) {
+ for name, c := range map[string]map[string]any{
+ "held": with(heldConfig(), "generations_floor", "v0.39.0"),
+ "v-less": with(heldConfig(), "generations_floor", "0.39.0"),
+ "without ha keys": with(baseConfig(), "generations_floor", "v0.39.0"),
+ } {
+ got, err := ValidateConfig(c)
+ if err != nil {
+ t.Fatalf("%s: refused: %v", name, err)
+ }
+ if got.GenerationsFloor == nil || *got.GenerationsFloor != c["generations_floor"] {
+ t.Fatalf("%s: GenerationsFloor = %v", name, got.GenerationsFloor)
+ }
+ if !reflect.DeepEqual(got.Map(), normalizeForTest(t, c)) {
+ t.Fatalf("%s: Map() = %#v, want %#v", name, got.Map(), c)
+ }
+ }
+ if got, err := ValidateConfig(heldConfig()); err != nil || got.GenerationsFloor != nil {
+ t.Fatalf("absent: %v, %v", got.GenerationsFloor, err)
+ }
+ for name, c := range map[string]map[string]any{
+ "next": with(heldConfig(), "generations_floor", "next"),
+ "pre": with(heldConfig(), "generations_floor", "v0.39.0-rc1"),
+ "short": with(heldConfig(), "generations_floor", "v0.39"),
+ "empty": with(heldConfig(), "generations_floor", ""),
+ "not string": with(heldConfig(), "generations_floor", int64(1)),
+ "null": with(heldConfig(), "generations_floor", nil),
+ } {
+ if _, err := ValidateConfig(c); refusalKey(err) != "config_invalid" {
+ t.Errorf("%s: %v, want config_invalid", name, err)
+ }
+ }
+}
diff --git a/internal/grouproll/floor.go b/internal/grouproll/floor.go
index e06d4f13f..4fc822663 100644
--- a/internal/grouproll/floor.go
+++ b/internal/grouproll/floor.go
@@ -54,6 +54,18 @@ const floorPopulation = "all-files-v1"
// pointers contradict) journals floor-error, says each error and refuses
// with floor_error. It never falls back to DR-4. A chosen rule journals
// floor and says the rule and each reason.
+//
+// generations_floor, when set, is a hard gate (ruling A, 2026-11-17):
+// the floor release is the first release that refuses a generations lock
+// (slice 0, v0.39.0). A replace whose pinned template boots a release
+// below it, a roll to a release below it, or any present edges file whose
+// capabilities lack replica-generations-1 (whatever the kind) refuses
+// with floor_generations, never DR-4: a box below it would take a
+// generations lock as an ordinary HA lock and restore stale root data.
+// So does a generations_floor without ha_floor, data_bucket and
+// data_prefix, which the floor is read with. The findings journal
+// floor-error among its errors and are said; the floor-error and floor
+// rows carry generations_floor. Unset, nothing changes.
func (e *Engine) Floor(ctx context.Context, kind, version string) (rule string, err error) {
// reasons are definite findings below the floor, so DR-4 applies.
// errs mean the floor could not be read: refuse, never fall back.
@@ -63,8 +75,18 @@ func (e *Engine) Floor(ctx context.Context, kind, version string) (rule string,
if e.c.HAFloor != nil {
haFloor = *e.c.HAFloor
}
+ // gens are findings below generations_floor: refuse, never DR-4.
+ gens := []any{}
+ genFloor, generations := "", e.c.GenerationsFloor != nil
+ if generations {
+ genFloor = *e.c.GenerationsFloor
+ }
+ belowGenerations := func(version string) bool { return generations && belowFloor(version, genFloor) }
if e.c.HAFloor == nil || e.c.DataPrefix == nil || e.c.DataBucket == nil {
reasons = append(reasons, Text("floor_config"))
+ if generations {
+ gens = append(gens, Text("floor_config"))
+ }
} else {
floor := *e.c.HAFloor
err := func() error {
@@ -106,6 +128,9 @@ func (e *Engine) Floor(ctx context.Context, kind, version string) (rule string,
if handover, ok := edges["ha_handover"].(int64); !ok || handover != 1 {
reasons = append(reasons, Text("floor_box", "box", m[1]))
}
+ if generations && !hasCapability(edges, capReplicaGenerations1) {
+ gens = append(gens, Text("floor_generations_box", "box", m[1]))
+ }
}
// A declared fixed box with no file may still serve and
// forward (its first PUT failed): DR-4, naming it.
@@ -133,12 +158,20 @@ func (e *Engine) Floor(ctx context.Context, kind, version string) (rule string,
if belowFloor(mapped, floor) {
reasons = append(reasons, Text("floor_template_sha", "sha", rel, "release", mapped))
}
+ if belowGenerations(mapped) {
+ gens = append(gens, Text("floor_generations_template_sha", "sha", rel, "release", mapped))
+ }
}
case !releaseVersion.MatchString(rel):
// A suffixed release cannot be compared.
errs = append(errs, Text("floor_template", "release", rel))
- case belowFloor(rel, floor):
- reasons = append(reasons, Text("floor_template", "release", rel))
+ default:
+ if belowFloor(rel, floor) {
+ reasons = append(reasons, Text("floor_template", "release", rel))
+ }
+ if belowGenerations(rel) {
+ gens = append(gens, Text("floor_generations_template", "release", rel))
+ }
}
}
compare := kind == "roll"
@@ -161,8 +194,13 @@ func (e *Engine) Floor(ctx context.Context, kind, version string) (rule string,
if compare {
if !releaseVersion.MatchString(version) {
errs = append(errs, Text("floor_version", "release", version))
- } else if belowFloor(version, floor) {
- reasons = append(reasons, Text("floor_version", "release", version))
+ } else {
+ if belowFloor(version, floor) {
+ reasons = append(reasons, Text("floor_version", "release", version))
+ }
+ if belowGenerations(version) {
+ gens = append(gens, Text("floor_generations_version", "release", version))
+ }
}
}
return nil
@@ -174,6 +212,9 @@ func (e *Engine) Floor(ctx context.Context, kind, version string) (rule string,
errs = append(errs, reasonOf(err))
}
}
+ if len(gens) > 0 {
+ return "", e.generationsRefusal(append(errs, gens...), reasons)
+ }
if len(errs) > 0 {
if _, err := e.event("floor-error", map[string]any{"errors": errs, "reasons": reasons}); err != nil {
return "", err
@@ -187,8 +228,12 @@ func (e *Engine) Floor(ctx context.Context, kind, version string) (rule string,
if len(reasons) > 0 {
rule = "dr4"
}
- if _, err := e.event("floor", map[string]any{"rule": rule, "reasons": reasons, "live": live, "population": floorPopulation,
- "ha_floor": haFloor, "releases": releases}); err != nil {
+ row := map[string]any{"rule": rule, "reasons": reasons, "live": live, "population": floorPopulation,
+ "ha_floor": haFloor, "releases": releases}
+ if generations {
+ row["generations_floor"] = genFloor
+ }
+ if _, err := e.event("floor", row); err != nil {
return "", err
}
if rule == "drain" {
@@ -202,6 +247,36 @@ func (e *Engine) Floor(ctx context.Context, kind, version string) (rule string,
return rule, nil
}
+// capReplicaGenerations1 is the capability every box that reads and
+// writes storage generations publishes (internal/host's edges file).
+const capReplicaGenerations1 = "replica-generations-1"
+
+// hasCapability: the edges file's capabilities is a list naming name.
+func hasCapability(edges map[string]any, name string) bool {
+ list, _ := edges["capabilities"].([]any)
+ for _, c := range list {
+ if c == name {
+ return true
+ }
+ }
+ return false
+}
+
+// generationsRefusal journals a floor-error row naming generations_floor
+// (errs holds the findings below it and any read errors), says each
+// error, and returns the floor_generations refusal: a box below the
+// generations floor must never serve the group, so no rule applies.
+func (e *Engine) generationsRefusal(errs, reasons []any) error {
+ if _, err := e.event("floor-error", map[string]any{"errors": errs, "reasons": reasons,
+ "generations_floor": *e.c.GenerationsFloor}); err != nil {
+ return err
+ }
+ for _, reason := range errs {
+ e.say("floor", reason.(string))
+ }
+ return refuse("floor_generations")
+}
+
// rollRelease is the roll --to-sha256 mapping (§9): the release the
// signed router pointers name for sha, which must be the release the
// member's prepare reported. A different one is the release_mismatch
diff --git a/internal/grouproll/floor_test.go b/internal/grouproll/floor_test.go
index fc7479177..c4916d502 100644
--- a/internal/grouproll/floor_test.go
+++ b/internal/grouproll/floor_test.go
@@ -745,3 +745,196 @@ func TestRollRelease(t *testing.T) {
t.Fatalf("err = %v, want release_mismatch", err)
}
}
+
+// The enforced generations floor (Task 13; ruling A, 2026-11-17): while
+// generations_floor is set, a candidate release below it, or a present
+// edges file without replica-generations-1, refuses the transaction with
+// floor_generations and journals floor-error. It is never DR-4, so a
+// lock-free member is refused too.
+
+const generationsCap = "replica-generations-1"
+
+// newGenerationsHarness is newFloorHarness with generations_floor v0.39.0,
+// every box publishing replica-generations-1, and the template pinned at
+// v0.39.0: a floor every check meets.
+func newGenerationsHarness(t *testing.T, withKey bool) *harness {
+ t.Helper()
+ h := newFloorHarness(t, withKey)
+ floor := "v0.39.0"
+ h.c.GenerationsFloor = &floor
+ h.f.c = h.c
+ h.f.templateRelease = "v0.39.0"
+ h.capabilities(func(string) []any { return []any{"lifetimes-1", generationsCap} })
+ return h
+}
+
+// capabilities sets each edges file's capabilities by box ref (nil leaves
+// the key out).
+func (h *harness) capabilities(caps func(box string) []any) {
+ h.f.wrap = func(op string, args map[string]any, r any, err error) (any, error) {
+ e, ok := r.(map[string]any)
+ if op != "edges" || err != nil || !ok {
+ return r, err
+ }
+ box, _ := args["box_ref"].(string)
+ if c := caps(box); c != nil {
+ e["capabilities"] = c
+ } else {
+ delete(e, "capabilities")
+ }
+ return e, nil
+ }
+}
+
+// generationsRefused: Floor refused with floor_generations, said reason,
+// journaled it among the floor-error row's errors, and chose no rule.
+func (h *harness) generationsRefused(t *testing.T, r floorRun, reason string) {
+ t.Helper()
+ var ref Refusal
+ if !errors.As(r.err, &ref) || ref.Key != "floor_generations" || r.rule != "" {
+ t.Fatalf("Floor = %q, %v; want the floor_generations refusal", r.rule, r.err)
+ }
+ out := h.out.String()
+ if strings.Contains(out, Text("rule_dr4")) || strings.Contains(out, Text("rule_drain")) {
+ t.Fatalf("a rule was said: %q", out)
+ }
+ if !strings.Contains(out, Text("line", "phase", "floor", "detail", reason)) {
+ t.Fatalf("output %q lacks %q", out, reason)
+ }
+ if r.row(t, "floor") != nil {
+ t.Fatal("a floor row was journaled")
+ }
+ row := r.row(t, "floor-error")
+ if row == nil || !containsValue(row["errors"], reason) || row["generations_floor"] != *h.c.GenerationsFloor {
+ t.Fatalf("floor-error row = %v, want %q among its errors", row, reason)
+ }
+ if _, ok := row["reasons"].([]any); !ok {
+ t.Fatalf("floor-error row has no reasons list: %v", row)
+ }
+}
+
+func TestFloorRefusesBelowGenerationsFloor(t *testing.T) {
+ // A roll to a release at or above ha_floor but below generations_floor.
+ h := newGenerationsHarness(t, false)
+ h.generationsRefused(t, h.floor("roll", "v0.38.0"), Text("floor_generations_version", "release", "v0.38.0"))
+ // Below both floors: today's DR-4, now refused.
+ h = newGenerationsHarness(t, false)
+ h.generationsRefused(t, h.floor("roll", "v0.34.0"), Text("floor_generations_version", "release", "v0.34.0"))
+ // The release the signed pointers map the roll's SHA to.
+ h = newGenerationsHarness(t, true)
+ h.rollPointer(t, "v0.38.0")
+ h.generationsRefused(t, h.floor("roll", "v0.38.0"), Text("floor_generations_version", "release", "v0.38.0"))
+ // A replacement boots the pinned template's release.
+ h = newGenerationsHarness(t, false)
+ h.f.templateRelease = "v0.38.0"
+ h.generationsRefused(t, h.floor("replace", ""), Text("floor_generations_template", "release", "v0.38.0"))
+ h = newGenerationsHarness(t, true)
+ h.f.templateRelease = floorCurrent // v0.35.1
+ h.generationsRefused(t, h.floor("replace", ""),
+ Text("floor_generations_template_sha", "sha", floorCurrent, "release", "v0.35.1"))
+ // generations_floor needs the floor config it is read with.
+ h = newGenerationsHarness(t, false)
+ h.c.HAFloor = nil
+ h.f.c = h.c
+ h.generationsRefused(t, h.floor("remove", ""), Text("floor_config"))
+ if len(h.f.ops()) != 0 {
+ t.Fatalf("calls %v without a floor config", h.f.ops())
+ }
+ // At the floor, every box capable: the floor drains and records it.
+ h = newGenerationsHarness(t, false)
+ row := h.drained(t, h.floor("roll", "v0.39.0"))
+ if row["generations_floor"] != "v0.39.0" {
+ t.Fatalf("floor row generations_floor = %v", row["generations_floor"])
+ }
+ h = newGenerationsHarness(t, false)
+ h.drained(t, h.floor("replace", ""))
+}
+
+// A lock-free member's roll to a release below generations_floor stops
+// at prepare, before any group write, and never reaches DR-4.
+func TestRollRefusesBelowGenerationsFloor(t *testing.T) {
+ h := newHarnessWith(t, stateRoot(t), 2, func(c *Config) {
+ floor := "v0.39.0"
+ c.GenerationsFloor = &floor
+ })
+ h.f.version = "v0.38.0"
+ if err := h.runRoll(); refusalKey(err) != "floor_generations" {
+ t.Fatalf("roll = %v", err)
+ }
+ if !reflect.DeepEqual(h.f.writes, []string{"prepare"}) {
+ t.Fatalf("writes %v", h.f.writes)
+ }
+ reason := Text("floor_generations_version", "release", "v0.38.0")
+ row, _ := h.txJournal(h.onlyTx()).Last("floor-error", nil)
+ if row == nil || !containsValue(row["errors"], reason) || row["generations_floor"] != "v0.39.0" {
+ t.Fatalf("floor-error row = %v", row)
+ }
+ if !strings.Contains(h.out.String(), reason) || strings.Contains(h.out.String(), Text("rule_dr4")) {
+ t.Fatalf("output %q", h.out.String())
+ }
+}
+
+func TestFloorRefusesMemberWithoutGenerationsCapability(t *testing.T) {
+ for name, caps := range map[string][]any{
+ "other capabilities": {"lifetimes-1", "region-ha-1"},
+ "no capabilities": nil,
+ "empty list": {},
+ } {
+ for _, box := range []string{ref(fakePeer), ref(fakeIID), "adi"} {
+ for _, kind := range []string{"replace", "remove", "roll"} {
+ t.Run(name+"/"+box+"/"+kind, func(t *testing.T) {
+ h := newGenerationsHarness(t, false)
+ h.capabilities(func(b string) []any {
+ if b == box {
+ return caps
+ }
+ return []any{generationsCap}
+ })
+ h.generationsRefused(t, h.floor(kind, "v0.39.0"), Text("floor_generations_box", "box", box))
+ })
+ }
+ }
+ }
+ // A capabilities value that is not a list of strings lacks it.
+ h := newGenerationsHarness(t, false)
+ h.f.wrap = func(op string, args map[string]any, r any, err error) (any, error) {
+ if e, ok := r.(map[string]any); ok && op == "edges" && args["box_ref"] == "adi" {
+ e["capabilities"] = generationsCap
+ }
+ return r, err
+ }
+ h.generationsRefused(t, h.floor("replace", ""), Text("floor_generations_box", "box", "adi"))
+ // A box below both floors (no ha_handover, no capability) is refused,
+ // not DR-4.
+ h = newGenerationsHarness(t, false)
+ h.f.haHandover[ref(fakePeer)] = nil
+ h.capabilities(func(b string) []any {
+ if b == ref(fakePeer) {
+ return nil
+ }
+ return []any{generationsCap}
+ })
+ r := h.floor("replace", "")
+ h.generationsRefused(t, r, Text("floor_generations_box", "box", ref(fakePeer)))
+ if !containsValue(r.row(t, "floor-error")["reasons"], Text("floor_box", "box", ref(fakePeer))) {
+ t.Fatalf("floor-error reasons = %v", r.row(t, "floor-error")["reasons"])
+ }
+}
+
+// Unset, the generations floor reads nothing new and records nothing:
+// boxes without replica-generations-1 still drain.
+func TestFloorGenerationsFloorUnset(t *testing.T) {
+ h := newFloorHarness(t, false)
+ r := h.floor("roll", "v0.35.0")
+ row := h.drained(t, r)
+ if _, ok := row["generations_floor"]; ok {
+ t.Fatalf("floor row = %v, want no generations_floor", row)
+ }
+ h = newFloorHarness(t, false)
+ h.f.templateRelease = "v0.34.9"
+ r = h.floor("replace", "")
+ h.refused(t, r, Text("floor_template", "release", "v0.34.9"))
+ if _, ok := r.row(t, "floor")["generations_floor"]; ok {
+ t.Fatal("a DR-4 floor row names generations_floor")
+ }
+}
diff --git a/internal/grouproll/roll.go b/internal/grouproll/roll.go
index edcf5afe0..557275443 100644
--- a/internal/grouproll/roll.go
+++ b/internal/grouproll/roll.go
@@ -943,6 +943,12 @@ func (e *Engine) prepare(ctx context.Context) error {
if belowFloor(version, e.c.MinRelease) {
return refuse("release_floor")
}
+ // The enforced generations floor refuses here, before any group
+ // write; the floor step checks the release the signed pointers map
+ // the artifact to again.
+ if g := e.c.GenerationsFloor; g != nil && belowFloor(version, *g) {
+ return e.generationsRefusal([]any{Text("floor_generations_version", "release", version)}, []any{})
+ }
_, err = e.event("prepared", map[string]any{"result": p})
return err
}
diff --git a/internal/grouproll/text.go b/internal/grouproll/text.go
index 0164a7842..8ef4f1ec5 100644
--- a/internal/grouproll/text.go
+++ b/internal/grouproll/text.go
@@ -157,6 +157,14 @@ var text = map[string]string{
"help_group": "Attended maintenance of one member of a region's Auto Scaling group: roll it to a new release, replace it, or remove it, one transaction at a time. Run it from the deployment's operator account.",
"help_probe": "The Standby observation probe: park an unchanged member and return it to record that the group has no return hook.",
"docs_cli_system_group": "#### carlos system group: maintain one group member\n\nAttended maintenance of one member of a region's Auto Scaling group. It replaces\n`scripts/region-group-roll.py`. Run it from the deployment's operator account on\nthe operator machine named in the card. Never run it as root or on a box. It\nneeds the AWS profile named in the group config and the Session Manager plugin\non PATH. Every command takes flags only. `--config` names the group config file.\n\n```sh\ncarlos system group plan --config ie.json --member i-0abc --to-sha256 <sha>\ncarlos system group roll --config ie.json --member i-0abc --to-sha256 <sha>\ncarlos system group replace --config ie.json --member i-0abc\ncarlos system group remove --config ie.json --member i-0abc\ncarlos system group resume --config ie.json --transaction <id>\ncarlos system group status --config ie.json --transaction <id>\ncarlos system group cancel-drain --config ie.json --member i-0abc --transaction <id>\ncarlos system group probe start --config ie.json --member i-0abc\n```\n\nOne transaction runs per group at a time. A replace or remove drains the member\nfirst, so its hosts move to other members before the member stops. If a step\ncannot be proved, the command stops and keeps the transaction for `resume`. It\nnever guesses. `plan` changes nothing. `status` reads the saved transaction\nwithout contacting AWS.",
+
+ // The enforced generations floor (Task 13, 2026-11-17), not yet through
+ // copy review.
+ "floor_generations": "The generations floor is not met, so this transaction is refused. Nothing was changed.",
+ "floor_generations_box": "Box {box} does not publish replica-generations-1",
+ "floor_generations_version": "The roll's release {release} is below generations_floor",
+ "floor_generations_template": "The pinned launch template boots release {release}, below generations_floor",
+ "floor_generations_template_sha": "The pinned launch template boots artifact {sha}, release {release}, below generations_floor",
}
var placeholder = regexp.MustCompile(`\{([a-z_]+)\}`)
diff --git a/internal/grouproll/text_test.go b/internal/grouproll/text_test.go
index cab9b7478..709b0d42d 100644
--- a/internal/grouproll/text_test.go
+++ b/internal/grouproll/text_test.go
@@ -18,9 +18,10 @@ func TestTextRendersEveryKey(t *testing.T) {
// another region than the group, 2026-11-10), and remote_said (the
// member's own refusal, 2026-11-11); bucket_region, remote_said and the
// fixed remove_minimum approved in copy review 2026-11-11 (Paul,
- // unchanged).
- if len(text) != 147 {
- t.Fatalf("text has %d keys, want the 139 approved plus 8", len(text))
+ // unchanged). Plus floor_generations and its four findings (the
+ // enforced generations floor, 2026-11-17), not yet through copy review.
+ if len(text) != 152 {
+ t.Fatalf("text has %d keys, want the 139 approved plus 13", len(text))
}
for key, raw := range text {
var args []string