feat(FN-4360): complete Step 6 — document reliability metrics surface

Fusion-Task-Id: FN-4360
Fusion-Task-Lineage: 50e17cef-29b0-4adc-aa1c-bffdebe4b43c
This commit is contained in:
Fusion
2026-05-13 22:22:19 -07:00
committed by gsxdsm
parent 3418fbab1d
commit 7dc0276576
4 changed files with 16 additions and 6 deletions

View File

@@ -965,10 +965,13 @@ The run-audit system records every mutation performed by the engine across three
Events are tied to specific run IDs for end-to-end traceability.
**Run audit endpoint:**
**Run audit endpoints:**
- `GET /api/agents/:id/runs/:runId/audit` — Returns audit trail for a specific agent run
- Query params: `?domain=database|git|filesystem` for filtering
- Requires agent ownership or admin access
- `GET /api/health/reliability` — Aggregates rolling reliability metrics from run-audit and task activity signals.
- Query params: `?windowDays=<1..30>` (default `7`)
- Response shape: `{ windowDays, generatedAt, headline, perDay, duration, mergeAttempts }` where missing instrumentation/samples surface as `null` with a `reason` field.
---