Skip to main content

MergeReport

Enum MergeReport 

Source
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

§gate: String

The failing gate’s command string.

§output: String

That gate’s verbatim captured output.

§

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.

Fields

§detail: String
§

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).

Fields

§files: Vec<String>

Conflicting paths git named (best-effort; may be empty).

§

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).

Fields

§detail: String

Git’s verbatim refusal text.

§

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

§approved_digest: String

The digest pinned at approval.

§current_digest: Option<String>

The digest resolved from the live base (None: the live base no longer yields a readable standards manifest at all).

§changed_rules: Vec<String>

Id-level change lines for the applicable enforced set.

§

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.

Fields

§rule_id: String
§checker: String
§output: String
§

Merged

The mission branch merged cleanly into base with a --no-ff commit.

Fields

§commit: String

The new merge commit sha, now the tip of base_branch.

§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

Source§

fn clone(&self) -> MergeReport

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MergeReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for MergeReport

Source§

impl PartialEq for MergeReport

Source§

fn eq(&self, other: &MergeReport) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MergeReport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more