Expand description
CLI surfaces for the firstpass binary (SPEC §7.3/§7.4): doctor validates a setup before
you route real traffic through it, and trace reads recent audit records from the store. Both
are kept here (not in the binary) so the judgment is unit-tested.
Structs§
- Check
- One line of the doctor report.
- Doctor
Report - The result of
firstpass doctor.
Enums§
- Check
Status - A single doctor check outcome.
Functions§
- command_
on_ path - Whether
programis runnable: an explicit path (contains a separator) that exists, or a bare name found in one ofPATH’s directories. - doctor
- Validate a loaded config against the environment: routing sanity, provider key presence, and
that every configured gate’s command actually exists.
envlooks up environment variables (injected so this is testable). - format_
traces - Render the most recent
limittraces as JSON lines — machine-first (SPEC §0.2): each line is a fullTrace, newest last.