{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/decide-fyi/json-schema/decide-fyi-decision-execution-schema.json",
  "title": "DecisionExecution",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/decide-fyi-openapi.json#/components/schemas/DecisionExecution",
  "type": "object",
  "required": [
    "decision_protocol_version",
    "decision_execution_version",
    "execution_receipt_id",
    "decision_id",
    "execution_status",
    "execution_hash",
    "reported_at"
  ],
  "properties": {
    "decision_protocol_version": {
      "type": "string",
      "const": "decision_protocol_v1"
    },
    "decision_execution_version": {
      "type": "string",
      "const": "decision_execution_v1"
    },
    "execution_receipt_id": {
      "type": "string"
    },
    "decision_id": {
      "type": "string"
    },
    "idempotency_key": {
      "type": "string"
    },
    "execution_status": {
      "type": "string"
    },
    "execution_result": {
      "type": "string"
    },
    "action_taken": {
      "type": "string"
    },
    "target_system": {
      "type": "string"
    },
    "target_object_id": {
      "type": "string"
    },
    "mutation": {
      "type": "string"
    },
    "external_ref": {
      "type": "string"
    },
    "execution_id": {
      "type": "string"
    },
    "executor": {
      "type": "object",
      "additionalProperties": true
    },
    "decision_record_hash": {
      "type": "string"
    },
    "decision_receipt_hash": {
      "type": "string"
    },
    "decision_verdict": {
      "type": "string"
    },
    "decision_action": {
      "type": "string"
    },
    "policy_id": {
      "type": "string"
    },
    "policy_version": {
      "type": "string"
    },
    "policy_bundle_hash": {
      "type": "string"
    },
    "action_binding": {
      "$ref": "#/$defs/ActionBinding"
    },
    "action_binding_hash": {
      "type": "string"
    },
    "action_binding_match": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "state_before_hash": {
      "type": "string"
    },
    "state_after_hash": {
      "type": "string"
    },
    "state_before_ref": {
      "type": "string"
    },
    "state_after_ref": {
      "type": "string"
    },
    "evidence_refs": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "execution_input_hash": {
      "type": "string"
    },
    "execution_hash": {
      "type": "string"
    },
    "integrity": {
      "type": "object",
      "additionalProperties": true
    },
    "executed_at": {
      "type": "string"
    },
    "reported_at": {
      "type": "string"
    },
    "decision_found": {
      "type": "boolean"
    },
    "decision_url": {
      "type": "string"
    },
    "verify_url": {
      "type": "string"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "ActionBinding": {
      "type": "object",
      "properties": {
        "actor": {
          "type": "string"
        },
        "system": {
          "type": "string"
        },
        "resource": {
          "type": "string"
        },
        "proposed_action": {
          "type": "string"
        },
        "subject": {
          "type": "string"
        },
        "amount": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "target_system": {
          "type": "string"
        },
        "target_object_id": {
          "type": "string"
        },
        "mutation": {
          "type": "string"
        },
        "expires_at": {
          "type": "string"
        },
        "execution_state": {
          "type": "string"
        },
        "execution_id": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  }
}