test(handoff): bind verifier source and reject acceptance promotion

This commit is contained in:
cesnimda
2026-10-29 18:44:08 +01:00
parent 78e5296881
commit 657db9d294
2 changed files with 25 additions and 1 deletions
@@ -83,3 +83,9 @@ test('artifact paths cannot escape the imported package', () => shadow(base => {
test('an imported schema cannot weaken the trusted schema', () => shadow(base => {
fs.writeFileSync(path.join(base, 'HANDOFF_SCHEMA.json'), '{}');
}));
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('a mandatory entry blocker cannot be self-deferred', () => shadow(base => {
json(base, 'ACCEPTANCE', value => { value.permissibleDeferrals.push('P10-ENTRY-01'); });
}));