PtcRunner.Kernel.ComponentOverrideDiagnostic (PtcRunner v0.14.0)

Copy Markdown View Source

Closed messages for a refused component-override descriptor.

Three verification mistakes, a confined-source refusal, and a schema violation previously collapsed to one catalog sentence with no path. Each verification rule now names the descriptor field it broke; the path is the schema-authorized pointer to that field. Rejected hash values, candidate bytes, and the descriptor's filesystem path never cross this boundary: source.name stays the logical document role component-override.json.

Summary

Functions

Renders one verification rule as its fixed message, or declines so the catalog literal stands.

Types

reason()

@type reason() ::
  :override_base_hash_mismatch
  | :override_source_hash_mismatch
  | :override_component_not_selected
  | :invalid_override_source

Functions

message(reason)

@spec message(term()) :: {:ok, binary()} | :error

Renders one verification rule as its fixed message, or declines so the catalog literal stands.