PerformanceCoverage

class PerformanceCoverage(inventory: Map<String, Set<PerformanceHost>>, scenarios: List<PerformanceScenario>, requiredPhases: Map<String, Set<PerformancePhase>> = inventory.keys.associateWith { setOf(PerformancePhase.Idle) })(source)

Coverage gate and selection over the complete current feature inventory.

Parameters

inventory

required feature-to-host combinations from the product contract.

scenarios

detached registered workloads.

requiredPhases

per-feature lifecycle obligations, independent of the scenarios that register them.

Constructors

Link copied to clipboard
constructor(inventory: Map<String, Set<PerformanceHost>>, scenarios: List<PerformanceScenario>, requiredPhases: Map<String, Set<PerformancePhase>> = inventory.keys.associateWith { setOf(PerformancePhase.Idle) })

Functions

Link copied to clipboard
fun select(changedFeatures: Set<String>? = null): List<PerformanceScenario>

Selects all workloads when impact is unknown, otherwise the exact affected feature union.

Link copied to clipboard

Validates the actual public surface against executable registrations and selects changed source owners. Unknown paths select all workloads; an API/module addition without an assignment fails even for a narrow selection.

Link copied to clipboard
fun verify()

Rejects duplicate, unknown, and missing feature/host combinations.

Link copied to clipboard
fun verifyCompleted(completed: Set<Triple<String, PerformanceHost, PerformancePhase>>, changedFeatures: Set<String>? = null)

Requires every selected host/phase to produce a successful interval; skipped preparation is not evidence.

Link copied to clipboard
fun verifyEvidence(evidence: List<PerformanceEvidence>, plan: PerformancePlan = PerformancePlan(), changedFeatures: Set<String>? = null)

Requires complete independent repetitions with the registered fixture identity and no duplicate intervals.