pub struct VerificationResult {
pub syntax_ok: bool,
pub build_ok: bool,
pub tests_ok: bool,
pub lint_ok: bool,
pub diagnostics_count: usize,
pub tests_passed: usize,
pub tests_failed: usize,
pub summary: String,
pub raw_output: Option<String>,
pub degraded: bool,
pub degraded_reason: Option<String>,
pub stage_outcomes: Vec<StageOutcome>,
}Expand description
PSP-5: Structured verification result from a plugin-driven verifier
Holds the outcome of running syntax checks, build, tests, and lint through the active language plugin’s toolchain.
Fields§
§syntax_ok: boolWhether the syntax/type check passed
build_ok: boolWhether the build succeeded
tests_ok: boolWhether tests passed
lint_ok: boolWhether lint passed (only in Strict mode)
diagnostics_count: usizeNumber of diagnostics from LSP / compiler
tests_passed: usizeNumber of tests passed
tests_failed: usizeNumber of tests failed
summary: StringSummary output from verification tools
raw_output: Option<String>Raw tool output (for correction prompts)
degraded: boolWhether verification ran in degraded mode (missing tools)
degraded_reason: Option<String>Reason for degraded mode
stage_outcomes: Vec<StageOutcome>Per-stage outcomes with sensor status
Implementations§
Source§impl VerificationResult
impl VerificationResult
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Check if all verification stages passed
Sourcepub fn degraded(reason: impl Into<String>) -> Self
pub fn degraded(reason: impl Into<String>) -> Self
Create a degraded result when tools are unavailable
Sourcepub fn has_degraded_stages(&self) -> bool
pub fn has_degraded_stages(&self) -> bool
Check whether any stage ran with a fallback or unavailable sensor.
When true the caller should NOT treat a passing result as a genuine stability proof — the energy surface was only partially observable.
Sourcepub fn degraded_stage_reasons(&self) -> Vec<String>
pub fn degraded_stage_reasons(&self) -> Vec<String>
Collect human-readable descriptions of all degraded stages.
Trait Implementations§
Source§impl Clone for VerificationResult
impl Clone for VerificationResult
Source§fn clone(&self) -> VerificationResult
fn clone(&self) -> VerificationResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more