The “Wow Moment” (definition)
Name
Policy Lens
The moment
User clicks a trace, and the UI overlays: - what happened (timeline) - what it cost - what policies would have done - and a “Generate policy patch” button that produces: - proposed policy - simulation preview (blocks/savings) - approval-ready artifact
Why it wins
- feels like a superpower (time travel + guardrails)
- unifies governance + ROI into a single action
- scales from solo dev to enterprise
Implementation notes
- Build on existing
/api/traces,/api/envelopes/[id]/events, and policy endpoints. - The first version can simulate using server-side evaluation endpoints if present; otherwise a mocked preview with clear labeling.