Senate Automated Quality Gates

← All Specs

Senate Automated Quality Gates

Task: d4d38034-58c9-4e16-927f-f76081e08a52 Layer: Senate Status: Complete

Goal

Automated quality checks that flag hypotheses with missing evidence, debates without synthesis, and analyses without KG edges. Surface results on /senate.

Implementation

The quality gates were already substantially implemented across 8 categories. This task added:

  • 9th gate: No Synthesis — Debates that have rounds but no synthesizer persona step, meaning conclusions were never drawn
  • Added to /senate summary stats bar
  • Added detailed card with flagged debate list
  • Added to /api/quality-gates JSON response
  • Added to quality_gate_results persistence

All 9 Quality Gate Categories:

  • Missing Evidence (hypotheses with no citations)
  • Low Composite Scores (<0.3)
  • Weak Debates (no transcript or low quality score)
  • Analyses without KG Edges
  • Low Evidence Validation (<0.4)
  • Failed Analyses
  • Orphaned Hypotheses (no analysis link)
  • Thin Descriptions (<100 chars)
  • NEW: No Synthesis (debates missing synthesizer round)
  • Work Log

    • 2026-04-02 14:48: Reviewed existing quality gates — 8 categories already implemented
    • 2026-04-02 14:50: Added 9th gate (no synthesis round) to /senate and /api/quality-gates
    • 2026-04-02 14:51: Verified syntax and page rendering

    File: senate_quality_gates_spec.md
    Modified: 2026-04-25 17:55
    Size: 1.3 KB