EnvelopeFlow.Routing.Stores.Postgres 0.1.0-alpha.2.1

This is a prerelease version of EnvelopeFlow.Routing.Stores.Postgres.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package EnvelopeFlow.Routing.Stores.Postgres --version 0.1.0-alpha.2.1
                    
NuGet\Install-Package EnvelopeFlow.Routing.Stores.Postgres -Version 0.1.0-alpha.2.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.Routing.Stores.Postgres" Version="0.1.0-alpha.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EnvelopeFlow.Routing.Stores.Postgres" Version="0.1.0-alpha.2.1" />
                    
Directory.Packages.props
<PackageReference Include="EnvelopeFlow.Routing.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.Routing.Stores.Postgres --version 0.1.0-alpha.2.1
                    
#r "nuget: EnvelopeFlow.Routing.Stores.Postgres, 0.1.0-alpha.2.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.Routing.Stores.Postgres@0.1.0-alpha.2.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.Routing.Stores.Postgres&version=0.1.0-alpha.2.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=EnvelopeFlow.Routing.Stores.Postgres&version=0.1.0-alpha.2.1&prerelease
                    
Install as a Cake Tool

Optional PostgreSQL routing and audited fallback

Create PostgresRoutedDeliveryStore with an application-owned NpgsqlDataSource and expose it as the application's IRoutedDeliveryStore/IDeliveryStore. It privately uses the delivery store; direct mutations through a separate base delivery adapter can bypass routing budgets and lineage. Constructors perform no network or schema work. Explicitly call InitializeAsync during application deployment: it bootstraps the underlying operational store and applies the routing-owned catalog through PostgresMigrationRunner. Operators can independently inspect/plan/apply PostgresRoutingMigrations.Catalog. Routing version one is immutable checksummed DDL; repeat application validates the journal and has no pending routing migration. Existing unjournaled routing objects are rejected rather than silently adopted, and historical feature catalogs are unchanged.

The adapter adds ef_route_intents, ef_route_steps and ef_route_audits. Admission uses a recipient/identity/intent-scoped PostgreSQL advisory lock, bounded SHA-256 index keys plus exact scope/owner verification, and one transaction for the selected operational target and immutable selection. The delivery store owns transaction operations for admission, locked payload reads, begin/cancel/replay transitions, history proof and outbox writes; routing composes them with its own selection, budget and lineage checks. These internal participants never open or commit a nested transaction. Fallback locks the intent and source, verifies a live database-time fence/lease and exact source revision, conservatively reads bounded delivery evidence, and commits the successor, lineage and causal audit together. Independent workers use SKIP LOCKED claims. Begin-submission and replay serialize through the routed intent; retries consume the same total attempt/cost budget and stale fallback claims cannot survive replay. Maximum age applies before every send, including after a deferral/retry, using a materialized database clock inside the final begin transition. The normal dispatcher's budget preflight spends no reservation; its routed cancellation atomically preserves the fixed BoundsExhausted causal audit. The final store gate repeats these checks independently.

Original expiry remains unchanged. Eligibility timestamps round upward to PostgreSQL microseconds. Schedules that cannot represent a due time strictly before expiry are rejected before admission. Core targets/events use PostgresDeliveryPayloadWriter; PostgresDeliveryPayloadOptions.WriteVersionedPayloads remains explicit and legacy payloads remain readable. The adapter delegates safe core operational-payload inspection/quarantine. Its own bounded routing metadata is version-one JSON and fails closed when unreadable; the routing catalog establishes its initial schema/format and does not automatically repair unreadable metadata. Future changes require additive immutable migrations and compatible readers alongside core upgrade operations.

Routing intents, destination data and rendered targets are private operational data. Hash indexes do not encrypt them. Applications own access control, encryption, backup and retention for routing tables and must retain source evidence/lineage while recovery remains possible; erasing evidence conservatively makes automatic fallback ineligible. RouteAudit includes IDs, revision, selected index/hop and fixed reasons without addresses, subscriptions, credentials or bodies. Audit hooks are at least once; consumers deduplicate by audit ID and acknowledge only their current scoped fence/lease.

The PostgreSQL-enabled routing tests cover competing clients, one-connection pools, canonical payloads, lease/revision refusal, committed-fallback process recovery and injected step/audit/outbox failures. Faults roll back delivery work, events and routing lineage together. This is local contract/recovery evidence, not external provider/device certification. See routing integration and the local recovery sample.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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 47 11/22/2026
0.1.0-alpha.2.1 61 11/9/2026