EnvelopeFlow.Integrations.Feedback 0.1.0-alpha.3.1

This is a prerelease version of EnvelopeFlow.Integrations.Feedback.
dotnet add package EnvelopeFlow.Integrations.Feedback --version 0.1.0-alpha.3.1
                    
NuGet\Install-Package EnvelopeFlow.Integrations.Feedback -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" 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" Version="0.1.0-alpha.3.1" />
                    
Directory.Packages.props
<PackageReference Include="EnvelopeFlow.Integrations.Feedback" />
                    
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 --version 0.1.0-alpha.3.1
                    
#r "nuget: EnvelopeFlow.Integrations.Feedback, 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@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&version=0.1.0-alpha.3.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=EnvelopeFlow.Integrations.Feedback&version=0.1.0-alpha.3.1&prerelease
                    
Install as a Cake Tool

EnvelopeFlow.Integrations.Feedback

Optional provider-feedback integration. Feed verified normalized InboundEventKind.Feedback events and delivery receipts with BounceKind into FeedbackPolicyHandler; applications own routes, authentication and trusted correlation. Other delivery receipts retain their existing handler path. Feedback is operational state and needs no conversation, inbox or hosted endpoint.

Provider bounce enrichment requires explicitly selecting classifyBounces: true on the Mailgun translation overload or SES translator constructor. Default signatures leave bounce classification absent and preserve operational receipt handling. Mailgun receipt IDs include the provider event's UTC day; route IDs include the exact SMTP recipient. These rules apply in both classification modes. Switching normalization for retained IDs needs an application-owned versioned/drained intake policy or an exact freshly verified default-mode fallback on Conflict; never clear IDs, rewrite stored payloads or silently acknowledge changed content. See inbound receipt identity.

Register an authoritative opaque destination ID/recipient/revision using SetDestinationAsync CAS, and save immutable FeedbackCorrelation evidence for the exact full scope, provider account, message ID and exact recipient candidate returned by the provider. Explicitly choose complaint/unsubscribe actions: Observe, deny an email category, or suppress the recipient. Both default to Observe. Do not look up an owner by callback address. Update the binding revision when a destination changes or transfers; stale feedback then records StaleDestination without changing either owner's policy.

ApplyAsync records effect identity/content and current policy changes atomically. Policy revision races serialize with the effect, preserving other edits. Opens/clicks only record observations. Replays do not reapply suppression, and changed immutable content conflicts. Uncorrelated, capacity and conflicting outcomes do not acknowledge successful hook processing; durable inbound intake can separately acknowledge its committed queue entry. Configure the host's retry cadence and operational reconciliation for pending mappings/conflicts. Receipt lease loss can cause handler replay; effect deduplication remains authoritative and independent of receipt lease completion.

InMemoryFeedbackPolicyStore is a bounded ephemeral development example. Use the same instance for IRecipientPolicyStore and feedback operations so its shared gate serializes policy edits/admission. Do not compose an independent policy store and pretend its commit is atomic with this ledger.

Hard bounces mark only the exact current FeedbackDestination revision unavailable. GetDestinationAsync returns that binding and its HardBounced state; missing bindings fail closed during selected submission. Soft/undetermined bounces only record an observation and never clear hard state. Bounce application changes no recipient consent, authentication identity or sibling destination. Within a revision hard state is monotonic even for out-of-order events. Advancing the trusted destination revision by CAS explicitly resets availability; prior-revision feedback stays stale, including delayed hard bounces. Applications must validate ownership and the refreshed destination before this reset.

Use InMemoryFeedbackSubmissionAdmission with DeliveryDispatcher.WithSubmissionAdmission for standalone destination admission. Supply a FeedbackSubmissionPolicy selector when final recipient consent/frequency must also participate. Its constraint locks destination availability before delivery and policy, holding the gate through begin. For selected provider budgets, pass CreateSubmissionConstraint(frozenBindingSelector) to the six-argument InMemoryProviderSubmissionAdmission overload and use this store's SubmissionPolicies as its participating policy store. The selector must resolve the immutable destination binding captured for the exact persisted target; refreshing an old queued target to a newer revision would bypass stale-target protection. A separately evaluated preflight cannot provide this guarantee. Callback/selector code is trusted, bounded and must perform no external I/O.

Standalone memory admission samples the feedback store's configured UTC clock after acquiring recipient-policy ownership, then checks the exact claim lease, delivery expiry and any owner-stamped route deadline before committing frequency. Use coherent UTC clocks across participating process-local stores. Cancellation or changed eligibility while waiting for a policy lock spends no attempt/frequency; cancellation after a true atomic commit does not undo the paired reservation or provider evidence.

The final begin commit is the linearization point: a bounce committed first refuses new submission with DestinationUnavailable and spends no attempt, frequency or provider budget. A later bounce cannot retract an already begun/in-flight request. Raw transport calls and unselected dispatch paths bypass this optional integration.

AdvanceRetentionAsync advances a monotonic observed-time rejection watermark and deletes at most a bounded batch of older effect rows. A watermark must be at least 30 days old. Events older than that watermark return Expired even after dedup rows are deleted. Current hard-bounce state, destination revisions and immutable submission mappings remain retained; their capacity is explicit and exhaustion refuses new registrations/mappings. Availability adds at most one entry per registered destination, never one entry per bounce. They are not silently recycled onto new owners. Applications requiring different correlation retention/encryption can implement the contract with an explicit equivalent replay horizon. Do not log private event/correlation records, addresses, links or credentials.

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 (1)

Showing the top 1 NuGet packages that depend on EnvelopeFlow.Integrations.Feedback:

Package Downloads
EnvelopeFlow.Integrations.Feedback.Stores.Postgres

Atomic durable provider feedback correlation, recipient policy effects and replay retention.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.3.1 46 11/22/2026
0.1.0-alpha.2.1 64 11/9/2026