#!/bin/bash
# Two marketplaces, one rail — verify both kits offline, with sockets disabled in-process.
cd "$(dirname "$0")"
PYTHONPATH=lib python3 - "$@" <<'PY'
import runpy, socket, sys
def _no_network(*a, **k):
    raise RuntimeError("network access attempted during offline verification")
socket.socket.connect = _no_network; socket.socket.connect_ex = _no_network
socket.create_connection = _no_network; socket.getaddrinfo = _no_network
sys.argv = ["verify_trade_kits.py", "--buyer", "kits/buyer-ariba-shaped", "--seller", "kits/seller-alibaba-shaped",
            "--pinned", "pinned_qws.json", "--member", "neofx-internal-e2e", "--neova-path", "lib", "--neoedge-path", "lib",
            "--out", "verify.json"] + sys.argv[1:]
runpy.run_path("verify_trade_kits.py", run_name="__main__")
PY
