Files
pbakaus_impeccable/crates/context/src/component_review/capture.rs
T
Paul Bakaus 6a93a35293 Add human component review and prepare Impeccable 4.4.0
Carry native comp capture and completion integrity fixes into the reviewed component workflow. Bump the skill to 4.4.0 and engine/platform pins to 0.1.6; keep publication separate from this release candidate.

AI assistance: implemented and validated with OpenAI Codex.
2026-09-13 20:41:09 -07:00

17 lines
593 B
Rust

//! Browser adapters return fresh in-process evidence; producer JSON is never capture authority.
use serde_json::Value;
use std::collections::BTreeMap;
pub struct CapturedPreviews {
pub files: BTreeMap<String, Vec<u8>>,
pub evidence: Value,
}
pub trait ComponentCapturer {
/// Replace preview URLs in a frozen packet with native captures. Only pinned
/// input bytes may be rendered; output files use reserved capture paths.
fn capture(
&mut self,
packet: &mut Value,
inputs: &BTreeMap<String, Vec<u8>>,
) -> Result<CapturedPreviews, String>;
}