Skip to main content

GateDecision

@forge/monorepo


@forge/monorepo / backend/src / GateDecision

Type Alias: GateDecision

GateDecision = { comparison: ReleaseComparison | null; outcome: "pass"; warnings: readonly string[]; } | { comparison: ReleaseComparison | null; failures: readonly GateFailure[]; outcome: "fail"; warnings: readonly string[]; } | { comparison: ReleaseComparison | null; failures: readonly GateFailure[]; outcome: "overridden"; override: GateOverride; warnings: readonly string[]; }

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.