"""Synthetic local application example. No network or database calls."""
import json
candidates=[{"id":"C1","document":"D1"},{"id":"C2","document":"D2"},{"id":"C3","document":"D3"}]
decisions={"C1":"accepted","C2":"rejected"}
result=[{**c,"state":decisions.get(c["id"],"pending_review")} for c in candidates]
assert [r["state"] for r in result] == ["accepted","rejected","pending_review"]

print(json.dumps(result, indent=2, ensure_ascii=False))
