test(pdf): apply owner-approved revised S01 baseline metric

This commit is contained in:
cesnimda
2026-10-30 08:21:01 +01:00
parent 9267cab854
commit 0bacb30e20
5 changed files with 116 additions and 5 deletions
@@ -104,6 +104,20 @@ test('an imported schema cannot weaken the trusted schema', () => shadow(base =>
test('model quality cannot become PASS from the rejected development probes', () => shadow(base => {
json(base, 'ACCEPTANCE', value => { value.verdicts.find(item => item.criterion === 'CV AI Accuracy').status = 'PASS'; });
}));
test('the scoped S01 disposition cannot authorise a larger tolerance', () => shadow(base => {
json(base, 'S01_METRIC_APPROVAL', value => { value.positionToleranceMm = 3; });
}));
test('approved S01 cannot conceal a failing revised baseline', () => shadow(base => {
json(base, 'TEST_EVIDENCE', index => {
const artifact = index.artifacts.find(item => item.id === 'p10-windows-classification');
const file = path.join(base, artifact.path);
const value = JSON.parse(zlib.gunzipSync(fs.readFileSync(file)));
value.rows[0].pdfBaselinePx += 100;
const bytes = zlib.gzipSync(JSON.stringify(value)); fs.writeFileSync(file, bytes); artifact.sha256 = hash(bytes);
});
}));
test('a mandatory entry blocker cannot be self-deferred', () => shadow(base => {
json(base, 'ACCEPTANCE', value => { value.permissibleDeferrals.push('P10-ENTRY-01'); });
}));