From 5b10c52f161d4b09581d83e42907513337d67ba0 Mon Sep 17 00:00:00 2001 From: Brad Seiler Date: Wed, 4 Nov 2026 16:32:00 -0500 Subject: [PATCH] docs: verify authorization deadline recovery and staggered closes Record the 30-second grace and jitter formula, five-second sweep granularity, and isolated writer-stall rehearsal. Include server cancellation, acquisition timeout, and pool/session recovery evidence. Co-authored-by: Honor Signed-off-by: Brad Seiler --- docs/testing/community-access-verification.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/testing/community-access-verification.md b/docs/testing/community-access-verification.md index ee152e894d..ea898da4cf 100644 --- a/docs/testing/community-access-verification.md +++ b/docs/testing/community-access-verification.md @@ -199,6 +199,20 @@ cross the community boundary. 6. Database failure/grace tests also belong in isolated rehearsal unless the owner authorizes a scoped fault. Record which guarantee is source-tested, runtime-tested, or unverified; do not infer cross-pod guarantees from a local close. + The proposed worker uses a 5-second base grace plus a stable per-socket offset + below 9 seconds, evaluated on the 5-second scan cadence. Expect outage closes + across two or three sweeps, not a continuous spread; a 6–10-second blip can + close some sockets earlier than the former 10-second grace. The conservative + bound remains 30 seconds: 5 grace + 9 jitter + 5 cadence + 2×5 scan + 1 query. + Confirmed authoritative denials still close immediately. +7. For a local isolated writer-stall rehearsal, hold a users-table lock on a + separate connection. Verify the server cancels batch statements within the + 900 ms cap (or a tighter operator cap), writer pool slots recover after both + timeout and task cancellation, and subsequent writes retain the writer's + original statement timeout. Release the lock and verify successful recovery. + Count `query_timeout`, `statement_cancelled`, and `pool_timeout` batch outcomes, along + with writer pool in-use/idle and fail-closed sessions per scan. A cancellation + error alone does not prove that the backend or pool slot was released. Removal/re-addition and unban use the authoritative state at revalidation. A transient removal restored before a scan need not disconnect an existing