VARUX AXIS Deterministic PostgreSQL Write-Path Control
v0.6 · Pilot Readiness
AXIS Documentation / Integration / Native PG Wire Protocol

Native PG Wire Protocol

Experimental lab POCDraft RFC v1.2Extended Query planned

AXIS can speak the PostgreSQL wire protocol directly, letting unmodified PostgreSQL clients (psql, drivers, pgAdmin) connect to AXIS instead of the database. This is a lab POC — experimental, disabled by default, and not the production integration path.

Status summary

AreaStatusEvidence
Wire listenerExperimentalAXIS_PGWIRE_ENABLED=false by default; listener on :6544 in lab mode (AXIS_PGWIRE_LAB_MODE=true)
Simple Query (Q) intercept & enforceExperimentalText query parsed/classified/policy-evaluated before forwarding; ALLOW forward, BLOCK/REQUIRE_APPROVAL rejected client-side
Extended Query (P/B/E)PlannedEQ0–EQ5 stages; required before OLTP pilot
CancelRequest (F)Implemented (lab)RFC-032; client cancel propagates to the backend; unknown cancel keys rejected
Regression suite65/65 passedLab harness
Chaos suite14/14 passedBackend down, wrong target, slow backend, cancel, reconnect

Draft RFC v1.2 (2026-05-21)

The integration design is specified as a draft RFC: a wire-level listener in front of the database, Simple Query enforced end-to-end, Extended Query parameterized flow planned with bind-value classification, and COPY handling fail-closed. The RFC is a design contract for lab development, not a production feature.

Simple Query flow

PostgreSQL client psql / driver / pgAdmin unmodified AXIS pgwire listener startup / auth → Q intercept classify → policy → enforce wire (TCP) PostgreSQL target backend :5432 ALLOW forward BLOCK / REQUIRE_APPROVAL rejected at AXIS — no forward (no approval UI on wire path) CancelRequest RFC-032 propagated to backend unknown keys rejected
Simple Query is enforced end-to-end in the lab; Extended Query and COPY remain planned/fail-closed.

Per-message handling in the lab

MessageBehavior
Q (Simple Query)Parse → classify → policy; ALLOW forwards, others rejected with error responses
P/B/E (Extended Query)Not implemented; client fails closed (error response) rather than bypassing
F (CancelRequest)Implemented per RFC-032; propagates cancel; unknown keys rejected
COPY (H/D/c)Fail-closed in the POC; copy is not silently allowed
SSLRequest / GSSENCRequestHandled per protocol (POC may skip encryption with documented lab caveat)

Limits and warnings

Do not point production clients at the lab wire listener. It is an experiment for RFC validation, not an OLTP path.

Related: ORM & Extended Query · Architecture · Changelog