Table of Contents

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

DateTimeOffset

CompletedWithoutMutation

Gets a value indicating whether execution completed without persisted mutation.

public bool CompletedWithoutMutation { get; }

Property Value

bool

DecisionAuditRecordId

Gets the persisted AsiBackbone decision audit record identifier, when supplied.

public string? DecisionAuditRecordId { get; }

Property Value

string

ExecutionAttemptId

Gets the identifier for this execution attempt, when supplied.

public string? ExecutionAttemptId { get; }

Property Value

string

HasCommittedMutation

Gets a value indicating whether the receipt contains a committed mutation binding.

public bool HasCommittedMutation { get; }

Property Value

bool

Metadata

Gets minimized host metadata associated with the receipt.

public IReadOnlyDictionary<string, string> Metadata { get; }

Property Value

IReadOnlyDictionary<string, string>

MutationBatchId

Gets the opaque host mutation batch identifier, when persistence committed.

public string? MutationBatchId { get; }

Property Value

string

MutationManifestAlgorithm

Gets the mutation manifest hash algorithm, when persistence committed.

public string? MutationManifestAlgorithm { get; }

Property Value

string

MutationManifestHash

Gets the canonical privacy-safe mutation manifest hash, when persistence committed.

public string? MutationManifestHash { get; }

Property Value

string

MutationRecordCount

Gets the number of host-owned mutation records represented by the batch.

public int MutationRecordCount { get; }

Property Value

int

OperationExecutionId

Gets the logical execution identifier shared across retries.

public string OperationExecutionId { get; }

Property Value

string

PersistenceOutcome

Gets the host persistence outcome.

public GovernedOperationPersistenceOutcome PersistenceOutcome { get; }

Property Value

GovernedOperationPersistenceOutcome

PersistenceProvider

Gets the host persistence provider or provider family, when supplied.

public string? PersistenceProvider { get; }

Property Value

string

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

operationExecutionId string
persistenceOutcome GovernedOperationPersistenceOutcome
executionAttemptId string
mutationBatchId string
mutationRecordCount int
mutationManifestHash string
mutationManifestAlgorithm string
completedUtc DateTimeOffset?
persistenceProvider string
decisionAuditRecordId string
metadata IReadOnlyDictionary<string, string>

Returns

GovernedOperationExecutionReceipt

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

metadata IReadOnlyDictionary<string, string>

Returns

IReadOnlyDictionary<string, string>