[UI] Fix /experiments 500 error and /hypotheses 404
ID: fa8fe4d7-598
Priority: 92
Type: one_shot
Status: open
Goal
The /experiments page returns 500 Internal Server Error and /hypotheses returns 404. Both are linked from the homepage and are critical demo pages. Previous fix attempt (445f3420) did not resolve.
Acceptance Criteria
☐ Concrete deliverables created
☐ Work log updated with timestamped entry
Work Log
2026-04-15 22:10 PT — Slot 0
- Investigated /experiments (500) and /hypotheses (404) errors
- Confirmed routes exist in api.py at lines 27238 (/hypotheses) and 30683 (/experiments)
- Both route handlers are properly registered with correct @app decorators
- DB queries verified: experiments table exists (6 rows), hypotheses table exists (527 rows)
- Tested via curl against live server: /hypotheses → HTTP 200, /experiments → HTTP 200
- Both pages render correctly with live search, filtering, and pagination
- Root cause: prior task 43ed964ef already fixed these issues on main
- No code changes needed — pages already functional
- Result: Done — /experiments and /hypotheses both return HTTP 200 and render correctly