Core Concepts — Keys, Fingerprints, Leases & Errors
EricksonLopez.Idempotency guarantees deterministic replay semantics using strongly-typed keys, scoped fingerprints, and bounded leases.
IdempotencyKey(readonly record struct): Trimmed1..128characters (Empty,IsEmpty,Create(string|Guid),NewKey(),TryParse).IdempotencyScope(readonly record struct):1..64characters (Default,Create(string),CreateNormalized(string)).
IdempotencyFingerprintHasher & ExecutionResponse
Section titled “IdempotencyFingerprintHasher & ExecutionResponse”IdempotencyFingerprintHasher.Compute(operationName, scope, tenantId, authenticatedSubject, ReadOnlySpan<byte> payloadBytes)hashes request identity and payload bytes into a canonical digest.ExecutionResponse(int statusCode, IReadOnlyDictionary<string, string[]>? headers = null, ReadOnlyMemory<byte> body = default)captures HTTP/logical status code, headers (filtered byResponseHeadersBlocklist), and raw response body.
IdempotencyErrorsdefinesInFlightConflict,FingerprintMismatch, andLeaseLost.IdempotencyOptionsdefaultsDefaultLeaseDurationto 30 seconds andDefaultRetentionDurationto 7 days (DefaultRetentionDurationmust be>= DefaultLeaseDuration).