Skip to main content

EvalVerdict

@forge/monorepo


@forge/monorepo / backend/src / EvalVerdict

Type Alias: EvalVerdict

EvalVerdict = object

Defined in: backend/src/persistence/index.ts:786

Evaluation results, per release — REQ-032 (#141).

Durable because the point is comparison: a score with nothing to compare it against cannot gate a release, and "quality went down" is only a statement if last release's number still exists. Aggregates are stored alongside per-case results rather than derived on read, because a per-dimension breakdown of a thousand cases is a read every release does and an aggregate nobody can recompute once a case is retired from the dataset.

Properties

costMinorUnits?

readonly optional costMinorUnits?: number

Defined in: backend/src/persistence/index.ts:799

What producing this verdict cost, in integer minor units.

On the verdict because the cost is a property of this grading — a cache hit and a fresh model call produce the same verdict at different prices, and a harness that could not tell them apart could not report the gate's expense. Absent means free, which is every deterministic grader.


pass

readonly pass: boolean

Defined in: backend/src/persistence/index.ts:787


reason

readonly reason: string

Defined in: backend/src/persistence/index.ts:791

Why. Shown in the report, so a regression names its cause rather than only its case id.


score

readonly score: number

Defined in: backend/src/persistence/index.ts:789

0–1. Binary graders report 0 or 1; a partial-credit grader may report between.