Add M8.4 region host deployment, provisioning hook and drill

Deploy evo-region per environment (ADR-0071): one replica with the
Recreate strategy (a rolling update would deadlock on the lease),
/readyz readiness, /livez liveness, no CPU limit and a drain inside the
grace period, with the image digest doubling as the build identity. A
new idempotent evo-world-clone provision subcommand creates genesis from
development_opening (byte-identical to the qualification fixture) as a
Sync hook after the migration. Dev and stage paths include their region;
a dev AppProject allows Deployment and Service; region-drill.sh times
rollout and forced-deletion recovery; the policy check enforces the
host's invariants.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-09-29 21:32:56 -04:00
co-authored by Claude Opus 5.5
parent 98240ef96e
commit 8ef69fab1d
27 changed files with 879 additions and 159 deletions
+23
View File
@@ -116,6 +116,29 @@ this evidence in docs/engineering/VALIDATION.md:
the Secret. The check must exit 3 with `database refused connect`.
- Update the Secret's `pgpass` and sync again. It must exit 0.
## Region host (M8.4, ADR-0071)
`deploy/kubernetes/<env>` includes `stores/<env>` and `region/<env>`. A sync runs:
1. the database egress policy (wave −2);
2. the migration hook (wave −1);
3. the provisioning hook (wave 0, idempotent);
4. the `evo-region` Deployment and `evo-region-ops` Service (wave 1);
5. the store check (PostSync).
Dev is world 100, region 1; stage is world 200, region 1. The server image digest
in `region/<env>` is also the build identity.
Before the first region sync, apply `deploy/argocd/dev/project.yaml` (it allows
Deployment and Service), and label the store node.
Evidence: `bash tools/ops/region-drill.sh dev` (dev or stage only; World0 is
refused). It records the time to Ready after a rollout restart and after a forced
pod deletion, and checks that the new epoch resumed at the committed tick. Also
record:
- the Argo sync result;
- the first pod's `phase running epoch=... committed=...` line;
- that `/readyz` stays 503 while a replacement waits out the lease.
## Break-glass
How membership is granted is not decided yet; see docs/BACKLOG.md. Until it is,