Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DescribeAtom ¶
func SelectTarget ¶ added in v0.0.8
SelectTarget returns the changed atoms matched by one narrative target's evidence. It reuses the coverage evaluator's indexed selector semantics but does not construct ownership for any sibling target or retain a whole-report graph. Lazy linked-code endpoints use it after reading only the source files named by that target.
Types ¶
type Assignment ¶
type Orphan ¶
type Orphan struct {
Assignment Assignment `json:"assignment"`
Reference saga.DiffReference `json:"reference"`
Reason string `json:"reason"`
}
type Overlap ¶
type Overlap struct {
Atom gitdiff.Atom `json:"atom"`
CoveredBy []Assignment `json:"covered_by"`
}
type Report ¶
type Report struct {
Complete bool `json:"complete"`
CoverageScope string `json:"coverage_scope"`
Summary Summary `json:"summary"`
Uncovered []gitdiff.Atom `json:"uncovered"`
Overlaps []Overlap `json:"overlaps"`
Orphans []Orphan `json:"orphans"`
Targets []TargetSummary `json:"targets"`
SagaChanges []gitdiff.Atom `json:"saga_changes"`
Repository string `json:"repository"`
Base string `json:"base"`
Head string `json:"head"`
BaseOID string `json:"base_oid"`
HeadOID string `json:"head_oid"`
SchemaValid bool `json:"schema_valid"`
SchemaIssues []saga.Issue `json:"schema_issues"`
Ownership map[string][]Assignment `json:"-"`
}
Report is a machine-consumed contract. Every collection field is always present and never null, so an agent can index into it without first testing for a missing key: a complete saga reports "uncovered": [] rather than omitting the field or emitting null.
func EvaluateSummary ¶ added in v0.0.8
func EvaluateSummary(document *saga.Saga, validation saga.Validation, changes gitdiff.ChangeSet) Report
EvaluateSummary computes coverage verdicts and per-target rollups without retaining atom-level ownership, uncovered, or overlap details. Overview-style queries use it because their bounded response needs counts, not the complete reverse indexes that gap, fragment, and diff-owner queries traverse.