/evals Benchmark & OpenTelemetry W3C MCP Tracing

Verified 210-Case /evals Scorecard & Live MCP Telemetry

Public, reproducible evaluation results across SlainteEngine's deterministic pharmacology, triage, HIPE revenue coding, BOLA/SSRF perimeter isolation, and FHIR R4 conformance layers, paired with W3C TraceContext waterfalls over Slainte-Scan-MCP (:8081).

Overall Eval Accuracy

100.0%

210 / 210 deterministic & adversarial cases passed
Guardrail Catch Rate

100.0%

0 missed traps across DDI, SSRF, FHIR & triage gates
Uncited Claim Rejection

100.0%

16 / 16 fabricated coding claims blocked (0.0% FP)
Deterministic Latency

0.028 ms

Mean per rule | P95: 0.073 ms | P99: 0.113 ms
Reproducible Test Suite: evals/benchmark_runner.py

210-Case Evaluation Matrix Across 5 Core Pillars

Every metric below comes from running SlainteEngine's deterministic benchmark runner against live FastMCP tools (`MCP_TOOL_REGISTRY`) with per-case high-resolution percentile timers.

Benchmark v1.0.0 | Slainte-Scan-MCP endpoint: http://127.0.0.1:8081/sse (8 SSE tools discovered + 4 in-process safety/coding extensions) | Total run time: 24.19 ms.
Agent & SuiteClinical / Security ScopePass / TotalGuardrail CatchFalse PositivesP50 / P95 / P99
SlainteRx-Guardrx_guard

3-Tier Allergy Cross-Reactivity, ISMP High-Alert DDI & Renal eGFR/K+ Prescribing Gate

30 / 30 lethal/major traps blocked
50 / 50
100.0%
100.0%
0.0% (0 / 20 safe)0.028 / 0.061 / 0.112 ms
SlainteDx-Triagedx_triage

Manchester Triage System (Cat 1 to 5) & RCP NEWS2 Acute Deterioration Scoring

23 / 23 critical emergencies flagged
50 / 50
100.0%
100.0%
0.0% (0 / 27 stable)0.017 / 0.030 / 0.053 ms
SlainteRev-Codingrev_coding

HIPE ICD-10-AM Comorbidity Audit & Uncited Hallucination Citation Guardrail

16 / 16 uncited or hallucinated claims rejected
40 / 40
100.0%
100.0%
0.0% (0 / 8 clean)0.022 / 0.073 / 0.093 ms
SlainteShield-BOLAbola_shield

RFC 1918 & Loopback Egress Guardrail, SSRF Metadata Blocking & Compartment Pruning

20 / 20 SSRF & external egress URLs blocked
40 / 40
100.0%
100.0%
0.0% (0 / 12 internal)0.029 / 0.057 / 0.113 ms
SlainteShield-FHIRfhir_shield

HL7 FHIR R4 Bundle & Resource Conformance (Irish GMS OID & LOINC/SNOMED)

15 / 15 malformed payloads rejected
30 / 30
100.0%
100.0%
0.0% (0 / 15 valid)0.014 / 0.031 / 0.035 ms
W3C TraceContext + FastMCP (:8081/sse) Tool-Calling

Multi-Step MCP Tool Execution & Guardrail Interception Waterfalls

Both flagship agents route validation, terminology dual-coding, and perimeter checks through SlainteMcpBridge (`agents/mcp_tracer.py`), emitting W3C `traceparent` spans while enforcing intentional adversarial canary interceptions on every audit sweep.

Agent 01
W3C traceparent

SlainteShield-BOLA: Perimeter & SSRF Guardrail Trace

Confirms loopback/RFC 1918 bounds, executes a live SSRF canary against 169.254.169.254 to verify hard egress blocking, prunes unused FHIR capabilities by 82.5%, runs 5 HTTP differential oracle probes (`VEC-01` to `VEC-05`), and validates a FHIR Patient canary against `Slainte-Scan-MCP` over live SSE (`:8081/sse`).

