Repository navigation
Releases
v0.3.0: LangGraph agent and benchmark runner
Third milestone (M3): the agent under test and the runner. The whole pipeline is now in place; only real model runs on real data are missing.
What's in it
- LangGraph agent over the MCP server's tools:
- every call goes through the MCP client, so the server's validation and audit log apply, and each call is traced;
- a read-only policy prompt and a required structured final answer;
- robust to model quirks: missing or repeated tool-call ids, parallel calls, thinking blocks, nested JSON;
- tool failures become errors returned to the model;
- agent latency is reported apart from session setup.
fab-runruns the agent over a question set against the fixture or HAPI FHIR, with any OpenAI-compatible model (vLLM, MLX-LM) or the gold-replay stub.- Resumable, with a full settings check: question ids, model, endpoint, prompt hash, version, hardware.
- Failed questions are recorded and the run continues.
- CI smoke run: the gold-replay stub scores 1/1/1/1 on all 41 fixture questions through agent → MCP server → store → metrics.
Merged
- #15 feat(agent): LangGraph agent over the MCP tools (closes #5)
- #16 feat(runner): resumable benchmark runner (closes #6)
Results
No model results yet. 160 tests pass.
Next
M4: HAPI FHIR loaded with Synthea patients (#7, on the Mac mini) and the model comparison (#8).
v0.2.0: benchmark question set and metrics
Second milestone (M2): what the agent is tested on and how it is scored.
What's in it
-
Question generator (
fab-questions) works from any FHIR store. Gold tool calls are executed against the data, and gold answers are derived from their results by code, so they're exact.- It's careful with Synthea data: a patient is used only if their name search is unique, ingredient names skip dose tokens, SNOMED tags are stripped, and "since" questions really filter.
-
Fixture set: 41 questions (21 lookup, 9 filtered, 3 multi-step, 8 out-of-scope refusals = 19.5%). Every gold call is a valid call on the MCP server.
-
Metrics:
- tool selection;
- argument accuracy, with gold calls matched one-to-one;
- answer correctness on a required structured final answer: exact ordered lists, one-to-one sets, explicit none, refusal only with no data calls;
- refusal correctness;
- format failures, calls, steps, latency.
The scoring is designed so it can't be gamed by listing values, hedging or refusing everything.
Merged
- #13 feat(questions): benchmark questions with exact gold tool calls and answers (closes #3)
- #14 feat(metrics): score tool selection, arguments, answers and refusals (closes #4)
Results
No model results yet. 89 tests pass.
Next
M3: the LangGraph agent with a stub model (#5) and the benchmark runner (#6).
v0.1.0: FHIR layer and read-only MCP server
First milestone (M1): a read-only MCP server over FHIR records of synthetic patients.
What's in it
- Synthetic FHIR R4 fixture: three invented patients with HbA1c, LDL, TSH and blood-pressure series (including a panel with components and timestamps with offsets), medications (including a
medicationReference), conditions and allergies. No real patient data. - FHIR access layer: one interface, two backends returning identical records:
- in-memory, from a Bundle;
- HAPI FHIR R4 over REST search with paging.
- MCP server (official Python SDK 2.x), with six read-only tools:
search_patients,get_patient,get_observations,get_medications,get_conditions,get_allergies.- Strict input validation.
- Every call is recorded in a JSONL audit log at the server layer, including calls the SDK rejects. The log is fail-closed.
Merged
- #11 feat(store): synthetic FHIR fixture and a read-only access layer (closes #1)
- #12 feat(server): read-only MCP server with validation and an audit log (closes #2)
Results
No benchmark numbers yet. 42 tests pass, with no network, FHIR server or model needed.
Next
M2: the benchmark question set with exact gold tool calls and answers (#3), and the metrics (#4).