type

Risk

A stable machine-readable planning finding.

Properties

PropertyTypeDescription
CodestringCode is a stable identifier suitable for CI policy.
LevelRiskLevelLevel classifies whether the finding is informational, risky, or destructive.
MessagestringMessage explains the concrete impact and required review.

How it works

Risk levels are notice, warning, and destructive. CI can use Code and Level; Message explains the concrete review requirement.

Full signature

type Risk struct { // Code is a stable identifier suitable for CI policy. Code string `json:"code"` // Level classifies whether the finding is informational, risky, or destructive. Level RiskLevel `json:"level"` // Message explains the concrete impact and required review. Message string `json:"message"` }

Source migration/migration.go:209