1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! The MVP check set (AGENTS-AI-FIRST-CLI §18).
//!
//! Five categories, each in its own module, each emitting one
//! [`CheckResult`] per finding (never
//! summarized into one):
//!
//! - [`schema`] — `schema.runs.<id>`: every run manifest deserializes.
//! - [`skill`] — `skill.sync.<name>`: on-disk skill `cli_version` matches.
//! - [`deps`] — `dep.<bin>`: each shelled-out binary is on `PATH`.
//! - [`config`] — `config.home`: the orchestratectl home resolves.
//! - [`data`] — `data.orphan-supervisor.<id>`: no dead supervisor PIDs.
use PathBuf;
use CheckResult;
/// Read-only context handed to every check. `root` is the resolved
/// orchestratectl home (`$ORCHESTRATECTL_HOME` or `~/.orchestratectl`);
/// it is `None` only when neither `$ORCHESTRATECTL_HOME` nor `$HOME` is
/// set, in which case the root-dependent checks degrade gracefully and
/// `config.home` reports the failure.
/// Run every check category in a deterministic order and return the flat
/// list of findings. Order is category-then-discovery so the text/jsonl
/// stream reads top-down (config, deps, schema, skill, data).