Span OperationTransportVerdict
mcp.guardrail/verify_rfc1918_targetVerify local target resolves strictly within loopback or RFC 1918 private subnetfastmcp-inproc (slainte-scan-mcp)
PASS
guardrail.canary/ssrf_metadata_egressBlock cloud metadata SSRF probe to 169.254.169.254/latest/meta-data/fastmcp-inproc (slainte-scan-mcp)
BLOCKED
mcp.surface/prune_fhir_compartmentsPrune non-patient resources from FHIR CapabilityStatement (82.5% reduction)fastmcp-inproc (slainte-scan-mcp)
PASS
http.probe/VEC-01..VEC-05Verify anonymous/fuzzed BOLA & Break-the-Glass routes block with HTTP 302/400/401in-agent-runtime
PASS
mcp.fhir/validate_canary_patientValidate Irish GMS Patient FHIR R4 compartment resource over live SSE JSON-RPCsse://127.0.0.1:8081/sse
PASS
Live SlainteDash capture of SlainteShield-BOLA showing BOLA differential oracle results and the OpenTelemetry MCP (:8081) trace waterfall
Agent 11
Zero-Hallucination Guard

SlainteRev-Coding: Grounded Citation & Dual-Coding Trace

Audits objective LOINC labs against active Conditions, dual-codes detected ICD-10-AM / SNOMED-CT gaps via live SSE (`resolve_terminology`), checks every proposed citation against the patient Observation bundle (`verify_coding_evidence_citation`), traps a synthetic hallucinated diagnosis claim (`GUARDRAIL_BLOCKED`), and validates the Condition schema via `:8081/sse`.

Span OperationTransportVerdict
mcp.coding/audit_hipe_comorbiditiesCross-check LOINC Observations (eGFR, HbA1c, Troponin, Lactate, SpO2, SBP) against Conditionsfastmcp-inproc (slainte-scan-mcp)
PASS
mcp.terminology/resolve_J96.00Dual-code ICD-10-AM J96.00 & SNOMED-CT over live Slainte-Scan-MCP SSE sessionsse://127.0.0.1:8081/sse
PASS
mcp.guardrail/cite_HIPE-RESP-05Verify cited [Observation/id] exists in chart and breaches hypoxaemia clinical thresholdfastmcp-inproc (slainte-scan-mcp)
PASS
guardrail.canary/uncited_hallucination_blockBlock synthetic hallucinated claim referencing nonexistent Observation/hallucinated-llm-claim-999fastmcp-inproc (slainte-scan-mcp)
BLOCKED
mcp.fhir/validate_coded_conditionValidate dual-coded HIPE Condition resource over live Slainte-Scan-MCP (:8081/sse)sse://127.0.0.1:8081/sse
PASS
Live SlainteDash capture of SlainteRev-Coding showing grounded Observation citations and the OpenTelemetry MCP (:8081) trace waterfall
Evaluation Methodology FAQ

How We Benchmark Accuracy, Citations & MCP Tracing

Architecture details on FastMCP SSE transport, W3C TraceContext spans, and zero-hallucination citation guardrails.

Does SlainteTech actually call the Slainte-Scan-MCP (:8081) server via MCP JSON-RPC?
Yes. Slainte-Scan-MCP runs as an isolated FastMCP SSE server on 127.0.0.1:8081/sse. Agents using SlainteMcpBridge establish an SSE session (GET /sse -> endpoint event -> JSON-RPC initialize -> tools/list -> tools/call) to invoke MCP tools exposed on :8081 over the wire, while falling back transparently to the exact registered FastMCP callables in slainte-scan-mcp/src/mcp_server.py when running in air-gapped tests or prior to container image rebuilds.
Why does uncited-claim and hallucination rejection score 100.0% in SlainteRev-Coding?
Every candidate HIPE ICD-10-AM comorbidity passes through verify_coding_evidence_citation inside Slainte-Scan-MCP. The guardrail verifies both that the referenced Observation/<id> exists inside the active patient FHIR bundle and that its numeric LOINC quantity objectively meets the pathology rule threshold (e.g., Lactate >= 2.0 mmol/L, eGFR < 60, SpO2 <= 91%). Claims lacking a valid chart Observation or failing thresholds are hard-blocked with GUARDRAIL_BLOCKED.
How is W3C TraceContext OpenTelemetry tracing structured across agent executions?
Each execution generates a 128-bit W3C trace_id, 64-bit root_span_id, and formatted traceparent header (00-<trace_id>-<root_span_id>-01). Individual MCP tool calls and HTTP differential oracle steps are recorded as child spans with nanosecond timestamps, transport labels (sse://127.0.0.1:8081/sse vs fastmcp-inproc), policy names, verdict badges, and exact millisecond latencies.
Can engineering reviewers run the 210-case /evals benchmark live inside SlainteDash?
Yes. Inside slainte-engine, running evals/benchmark_runner.py executes all 210 cases across all 5 suites and persists data/audit_reports/evals_scorecard.json, while /evals (HTML) and /api/evals/scorecard (JSON) serve live results and recent OpenTelemetry waterfalls directly inside the authenticated SlainteDash console.