Skip to main content

CompleteEnvelope

Struct CompleteEnvelope 

Source
pub struct CompleteEnvelope {
Show 13 fields pub trace_id: u64, pub flow_name: String, pub backend: String, pub success: bool, pub steps_executed: usize, pub tokens_input: u64, pub tokens_output: u64, pub latency_ms: u64, pub effect_policies: Vec<(String, String)>, pub enforcement_summaries: Vec<(String, EnforcementSummaryWire)>, pub runtime_warnings: Vec<RuntimeWarning>, pub step_audit_records: Vec<StepAuditRecord>, pub epistemic_envelopes: Vec<EpistemicEnvelope>,
}
Expand description

§Fase 33.z.k.g (v1.28.0) — Envelope carrying all the side-channel

  • summary data the SSE producer accumulates over the lifetime of a flow. Passed to adapter.build_complete_envelope_event() at FlowComplete time so dialect adapters can surface the data per their wire-format conventions:
  • axon: embeds the fields directly on axon.complete (D4 wire byte-compat with v1.27.1 inline build_complete_event).
  • openai: emits a separate data: {"axon_metadata": {...}} frame BEFORE data: [DONE] (Q7 ratification).
  • anthropic: emits a separate event: axon.metadata frame BEFORE event: message_stop (Q7).

Built by the producer from the same side-channels v1.27.1 build_complete_event consumed:

  • enforcement_summaries: per-step enforcement counters from the dispatcher’s StreamPolicyEnforcer (Fase 33.x.d).
  • runtime_warnings: closed-catalog axon-W002 etc. warnings (Fase 33.x.g).
  • effect_policies: per-step <stream:<policy>> declarations (Fase 33.e).
  • step_audit_records: per-step audit rows (step_name + tokens_emitted + output_hash + effect_policy_applied + counters), populated by the dispatcher (Fase 33.x.f). Surfaces on the axon.metadata extension frame for openai + anthropic dialects (Q7 algebraic-policy preservation channel — adopters on those wires use this to satisfy banking PCI DSS Req 10 / government FedRAMP AU-2 / legal FRE 502 / medicine 21 CFR Part 11 §11.10 per-step provenance requirements).
  • Flow envelope: trace_id, flow_name, backend, success, counters, latency.

Fields§

§trace_id: u64§flow_name: String§backend: String§success: bool§steps_executed: usize§tokens_input: u64§tokens_output: u64§latency_ms: u64§effect_policies: Vec<(String, String)>§enforcement_summaries: Vec<(String, EnforcementSummaryWire)>§runtime_warnings: Vec<RuntimeWarning>§step_audit_records: Vec<StepAuditRecord>§epistemic_envelopes: Vec<EpistemicEnvelope>

§Fase 55.b — the Theorem 5.1 (base, scope, confidence) triple of every use <Tool> dispatch whose tool declares an epistemic:<level> effect. Emitted as the epistemic array on the streaming axon.complete envelope (elided when empty), byte-aligned with the sync FlowEnvelope.epistemic_envelopes (both derived by epistemic_capture::collect_for_flow — §55.c parity).

Trait Implementations§

Source§

impl Clone for CompleteEnvelope

Source§

fn clone(&self) -> CompleteEnvelope

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CompleteEnvelope

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more