doctor
doctor
¶
Agent-level container health checks.
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.
The checks are returned as :class:DoctorCheck specs — probe commands
+ evaluate callables — that the top-level orchestrator (terok sickbay)
executes inside containers via podman exec.
agent_doctor_checks(roster, *, proxy_port=None)
¶
Return agent-level health checks for in-container diagnostics.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
roster
|
AgentRoster
|
The loaded agent roster. |
required |
proxy_port
|
int | None
|
Credential proxy TCP port. Required for base URL checks;
if |
None
|
Returns:
| Type | Description |
|---|---|
list[DoctorCheck]
|
List of :class: |