decompose_failure
Split the error between original and corrected values into direct rule violations, boundary violations, and systemic structural error, with per-field contributions. Use with a known-correct version to diff against; use analyze_anomaly when you only have the suspicious payload. Diagnostics-tier tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | GeodesicAI API key (gai_...) | |
| blueprint | No | Load rules from this Blueprint instead of passing them inline | |
| original_values | Yes | Original numeric field values as {field: number} | |
| corrected_values | Yes | Corrected/expected numeric field values as {field: number} | |
| derivation_rules | No | Math rules as objects. Types: add, subtract, multiply, divide, round, copy, sum (multi-operand), items_multiply, items_sum. Each needs 'type' plus its fields; see the blueprint_guide prompt | |
| formal_constraints | No | Constraint objects. Types incl. magnitude_anchor {field,min,max}, relative_anchor {field,reference_field,ratio_min,ratio_max}, max_action_threshold {field,threshold,on_violation}, required_fields {fields}, equals, range, in_set, regex_match, items_magnitude_anchor; see the blueprint_guide prompt |