pub struct SessionReceipt {Show 16 fields
pub type_: String,
pub schema_version: Option<String>,
pub session: SessionSection,
pub participants: Participants,
pub hosts: Vec<HostInfo>,
pub tools: Vec<ToolInfo>,
pub agent_graph: AgentGraph,
pub timeline: Vec<TimelineEntry>,
pub side_effects: SideEffects,
pub artifacts: Vec<ArtifactEntry>,
pub proofs: ProofsSection,
pub merkle: MerkleSection,
pub render: RenderConfig,
pub tool_usage: Option<ToolUsage>,
pub authority: Option<AuthoritySection>,
pub custody: Option<Custody>,
}Expand description
The complete Session Receipt.
Fields§
§type_: StringAlways “treeship/session-receipt/v1”.
schema_version: Option<String>Schema version. Absent on pre-v0.9.0 receipts (treated as “0”). Set to “1” for v0.9.0+ receipts.
session: SessionSection§participants: Participants§hosts: Vec<HostInfo>§tools: Vec<ToolInfo>§agent_graph: AgentGraph§timeline: Vec<TimelineEntry>§side_effects: SideEffects§artifacts: Vec<ArtifactEntry>§proofs: ProofsSection§merkle: MerkleSection§render: RenderConfig§tool_usage: Option<ToolUsage>Tool usage summary: declared vs actual tools used during the session.
What each action/v2 in this session was authorized to do, and whether it stayed inside that.
Absent when the session contained no action/v2 receipts, which keeps older receipts byte-identical. Present-but-empty never happens: a session with nothing to say about authority says nothing, rather than showing an empty band that reads like a clean bill.
custody: Option<Custody>Who actually held the signing key, when that is not the actor.
Absent means self-custody – the actor signed for itself, which is the default and the strong case. Present means a service signed on the actor’s behalf, which is a materially weaker claim and has to be legible as such rather than inferred from context.
Trait Implementations§
Source§impl Clone for SessionReceipt
impl Clone for SessionReceipt
Source§fn clone(&self) -> SessionReceipt
fn clone(&self) -> SessionReceipt
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more