ARF API Control Plane (FastAPI)
Quick start
-
Install dependencies:
pip install -r requirements.txt
Note:
requirements.txtinstallsagentic-reliability-frameworkdirectly from the project's Git repository. -
Set any needed environment variables in a
.envfile (the app uses pydantic-settings and will read.env):- ARF_HMC_MODEL (path to HMC model JSON; default:
models/hmc_model.json) - ARF_USE_HYPERPRIORS (true/false)
- API_KEY (optional — currently not enforced by routes)
- ARF_HMC_MODEL (path to HMC model JSON; default:
-
Run the app locally:
uvicorn app.main:app --reload --port 8000
-
Health check:
Tests
- Run
pytest. Tests use a temporary SQLite DB (sqlite:///./test.db) created by the test fixtures.
Notes
- The governance endpoints use an in-process RiskEngine initialized at startup. The outcome recording endpoint is not implemented in this repository and returns HTTP 501.