SMMCHECK

Does this panel actually implement the API?

Every panel speaks the same eight-action API and nobody published it, so every integration guesses. Three of these rows can be proven in the next ten seconds, read-only: no order placed, no balance spent.

Conformance board

api · v1 / v2

--:--:--

read-only

The eight API actions, their probe status and latency, and what each returns
Action Status Latency Returns
ready — array of services
ready — balance, currency
ready — status, charge, remains
not probed — order id
v2 only — order history
v2 only — count cancelled
v2 only — refill id
v2 only — refill state

Three probes are read-only; add, cancel and refill write, so the checker never calls them. The numbers this board shows come from report.json — a captured run against the bundled mock server.

python3 conformance/smmcheck.py --base https://panel.example --key $SMM_KEY

Three conventions break every integration

  1. Business errors are HTTP 200

    {"error": "Incorrect order ID"} is a successful HTTP response. A client that treats 200 as success records orders that were never placed.

  2. Money is a string, except when it is not

    "1.02" and 1.02 appear in the same field across versions and panels. Parse to a decimal, never to a float.

  3. add is not delivery

    A success response means the order was accepted and the balance debited. Delivery is asynchronous, so poll status and expect remains to count down.

Run it

One panel

python3 conformance/smmcheck.py \
  --base https://panel.example \
  --key $SMM_KEY

Exit code 0 only when every probe passes, so it drops into CI unchanged. --json gives the same report machine-readable.

Several panels

python3 conformance/smmcheck.py --batch panels.csv

panel    result         pass  latency
panel-a  compliant       3/3     24ms
panel-b  NOT compliant   1/3      1ms

The file is name,base,key per line — the choosing-a-provider case, and the only mode that compares panels side by side.

In CI

- uses: RelayStack/smm-panel-spec@main
  with:
    base_url: ${{ secrets.PANEL_URL }}
    api_key: ${{ secrets.PANEL_KEY }}

A composite action, read-only, so a nightly run cannot cost anything beyond the requests themselves.

What it does not do

It does not judge delivery quality, price, or whether a panel honours its own refill promise. It checks the format, because the format is what breaks integrations at 2am. Panels diverge inside the spec too — if yours does, that divergence is the most useful thing you can send back.