Documentation
¶
Overview ¶
Package report renders a stored run. A report is a pure function of the run's ledger: Load reads only ledger.jsonl, and renderers use no clock, no environment and no map iteration order, so rendering the same run twice produces the same bytes.
Index ¶
Constants ¶
const JSONSchema = "spackle.report/v1"
JSONSchema names the envelope renderJSON writes. It changes only when a key is removed or changes meaning; adding a key keeps the version.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Counts ¶
type Counts struct {
Critical, High, Medium, Low, None int
Open, Fixed, Dismissed int
Demonstrated int
}
Counts summarizes findings by severity label for open findings.
type Run ¶
type Run struct {
ID string
Version string
Command string
Target string
TargetKind string
Commit string
Mode string // deterministic|agentic
Provider string
Model string
Offline bool
Scope string
ScopeSource string
Isolation string
StartedAt time.Time
EndedAt time.Time
Outcome string
Map ledger.MapSummary
Seeders []ledger.SeederStatus
Findings []finding.Finding // ranked; includes dismissed and fixed
Skipped []ledger.BudgetSkip
Notes []string
Usage Usage
}
Run is everything a renderer needs.
type Usage ¶
type Usage struct {
ModelCalls int
InputTokens int
OutputTokens int
CostUSD float64
// Estimated is true when any call's token counts were estimated.
Estimated bool
// CostKnown is false when any call used a model with no known price.
CostKnown bool
SandboxRuns int
Leads int
}
Usage totals the run's accounting.