{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agoragentic.com/schema/finance-agent-owner-evidence-preflight-report.v1.json",
  "title": "Finance Agent Owner Evidence Preflight Report V1",
  "description": "Local Version C owner-evidence preflight report for Triptych OS (Agent OS) finance-agent review. This report records structure/redaction findings, checked item counts, packet/intake preflight subject hashes, queryable item/action summary counts, a completion audit for remaining external gates and allowed proof material, an ordered next owner action plan, a top-level external gate blocker summary, launch-mode owner-review dossiers, a route payload redaction checklist, a report-level query index, collection frontier IDs, a route recording plan, mode evidence gate summaries with mode-specific collection frontier IDs and unsatisfied item summaries, evidence-family summaries, a dependency graph, a top-level finding-code summary, per-item evidence gate statuses with blocker/warning finding codes, unsatisfied precondition IDs, and next required actions, and forced-false execution boundaries only. It does not prove external evidence, call Robinhood MCP, call Fincept, dispatch providers, create live-read routes, approve live action, place or cancel orders, fetch card details, execute options, mutate wallet/x402 state, expose execute/invoke, publish marketplace listings, or publish capabilities.",
  "type": "object",
  "required": [
    "schema",
    "schema_ref",
    "generated_at",
    "success",
    "input_schema",
    "packet_schema_ref",
    "preflight_subject",
    "boundaries",
    "summary",
    "completion_audit",
    "report_query_index",
    "external_gate_blocker_summary",
    "launch_mode_owner_review_dossier",
    "route_payload_redaction_checklist",
    "collection_frontier",
    "recording_plan",
    "mode_evidence_gate_summary",
    "evidence_family_summary",
    "dependency_graph",
    "finding_code_summary",
    "item_statuses",
    "findings",
    "next_safe_actions"
  ],
  "additionalProperties": false,
  "properties": {
    "schema": {
      "type": "string",
      "const": "agoragentic.audit.finance_agent_version_c_owner_evidence_preflight_report.v1"
    },
    "schema_ref": {
      "type": "string",
      "const": "/schema/finance-agent-owner-evidence-preflight-report.v1.json"
    },
    "generated_at": { "type": "string", "format": "date-time" },
    "success": { "type": "boolean" },
    "input_schema": {
      "type": ["string", "null"],
      "enum": [
        "agoragentic.audit.finance_agent_version_c_owner_evidence_packet.v1",
        null
      ]
    },
    "packet_schema_ref": {
      "type": "string",
      "const": "/schema/finance-agent-owner-evidence-packet.v1.json"
    },
    "preflight_subject": {
      "$ref": "#/$defs/preflight_subject"
    },
    "boundaries": {
      "type": "object",
      "required": [
        "route_calls_performed",
        "provider_calls_performed",
        "mcp_calls_performed",
        "live_authority_granted",
        "wallet_x402_mutated",
        "marketplace_or_capability_published",
        "external_evidence_proven"
      ],
      "additionalProperties": false,
      "properties": {
        "route_calls_performed": { "type": "boolean", "const": false },
        "provider_calls_performed": { "type": "boolean", "const": false },
        "mcp_calls_performed": { "type": "boolean", "const": false },
        "live_authority_granted": { "type": "boolean", "const": false },
        "wallet_x402_mutated": { "type": "boolean", "const": false },
        "marketplace_or_capability_published": { "type": "boolean", "const": false },
        "external_evidence_proven": { "type": "boolean", "const": false }
      }
    },
    "summary": {
      "type": "object",
      "required": [
        "blockers",
        "warnings",
        "checked_items",
        "required_items",
        "missing_items",
        "blocked_items",
        "ready_items",
        "next_required_action_counts"
      ],
      "additionalProperties": false,
      "properties": {
        "blockers": { "type": "integer", "minimum": 0 },
        "warnings": { "type": "integer", "minimum": 0 },
        "checked_items": { "type": "integer", "minimum": 0, "maximum": 9 },
        "required_items": { "type": "integer", "const": 9 },
        "missing_items": { "type": "integer", "minimum": 0, "maximum": 9 },
        "blocked_items": { "type": "integer", "minimum": 0, "maximum": 9 },
        "ready_items": { "type": "integer", "minimum": 0, "maximum": 9 },
        "next_required_action_counts": {
          "type": "object",
          "required": [
            "add_missing_packet_item",
            "fix_packet_item",
            "satisfy_preconditions",
            "record_redacted_refs",
            "owner_review_separate_pr"
          ],
          "additionalProperties": false,
          "properties": {
            "add_missing_packet_item": { "type": "integer", "minimum": 0, "maximum": 9 },
            "fix_packet_item": { "type": "integer", "minimum": 0, "maximum": 9 },
            "satisfy_preconditions": { "type": "integer", "minimum": 0, "maximum": 9 },
            "record_redacted_refs": { "type": "integer", "minimum": 0, "maximum": 9 },
            "owner_review_separate_pr": { "type": "integer", "minimum": 0, "maximum": 9 }
          }
        }
      }
    },
    "collection_frontier": {
      "$ref": "#/$defs/collection_frontier"
    },
    "completion_audit": {
      "$ref": "#/$defs/completion_audit"
    },
    "report_query_index": {
      "$ref": "#/$defs/report_query_index"
    },
    "external_gate_blocker_summary": {
      "$ref": "#/$defs/external_gate_blocker_summary"
    },
    "launch_mode_owner_review_dossier": {
      "type": "array",
      "minItems": 4,
      "maxItems": 4,
      "items": { "$ref": "#/$defs/launch_mode_owner_review_dossier_item" }
    },
    "route_payload_redaction_checklist": {
      "type": "array",
      "minItems": 4,
      "maxItems": 4,
      "items": { "$ref": "#/$defs/route_payload_redaction_checklist_item" }
    },
    "recording_plan": {
      "$ref": "#/$defs/recording_plan"
    },
    "mode_evidence_gate_summary": {
      "type": "array",
      "minItems": 4,
      "maxItems": 4,
      "items": { "$ref": "#/$defs/mode_evidence_gate" }
    },
    "evidence_family_summary": {
      "type": "array",
      "minItems": 5,
      "maxItems": 5,
      "items": { "$ref": "#/$defs/evidence_family_summary_item" }
    },
    "dependency_graph": {
      "$ref": "#/$defs/dependency_graph"
    },
    "finding_code_summary": {
      "type": "array",
      "maxItems": 64,
      "items": { "$ref": "#/$defs/finding_code_summary_item" }
    },
    "findings": {
      "type": "array",
      "items": { "$ref": "#/$defs/finding" }
    },
    "item_statuses": {
      "type": "array",
      "minItems": 9,
      "maxItems": 9,
      "items": { "$ref": "#/$defs/item_status" }
    },
    "next_safe_actions": {
      "type": "array",
      "minItems": 1,
      "items": { "$ref": "#/$defs/public_safe_text_500" }
    }
  },
  "not": {
    "anyOf": [
      { "$ref": "#/$defs/live_authority_true_flags" },
      { "$ref": "#/$defs/private_payload_presence_fields" },
      { "required": ["raw_schema"] },
      { "required": ["raw_payload"] },
      { "required": ["raw_provider_payload"] },
      { "required": ["raw_fincept_payload"] },
      { "required": ["account_values"] },
      { "required": ["card_values"] },
      { "required": ["order_values"] },
      { "required": ["payment_payload"] },
      { "required": ["wallet_values"] },
      { "required": ["auth_token"] },
      { "required": ["access_token"] },
      { "required": ["refresh_token"] },
      { "required": ["private_key"] },
      { "required": ["seed_phrase"] }
    ]
  },
  "$defs": {
    "preflight_subject": {
      "type": "object",
      "description": "Tamper-evident local subject anchors for the exact packet and intake pack checked by this preflight report. These hashes do not prove external evidence or grant live authority.",
      "required": [
        "packet_sha256",
        "intake_pack_sha256",
        "packet_schema_ref",
        "intake_schema_ref",
        "packet_evidence_item_count",
        "required_item_count",
        "records_evidence_only",
        "grants_live_authority"
      ],
      "additionalProperties": false,
      "properties": {
        "packet_sha256": { "$ref": "#/$defs/sha256_ref" },
        "intake_pack_sha256": { "$ref": "#/$defs/sha256_ref" },
        "packet_schema_ref": {
          "type": "string",
          "const": "/schema/finance-agent-owner-evidence-packet.v1.json"
        },
        "intake_schema_ref": {
          "type": "string",
          "const": "/schema/finance-agent-owner-evidence-intake-pack.v1.json"
        },
        "packet_evidence_item_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 64
        },
        "required_item_count": {
          "type": "integer",
          "const": 9
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false }
      }
    },
    "report_query_index": {
      "type": "object",
      "description": "Public-safe query-key to report-path map for owner/admin tooling. Values are local report paths only; this index performs no route calls, proves no external evidence, and grants no live authority.",
      "required": [
        "finance.owner_evidence.report_query_index",
        "finance.owner_evidence.schema",
        "finance.owner_evidence.schema_ref",
        "finance.owner_evidence.success",
        "finance.owner_evidence.boundaries",
        "finance.owner_evidence.preflight_subject",
        "finance.owner_evidence.summary",
        "finance.owner_evidence.completion_audit",
        "finance.owner_evidence.primary_blocker_category",
        "finance.owner_evidence.server_route_blocker_assessment",
        "finance.owner_evidence.next_owner_action_plan",
        "finance.owner_evidence.actionable_now_action_plan_ids",
        "finance.owner_evidence.blocked_action_plan_ids",
        "finance.owner_evidence.completion_items",
        "finance.owner_evidence.external_gate_blocker_summary",
        "finance.owner_evidence.external_gate_blocker_mode_matrix",
        "finance.owner_evidence.external_gate_blocker_evidence_families",
        "finance.owner_evidence.external_gate_blocker_next_owner_actions",
        "finance.owner_evidence.launch_mode_owner_review_dossier",
        "finance.owner_evidence.launch_mode_review_required_record_routes",
        "finance.owner_evidence.launch_mode_review_required_proof_sources",
        "finance.owner_evidence.launch_mode_review_next_owner_action_plan_ids",
        "finance.owner_evidence.route_payload_redaction_checklist",
        "finance.owner_evidence.route_payload_required_refs",
        "finance.owner_evidence.route_payload_required_false_flags",
        "finance.owner_evidence.collection_frontier",
        "finance.owner_evidence.recording_plan",
        "finance.owner_evidence.mode_evidence_gate_summary",
        "finance.owner_evidence.mode_next_collectable_item_ids",
        "finance.owner_evidence.mode_blocked_by_precondition_item_ids",
        "finance.owner_evidence.mode_unsatisfied_item_summaries",
        "finance.owner_evidence.evidence_family_summary",
        "finance.owner_evidence.dependency_graph",
        "finance.owner_evidence.finding_code_summary",
        "finance.owner_evidence.item_statuses",
        "finance.owner_evidence.findings",
        "finance.owner_evidence.next_safe_actions"
      ],
      "additionalProperties": false,
      "properties": {
        "finance.owner_evidence.report_query_index": { "type": "string", "const": "report_query_index" },
        "finance.owner_evidence.schema": { "type": "string", "const": "schema" },
        "finance.owner_evidence.schema_ref": { "type": "string", "const": "schema_ref" },
        "finance.owner_evidence.success": { "type": "string", "const": "success" },
        "finance.owner_evidence.boundaries": { "type": "string", "const": "boundaries" },
        "finance.owner_evidence.preflight_subject": { "type": "string", "const": "preflight_subject" },
        "finance.owner_evidence.summary": { "type": "string", "const": "summary" },
        "finance.owner_evidence.completion_audit": { "type": "string", "const": "completion_audit" },
        "finance.owner_evidence.primary_blocker_category": { "type": "string", "const": "completion_audit.primary_blocker_category" },
        "finance.owner_evidence.server_route_blocker_assessment": { "type": "string", "const": "completion_audit.server_route_capability_primary_blocker" },
        "finance.owner_evidence.next_owner_action_plan": { "type": "string", "const": "completion_audit.next_owner_action_plan" },
        "finance.owner_evidence.actionable_now_action_plan_ids": { "type": "string", "const": "completion_audit.actionable_now_action_plan_ids" },
        "finance.owner_evidence.blocked_action_plan_ids": { "type": "string", "const": "completion_audit.blocked_action_plan_ids" },
        "finance.owner_evidence.completion_items": { "type": "string", "const": "completion_audit.completion_items" },
        "finance.owner_evidence.external_gate_blocker_summary": { "type": "string", "const": "external_gate_blocker_summary" },
        "finance.owner_evidence.external_gate_blocker_mode_matrix": { "type": "string", "const": "external_gate_blocker_summary.mode_blocker_matrix" },
        "finance.owner_evidence.external_gate_blocker_evidence_families": { "type": "string", "const": "external_gate_blocker_summary.items_by_evidence_family" },
        "finance.owner_evidence.external_gate_blocker_next_owner_actions": { "type": "string", "const": "external_gate_blocker_summary.items_by_next_owner_action" },
        "finance.owner_evidence.launch_mode_owner_review_dossier": { "type": "string", "const": "launch_mode_owner_review_dossier" },
        "finance.owner_evidence.launch_mode_review_required_record_routes": { "type": "string", "const": "launch_mode_owner_review_dossier.required_record_routes" },
        "finance.owner_evidence.launch_mode_review_required_proof_sources": { "type": "string", "const": "launch_mode_owner_review_dossier.required_proof_sources" },
        "finance.owner_evidence.launch_mode_review_next_owner_action_plan_ids": { "type": "string", "const": "launch_mode_owner_review_dossier.next_owner_action_plan_ids" },
        "finance.owner_evidence.route_payload_redaction_checklist": { "type": "string", "const": "route_payload_redaction_checklist" },
        "finance.owner_evidence.route_payload_required_refs": { "type": "string", "const": "route_payload_redaction_checklist.required_redacted_refs_by_item" },
        "finance.owner_evidence.route_payload_required_false_flags": { "type": "string", "const": "route_payload_redaction_checklist.required_false_flags" },
        "finance.owner_evidence.collection_frontier": { "type": "string", "const": "collection_frontier" },
        "finance.owner_evidence.recording_plan": { "type": "string", "const": "recording_plan" },
        "finance.owner_evidence.mode_evidence_gate_summary": { "type": "string", "const": "mode_evidence_gate_summary" },
        "finance.owner_evidence.mode_next_collectable_item_ids": { "type": "string", "const": "mode_evidence_gate_summary.next_collectable_item_ids" },
        "finance.owner_evidence.mode_blocked_by_precondition_item_ids": { "type": "string", "const": "mode_evidence_gate_summary.blocked_by_precondition_item_ids" },
        "finance.owner_evidence.mode_unsatisfied_item_summaries": { "type": "string", "const": "mode_evidence_gate_summary.unsatisfied_item_summaries" },
        "finance.owner_evidence.evidence_family_summary": { "type": "string", "const": "evidence_family_summary" },
        "finance.owner_evidence.dependency_graph": { "type": "string", "const": "dependency_graph" },
        "finance.owner_evidence.finding_code_summary": { "type": "string", "const": "finding_code_summary" },
        "finance.owner_evidence.item_statuses": { "type": "string", "const": "item_statuses" },
        "finance.owner_evidence.findings": { "type": "string", "const": "findings" },
        "finance.owner_evidence.next_safe_actions": { "type": "string", "const": "next_safe_actions" }
      }
    },
    "collection_frontier": {
      "type": "object",
      "description": "Queryable owner-evidence collection frontier for identifying which evidence gates can be worked now, which upstream gates block downstream work, and which ready rows can be recorded or require separate owner review.",
      "required": [
        "next_collectable_item_ids",
        "blocked_by_precondition_item_ids",
        "recordable_item_ids",
        "owner_review_item_ids"
      ],
      "additionalProperties": false,
      "properties": {
        "next_collectable_item_ids": {
          "type": "array",
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "blocked_by_precondition_item_ids": {
          "type": "array",
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "recordable_item_ids": {
          "type": "array",
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "owner_review_item_ids": {
          "type": "array",
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        }
      }
    },
    "completion_audit": {
      "type": "object",
      "description": "Machine-readable completion audit for owner/admin tooling. It maps the remaining Version C external evidence gates to proof sources, allowed redacted refs, forbidden payload-family references, owner actions, an ordered next owner action plan, and route-readiness posture without claiming external evidence or live authority.",
      "required": [
        "primary_blocker_category",
        "server_route_capability_primary_blocker",
        "external_evidence_proven",
        "live_authority_granted",
        "owner_actionable_now_item_ids",
        "blocked_by_upstream_evidence_item_ids",
        "ready_to_record_item_ids",
        "owner_review_item_ids",
        "structurally_ready_item_ids",
        "incomplete_item_ids",
        "next_owner_action_plan",
        "actionable_now_action_plan_ids",
        "blocked_action_plan_ids",
        "completion_items"
      ],
      "additionalProperties": false,
      "properties": {
        "primary_blocker_category": {
          "type": "string",
          "enum": [
            "external_evidence_and_owner_approval_gates",
            "preflight_structurally_ready_external_evidence_not_proven"
          ]
        },
        "server_route_capability_primary_blocker": { "type": "boolean", "const": false },
        "external_evidence_proven": { "type": "boolean", "const": false },
        "live_authority_granted": { "type": "boolean", "const": false },
        "owner_actionable_now_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "blocked_by_upstream_evidence_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "ready_to_record_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "owner_review_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "structurally_ready_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "incomplete_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "next_owner_action_plan": {
          "type": "array",
          "minItems": 9,
          "maxItems": 9,
          "items": { "$ref": "#/$defs/owner_action_plan_item" }
        },
        "actionable_now_action_plan_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "blocked_action_plan_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "completion_items": {
          "type": "array",
          "minItems": 9,
          "maxItems": 9,
          "items": { "$ref": "#/$defs/completion_audit_item" }
        }
      }
    },
    "external_gate_blocker_summary": {
      "type": "object",
      "description": "Top-level queryable blocker rollup for Version C owner evidence gates. It summarizes local preflight unresolved items, externally unproven evidence items, launch-mode blockers, owner actions, evidence families, proof sources, and the explicit server-route blocker assessment without proving external evidence or granting live authority.",
      "required": [
        "primary_blocker_category",
        "server_route_capability_primary_blocker",
        "external_evidence_proven",
        "live_authority_granted",
        "local_preflight_required_item_count",
        "local_preflight_structurally_ready_item_count",
        "local_preflight_unresolved_item_count",
        "external_evidence_not_proven_item_ids",
        "local_preflight_unresolved_item_ids",
        "local_preflight_structurally_ready_item_ids",
        "external_evidence_not_proven_proof_sources",
        "local_preflight_unresolved_proof_sources",
        "launch_modes_blocked",
        "launch_modes_preflight_ready",
        "next_collectable_item_ids",
        "blocked_by_precondition_item_ids",
        "recordable_item_ids",
        "owner_review_item_ids",
        "items_by_next_owner_action",
        "items_by_evidence_family",
        "mode_blocker_matrix",
        "records_evidence_only",
        "grants_live_authority",
        "route_calls_performed"
      ],
      "additionalProperties": false,
      "properties": {
        "primary_blocker_category": {
          "type": "string",
          "enum": [
            "external_evidence_and_owner_approval_gates",
            "preflight_structurally_ready_external_evidence_not_proven"
          ]
        },
        "server_route_capability_primary_blocker": { "type": "boolean", "const": false },
        "external_evidence_proven": { "type": "boolean", "const": false },
        "live_authority_granted": { "type": "boolean", "const": false },
        "local_preflight_required_item_count": { "type": "integer", "const": 9 },
        "local_preflight_structurally_ready_item_count": { "type": "integer", "minimum": 0, "maximum": 9 },
        "local_preflight_unresolved_item_count": { "type": "integer", "minimum": 0, "maximum": 9 },
        "external_evidence_not_proven_item_ids": {
          "type": "array",
          "minItems": 9,
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "local_preflight_unresolved_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "local_preflight_structurally_ready_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "external_evidence_not_proven_proof_sources": {
          "type": "array",
          "minItems": 9,
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/proof_source" }
        },
        "local_preflight_unresolved_proof_sources": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/proof_source" }
        },
        "launch_modes_blocked": {
          "type": "array",
          "maxItems": 4,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/launch_mode" }
        },
        "launch_modes_preflight_ready": {
          "type": "array",
          "maxItems": 4,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/launch_mode" }
        },
        "next_collectable_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "blocked_by_precondition_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "recordable_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "owner_review_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "items_by_next_owner_action": {
          "type": "array",
          "minItems": 5,
          "maxItems": 5,
          "items": { "$ref": "#/$defs/external_gate_next_owner_action_group" }
        },
        "items_by_evidence_family": {
          "type": "array",
          "minItems": 5,
          "maxItems": 5,
          "items": { "$ref": "#/$defs/external_gate_evidence_family_group" }
        },
        "mode_blocker_matrix": {
          "type": "array",
          "minItems": 4,
          "maxItems": 4,
          "items": { "$ref": "#/$defs/external_gate_mode_blocker_row" }
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false },
        "route_calls_performed": { "type": "boolean", "const": false }
      }
    },
    "external_gate_next_owner_action_group": {
      "type": "object",
      "required": [
        "next_owner_action",
        "item_count",
        "intake_item_ids",
        "action_plan_ids",
        "records_evidence_only",
        "grants_live_authority",
        "route_calls_performed"
      ],
      "additionalProperties": false,
      "properties": {
        "next_owner_action": { "$ref": "#/$defs/next_owner_action" },
        "item_count": { "type": "integer", "minimum": 0, "maximum": 9 },
        "intake_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "action_plan_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false },
        "route_calls_performed": { "type": "boolean", "const": false }
      }
    },
    "external_gate_evidence_family_group": {
      "type": "object",
      "required": [
        "evidence_family",
        "item_count",
        "local_preflight_unresolved_count",
        "intake_item_ids",
        "local_preflight_unresolved_item_ids",
        "records_evidence_only",
        "grants_live_authority",
        "route_calls_performed"
      ],
      "additionalProperties": false,
      "properties": {
        "evidence_family": { "$ref": "#/$defs/evidence_family" },
        "item_count": { "type": "integer", "minimum": 1, "maximum": 9 },
        "local_preflight_unresolved_count": { "type": "integer", "minimum": 0, "maximum": 9 },
        "intake_item_ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "local_preflight_unresolved_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false },
        "route_calls_performed": { "type": "boolean", "const": false }
      }
    },
    "external_gate_mode_blocker_row": {
      "type": "object",
      "required": [
        "launch_mode",
        "required_intake_item_ids",
        "unsatisfied_intake_item_ids",
        "next_collectable_item_ids",
        "blocked_by_precondition_item_ids",
        "preflight_required_items_ready",
        "records_evidence_only",
        "grants_live_authority",
        "route_calls_performed"
      ],
      "additionalProperties": false,
      "properties": {
        "launch_mode": { "$ref": "#/$defs/launch_mode" },
        "required_intake_item_ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "unsatisfied_intake_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "next_collectable_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "blocked_by_precondition_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "preflight_required_items_ready": { "type": "boolean" },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false },
        "route_calls_performed": { "type": "boolean", "const": false }
      }
    },
    "launch_mode_owner_review_dossier_item": {
      "type": "object",
      "description": "Launch-mode owner-review dossier row that groups the evidence gates, owner action-plan IDs, record routes, proof sources, schema refs, required review roles, and forced-false authority posture for one launch mode. This is local preflight metadata only and performs no route calls.",
      "required": [
        "launch_mode",
        "required_intake_item_ids",
        "ready_item_ids",
        "missing_or_blocked_item_ids",
        "next_owner_action_plan_ids",
        "actionable_now_action_plan_ids",
        "blocked_action_plan_ids",
        "next_owner_actions",
        "required_record_routes",
        "required_proof_sources",
        "required_schema_refs",
        "owner_review_required",
        "compliance_review_required",
        "brokerage_options_review_required",
        "mcp_schema_proof_required",
        "supporting_gate_records_required",
        "final_owner_review_required",
        "preflight_required_items_ready",
        "server_route_capability_primary_blocker",
        "external_evidence_proven",
        "live_authority_granted",
        "records_evidence_only",
        "grants_live_authority",
        "route_calls_performed"
      ],
      "additionalProperties": false,
      "properties": {
        "launch_mode": { "$ref": "#/$defs/launch_mode" },
        "required_intake_item_ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "ready_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "missing_or_blocked_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "next_owner_action_plan_ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "actionable_now_action_plan_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "blocked_action_plan_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "next_owner_actions": {
          "type": "array",
          "minItems": 1,
          "maxItems": 5,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/next_owner_action" }
        },
        "required_record_routes": {
          "type": "array",
          "minItems": 1,
          "maxItems": 3,
          "uniqueItems": true,
          "items": {
            "type": "string",
            "enum": [
              "/api/agent-os/finance/deployments/{deployment_id}/mcp-schema-proofs",
              "/api/agent-os/finance/deployments/{deployment_id}/compliance-approvals",
              "/api/agent-os/finance/deployments/{deployment_id}/gate-evidence-records"
            ]
          }
        },
        "required_proof_sources": {
          "type": "array",
          "minItems": 1,
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/proof_source" }
        },
        "required_schema_refs": {
          "type": "array",
          "minItems": 1,
          "maxItems": 12,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/schema_ref" }
        },
        "owner_review_required": { "type": "boolean", "const": true },
        "compliance_review_required": { "type": "boolean" },
        "brokerage_options_review_required": { "type": "boolean" },
        "mcp_schema_proof_required": { "type": "boolean" },
        "supporting_gate_records_required": { "type": "boolean" },
        "final_owner_review_required": { "type": "boolean" },
        "preflight_required_items_ready": { "type": "boolean" },
        "server_route_capability_primary_blocker": { "type": "boolean", "const": false },
        "external_evidence_proven": { "type": "boolean", "const": false },
        "live_authority_granted": { "type": "boolean", "const": false },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false },
        "route_calls_performed": { "type": "boolean", "const": false }
      }
    },
    "route_payload_redaction_checklist_item": {
      "type": "object",
      "description": "Route-level payload/redaction checklist row for future owner/admin evidence recording. It groups all intake items for one evidence route or the separate owner-reviewed implementation PR path, lists required refs and forced-false flags, and keeps route_calls_performed false.",
      "required": [
        "route_payload_group_id",
        "record_route",
        "intake_item_ids",
        "ready_item_ids",
        "missing_or_blocked_item_ids",
        "required_redacted_refs_by_item",
        "required_false_flags",
        "forbidden_payload_families_ref",
        "requires_write_true",
        "requires_idempotency_key",
        "preflight_items_ready",
        "recording_ready",
        "server_route_capability_primary_blocker",
        "external_evidence_proven",
        "live_authority_granted",
        "records_evidence_only",
        "grants_live_authority",
        "route_calls_performed"
      ],
      "additionalProperties": false,
      "properties": {
        "route_payload_group_id": {
          "type": "string",
          "enum": [
            "route_payload_mcp_schema_proofs",
            "route_payload_compliance_approvals",
            "route_payload_gate_evidence_records",
            "route_payload_owner_reviewed_implementation_pr"
          ]
        },
        "record_route": {
          "type": ["string", "null"],
          "enum": [
            "/api/agent-os/finance/deployments/{deployment_id}/mcp-schema-proofs",
            "/api/agent-os/finance/deployments/{deployment_id}/compliance-approvals",
            "/api/agent-os/finance/deployments/{deployment_id}/gate-evidence-records",
            null
          ]
        },
        "intake_item_ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "ready_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "missing_or_blocked_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "required_redacted_refs_by_item": {
          "type": "array",
          "minItems": 1,
          "maxItems": 9,
          "items": { "$ref": "#/$defs/route_payload_required_refs_item" }
        },
        "required_false_flags": {
          "$ref": "#/$defs/required_false_flag_list"
        },
        "forbidden_payload_families_ref": {
          "type": "string",
          "const": "global_forbidden_payload_families"
        },
        "requires_write_true": { "type": "boolean" },
        "requires_idempotency_key": { "type": "boolean" },
        "preflight_items_ready": { "type": "boolean" },
        "recording_ready": { "type": "boolean" },
        "server_route_capability_primary_blocker": { "type": "boolean", "const": false },
        "external_evidence_proven": { "type": "boolean", "const": false },
        "live_authority_granted": { "type": "boolean", "const": false },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false },
        "route_calls_performed": { "type": "boolean", "const": false }
      }
    },
    "route_payload_required_refs_item": {
      "type": "object",
      "description": "Allowed redacted refs/hashes and accepted schema refs for one intake item in a route payload group.",
      "required": [
        "intake_item_id",
        "required_redacted_refs_or_hashes",
        "accepted_schema_refs"
      ],
      "additionalProperties": false,
      "properties": {
        "intake_item_id": { "$ref": "#/$defs/intake_item_id" },
        "required_redacted_refs_or_hashes": {
          "type": "array",
          "minItems": 1,
          "maxItems": 8,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "accepted_schema_refs": {
          "type": "array",
          "minItems": 1,
          "maxItems": 4,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/schema_ref" }
        }
      }
    },
    "owner_action_plan_item": {
      "type": "object",
      "description": "Ordered owner/admin action-plan row derived from the completion audit. It identifies which owner action can be taken now, which upstream evidence blocks it, and the redacted refs/hashes expected for that gate without performing route calls or granting live authority.",
      "required": [
        "action_plan_id",
        "sequence_index",
        "intake_item_id",
        "evidence_family",
        "completion_state",
        "next_required_action",
        "next_owner_action",
        "actionable_now",
        "blocked_by_intake_item_ids",
        "record_route",
        "proof_source",
        "required_redacted_refs_or_hashes",
        "records_evidence_only",
        "grants_live_authority",
        "route_calls_performed"
      ],
      "additionalProperties": false,
      "properties": {
        "action_plan_id": { "$ref": "#/$defs/public_safe_id_128" },
        "sequence_index": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9
        },
        "intake_item_id": { "$ref": "#/$defs/intake_item_id" },
        "evidence_family": { "$ref": "#/$defs/evidence_family" },
        "completion_state": {
          "type": "string",
          "enum": [
            "missing_from_packet",
            "blocked",
            "ready_to_record_or_review"
          ]
        },
        "next_required_action": {
          "type": "string",
          "enum": [
            "add_missing_packet_item",
            "fix_packet_item",
            "satisfy_preconditions",
            "record_redacted_refs",
            "owner_review_separate_pr"
          ]
        },
        "next_owner_action": {
          "type": "string",
          "enum": [
            "create_redacted_packet_item",
            "fix_redacted_packet_item",
            "finish_upstream_external_evidence",
            "record_redacted_refs_on_owner_admin_route",
            "prepare_separate_owner_reviewed_pr"
          ]
        },
        "actionable_now": { "type": "boolean" },
        "blocked_by_intake_item_ids": {
          "type": "array",
          "maxItems": 9,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "record_route": {
          "type": ["string", "null"],
          "enum": [
            "/api/agent-os/finance/deployments/{deployment_id}/mcp-schema-proofs",
            "/api/agent-os/finance/deployments/{deployment_id}/compliance-approvals",
            "/api/agent-os/finance/deployments/{deployment_id}/gate-evidence-records",
            null
          ]
        },
        "proof_source": {
          "type": "string",
          "enum": [
            "owner_authenticated_robinhood_trading_mcp_schema_only_proof",
            "owner_authenticated_robinhood_banking_card_mcp_schema_only_proof",
            "owner_legal_commercial_compliance_review_artifact",
            "brokerage_options_review_artifact",
            "supporting_external_gate_bundle_artifact",
            "stop_control_drill_artifact",
            "data_minimization_plan_artifact",
            "owner_approval_checklist_artifact",
            "final_owner_live_read_or_live_action_review_artifact"
          ]
        },
        "required_redacted_refs_or_hashes": {
          "type": "array",
          "minItems": 1,
          "maxItems": 8,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false },
        "route_calls_performed": { "type": "boolean", "const": false }
      }
    },
    "completion_audit_item": {
      "type": "object",
      "description": "Per-gate completion row that exposes the allowed proof source, redacted ref/hash keys, forbidden payload refs, preconditions, and owner action needed for one Version C evidence gate.",
      "required": [
        "intake_item_id",
        "evidence_family",
        "completion_state",
        "next_required_action",
        "next_owner_action",
        "proof_source",
        "external_evidence_required",
        "record_route",
        "accepted_schema_refs",
        "required_redacted_refs_or_hashes",
        "collect_material",
        "forbidden_payload_families_ref",
        "required_false_flags_ref",
        "required_before",
        "precondition_intake_item_ids",
        "unsatisfied_precondition_intake_item_ids",
        "query_keys",
        "records_evidence_only",
        "grants_live_authority",
        "route_calls_performed"
      ],
      "additionalProperties": false,
      "properties": {
        "intake_item_id": { "$ref": "#/$defs/intake_item_id" },
        "evidence_family": { "$ref": "#/$defs/evidence_family" },
        "completion_state": {
          "type": "string",
          "enum": [
            "missing_from_packet",
            "blocked",
            "ready_to_record_or_review"
          ]
        },
        "next_required_action": {
          "type": "string",
          "enum": [
            "add_missing_packet_item",
            "fix_packet_item",
            "satisfy_preconditions",
            "record_redacted_refs",
            "owner_review_separate_pr"
          ]
        },
        "next_owner_action": {
          "type": "string",
          "enum": [
            "create_redacted_packet_item",
            "fix_redacted_packet_item",
            "finish_upstream_external_evidence",
            "record_redacted_refs_on_owner_admin_route",
            "prepare_separate_owner_reviewed_pr"
          ]
        },
        "proof_source": {
          "type": "string",
          "enum": [
            "owner_authenticated_robinhood_trading_mcp_schema_only_proof",
            "owner_authenticated_robinhood_banking_card_mcp_schema_only_proof",
            "owner_legal_commercial_compliance_review_artifact",
            "brokerage_options_review_artifact",
            "supporting_external_gate_bundle_artifact",
            "stop_control_drill_artifact",
            "data_minimization_plan_artifact",
            "owner_approval_checklist_artifact",
            "final_owner_live_read_or_live_action_review_artifact"
          ]
        },
        "external_evidence_required": { "type": "boolean", "const": true },
        "record_route": {
          "type": ["string", "null"],
          "enum": [
            "/api/agent-os/finance/deployments/{deployment_id}/mcp-schema-proofs",
            "/api/agent-os/finance/deployments/{deployment_id}/compliance-approvals",
            "/api/agent-os/finance/deployments/{deployment_id}/gate-evidence-records",
            null
          ]
        },
        "accepted_schema_refs": {
          "type": "array",
          "minItems": 1,
          "maxItems": 4,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/schema_ref" }
        },
        "required_redacted_refs_or_hashes": {
          "type": "array",
          "minItems": 1,
          "maxItems": 8,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "collect_material": {
          "type": "array",
          "minItems": 1,
          "maxItems": 16,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "forbidden_payload_families_ref": {
          "type": "string",
          "const": "global_forbidden_payload_families"
        },
        "required_false_flags_ref": {
          "type": "string",
          "const": "required_false_flags"
        },
        "required_before": {
          "type": "array",
          "minItems": 1,
          "maxItems": 8,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "precondition_intake_item_ids": {
          "type": "array",
          "maxItems": 9,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "unsatisfied_precondition_intake_item_ids": {
          "type": "array",
          "maxItems": 9,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "query_keys": {
          "type": "array",
          "minItems": 1,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false },
        "route_calls_performed": { "type": "boolean", "const": false }
      }
    },
    "recording_plan": {
      "type": "object",
      "description": "Local route-grouping plan for ready owner-evidence rows. This is a plan only; route_calls_performed must remain false and no evidence route is executed by this report.",
      "required": [
        "recordable_route_groups",
        "owner_review_item_ids",
        "not_recordable_item_ids",
        "route_calls_performed"
      ],
      "additionalProperties": false,
      "properties": {
        "recordable_route_groups": {
          "type": "array",
          "maxItems": 3,
          "items": { "$ref": "#/$defs/recordable_route_group" }
        },
        "owner_review_item_ids": {
          "type": "array",
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "not_recordable_item_ids": {
          "type": "array",
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "route_calls_performed": { "type": "boolean", "const": false }
      }
    },
    "recordable_route_group": {
      "type": "object",
      "required": [
        "record_route",
        "intake_item_ids",
        "submission_order_indexes",
        "requires_write_true",
        "requires_idempotency_key",
        "records_evidence_only",
        "grants_live_authority"
      ],
      "additionalProperties": false,
      "properties": {
        "record_route": {
          "type": "string",
          "enum": [
            "/api/agent-os/finance/deployments/{deployment_id}/mcp-schema-proofs",
            "/api/agent-os/finance/deployments/{deployment_id}/compliance-approvals",
            "/api/agent-os/finance/deployments/{deployment_id}/gate-evidence-records"
          ]
        },
        "intake_item_ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 8,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "submission_order_indexes": {
          "type": "array",
          "minItems": 1,
          "maxItems": 8,
          "uniqueItems": true,
          "items": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9
          }
        },
        "requires_write_true": { "type": "boolean", "const": true },
        "requires_idempotency_key": { "type": "boolean", "const": true },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false }
      }
    },
    "mode_evidence_gate": {
      "type": "object",
      "description": "Mode-level evidence readiness summary derived from local preflight item statuses. A ready value means required redacted evidence items are structurally ready for owner/admin recording or owner review; mode-specific collection frontier IDs and unsatisfied item summaries expose the exact status/action/finding-code blockers for launch-mode prerequisites without approving or enabling live behavior.",
      "required": [
        "launch_mode",
        "required_intake_item_ids",
        "satisfied_intake_item_ids",
        "unsatisfied_intake_item_ids",
        "unsatisfied_item_summaries",
        "next_collectable_item_ids",
        "blocked_by_precondition_item_ids",
        "preflight_required_items_ready",
        "records_evidence_only",
        "grants_live_authority",
        "route_calls_performed"
      ],
      "additionalProperties": false,
      "properties": {
        "launch_mode": {
          "type": "string",
          "enum": [
            "approved_trading",
            "approved_card",
            "options_review_packet",
            "future_live_read_beta"
          ]
        },
        "required_intake_item_ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "satisfied_intake_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "unsatisfied_intake_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "unsatisfied_item_summaries": {
          "type": "array",
          "maxItems": 9,
          "items": { "$ref": "#/$defs/mode_unsatisfied_item_summary" }
        },
        "next_collectable_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "blocked_by_precondition_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "preflight_required_items_ready": { "type": "boolean" },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false },
        "route_calls_performed": { "type": "boolean", "const": false }
      }
    },
    "mode_unsatisfied_item_summary": {
      "type": "object",
      "description": "Mode-level projection of an unsatisfied required evidence item. This row lets owner/admin tools query why a launch mode is blocked without joining mode readiness back to full item statuses.",
      "required": [
        "intake_item_id",
        "preflight_state",
        "next_required_action",
        "blocker_codes",
        "warning_codes",
        "unsatisfied_precondition_intake_item_ids",
        "records_evidence_only",
        "grants_live_authority"
      ],
      "additionalProperties": false,
      "properties": {
        "intake_item_id": { "$ref": "#/$defs/intake_item_id" },
        "preflight_state": {
          "type": "string",
          "enum": [
            "missing_from_packet",
            "blocked",
            "ready_to_record_or_review"
          ]
        },
        "next_required_action": {
          "type": "string",
          "enum": [
            "add_missing_packet_item",
            "fix_packet_item",
            "satisfy_preconditions",
            "record_redacted_refs",
            "owner_review_separate_pr"
          ]
        },
        "blocker_codes": {
          "type": "array",
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/finding_code" }
        },
        "warning_codes": {
          "type": "array",
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/finding_code" }
        },
        "unsatisfied_precondition_intake_item_ids": {
          "type": "array",
          "maxItems": 9,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false }
      }
    },
    "evidence_family_summary_item": {
      "type": "object",
      "description": "Evidence-family grouping derived from local preflight item statuses so owner/admin tools can query MCP proof, compliance, options-review, supporting-packet, and final-owner-review readiness without scanning every item row.",
      "required": [
        "evidence_family",
        "intake_item_ids",
        "record_routes",
        "preflight_state_counts",
        "next_required_action_counts",
        "missing_item_ids",
        "blocked_item_ids",
        "ready_item_ids",
        "records_evidence_only",
        "grants_live_authority",
        "route_calls_performed"
      ],
      "additionalProperties": false,
      "properties": {
        "evidence_family": { "$ref": "#/$defs/evidence_family" },
        "intake_item_ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "record_routes": {
          "type": "array",
          "minItems": 1,
          "maxItems": 3,
          "uniqueItems": true,
          "items": {
            "type": ["string", "null"],
            "enum": [
              "/api/agent-os/finance/deployments/{deployment_id}/mcp-schema-proofs",
              "/api/agent-os/finance/deployments/{deployment_id}/compliance-approvals",
              "/api/agent-os/finance/deployments/{deployment_id}/gate-evidence-records",
              null
            ]
          }
        },
        "preflight_state_counts": {
          "$ref": "#/$defs/preflight_state_counts"
        },
        "next_required_action_counts": {
          "$ref": "#/$defs/next_required_action_counts"
        },
        "missing_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "blocked_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "ready_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false },
        "route_calls_performed": { "type": "boolean", "const": false }
      }
    },
    "dependency_graph": {
      "type": "object",
      "description": "Queryable dependency graph for the owner-evidence intake order. Nodes mirror required evidence gates and edges show which upstream evidence gates block downstream readiness. This graph is local preflight metadata only and performs no route calls.",
      "required": [
        "nodes",
        "edges",
        "root_item_ids",
        "blocked_edge_count",
        "records_evidence_only",
        "grants_live_authority",
        "route_calls_performed"
      ],
      "additionalProperties": false,
      "properties": {
        "nodes": {
          "type": "array",
          "minItems": 9,
          "maxItems": 9,
          "items": { "$ref": "#/$defs/dependency_graph_node" }
        },
        "edges": {
          "type": "array",
          "maxItems": 32,
          "items": { "$ref": "#/$defs/dependency_graph_edge" }
        },
        "root_item_ids": {
          "type": "array",
          "minItems": 1,
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "blocked_edge_count": { "type": "integer", "minimum": 0, "maximum": 32 },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false },
        "route_calls_performed": { "type": "boolean", "const": false }
      }
    },
    "dependency_graph_node": {
      "type": "object",
      "required": [
        "intake_item_id",
        "submission_order_index",
        "evidence_family",
        "preflight_state",
        "next_required_action",
        "record_route",
        "query_keys",
        "records_evidence_only",
        "grants_live_authority"
      ],
      "additionalProperties": false,
      "properties": {
        "intake_item_id": { "$ref": "#/$defs/intake_item_id" },
        "submission_order_index": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9
        },
        "evidence_family": { "$ref": "#/$defs/evidence_family" },
        "preflight_state": {
          "type": "string",
          "enum": [
            "missing_from_packet",
            "blocked",
            "ready_to_record_or_review"
          ]
        },
        "next_required_action": {
          "type": "string",
          "enum": [
            "add_missing_packet_item",
            "fix_packet_item",
            "satisfy_preconditions",
            "record_redacted_refs",
            "owner_review_separate_pr"
          ]
        },
        "record_route": {
          "type": ["string", "null"],
          "enum": [
            "/api/agent-os/finance/deployments/{deployment_id}/mcp-schema-proofs",
            "/api/agent-os/finance/deployments/{deployment_id}/compliance-approvals",
            "/api/agent-os/finance/deployments/{deployment_id}/gate-evidence-records",
            null
          ]
        },
        "query_keys": {
          "type": "array",
          "minItems": 1,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false }
      }
    },
    "dependency_graph_edge": {
      "type": "object",
      "required": [
        "dependency_edge_id",
        "from_intake_item_id",
        "to_intake_item_id",
        "dependency_satisfied",
        "upstream_preflight_state",
        "downstream_preflight_state",
        "downstream_next_required_action",
        "records_evidence_only",
        "grants_live_authority"
      ],
      "additionalProperties": false,
      "properties": {
        "dependency_edge_id": { "$ref": "#/$defs/public_safe_id_128" },
        "from_intake_item_id": { "$ref": "#/$defs/intake_item_id" },
        "to_intake_item_id": { "$ref": "#/$defs/intake_item_id" },
        "dependency_satisfied": { "type": "boolean" },
        "upstream_preflight_state": {
          "type": "string",
          "enum": [
            "missing_from_packet",
            "blocked",
            "ready_to_record_or_review"
          ]
        },
        "downstream_preflight_state": {
          "type": "string",
          "enum": [
            "missing_from_packet",
            "blocked",
            "ready_to_record_or_review"
          ]
        },
        "downstream_next_required_action": {
          "type": "string",
          "enum": [
            "add_missing_packet_item",
            "fix_packet_item",
            "satisfy_preconditions",
            "record_redacted_refs",
            "owner_review_separate_pr"
          ]
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false }
      }
    },
    "preflight_state_counts": {
      "type": "object",
      "required": [
        "missing_from_packet",
        "blocked",
        "ready_to_record_or_review"
      ],
      "additionalProperties": false,
      "properties": {
        "missing_from_packet": { "type": "integer", "minimum": 0, "maximum": 9 },
        "blocked": { "type": "integer", "minimum": 0, "maximum": 9 },
        "ready_to_record_or_review": { "type": "integer", "minimum": 0, "maximum": 9 }
      }
    },
    "next_required_action_counts": {
      "type": "object",
      "required": [
        "add_missing_packet_item",
        "fix_packet_item",
        "satisfy_preconditions",
        "record_redacted_refs",
        "owner_review_separate_pr"
      ],
      "additionalProperties": false,
      "properties": {
        "add_missing_packet_item": { "type": "integer", "minimum": 0, "maximum": 9 },
        "fix_packet_item": { "type": "integer", "minimum": 0, "maximum": 9 },
        "satisfy_preconditions": { "type": "integer", "minimum": 0, "maximum": 9 },
        "record_redacted_refs": { "type": "integer", "minimum": 0, "maximum": 9 },
        "owner_review_separate_pr": { "type": "integer", "minimum": 0, "maximum": 9 }
      }
    },
    "item_status": {
      "type": "object",
      "required": [
        "intake_item_id",
        "submission_order_index",
        "evidence_family",
        "packet_status",
        "preflight_state",
        "next_required_action",
        "record_route",
        "precondition_intake_item_ids",
        "preconditions_satisfied",
        "unsatisfied_precondition_intake_item_ids",
        "missing_required_redacted_refs_or_hashes",
        "blocker_count",
        "blocker_codes",
        "warning_count",
        "warning_codes",
        "query_keys",
        "records_evidence_only",
        "grants_live_authority"
      ],
      "additionalProperties": false,
      "properties": {
        "intake_item_id": { "$ref": "#/$defs/intake_item_id" },
        "submission_order_index": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9
        },
        "evidence_family": { "$ref": "#/$defs/evidence_family" },
        "packet_status": {
          "oneOf": [
            { "$ref": "#/$defs/public_safe_id_128" },
            { "type": "null" }
          ]
        },
        "preflight_state": {
          "type": "string",
          "enum": [
            "missing_from_packet",
            "blocked",
            "ready_to_record_or_review"
          ]
        },
        "next_required_action": {
          "type": "string",
          "enum": [
            "add_missing_packet_item",
            "fix_packet_item",
            "satisfy_preconditions",
            "record_redacted_refs",
            "owner_review_separate_pr"
          ]
        },
        "record_route": {
          "type": ["string", "null"],
          "enum": [
            "/api/agent-os/finance/deployments/{deployment_id}/mcp-schema-proofs",
            "/api/agent-os/finance/deployments/{deployment_id}/compliance-approvals",
            "/api/agent-os/finance/deployments/{deployment_id}/gate-evidence-records",
            null
          ]
        },
        "precondition_intake_item_ids": {
          "type": "array",
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "preconditions_satisfied": { "type": "boolean" },
        "unsatisfied_precondition_intake_item_ids": {
          "type": "array",
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "missing_required_redacted_refs_or_hashes": {
          "type": "array",
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "blocker_count": { "type": "integer", "minimum": 0 },
        "blocker_codes": {
          "type": "array",
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/finding_code" }
        },
        "warning_count": { "type": "integer", "minimum": 0 },
        "warning_codes": {
          "type": "array",
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/finding_code" }
        },
        "query_keys": {
          "type": "array",
          "minItems": 1,
          "items": { "$ref": "#/$defs/public_safe_id_128" }
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false }
      }
    },
    "finding_code_summary_item": {
      "type": "object",
      "description": "Queryable summary row for one finding code and severity. This lets owner/admin tooling classify blocker families without scanning every finding or every item status.",
      "required": [
        "severity",
        "code",
        "count",
        "affected_intake_item_ids",
        "records_evidence_only",
        "grants_live_authority"
      ],
      "additionalProperties": false,
      "properties": {
        "severity": {
          "type": "string",
          "enum": ["blocker", "warning"]
        },
        "code": { "$ref": "#/$defs/finding_code" },
        "count": {
          "type": "integer",
          "minimum": 1
        },
        "affected_intake_item_ids": {
          "type": "array",
          "maxItems": 9,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/intake_item_id" }
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false }
      }
    },
    "intake_item_id": {
      "type": "string",
      "enum": [
        "owner_authenticated_robinhood_trading_mcp_schema_proof",
        "owner_authenticated_robinhood_banking_mcp_schema_proof",
        "owner_legal_commercial_compliance_approval",
        "brokerage_options_review_evidence",
        "supporting_external_gate_bundle",
        "stop_control_drill",
        "data_minimization_plan",
        "owner_approval_checklist",
        "owner_live_read_or_live_action_review"
      ]
    },
    "evidence_family": {
      "type": "string",
      "enum": [
        "mcp_schema_proof",
        "compliance_approval",
        "options_review_compliance_approval",
        "supporting_gate_evidence_record",
        "owner_review_before_future_implementation"
      ]
    },
    "launch_mode": {
      "type": "string",
      "enum": [
        "approved_trading",
        "approved_card",
        "options_review_packet",
        "future_live_read_beta"
      ]
    },
    "next_owner_action": {
      "type": "string",
      "enum": [
        "create_redacted_packet_item",
        "fix_redacted_packet_item",
        "finish_upstream_external_evidence",
        "record_redacted_refs_on_owner_admin_route",
        "prepare_separate_owner_reviewed_pr"
      ]
    },
    "proof_source": {
      "type": "string",
      "enum": [
        "owner_authenticated_robinhood_trading_mcp_schema_only_proof",
        "owner_authenticated_robinhood_banking_card_mcp_schema_only_proof",
        "owner_legal_commercial_compliance_review_artifact",
        "brokerage_options_review_artifact",
        "supporting_external_gate_bundle_artifact",
        "stop_control_drill_artifact",
        "data_minimization_plan_artifact",
        "owner_approval_checklist_artifact",
        "final_owner_live_read_or_live_action_review_artifact"
      ]
    },
    "required_false_flag_list": {
      "type": "array",
      "minItems": 16,
      "maxItems": 16,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "live_read_route_created",
          "route_can_create_live_read_route",
          "provider_dispatch_enabled",
          "live_action_approved",
          "order_execution_enabled",
          "order_cancellation_enabled",
          "card_detail_fetch_enabled",
          "card_purchase_enabled",
          "options_execution_enabled",
          "options_order_schema_allowed",
          "options_provider_dispatch_enabled",
          "wallet_mutation_enabled",
          "x402_settlement_enabled",
          "public_execute_invoke_enabled",
          "marketplace_publication_enabled",
          "capability_publication_enabled"
        ]
      },
      "allOf": [
        { "contains": { "const": "live_read_route_created" } },
        { "contains": { "const": "route_can_create_live_read_route" } },
        { "contains": { "const": "provider_dispatch_enabled" } },
        { "contains": { "const": "live_action_approved" } },
        { "contains": { "const": "order_execution_enabled" } },
        { "contains": { "const": "order_cancellation_enabled" } },
        { "contains": { "const": "card_detail_fetch_enabled" } },
        { "contains": { "const": "card_purchase_enabled" } },
        { "contains": { "const": "options_execution_enabled" } },
        { "contains": { "const": "options_order_schema_allowed" } },
        { "contains": { "const": "options_provider_dispatch_enabled" } },
        { "contains": { "const": "wallet_mutation_enabled" } },
        { "contains": { "const": "x402_settlement_enabled" } },
        { "contains": { "const": "public_execute_invoke_enabled" } },
        { "contains": { "const": "marketplace_publication_enabled" } },
        { "contains": { "const": "capability_publication_enabled" } }
      ]
    },
    "finding": {
      "type": "object",
      "required": [
        "severity",
        "code",
        "intake_item_id",
        "message",
        "path"
      ],
      "additionalProperties": false,
      "properties": {
        "severity": {
          "type": "string",
          "enum": ["blocker", "warning"]
        },
        "code": {
          "$ref": "#/$defs/finding_code"
        },
        "intake_item_id": {
          "type": ["string", "null"],
          "enum": [
            "owner_authenticated_robinhood_trading_mcp_schema_proof",
            "owner_authenticated_robinhood_banking_mcp_schema_proof",
            "owner_legal_commercial_compliance_approval",
            "brokerage_options_review_evidence",
            "supporting_external_gate_bundle",
            "stop_control_drill",
            "data_minimization_plan",
            "owner_approval_checklist",
            "owner_live_read_or_live_action_review",
            null
          ]
        },
        "message": { "$ref": "#/$defs/public_safe_text_500" },
        "path": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256,
          "not": { "$ref": "#/$defs/private_or_token_text" }
        }
      }
    },
    "live_authority_true_flags": {
      "type": "object",
      "anyOf": [
        { "properties": { "call_robinhood_mcp": { "const": true } }, "required": ["call_robinhood_mcp"] },
        { "properties": { "call_fincept": { "const": true } }, "required": ["call_fincept"] },
        { "properties": { "call_external_provider": { "const": true } }, "required": ["call_external_provider"] },
        { "properties": { "route_can_create_live_read_route": { "const": true } }, "required": ["route_can_create_live_read_route"] },
        { "properties": { "route_can_dispatch_provider": { "const": true } }, "required": ["route_can_dispatch_provider"] },
        { "properties": { "route_can_execute": { "const": true } }, "required": ["route_can_execute"] },
        { "properties": { "can_execute_orders": { "const": true } }, "required": ["can_execute_orders"] },
        { "properties": { "options_execution_enabled": { "const": true } }, "required": ["options_execution_enabled"] },
        { "properties": { "options_order_schema_allowed": { "const": true } }, "required": ["options_order_schema_allowed"] },
        { "properties": { "wallet_mutation_enabled": { "const": true } }, "required": ["wallet_mutation_enabled"] },
        { "properties": { "x402_settlement_enabled": { "const": true } }, "required": ["x402_settlement_enabled"] },
        { "properties": { "public_execute_invoke_enabled": { "const": true } }, "required": ["public_execute_invoke_enabled"] },
        { "properties": { "marketplace_publication_enabled": { "const": true } }, "required": ["marketplace_publication_enabled"] },
        { "properties": { "capability_publication_enabled": { "const": true } }, "required": ["capability_publication_enabled"] }
      ]
    },
    "private_payload_presence_fields": {
      "type": "object",
      "not": {
        "propertyNames": {
          "not": {
            "enum": [
              "api_key",
              "oauth_token",
              "refresh_token",
              "access_token",
              "session_cookie",
              "mfa_code",
              "account_number",
              "routing_number",
              "card_number",
              "private_key",
              "seed_phrase",
              "raw_payload",
              "provider_payload",
              "fincept_payload",
              "raw_schema",
              "payment_payload",
              "card_details",
              "raw_positions",
              "raw_transactions",
              "raw_orders",
              "order_ids"
            ]
          }
        }
      }
    },
    "public_safe_text_500": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500,
      "not": { "$ref": "#/$defs/private_or_token_text" }
    },
    "public_safe_id_128": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[a-zA-Z0-9_.:-]+$",
      "not": { "$ref": "#/$defs/private_or_token_text" }
    },
    "sha256_ref": {
      "type": "string",
      "pattern": "^sha256:[a-f0-9]{64}$"
    },
    "schema_ref": {
      "type": "string",
      "enum": [
        "/schema/finance-agent-mcp-schema-proof.v1.json",
        "/schema/finance-agent-compliance-approval.v1.json",
        "/schema/finance-agent-external-gate-bundle.v1.json",
        "/schema/finance-agent-gate-evidence-record.v1.json",
        "/schema/finance-agent-owner-approval-checklist.v1.json",
        "/schema/finance-agent-stop-control-drill.v1.json",
        "/schema/finance-agent-data-minimization-plan.v1.json",
        "/schema/finance-agent-version-c-audit-map.v1.json",
        "/schema/finance-agent-readiness-requirements.v1.json"
      ]
    },
    "finding_code": {
      "type": "string",
      "minLength": 1,
      "maxLength": 96,
      "pattern": "^[a-z0-9_]+$"
    },
    "private_or_token_text": {
      "anyOf": [
        { "pattern": "^[a-z][a-z0-9+.-]*://" },
        { "pattern": "[\\r\\n]" },
        { "pattern": "^[\\[{]" },
        { "pattern": "[?&](token|access_token|refresh_token|api_key|key|secret|authorization)=" },
        { "pattern": "([Aa][Pp][Ii][_-]?[Kk][Ee][Yy]|[Aa]ccess[_-]?[Tt]oken|[Rr]efresh[_-]?[Tt]oken|[Oo][Aa]uth|[Pp]assword|[Ss]ecret|[Mm][Ff][Aa]|[Cc][Vv][Vv])" },
        { "pattern": "([Aa]ccount|[Cc]ard|[Pp]ayment|[Ww]allet|[Rr]outing)[\\s_-]?([Nn]umber|[Pp]ayload|[Rr]aw|[Vv]alue|[Vv]alues)" },
        { "pattern": "\\b([Ss][Kk]|[Pp][Kk]|[Aa][Mm][Kk]|[Xx][Oo][Xx][BbAaPpRrSs]|[Gg][Hh][PpOoUuSsRr])_[A-Za-z0-9_=-]{8,}\\b" }
      ]
    }
  }
}
