Documentation
¶
Overview ¶
Package agentresult converts agent envelope payloads into the CRD status shapes — the one place the float-bearing wire format meets the no-float structural schemas. Both job controllers (investigation, remediation) use it so cost/confidence formatting and size caps never drift apart.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Analysis ¶
func Analysis(a envelope.AnalysisResult) *v1alpha1.Analysis
Analysis maps one envelope analysis dimension; nil when unassessed.
func FormatConfidence ¶
FormatConfidence renders confidence as the CRD's decimal string; empty when out of range.
func FormatCost ¶
FormatCost renders a float cost as the CRD's decimal string (6 fractional digits — micro-USD precision); empty when unreported.
func FromStage ¶
func FromStage(st *envelope.Stage) *v1alpha1.StageResult
FromStage maps an envelope stage onto the CRD stage result.
func TruncateDetail ¶
TruncateDetail caps a short detail/summary for a CRD field.
func TruncateReport ¶
TruncateReport caps a report markdown for a CRD field.
Types ¶
This section is empty.