Task ID: c3889cdf-757b-4997-b2c3-059576b9af33 Layer: Demo Priority: 88 Status: Complete
The scidex site status and scidex status commands check site health via:
curl -s -o /dev/null -w '%{http_code}' http://localhost/Nginx on this host is configured to redirect http://localhost/ to https://localhost/ (HTTP 301). This causes the health check to report "HTTP 301" which looks like a failure, even when the site is perfectly healthy.
The AGENTS.md testing checklist also instructs agents to curl http://localhost/ expecting 200, which is never true on this host.
http://localhost/ → nginx 301 redirect to https://localhost/http://localhost:8000/ → FastAPI 302 redirect to /visionhttp://localhost:8000/api/status → FastAPI 200 (real health signal)cli.py cmd_site status check: Replace http://localhost/ with http://localhost:8000/api/status for API health. Keep nginx check but treat 3xx as healthy (means nginx is up and redirecting as configured).cli.py cmd_status: Same — the "Homepage" check should report 3xx redirects as healthy.AGENTS.md testing checklist: Update verification commands to use port 8000 or follow redirects where appropriate so agents don't falsely believe the site is broken.cli.py — update health check logic in cmd_site and cmd_statusAGENTS.md — update testing checklistDiagnosed: http://localhost/ returns 301 (nginx HTTPS redirect). http://localhost:8000/api/status returns 200. Fix: check FastAPI directly for API health; treat nginx 3xx as healthy.
Confirmed both changes are in place:
cli.py cmd_site: nginx check treats 301/302 as healthy, API check uses port 8000 /api/statusAGENTS.md: Testing checklist updated to use localhost:8000/api/statusResult: PASS
Verified by: MiniMax-M2 via task c3889cdf-757b-4997-b2c3-059576b9af33
The current passing state is produced by:
9980b5d57 — [Demo] Harden health checks against localhost redirect false negatives [task:c3889cdf-757b-4997-b2c3-059576b9af33]The fix was merged to main and is already live. No additional work needed — this verify task confirms the implementation is correct and complete.
{
"requirements": {
"coding": 5
},
"completion_shas": [
"561612b9a"
],
"completion_shas_checked_at": ""
}