{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agoragentic.com/schema/finance-agent-version-c-audit-map.v1.json",
  "title": "Finance Agent Version C Audit Map V1",
  "description": "Read-only owner/admin Version C finance-agent audit map. This schema indexes complete Version C evidence schema refs, launch modes, hard external gates, C1 options review requirements, gate-matrix status, mode-specific next safe actions with precondition metadata, owner approval packet requirements including distinct approved-trading, approved-card, and C1 options-review compliance approval refs/hashes, connector-specific trading/banking MCP proof state, scoped approval completion state, remaining external owner/compliance/brokerage evidence gaps, and separately classified roadmap-disabled blockers. It does not run Robinhood MCP probes, dispatch providers, create live-read routes, approve live action, enable options execution, mutate wallet/x402 state, call execute/invoke, publish listings, or publish capabilities.",
  "type": "object",
  "required": [
    "schema",
    "schema_ref",
    "deployment_id",
    "owner_id",
    "generated_at",
    "source",
    "read_only",
    "no_live_action_assertion",
    "product_namespace",
    "route_family",
    "buyer_entrypoint_unchanged",
    "schema_refs",
    "launch_modes",
    "hard_external_gates",
    "options_review_packet_contract",
    "required_options_review_external_gates",
    "options_review_forced_false_flags",
    "gate_matrix_mode_statuses",
    "mode_next_safe_actions",
    "owner_approval_packet_requirements",
    "boundary_flags",
    "runtime_authority_alias_count",
    "completion_state"
  ],
  "properties": {
    "schema": { "type": "string", "const": "agoragentic.audit.finance_agent_version_c_map.v1" },
    "schema_ref": { "type": "string", "const": "/schema/finance-agent-version-c-audit-map.v1.json" },
    "deployment_id": { "type": ["string", "null"] },
    "owner_id": { "type": ["string", "null"] },
    "generated_at": { "type": ["string", "null"] },
    "source": { "type": "string" },
    "read_only": { "type": "boolean", "const": true },
    "no_live_action_assertion": { "type": "boolean", "const": true },
    "branch": { "type": ["string", "null"] },
    "head": { "type": ["string", "null"] },
    "pr": { "type": ["integer", "string", "null"] },
    "product_namespace": { "type": "string", "const": "Triptych OS (Agent OS) finance-agent Version C" },
    "route_family": { "type": "string", "const": "/api/agent-os/finance/*" },
    "buyer_entrypoint_unchanged": {
      "type": "string",
      "pattern": "POST /api/execute"
    },
    "schema_refs": {
      "type": "array",
      "minItems": 14,
      "uniqueItems": true,
      "items": { "type": "string" },
      "allOf": [
        { "contains": { "const": "/schema/finance-agent-version-c-audit-map.v1.json" } },
        { "contains": { "const": "/schema/finance-agent-policy.v1.json" } },
        { "contains": { "const": "/schema/finance-agent-mcp-schema-proof.v1.json" } },
        { "contains": { "const": "/schema/finance-agent-compliance-approval.v1.json" } },
        { "contains": { "const": "/schema/finance-agent-readiness-requirements.v1.json" } },
        { "contains": { "const": "/schema/finance-agent-version-c-gate-matrix.v1.json" } },
        { "contains": { "const": "/schema/finance-agent-gate-evidence-record.v1.json" } },
        { "contains": { "const": "/schema/finance-agent-external-gate-bundle.v1.json" } },
        { "contains": { "const": "/schema/finance-agent-owner-approval-checklist.v1.json" } },
        { "contains": { "const": "/schema/finance-agent-stop-control-drill.v1.json" } },
        { "contains": { "const": "/schema/finance-agent-data-minimization-plan.v1.json" } },
        { "contains": { "const": "/schema/finance-agent-options-review-packet.v1.json" } },
        { "contains": { "const": "/schema/financial-research-job.v1.json" } },
        { "contains": { "const": "/schema/robinhood-agent-os-connector.v1.json" } }
      ]
    },
    "launch_modes": {
      "type": "array",
      "minItems": 6,
      "items": { "$ref": "#/$defs/launch_mode" }
    },
    "hard_external_gates": {
      "type": "array",
      "minItems": 3,
      "items": { "$ref": "#/$defs/hard_external_gate" }
    },
    "options_review_packet_contract": {
      "type": "object",
      "required": [
        "artifact",
        "review_packet_schema",
        "approval_evidence_schema",
        "required_external_gates",
        "route_can_create_live_read_route",
        "route_can_execute",
        "route_can_dispatch_provider",
        "route_can_approve_options_execution"
      ],
      "properties": {
        "artifact": { "type": "string", "const": "options_review_packet" },
        "review_packet_schema": { "type": "string", "const": "/schema/finance-agent-options-review-packet.v1.json" },
        "approval_evidence_schema": { "type": "string", "const": "/schema/finance-agent-compliance-approval.v1.json" },
        "required_external_gates": { "$ref": "#/$defs/options_review_external_gates" },
        "route_can_create_live_read_route": { "type": "boolean", "const": false },
        "route_can_execute": { "type": "boolean", "const": false },
        "route_can_dispatch_provider": { "type": "boolean", "const": false },
        "route_can_approve_options_execution": { "type": "boolean", "const": false }
      },
      "not": {
        "anyOf": [
          { "$ref": "#/$defs/live_authority_true_flags" },
          { "$ref": "#/$defs/options_review_packet_contract_shadow_authority_presence_fields" }
        ]
      },
      "additionalProperties": true
    },
    "required_options_review_external_gates": { "$ref": "#/$defs/options_review_external_gates" },
    "options_review_forced_false_flags": {
      "type": "array",
      "minItems": 8,
      "uniqueItems": true,
      "items": { "type": "string" },
      "allOf": [
        { "contains": { "const": "provider_dispatch_enabled" } },
        { "contains": { "const": "options_execution_enabled" } },
        { "contains": { "const": "route_can_create_live_read_route" } },
        { "contains": { "const": "route_can_approve_options_execution" } }
      ]
    },
    "gate_matrix_mode_statuses": {
      "type": "object",
      "required": [
        "research_only",
        "order_review",
        "approved_trading",
        "approved_card",
        "options_signal_intelligence",
        "options_review_packet",
        "options"
      ],
      "additionalProperties": { "$ref": "#/$defs/mode_status" }
    },
    "mode_next_safe_actions": {
      "type": "object",
      "required": [
        "research_only",
        "order_review",
        "approved_trading",
        "approved_card",
        "options_signal_intelligence",
        "options_review_packet",
        "options"
      ],
      "additionalProperties": { "$ref": "#/$defs/mode_next_safe_action_summary" }
    },
    "owner_approval_packet_requirements": { "$ref": "#/$defs/owner_approval_packet_requirements" },
    "boundary_flags": { "$ref": "#/$defs/boundary_flags" },
    "runtime_authority_alias_count": { "type": "integer", "minimum": 1 },
    "completion_state": {
      "type": "object",
      "required": [
        "code_schema_runtime_safety_indexed",
        "approved_trading",
        "approved_card",
        "options_review_packet",
        "options_execution",
        "owner_authenticated_robinhood_mcp_schema_proof",
        "owner_authenticated_robinhood_trading_mcp_schema_proof",
        "owner_authenticated_robinhood_banking_mcp_schema_proof",
        "owner_legal_commercial_compliance_approval",
        "approved_trading_compliance_approval",
        "approved_card_compliance_approval",
        "options_review_compliance_approval",
        "brokerage_options_approval",
        "remaining_blockers",
        "remaining_external_gates",
        "roadmap_disabled_blockers",
        "live_read_beta_routes"
      ],
      "properties": {
        "code_schema_runtime_safety_indexed": { "type": "boolean", "const": true },
        "approved_trading": { "$ref": "#/$defs/external_gate_mode_completion_status" },
        "approved_card": { "$ref": "#/$defs/external_gate_mode_completion_status" },
        "options_review_packet": { "$ref": "#/$defs/external_gate_mode_completion_status" },
        "options_execution": { "$ref": "#/$defs/options_execution_completion_status" },
        "owner_authenticated_robinhood_mcp_schema_proof": { "$ref": "#/$defs/owner_auth_completion_status" },
        "owner_authenticated_robinhood_trading_mcp_schema_proof": { "$ref": "#/$defs/owner_auth_completion_status" },
        "owner_authenticated_robinhood_banking_mcp_schema_proof": { "$ref": "#/$defs/owner_auth_completion_status" },
        "owner_legal_commercial_compliance_approval": { "$ref": "#/$defs/owner_approval_completion_status" },
        "approved_trading_compliance_approval": { "$ref": "#/$defs/owner_approval_completion_status" },
        "approved_card_compliance_approval": { "$ref": "#/$defs/owner_approval_completion_status" },
        "options_review_compliance_approval": { "$ref": "#/$defs/options_review_completion_status" },
        "brokerage_options_approval": { "$ref": "#/$defs/brokerage_options_completion_status" },
        "remaining_blockers": {
          "type": "array",
          "items": { "$ref": "#/$defs/version_c_blocker" },
          "allOf": [
            { "contains": { "const": "options_execution_not_supported_in_v1" } }
          ]
        },
        "remaining_external_gates": {
          "type": "array",
          "items": { "$ref": "#/$defs/version_c_external_gate_blocker" },
          "not": { "contains": { "const": "options_execution_not_supported_in_v1" } }
        },
        "roadmap_disabled_blockers": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": ["options_execution_not_supported_in_v1"]
          },
          "allOf": [
            { "contains": { "const": "options_execution_not_supported_in_v1" } }
          ]
        },
        "live_read_beta_routes": { "type": "string", "const": "not_implemented_planning_only" }
      },
      "not": {
        "anyOf": [
          { "$ref": "#/$defs/live_authority_true_flags" },
          { "$ref": "#/$defs/completion_state_shadow_authority_presence_fields" },
          { "$ref": "#/$defs/private_payload_fields" }
        ]
      },
      "additionalProperties": true
    }
  },
  "not": {
    "anyOf": [
      { "$ref": "#/$defs/live_authority_true_flags" },
      { "$ref": "#/$defs/owner_packet_shadow_authority_presence_fields" },
      { "required": ["raw_schema"] },
      { "required": ["raw_payload"] },
      { "required": ["account_values"] },
      { "required": ["card_values"] },
      { "required": ["order_payload"] },
      { "required": ["wallet_private_key"] },
      { "required": ["provider_credentials"] }
    ]
  },
  "additionalProperties": true,
  "$defs": {
    "external_gate_mode_completion_status": {
      "type": "string",
      "enum": [
        "blocked_external_evidence",
        "external_gates_satisfied",
        "unknown"
      ]
    },
    "version_c_mode_status_value": {
      "type": "string",
      "enum": [
        "available_without_external_gate",
        "policy_gated_without_external_gate",
        "blocked_external_evidence",
        "external_gates_satisfied",
        "available_as_non_executable_research_metadata",
        "disabled_roadmap",
        "unknown"
      ]
    },
    "version_c_external_gate_blocker": {
      "type": "string",
      "enum": [
        "finance_agent_options_review_approval",
        "finance_agent_owner_legal_commercial_approval",
        "owner_authenticated_robinhood_banking_mcp_schema_probe",
        "owner_authenticated_robinhood_trading_mcp_schema_probe"
      ]
    },
    "version_c_blocker": {
      "type": "string",
      "enum": [
        "finance_agent_options_review_approval",
        "finance_agent_owner_legal_commercial_approval",
        "options_execution_not_supported_in_v1",
        "owner_authenticated_robinhood_banking_mcp_schema_probe",
        "owner_authenticated_robinhood_trading_mcp_schema_probe"
      ]
    },
    "options_execution_completion_status": {
      "type": "string",
      "enum": [
        "disabled_roadmap",
        "unknown"
      ]
    },
    "owner_auth_completion_status": {
      "type": "string",
      "enum": [
        "missing_external_owner_auth",
        "satisfied_or_not_required"
      ]
    },
    "owner_approval_completion_status": {
      "type": "string",
      "enum": [
        "missing_external_owner_approval",
        "satisfied_or_not_required"
      ]
    },
    "options_review_completion_status": {
      "type": "string",
      "enum": [
        "missing_external_options_review_approval",
        "satisfied_or_not_required"
      ]
    },
    "brokerage_options_completion_status": {
      "type": "string",
      "enum": [
        "missing_external_brokerage_options_evidence",
        "satisfied_or_not_required"
      ]
    },
    "launch_mode": {
      "type": "object",
      "required": [
        "launch_mode",
        "mode_type",
        "status_when_complete",
        "required_evidence",
        "required_external_evidence",
        "blockers_when_missing",
        "prohibited"
      ],
      "properties": {
        "launch_mode": { "type": "string" },
        "mode_type": { "type": "string" },
        "status_when_complete": { "type": "string" },
        "required_evidence": {
          "type": "array",
          "items": { "type": "string" }
        },
        "required_external_evidence": {
          "type": "array",
          "items": {
            "type": "object",
            "required": ["kind", "connector", "schema"],
            "properties": {
              "kind": { "type": ["string", "null"] },
              "connector": { "type": ["string", "null"] },
              "schema": { "type": ["string", "null"] }
            },
            "additionalProperties": true
          }
        },
        "blockers_when_missing": {
          "type": "array",
          "items": { "type": "string" }
        },
        "prohibited": {
          "type": "array",
          "items": { "type": "string" }
        }
      },
      "not": {
        "anyOf": [
          { "$ref": "#/$defs/live_authority_true_flags" },
          { "$ref": "#/$defs/owner_packet_shadow_authority_presence_fields" },
          { "$ref": "#/$defs/private_payload_fields" }
        ]
      },
      "additionalProperties": true
    },
    "hard_external_gate": {
      "type": "object",
      "required": ["gate", "required_for", "schema", "route_authority"],
      "properties": {
        "gate": { "type": "string" },
        "required_for": {
          "type": "array",
          "items": { "type": "string" }
        },
        "schema": { "type": ["string", "null"] },
        "route_authority": { "$ref": "#/$defs/route_authority_false" }
      },
      "not": {
        "anyOf": [
          { "$ref": "#/$defs/live_authority_true_flags" },
          { "$ref": "#/$defs/owner_packet_shadow_authority_presence_fields" },
          { "$ref": "#/$defs/private_payload_fields" }
        ]
      },
      "additionalProperties": true
    },
    "mode_status": {
      "type": "object",
      "required": ["status", "missing_external_gates", "route_authority"],
      "properties": {
        "status": { "$ref": "#/$defs/version_c_mode_status_value" },
        "missing_external_gates": {
          "type": "array",
          "items": { "$ref": "#/$defs/version_c_blocker" }
        },
        "route_authority": { "$ref": "#/$defs/mode_authority_false" }
      },
      "not": {
        "anyOf": [
          { "$ref": "#/$defs/live_authority_true_flags" },
          { "$ref": "#/$defs/owner_packet_shadow_authority_presence_fields" },
          { "$ref": "#/$defs/private_payload_fields" }
        ]
      },
      "additionalProperties": true
    },
    "mode_next_safe_action_summary": {
      "type": "object",
      "required": [
        "status",
        "missing_external_gates",
        "next_safe_actions",
        "action_count",
        "route_authority",
        "grants_live_authority"
      ],
      "properties": {
        "status": { "$ref": "#/$defs/version_c_mode_status_value" },
        "missing_external_gates": {
          "type": "array",
          "items": { "$ref": "#/$defs/version_c_blocker" }
        },
        "next_safe_actions": {
          "type": "array",
          "items": { "$ref": "#/$defs/owner_packet_next_safe_action" }
        },
        "action_count": { "type": "integer", "minimum": 0 },
        "route_authority": { "$ref": "#/$defs/mode_authority_false" },
        "grants_live_authority": { "type": "boolean", "const": false }
      },
      "not": {
        "anyOf": [
          { "$ref": "#/$defs/live_authority_true_flags" },
          { "$ref": "#/$defs/owner_packet_shadow_authority_presence_fields" },
          { "$ref": "#/$defs/private_payload_fields" }
        ]
      },
      "additionalProperties": true
    },
    "owner_approval_packet_requirements": {
      "type": "object",
      "required": [
        "packet_state",
        "read_only",
        "no_live_action_assertion",
        "checklist_schema_ref",
        "schema_refs",
        "record_routes",
        "required_acknowledgement_keys",
        "required_evidence_ref_fields",
        "options_review_packet_required_external_gates",
        "remaining_blockers",
        "remaining_external_gates",
        "roadmap_disabled_blockers",
        "missing_supporting_packet_artifacts",
        "next_safe_actions",
        "supporting_packet_artifacts",
        "route_authority",
        "owner_approval_grants_live_authority"
      ],
      "properties": {
        "packet_state": {
          "type": "string",
          "enum": [
            "blocked_missing_external_evidence",
            "ready_for_owner_review"
          ]
        },
        "read_only": { "type": "boolean", "const": true },
        "no_live_action_assertion": { "type": "boolean", "const": true },
        "checklist_schema_ref": {
          "type": "string",
          "const": "/schema/finance-agent-owner-approval-checklist.v1.json"
        },
        "schema_refs": {
          "type": "object",
          "required": [
            "finance_policy",
            "mcp_schema_proof",
            "compliance_approval",
            "owner_approval_checklist",
            "external_gate_bundle",
            "gate_evidence_record",
            "stop_control_drill",
            "data_minimization_plan",
            "readiness_requirements",
            "version_c_gate_matrix",
            "options_review_packet",
            "financial_research_job",
            "robinhood_connector"
          ],
          "properties": {
            "finance_policy": { "type": "string", "const": "/schema/finance-agent-policy.v1.json" },
            "mcp_schema_proof": { "type": "string", "const": "/schema/finance-agent-mcp-schema-proof.v1.json" },
            "compliance_approval": { "type": "string", "const": "/schema/finance-agent-compliance-approval.v1.json" },
            "owner_approval_checklist": { "type": "string", "const": "/schema/finance-agent-owner-approval-checklist.v1.json" },
            "external_gate_bundle": { "type": "string", "const": "/schema/finance-agent-external-gate-bundle.v1.json" },
            "gate_evidence_record": { "type": "string", "const": "/schema/finance-agent-gate-evidence-record.v1.json" },
            "stop_control_drill": { "type": "string", "const": "/schema/finance-agent-stop-control-drill.v1.json" },
            "data_minimization_plan": { "type": "string", "const": "/schema/finance-agent-data-minimization-plan.v1.json" },
            "readiness_requirements": { "type": "string", "const": "/schema/finance-agent-readiness-requirements.v1.json" },
            "version_c_gate_matrix": { "type": "string", "const": "/schema/finance-agent-version-c-gate-matrix.v1.json" },
            "options_review_packet": { "type": "string", "const": "/schema/finance-agent-options-review-packet.v1.json" },
            "financial_research_job": { "type": "string", "const": "/schema/financial-research-job.v1.json" },
            "robinhood_connector": { "type": "string", "const": "/schema/robinhood-agent-os-connector.v1.json" }
          },
          "not": {
            "anyOf": [
              { "$ref": "#/$defs/live_authority_true_flags" },
              { "$ref": "#/$defs/owner_packet_shadow_authority_presence_fields" },
              { "$ref": "#/$defs/private_payload_fields" }
            ]
          },
          "additionalProperties": true
        },
        "record_routes": {
          "type": "object",
          "required": [
            "readiness_requirements",
            "mcp_schema_proofs",
            "compliance_approvals",
            "gate_evidence_records",
            "version_c_audit_map"
          ],
          "properties": {
            "readiness_requirements": {
              "type": "string",
              "const": "/api/agent-os/finance/deployments/{deployment_id}/readiness-requirements"
            },
            "mcp_schema_proofs": {
              "type": "string",
              "const": "/api/agent-os/finance/deployments/{deployment_id}/mcp-schema-proofs"
            },
            "compliance_approvals": {
              "type": "string",
              "const": "/api/agent-os/finance/deployments/{deployment_id}/compliance-approvals"
            },
            "gate_evidence_records": {
              "type": "string",
              "const": "/api/agent-os/finance/deployments/{deployment_id}/gate-evidence-records"
            },
            "version_c_audit_map": {
              "type": "string",
              "const": "/api/agent-os/finance/deployments/{deployment_id}/version-c-audit-map"
            }
          },
          "not": {
            "anyOf": [
              { "$ref": "#/$defs/live_authority_true_flags" },
              { "$ref": "#/$defs/owner_packet_shadow_authority_presence_fields" },
              { "$ref": "#/$defs/private_payload_fields" }
            ]
          },
          "additionalProperties": true
        },
        "required_acknowledgement_keys": {
          "type": "array",
          "minItems": 12,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/owner_approval_acknowledgement_key" },
          "allOf": [
            { "contains": { "const": "policy_caps_reviewed" } },
            { "contains": { "const": "stop_disconnect_controls_reviewed" } },
            { "contains": { "const": "non_advice_boundary_acknowledged" } },
            { "contains": { "const": "c1_options_review_packet_non_executable_acknowledged" } },
            { "contains": { "const": "options_execution_disabled_acknowledged" } },
            { "contains": { "const": "provider_dispatch_disabled_acknowledged" } },
            { "contains": { "const": "x402_wallet_mutation_not_approved_acknowledged" } }
          ]
        },
        "required_evidence_ref_fields": {
          "type": "array",
          "minItems": 24,
          "uniqueItems": true,
          "items": { "$ref": "#/$defs/owner_packet_evidence_ref_field" },
          "allOf": [
            { "contains": { "const": "external_gate_bundle_ref" } },
            { "contains": { "const": "owner_approval_checklist_ref" } },
            { "contains": { "const": "owner_approval_checklist_hash" } },
            { "contains": { "const": "gate_evidence_record_hash" } },
            { "contains": { "const": "mcp_schema_proof_ref" } },
            { "contains": { "const": "approved_trading_compliance_approval_ref" } },
            { "contains": { "const": "approved_card_compliance_approval_ref" } },
            { "contains": { "const": "options_review_compliance_approval_ref" } },
            { "contains": { "const": "options_review_compliance_approval_hash" } },
            { "contains": { "const": "brokerage_options_review_ref" } },
            { "contains": { "const": "data_minimization_plan_hash" } },
            { "contains": { "const": "policy_hash" } }
          ]
        },
        "options_review_packet_required_external_gates": { "$ref": "#/$defs/options_review_external_gates" },
        "remaining_blockers": {
          "type": "array",
          "items": { "$ref": "#/$defs/version_c_blocker" },
          "allOf": [
            { "contains": { "const": "options_execution_not_supported_in_v1" } }
          ]
        },
        "remaining_external_gates": {
          "type": "array",
          "items": { "$ref": "#/$defs/version_c_external_gate_blocker" },
          "not": { "contains": { "const": "options_execution_not_supported_in_v1" } }
        },
        "roadmap_disabled_blockers": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": ["options_execution_not_supported_in_v1"]
          },
          "allOf": [
            { "contains": { "const": "options_execution_not_supported_in_v1" } }
          ]
        },
        "missing_supporting_packet_artifacts": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "external_gate_bundle",
              "owner_approval_checklist",
              "stop_control_drill",
              "data_minimization_plan"
            ]
          }
        },
        "next_safe_actions": {
          "type": "array",
          "minItems": 1,
          "items": { "$ref": "#/$defs/owner_packet_next_safe_action" }
        },
        "supporting_packet_artifacts": {
          "type": "array",
          "minItems": 4,
          "maxItems": 4,
          "items": { "$ref": "#/$defs/supporting_packet_artifact" },
          "allOf": [
            { "contains": { "properties": { "evidence_kind": { "const": "external_gate_bundle" } }, "required": ["evidence_kind"] } },
            { "contains": { "properties": { "evidence_kind": { "const": "owner_approval_checklist" } }, "required": ["evidence_kind"] } },
            { "contains": { "properties": { "evidence_kind": { "const": "stop_control_drill" } }, "required": ["evidence_kind"] } },
            { "contains": { "properties": { "evidence_kind": { "const": "data_minimization_plan" } }, "required": ["evidence_kind"] } }
          ]
        },
        "route_authority": { "$ref": "#/$defs/route_authority_false" },
        "owner_approval_grants_live_authority": { "type": "boolean", "const": false }
      },
      "not": {
        "anyOf": [
          { "$ref": "#/$defs/live_authority_true_flags" },
          { "$ref": "#/$defs/owner_packet_shadow_authority_presence_fields" },
          { "$ref": "#/$defs/private_payload_fields" }
        ]
      },
      "additionalProperties": true
    },
    "owner_packet_next_safe_action": {
      "type": "object",
      "required": [
        "action_id",
        "status",
        "blocking_requirement",
        "route_or_schema_ref",
        "preconditions",
        "required_evidence_ref_fields",
        "owner_visible_summary",
        "records_evidence_only",
        "grants_live_authority",
        "route_authority"
      ],
      "properties": {
        "action_id": {
          "type": "string",
          "enum": [
            "record_trading_mcp_schema_proof",
            "record_banking_mcp_schema_proof",
            "record_owner_legal_commercial_compliance_approval",
            "record_options_review_compliance_approval",
            "keep_options_execution_disabled",
            "record_external_gate_bundle_ref",
            "record_owner_approval_checklist_ref",
            "record_stop_control_drill_ref",
            "record_data_minimization_plan_ref",
            "review_owner_approval_packet"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "required_external_owner_auth",
            "required_external_owner_approval",
            "required_external_brokerage_options_review",
            "roadmap_disabled_not_actionable",
            "supporting_packet_ref_required",
            "ready_for_owner_review"
          ]
        },
        "blocking_requirement": { "$ref": "#/$defs/owner_packet_blocking_requirement" },
        "route_or_schema_ref": {
          "type": "string",
          "enum": [
            "/api/agent-os/finance/deployments/{deployment_id}/mcp-schema-proofs",
            "/api/agent-os/finance/deployments/{deployment_id}/compliance-approvals",
            "/schema/finance-agent-options-review-packet.v1.json",
            "/schema/finance-agent-external-gate-bundle.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"
          ]
        },
        "owner_visible_summary": { "type": "string", "minLength": 1 },
        "preconditions": {
          "type": "array",
          "items": { "$ref": "#/$defs/owner_packet_action_precondition" }
        },
        "required_evidence_ref_fields": {
          "type": "array",
          "items": { "$ref": "#/$defs/owner_packet_evidence_ref_field" }
        },
        "records_evidence_only": { "type": "boolean", "const": true },
        "grants_live_authority": { "type": "boolean", "const": false },
        "route_authority": { "$ref": "#/$defs/route_authority_false" }
      },
      "not": {
        "anyOf": [
          { "$ref": "#/$defs/live_authority_true_flags" },
          { "$ref": "#/$defs/owner_packet_shadow_authority_presence_fields" },
          { "$ref": "#/$defs/private_payload_fields" }
        ]
      },
      "additionalProperties": true
    },
    "supporting_packet_artifact": {
      "type": "object",
      "required": [
        "evidence_kind",
        "schema_ref",
        "status",
        "artifact_ref_present",
        "artifact_hash_present",
        "evidence_record_id",
        "route_records_evidence_only",
        "route_authority"
      ],
      "properties": {
        "evidence_kind": {
          "type": "string",
          "enum": [
            "external_gate_bundle",
            "owner_approval_checklist",
            "stop_control_drill",
            "data_minimization_plan"
          ]
        },
        "schema_ref": {
          "type": "string",
          "enum": [
            "/schema/finance-agent-external-gate-bundle.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"
          ]
        },
        "status": { "$ref": "#/$defs/supporting_packet_artifact_status" },
        "artifact_ref_present": { "type": "boolean" },
        "artifact_hash_present": { "type": "boolean" },
        "evidence_record_id": { "type": ["string", "null"] },
        "route_records_evidence_only": { "type": "boolean", "const": true },
        "route_authority": { "$ref": "#/$defs/route_authority_false" }
      },
      "allOf": [
        {
          "if": {
            "properties": { "evidence_kind": { "const": "external_gate_bundle" } },
            "required": ["evidence_kind"]
          },
          "then": {
            "properties": {
              "schema_ref": { "const": "/schema/finance-agent-external-gate-bundle.v1.json" }
            }
          }
        },
        {
          "if": {
            "properties": { "evidence_kind": { "const": "owner_approval_checklist" } },
            "required": ["evidence_kind"]
          },
          "then": {
            "properties": {
              "schema_ref": { "const": "/schema/finance-agent-owner-approval-checklist.v1.json" }
            }
          }
        },
        {
          "if": {
            "properties": { "evidence_kind": { "const": "stop_control_drill" } },
            "required": ["evidence_kind"]
          },
          "then": {
            "properties": {
              "schema_ref": { "const": "/schema/finance-agent-stop-control-drill.v1.json" }
            }
          }
        },
        {
          "if": {
            "properties": { "evidence_kind": { "const": "data_minimization_plan" } },
            "required": ["evidence_kind"]
          },
          "then": {
            "properties": {
              "schema_ref": { "const": "/schema/finance-agent-data-minimization-plan.v1.json" }
            }
          }
        },
        {
          "if": {
            "properties": { "status": { "const": "missing" } },
            "required": ["status"]
          },
          "then": {
            "properties": {
              "artifact_ref_present": { "const": false },
              "artifact_hash_present": { "const": false },
              "evidence_record_id": { "type": "null" }
            }
          }
        },
        {
          "if": {
            "properties": { "status": { "const": "recorded" } },
            "required": ["status"]
          },
          "then": {
            "properties": {
              "artifact_ref_present": { "const": true },
              "artifact_hash_present": { "const": true },
              "evidence_record_id": { "type": "string", "minLength": 1 }
            }
          }
        }
      ],
      "not": {
        "anyOf": [
          { "$ref": "#/$defs/live_authority_true_flags" },
          { "$ref": "#/$defs/owner_packet_shadow_authority_presence_fields" },
          { "$ref": "#/$defs/private_payload_fields" }
        ]
      },
      "additionalProperties": true
    },
    "route_authority_false": {
      "type": "object",
      "required": [
        "route_can_collect_credentials",
        "route_can_run_probe",
        "route_can_dispatch_provider",
        "route_can_create_live_read_route",
        "route_can_approve_live_actions",
        "route_can_enable_options_execution",
        "route_can_approve_public_claims",
        "route_can_approve_marketplace_publication"
      ],
      "properties": {
        "route_can_collect_credentials": { "type": "boolean", "const": false },
        "route_can_run_probe": { "type": "boolean", "const": false },
        "route_can_dispatch_provider": { "type": "boolean", "const": false },
        "route_can_create_live_read_route": { "type": "boolean", "const": false },
        "route_can_approve_live_actions": { "type": "boolean", "const": false },
        "route_can_enable_options_execution": { "type": "boolean", "const": false },
        "route_can_approve_public_claims": { "type": "boolean", "const": false },
        "route_can_approve_marketplace_publication": { "type": "boolean", "const": false }
      },
      "additionalProperties": false
    },
    "mode_authority_false": {
      "type": "object",
      "required": [
        "options_execution_enabled",
        "options_order_schema_allowed",
        "route_can_execute",
        "route_can_dispatch_provider",
        "route_can_create_live_read_route",
        "route_can_enable_options_execution",
        "route_can_approve_options_execution"
      ],
      "properties": {
        "options_execution_enabled": { "type": "boolean", "const": false },
        "options_order_schema_allowed": { "type": "boolean", "const": false },
        "route_can_execute": { "type": "boolean", "const": false },
        "route_can_dispatch_provider": { "type": "boolean", "const": false },
        "route_can_create_live_read_route": { "type": "boolean", "const": false },
        "route_can_enable_options_execution": { "type": "boolean", "const": false },
        "route_can_approve_options_execution": { "type": "boolean", "const": false }
      },
      "additionalProperties": false
    },
    "boundary_flags": {
      "type": "object",
      "required": [
        "live_read_route_enabled",
        "live_read_route_created",
        "route_can_create_live_read_route",
        "live_order_placement_enabled",
        "order_cancellation_enabled",
        "card_detail_fetch_enabled",
        "purchases_enabled",
        "options_execution_enabled",
        "provider_dispatch_enabled",
        "wallet_mutation_enabled",
        "x402_settlement_enabled",
        "x402_readiness_mutation_enabled",
        "public_execute_enabled",
        "global_execute_mutation_enabled",
        "global_invoke_mutation_enabled",
        "marketplace_publication_enabled",
        "capability_publication_enabled"
      ],
      "properties": {
        "live_read_route_enabled": { "type": "boolean", "const": false },
        "live_read_route_created": { "type": "boolean", "const": false },
        "route_can_create_live_read_route": { "type": "boolean", "const": false },
        "live_order_placement_enabled": { "type": "boolean", "const": false },
        "order_cancellation_enabled": { "type": "boolean", "const": false },
        "card_detail_fetch_enabled": { "type": "boolean", "const": false },
        "purchases_enabled": { "type": "boolean", "const": false },
        "options_execution_enabled": { "type": "boolean", "const": false },
        "provider_dispatch_enabled": { "type": "boolean", "const": false },
        "wallet_mutation_enabled": { "type": "boolean", "const": false },
        "x402_settlement_enabled": { "type": "boolean", "const": false },
        "x402_readiness_mutation_enabled": { "type": "boolean", "const": false },
        "public_execute_enabled": { "type": "boolean", "const": false },
        "global_execute_mutation_enabled": { "type": "boolean", "const": false },
        "global_invoke_mutation_enabled": { "type": "boolean", "const": false },
        "marketplace_publication_enabled": { "type": "boolean", "const": false },
        "capability_publication_enabled": { "type": "boolean", "const": false }
      },
      "additionalProperties": false
    },
    "options_review_external_gates": {
      "type": "array",
      "minItems": 4,
      "maxItems": 4,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "owner_approval_required",
          "compliance_review_required",
          "brokerage_options_approval_required",
          "mcp_schema_proof_required"
        ]
      },
      "allOf": [
        { "contains": { "const": "owner_approval_required" } },
        { "contains": { "const": "compliance_review_required" } },
        { "contains": { "const": "brokerage_options_approval_required" } },
        { "contains": { "const": "mcp_schema_proof_required" } }
      ]
    },
    "supporting_packet_artifact_status": {
      "type": "string",
      "enum": [
        "archived",
        "missing",
        "recorded"
      ]
    },
    "owner_approval_acknowledgement_key": {
      "type": "string",
      "enum": [
        "c1_options_review_packet_non_executable_acknowledged",
        "c1_options_review_packet_required_external_gates_reviewed",
        "marketplace_publication_not_approved_acknowledged",
        "no_guaranteed_returns_acknowledged",
        "non_advice_boundary_acknowledged",
        "options_execution_disabled_acknowledged",
        "policy_caps_reviewed",
        "provider_dispatch_disabled_acknowledged",
        "public_claims_not_approved_acknowledged",
        "redaction_boundary_reviewed",
        "stop_disconnect_controls_reviewed",
        "x402_wallet_mutation_not_approved_acknowledged"
      ]
    },
    "owner_packet_blocking_requirement": {
      "type": "string",
      "enum": [
        "data_minimization_plan",
        "external_gate_bundle",
        "finance_agent_options_review_approval",
        "finance_agent_owner_legal_commercial_approval",
        "none",
        "options_execution_not_supported_in_v1",
        "owner_approval_checklist",
        "owner_authenticated_robinhood_banking_mcp_schema_probe",
        "owner_authenticated_robinhood_trading_mcp_schema_probe",
        "stop_control_drill"
      ]
    },
    "owner_packet_action_precondition": {
      "type": "string",
      "enum": [
        "allowed_read_categories_reviewed",
        "brokerage_options_review_ref_and_hash_available",
        "brokerage_options_review_refs_available_for_c1_if_applicable",
        "c1_options_review_packets_remain_non_executable",
        "data_minimization_plan_ref_recorded",
        "exact_c1_required_external_gates_acknowledged",
        "excluded_private_data_families_reviewed",
        "execute_invoke_marketplace_and_capability_publication_blocks_reviewed",
        "external_gate_bundle_ref_recorded",
        "future_live_read_beta_remains_unapproved",
        "matching_launch_scope_selected",
        "non_advice_and_no_guaranteed_returns_acknowledged",
        "official_robinhood_banking_mcp_endpoint_identity_confirmed",
        "official_robinhood_trading_mcp_endpoint_identity_confirmed",
        "options_execution_flags_forced_false",
        "options_execution_not_supported_in_v1",
        "owner_authenticated_mcp_schema_proof_recorded_for_required_connectors",
        "owner_authenticated_robinhood_session_outside_agoragentic",
        "owner_disablement_path_identified",
        "policy_caps_and_stop_controls_reviewed",
        "policy_caps_reviewed",
        "provider_dispatch_stop_boundary_reviewed",
        "raw_schema_and_private_values_excluded",
        "redacted_compliance_approval_refs_available",
        "redacted_mcp_schema_proof_refs_available",
        "remaining_external_gates_empty",
        "stop_control_drill_ref_recorded",
        "strict_stored_robinhood_trading_mcp_schema_proof_exists",
        "supporting_packet_artifacts_recorded_with_refs_and_hashes"
      ]
    },
    "owner_packet_evidence_ref_field": {
      "type": "string",
      "enum": [
        "approved_card_compliance_approval_hash",
        "approved_card_compliance_approval_ref",
        "approved_trading_compliance_approval_hash",
        "approved_trading_compliance_approval_ref",
        "brokerage_options_review_hash",
        "brokerage_options_review_ref",
        "data_minimization_plan_hash",
        "data_minimization_plan_ref",
        "external_gate_bundle_hash",
        "external_gate_bundle_ref",
        "gate_evidence_record_hash",
        "gate_evidence_record_ref",
        "mcp_schema_proof_hash",
        "mcp_schema_proof_ref",
        "options_review_compliance_approval_hash",
        "options_review_compliance_approval_ref",
        "owner_approval_checklist_hash",
        "owner_approval_checklist_ref",
        "policy_hash",
        "policy_ref",
        "readiness_requirements_hash",
        "readiness_requirements_ref",
        "stop_control_drill_hash",
        "stop_control_drill_ref"
      ]
    },
    "private_payload_fields": {
      "type": "object",
      "anyOf": [
        { "required": ["raw_schema"] },
        { "required": ["schema_payload"] },
        { "required": ["raw_payload"] },
        { "required": ["raw_approval"] },
        { "required": ["raw_review"] },
        { "required": ["account_values"] },
        { "required": ["card_values"] },
        { "required": ["order_values"] },
        { "required": ["order_payload"] },
        { "required": ["payment_values"] },
        { "required": ["wallet_values"] },
        { "required": ["wallet_private_key"] },
        { "required": ["provider_credentials"] },
        { "required": ["auth_token"] },
        { "required": ["access_token"] },
        { "required": ["refresh_token"] },
        { "required": ["private_key"] }
      ]
    },
    "owner_packet_shadow_authority_presence_fields": {
      "type": "object",
      "description": "Reject route/runtime authority aliases by presence in owner packet loose metadata, even when set false. Intentional forced-false route_authority objects remain validated separately.",
      "not": {
        "propertyNames": {
          "not": {
            "enum": [
              "call_external_provider",
              "call_global_execute",
              "call_global_invoke",
              "call_mcp_tool",
              "call_provider",
              "call_robinhood",
              "call_robinhood_mcp",
              "call_x402",
              "can_execute",
              "can_execute_options_orders",
              "can_execute_orders",
              "can_invoke",
              "can_make_purchases",
              "cancel_order",
              "capability_publication",
              "capability_publication_enabled",
              "card_detail_fetch",
              "card_detail_fetch_enabled",
              "card_purchase",
              "card_purchase_enabled",
              "collect_credentials",
              "executable_directly",
              "execute_order",
              "external_provider_call",
              "external_provider_call_enabled",
              "fetch_card_details",
              "global_execute_mutation",
              "global_execute_mutation_enabled",
              "global_invoke_mutation",
              "global_invoke_mutation_enabled",
              "live_action_enabled",
              "live_order_execution",
              "live_order_placement_enabled",
              "live_read_route",
              "live_read_route_created",
              "live_read_route_enabled",
              "make_purchase",
              "marketplace_publication",
              "marketplace_publication_enabled",
              "mcp_dispatch_enabled",
              "mutate_wallet",
              "option_order_schema_allowed",
              "options_execution",
              "options_execution_enabled",
              "options_order_schema",
              "order_cancellation",
              "order_cancellation_enabled",
              "order_placement",
              "place_order",
              "provider_dispatch",
              "provider_dispatch_enabled",
              "public_execute",
              "public_execute_enabled",
              "public_execute_mutation",
              "public_route_enabled",
              "publish_capability",
              "publish_listing",
              "publish_marketplace_listing",
              "purchase",
              "robinhood_provider_dispatch",
              "route_can_approve_live_actions",
              "route_can_approve_marketplace_publication",
              "route_can_approve_options_execution",
              "route_can_approve_public_claims",
              "route_can_collect_credentials",
              "route_can_create_live_read_route",
              "route_can_dispatch_provider",
              "route_can_enable_options_execution",
              "route_can_execute",
              "route_can_run_external_probes",
              "route_can_run_probe",
              "settle",
              "spend",
              "wallet_mutation",
              "wallet_mutation_enabled",
              "x402_readiness_mutation",
              "x402_readiness_mutation_enabled",
              "x402_settlement",
              "x402_settlement_enabled"
            ]
          }
        }
      }
    },
    "options_review_packet_contract_shadow_authority_presence_fields": {
      "type": "object",
      "description": "Reject non-canonical route/runtime authority aliases by presence in the options review packet contract, while allowing the contract's explicit forced-false route_can_* fields.",
      "not": {
        "propertyNames": {
          "not": {
            "enum": [
              "call_external_provider",
              "call_global_execute",
              "call_global_invoke",
              "call_mcp_tool",
              "call_provider",
              "call_robinhood",
              "call_robinhood_mcp",
              "call_x402",
              "can_execute",
              "can_execute_options_orders",
              "can_execute_orders",
              "can_invoke",
              "can_make_purchases",
              "cancel_order",
              "capability_publication",
              "capability_publication_enabled",
              "card_detail_fetch",
              "card_detail_fetch_enabled",
              "card_purchase",
              "card_purchase_enabled",
              "collect_credentials",
              "executable_directly",
              "execute_order",
              "external_provider_call",
              "external_provider_call_enabled",
              "fetch_card_details",
              "global_execute_mutation",
              "global_execute_mutation_enabled",
              "global_invoke_mutation",
              "global_invoke_mutation_enabled",
              "live_action_enabled",
              "live_order_execution",
              "live_order_placement_enabled",
              "live_read_route",
              "live_read_route_created",
              "live_read_route_enabled",
              "make_purchase",
              "marketplace_publication",
              "marketplace_publication_enabled",
              "mcp_dispatch_enabled",
              "mutate_wallet",
              "option_order_schema_allowed",
              "options_execution",
              "options_execution_enabled",
              "options_order_schema",
              "order_cancellation",
              "order_cancellation_enabled",
              "order_placement",
              "place_order",
              "provider_dispatch",
              "provider_dispatch_enabled",
              "public_execute",
              "public_execute_enabled",
              "public_execute_mutation",
              "public_route_enabled",
              "publish_capability",
              "publish_listing",
              "publish_marketplace_listing",
              "purchase",
              "robinhood_provider_dispatch",
              "route_can_approve_live_actions",
              "route_can_approve_marketplace_publication",
              "route_can_approve_public_claims",
              "route_can_collect_credentials",
              "route_can_enable_options_execution",
              "route_can_run_external_probes",
              "route_can_run_probe",
              "settle",
              "spend",
              "wallet_mutation",
              "wallet_mutation_enabled",
              "x402_readiness_mutation",
              "x402_readiness_mutation_enabled",
              "x402_settlement",
              "x402_settlement_enabled"
            ]
          }
        }
      }
    },
    "completion_state_shadow_authority_presence_fields": {
      "type": "object",
      "description": "Reject route/runtime authority aliases by presence in completion state while allowing the canonical options_execution completion status field.",
      "not": {
        "propertyNames": {
          "not": {
            "enum": [
              "call_external_provider",
              "call_global_execute",
              "call_global_invoke",
              "call_mcp_tool",
              "call_provider",
              "call_robinhood",
              "call_robinhood_mcp",
              "call_x402",
              "can_execute",
              "can_execute_options_orders",
              "can_execute_orders",
              "can_invoke",
              "can_make_purchases",
              "cancel_order",
              "capability_publication",
              "capability_publication_enabled",
              "card_detail_fetch",
              "card_detail_fetch_enabled",
              "card_purchase",
              "card_purchase_enabled",
              "collect_credentials",
              "executable_directly",
              "execute_order",
              "external_provider_call",
              "external_provider_call_enabled",
              "fetch_card_details",
              "global_execute_mutation",
              "global_execute_mutation_enabled",
              "global_invoke_mutation",
              "global_invoke_mutation_enabled",
              "live_action_enabled",
              "live_order_execution",
              "live_order_placement_enabled",
              "live_read_route",
              "live_read_route_created",
              "live_read_route_enabled",
              "make_purchase",
              "marketplace_publication",
              "marketplace_publication_enabled",
              "mcp_dispatch_enabled",
              "mutate_wallet",
              "option_order_schema_allowed",
              "options_execution_enabled",
              "options_order_schema",
              "order_cancellation",
              "order_cancellation_enabled",
              "order_placement",
              "place_order",
              "provider_dispatch",
              "provider_dispatch_enabled",
              "public_execute",
              "public_execute_enabled",
              "public_execute_mutation",
              "public_route_enabled",
              "publish_capability",
              "publish_listing",
              "publish_marketplace_listing",
              "purchase",
              "robinhood_provider_dispatch",
              "route_can_approve_live_actions",
              "route_can_approve_marketplace_publication",
              "route_can_approve_options_execution",
              "route_can_approve_public_claims",
              "route_can_collect_credentials",
              "route_can_create_live_read_route",
              "route_can_dispatch_provider",
              "route_can_enable_options_execution",
              "route_can_execute",
              "route_can_run_external_probes",
              "route_can_run_probe",
              "settle",
              "spend",
              "wallet_mutation",
              "wallet_mutation_enabled",
              "x402_readiness_mutation",
              "x402_readiness_mutation_enabled",
              "x402_settlement",
              "x402_settlement_enabled"
            ]
          }
        }
      }
    },
    "live_authority_true_flags": {
      "type": "object",
      "anyOf": [
        { "required": ["live_read_route_enabled"], "properties": { "live_read_route_enabled": { "const": true } } },
        { "required": ["live_read_route_created"], "properties": { "live_read_route_created": { "const": true } } },
        { "required": ["route_can_create_live_read_route"], "properties": { "route_can_create_live_read_route": { "const": true } } },
        { "required": ["live_order_placement_enabled"], "properties": { "live_order_placement_enabled": { "const": true } } },
        { "required": ["order_cancellation_enabled"], "properties": { "order_cancellation_enabled": { "const": true } } },
        { "required": ["card_detail_fetch_enabled"], "properties": { "card_detail_fetch_enabled": { "const": true } } },
        { "required": ["purchases_enabled"], "properties": { "purchases_enabled": { "const": true } } },
        { "required": ["options_execution_enabled"], "properties": { "options_execution_enabled": { "const": true } } },
        { "required": ["provider_dispatch_enabled"], "properties": { "provider_dispatch_enabled": { "const": true } } },
        { "required": ["wallet_mutation_enabled"], "properties": { "wallet_mutation_enabled": { "const": true } } },
        { "required": ["x402_settlement_enabled"], "properties": { "x402_settlement_enabled": { "const": true } } },
        { "required": ["public_execute_enabled"], "properties": { "public_execute_enabled": { "const": true } } },
        { "required": ["global_execute_mutation_enabled"], "properties": { "global_execute_mutation_enabled": { "const": true } } },
        { "required": ["global_invoke_mutation_enabled"], "properties": { "global_invoke_mutation_enabled": { "const": true } } },
        { "required": ["marketplace_publication_enabled"], "properties": { "marketplace_publication_enabled": { "const": true } } },
        { "required": ["capability_publication_enabled"], "properties": { "capability_publication_enabled": { "const": true } } },
        { "required": ["route_can_execute"], "properties": { "route_can_execute": { "const": true } } },
        { "required": ["route_can_dispatch_provider"], "properties": { "route_can_dispatch_provider": { "const": true } } },
        { "required": ["route_can_enable_options_execution"], "properties": { "route_can_enable_options_execution": { "const": true } } },
        { "required": ["route_can_approve_options_execution"], "properties": { "route_can_approve_options_execution": { "const": true } } }
      ]
    }
  }
}
