pub struct ExecutionEvidence {
pub status: Option<ExitStatus>,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
pub stdout_truncated: bool,
pub stderr_truncated: bool,
}Expand description
Bounded evidence from one invocation, including interrupted invocations.
Bytes are available explicitly to the caller; formatting prints only lengths and status. Error messages never include command arguments or environment.
Fields§
§status: Option<ExitStatus>Observed direct-child status. Communication can reserve a successful leader without reaping it. Status does not prove external effects absent.
stdout: Vec<u8>Retained stdout prefix, bounded by the selected limit.
stderr: Vec<u8>Retained stderr prefix, bounded by the selected limit.
stdout_truncated: boolMore stdout bytes were observed than could be retained.
stderr_truncated: boolMore stderr bytes were observed than could be retained.
Implementations§
Source§impl ExecutionEvidence
impl ExecutionEvidence
Sourcepub fn require_complete(self) -> Result<Self, ToolError>
pub fn require_complete(self) -> Result<Self, ToolError>
Require complete output before parsing or treating it as an identity.
§Errors
Returns an output-limit failure with the original evidence if either stream was truncated. This does not perform child cleanup; callers using retained ownership still own the child’s disposition.