refactor(verify)!: typed signature, artifact, SCT and log evidence errors #369
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 230 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #369"
general
weight: 0.35
baszalmstra
Part of stack #370 (base:
refactor/verify-typed-error-payloads).Motivation
Found while porting ocx to sigstore-rust. ocx reports a bad signature, an artifact that doesn't match, a missing SCT and missing log evidence as different refusals. With
Stringpayloads it could match the variant but not the cause, for example whether the DSSE envelope or the artifact signature failed. It also couldn't tell which piece of log evidence was missing.Change
SignatureInvalid { content, source }: which content was signed (thenew
SignedContent: DSSE envelope or artifact) and thesigstore_crypto::Errorthat failed, instead of a message.ArtifactMismatch { binding }: which binding failed (the newArtifactBinding: message digest, statement subjects, log entrydigest).
CertificateError::SctMissingfor a certificate without an SCT.TransparencyLogError::{MissingInclusionProof, MissingInclusionPromise,MissingCheckpoint, NoInclusionEvidence} for absent evidence, and
CheckpointRootMismatch { checkpoint_root, proof_root }.Detail-only conditions (malformed entries, entry/bundle mismatches,
other SCT and checkpoint failures) keep their messages in the existing
category variants.
BREAKING CHANGE:
Error::SignatureInvalidandError::ArtifactMismatchare struct variants. Missing SCTs, missing log evidence and checkpoint
root mismatches have their own variants instead of
Sct,InclusionProof,InclusionPromiseorCheckpointmessages.Testing
cargo fmt --all --check,cargo clippy --workspace --all-targets --all-features -- -D warnings,cargo doc --no-deps --all-features --workspace(warnings as errors) andcargo test --workspace --all-featurespass on this branch.🤖 Generated with Claude Code