Skip to main content

GateThresholds

@forge/monorepo


@forge/monorepo / backend/src / GateThresholds

Type Alias: GateThresholds

GateThresholds = object

Defined in: backend/src/evaluation/gate.ts:42

The committed thresholds.

Per dimension, because dimensions fail differently: an authorization regression is a security problem and a task-completion regression is a quality one, and one number across both would be set by whichever mattered less.

Properties

dimensions

readonly dimensions: Readonly<Record<string, number>>

Defined in: backend/src/evaluation/gate.ts:44

Minimum mean score per dimension. A dimension absent from the map is ungated, which is reported.


maxRegressedCases?

readonly optional maxRegressedCases?: number

Defined in: backend/src/evaluation/gate.ts:53

How many named case regressions are tolerated.

Zero by default. A non-zero budget exists because a large dataset has genuinely flaky cases, and a gate that fails on one is a gate people learn to re-run until it passes — which is worse than a stated tolerance.


overallMeanScore?

readonly optional overallMeanScore?: number

Defined in: backend/src/evaluation/gate.ts:46

Minimum overall mean, as a backstop against many small dimension slips that each stay above their line.