{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://awoooi.wooo.work/schemas/ai_agent_report_runtime_dry_run_v1.schema.json",
  "title": "AI Agent Report Runtime Dry Run v1",
  "type": "object",
  "required": [
    "schema_version",
    "generated_at",
    "program_status",
    "source_refs",
    "dry_run_truth",
    "dry_run_artifacts",
    "telegram_gateway_queue_drafts",
    "readback_verifier_cases",
    "agent_dry_run_roles",
    "operator_checkpoints",
    "display_redaction_contract",
    "rollups"
  ],
  "properties": {
    "schema_version": { "const": "ai_agent_report_runtime_dry_run_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": { "type": "integer", "minimum": 0, "maximum": 100 },
        "current_priority": { "enum": ["P0", "P1", "P2", "P3"] },
        "current_task_id": { "const": "P2-403M" },
        "next_task_id": { "type": "string" },
        "read_only_mode": { "const": true },
        "runtime_authority": { "const": "report_runtime_no_write_dry_run_only_no_gateway_write_or_delivery" },
        "status_note": { "type": "string" }
      },
      "additionalProperties": false
    },
    "source_refs": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
    "dry_run_truth": {
      "type": "object",
      "required": [
        "no_write_dry_run_package_ready",
        "report_snapshot_dry_run_ready",
        "telegram_gateway_queue_draft_ready",
        "readback_verifier_plan_ready",
        "failure_only_telegram_draft_ready",
        "production_delivery_enabled",
        "telegram_gateway_queue_write_enabled",
        "telegram_bot_api_call_enabled",
        "delivery_receipt_write_enabled",
        "ai_runtime_worker_enabled",
        "medium_low_auto_worker_enabled",
        "post_action_verifier_live_readback_enabled",
        "production_write_enabled",
        "secret_value_read_enabled",
        "work_window_transcript_display_allowed",
        "live_report_delivery_count_24h",
        "telegram_gateway_queue_write_count_24h",
        "telegram_bot_api_call_count_24h",
        "delivery_receipt_write_count_24h",
        "ai_runtime_worker_run_count_24h",
        "medium_low_auto_execution_count_24h",
        "post_action_verifier_live_readback_count_24h",
        "production_write_count_24h",
        "truth_note"
      ],
      "properties": {
        "no_write_dry_run_package_ready": { "const": true },
        "report_snapshot_dry_run_ready": { "const": true },
        "telegram_gateway_queue_draft_ready": { "const": true },
        "readback_verifier_plan_ready": { "const": true },
        "failure_only_telegram_draft_ready": { "const": true },
        "production_delivery_enabled": { "const": false },
        "telegram_gateway_queue_write_enabled": { "const": false },
        "telegram_bot_api_call_enabled": { "const": false },
        "delivery_receipt_write_enabled": { "const": false },
        "ai_runtime_worker_enabled": { "const": false },
        "medium_low_auto_worker_enabled": { "const": false },
        "post_action_verifier_live_readback_enabled": { "const": false },
        "production_write_enabled": { "const": false },
        "secret_value_read_enabled": { "const": false },
        "work_window_transcript_display_allowed": { "const": false },
        "live_report_delivery_count_24h": { "const": 0 },
        "telegram_gateway_queue_write_count_24h": { "const": 0 },
        "telegram_bot_api_call_count_24h": { "const": 0 },
        "delivery_receipt_write_count_24h": { "const": 0 },
        "ai_runtime_worker_run_count_24h": { "const": 0 },
        "medium_low_auto_execution_count_24h": { "const": 0 },
        "post_action_verifier_live_readback_count_24h": { "const": 0 },
        "production_write_count_24h": { "const": 0 },
        "truth_note": { "type": "string" }
      },
      "additionalProperties": false
    },
    "dry_run_artifacts": {
      "type": "array",
      "minItems": 5,
      "items": {
        "type": "object",
        "required": [
          "artifact_id",
          "display_name",
          "owner_agent",
          "mode",
          "status",
          "evidence_ref",
          "hash_strategy",
          "writes_production",
          "contains_secret",
          "blocked_until"
        ],
        "properties": {
          "artifact_id": {
            "enum": [
              "report_run_snapshot_preview",
              "telegram_digest_payload_preview",
              "ai_post_report_analysis_packet",
              "medium_low_auto_noop_plan",
              "post_action_verifier_readback_plan"
            ]
          },
          "display_name": { "type": "string" },
          "owner_agent": { "enum": ["openclaw", "hermes", "nemotron"] },
          "mode": { "const": "repo_only_no_write" },
          "status": { "enum": ["ready_for_local_smoke", "ready_for_owner_review", "approval_required", "blocked_by_runtime_gate"] },
          "evidence_ref": { "type": "string" },
          "hash_strategy": { "type": "string" },
          "writes_production": { "const": false },
          "contains_secret": { "const": false },
          "blocked_until": { "type": "string" }
        },
        "additionalProperties": false
      }
    },
    "telegram_gateway_queue_drafts": {
      "type": "array",
      "minItems": 3,
      "items": {
        "type": "object",
        "required": [
          "draft_id",
          "display_name",
          "recipient_room",
          "secret_ref",
          "cadence",
          "noise_budget",
          "gateway_queue_write_enabled",
          "telegram_send_enabled",
          "direct_bot_api_allowed",
          "payload_contains_secret",
          "redaction_policy"
        ],
        "properties": {
          "draft_id": { "enum": ["daily_report_digest", "weekly_report_digest", "monthly_report_digest"] },
          "display_name": { "type": "string" },
          "recipient_room": { "const": "AwoooI SRE 戰情室" },
          "secret_ref": { "const": "SRE_GROUP_CHAT_ID" },
          "cadence": { "enum": ["daily", "weekly", "monthly"] },
          "noise_budget": { "type": "string" },
          "gateway_queue_write_enabled": { "const": false },
          "telegram_send_enabled": { "const": false },
          "direct_bot_api_allowed": { "const": false },
          "payload_contains_secret": { "const": false },
          "redaction_policy": { "type": "string" }
        },
        "additionalProperties": false
      }
    },
    "readback_verifier_cases": {
      "type": "array",
      "minItems": 4,
      "items": {
        "type": "object",
        "required": [
          "case_id",
          "display_name",
          "owner_agent",
          "readback_surface",
          "expected_signal",
          "live_readback_enabled",
          "writes_result",
          "requires_secret_value",
          "blocked_until"
        ],
        "properties": {
          "case_id": {
            "enum": [
              "report_snapshot_readback",
              "gateway_queue_preview_readback",
              "receipt_redaction_readback",
              "medium_low_noop_readback"
            ]
          },
          "display_name": { "type": "string" },
          "owner_agent": { "enum": ["openclaw", "hermes", "nemotron"] },
          "readback_surface": { "type": "string" },
          "expected_signal": { "type": "string" },
          "live_readback_enabled": { "const": false },
          "writes_result": { "const": false },
          "requires_secret_value": { "const": false },
          "blocked_until": { "type": "string" }
        },
        "additionalProperties": false
      }
    },
    "agent_dry_run_roles": {
      "type": "array",
      "minItems": 3,
      "items": {
        "type": "object",
        "required": [
          "agent_id",
          "display_name",
          "dry_run_responsibility",
          "allowed_now",
          "blocked_now",
          "live_action_count_24h"
        ],
        "properties": {
          "agent_id": { "enum": ["openclaw", "hermes", "nemotron"] },
          "display_name": { "type": "string" },
          "dry_run_responsibility": { "type": "string" },
          "allowed_now": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
          "blocked_now": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
          "live_action_count_24h": { "const": 0 }
        },
        "additionalProperties": false
      }
    },
    "operator_checkpoints": {
      "type": "array",
      "minItems": 6,
      "items": {
        "type": "object",
        "required": [
          "checkpoint_id",
          "display_name",
          "owner_agent",
          "risk_tier",
          "approval_required",
          "status",
          "next_safe_step"
        ],
        "properties": {
          "checkpoint_id": { "type": "string" },
          "display_name": { "type": "string" },
          "owner_agent": { "enum": ["openclaw", "hermes", "nemotron"] },
          "risk_tier": { "enum": ["low", "medium", "high", "critical"] },
          "approval_required": { "type": "boolean" },
          "status": { "enum": ["ready_for_review", "approval_required", "blocked_by_runtime_gate"] },
          "next_safe_step": { "type": "string" }
        },
        "additionalProperties": false
      }
    },
    "display_redaction_contract": {
      "type": "object",
      "required": [
        "redaction_required",
        "raw_report_payload_display_allowed",
        "raw_telegram_payload_display_allowed",
        "private_reasoning_display_allowed",
        "secret_value_display_allowed",
        "work_window_transcript_display_allowed",
        "allowed_display_fields",
        "blocked_display_fields"
      ],
      "properties": {
        "redaction_required": { "const": true },
        "raw_report_payload_display_allowed": { "const": false },
        "raw_telegram_payload_display_allowed": { "const": false },
        "private_reasoning_display_allowed": { "const": false },
        "secret_value_display_allowed": { "const": false },
        "work_window_transcript_display_allowed": { "const": false },
        "allowed_display_fields": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
        "blocked_display_fields": { "type": "array", "items": { "type": "string" }, "minItems": 1 }
      },
      "additionalProperties": false
    },
    "rollups": {
      "type": "object",
      "required": [
        "dry_run_artifact_count",
        "gateway_queue_draft_count",
        "readback_verifier_case_count",
        "agent_role_count",
        "operator_checkpoint_count",
        "approval_required_checkpoint_ids",
        "live_report_delivery_count",
        "telegram_gateway_queue_write_count",
        "telegram_bot_api_call_count",
        "delivery_receipt_write_count",
        "ai_runtime_worker_run_count",
        "medium_low_auto_execution_count",
        "post_action_verifier_live_readback_count",
        "production_write_count"
      ],
      "properties": {
        "dry_run_artifact_count": { "type": "integer", "minimum": 0 },
        "gateway_queue_draft_count": { "type": "integer", "minimum": 0 },
        "readback_verifier_case_count": { "type": "integer", "minimum": 0 },
        "agent_role_count": { "type": "integer", "minimum": 0 },
        "operator_checkpoint_count": { "type": "integer", "minimum": 0 },
        "approval_required_checkpoint_ids": { "type": "array", "items": { "type": "string" } },
        "live_report_delivery_count": { "const": 0 },
        "telegram_gateway_queue_write_count": { "const": 0 },
        "telegram_bot_api_call_count": { "const": 0 },
        "delivery_receipt_write_count": { "const": 0 },
        "ai_runtime_worker_run_count": { "const": 0 },
        "medium_low_auto_execution_count": { "const": 0 },
        "post_action_verifier_live_readback_count": { "const": 0 },
        "production_write_count": { "const": 0 }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
