Quality objectives (commons 0001-quality-evidenceFR-037 to FR-039): a success criterion of a specification (SC-nnn) read as an objective with a metric named as OpenTelemetry names one (0006-signalsFR-013), a target, a unit, an error budget and the window it is spent in; its measure is computed from the evidence and never typed in; WHEN the budget is spent within the window the system opens a nonconformance, and WHILE budget remains the remainder is shown with the objective. The quality system's own objectives (0001-quality-evidenceFR-039) are the suggested set here.
A measure is one of a few computations over the evidence (the share of requirements at a grade, the review debt, the count of not_run cases, the age of the oldest open nonconformance, the number of stale proofs, the number of figures shown with no grade).
An error budget is the share of the window's samples that may miss the target (0 to 1): the objective is spent when more of the window's samples missed than the budget allows, at-risk when some missed within the budget, and met when none did.
The objectives are emitted as OpenTelemetry metrics (FR-011): gauges through kernel/otel.ts and otlp.ts.
type Objective = {
/** Its identifier, stable. */
readonly id: string;
/** The OpenTelemetry metric that carries i…(732 characters)
typeObjective= {
/** Its identifier, stable. */readonlyid:string;
/** The OpenTelemetry metric that carries it (lower case, dotted, as 0006-signals FR-013 names metrics). */readonlymetric:string;
readonlytitle:string;
readonlymeasure:Measure;
readonlycomparator:Comparator;
readonlytarget:number;
/** The unit of the metric, in UCUM as OpenTelemetry takes it. */readonlyunit:string;
/** The share of the window's samples allowed to miss the target, from 0 to 1. */readonlybudget:number;
/** The window, in days, the budget is spent in. */readonlywindowDays:number;
/** The success criterion it reads, `NNNN-slug SC-nnn`, where it reads one. */readonlycriterion?:string;
};
typeMeasureFacts= {
readonlysummary:Summary;
/** Cases that did not run in the newest run of each requirement. */readonlynotRun:number;
readonlyoldestOpenDays:number;
/** Requirements the index lists with no grade (none, by construction: the check that holds it). */readonlyungraded:number;
};
The quality system's own objectives, suggested to a harness (0001-quality-evidenceFR-039): the share at E3 or above, the review debt, not_run, the age of the oldest open nonconformance and the stale proofs.
type Evaluation = {
readonly objective: Objective;
/** The newest measure. */
readonly value: number;
readonly s…(430 characters)
typeEvaluation= {
readonlyobjective:Objective;
/** The newest measure. */readonlyvalue:number;
readonlystate:ObjectiveState;
/** Samples in the window, and how many of them missed the target. */readonlysamples:number;
readonlymissed:number;
/** The budget that remains, as a share of the window's samples (negative where it is overspent); shown with the objective. */readonlyremaining:number;
};
The success criteria of the specifications read as quality objectives (FR-037): each criterion with the objective declared for it (an objective whose criterion is NNNN-slug SC-nnn); a criterion with none is listed with no objective, so that it is seen.