Build a /epistemic dashboard showing the overall epistemic health of SciDEX —
falsifiability coverage, evidence provenance coverage, trust score distribution,
dependency graph health, audit completeness, and evidence freshness. Add Senate
auto-proposals that flag hypotheses missing predictions, stale evidence, or
broken provenance chains.
/senate/epistemic-health page exists showing tier distribution, replicationepistemic_tiers.py)
epistemic_tiers.py provides get_epistemic_health() (tier dist, repl status)hypothesis_predictions table exists (988 rows) with falsification criteriahypothesis_falsifications table exists with falsification scoresevidence_chains table exists for provenance trackingconfidence_justifications table exists for audit trailsenate_proposals table exists with CHECK constraint:proposal_type IN ('schema_change', 'governance_rule', 'quality_gate')
epistemic_snapshots table for historical tracking/epistemic page with 6 health metrics (falsifiability, provenance, trust,GET /api/epistemic/health returns all 6 metrics as JSONepistemic_snapshots tableepistemic_snapshots table via migration (id, falsifiability_pct,scidex/senate/epistemic_health.py module:compute_all_metrics(db) → dict with all 6 metrics + drill-down listssnapshot_health(db) → store weekly snapshot in epistemic_snapshotsgenerate_improvement_proposals(db) → create Senate proposals for gapscheck_and_propose() → called periodically, creates proposals when metrics drop
GET /api/epistemic/health endpoint returning all 6 metrics JSON/senate/epistemic-health page with 6-metric grid, trend sparklines/api/epistemic/missing-predictions,/api/epistemic/stale-evidence, /api/epistemic/low-trust-edgesscidex.senate.epistemic_tiers (already implemented)hypothesis_predictions table (already exists)hypothesis_falsifications table (already exists)evidence_chains table (already exists)confidence_justifications table (already exists)senate_proposals table (already exists)quality_gate (already in CHECK constraint)check_and_propose() weeklyepistemic_health.py in origin/main has 3 bugs that cause SQLite OperationalError:evidence_entries.claim → should be claim_text (column doesn't exist)FROM experiments → table doesn't exist (correct table is experiment_results)evidence_entries.updated_at → column doesn't exist (only created_at)
PostgreSQL schemae.claim → e.claim_text, experiments → experiment_results, updated_at → created_atcompute_all_metrics() now runs without error, returns correct metricsepistemic_snapshots table exists with 1 row (created 2026-04-16)api_routes/epistemic.py exists with all 9 epistemic API routes registeredsenate_proposals table has 217 quality_gate rows including auto-generated proposal2f6c22570 — "[SciDEX] Fix epistemic_health.py: column name and table schema bugs"orchestra/task/4bb367b9-epistemic-health-dashboard-and-continuouepistemic_health.py backward-compat shim at repo rootorigin/orchestra/task/4bb367b9-epistemic-health-dashboard-and-continuou{
"requirements": {
"coding": 7,
"reasoning": 6
},
"_reset_note": "This task was reset after a database incident on 2026-04-17.\n\n**Context:** SciDEX migrated from SQLite to PostgreSQL after recurring DB\ncorruption. Some work done during Apr 16-17 may have been lost.\n\n**Before starting work:**\n1. Check if the task's goal is ALREADY satisfied (run the relevant checks)\n2. Check `git log --all --grep=task:YOUR_TASK_ID` for prior commits\n3. If complete, verify and mark done. If partial, continue. If not done, proceed.\n\n**DB change:** SciDEX now uses PostgreSQL. `get_db()` auto-detects via\nSCIDEX_DB_BACKEND=postgres env var.",
"_reset_at": "2026-04-18T06:29:22.046013+00:00",
"_reset_from_status": "done"
}