{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agoragentic.com/schema/finance-agent-stop-control-drill.v1.json",
  "title": "Finance Agent Stop Control Drill V1",
  "description": "Redacted stop/disconnect control drill evidence for Version C finance-agent readiness. This drill proves that owner-controlled disablement, policy caps, and public-text/metadata override blocks have been reviewed before any future approved-action plan is considered. It records refs/hashes only and does not run Robinhood MCP probes, dispatch providers, place or cancel orders, fetch card details, make purchases, enable options execution, mutate wallet/x402 state, call execute/invoke, publish marketplace listings, or publish capabilities.",
  "type": "object",
  "required": [
    "schema",
    "schema_ref",
    "deployment_id",
    "owner_id",
    "drill_state",
    "read_only",
    "no_live_action_assertion",
    "stop_controls",
    "drill_results",
    "required_false_authority",
    "evidence_refs",
    "redaction_summary"
  ],
  "properties": {
    "schema": {
      "type": "string",
      "const": "agoragentic.agent-os.finance-agent-stop-control-drill.v1"
    },
    "schema_ref": {
      "type": "string",
      "const": "/schema/finance-agent-stop-control-drill.v1.json"
    },
    "deployment_id": { "type": "string", "minLength": 1 },
    "owner_id": { "type": "string", "minLength": 1 },
    "drill_state": {
      "type": "string",
      "enum": [
        "draft",
        "blocked_missing_connector_policy",
        "ready_for_owner_review",
        "submitted_redacted_refs_only",
        "failed"
      ]
    },
    "read_only": { "type": "boolean", "const": true },
    "no_live_action_assertion": { "type": "boolean", "const": true },
    "stop_controls": {
      "type": "object",
      "required": [
        "owner_can_disable_connector_policy",
        "disabled_connector_blocks_dispatch",
        "no_live_connector_route_exists_in_v1",
        "public_text_cannot_override_policy",
        "metadata_cannot_override_policy",
        "provider_dispatch_enabled",
        "public_execute_enabled",
        "options_execution_enabled"
      ],
      "properties": {
        "owner_can_disable_connector_policy": { "type": "boolean", "const": true },
        "disabled_connector_blocks_dispatch": { "type": "boolean", "const": true },
        "no_live_connector_route_exists_in_v1": { "type": "boolean", "const": true },
        "public_text_cannot_override_policy": { "type": "boolean", "const": true },
        "metadata_cannot_override_policy": { "type": "boolean", "const": true },
        "provider_dispatch_enabled": { "type": "boolean", "const": false },
        "public_execute_enabled": { "type": "boolean", "const": false },
        "options_execution_enabled": { "type": "boolean", "const": false }
      },
      "additionalProperties": true
    },
    "drill_results": {
      "type": "object",
      "required": [
        "connector_policy_disable_tested",
        "new_dispatch_blocked_after_disable",
        "order_placement_blocked_after_disable",
        "order_cancellation_blocked_after_disable",
        "card_detail_fetch_blocked_after_disable",
        "card_purchase_blocked_after_disable",
        "options_execution_blocked_after_disable",
        "wallet_x402_blocked_after_disable",
        "execute_invoke_blocked_after_disable",
        "marketplace_capability_publication_blocked_after_disable",
        "drill_used_fixture_or_redacted_refs_only"
      ],
      "properties": {
        "connector_policy_disable_tested": { "type": "boolean", "const": true },
        "new_dispatch_blocked_after_disable": { "type": "boolean", "const": true },
        "order_placement_blocked_after_disable": { "type": "boolean", "const": true },
        "order_cancellation_blocked_after_disable": { "type": "boolean", "const": true },
        "card_detail_fetch_blocked_after_disable": { "type": "boolean", "const": true },
        "card_purchase_blocked_after_disable": { "type": "boolean", "const": true },
        "options_execution_blocked_after_disable": { "type": "boolean", "const": true },
        "wallet_x402_blocked_after_disable": { "type": "boolean", "const": true },
        "execute_invoke_blocked_after_disable": { "type": "boolean", "const": true },
        "marketplace_capability_publication_blocked_after_disable": { "type": "boolean", "const": true },
        "drill_used_fixture_or_redacted_refs_only": { "type": "boolean", "const": true }
      },
      "additionalProperties": true
    },
    "required_false_authority": {
      "type": "object",
      "required": [
        "robinhood_provider_dispatch",
        "external_provider_call",
        "live_order_execution",
        "order_cancellation",
        "card_detail_fetch",
        "card_purchase",
        "options_execution",
        "options_order_schema",
        "wallet_mutation",
        "x402_settlement",
        "public_execute_mutation",
        "global_execute_mutation",
        "global_invoke_mutation",
        "marketplace_publication",
        "capability_publication",
        "stop_control_drill_grants_live_authority"
      ],
      "properties": {
        "robinhood_provider_dispatch": { "type": "boolean", "const": false },
        "external_provider_call": { "type": "boolean", "const": false },
        "live_order_execution": { "type": "boolean", "const": false },
        "order_cancellation": { "type": "boolean", "const": false },
        "card_detail_fetch": { "type": "boolean", "const": false },
        "card_purchase": { "type": "boolean", "const": false },
        "options_execution": { "type": "boolean", "const": false },
        "options_order_schema": { "type": "boolean", "const": false },
        "wallet_mutation": { "type": "boolean", "const": false },
        "x402_settlement": { "type": "boolean", "const": false },
        "public_execute_mutation": { "type": "boolean", "const": false },
        "global_execute_mutation": { "type": "boolean", "const": false },
        "global_invoke_mutation": { "type": "boolean", "const": false },
        "marketplace_publication": { "type": "boolean", "const": false },
        "capability_publication": { "type": "boolean", "const": false },
        "stop_control_drill_grants_live_authority": { "type": "boolean", "const": false }
      },
      "additionalProperties": false
    },
    "evidence_refs": {
      "type": "object",
      "required": [
        "policy_before_ref",
        "policy_before_hash",
        "policy_after_ref",
        "policy_after_hash",
        "readiness_requirements_ref",
        "readiness_requirements_hash",
        "stop_control_summary_ref",
        "stop_control_summary_hash",
        "audit_ref",
        "audit_hash"
      ],
      "properties": {
        "policy_before_ref": { "$ref": "#/$defs/bounded_ref" },
        "policy_before_hash": { "$ref": "#/$defs/bounded_ref" },
        "policy_after_ref": { "$ref": "#/$defs/bounded_ref" },
        "policy_after_hash": { "$ref": "#/$defs/bounded_ref" },
        "readiness_requirements_ref": { "$ref": "#/$defs/bounded_ref" },
        "readiness_requirements_hash": { "$ref": "#/$defs/bounded_ref" },
        "stop_control_summary_ref": { "$ref": "#/$defs/bounded_ref" },
        "stop_control_summary_hash": { "$ref": "#/$defs/bounded_ref" },
        "audit_ref": { "$ref": "#/$defs/bounded_ref" },
        "audit_hash": { "$ref": "#/$defs/bounded_ref" }
      },
      "not": {
        "anyOf": [
          { "required": ["raw_schema"] },
          { "required": ["raw_payload"] },
          { "required": ["raw_approval"] },
          { "required": ["raw_review"] },
          { "required": ["account_values"] },
          { "required": ["card_values"] },
          { "required": ["order_values"] },
          { "required": ["payment_values"] },
          { "required": ["wallet_values"] },
          { "required": ["auth_token"] },
          { "required": ["access_token"] },
          { "required": ["refresh_token"] }
        ]
      },
      "additionalProperties": true
    },
    "record_routes": {
      "type": "object",
      "properties": {
        "policy": {
          "type": "string",
          "const": "/api/agent-os/finance/deployments/{deployment_id}/policy"
        },
        "readiness_requirements": {
          "type": "string",
          "const": "/api/agent-os/finance/deployments/{deployment_id}/readiness-requirements"
        }
      },
      "additionalProperties": true
    },
    "redaction_summary": {
      "type": "object",
      "required": [
        "raw_schema_excluded",
        "raw_private_values_excluded",
        "raw_account_values_excluded",
        "raw_card_values_excluded",
        "raw_order_values_excluded",
        "raw_payment_values_excluded",
        "raw_wallet_values_excluded",
        "provider_credentials_excluded",
        "private_ecf_excluded",
        "secrets_excluded"
      ],
      "properties": {
        "raw_schema_excluded": { "type": "boolean", "const": true },
        "raw_private_values_excluded": { "type": "boolean", "const": true },
        "raw_account_values_excluded": { "type": "boolean", "const": true },
        "raw_card_values_excluded": { "type": "boolean", "const": true },
        "raw_order_values_excluded": { "type": "boolean", "const": true },
        "raw_payment_values_excluded": { "type": "boolean", "const": true },
        "raw_wallet_values_excluded": { "type": "boolean", "const": true },
        "provider_credentials_excluded": { "type": "boolean", "const": true },
        "private_ecf_excluded": { "type": "boolean", "const": true },
        "secrets_excluded": { "type": "boolean", "const": true }
      },
      "additionalProperties": true
    }
  },
  "not": {
    "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": ["payment_values"] },
      { "required": ["wallet_values"] },
      { "required": ["auth_token"] },
      { "required": ["access_token"] },
      { "required": ["refresh_token"] },
      { "required": ["private_key"] }
    ]
  },
  "additionalProperties": true,
  "$defs": {
    "bounded_ref": {
      "anyOf": [
        { "type": "null" },
        { "$ref": "#/$defs/redacted_ref" }
      ]
    },
    "redacted_ref": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256,
      "not": {
        "anyOf": [
          { "pattern": "^[a-z][a-z0-9+.-]*://" },
          { "pattern": "^data:" },
          { "pattern": "^[\\[{]" },
          { "pattern": "[\\r\\n]" },
          { "pattern": "([Bb][Ee][Aa][Rr][Ee][Rr]|[Bb][Aa][Ss][Ii][Cc])\\s+[A-Za-z0-9._~+/=-]{8,}" },
          { "pattern": "\\b([Aa][Cc][Cc][Ee][Ss][Ss]|[Rr][Ee][Ff][Rr][Ee][Ss][Hh]|[Aa][Uu][Tt][Hh]|[Oo][Aa][Uu][Tt][Hh])[_-]?[Tt][Oo][Kk][Ee][Nn]\\b" },
          { "pattern": "\\b([Aa][Pp][Ii][_-]?[Kk][Ee][Yy]|[Ss][Ee][Cc][Rr][Ee][Tt]|[Cc][Rr][Ee][Dd][Ee][Nn][Tt][Ii][Aa][Ll]|[Pp][Aa][Ss][Ss][Ww][Oo][Rr][Dd]|[Mm][Ff][Aa]|[Oo][Tt][Pp]|[Cc][Vv][Vv]|[Cc][Vv][Cc]|[Pp][Aa][Nn]|[Ss][Ss][Nn])\\b" },
          { "pattern": "\\b([Aa][Cc][Cc][Oo][Uu][Nn][Tt]|[Cc][Aa][Rr][Dd]|[Pp][Aa][Yy][Mm][Ee][Nn][Tt]|[Ww][Aa][Ll][Ll][Ee][Tt]|[Rr][Oo][Uu][Tt][Ii][Nn][Gg])[_-]?([Nn][Uu][Mm][Bb][Ee][Rr]|[Pp][Aa][Yy][Ll][Oo][Aa][Dd]|[Rr][Aa][Ww]|[Vv][Aa][Ll][Uu][Ee]|[Vv][Aa][Ll][Uu][Ee][Ss])\\b" },
          { "pattern": "[?&]([Tt][Oo][Kk][Ee][Nn]|[Aa][Cc][Cc][Ee][Ss][Ss]_[Tt][Oo][Kk][Ee][Nn]|[Rr][Ee][Ff][Rr][Ee][Ss][Hh]_[Tt][Oo][Kk][Ee][Nn]|[Aa][Pp][Ii]_[Kk][Ee][Yy]|[Kk][Ee][Yy]|[Ss][Ee][Cc][Rr][Ee][Tt]|[Aa][Cc][Cc][Oo][Uu][Nn][Tt]|[Cc][Aa][Rr][Dd]|[Pp][Aa][Yy][Mm][Ee][Nn][Tt]|[Ww][Aa][Ll][Ll][Ee][Tt]|[Aa][Uu][Tt][Hh][Oo][Rr][Ii][Zz][Aa][Tt][Ii][Oo][Nn])=" },
          { "pattern": "\\b([Ss][Kk]|[Pp][Kk]|[Aa][Mm][Kk]|[Xx][Oo][Xx][BbAaPpRrSs]|[Gg][Hh][PpOoUuSsRr])_[A-Za-z0-9_=-]{8,}\\b" }
        ]
      }
    }
  }
}
