harbor run -t openthoughts/tasktrove-exp-rpt-stack-dockerfile-gpt5mini-v3-stack-dockerfile-gpt4o-7245harbor download openthoughts/tasktrove-exp-rpt-stack-dockerfile-gpt5mini-v3-stack-dockerfile-gpt4o-7245Create a self-contained Go project under /app that provides a small process manager and HTTP control API for the existing controller binary at /app/controller.
Requirements
Behavior and HTTP API
The manager is an HTTP server that listens on port 8080 and exposes these endpoints:
GET /health
GET /controller/status
POST /controller/start
POST /controller/stop
GET /controller/logs
Implementation details (must follow)
CLI (optional but recommended)
Testing script
Examples (expected behavior)
curl -s localhost:8080/health -> {"status":"ok"}
curl -s -X POST localhost:8080/controller/start -> 201 {"message":"started","pid":1234,"start_time":"2026-01-27T12:34:56Z"}
curl -s localhost:8080/controller/status -> {"running":true,"pid":1234,"start_time":"2026-01-27T12:34:56Z"}
curl -s "localhost:8080/controller/logs?stream=stdout&tail=50" -> returns last 50 lines of /app/controller.stdout
Notes and constraints
Deliverables (what to place in /app)
Implement the manager and test script according to the above specification.