pub struct CheckReport { /* private fields */ }Expand description
The outcome of dive check.
Implementations§
Source§impl CheckReport
impl CheckReport
Sourcepub fn result(&self) -> Option<&CheckResult>
pub fn result(&self) -> Option<&CheckResult>
The safety checker’s result, including a safety stop in final/short
checking. Temporal holds/violations use Self::temporal_result.
Sourcepub fn diagnostic_witness(&self) -> Option<&DiagnosticWitness>
pub fn diagnostic_witness(&self) -> Option<&DiagnosticWitness>
Separate original initial-state diagnostic context. This is not a formal counterexample; its named cause and deciding replay need independent proof.
Sourcepub fn temporal_result(&self) -> Option<&Report>
pub fn temporal_result(&self) -> Option<&Report>
The validated temporal result, when final/short checking ran. Safety
stops are exposed through Self::result instead.
Sourcepub fn temporal_failure(&self) -> Option<&Failure>
pub fn temporal_failure(&self) -> Option<&Failure>
The typed temporal failure, when temporal checking stopped without a
verdict: its crate::temporal::Error, stage and available evidence.
Sourcepub fn exit_code(&self) -> u8
pub fn exit_code(&self) -> u8
The historical API profile’s exit code (see exit).
This remains native for the dive profile and TLC for the TLC profile.
The CLI’s independent default is selected with Self::exit_code_for.
Sourcepub fn exit_code_for(&self, convention: ExitConvention) -> u8
pub fn exit_code_for(&self, convention: ExitConvention) -> u8
Selects a process status without changing the evaluator’s profile.
TLC statuses come from the deciding class, not its reported message. Refusal/resource 3 and internal error 4 are preserved in both conventions. This does not establish parity of an unverified class or model result.
Sourcepub fn to_json_with_exit_convention(&self, convention: ExitConvention) -> Value
pub fn to_json_with_exit_convention(&self, convention: ExitConvention) -> Value
Reports an explicitly selected physical status and its convention.
The underlying evaluator settings and deciding class are unchanged.
Native statuses with TLC evaluation are labeled tlc+overrides.
Self::to_json retains its historical API document.
Sourcepub fn render_human_with_exit_convention(
&self,
convention: ExitConvention,
) -> String
pub fn render_human_with_exit_convention( &self, convention: ExitConvention, ) -> String
Human output with the resolved physical status and compatibility label.
Self::render_human retains its historical API output.
Sourcepub fn to_json(&self) -> Value
pub fn to_json(&self) -> Value
The JSON document (schema CHECK_SCHEMA_VERSION). check_kind names
the safety or temporal request/report family; it does not assert that
checking ran or that capture completed. Final/short safety failures
retain the temporal family and their actual execution evidence:
{ "schema_version": 3, "command": "check", "file", "config",
"verdict": "success" | "invariant-violation" | "property-violation"
| "action-property-violation" | "deadlock" | "assumption-failure"
| "postcondition-failure" | "assertion-failure" | "overflow"
| "evaluation-error" | "incomplete-state" | "model-error"
| "rejected" | "unsupported" | "resource-limit" | "stopped"
| "internal-error",
"property": string | null, "message": string | null,
"error_site": string | null,
"tlc": { "code", "name", "exit_status", "reported", "verified" } | null,
"statistics": { "generated", "distinct", "left_on_queue", "depth",
"initial_generated", "reported_by_tlc" } | null,
"counterexample": { "length", "ending": "finite",
"states": [ { "index", "label", "action",
"values": { var: TLC JSON }, "text" } ],
"trace": dive-trace document | null } | null,
"diagnostic_witness": { "trace": native-v2 named cause document }, // optional
"collision": { "store", "scheme", "optimistic", "actual", "assumption" } | null,
"output": [ string ], "warnings": [ { "code", "message" } ],
"diagnostics": [ ... ], "notes": [ string ],
"stopped": { "resource": "time" | "memory" | "states" | "depth", "limit", "observed", "elapsed_ms",
"unit": "ms" | "bytes" | "states" | "levels", "phase", "hint" } (only when stopped),
"options": { "profile", "int", "choose_order", "explore_order",
"comparisons", "warnings", "store", "fingerprint",
"seed", "seed_source", "deadlock_flag",
"budget": { "time_limit_ms", "time_limit_source",
"max_memory_bytes", "max_memory_source", "max_states", "max_depth", "scope" },
"workers": { "requested", "used", "sequential", "reason",
"chaos" } },
"elapsed_ms" }tlc is how TLC classifies the result: code decides TLC’s exit
status, and reported is the code of the error message TLC prints
first (an invariant that fails to evaluate is reported as
TLC_INVARIANT_EVALUATION_FAILED, for example); verified: false
means dive does not yet reproduce TLC’s error class at that site and
does not claim it. reported_by_tlc is false where TLC prints no statistics
(a stop while generating initial states). Explicit final-only schema 3
also declares the schedule/selection, fixed entry/work bounds and actual
failure stage. Periodic traces include all configured property names and
a stuttering ending or one-based lasso target; independent replay precedes
any private-certified temporal violation.
Sourcepub fn render_human(&self) -> String
pub fn render_human(&self) -> String
The TLC-style text report (see dive_runtime::render_human), preceded
by the run’s options and the Print output.