Skip to content

Add a minimal HTTP health endpoint to hosted AMS containers #7177

Description

@JSONbored

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

  • A minimal HTTP listener in the hosted AMS container exposing /health (liveness) and /ready (readiness with probes), matching ORB's response shape
  • Self-host mode unaffected — this only runs in the hosted container entry point, not the CLI

Links & Resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is needed

    Projects

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions