name: live_risk_kill_switch
timeout: 10s
steps:
  - id: get_policy
    action: get_live_risk_policy
    request:
      account_id: live-acct-1
    expect:
      status: ok
  - id: get_ks_halted
    action: get_live_kill_switch
    request:
      account_id: live-acct-1
    expect:
      status: ok
  - id: submit_risk_blocked
    action: submit_live_order
    request:
      account_id: live-acct-1
      instrument_id: KRX:005930
      side: buy
      quantity: "1"
      order_type: market
      operator_confirmed: true
      operator_id: operator-1
    expect:
      status: error
      error_code: invalid_request
  - id: clear_ks
    action: set_live_kill_switch
    request:
      account_id: live-acct-1
      halted: false
      kill_switch_reason: "operator cleared for trading session"
    expect:
      status: ok
