Skip to content

📊 telemetry: per-round baseline loss (validator_baseline_loss_by_round) - #198

Merged
george-connito merged 1 commit into
masterfrom
feat/baseline-loss-by-round
Jul 28, 2026
Merged

📊 telemetry: per-round baseline loss (validator_baseline_loss_by_round)#198
george-connito merged 1 commit into
masterfrom
feat/baseline-loss-by-round

Conversation

@george-connito

Copy link
Copy Markdown
Collaborator

The dashboard needs a stable per-cycle baseline, but validator_baseline_loss is a single unlabeled gauge overwritten each round, so the gateway can only sample it and a cycle's baseline ends up timing-dependent.

Add validator_baseline_loss_by_round{round_id} labeled exactly like the round-attribution families. A new best-effort set_baseline_loss(round_id, value) helper publishes BOTH the unlabeled gauge (backward compat during rollout) and the labeled one, and registers the round for eviction; the foreground-eval baseline site calls it in place of the prior inline set. The labeled family is added to evict_round_series_before so its stale labelsets prune on the same cutoff as the other per-round series.

Emitting per-round lets the gateway attribute the right baseline to the right cycle, freeze it after finalize, and naturally exclude a warming-up validator that has no value for that round (the gateway averages across validators, dropping 0/absent).

Tests: helper sets both gauges with the round's id; labeled value is stable per round; eviction test extended to cover the baseline family. Full telemetry suite green in the stable image.

The dashboard needs a stable per-cycle baseline, but validator_baseline_loss
is a single unlabeled gauge overwritten each round, so the gateway can only
sample it and a cycle's baseline ends up timing-dependent.

Add validator_baseline_loss_by_round{round_id} labeled exactly like the
round-attribution families. A new best-effort set_baseline_loss(round_id,
value) helper publishes BOTH the unlabeled gauge (backward compat during
rollout) and the labeled one, and registers the round for eviction; the
foreground-eval baseline site calls it in place of the prior inline set.
The labeled family is added to evict_round_series_before so its stale
labelsets prune on the same cutoff as the other per-round series.

Emitting per-round lets the gateway attribute the right baseline to the
right cycle, freeze it after finalize, and naturally exclude a warming-up
validator that has no value for that round (the gateway averages across
validators, dropping 0/absent).

Tests: helper sets both gauges with the round's id; labeled value is stable
per round; eviction test extended to cover the baseline family. Full
telemetry suite green in the stable image.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@george-connito
george-connito merged commit 9e8dda6 into master Jul 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants