pub enum CheckpointOutcome {
Committed(String),
RefusedBySecretScan {
detail: String,
},
}Expand description
Outcome of a scoped engine checkpoint commit (GitRepo::commit_dirty_paths).
The pre-commit secret scan refusing a checkpoint is a POLICY decision, not
a git failure, so it is an outcome (mirroring MergeOutcome) rather than
an EngineError::Git: callers on the mission loop must be able to record
the refusal and keep the mission moving — a dirty tree survives resume, so
a propagated refusal would wedge the mission re-hitting the same error
forever. Real git failures still surface as Err.
Variants§
Committed(String)
The checkpoint landed (or the tree was already clean); carries the resulting head sha.
RefusedBySecretScan
The secret scan refused the checkpoint. detail names the findings
(rule ids + fingerprints, never raw secret bytes) and the allowlist
path for a reviewed waiver. Nothing was staged or committed.
Trait Implementations§
Source§impl Clone for CheckpointOutcome
impl Clone for CheckpointOutcome
Source§fn clone(&self) -> CheckpointOutcome
fn clone(&self) -> CheckpointOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more