"""Deterministic workflow fixtures, not an LLM benchmark."""
from tool_dispatch import dispatch
cases = [
    ('known', 'order_status', {'order_id':'A1'}, True, 'ok'),
    ('missing', 'order_status', {'order_id':'X'}, True, 'not_found'),
    ('denied', 'order_status', {'order_id':'A1'}, False, 'forbidden'),
    ('injection', 'delete_order', {}, True, 'unknown_tool')]
results = []
for case, name, args, allowed, expected in cases:
    actual = dispatch(name, args, allowed=allowed)['status']
    results.append({'case':case,'expected':expected,'actual':actual,'pass':actual==expected})
assert all(row['pass'] for row in results)
assert len({row['case'] for row in results}) == 4
for row in results:
    print(row)
print('PASS: 4 workflow contracts; release also needs latency, cost, privacy and independent task evaluation')
