{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://awoooi.local/schemas/ai_agent_runtime_verifier_evidence_review_v1.schema.json",
  "title": "AI Agent Runtime Verifier Evidence Review",
  "type": "object",
  "required": [
    "schema_version",
    "generated_at",
    "program_status",
    "source_refs",
    "review_truth",
    "review_package",
    "evidence_checks",
    "implementation_review_lanes",
    "operator_actions",
    "approval_boundaries",
    "display_redaction_contract",
    "rollups"
  ],
  "properties": {
    "schema_version": {
      "const": "ai_agent_runtime_verifier_evidence_review_v1"
    },
    "generated_at": {
      "type": "string"
    },
    "program_status": {
      "type": "object",
      "required": [
        "overall_completion_percent",
        "current_priority",
        "current_task_id",
        "next_task_id",
        "read_only_mode",
        "runtime_authority",
        "status_note"
      ],
      "properties": {
        "overall_completion_percent": {
          "const": 99
        },
        "current_priority": {
          "enum": [
            "P0",
            "P1",
            "P2",
            "P3"
          ]
        },
        "current_task_id": {
          "const": "P2-403I"
        },
        "next_task_id": {
          "const": "P2-403J"
        },
        "read_only_mode": {
          "const": true
        },
        "runtime_authority": {
          "const": "runtime_verifier_evidence_review_only_no_live_execution"
        },
        "status_note": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "source_refs": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1
    },
    "review_truth": {
      "type": "object",
      "required": [
        "review_packet_ready",
        "runtime_verifier_implementation_allowed",
        "post_write_verifier_execution_allowed",
        "runtime_verifier_executed_count",
        "canonical_readback_allowed",
        "canonical_readback_executed_count",
        "rollback_work_item_created_count",
        "telegram_failure_receipt_sent_count",
        "learning_writeback_after_verifier_count",
        "truth_note"
      ],
      "properties": {
        "review_packet_ready": {
          "const": true
        },
        "runtime_verifier_implementation_allowed": {
          "const": false
        },
        "post_write_verifier_execution_allowed": {
          "const": false
        },
        "runtime_verifier_executed_count": {
          "const": 0
        },
        "canonical_readback_allowed": {
          "const": false
        },
        "canonical_readback_executed_count": {
          "const": 0
        },
        "rollback_work_item_created_count": {
          "const": 0
        },
        "telegram_failure_receipt_sent_count": {
          "const": 0
        },
        "learning_writeback_after_verifier_count": {
          "const": 0
        },
        "truth_note": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "review_package": {
      "type": "object",
      "required": [
        "required_evidence",
        "forbidden_evidence",
        "operator_meaning",
        "approval_policy",
        "failure_policy"
      ],
      "properties": {
        "required_evidence": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        "forbidden_evidence": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        "operator_meaning": {
          "type": "string"
        },
        "approval_policy": {
          "type": "string"
        },
        "failure_policy": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "evidence_checks": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "check_id",
          "display_name",
          "status",
          "owner_agent",
          "required_evidence",
          "review_question",
          "blocked_runtime_action"
        ],
        "properties": {
          "check_id": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "status": {
            "enum": [
              "contract_ready",
              "approval_required",
              "blocked_by_runtime_gate",
              "ready_for_owner"
            ]
          },
          "owner_agent": {
            "enum": [
              "openclaw",
              "hermes",
              "nemotron"
            ]
          },
          "required_evidence": {
            "type": "string"
          },
          "review_question": {
            "type": "string"
          },
          "blocked_runtime_action": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "minItems": 1
    },
    "implementation_review_lanes": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "lane_id",
          "display_name",
          "status",
          "owner_agent",
          "trigger",
          "operator_instruction",
          "blocked_runtime_action"
        ],
        "properties": {
          "lane_id": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "status": {
            "enum": [
              "contract_ready",
              "approval_required",
              "blocked_by_runtime_gate",
              "ready_for_owner"
            ]
          },
          "owner_agent": {
            "enum": [
              "openclaw",
              "hermes",
              "nemotron"
            ]
          },
          "trigger": {
            "type": "string"
          },
          "operator_instruction": {
            "type": "string"
          },
          "blocked_runtime_action": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "minItems": 1
    },
    "operator_actions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "action_id",
          "display_name",
          "action_type",
          "status",
          "owner_agent",
          "operator_instruction",
          "blocked_runtime_action"
        ],
        "properties": {
          "action_id": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "action_type": {
            "enum": [
              "review",
              "collect_evidence",
              "approve_implementation",
              "reject_or_rework"
            ]
          },
          "status": {
            "enum": [
              "ready_for_owner",
              "approval_required",
              "blocked_by_runtime_gate"
            ]
          },
          "owner_agent": {
            "enum": [
              "openclaw",
              "hermes",
              "nemotron"
            ]
          },
          "operator_instruction": {
            "type": "string"
          },
          "blocked_runtime_action": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "minItems": 1
    },
    "approval_boundaries": {
      "type": "object",
      "additionalProperties": {
        "const": false
      }
    },
    "display_redaction_contract": {
      "type": "object",
      "required": [
        "redaction_required",
        "raw_payload_display_allowed",
        "private_reasoning_display_allowed",
        "secret_value_display_allowed",
        "allowed_frontend_content",
        "forbidden_frontend_content",
        "frontend_display_policy"
      ],
      "properties": {
        "redaction_required": {
          "const": true
        },
        "raw_payload_display_allowed": {
          "const": false
        },
        "private_reasoning_display_allowed": {
          "const": false
        },
        "secret_value_display_allowed": {
          "const": false
        },
        "allowed_frontend_content": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "forbidden_frontend_content": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "frontend_display_policy": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "rollups": {
      "type": "object",
      "required": [
        "evidence_check_count",
        "implementation_review_lane_count",
        "operator_action_count",
        "approval_required_action_ids",
        "blocked_runtime_action_count",
        "required_evidence_count",
        "forbidden_evidence_count",
        "live_verifier_execution_count"
      ],
      "properties": {
        "evidence_check_count": {
          "type": "integer"
        },
        "implementation_review_lane_count": {
          "type": "integer"
        },
        "operator_action_count": {
          "type": "integer"
        },
        "approval_required_action_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "blocked_runtime_action_count": {
          "type": "integer"
        },
        "required_evidence_count": {
          "type": "integer"
        },
        "forbidden_evidence_count": {
          "type": "integer"
        },
        "live_verifier_execution_count": {
          "const": 0
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
