ID: fcf2de19-e00 Priority: 90 Type: one_shot Status: open
Quest 2/16: Exchange page already has compare checkboxes (compare-cb class) but no comparison modal/panel. Add a comparison view that shows 2-3 selected hypotheses side-by-side with scores, evidence counts, and pathway diagrams.
scripts/run_debate_llm.py exists (16503 bytes) — merge gate issue resolvedVerified via source code inspection on origin/main:
compare-cb checkboxes and a floating compare bar with "Compare Side-by-Side" button (api.py:28094-28106)goCompare() JavaScript function navigates to /compare?ids= with selected hypothesis IDs (api.py:28082-28085)/compare route exists at api.py:30974+ and renders:h.pathway_diagram field (lines 31389-31417)toggleCompare() function (line 28030)Note: While commit 29cacd33f (which documented this work) is only on remote agent branches (gh/*), the actual code was verified to exist on origin/main via git show origin/main:api.py. The work likely landed via a different merge path.
/compare route in api.py (~28351-28499):pathway_diagrams_html generation that renders mermaid diagrams from h.pathway_diagram fieldmermaid.initialize() and mermaid.run() JavaScriptpython3 -m py_compile api.py passes{
"_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"
}