Package com.tnsai.quality.slo
Interface DegradationPolicy
- All Known Implementing Classes:
DegradationPolicy.DisableFeature,DegradationPolicy.NoDegradation,DegradationPolicy.RefuseNewWork,DegradationPolicy.RouteToFallback,DegradationPolicy.ShedLowPriorityLoad
public sealed interface DegradationPolicy
permits DegradationPolicy.NoDegradation, DegradationPolicy.RouteToFallback, DegradationPolicy.DisableFeature, DegradationPolicy.RefuseNewWork, DegradationPolicy.ShedLowPriorityLoad
What an SLO-aware enforcement layer should do when the budget is
exhausted (issue #92).
Sealed so consumers pattern-match exhaustively. The hook layer
(separate follow-up: SLOAwareHook) reads the policy off the
SLO definition and applies it in Hook<PreChat> / Hook<PreAction>.
- Since:
- 0.5.0 (issue #92)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordDisable a specific feature flag for the duration of the exhaustion.static final recordJust alert; let traffic through unchanged.static final recordReject new work outright (with a structured reason) until the budget recovers.static final recordSwitch the agent to a cheaper / simpler LLM target identified by its provider qualifier (e.g.static final recordDrop the configured fraction of low-priority requests.