You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wire HedgedLLM hedge decisions into SynapseKit Live #1083
Follow-up to #1082 (HedgedLLM, p99 tail-latency request hedging).
The underlying primary/secondary LLM calls already get llm.generate spans via synapsekit.observe, so they show up on the run dashboard. What is not yet surfaced is the hedge decision itself — which is the whole value of the feature:
when a hedge was triggered (primary exceeded hedge_delay or failed early)
who won (primary / secondary) and the first-token latency delta
running HedgingStats (hedge_rate, hedge_win_rate)
Per the house rule that every new feature publishes to the EventBus so the glass box reflects it, emit a hedge.* event from HedgedLLM (return-value-based, so publish directly via from ..live.bus import bus guarded by bus.enabled, same pattern as observe/runtime._publish_live and Dream's dream.run). Add a 🪂 (or similar) icon + story() branch in live/dashboard.html.
Scope: additive, no behavioural change to hedging. No text/prompt content in the event payload (metrics + winner only).
Activity