pub enum MergeReport {
RefusedDirtyTree,
GateFailed {
gate: String,
output: String,
},
GateConfigInvalid {
detail: String,
},
SecretScanFailed {
findings: Vec<SecretFinding>,
},
Conflict {
files: Vec<String>,
},
RefusedPreMerge {
detail: String,
},
StandardsDrifted {
approved_digest: String,
current_digest: Option<String>,
changed_rules: Vec<String>,
},
StandardsFailed {
rule_id: String,
checker: String,
output: String,
},
Merged {
commit: String,
stale_base: Option<StaleBaseWarning>,
},
}Expand description
Outcome of a gated merge attempt.
Variants§
RefusedDirtyTree
The tracked working tree was dirty; no gates ran and base is untouched.
GateFailed
A gate failed; later gates and the merge itself never ran. Base is untouched.
Fields
GateConfigInvalid
The live base branch has no valid tracked merge-gate suite. Nothing ran and base is untouched; this fails closed instead of silently treating an empty suite as green.
SecretScanFailed
The mission branch diff contains an unwaived secret finding. Base is untouched and no other gates ran.
Fields
findings: Vec<SecretFinding>Conflict
The merge conflicted and was rolled back (working tree left clean).
RefusedPreMerge
Git refused the merge before it ever started (no MERGE_HEAD), e.g. a
divergent untracked file at a path the merge would overwrite. Base is
untouched and nothing was aborted (there was no merge in progress).
StandardsDrifted
The live base’s applicable ENFORCED Flight Rules set differs from the
mission’s approved pin (KRZ-342, design D-E): policy moved under the
mission. The merge is refused before the gate suite runs — neither
grandfather-skipping current policy nor silently applying new policy
to an old consent artifact — and the caller records
standards.drifted. Base is untouched.
Fields
StandardsFailed
An applicable enforced MUST could not produce a current authoritative merge verdict. Deterministic checkers run against the exact scratch integration tree; contextual/manual checkers must carry positive or exactly-waived final evidence from the completed mission.
Merged
The mission branch merged cleanly into base with a --no-ff commit.
Fields
stale_base: Option<StaleBaseWarning>Informational warning when the mission’s pinned base trails merge commits already landed on the live base branch.
Trait Implementations§
Source§impl Clone for MergeReport
impl Clone for MergeReport
Source§fn clone(&self) -> MergeReport
fn clone(&self) -> MergeReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more