Proving Grounds — Drop-In Python Backends on Live PostgreSQL#
Note
Anyone can pass their own tutorial. The Proving Grounds hold every featured backend to Rung 7: full schema assimilation, upstream's own runtime executing unmodified against live PostgreSQL, and a measurable 1-RTT wire win verified by pool.trace().
🦀 Ferris (smug): Five real Python frameworks. Zero mocks. Every round trip counted on the wire.
1 · 1-RTT Pipelined State & Auth#
Stateful AI agents and authentication backends suffer from multi-RTT chatter: saving blobs then checkpoints, or batching memory writes and reads one statement at a time. pgdorm fuses them into a single PostgreSQL v3 Sync:
LangGraph Checkpointer#
Real compiled LangGraph StateGraph workflows with composite PKs, 1-RTT fused UNNEST blob + checkpoint aput, and zero-N+1 = ANY($1) history loading.
LangGraph Store#
Drop-in PgdormStore(BaseStore) fusing PutOp (UNNEST ... ON CONFLICT DO UPDATE), GetOp, SearchOp, and ListNamespacesOp into 1 wire RTT inside a live StateGraph.
FastAPI-Users#
All 8/8 BaseUserDatabase methods, JWT auth endpoints, and 1-RTT pipelined OAuth2 running directly on slot-backed pgdorm tables — zero SQLAlchemy, zero greenlet.
2 · Lock-Free Queues & Event Stores#
Schedulers and event stores demand lock-free concurrency (FOR UPDATE SKIP LOCKED), atomic multi-statement commits, and push notifications (LISTEN/NOTIFY) without dragging in SQLAlchemy + asyncpg + greenlet:
APScheduler 4#
Live AsyncScheduler on PgdormDataStore + PgdormEventBroker: TypeTable enum assimilation, FOR UPDATE SKIP LOCKED leases, native Pool.listen/notify, and 1-RTT tx.pipeline(commit=True) release_job.
Python eventsourcing#
Real eventsourcing.application.Application aggregate lifecycle on PgdormApplicationRecorder: 1-RTT UNNEST ... RETURNING atomic append, UniqueViolationError optimistic concurrency, and 1-RTT keyset notification scans.
3 · Zero-Downtime Online Assimilation#
Every backend above starts from upstream's unmodified SQL schema and walks the Adoption Ladder in tests/cases/:
- Audit (
audit_schema) — classify every table, index, and constraint with zero DDL. - Bind (
scaffold_from_db(mode="bind")) — generate typed models matching the live schema with 0 residual ops. - Fresh build (
Pool.create_all) — recreate an empty database from the models alone. - Assimilate (
plan_adoption) — migrate plural tables,SERIALPKs, and native PG enums onto idiomaticpgdormTable&TypeTablemodels with 0 blockers and 0 residual ops. - Run upstream's own code — execute the real framework unmodified against live PostgreSQL and assert
tr.rtts == 1on the hot path.
Continuous Upstream Conformance (giants.lock.toml)
Every upstream repository and commit SHA is pinned in tests/cases/giants.lock.toml and verified via uv run --no-sync python tools/giants.py sync.