pub struct RuntimeCoverageReport {Show 14 fields
pub schema_version: RuntimeCoverageSchemaVersion,
pub verdict: RuntimeCoverageReportVerdict,
pub signals: Vec<RuntimeCoverageSignal>,
pub summary: RuntimeCoverageSummary,
pub findings: Vec<RuntimeCoverageFinding>,
pub hot_paths: Vec<RuntimeCoverageHotPath>,
pub blast_radius: Vec<RuntimeCoverageBlastRadiusEntry>,
pub importance: Vec<RuntimeCoverageImportanceEntry>,
pub watermark: Option<RuntimeCoverageWatermark>,
pub warnings: Vec<RuntimeCoverageMessage>,
pub actionable: bool,
pub actionability_reason: Option<String>,
pub actionability_verdict: Option<String>,
pub provenance: RuntimeCoverageProvenance,
}Expand description
Runtime coverage findings merged into the health report or emitted by
fallow coverage analyze. Present in health output when –runtime-coverage
is used. Shape mirrors the runtime coverage JSON contract; cloud mode
fetches runtime facts explicitly and merges them locally with AST/static
analysis.
Fields§
§schema_version: RuntimeCoverageSchemaVersionRuntime coverage JSON contract version. This is scoped to the
runtime_coverage block and is independent of the top-level fallow
JSON schema_version.
verdict: RuntimeCoverageReportVerdictSingle most actionable runtime-coverage signal under the current
context. In PR-review context (CLI saw --diff-file or
--changed-since) the verdict is hot-path-touched whenever a hot
function was touched, regardless of cold-code findings; in standalone
analysis cold-code-detected remains primary. For the full set of
findings the report carries, see signals.
signals: Vec<RuntimeCoverageSignal>All signals captured by post-processing. Independent of verdict,
which is the single most actionable signal under the current
context. Empty when the report is Clean and not under license
grace. Order is stable severity-descending.
summary: RuntimeCoverageSummaryAggregate tracked / hit / unhit / untracked counts for the analyzed runtime coverage input.
findings: Vec<RuntimeCoverageFinding>Surfaced runtime coverage findings (safe_to_delete, review_required,
low_traffic, coverage_unavailable). Omitted when empty. active
functions stay out of this list so the CLI output remains actionable.
hot_paths: Vec<RuntimeCoverageHotPath>Top runtime functions by invocation count. Omitted when empty.
blast_radius: Vec<RuntimeCoverageBlastRadiusEntry>First-class blast-radius entries for runtime-observed functions. Present whenever runtime coverage analysis runs.
importance: Vec<RuntimeCoverageImportanceEntry>First-class production-importance entries for runtime-observed functions. Present whenever runtime coverage analysis runs.
watermark: Option<RuntimeCoverageWatermark>License/trial watermark for grace-mode output. Omitted when not applicable.
warnings: Vec<RuntimeCoverageMessage>Non-fatal merge or coverage diagnostics. Omitted when empty.
actionable: boolWhether an autonomous agent may act on this report (mirrors
the cloud runtime-context contract). false when the capture
carries no usable runtime evidence (no tracked functions); then
actionability_verdict is insufficient_evidence and
actionability_reason explains. F4: a non-action floor, never a gate on a
positive verdict.
actionability_reason: Option<String>Why the report is non-actionable; null when actionable is true.
actionability_verdict: Option<String>First-class non-action verdict (insufficient_evidence) when not
actionable; null otherwise. Mirrors the cloud runtime-context verdict;
named distinctly from the report-context verdict above to avoid a
collision.
provenance: RuntimeCoverageProvenanceProvenance an agent reads to self-attenuate confidence (mirrors
the cloud runtime-context provenance). F4: context only.
Implementations§
Source§impl RuntimeCoverageReport
impl RuntimeCoverageReport
Sourcepub fn set_optimization_target_warning(&mut self)
pub fn set_optimization_target_warning(&mut self)
Set the optimization_target_unmatched warning from the hot paths that
this report shows. Call it after the last filter that removes hot
paths, so that the count agrees with the output.
Sourcepub fn refresh_optimization_target_warning(&mut self)
pub fn refresh_optimization_target_warning(&mut self)
Count the unmatched hot paths again after a filter removed hot paths.
Does nothing when the report has no optimization_target_unmatched
warning, because only the local merge computes optimization targets.