Table of Contents

Interface IDecisionReceipt

Namespace
AsiBackbone.Core.Audit
Assembly
AsiBackbone.Core.dll

Defines the framework-neutral decision receipt produced by an AsiBackbone operation.

public interface IDecisionReceipt

Properties

ActorDisplayName

Gets the optional display name or label associated with the actor.

string? ActorDisplayName { get; }

Property Value

string

ActorId

Gets the stable actor identifier associated with the event.

string ActorId { get; }

Property Value

string

ActorType

Gets the actor type associated with the event.

GovernanceActorType ActorType { get; }

Property Value

GovernanceActorType

ConstraintCount

Gets the number of constraints evaluated for the decision, when supplied by the host.

int? ConstraintCount { get; }

Property Value

int?

ConstraintSetHash

Gets the hash of the evaluated constraint set, when supplied by the host.

string? ConstraintSetHash { get; }

Property Value

string

CorrelationId

Gets the correlation identifier associated with the event, when supplied by the host.

string? CorrelationId { get; }

Property Value

string

DecisionLatencyMs

Gets the decision latency in milliseconds, when supplied by the host.

long? DecisionLatencyMs { get; }

Property Value

long?

DecisionReceiptId

Gets the stable decision receipt identifier when available.

string? DecisionReceiptId { get; }

Property Value

string

Remarks

Existing residue implementations may use EventId as the residue identifier.

DecisionStage

Gets the provider-neutral decision stage associated with the event, when supplied by the host.

string? DecisionStage { get; }

Property Value

string

EmitterProvider

Gets the provider-neutral emitter provider name, when supplied by the host or outbox provider.

string? EmitterProvider { get; }

Property Value

string

EmitterStatus

Gets the provider-neutral emitter status, when supplied by the host or outbox provider.

string? EmitterStatus { get; }

Property Value

string

EventId

Gets the stable audit event identifier.

string EventId { get; }

Property Value

string

GatewayExecutionId

Gets the gateway execution identifier associated with the event, when supplied by the host or gateway provider.

string? GatewayExecutionId { get; }

Property Value

string

Metadata

Gets additional framework-neutral audit metadata supplied by the host.

IReadOnlyDictionary<string, string> Metadata { get; }

Property Value

IReadOnlyDictionary<string, string>

OccurredUtc

Gets the UTC timestamp when the audited event occurred.

DateTimeOffset OccurredUtc { get; }

Property Value

DateTimeOffset

OperationName

Gets the operation name associated with the audited event.

string OperationName { get; }

Property Value

string

OrganizationHash

Gets the privacy-preserving organization hash associated with the decision, when supplied by the host.

string? OrganizationHash { get; }

Property Value

string

OutboxSequence

Gets the outbox sequence associated with the event, when supplied by the host or outbox provider.

long? OutboxSequence { get; }

Property Value

long?

Outcome

Gets the governance, constraint, or host-defined outcome associated with the event.

string Outcome { get; }

Property Value

string

ParentSpanId

Gets the parent span identifier associated with the event, when supplied by the host or observability adapter.

string? ParentSpanId { get; }

Property Value

string

PolicyHash

Gets the policy hash associated with the event, when supplied by the host.

string? PolicyHash { get; }

Property Value

string

PolicyScope

Gets the policy scope associated with the decision, when supplied by the host.

string? PolicyScope { get; }

Property Value

string

PolicyVersion

Gets the policy version associated with the event, when supplied by the host.

string? PolicyVersion { get; }

Property Value

string

ReasonCodes

Gets machine-readable reason codes associated with the event.

IReadOnlyList<string> ReasonCodes { get; }

Property Value

IReadOnlyList<string>

RiskScore

Gets the host-defined risk score associated with the decision, when supplied by the host.

double? RiskScore { get; }

Property Value

double?

SchemaVersion

Gets the serialized schema version for the decision receipt shape.

string SchemaVersion { get; }

Property Value

string

SpanId

Gets the span identifier associated with the event, when supplied by the host or observability adapter.

string? SpanId { get; }

Property Value

string

TenantHash

Gets the privacy-preserving tenant hash associated with the decision, when supplied by the host.

string? TenantHash { get; }

Property Value

string

TraceId

Gets the trace identifier associated with the event, when supplied by the host.

string? TraceId { get; }

Property Value

string