EnvelopeFlow.Digests.Stores.Postgres 0.1.0-alpha.3.1

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

EnvelopeFlow.Digests.Stores.Postgres

Optional durable IDigestStore behind an application-owned NpgsqlDataSource. Construction and reads never initialize a schema. Explicitly call InitializeAsync, or inspect/plan/apply PostgresDigestMigrations.Catalog with PostgresMigrationRunner under the deployment policy in docs/migrations.md. Payload format remains v1; schema v2 bounds the due-discovery scope index with a generated SHA256 key and keeps exact raw scope checks. Existing versioned v1 installations apply the appended migration; there is no unversioned legacy baseline to adopt. Pause old binaries for the table/index rewrite; see bounded-key deployment. There are no provider credentials, endpoints or user/history models in its schema.

One ef_digest_owners row stores a bounded JSON ledger with the exact full scope, recipient/authentication identity, category and grouping key. Its existing SHA-256 owner key remains unchanged; schema v2 separately bounds the scope discovery index for long Unicode identifiers. Reads verify the exact stored columns and ledger binding against the owner hash. Scope columns use deterministic C collation. Intake serializes missing/existing owner mutations with a transaction lock; a separate short creation lock bounds global owner count. Mutation, source receipt/dedup, generation, prepared bytes and admission checkpoints commit atomically. Failure rolls back the complete ledger change.

Scoped due claims use an indexed next_due and FOR UPDATE SKIP LOCKED. Database time is sampled after row ownership. Claims freeze membership, increment revision/fence and persist an absolute lease. Every preparation/admission checkpoint requires current revision/fence, live lease and group expiry. Next due includes lease/expiry recovery. Mutations have a 30-second operation deadline in addition to normal caller cancellation; unsafe/corrupt/future-version ledgers fail closed without changing/deleting keys or invoking a provider.

The adapter intentionally bounds and copies one owner ledger per operation; retention and audit are explicit, and high fan-in workloads can supply a different IDigestStore. Limits are the same as the memory reference and are process configuration, not a guarantee against unrelated external writers. All instances sharing a store should use compatible limits and deployment policy. Group/source purge never resets generation, does not automatically evict owners, and protects incomplete prepared-part checkpoint evidence. Delivery uncertainty remains in the delivery/application store and requires sink proof before group cleanup.

Real database tests cover reusable store contracts, transaction failure rollback, cancellation/stale claims, incompatible payload preservation, and separate child processes recovering durable admission committed before checkpoint. They use isolated schemas and an explicitly supplied disposable ENVELOPEFLOW_TEST_POSTGRES. The child fixture resolves build output through MSBuild rather than assuming a bin layout. No live/paid provider is involved; durable admission is separate from provider submission.

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