[Senate] Automated Quality Gates
Goal
Enhance the Senate's automated quality gates with actionable recommendations in both the JSON API (
/api/quality-gates) and the HTML Senate page (
/senate). Quality gates flag hypotheses with missing evidence, low scores, weak debates, analyses without KG edges, and more.
Acceptance Criteria
☑ /api/quality-gates JSON endpoint with 9 quality gates
☑ /api/quality-gates/enforce POST endpoint to verify hypotheses
☑ Quality gates surfaced on /senate with color-coded status
☑ Recommendations field added to API response
☑ Recommendations section added to Senate HTML page
Work Log
2026-04-02 — Slot 16
- Found that 9 quality gates + API + enforcement were already implemented by prior agents
- Added
recommendations array to /api/quality-gates JSON response with actionable suggestions per gate
- Added Recommended Actions card to Senate HTML page showing prioritized remediation steps
- Committed and pushed