import fs from 'node:fs';
import assert from 'node:assert/strict';
import {simulateAgentRetry} from './model.mjs';
const results=JSON.parse(fs.readFileSync(new URL('./results.json',import.meta.url),'utf8'));
for(const row of results.results){const value=simulateAgentRetry(row.actual.scenarioId,row.actual.design);for(const [key,expected] of Object.entries(row.expected))assert.equal(value[key],expected,row.id+' '+key);}
console.log('16/16 declared expectations reproduced in local ordered simulation. No provider, payment or concurrent database tested.');
