detect_contradictions
Analyze policy documents (and optional behavioral decision logs) to detect contradictions, hidden rules, and gaps between declared policy and observed behavior. Stateless — no artifact is created and nothing is persisted. Returns contradiction types: threshold_conflicts (numeric rule overlaps), ghost_terms (undefined terms used in rules), role_conflicts (same action allowed by one role, denied by another), rule_collisions (direct logical conflicts), and layer_divergences (policy says X but behavioral data shows Y).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | NOMOS API key (nmk_live_...). | |
| documents | Yes | Policy documents to analyze for contradictions. | |
| behavioral_logs | No | Optional historical decision records. Enables layer_divergence detection — surfaces behavioral patterns that deviate from written policy. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | No | Plain-language summary of findings | |
| hidden_rules | No | Rules inferred from behavior not in written policy | |
| contradictions | No | List of detected contradictions | |
| total_contradictions | No | Total contradictions found |