GateDecision
@forge/monorepo / backend/src / GateDecision
Type Alias: GateDecision
GateDecision = {
comparison:ReleaseComparison|null;outcome:"pass";warnings: readonlystring[]; } | {comparison:ReleaseComparison|null;failures: readonlyGateFailure[];outcome:"fail";warnings: readonlystring[]; } | {comparison:ReleaseComparison|null;failures: readonlyGateFailure[];outcome:"overridden";override:GateOverride;warnings: readonlystring[]; }
Defined in: backend/src/evaluation/gate.ts:91
The decision.
A union, so "failed" has no passed shape to hide in. An overridden failure is its own arm rather than a
pass with a flag: a reader counting passes must not count it, and a flag on a pass is a flag that gets
dropped.