report

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const SchemaVersion = "1"

Variables

This section is empty.

Functions

func WriteVerificationReport

func WriteVerificationReport(path string, result VerificationReport) error

WriteVerificationReport writes report JSON to a file with stable formatting.

Types

type Derived added in v0.2.5

type Derived struct {
	NetVoltages         []NetVoltage        `json:"net_voltages,omitempty"`
	InferredNetVoltages []NetVoltage        `json:"inferred_net_voltages"`
	UnknownVoltageNets  []UnknownVoltageNet `json:"unknown_voltage_nets"`
	// RailInferences records deterministic voltage provenance and confidence for rails.
	RailInferences []infer.VoltageInference  `json:"rail_inferences"`
	RailCoverage   rails.RailCoverageSummary `json:"rail_coverage"`
	Conflicts      []string                  `json:"conflicts,omitempty"`
}

Derived stores non-authoritative analysis data that supports findings.

type InferenceProvenance added in v0.2.7

type InferenceProvenance struct {
	NetName         string  `json:"net_name"`
	Source          string  `json:"source"`
	ConfidenceScore float64 `json:"confidence_score"`
	ConfidenceLevel string  `json:"confidence_level"`
	Reason          string  `json:"reason,omitempty"`
}

InferenceProvenance links a voltage-based finding back to rail inference.

type NetVoltage added in v0.2.5

type NetVoltage struct {
	Net        string  `json:"net"`
	Voltage    float64 `json:"voltage"`
	Source     string  `json:"source"`
	Confidence string  `json:"confidence,omitempty"`
	Reason     string  `json:"reason,omitempty"`
}

NetVoltage is report-facing voltage evidence for a net.

type RuleResult

type RuleResult struct {
	ID           string                `json:"id"`
	RuleID       string                `json:"rule_id,omitempty"`
	Severity     string                `json:"severity"`
	Net          string                `json:"net,omitempty"`
	Message      string                `json:"message"`
	Provider     string                `json:"provider,omitempty"`
	Consumer     string                `json:"consumer,omitempty"`
	Ref          string                `json:"ref,omitempty"`
	ComponentRef string                `json:"component_ref,omitempty"`
	Pin          string                `json:"pin,omitempty"`
	Source       string                `json:"source,omitempty"`
	Provenance   *contracts.Provenance `json:"provenance,omitempty"`
	Fix          string                `json:"fix,omitempty"`
	Inference    *InferenceProvenance  `json:"inference,omitempty"`
}

RuleResult is the report-facing shape of a rule finding. The legacy id field is kept alongside rule_id for compatibility.

type Summary

type Summary struct {
	Source                     string   `json:"source"`
	SourceImporter             string   `json:"source_importer,omitempty"`
	InputFile                  string   `json:"input_file"`
	Parts                      int      `json:"parts"`
	Pins                       int      `json:"pins,omitempty"`
	Rules                      int      `json:"rules"`
	HasFailures                bool     `json:"has_failures"`
	Delimiter                  string   `json:"delimiter,omitempty"`
	ParseErrorsCount           int      `json:"parse_errors_count"`
	ParseWarningsCount         int      `json:"parse_warnings_count"`
	ParseErrors                []string `json:"parse_errors"`
	ParseWarnings              []string `json:"parse_warnings"`
	NextSteps                  []string `json:"next_steps,omitempty"`
	Nets                       int      `json:"nets,omitempty"`
	PartsMatched               int      `json:"parts_matched"`
	ContractsApplied           int      `json:"contracts_applied"`
	ContractCoveragePercentage float64  `json:"contract_coverage_percentage"`
	UnknownPowerCriticalRefs   []string `json:"unknown_power_critical_refs,omitempty"`
	EnabledContractRules       []string `json:"enabled_contract_rules,omitempty"`
}

Summary is the compact report header used by both JSON and CLI output.

type UnknownVoltageNet added in v0.2.6

type UnknownVoltageNet struct {
	Net    string `json:"net"`
	Reason string `json:"reason"`
}

UnknownVoltageNet explains why a rail-like net could not be assigned voltage.

type VerificationReport

type VerificationReport struct {
	ReportVersion    string                     `json:"report_version"`
	Summary          Summary                    `json:"summary"`
	DesignIR         *ir.DesignIR               `json:"design_ir"`
	Rules            []RuleResult               `json:"rules"`
	Findings         []RuleResult               `json:"findings"`
	ContractCoverage *contracts.CoverageSummary `json:"contract_coverage,omitempty"`
	Derived          *Derived                   `json:"derived,omitempty"`
}

VerificationReport is the output schema for scan results.

func NewVerificationReport

func NewVerificationReport(design *ir.DesignIR) VerificationReport

NewVerificationReport builds the deterministic JSON payload for scan.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL