generate_governance
Convert one or more policy documents into a sealed NOMOS governance artifact (.nomos). Extracts executable rules using Claude, detects contradictions between rules, computes an Autonomy Readiness Index (ARI) score (0–1), and cryptographically seals the result. Returns an artifact_id you can use with verify_decision immediately. Optionally accepts historical behavioral decision logs to add a behavioral evidence layer and reach CERTIFIED confidence tier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable name for the governance artifact (e.g. "Loan Approval Policy v2", "HR Leave Rules"). | |
| domain | No | Industry or domain hint (e.g. "lending", "hr", "e-commerce", "healthcare", "insurance"). Improves extraction accuracy. | |
| api_key | No | NOMOS API key (nmk_live_...). | |
| documents | Yes | Policy documents to extract governance rules from. Each item must have filename and content (plain text). | |
| organization | Yes | Name of the organization this artifact governs (e.g. "Acme Bank", "HealthCorp"). | |
| behavioral_logs | No | Optional historical decision records (CSV rows as objects) for behavioral triangulation. Minimum 10 rows recommended. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ari_score | No | Autonomy Readiness Index 0–1 (≥0.60 autonomous, ≥0.30 bounded, <0.30 human-governed) | |
| seal_hash | No | SHA-256 cryptographic seal of the artifact | |
| artifact_id | No | Unique ID for the sealed artifact — use this with verify_decision | |
| autonomy_band | No | Recommended deployment mode | |
| contradictions | No | Number of contradictions detected | |
| confidence_tier | No | Artifact confidence tier | |
| rules_extracted | No | Number of executable rules extracted |