Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

RelayTruth flagged a simulated relay model swap that the upstream check scored LOW

RelayTruth runs AI-Infra-Guard's relay check on a schedule, compares each relay with a baseline and plans drift issues. In a keyless demo, a simulated model swap raised six drift kinds.

By David Discua

Measured in the lab

6
drift kinds on the swap
0 / 100
fingerprint match after swap
30
upstream risk score after swap
9
requests per relay per run
  • Honest mock relay: match 100 in both rounds, no drift
  • Swap mock relay, round 2: match 0, 411 ms median, 110.7 tokens per request
  • Relay without a key printed a skipped line instead of failing
  • Issue plan and BigQuery rows written as dry-run only
  • No real relay was checked in this lab

From reports/report.json · run on October 21, 2026. Keyless demo against mock relays on 127.0.0.1 with simulated models; AI-Infra-Guard v4.6.5 relay_audit.py vendored byte-identical; two rounds

How it is wired

scheduleprobesprobesappenddriftNightly cronreusable workflowRelayTruthrelaytruth runRelayclaims a modelDirect baselineor a recorded fileruns.jsonldrift rulesGitHub issuedry-run by default

01/03A nightly workflow runs RelayTruth over the relays you list.

Tencent's AI-Infra-Guard ships an api-checker relay check that probes an OpenAI-compatible relay for signs it serves a different model than it claims. RelayTruth runs that check on a schedule, compares each relay's fingerprint with a direct-provider baseline, keeps a JSONL history, and plans one GitHub issue per drifting relay. In a keyless demo, a mock relay switched to a cheaper simulated model in round 2, and RelayTruth raised six drift kinds while the upstream check on its own scored that relay LOW (30). Every number here comes from simulated models on 127.0.0.1.

The catch

No real relay was checked, and the live baseline path was not run in this lab. The demo starts a simulated direct provider, an honest pass-through relay, and a swap relay that in round 2 routes to a cheaper simulated model and rewrites the response model field back to the requested name. By design the swap also adds 400 ms per request and reports 3x the token usage, so the latency and price rules have something to catch. A real relay that swaps models may show neither.

Every signal is black-box and probabilistic. Identity answers can be prompted away, glitch-token signatures depend on the model version, and the knowledge cutoff answer is self-reported. Treat a drift issue as a reason to ask the operator. A baseline also fingerprints a relay only when you have direct access to the model it claims, and price_anomaly trusts the token usage the relay reports.

What we ran (keyless)

uv sync --frozen
uv run relaytruth demo
bash scripts/check.sh
uv run python scripts/report.py

From reports/report.json, run on October 21, 2026:

RoundRelay (mock)Upstream verdict (risk)Match vs baselineMedian latency msTokens / requestDrift kinds
1honest-relayLOW (0)100136.90
1swap-relayLOW (0)100136.70
2honest-relayLOW (0)100136.70
2swap-relayLOW (30)0411110.76

In round 2 the swap relay hit baseline_mismatch, model_identity_changed, fingerprint_score_dropped, risk_score_rose, latency_anomaly and price_anomaly. A third relay with no key printed a skipped: line in both rounds instead of failing the run. Each relay took 9 requests per run, and both rounds finished in 3.88 s. The issue plan and the BigQuery rows were written as dry-run files, and nothing was sent.

The upstream score stayed at LOW because its identity and glitch findings count 15 points each. The baseline comparison and the run-to-run history are what turned the swap into an alert.

How it is wired

Each run calls the vendored run_relay_audit from AI-Infra-Guard v4.6.5, byte-identical and sha256-checked, plus two fixed answer probes at temperature 0 for identity and cutoff. The fingerprint match is a 0 to 100 score: identity family 30 points, glitch fingerprint 30, answer identity 20 and answer cutoff 20. Results append to history/runs.jsonl, and the drift rules compare each run with the baseline and the last ok run. A reusable GitHub workflow runs it nightly, and issue and BigQuery writes stay dry-run unless you pass --write-issues or --bq-write.

Minilab (open source)

Upstream is Tencent/AI-Infra-Guard (7,070 stars, Apache-2.0, Python, as of October 24, 2026), pinned at v4.6.5 although v4.6.6 is out. To try it on relays you own or may test, copy relays.example.toml to relays.toml, run uv run relaytruth doctor --config relays.toml, then uv run relaytruth run --config relays.toml.

Run it yourself

SkilledDragonCorp/relaytruth-monitor

Clone, install and run the report with no API keys. The numbers above are what that run writes.

uv sync --frozen && uv run relaytruth demo

SkilledDragon is not affiliated with Tencent, Zhuque Lab, Google, Anthropic, GitHub or any relay provider. Every number in this post comes from simulated models in a keyless demo and describes no real relay or model; re-run the report before relying on it. Marks belong to their owners.

All labs