production-ai-control-evidence / scenario-001-tests.mjs
dmytro-nasyrov's picture
Publish Failure Scenario 001 synthetic authority fixtures
c8e0232 verified
Raw History Blame Contribute Delete
664 Bytes
import assert from 'node:assert/strict';
import {readFile} from 'node:fs/promises';
import {evaluate} from './scenario-001-evaluator.mjs';
const rows=(await readFile(new URL('./failure-scenario-001.jsonl',import.meta.url),'utf8')).trim().split('\n').map(JSON.parse);
assert.equal(rows.length,10);assert.equal(new Set(rows.map(r=>r.case_id)).size,10);
for(const row of rows){const r=evaluate(JSON.parse(row.input_json));assert.equal(r.outcome,row.expected_outcome,row.case_id);assert.equal(r.outcome,row.observed_outcome);assert.equal(r.action_executed,false);assert.equal(r.release_eligible,false);}
console.log('10 synthetic cases matched; no action executed.');