When to use
Use the Process Verifier when you need to:- Verify that AI reasoning follows required steps (IRAC, scientific method, etc.)
- Ensure compliance with regulatory frameworks that mandate structured analysis
- Validate that intermediate milestones are present in agent reasoning
- Audit AI decision-making processes for completeness
IRAC structure verification
IRAC (Issue, Rule, Application, Conclusion) is a legal reasoning framework. The Process Verifier checks that all four components are present in a reasoning trace.Partial compliance
When not all IRAC steps are present, the verifier returns a decimal score and lists missing steps:Milestone verification
For custom process requirements, useverify_trace to check for required keywords or milestones:
Process rate calculation
The process rate is the fraction of required milestones found:Response fields
verify_irac_structure response
| Field | Type | Description |
|---|---|---|
verified | bool | True if all 4 IRAC steps are present |
score | float | Decimal score from 0.0 to 1.0 (steps found / 4) |
missing_steps | list[str] | List of missing IRAC components |
mechanism | str | Always "Regex Pattern Matching (Deterministic)" |
verify_trace response
| Field | Type | Description |
|---|---|---|
verified | bool | True if all milestones are present |
process_rate | float | Decimal score from 0.0 to 1.0 (found / total) |
missed_milestones | list[str] | List of missing milestones |
Determinism
The Process Verifier uses regex pattern matching and keyword search — no LLM calls. All results are 100% reproducible:- Same input always produces the same output
- Scores use Python’s
Decimaltype for exact arithmetic - No probabilistic components