Fix M9.4-M9.7 review findings in the dev session stack
- TLS: replace send() with a bounded queue/flush; an interrupted record is retried with identical arguments and later frames wait behind it, so no queued frame is lost or reordered; close() flushes first. - Carriers: server-issued 'I','N' | 48-bit epoch | 64-bit ordinal ids replace the aliasing low-32-bit packing; client sequences are kept separately for replies; out-of-range epochs are refused, never truncated. - Grants: a durable, fsynced, fail-closed consumed-grant ledger (--session-grant-ledger, /objects/dev-session-grants.v1 in dev) keeps single-use grants consumed across process and pod restarts. - Liveness: protocol v1 (undeployed) gains Heartbeat and the timeout close reason; both sides heartbeat when idle and treat 5 s of silence as dead. - Client sends are bounded and unresolved tracking starts at send time. - ci-client configures with an explicit C compiler. Each finding has a regression test; ADR-0083, the schema, operations doc and VALIDATION record the corrections. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,9 +37,13 @@ kubectl -n evolution-dev create secret generic evolution-dev-session \
|
||||
--from-file=grant.key=$HOME/aevolution-dev-session/grant.key
|
||||
```
|
||||
|
||||
The Deployment mounts it optionally (0440). Rotation: create new credentials,
|
||||
replace the Secret, restart evo-region, redistribute `dev-ca.pem`. Old grants stop
|
||||
verifying with the new key.
|
||||
The Deployment mounts it optionally (0440). Consumed grants are recorded in
|
||||
`/objects/dev-session-grants.v1` on the region's persistent volume (fsynced before
|
||||
each Welcome), so a restarted pod refuses grants its predecessor used. Corrupt or
|
||||
unwritable ledgers fail closed (`error session-grant-ledger`, or sessions refused).
|
||||
|
||||
Rotation: create new credentials, replace the Secret, restart evo-region and
|
||||
redistribute `dev-ca.pem`. Old grants stop verifying with the new key.
|
||||
|
||||
## 4. Session drill (enables sessions temporarily, then restores Git values)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user