Problem
AMS has no HTTP surface at all today — status is CLI-only (loopover-miner status/doctor), and the existing operator dashboard (apps/loopover-miner-ui) reads AMS's local SQLite files directly rather than calling a running AMS process. A hosted control-plane polling container health across a fleet needs each container to answer over HTTP.
Area
packages/loopover-miner/ — a new, minimal HTTP entry point (does not touch the existing CLI commands).
Proposal
Reuse ORB's existing readiness pattern rather than inventing a new health-check shape: src/selfhost/health.ts's readiness(db, probes) returning { ok, checks, durationsMs }, plus a bare liveness { status: "ok" }. AMS's hosted container wraps its own checks (can it reach its Postgres store post-migration, is its loop cycle alive) as ReadinessProbes against that same shape, so the control-plane's aggregator (#4933/#4934 on the ORB side) can poll both products identically.
Deliverables
Links & Resources
Problem
AMS has no HTTP surface at all today — status is CLI-only (
loopover-miner status/doctor), and the existing operator dashboard (apps/loopover-miner-ui) reads AMS's local SQLite files directly rather than calling a running AMS process. A hosted control-plane polling container health across a fleet needs each container to answer over HTTP.Area
packages/loopover-miner/— a new, minimal HTTP entry point (does not touch the existing CLI commands).Proposal
Reuse ORB's existing readiness pattern rather than inventing a new health-check shape:
src/selfhost/health.ts'sreadiness(db, probes)returning{ ok, checks, durationsMs }, plus a bare liveness{ status: "ok" }. AMS's hosted container wraps its own checks (can it reach its Postgres store post-migration, is itsloopcycle alive) asReadinessProbes against that same shape, so the control-plane's aggregator (#4933/#4934 on the ORB side) can poll both products identically.Deliverables
/health(liveness) and/ready(readiness with probes), matching ORB's response shapeLinks & Resources
src/selfhost/health.ts— the pattern to mirror