EnvelopeFlow.Integrations.Policy 0.1.0-alpha.3.1

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

Optional policy and campaign bridges

RecipientPolicyGuard retains its legacy Boolean behavior: it performs live suppression/consent/quiet-hour/frequency admission for a trusted scoped recipient immediately before submission, and the legacy dispatcher cancels denied work. Frequency reservations are conservative and may cover failed/stale attempts. Supply category/channel mapping in application code; list/browser permission never implies consent.

Select richer decisions explicitly with RecipientPolicyDecisionEvaluator and RecipientPolicyReservation. The evaluator requires optional IRecipientPolicyEvaluationStore and never reserves a slot. The single final reservation requires optional IRecipientPolicyReservationStore, which atomically rechecks live policy/frequency under the store's recipient lock and returns rich eligibility floors. Supplied memory/PostgreSQL policy stores implement both capabilities; existing IRecipientPolicyStore implementations need no new mandatory members. Applications can implement these optional contracts using their own tables.

var preflight = new RecipientPolicyDecisionEvaluator(policies,
    _ => ("news", NotificationChannel.Email, true), trustedClock);
var reservation = new RecipientPolicyReservation(policies,
    _ => ("news", NotificationChannel.Email, true), trustedClock);
var pipeline = new SubmissionDecisionPipeline([preflight, applicationOwnershipCheck],
    reservation, requireDeferralSupport: true);
var dispatcher = DeliveryDispatcher.WithSubmissionDecisions(deliveryStore,
    applicationTransports, pipeline, timeProvider: trustedClock);

All preflights run before the one final atomic reservation. Suppression/missing consent are terminal; all-day quiet hours have no finite release and are terminal on this opt-in path. Finite quiet/frequency results defer until their UTC floor. A policy change between preflight and reservation is rechecked atomically: newly quiet work can defer, newly opted-out work is suppressed, and only an Allowed reservation spends a slot. Repeated preflights or denied/deferred final checks spend no slots. Malformed store decisions fail closed using fixed diagnostic codes. Both bridges validate the complete recipient scope before application selectors run and retain the same stable delivery ID as the legacy guard.

Do not adapt the reserving legacy RecipientPolicyGuard as a side-effect-free Boolean preflight or compose several independently spending reservation guards. Applications needing several atomic constraints combine them behind the one reservation. Keep selector mapping stable across preflight/reservation, and perform authenticated installation/destination checks through application-owned preflights. Atomic policy reservation is separate from delivery claim fencing and provider I/O; a lost claim, later opt-out or uncertain send cannot be rolled back as one database transaction. Conservative reservations remain, and a check cannot retract provider work already in flight. Durable deferral requires a compatible durable delivery store; an in-memory delivery store remains ephemeral.

CampaignDeliverySink maps a bounded campaign submission to a bulk delivery request using its stable idempotency key and a mapper-provided stable absolute schedule. A mapper cannot change scope/key/traffic priority. Durable campaign recovery requires durable audiences and a durable delivery store; the bridge introduces no implicit storage.

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 46 11/22/2026
0.1.0-alpha.2.1 60 11/9/2026