{"$schema":"https://json-schema.org/draft/2020-12/schema","schema_id":"broker-mcp-agent-action-receipt","schema_version":"1.0.0","status":"current","title":"Locally maintained Agent Action Receipt","description":"A client-side/broker-side record of precheck basis. Publish only this schema; the receipt itself stays with the calling system or broker.","type":"object","additionalProperties":false,"required":["receipt_type","schema_version","event_id","generated_by","checked_at","guideline","action","token_type","account_scope_verified","decision","reason_codes","broker_order_status","broker_order_reference"],"properties":{"receipt_type":{"const":"agent_action_precheck"},"schema_version":{"const":"1.0"},"event_id":{"type":"string","minLength":1},"generated_by":{"type":"string","minLength":1},"checked_at":{"type":"string","format":"date-time"},"guideline":{"type":"object","additionalProperties":false,"required":["id","version","content_sha256"],"properties":{"id":{"const":"broker_mcp_agent_safety"},"version":{"type":"string"},"content_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}}},"action":{"type":"string","enum":["general_information","account_read","general_investment_analysis","personalized_investment_advice","order_prepare","order_submit","order_modify","order_cancel","cash_withdrawal","asset_transfer","margin_operation","corporate_action","permission_change","authentication_change","agent_revoke"]},"token_type":{"type":"string","enum":["read_only","trading","transfer_enabled","administrative","unknown"]},"account_scope_verified":{"type":"boolean"},"decision":{"type":"string","enum":["allow_information_only","allow_order_preparation","requires_broker_confirmation","do_not_initiate","insufficient_data"]},"reason_codes":{"type":"array","items":{"type":"string","pattern":"^STOP_[A-Z_]+$"}},"authorization_source":{"type":["string","null"]},"token_scope_summary":{"type":["string","null"]},"account_isolation_status":{"type":"string","enum":["verified","unverified","not_applicable","unknown"]},"limit_check_status":{"type":"string","enum":["verified_by_broker","exceeded","unavailable","not_applicable","unknown"]},"independent_confirmation_required":{"type":"boolean"},"independent_confirmation_status":{"type":"string","enum":["not_applicable","pending","confirmed_by_broker","not_confirmed","unknown"]},"broker_order_status":{"type":"string","enum":["not_submitted","submitted","accepted","rejected","executed","partially_executed","cancelled","unknown"]},"broker_order_reference":{"type":["string","null"]},"privacy_assertion":{"const":"No secret, personal data, real account/portfolio details, or order parameters are included."}},"content_checksum":"sha256:7a615b159cce2070a180540c60377b9b0cc76eb5d3ed8f45109183fbf752a752"}