EnvelopeFlow.Integrations.Feedback.Stores.Postgres 0.1.0-alpha.3.1

This is a prerelease version of EnvelopeFlow.Integrations.Feedback.Stores.Postgres.
dotnet add package EnvelopeFlow.Integrations.Feedback.Stores.Postgres --version 0.1.0-alpha.3.1
                    
NuGet\Install-Package EnvelopeFlow.Integrations.Feedback.Stores.Postgres -Version 0.1.0-alpha.3.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EnvelopeFlow.Integrations.Feedback.Stores.Postgres" Version="0.1.0-alpha.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EnvelopeFlow.Integrations.Feedback.Stores.Postgres" Version="0.1.0-alpha.3.1" />
                    
Directory.Packages.props
<PackageReference Include="EnvelopeFlow.Integrations.Feedback.Stores.Postgres" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EnvelopeFlow.Integrations.Feedback.Stores.Postgres --version 0.1.0-alpha.3.1
                    
#r "nuget: EnvelopeFlow.Integrations.Feedback.Stores.Postgres, 0.1.0-alpha.3.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package EnvelopeFlow.Integrations.Feedback.Stores.Postgres@0.1.0-alpha.3.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EnvelopeFlow.Integrations.Feedback.Stores.Postgres&version=0.1.0-alpha.3.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=EnvelopeFlow.Integrations.Feedback.Stores.Postgres&version=0.1.0-alpha.3.1&prerelease
                    
Install as a Cake Tool

EnvelopeFlow.Integrations.Feedback.Stores.Postgres

PostgresFeedbackPolicyStore serializes binding CAS, immutable mapping lookup, effect identity and suppression under one database transaction. Policy mutations use the existing recipient row lock, so PostgresRecipientPolicyStore live admission sees committed feedback. Use the same database/schema for feedback and policy. External/separately committed policy stores cannot participate in this adapter's atomic guarantee.

Construction and workers never provision schemas. Explicitly apply PostgresRecipientPolicyMigrations.Catalog, PostgresInboundMigrations.Catalog when durable intake is selected, and PostgresFeedbackMigrations.Catalog through the existing migration runner with deployment-owned credentials. InitializeAsync is an explicit convenience for the feedback catalog only. No historical migration was changed.

Feedback migration v2 adds current destination hard-bounce availability, keyed to an existing binding. Version-one binding/correlation JSON and historical feedback payloads remain readable without new required fields, and the original v1 migration checksum remains unchanged. Nullable inbound BounceKind is omitted when absent. Availability/dedup commit atomically; an injected effect-write failure rolls both back. Availability occupies at most one row per registered binding and survives effect retention. Trusted destination CAS clears its old state in that same transaction.

Default provider translators retain the historical failed/Bounce envelope bytes for duplicate receipt acknowledgment; bounce enrichment is opt-in. A retained legacy receipt cannot be overwritten by an enriched event. Applications may freshly verify/normalize through the legacy default after an enriched Conflict and acknowledge only an exact matching retained envelope. Pending legacy receipts use their original operational handler, without retroactive suppression. Use a versioned/drained intake policy for new normalization; never delete receipt IDs to enable it.

PostgresFeedbackSubmissionAdmission works independently of provider budgets and requires the exact same NpgsqlDataSource instance as its delivery participant and optional final policy store. Provision delivery/routing catalogs explicitly too. Alternatively pass CreateSubmissionConstraint(frozenBindingSelector) to the six-argument PostgresProviderSubmissionAdmission overload. Both paths acquire the feedback destination/scope lock before delivery and recipient-policy locks and retain it through final begin commit. Final claim proof includes full persisted target/context, scope, lease, revision and fence; route age is rechecked after policy lock waits. Refusal/rollback spends no attempt, frequency or provider units. Provider I/O occurs after commit. Constraints from a different data source are refused before dispatch.

The selector must return the immutable scope/destination/recipient/revision captured for this target. New trusted revisions explicitly reset hard state; no callback discovers ownership from its address. A hard bounce committed before final begin prevents the send; a later bounce cannot retract an in-flight submission. Unselected paths/raw transports bypass this optional check. Transaction operations accept cancellation, standalone admission has a 30-second deadline, and custom participants must preserve the declared lock order and atomicity without external I/O.

Every operation checks trusted full scope; per-scope serialization prevents concurrent effects/transfers/capacity races. Per-table scope capacity defaults to 100,000 records and is configurable up to 1,000,000. Fixed-size digest indexes avoid PostgreSQL key-size failures; retained scope/identity documents are checked exactly. Corrupt or unsupported mapping fields fail closed. Network I/O, database cancellation and normal connection timeouts apply; callers choose cancellation deadlines. Schema privileges, encryption, backups and retention scheduling remain deployment concerns.

Only old effect rows are purged by bounded retention; the monotonic watermark prevents their old observations from applying again. Immutable mappings and destination revisions are not removed by this operation. Capacity exhaustion is explicit, with no eviction that could reroute an old complaint to another recipient. Hook acknowledgment and effect commit are separate boundaries: a crash after committed suppression and before receipt completion safely replays to Duplicate.

See the local sample and conformance fixtures. Neither fixture success nor PostgreSQL recovery proves a live provider callback route.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.3.1 48 11/22/2026
0.1.0-alpha.2.1 58 11/9/2026