Documentation
¶
Overview ¶
Package coverage classifies manifest items and builds coverage reports by joining manifest data with session usage summaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Analyze ¶
func Analyze(manifest *types.Manifest, sessionFiles []string, lookbackDays int, threshold int) (*types.CoverageReport, error)
Analyze produces a CoverageReport by joining the manifest against usage data extracted from sessionFiles.
Parameters:
- manifest: the scanned repository manifest
- sessionFiles: absolute paths to Claude JSONL session files
- lookbackDays: the lookback window used to locate those files (stored in the report for informational purposes)
- threshold: activations at or below this value are classified as StatusUnderused rather than StatusActive
func Classify ¶
func Classify(item types.ManifestItem, usage types.UsageSummary, threshold int) types.Status
Classify returns the Status for a single manifest item given its observed usage and the configured underuse threshold.
Classification rules (evaluated in order):
- If the item was never activated → StatusDormant
- If total activations are at or below threshold → StatusUnderused
- Otherwise → StatusActive
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.