import json
from pathlib import Path
from evaluator import evaluate
r=Path(__file__).resolve().parent
cases=json.loads((r/'fixtures/cases.json').read_text(encoding='utf-8'))['cases']
for c in cases:
    o=evaluate(c)
    print(c['case_id'],o['decision_state'],o['selected_resource_id'],o['top_rejection_reason'],o['eligible_count'],o['rejected_count'])
print('Executed',len(cases),'fixtures. Explain the first hard gate or evidence state before submission.')
