Skip to content

Doctor

doctor

Agent-level container health checks (implementation).

Contributes domain-specific checks to the layered doctor protocol (terok_sandbox.doctor): socat bridge liveness, credential file integrity in shared mounts, and phantom token / base URL verification for the vault.

The checks are returned as DoctorCheck specs — probe commands + evaluate callables — that the top-level orchestrator (terok sickbay) executes inside containers via podman exec.

Public entry point: AgentRoster.doctor_checks. This module is the implementation home; consumers call it through the roster method so the dependency direction stays roster → checks.