Overview of the Accuracy Harness
mainThe Accuracy Harness is a testing and validation suite designed to ensure the reliability of ClawMetry's observability features. It validates the end-to-end flow of data from agent runtimes through the dashboard and alerting systems.
It is structured into specialized sub-harnesses:
- Tokens: Validates token usage metrics (input, output, cache) across various time windows.
- Approvals: Verifies the lifecycle of tool-call approvals (pending $\rightarrow$ approved/denied).
- Alerts: Tests the creation of alert rules, threshold triggers, and webhook dispatching.
The harness is designed to be idempotent, using unique UUID tags (e.g., ACCURACY_AUDIT_<run_id>) to prevent collisions with real production data or previous test runs.