TheAgentHealth

← All documentation

Serving AHP

Use v0.9.0 or newer. The example path requires a v0.9.0 or newer repository checkout and your application running on port 9000. In one terminal run:

agenthealth serve examples/ahp-check/agenthealth.yaml

In a second terminal query:

curl http://127.0.0.1:8080/ready
curl http://127.0.0.1:8080/live

Set AHP_TOKEN to a private random token of at least 16 characters through your secret manager or environment. Bearer-authorized GET requests to /health/dependencies and /health/capabilities return detailed results. To enable authenticated endpoints, stop the server and restart it in the first terminal after setting AHP_TOKEN:

agenthealth serve examples/ahp-check/agenthealth.yaml --listen 127.0.0.1:8080 --token-env AHP_TOKEN

Without a token these endpoints remain inaccessible. Public /health and /ready disclose only aggregate status and observation time.

The initial health response is UNKNOWN/503 until the first run completes. Checks repeat 30 seconds after each run and expire after two minutes. Explicit active probes also repeat; use a passive configuration for routine monitoring. SIGINT/SIGTERM cancel checks and gracefully shut down HTTP within five seconds. Successful shutdown returns 0; invocation, binding and server failures return 6. A health failure does not exit the serving process.

Remote deployments should terminate HTTPS and enforce rate limits at a proxy. See the protocol and impact review. This experimental implementation is included in v0.9.0; v0.8.0 does not include it.

Kubernetes serving

Phase 14 scenarios use this server in a Deployment and conventional sidecar. /ready follows snapshot freshness and aggregate readiness; /live drives process liveness/startup. Unlike CLI exec probes, AHP readiness can accept DEGRADED. Refresh timing, protected endpoint authorization and graceful shutdown retain this guide's existing behavior. See the deployment guide for Secrets and network exposure.

Trust boundary

See the threat model for trusted configuration, credential handling, network access, output limits and in-process adapter isolation. A shared process is not a boundary for mutually untrusted tenants.

Phase 18 supports native database dependencies. Passwords use environment references; SQL query execution requires functional opt-in. Existing health aggregation and result contracts remain unchanged. See the all-phase alignment review.

Phase 19 source integration: vector-store checks reuse the existing configuration, dependency and deadline contracts. Inject API keys through environment references; preserve independent agent/path evidence. Use a matching source-built CLI/SDK until the new release is verified.

Phase 24 conformance evidence

The reference catalog includes the HTTP binding and status/graph cases. The offline command accepts AHS result documents, not AHP envelopes; it does not test a running server. See the conformance guide and cross-phase review.