EnvelopeFlow.Integrations.Feedback.Stores.Postgres
0.1.0-alpha.3.1
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
<PackageReference Include="EnvelopeFlow.Integrations.Feedback.Stores.Postgres" Version="0.1.0-alpha.3.1" />
<PackageVersion Include="EnvelopeFlow.Integrations.Feedback.Stores.Postgres" Version="0.1.0-alpha.3.1" />
<PackageReference Include="EnvelopeFlow.Integrations.Feedback.Stores.Postgres" />
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"
#:package EnvelopeFlow.Integrations.Feedback.Stores.Postgres@0.1.0-alpha.3.1
#addin nuget:?package=EnvelopeFlow.Integrations.Feedback.Stores.Postgres&version=0.1.0-alpha.3.1&prerelease
#tool nuget:?package=EnvelopeFlow.Integrations.Feedback.Stores.Postgres&version=0.1.0-alpha.3.1&prerelease
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- EnvelopeFlow.Integrations.Feedback (>= 0.1.0-alpha.3.1)
- EnvelopeFlow.Preferences.Stores.Postgres (>= 0.1.0-alpha.3.1)
- EnvelopeFlow.Stores.Migrations.Postgres (>= 0.1.0-alpha.3.1)
- EnvelopeFlow.Stores.Postgres (>= 0.1.0-alpha.3.1)
- Npgsql (>= 10.0.3)
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 |