docs/qualification
README.md
Qualification evidence#
The first complete protocol run passed 338/338, with no failures or skips, against real Neon Postgres, Realtime, and Object Storage. Subscriptions were enabled. The suite is pinned to upstream commit 461b40267aabd644558f9b19dbb9507dd5f691cf and npm conformance package 0.3.7. A second full run after introducing installation fencing also passed all 338 cases (748 seconds). CI must independently verify each exact committed revision; local hosted-service results do not substitute for that job.
Historical load profiles with four writers, eight streams, and 16 readers assign each writer to one fixed stream: eight readers receive data and eight are idle connections. Their byte/digest checks include the expected empty histories. They qualify those workloads, not 16 readers receiving every append. New reports expose the writing-stream and active/idle-reader counts, and the manual workflow defaults to four streams so all 16 readers receive writes. Compare this mapping as well as connection count when comparing runs.
Current focused evidence includes 49 unit/property tests, 75 integration/Neon cases, nine actually deployed Function cases (including three public HTTPS webhook tests), two cron-free deployed hint cases, and a real WAL-LSN child-branch recovery drill. See development and operations for their scope.
2026-11-22-load-smoke.json records a 20-second probe, using a Node.js client in London against a deployed Function in aws-eu-central-1, Postgres compute configured for 0.25–1 CU, pool maximum five, four writers, sixteen live readers, eight binary streams, and 1 KiB records. It acknowledged and then replayed 1,009 unique records after sealing, with no observed errors. Append p50/p95 were 69.87/81.10 ms; observed live p50/p95 were 86.30/99.25 ms. The report includes the exact deployed bundle hash. Other qualification Functions shared the account.
The ten-minute baseline in 2026-11-22-load-600-baseline.json acknowledged and replayed 38,360 records, about 63.93 appends/second, through 16 live readers and 144 SSE rotations. There were no observed request errors, missing records, duplicates, or producer-order failures. Append p95 was 75.93 ms; observed live p95 was 4.43 seconds. During writes the recovery-only worker accumulated 274 frozen chunks, 31.1 MB of local payloads, and 18,912 pending changes. Explicit post-load maintenance drained them before replay. Connection counts went from 11 to 18 and include other branch activity; this is not yet an explanation of per-instance pool behavior.
This is a passing data-safety probe, with a demonstrated maintenance-capacity gap. It does not qualify steady-state operation: the example's old eight-chunk/16-change-work batches once per minute did not keep up with this profile. The next profile needs tuned bounded worker budgets, opportunistic maintenance with cron recovery, and better catch-up paging/egress measurements. The live latency tail also needs explanation and improvement.
Both reports target bundle 6020396ec0b27839aeee6e63810e5e50f368ebf14ba38bd28ae3cc06b7002724, built from the consumer/core implementation at 5b2cd97. The baseline harness source is captured by c39adc5. The older report's commit field captures the checkout when its report was written; b22c167 was committed while the long probe replayed data, and was not deployed into that probe. The bundle hash identifies the actual measured server.
That probe establishes harness functionality and a short sample. It does not establish a sustained capacity, availability, cold-start, or recovery guarantee. Its final forced maintenance drained the workload; it does not prove the default cron budget can keep up indefinitely. Physical GC, restored backups older than the drill, mixed-version rollout, in-place restore, and broader failure/overload profiles remain open gates.
Run a reproducible profile on a recorded disposable Function environment:
DS_LOAD_SECONDS=600 DS_LOAD_WRITERS=4 DS_LOAD_LIVE_READERS=16 \
mise exec node@24 -- node --env-file=.env.neon.test --env-file=.env.neon.function scripts/qualify-load.mjs
The harness refuses an unrecorded branch/Function combination. It measures append acknowledgments and observed live delivery, follows durable SSE checkpoints through rotations, samples frozen/local/outbox backlog every 30 seconds, forces bounded sealing after the workload, and compares exact binary records and producer order during full replay. A run fails on lost/duplicate/reordered records, failed requests, buffer/record bounds, missing live data, or an undrained sealing backlog. Raw JSON reports are saved under ignored qualification-results/; promote reviewed reports here with their context. The Deployed Neon load qualification manual GitHub workflow provisions and removes its own environment and retains the reports as artifacts.
Live latency is measured from the client starting the append through that client observing its payload, so it includes network transit and duplicates across readers. Database connection counts include other activity on the branch and do not measure per-isolate memory or pool queues. Add those measurements before treating this as complete production qualification.
A subsequent 120-second diagnostic on the same unchanged baseline bundle added an independent direct Realtime head watcher. At 64.37 appends/second, append p95 was 75.33 ms, head coverage p95 was 6,102.33 ms, and SSE payload p95 was 6,159.15 ms. Median head/SSE times were 61.95/79.57 ms. All 7,729 records replayed correctly. This places most of the observed tail in the Realtime delivery path in that run; it does not yet distinguish service processing from SDK delivery or client-specific behavior. See 2026-11-22-live-head-baseline.json. Notifications and payload observations were measured from append start on one client clock; the probe ran in London while the Function was in Frankfurt.
The revised profile has passed all 62 Neon/integration cases, nine deployed Function checks with hints disabled, the point-in-time branch drill, and two deployed hint cases on a separate branch whose trigger list is empty. Its sustained comparison is pending. New reports capture the harness revision/hash at startup, deployed revision/dirty state and bundle hash separately, plus drain/replay duration and sampled connection counts. Verification uses at most four concurrent replay requests.
Matched 30/120-second query-shape diagnostics are recorded in 2026-11-22-realtime-shapes-{30,120}.json. The longer probe observed 6,408 appends with no errors or missing rows. Head/materialized, head/raw, append/materialized, and append/raw p95 were 91.88/92.61/101.18/101.76 ms. Every live query was unordered. These results support direct payload delivery but do not explain the earlier multi-second tail or qualify capacity. The supplied reports record bundle 930df346…, matching the then-recorded maintenance-profile deployment metadata; the forwarded description called it 6020396e…. The reports are preserved unchanged. See the payload contract.
The payload implementation committed in f79d35e passed 47 unit cases, all 74 existing-plus-payload Neon/integration cases, a separate paused-reader regression, nine deployed Function checks, two deployed hints-only checks, and the point-in-time branch recovery drill. Its complete unfiltered real-Neon conformance run passed 338/338, with subscriptions enabled, no failures or skips, in 574.58 seconds. This run used a London test coordinator and the Frankfurt Neon branch. Subsequent cancellation-drain hardening passed 49 unit cases, all 75 Neon/integration cases, and packed-consumer validation; its unfiltered conformance rerun also passed 338/338 in 585.56 seconds. See 2026-11-22-conformance-drain.json for the result at 7f74599. The previous committed GitHub run (45061324687, b22c167) passed build, ingress, integration, and branch recovery, then failed 20 of 338 conformance cases from a distant runner. Several failures involve short upstream SSE/TTL/lease deadlines. CI now uses a separate US-east-1 project to reduce that network delay, preserving the suite and all assertions; its first complete run (45067370100, f79d35e) passed every job, including 338/338 conformance tests with no failures or skips (523.17 seconds for the suite). The cancellation follow-up is being qualified separately in CI.
The load workflow deploys the production example's 5-second head fallback and 1-second lifecycle/epoch validation intervals. Realtime correctness/ingress fixtures use 60 seconds for both to keep periodic SQL outside their assertion deadline. NEON_TEST_LIVE_FALLBACK_MS and NEON_TEST_LIVE_VALIDATION_MS select these deployment values; new reports record them separately from the bundle hash. Compare these settings as well as readers, writers, region, hints, cron, and background activity when interpreting latency.
The committed raw-payload/combined-maintenance profile (d186ade, bundle 9612d181…) completed a ten-minute Frankfurt probe with the same 4 writers, 16 SSE readers, 8 paths, and 1 KiB record size. It acknowledged and exactly replayed 34,458 records at 57.43 appends/second. Append p95/p99 were 82.31/139.05 ms; live p95/p99 were 90.33/154.15 ms; independent head coverage p95 was 78.97 ms. Sampled backlog peaked at 2 frozen chunks, 497,664 local bytes, and 3 pending changes; post-write samples reached zero pending changes. All reader checkpoints had caught up before stop, final sealing took 1.24 seconds, and replay took 13.92 seconds. There were no observed errors. See 2026-11-22-load-600-payload.json. Other qualification used separate branches in the same account. This was a closed-loop profile, not a controlled arrival-rate or overload test, and does not establish an isolated cause for the baseline's latency tail.
That ten-minute harness verified durable record identities/order and live checkpoint coverage, but did not independently compare every reader's complete live byte sequence. The revised harness adds an ordered rolling SHA-256 per reader and compares it with the corresponding exact durable replay, using constant per-reader checksum state. Missing, duplicate, reordered, or foreign live bytes now fail that check even if a final checkpoint advanced. Reports containing liveVerification distinguish this stronger gate from earlier evidence.
The stronger live-byte harness passed a 75-second probe across SSE rotations on the same recorded payload deployment. All 16 readers' ordered SHA-256 digests matched their corresponding durable replay; see 2026-11-22-live-digests-75.json. This is focused harness/delivery evidence. It does not retroactively add that gate to the earlier ten-minute report or substitute for a longer strict-byte soak.
The stopped-Function in-place restore drill now passes against Frankfurt Neon. It writes binary/JSON/fork and claimed-subscription state, records a flushed WAL LSN, seals a later future (including a previously HOT frame), drains live readers, deletes Functions/triggers, observes the documented shutdown grace, restores its own disposable branch, verifies every restored sealed reference, and activates a fresh epoch. Public checks verify exact HOT/SEALED/fork replay, producer rollback/deduplication, discarded-offset rejection, rejection of a still-unexpired restored token, and new SSE delivery before cron resumes. The separate child-branch adoption drill also passes with an explicit unexpired-token assertion. See 2026-11-22-inplace-restore.json and the runbook. The report records the exact bundle/test hashes and honestly retains the pre-commit dirty source metadata; exact-head CI remains required.
This drill exposed an operational readiness gap: a recreated Function endpoint can return a successful probe between platform 502 responses. Deployment checks now require three consecutive one-second authenticated health probes with ready: true, the expected bundle hash, and a new deployment ID even when code is unchanged. 2026-11-22-inplace-readiness.json preserves the observed status/timing sequence. This is measured planned-cutover behavior, not an availability or recovery-time guarantee. Rollout readiness, paused workers, and representative protocol validation must complete before a consumer reopens ingress.
CI run 45068420815 found one fixture failure among 54 Neon cases: an absolute deadline 1.5 seconds after request creation elapsed before its live request opened. Commit 29fa8f0 budgets five seconds for the idle-expiry fixtures, retaining all assertions and the 60-second fallback/validation intervals. The three focused expiry cases pass against Neon. Runtime and upstream conformance semantics are unchanged.
The same-schema rolling test passed 8/8 against real Frankfurt Neon Functions, Postgres 18, Object Storage, and Realtime in 67.89 seconds. The baseline b22c167 and current 0164361 were separately built/packed and installed into clean consumers; they share the same five migration checksums. Four deployed runtimes exercise initial overlap and fresh old/current instances after recovery. The report records Node 24.22.1 on Linux ARM64 with 2,048 MiB Function memory, separately from the Node 24.22.2 coordinator. Producer retries/concurrency, sealing/cold replay, exact-number partial forks, subscription tokens, Realtime EOF, shared admission, tenant/generation isolation, and recovery all pass. Cleanup completed. See 2026-11-22-rolling-upgrade.json and the qualified matrix. Other schema/format pairs remain unqualified.
The follow-up GitHub run 45068420815 completed at 330/338 conformance cases (1,583.46 seconds), with no skips. Failures include upstream two-second TTL cases that sleep 1.5 seconds before renewing and a property with its own ten-second interruption budget. The coordinator executes SQL from the hosted runner, unlike the colocated deployed Function. This is an outstanding CI gate, despite complete local/earlier CI passes. A runtime probe confirmed that a Neon Function can spawn Node and use temporary files; the next CI change will colocate the actual full Vitest coordinator while preserving upstream assertions, samples, and deadlines.
The later GitHub run 45071725916 (0164361) passed 338/338 conformance cases with no skips in 663.73 seconds; the overall job failed its separate in-place restore drill during a post-restore live request. Readiness recovered after about 95 seconds of platform 502s. The restored live-session fixture now has a 45-second bound, still below its 60-second SQL fallback/validation, and reports request/stage context. Its focused real-Neon rerun passed in 149.48 seconds. This changes fixture timing, not the runtime or upstream assertions; exact-head CI must verify it independently.
The full unchanged coordinator also passed 338/338 twice inside an actual Frankfurt Neon Function. The final SSE-reporting run took 132 seconds including coordinator completion (127.99 seconds reported by Vitest), with all upstream samples/assertions/deadlines retained and subscriptions enabled. Cleanup completed. See 2026-11-22-conformance-colocated.json for every result and source, lock, fixture, compiler, native, suite, launcher, and deployment hashes. Its source metadata records the in-progress dirty checkout honestly. The runner contract documents the locked WASI compiler and executable-mount packaging needed by the Function runtime. Required CI now runs this coordinator beside the data services while retaining separate public consumer ingress/webhook qualification. A clean-checkout build-order fix also builds package exports before typechecking the mixed-version consumer fixture. A production release still requires the remaining operational gates.
GitHub run 45075720164 at clean commit 4d3c989 passed every required job: 49 unit/property tests and packed-consumer checks, 62 Neon cases including eight mixed-version checks, 21 Postgres/process-loss cases, both recovery drills, nine public Function/webhook cases, two separate cron-free hint cases, and 338/338 colocated conformance cases with no failures or skips in 130.20 seconds. Cleanup completed. 2026-11-22-ci-colocated.json preserves the counts and exact clean source/runtime/deployment provenance. This qualifies that revision; subsequent implementation changes still require their own CI run.
The completed-outbox change consumes only bounded records whose member/wake intent commits in the same transaction, avoiding one retained completed job per append. Its focused 15 Neon subscription/maintenance cases pass, including registration races, late commits, and partial fan-out, as do the additional retention assertions. All nine deployed Function cases pass. The full unchanged colocated suite again passes 338/338 (135.41 seconds including coordinator completion; Vitest reports 131.89 seconds), with no skips; see 2026-11-22-conformance-outbox.json. The accompanying operational probe records exact live-byte digests, pending/retained outbox counts, and authenticated per-instance memory/pool snapshots. Its short duration establishes harness behavior only. Instance samples can be routed to idle workers and are not fleet totals. A longer profile and exact-head CI remain required.
The 30-minute GitHub probe 45075178614 passed on clean 4fbcdff in US-east-1: 74,146 acknowledged/replayed 1 KiB records at 41.19 appends/second, 464 SSE rotations, and exact reader digests with no observed errors. This profile had eight readers receiving writes and eight idle readers. Append p95/p99 were 112.90/135.02 ms; live p95/p99 were 117.01/156.91 ms. Sampled backlog peaked at one frozen chunk, 514,048 local payload bytes, and three pending changes. Final sealing/replay took 1.32/53.25 seconds and left no local payloads. The run predates completed-outbox consumption and lacks total-outbox/instance-memory samples; see 2026-11-22-live-digests-1800.json.
The clean outbox-consumption revision 373a019, bundle 7f0d5989…, passed a separate ten-minute Frankfurt run with four writers, four streams, and all 16 readers receiving writes. It acknowledged and exactly replayed 38,272 records at 63.78 appends/second, crossed 159 SSE rotations, and matched every reader's ordered digest with no errors. Append p95/p99 were 73.46/130.02 ms; live p95/p99 were 95.42/548.51 ms. The independent head probe recorded p95/p99 of 80.54/2,633.61 ms. No sampled frozen backlog remained; local payloads peaked at 492,544 bytes, and both pending and total retained outbox rows peaked at two and ended at zero after replay. Final sealing/replay took 0.64/15.78 seconds. See 2026-11-22-outbox-live-digests-600.json.
Those instance samples show RSS rising from about 87 MiB to a sampled maximum of about 194 MiB, with sampled heap use below 50 MiB and observed pools holding one or two connections without queued waiters. They do not prove a steady memory bound: health routing samples different, sometimes idle, instances, and a longer trace is still needed. Database-wide connections went from 22 to 27 and include other schema activity. A short four-case replay-pin qualification also used other schemas on this same branch near the end of the run. Both load profiles are closed-loop probes, with other account qualification activity; they are not isolated overload or availability guarantees. Their reader mapping, coordinator regions, and runtime revisions differ.
A disposable Function routing diagnostic made 64 authenticated requests, observed ten process/module identities and reuse up to 35 calls on one module, then removed its Function. The source and sanitized observations are in 2026-11-22-function-instances.json. This confirms module reuse and routing in that sample. It does not enumerate the deployment or measure its capacity, and it does not turn a routed health sample into fleet-wide pool/memory accounting.
GitHub run 45077676126 independently passed every required job on clean runtime revision 373a019, including 338/338 colocated conformance cases with zero failures or skips (133.72 seconds). The 49 unit/property, 62 Neon/mixed-version, 21 Postgres/process-loss, nine public Function/webhook, two hints-only cases, and both recovery drills passed. Cleanup completed. 2026-11-22-ci-outbox.json records the exact clean source and deployment provenance. Physical reclamation remains isolated development work and is not covered by this revision's results.