Add M10.8a probe handoff schema v12 and store
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (client) (push) Successful in 12m32s
Foundation / checks (network) (push) Successful in 12m17s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 2m2s
Foundation / checks (postgres) (push) Canceled after 3m48s
Foundation / checks (checks) (push) Canceled after 16m29s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m53s
Foundation / checks (client) (push) Successful in 12m32s
Foundation / checks (network) (push) Successful in 12m17s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 2m2s
Foundation / checks (postgres) (push) Canceled after 3m48s
Foundation / checks (checks) (push) Canceled after 16m29s
ADR-0096, the persistence handoff ADR (EXPERIMENT probes, ADR-0094). Durable probe records hold one owning region per account, so ownership is unique and the test inventory is conserved by construction. A fenced transfer state machine (prepared, staged, committed, aborted) under each caller's exact region lease returns the recorded outcome on every retry; a commit requires staging by the destination's current epoch; aborts are durable and only before commit. handoff_account_control moves account control on a committed transfer. A PostgreSQL fault matrix covers restarts at each transition, stale epochs, failed destinations, partitions and commit/abort races, checking one owner and the conserved inventory after every scenario. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4679,3 +4679,50 @@ The Postgres suite was not rerun: no server code changed in M10.7.
|
||||
Not done:
|
||||
- interpolating organisms (none move);
|
||||
- a GUI run against evolution-dev (needs a v3 server).
|
||||
|
||||
## 2026-10-06 — M10.8a probe handoff schema v12 (ADR-0096)
|
||||
|
||||
Implemented:
|
||||
- `migrations/0012_probe_handoff.sql`:
|
||||
- `probe_records` and `probe_transfers`;
|
||||
- `open_probe`, `save_probe`, `prepare`, `stage`, `commit`, `abort`, `find`;
|
||||
- `handoff_account_control`;
|
||||
- SQLSTATEs EVL13-15;
|
||||
- the apply chain, migration runner, privilege audit allowlist, CI version checks and
|
||||
tamper tests;
|
||||
- the C++ store (`include/evo/persistence/probe_store.hpp`, and `handoff_account_control`
|
||||
in `account_control_store.hpp`);
|
||||
- `schemas/probe-handoff-v1.md` and the POSTGRESQL.md section.
|
||||
|
||||
`tests/probe_handoff_store_tests.cpp` (world 9200, real PostgreSQL) covers:
|
||||
- ownership and fencing; argument refusals;
|
||||
- the happy path with retries of every call before and after commit;
|
||||
- one open transfer per probe; transfer ids bound to one account;
|
||||
- crossing back;
|
||||
- source restart after prepare;
|
||||
- destination restart after staging (re-stage required; the old epoch fenced) and after
|
||||
commit (the retry answers);
|
||||
- a failed destination (source abort); a destination abort;
|
||||
- a partition (the source lease lapses while the destination commits; the recovered source
|
||||
is fenced);
|
||||
- 24 commit/abort races on separate connections (7 commits, 17 aborts; both sides always
|
||||
observed the same outcome);
|
||||
- the account-control handoff (refused before commit, for another region or account; a wait
|
||||
while the source holds control; none after release).
|
||||
|
||||
After every scenario: one row per probe, the test inventory conserved (n x 1000), and frozen
|
||||
exactly when an open transfer names the owner as source.
|
||||
|
||||
Executed:
|
||||
- **Linux GCC 14:** `postgres-check.sh` with QUIC: 21 suites, including probe handoff,
|
||||
migrations (v1-v11 upgrade paths to v12), tamper and audit checks;
|
||||
- preset `quic`: 4/4.
|
||||
- **Linux Clang 19:** clang-tidy 19 on `region_lease_store.cpp` and the new test (two
|
||||
findings fixed); clang-format 19.
|
||||
|
||||
The suite was rerun on the final code after the tidy fixes: 21 suites passed again; that
|
||||
run's races ended 11 commits, 13 aborts.
|
||||
|
||||
Not done:
|
||||
- tickets (10.8b), region wiring (10.8c) and two-process kills (10.8d);
|
||||
- deploying v12 (needs a rebuilt migrations image; a maintainer step).
|
||||
|
||||
Reference in New Issue
Block a user