Class GovernedOperationExecutionReceipt
- Namespace
- AsiBackbone.Core.HostIntegration
- Assembly
- AsiBackbone.Core.dll
Represents a framework-neutral completion receipt for one governed host execution attempt.
public sealed class GovernedOperationExecutionReceipt
- Inheritance
-
GovernedOperationExecutionReceipt
- Inherited Members
Remarks
The receipt binds governance lifecycle evidence to host-owned persistence without copying raw original or current application values into AsiBackbone. Mutation details remain authoritative in the host audit store; this receipt carries only opaque identifiers, counts, hashes, and minimized metadata.
Properties
CompletedUtc
Gets the UTC timestamp when execution completed.
public DateTimeOffset CompletedUtc { get; }
Property Value
CompletedWithoutMutation
Gets a value indicating whether execution completed without persisted mutation.
public bool CompletedWithoutMutation { get; }
Property Value
DecisionAuditRecordId
Gets the persisted AsiBackbone decision audit record identifier, when supplied.
public string? DecisionAuditRecordId { get; }
Property Value
ExecutionAttemptId
Gets the identifier for this execution attempt, when supplied.
public string? ExecutionAttemptId { get; }
Property Value
HasCommittedMutation
Gets a value indicating whether the receipt contains a committed mutation binding.
public bool HasCommittedMutation { get; }
Property Value
Metadata
Gets minimized host metadata associated with the receipt.
public IReadOnlyDictionary<string, string> Metadata { get; }
Property Value
MutationBatchId
Gets the opaque host mutation batch identifier, when persistence committed.
public string? MutationBatchId { get; }
Property Value
MutationManifestAlgorithm
Gets the mutation manifest hash algorithm, when persistence committed.
public string? MutationManifestAlgorithm { get; }
Property Value
MutationManifestHash
Gets the canonical privacy-safe mutation manifest hash, when persistence committed.
public string? MutationManifestHash { get; }
Property Value
MutationRecordCount
Gets the number of host-owned mutation records represented by the batch.
public int MutationRecordCount { get; }
Property Value
OperationExecutionId
Gets the logical execution identifier shared across retries.
public string OperationExecutionId { get; }
Property Value
PersistenceOutcome
Gets the host persistence outcome.
public GovernedOperationPersistenceOutcome PersistenceOutcome { get; }
Property Value
PersistenceProvider
Gets the host persistence provider or provider family, when supplied.
public string? PersistenceProvider { get; }
Property Value
Methods
Create(string, GovernedOperationPersistenceOutcome, string?, string?, int, string?, string?, DateTimeOffset?, string?, string?, IReadOnlyDictionary<string, string>?)
Creates a validated execution completion receipt.
public static GovernedOperationExecutionReceipt Create(string operationExecutionId, GovernedOperationPersistenceOutcome persistenceOutcome, string? executionAttemptId = null, string? mutationBatchId = null, int mutationRecordCount = 0, string? mutationManifestHash = null, string? mutationManifestAlgorithm = null, DateTimeOffset? completedUtc = null, string? persistenceProvider = null, string? decisionAuditRecordId = null, IReadOnlyDictionary<string, string>? metadata = null)
Parameters
operationExecutionIdstringpersistenceOutcomeGovernedOperationPersistenceOutcomeexecutionAttemptIdstringmutationBatchIdstringmutationRecordCountintmutationManifestHashstringmutationManifestAlgorithmstringcompletedUtcDateTimeOffset?persistenceProviderstringdecisionAuditRecordIdstringmetadataIReadOnlyDictionary<string, string>
Returns
ToLifecycleMetadata(IReadOnlyDictionary<string, string>?)
Builds lifecycle metadata from the typed receipt and optional minimized host metadata.
public IReadOnlyDictionary<string, string> ToLifecycleMetadata(IReadOnlyDictionary<string, string>? metadata = null)
Parameters
metadataIReadOnlyDictionary<string, string>