Open
Labels
enhancementNew feature or request
Description
Context
Product/engineering standards treat absent and zero as different: a missing DriftScore/RiskScore must not display as 0 (which reads as perfect). Adjacent scanners also struggle with sentinel values and counting bugs.
What to do
- Audit CLI human + machine-readable outputs for DriftScore / RiskScore / related metrics when a scan has not produced a score.
- Ensure absent values are
null/ “n/a” / omitted — never0unless the score was actually computed as zero. - Add a regression test for the “unscanned / incomplete” path.
Acceptance
- Absent vs zero distinguished in at least the primary
vg scansummary and one machine-readable format - Regression test covers the absent path
- No change to scoring math beyond presentation/serialization of absence
Mentoring notes
Confirm current behaviour before coding; cite the commands you exercised in the PR.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
vibgrate-team commentedon Oct 3, 2026
computeDriftScoreinsrc/reporting/scoring/drift-score.tsdoes not preserve absence.buildComponents()usestoDrift(Math.round(rs ?? 100))(and the same for framework, dependency, and eol). A component with no input is therefore stored as drift0, which on the v2 scale means "no drift", not "unmeasured".If every component is null, the function returns overall
score: 0andriskLevel: 'low'and omitsmeasured.vg scanprints that viaemitDriftScoreLine(artifact.drift.score)and will compare it to--drift-budget.Contract:
null(or omitted), never0.0(runtime lag of 4 or more really returns0fromruntimeScore).scoreisnull, not0/low. A null score must not fail--drift-budget; skip the comparison and say the score is absent.projects: []and a project with empty dependency buckets / no runtime insrc/reporting/scoring/drift-score.test.ts.