EnvelopeFlow.Digests
0.1.0-alpha.2.1
See the version list below for details.
dotnet add package EnvelopeFlow.Digests --version 0.1.0-alpha.2.1
NuGet\Install-Package EnvelopeFlow.Digests -Version 0.1.0-alpha.2.1
<PackageReference Include="EnvelopeFlow.Digests" Version="0.1.0-alpha.2.1" />
<PackageVersion Include="EnvelopeFlow.Digests" Version="0.1.0-alpha.2.1" />
<PackageReference Include="EnvelopeFlow.Digests" />
paket add EnvelopeFlow.Digests --version 0.1.0-alpha.2.1
#r "nuget: EnvelopeFlow.Digests, 0.1.0-alpha.2.1"
#:package EnvelopeFlow.Digests@0.1.0-alpha.2.1
#addin nuget:?package=EnvelopeFlow.Digests&version=0.1.0-alpha.2.1&prerelease
#tool nuget:?package=EnvelopeFlow.Digests&version=0.1.0-alpha.2.1&prerelease
EnvelopeFlow.Digests
Opt-in helpers and a bounded memory reference adapter. InMemoryDigestStore is copy-on-write and loses state on process restart. It uses the supplied TimeProvider; the optional PostgreSQL adapter uses its database clock. Default limits are 10,000 owners, 32 retained groups and 4,096 retained source receipts per owner, 4 MiB per serialized owner ledger, 16 parts and 1 MiB of prepared payload per group. All configured limits are validated. Source/content references use Core's 256-character identifier bound; actual provider payloads remain bounded to 262,144 UTF-8 bytes.
The reference adapters keep a bounded ledger per trusted owner/category/key. Intake copies/validates that ledger; claim/preparation audit work includes retained sources. This favors explicit atomicity and a narrow adapter over high-volume fan-in optimization. Configure realistic capacities and use a custom store for a different indexing/retention shape. Owner/generation records survive explicit group cleanup, preventing reuse of prior generated keys; automatic owner eviction is deliberately absent. Full memory capacity requires explicit application retention or a fresh development store.
DigestScheduling preserves absolute flush timestamps. A missing local daily time advances to the first valid tick; an overlap chooses the earliest occurrence at or after closure. A timezone/configuration change does not rewrite frozen groups. Sliding intake cannot exceed its original maximum, and overflow starts a separate generation without shortening the original flush floor. A sliding extension whose candidate local schedule reaches/passes the original expiry returns a recorded RejectedSchedule without changing the group. Future timestamps beyond the bounded tolerance are rejected. An initial flush schedule at/after group expiry is invalid configuration.
Intake selects its actual coalescing/overflow branch before validating a sliding extension. Obsolete coalescing sources remain Superseded without extending the group, rejected overflow records RejectedOverflow, and split overflow validates the fresh group's own lifetime while preserving the previous group's absolute flush and expiry. Invalid fresh-group schedules roll back the complete intake, including generation allocation.
DigestTextRenderer escapes untrusted HTML fields when selected, supports an application-selected locale and target factory, and splits within explicit UTF-8 body/part limits. Oversized items are rejected with an audit disposition or explicitly truncated by Unicode scalar boundary. Sources with unavailable content/locale, revoked authorization, suppression or expiry get individual dispositions. Malformed Unicode in resolved content is Unavailable; malformed factory payloads and custom prepared parts are rejected before a checkpoint can substitute their contents. Supplied stores and the renderer share delivery payload validation, preserving valid Unicode and exact prepared bytes through recovery. The application owns channel templates, HTML layout, SMS/provider byte limits and the serialized transport envelope. Body limits and full payload limits are distinct; the factory must fit both. No dynamic template evaluation is performed.
DigestFlusher freezes membership, resolves eligible references, persists the exact prepared parts, then calls the application-owned durable admission sink. A crash after sink commit before checkpoint replays the same part/key and expects the same message/delivery identities. Prepared recovery never rerenders changed content. Cancellation of an expired group preserves its expired state, revision and source audit while still cancelling known pending admissions through the sink. DigestDeliveryRequests.Create supplies stable due times/key and the earliest included source/group expiry. Bulk delivery stays separate from immediate transactional capacity. There is no automatic provider replay, fallback or regrouping of Accepted/Unknown submissions.
Install DigestSubmissionGuard on every dispatcher sending digest work. The application extracts trusted correlation from its own payload/registry and must throw/fail closed for malformed digest correlation; null identifies immediate work. The guard verifies the current group, exact owner and prepared target, then rechecks every included reference's authorization/consent/expiry. It preserves prepared bytes when authorized content changes; new content requires a new source/revision/group chosen by the application. Category/frequency policy can be another existing submission decision preflight. A final guard is a policy read; it cannot claim a distributed transaction with a provider. Cancellation also CAS-cancels known Pending deliveries; a submission that already won BeginSubmission retains its operational evidence.
DispatcherDigestAdmissionSink provides the delivery-store bridge. It deliberately does not invent a read-only idempotency lookup the underlying delivery interface lacks. Applications can implement IDigestAdmissionLookup using their own durable admission mapping. Incomplete admission checkpoints block forgetting; known Unknown outcomes block sink proof. Direct store cleanup is an explicit operator operation after independent delivery proof, not an automatic retention job.
See samples/EnvelopeFlow.DigestSample for an application-owned provider-free mixed workload and tests/Digests for custom-store, clock, rendering, consent and durable recovery coverage. Verification results belong in the E13 tickets; local synthetic behavior does not establish remote delivery or performance capacity.
| Product | Versions 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. |
-
net10.0
- EnvelopeFlow.Delivery (>= 0.1.0-alpha.2.1)
- EnvelopeFlow.Digests.Abstractions (>= 0.1.0-alpha.2.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on EnvelopeFlow.Digests:
| Package | Downloads |
|---|---|
|
EnvelopeFlow.Digests.Stores.Postgres
Optional PostgreSQL durable digest grouping with frozen prepared content and explicit schema migrations. |
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 | 66 | 11/9/2026 |