pub struct AdkEvaluationReceipt {
pub schema_version: u32,
pub protocol: String,
pub subject_version: String,
pub generated_at: String,
pub commands: Vec<String>,
pub assertions: Vec<String>,
pub claims: AdkEvaluationClaims,
pub sources: Vec<AdkEvaluationSource>,
pub source_digest: String,
pub output_digest: String,
pub receipt_digest: String,
}Expand description
Tamper-evident release-evaluation receipt for a computer-use subject.
Seal a populated receipt with AdkEvaluationReceipt::seal to compute its
canonical digest, and validate one with AdkEvaluationReceipt::verify.
Fields§
§schema_version: u32Receipt schema version (must be 1).
protocol: StringProtocol identifier (adk-rust-computer-use-v8-evaluation).
subject_version: StringVersion of the evaluated subject.
generated_at: StringRFC 3339 timestamp the receipt was generated.
commands: Vec<String>Commands executed to produce the evidence.
assertions: Vec<String>Distinct assertions the evidence proves.
claims: AdkEvaluationClaimsClaims re-checked on verification.
sources: Vec<AdkEvaluationSource>Source file digests backing the evidence.
source_digest: Stringsha256:-prefixed digest over the sources.
output_digest: Stringsha256:-prefixed digest over the captured output.
receipt_digest: StringCanonical digest over the whole receipt; empty until sealed.
Implementations§
Source§impl AdkEvaluationReceipt
impl AdkEvaluationReceipt
Sourcepub fn seal(self) -> Result<Self, Error>
pub fn seal(self) -> Result<Self, Error>
Compute and set the canonical receipt_digest over the whole receipt.
§Errors
Returns a serde_json::Error if the receipt cannot be serialized to
JSON for canonicalization.
Sourcepub fn verify(&self) -> bool
pub fn verify(&self) -> bool
Validate schema, protocol, claims, and the canonical digest.
Returns true only when every claim holds (tests passed, auth bound,
multimodal evidence present, no duplicate mutations, at least two crash
points, non-empty sources) and the receipt digest matches a fresh seal.
Trait Implementations§
Source§impl Clone for AdkEvaluationReceipt
impl Clone for AdkEvaluationReceipt
Source§fn clone(&self) -> AdkEvaluationReceipt
fn clone(&self) -> AdkEvaluationReceipt
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more