from __future__ import annotations

from backplane_runtime.benchmark import run_benchmark_sync


def test_control_plane_benchmark_emits_hashed_pass_receipt():
    report = run_benchmark_sync(requests_per_tenant=3, concurrency=4)
    assert report["status"] == "PASS"
    assert report["requests"] == 9
    assert report["isolation_failures"] == 0
    assert report["throughput_rps"] > 0
    assert len(report["sha256"]) == 64
    assert "does not benchmark neural inference quality" in report["scope"]

