pub enum Outcome {
Verified {
merge_commit: String,
verify_commit: String,
},
RejectedFencing {
reason: String,
},
SkippedLeaseExpired,
RejectedWriteSet {
paths: Vec<String>,
detail: String,
},
RejectedNotBuilt {
reason: String,
},
RejectedStaleInputs {
keys: Vec<String>,
},
RejectedGate {
command: String,
output: String,
},
OwnershipConflict {
paths: Vec<String>,
},
LostRace,
Interrupted,
}Variants§
Verified
RejectedFencing
Superseded token or wrong state — rejected outright, tests not run.
SkippedLeaseExpired
Token current but the lease merely expired at gate start: not an error — the unit returns to the pool.
RejectedWriteSet
The branch changed paths outside the unit’s write-set (schema §13.3):
files the unit does not own (unmanaged ones included), other files
of the SDD, or its own spec text beyond the handoff fields. Rejected
before merging — nothing merged, nothing published. detail holds
one line per violation.
RejectedNotBuilt
The work does not stamp the unit Built with a recorded trace: there is nothing to say what it was built from.
RejectedStaleInputs
The trace the unit was built from no longer matches the spec text at
the mainline head: an input (keys) changed while it was being
built. Not the work’s fault — the unit is rebuilt from current text.
RejectedGate
Gate red: reverted to the recorded base; nothing published.
OwnershipConflict
Merge conflict. The write-set check already passed, so every conflicted path is one this unit may write that mainline also changed after the branch forked — treated as an ownership violation: escalate.
LostRace
CAS/push lost after the retry budget.
Interrupted
The run was interrupted before this unit’s integration finished; nothing was published.