Documentation
¶
Overview ¶
Package touchsurprise measures, for one completed task, how much of the change the task-context packet never named: the touch-set surprise. It is read-only and compares committed revisions only (AGENTS.md invariant 4).
Index ¶
Constants ¶
View Source
const DefaultLimit = 20
DefaultLimit is the packet and impact result bound when --limit is absent.
View Source
const MaxLimit = 50
MaxLimit is contextindex's own ceiling for both TaskContext and Impact.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Report ¶
type Report struct {
Predicted []string `json:"predicted"`
Actual []string `json:"actual"`
PredictedOnly []string `json:"predicted_only"`
ActualOnly []string `json:"actual_only"`
Intersection []string `json:"intersection"`
SymmetricDifference int `json:"symmetric_difference"`
Surprise float64 `json:"surprise"`
EmptyActual bool `json:"empty_actual"`
}
Report is the set arithmetic of one touch-set surprise (TSS-V0-004). It is pure: the same two path lists always produce the same report, in path order.
Click to show internal directories.
Click to hide internal directories.