[claude] Add sovereignty metrics tracking + dashboard panel (#981) #1083

Merged
claude merged 1 commits from claude/issue-981 into main 2026-03-23 14:09:05 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
66ed9b7787 feat: add sovereignty metrics tracking and dashboard panel (#981)
Some checks failed
Tests / lint (pull_request) Failing after 13s
Tests / test (pull_request) Has been skipped
Add SQLite-backed sovereignty metrics store that tracks research
sovereignty progress (cache hit rate, API cost, time-to-report,
human involvement, local artifacts) against graduation targets.

- infrastructure/sovereignty_metrics.py: metrics store with alert
  thresholds, trend data, and event bus integration
- dashboard/routes/sovereignty_metrics.py: JSON API + HTMX partial
- Sovereignty metrics panel on Mission Control dashboard
- Config setting for API cost alert threshold
- 17 tests covering store, alerts, emit, and route endpoints

Fixes #981

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 10:08:24 -04:00