M10.9d: batch durable action lookups (one per poll, one per commit)
Foundation / checks (deploy) (push) Successful in 3m27s
Foundation / checks (ecs) (push) Successful in 1m57s
Foundation / checks (client) (push) Successful in 12m41s
Foundation / checks (network) (push) Successful in 13m33s
Foundation / checks (tsan) (push) Successful in 7m54s
Foundation / checks (checks) (push) Successful in 32m56s
Foundation / checks (postgres) (push) Successful in 46m10s
Foundation / postgres-tools (push) Successful in 18s
Foundation / image (push) Successful in 2m33s
Foundation / server-image (push) Successful in 4m24s

The fourth dev drill showed a synchronous PostgreSQL round trip per action on the
simulation thread: at admission (uniqueness) and again at commit (first-record rule).
About 12 lookups landed on each commit tick (commit ticks 58-70 ms, session p99 30-39 ms).

- ActionLedger::find_all; persistence::find_region_actions applies the schema v11
  find_region_action to many pairs in one statement (no migration).
- IntentAdmission::admit/verify: actions only the ledger can refuse wait for one verify
  per poll; receipts still go out in the same poll. committed() asks once per commit.
- Tests: deferred_actions (network_control), find_region_actions and find_all (Postgres).
- ADR-0097 fourth run, ADR-0092 amendment, VALIDATION; refresh the dev session window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-08 21:35:43 -04:00
co-authored by Claude Opus 5.5
parent 3ee22694cc
commit 07d12a4d82
13 changed files with 430 additions and 45 deletions
+24
View File
@@ -5254,3 +5254,27 @@ Executed:
Not done:
- shellcheck: not installed in this WSL.
- The fourth drill (needs the new image, a fresh bundle and the go-ahead).
## 2026-10-09 — M10.9d fourth evolution-dev drill, batched durable lookups
Fourth drill (image `754446fe…`, 01:00–01:06 UTC, restored Ready):
- 24 sessions within the client budgets;
- the server was not within budgets v2 (commit ticks 58–70 ms, session p99 30–39 ms).
The cause was one synchronous store round trip per action, at admission and again at
commit (ADR-0097, fourth run). Fix:
- `ActionLedger::find_all` and `find_region_actions` (one statement over the schema v11
function, no migration);
- `IntentAdmission::admit`/`verify`, with one verify per poll in `RegionSessions`;
- one request per commit.
Executed:
- WSL Release `quic`: build, plus the quic, network, ops-contracts and session-fuzz CTest
(6/6), passed.
- The 18 Postgres suites, passed. They include the new `find_region_actions` checks:
order, absent pairs, empty, fenced, and `PostgresActionLedger::find_all`.
- `deferred_actions` in `network_control`.
- clang-tidy 19 on the changed sources, clean after two fixes.
- Windows `debug` 60/60, `quic` 5/5, `client-network` 15/15.
Not done: the fifth drill (needs the new image, a fresh bundle and the go-ahead).