feat(config-audit): wire TOK into posture scorecard as 8th quality area (Token Efficiency)

This commit is contained in:
Kjell Tore Guttormsen 2026-04-19 22:45:12 +02:00
commit 4b385bf456
3 changed files with 23 additions and 8 deletions

View file

@ -265,11 +265,11 @@ describe('determineSegment', () => {
// scoreByArea
// ========================================
describe('scoreByArea', () => {
it('returns areas for all 8 scanners', () => {
const scanners = ['CML', 'SET', 'HKV', 'RUL', 'MCP', 'IMP', 'CNF', 'GAP']
it('returns areas for all 9 scanners', () => {
const scanners = ['CML', 'SET', 'HKV', 'RUL', 'MCP', 'IMP', 'CNF', 'GAP', 'TOK']
.map(s => makeScannerResult(s, 0));
const result = scoreByArea(scanners);
assert.equal(result.areas.length, 8);
assert.equal(result.areas.length, 9);
});
it('zero findings → A grade', () => {