Complete M7.6 bounded authoritative region host

ADR-0064: RegionHost<State> (environmental and lineage profiles) is a
single-owner, single-threaded state machine advanced by step(now):
acquire the fenced lease and recover the verified head, run, resolve
ambiguous commits, drain and stop, or quarantine. Admission is
provisional and bounded (64 inputs, 64 KiB) with backpressure; FinalAck
and FinalOutcome are emitted only after a confirmed commit, and inputs
that will never be acknowledged are reported with a reason. Ticks follow
the caller's scheduling clock with bounded catch-up and measured tick
debt, never invented inputs. A death seals the batch and commits in the
same step, so no dependent tick uses an uncommitted outcome. Storage
outages pause and retry, unknown outcomes resolve by exact bytes,
fencing discards unconfirmed work and re-acquires; readiness fails
closed. Drain commits pending ticks and releases the lease.

evo-server hosts one region with a bounded stdin input feed, stdout
event lines, a readiness file and SIGTERM drain (exit 0/3/4).

Validated: Windows CTest 58/58; PostgreSQL suites under GCC Release,
clang-tidy and ASan/UBSan including real-process SIGTERM drain and
SIGKILL with successor recovery; four host mutations each caught. No
gateway, metrics, Docker/Gitea CI or deployment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-09-28 20:53:11 -04:00
co-authored by Claude Opus 5.5
parent ab4bf5355f
commit d6d0408aae
15 changed files with 1934 additions and 3 deletions
+9
View File
@@ -201,3 +201,12 @@ M7.5 (ADR-0063) executed its rows against real PostgreSQL:
Recovery now reconciles durable deaths with the restored lifecycle, so the
checkpoint and durable history must agree. Kill tests at each boundary remain
M7.7.
M7.6 (ADR-0064) executed its host rows:
- A paused stale host fences itself when renewals cannot reach the database. It
reports unconfirmed inputs as never final and re-acquires from the head.
- A death pauses the region in the same step as its commit.
- A storage outage keeps the sealed batch waiting with nothing acknowledged.
- Shutdown drains, commits and releases.
- A real SIGKILLed `evo-server` left no acknowledged tick uncommitted, and its
successor became ready only after lease expiry, from the committed head.