Skip to content

feat: show aggregates per slot and per epoch with their aggregators and timing - #949

Open
barnabasbusa wants to merge 13 commits into
bbusa/attestation-arrival-epochfrom
bbusa/aggregate-arrivals
Open

barnabasbusa wants to merge 13 commits into
bbusa/attestation-arrival-epochfrom
bbusa/aggregate-arrivals

Conversation

@barnabasbusa

@barnabasbusa barnabasbusa commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

The propagation views show when single attestations arrive but say nothing about the aggregates built from them, so a slow or silent aggregator client is invisible. This adds every gossip aggregate from xatu's `libp2p_gossipsub_aggregate_and_proof` (aggregator index, committee, bits, size) to the slot propagation tab, as a per-committee timeline and a table with first seen, delay against the aggregate deadline, the median over the nodes whose beacon API reported the same aggregate (matched by bits from `beacon_api_eth_v1_events_attestation`), committee coverage, the latest included single attestation, attestations left out and size. The epoch page gets the sum over all aggregates: one dot per aggregate by slot and arrival time, and a per aggregator client table with counts, p50/p90 and how often it was more than 1s late. `electedAggregators` returns nothing here; forks that publish aggregators ahead (pq's `aggregation_committee_window`) fill it in to mark elected aggregators that sent no aggregate. xatu writes the gossip aggregation_bits without the bitlist length bit (ethpandaops/xatu#974), so they are read as raw member bits up to the committee size, which stays correct once it writes the full bitlist.

slot
epoch

redpandabot[bot]

This comment was marked as outdated.

@redpandabot redpandabot Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

The PR adds gossip-aggregate propagation to the slot and epoch propagation views, and the two new commits add a per-client/per-node epoch drill-down, per-column explanations and full-width layout; the earlier colspan mismatch in the slot aggregate table is now correct (3/4 leading cells + 8 spans match the 11/12 headers). Three earlier findings still hold: the epoch scatter clips aggregates seen before the send time, a failed aggregate query is cached as "no aggregates", and empty-but-non-nil arrivals mark every committee as saturated.

Issues

  • 🟡 templates/_shared/arrival_chart.html:611 — epoch aggregate dots before the deadline-500ms are clipped out of the chart — see the thread on that line
  • 🟡 handlers/slot_attesters.go:418 — a failed aggregate query is cached as "no aggregates" for the full page timeout — see the thread on that line
  • 🟡 handlers/aggregates.go:279 — empty-but-non-nil arrivals make every committee look saturated — see the thread on that line

Reviewed @ a6bbfb63
When threatened, a red panda stands on its hind legs to look bigger. It does not look bigger.

Comment thread handlers/aggregates.go
included := position < len(members) && members[position]
seenMs, seen := arrivals[index]

if !included && (arrivals == nil || seen) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 empty-but-non-nil arrivals make every committee look saturated

When the arrival query succeeds but returns no rows, arrivals is an empty map, so seen is false for every member and coversSeen never becomes false — an aggregate covering a single member marks the whole committee saturated and every elected aggregator without an aggregate is reported as "redundant / not relayed" instead of "not seen". Only the nil case (no arrival data at all) is treated as unknown, so the two representations of "no singles seen" give opposite labels.

@redpandabot

redpandabot Bot commented Nov 26, 2026

Copy link
Copy Markdown

Summary

The PR adds xatu gossip aggregates to the slot and epoch propagation views, and the latest commit replaces hover re-renders with in-place focus, splits the aggregate table styling and tints slots with unhit elected aggregators. The rendering changes in that commit hold up, but three earlier issues remain: the epoch scatter's lower bound clips early aggregates, both builders cache a failed aggregate query as an empty result, and the nil-vs-empty arrivals distinction at the coverage check does not do what it says.

Issues

  • 🟡 templates/_shared/arrival_chart.html:611 — epoch aggregate dots seen before the deadline-500ms are clipped out of the chart — see the thread on that line
  • 🟡 handlers/slot_attesters.go:417 — a failed aggregate query is cached as "no aggregates" for the whole page timeout — see the thread on that line
  • 🟡 handlers/aggregates.go:279 — empty-but-non-nil arrivals make every committee look saturated — see the thread on that line
  • 🟢 templates/_shared/arrival_chart.html:590 — tooltips hardcode a 6s aggregate send time — These strings (also the p50 tip at line 580) say aggregates are sent 6s into the slot, while aggregateDeadlineMs defaults to AGGREGATE_DUE_BPS 6667, i.e. 8s of a 12s slot, and only the gloas path moves it to 6s. Since the actual value is in data.aggregate_due_ms, saying "the aggregate send time" without the number avoids telling readers the deltas are 2s worse than they are.

Reviewed @ 250d9aa4
When threatened, a red panda stands on its hind legs to look bigger. It does not look bigger.

…every arrival table and drop the elected column
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.

1 participant