Class GovernanceEmissionEnvelope
- Namespace
- AsiBackbone.Core.Emissions
- Assembly
- AsiBackbone.Core.dll
Represents a provider-neutral governance emission envelope that can be handed to outbox storage or downstream providers.
public sealed class GovernanceEmissionEnvelope
- Inheritance
-
GovernanceEmissionEnvelope
- Inherited Members
Remarks
The envelope carries minimized governance context and safe diagnostics. It does not contain provider SDK payloads, cloud-specific routing, raw secrets, raw tokens, prompts, or protected content.
Properties
ActorId
Gets the actor identifier associated with the source governance event, when available.
public string? ActorId { get; }
Property Value
AuditResidueId
Gets the audit residue identifier linked to this emission, when available.
public string? AuditResidueId { get; }
Property Value
CorrelationId
Gets the correlation identifier that links the emission to the host workflow, when available.
public string? CorrelationId { get; }
Property Value
CreatedUtc
Gets the UTC timestamp when this emission envelope was created.
public DateTimeOffset CreatedUtc { get; }
Property Value
DecisionStage
Gets the provider-neutral decision stage associated with the emission, when available.
public string? DecisionStage { get; }
Property Value
EmitterProvider
Gets the provider-neutral emitter provider name, when available.
public string? EmitterProvider { get; }
Property Value
EmitterStatus
Gets the provider-neutral emitter status, when available.
public string? EmitterStatus { get; }
Property Value
EnvelopeId
Gets the stable envelope identifier.
public string EnvelopeId { get; }
Property Value
EventId
Gets the source governance event identifier, when available.
public string? EventId { get; }
Property Value
EventType
Gets the provider-neutral event category.
public GovernanceEmissionEventType EventType { get; }
Property Value
GatewayExecutionId
Gets the gateway execution identifier associated with the emission, when available.
public string? GatewayExecutionId { get; }
Property Value
HasCorrelation
Gets a value indicating whether correlation metadata is available.
public bool HasCorrelation { get; }
Property Value
HasMetadata
Gets a value indicating whether envelope metadata is present.
public bool HasMetadata { get; }
Property Value
LifecycleStage
Gets the audit residue lifecycle stage linked to this emission, when available.
public AuditResidueLifecycleStage? LifecycleStage { get; }
Property Value
LifecycleStageSequence
Gets the stable lifecycle stage sequence value, when a lifecycle stage is supplied.
public int? LifecycleStageSequence { get; }
Property Value
- int?
Metadata
Gets minimized provider-neutral metadata.
public IReadOnlyDictionary<string, string> Metadata { get; }
Property Value
OccurredUtc
Gets the UTC timestamp when the source governance event occurred.
public DateTimeOffset OccurredUtc { get; }
Property Value
OperationName
Gets the operation name associated with the source governance event, when available.
public string? OperationName { get; }
Property Value
OutboxSequence
Gets the outbox sequence associated with the emission, when available.
public long? OutboxSequence { get; }
Property Value
- long?
Outcome
Gets the outcome associated with the source governance event, when available.
public string? Outcome { get; }
Property Value
ParentSpanId
Gets the parent span identifier associated with the source governance event, when available.
public string? ParentSpanId { get; }
Property Value
Payload
Gets the minimized provider-neutral payload descriptor, when available.
public GovernanceEmissionPayload? Payload { get; }
Property Value
PolicyHash
Gets the policy hash associated with the source governance event, when available.
public string? PolicyHash { get; }
Property Value
PolicyVersion
Gets the policy version associated with the source governance event, when available.
public string? PolicyVersion { get; }
Property Value
SchemaVersion
Gets the schema version for this provider-neutral envelope shape.
public string SchemaVersion { get; }
Property Value
SpanId
Gets the span identifier associated with the source governance event, when available.
public string? SpanId { get; }
Property Value
TraceId
Gets the trace identifier associated with the source governance event, when available.
public string? TraceId { get; }
Property Value
Methods
Create(GovernanceEmissionEventType, string?, DateTimeOffset?, string?, DateTimeOffset?, string?, string?, string?, AuditResidueLifecycleStage?, string?, string?, string?, string?, string?, string?, string?, string?, string?, string?, long?, string?, string?, GovernanceEmissionPayload?, IReadOnlyDictionary<string, string>?)
Creates a provider-neutral governance emission envelope.
public static GovernanceEmissionEnvelope Create(GovernanceEmissionEventType eventType, string? eventId = null, DateTimeOffset? occurredUtc = null, string? envelopeId = null, DateTimeOffset? createdUtc = null, string? schemaVersion = null, string? correlationId = null, string? auditResidueId = null, AuditResidueLifecycleStage? lifecycleStage = null, string? policyVersion = null, string? policyHash = null, string? traceId = null, string? spanId = null, string? parentSpanId = null, string? operationName = null, string? outcome = null, string? actorId = null, string? emitterStatus = null, string? emitterProvider = null, long? outboxSequence = null, string? gatewayExecutionId = null, string? decisionStage = null, GovernanceEmissionPayload? payload = null, IReadOnlyDictionary<string, string>? metadata = null)
Parameters
eventTypeGovernanceEmissionEventTypeeventIdstringoccurredUtcDateTimeOffset?envelopeIdstringcreatedUtcDateTimeOffset?schemaVersionstringcorrelationIdstringauditResidueIdstringlifecycleStageAuditResidueLifecycleStage?policyVersionstringpolicyHashstringtraceIdstringspanIdstringparentSpanIdstringoperationNamestringoutcomestringactorIdstringemitterStatusstringemitterProviderstringoutboxSequencelong?gatewayExecutionIdstringdecisionStagestringpayloadGovernanceEmissionPayloadmetadataIReadOnlyDictionary<string, string>
Returns
FromLifecycleEvent(AuditResidueLifecycleEvent, string?, DateTimeOffset?, GovernanceEmissionPayload?, IReadOnlyDictionary<string, string>?)
Creates a provider-neutral governance emission envelope from an audit residue lifecycle event.
public static GovernanceEmissionEnvelope FromLifecycleEvent(AuditResidueLifecycleEvent lifecycleEvent, string? envelopeId = null, DateTimeOffset? createdUtc = null, GovernanceEmissionPayload? payload = null, IReadOnlyDictionary<string, string>? metadata = null)
Parameters
lifecycleEventAuditResidueLifecycleEventenvelopeIdstringcreatedUtcDateTimeOffset?payloadGovernanceEmissionPayloadmetadataIReadOnlyDictionary<string, string>
Returns
FromResidue(IAsiBackboneAuditResidue, GovernanceEmissionEventType, string?, DateTimeOffset?, GovernanceEmissionPayload?, IReadOnlyDictionary<string, string>?)
Creates a provider-neutral governance emission envelope from audit residue.
public static GovernanceEmissionEnvelope FromResidue(IAsiBackboneAuditResidue residue, GovernanceEmissionEventType eventType = GovernanceEmissionEventType.AuditResidue, string? envelopeId = null, DateTimeOffset? createdUtc = null, GovernanceEmissionPayload? payload = null, IReadOnlyDictionary<string, string>? metadata = null)
Parameters
residueIAsiBackboneAuditResidueeventTypeGovernanceEmissionEventTypeenvelopeIdstringcreatedUtcDateTimeOffset?payloadGovernanceEmissionPayloadmetadataIReadOnlyDictionary<string, string>