#!/usr/bin/env python3 """Exact checks on a fictional fixture; no external calls or model evaluation.""" import json from pathlib import Path def evaluate(candidate, expected): return {key: candidate.get(key) == expected[key] for key in ('return_days', 'citation_id', 'effective_date')} def main(): fixture = json.loads(Path(__file__).with_name('policy-evaluation-fixture.json').read_text()) print(fixture['disclosure']) results = [] for candidate in fixture['candidates']: checks = evaluate(candidate, fixture['expected']) results.append({'candidate': candidate['id'], 'checks': checks, 'passed': sum(checks.values()), 'total': len(checks)}) print(json.dumps(results, indent=2)) if __name__ == '__main__': main()