symfonic.memory.backends.postgres_receipt_adapter¶
postgres_receipt_adapter ¶
Operation-scoped receipt route for an exact raw graph-only PostgreSQL HMS.
A raw GraphBackedHms(PostgresGraphBackend) keeps its read-only v1
admission: this adapter never declares native storage on the raw backend and
exposes no DELETE, DISCARD or FORGET. Caller-identified WRITE and exact
selected FLUSH run through a domain-owned receipt store built around the raw
backend's exact pool, so claims, manifests and receipts commit atomically.
PostgresOperationReceiptAdapter ¶
Durable WRITE and selected FLUSH for one exact raw HMS pool only.
Source code in src/symfonic/memory/backends/postgres_receipt_adapter.py
flush
async
¶
Publish only the canonical FLUSH of the caller-persisted WRITE.
The preflight refuses before a receipt is reserved; the bound source is re-read and compared again inside the publication transaction.
Source code in src/symfonic/memory/backends/postgres_receipt_adapter.py
operation_for_write ¶
Bind the actual records to the caller's persisted operation ID.
Source code in src/symfonic/memory/backends/postgres_receipt_adapter.py
reconcile_write
async
¶
The exact committed claim manifest, or None; never adopts IDs.
Source code in src/symfonic/memory/backends/postgres_receipt_adapter.py
selected_flush_operation
async
¶
FLUSH identity bound to the accepted WRITE and its durable manifest.
Reads the committed manifest, not an in-process receipt, so a fresh process holding only the restored WRITE identity selects the same claims. Siblings and later writes are outside the manifest.