Diagnostics and comparison reports¶
The commands on this page are available in the development checkout. They are not included in the published Core 0.2.0 release. In a checkout, prefix commands with uv run.
Check a local installation¶
optpilot doctor
optpilot doctor --project ./my-experiment
optpilot doctor --project ./my-experiment --json > diagnostics.json
By default, doctor checks Python and required package versions, SQLite JSON support, existing store integrity and schema compatibility. With --project, it checks whether the manifest exists and asks the operating system about write access. It reports whether Docker, Harbor and SSH commands are on PATH; it does not contact those services or test authentication.
An absent store is normal before the first experiment. An older compatible store produces a warning: the next normal use will back it up and upgrade it. An incompatible or newer store produces an error. Exit status is 0 when no errors are found and 1 otherwise; informational messages and warnings alone do not fail the check.
The default diagnostic does not parse or execute project code, upgrade data, collect credentials or dump environment variables. SQLite connections to existing stores use read-only mode. Like other SQLite readers, they may participate in SQLite's WAL coordination. A manifest-exists check is not manifest validation; use optpilot validate PATH/optpilot.experiment.yaml for that.
Read diagnostics.json before attaching it to an issue. It includes package versions, operating system and architecture, database compatibility messages, and optional command availability. It is not a full support bundle or a test of every optional integration.
Opt in to service checks¶
--probe-docker contacts Docker Engine in your selected context, which may be
remote. It runs docker version
with a ten-second timeout and bounded output; it pulls no images and starts no
containers. --probe-ssh reads the registered target without migrating its store,
then uses the existing noninteractive, strict-host-key SSH path to check remote
Python. It can use your configured SSH agent or keys and makes a connection only
because you requested this flag. It submits no experiment. See SSH execution
for registration and trust prerequisites.
Reports state which service checks you requested and return readiness/recovery
messages. They omit raw command output, target names, host addresses and credentials.
Inspect detailed connection errors locally if a redacted check fails. An explicit
service failure makes the command exit with status 1; missing optional commands
remain informational in the default local check. These probes do not prove that
an image, workload, agent account or paid model invocation will succeed.
Share a recorded comparison¶
After an evaluation, copy its Run ID from the output. Export a standalone HTML report:
Open the file in a browser. It needs no server or network connection. It includes recorded scores and sample counts, failure/cancellation counts, run conditions, immutable version IDs and saved file hashes. It uses the ledger's saved results, so later edits to working files do not change the report.
For external results, the report shows how many trials were imported out of the reported total. A summary-only import cannot supply individual trial scores. Reviewed settings are shown separately from observed evidence: a selected candidate with no recorded use is marked review-only. Explicit version bindings on an imported record do not prove that the remote job ran the saved source files.
Choose a .json suffix for the structured representation:
The command refuses to overwrite an existing output file. Choose another filename or move the previous report. --store DIR selects a ledger outside the project's default .optpilot/experiments directory.
Raw trial evidence, logs, source contents and private parameter values are omitted by default. User-defined names and saved file paths remain visible. Review these before sharing. To include recorded trials, generation history and resource usage explicitly:
optpilot experiment report RUN_ID --project ./my-experiment \
--include-evidence --output comparison-with-evidence.html
Evidence can contain private data, model responses, host information or application output. The report escapes text as text; that prevents it from becoming executable HTML, but does not make the information safe to publish.
Interpret the result¶
A mean uses the metric's scored samples. Failed and missing trials are not measured zero scores. Compare the recorded and scored counts as well as the means. Different tasks or incomplete case coverage can make an apparent ranking misleading; inspect Run detail and matched inputs before drawing a conclusion.
File hashes identify saved source content. They do not prove that Python packages, hardware, external models or remote environments were identical. New local and SSH Python attempts include an observed runtime receipt. Reports summarize bounded environment groups with a sample receipt and explicitly count missing receipts; older or external results do not inherit the reporting client's environment. These observations are not a hermetic environment or a dependency lock. Review package names and platform metadata before sharing them.
Reports also show descriptive candidate-minus-baseline deltas only for matching instance versions, repetition numbers and recorded seeds. Missing scores, unknown coordinates and ambiguous duplicates are excluded. These differences are not significance tests; repeated cases may be correlated. The baseline is the first reviewed fixed candidate, or the first observed candidate for a generator-only run.
This report is a summary, not an executable backup. Use a separately reviewed portable experiment bundle when you need complete frozen inputs and raw evidence for restoration and native replay. For upgrade behavior and recovery, see Architecture and storage. For commands that inspect individual attempts and evidence, see the CLI reference.