Task · SKT-0170

Allow a zero-baseline custom metric to rise under a scoped incident

Description

The numeric custom-telemetry shape model only multiplies its base. A gauge representing an empty error backlog must remain zero normally but rise during a scoped failure; base zero currently remains zero under every multiplier. Making the normal value positive to trigger an alert fabricates ordinary state. Provide a generic opt-in value contract for this case without changing legacy shape output or inventing catalog metric names.

Acceptance Criteria

Definition of Done

Implementation Plan

Add an opt-in generic incident-aware numeric value contract without changing legacy multiplicative shape semantics. Prove zero-baseline onset, scoped intensity and recovery through public loader and real app emission; reconcile canonical DSL guidance and return generated-file requirements for root composition.

Implementation Notes

Landed 691dc9a, pushed integrated 93a7f34. Optional metric-only incident_value preserves legacy behavior, handles scoped intensity/pause/recovery and native parity. Independent guarded review and dsreview PASS; composed CodeRabbit complete 41/41 zero findings. Combined generation, real selected CLI inventory/value proof and exact remote just check passed. Existing scheduled zero-intensity issue separately tracked.

Final Summary

Custom gauges can opt into an explicit incident endpoint while retaining an honest zero baseline and returning immediately on recovery. No default shape semantics changed.

View the source file on GitHub