pub enum ArtifactResult {
Written {
agent: AgentId,
capability: Capability,
path: PathBuf,
},
Unchanged {
agent: AgentId,
capability: Capability,
path: PathBuf,
},
Skipped {
agent: AgentId,
reason: &'static str,
},
Failed {
agent: AgentId,
capability: Capability,
error: RepographError,
},
}Expand description
Per-artifact outcome of an install. The orchestrator returns one of these per (agent, capability) artifact actually targeted, in selection order.
RepographError is not Clone, so this enum is Debug-only on purpose.
Variants§
Written
File was created or its delimited block was rewritten.
Unchanged
File already exists with a delimited block whose body is byte-identical to the canonical content; no I/O write occurred.
Skipped
Agent has no writer (today: only Copilot); the install layer skipped
it with no file write attempted.
Failed
Per-artifact failure (read or write I/O error). Reported on stderr; does not abort the surrounding run.
Implementations§
Source§impl ArtifactResult
impl ArtifactResult
Sourcepub const fn agent(&self) -> AgentId
pub const fn agent(&self) -> AgentId
The agent this result pertains to. Useful in summary logs and tests.
Sourcepub const fn capability(&self) -> Option<Capability>
pub const fn capability(&self) -> Option<Capability>
The capability this result pertains to, or None for a Skipped agent
(which has no per-capability artifact).