Expand description
doctor: the check model and the host and repository checks (SP5c design §4, §5.1, §5.2, §6).
Every check is read-only. A check that cannot run because one it depends on failed emits exactly one
skip record naming that check (design §4).
Structs§
- Check
- One check record.
- Environment
- What a run reads from the process.
- Host 🔒
- What the host checks established, for the checks that depend on them.
- Report
- The ordered records of a run, and the facts the JSON envelope needs.
Enums§
- Blocker 🔒
- Why creating a missing path would fail below an existing ancestor.
- CheckId
- The closed set of check identifiers (design §5).
- Profiles
Dir 🔒 - What the
profiles_dircheck established for the checks that depend on it. - Status
- The outcome of one check (design §4).
- Target
- What to examine.
Functions§
- agent_
check 🔒 - A per-agent record.
- agent_
skip 🔒 - app_
root 🔒 - Pushes the
app_rootrecord and says whether the root can be used. - app_
root_ 🔒writable - blocked_
ancestor 🔒 - The entry that stops a launch creating the missing
path: a dangling symbolic link betweenpathand its nearest existing ancestor, or that ancestor when it is not a directory. Nothing else blocks here. - case_
twins 🔒 - One
failper pair ofprofiles/entries whose UTF-8 names differ only in ASCII case. - check 🔒
- config_
checks 🔒 - Pushes
config,config_agentand returns the configuration when it loaded. - default_
profile 🔒 - executable_
checks 🔒 - Pushes
executable, thenrepository_local_executablewhen found (design §5.3). - executable_
record 🔒 - file_
mode 🔒 - The octal permission bits on Unix,
nullelsewhere. - host_
checks 🔒 - launch_
environment 🔒 - The single
launch_environmentrecord: how the profile is passed, never a value read from the environment. - mapping_
checks 🔒 - mapping_
dependency 🔒 - The failed check that makes
mappingandmapping_agentskip. - missing_
path 🔒 - What a launch would meet creating
path, which does not exist. - nearest_
existing 🔒 - The nearest ancestor of
path(orpathitself) that exists, following symbolic links. A dangling link, a missing entry and an entry below a non-directory all count as not existing; any other error stops the walk at the path that raised it. - option_
checks 🔒 - Pushes
conflicting_option,ambient_credentialandcapabilityrecords. - profile_
checks 🔒 - Pushes
profile,profile_pathandlaunch_environment, or oneskipeach. - profile_
path_ 🔒record - profile_
record 🔒 - profiles_
dir 🔒 - Pushes the
profiles_dirrecord. - repository_
checks 🔒 - Pushes the repository checks and returns the discovery, or
Nonewhen it failed. - resolution_
check 🔒 - Pushes
resolutionand returns the profile it settled on. - run
- Runs every check in scope, in the contract’s order: host checks, then repository checks.
- shown 🔒
- skip 🔒
- support_
check 🔒 - The
supportrecord: the evidence, never a probe of the installed agent. - unreadable_
profile 🔒 - The first profile directory, in byte order of its name, that
list_profileswould descend into and whoseread_dirfails.