Skip to content

gap_prevalence: coverage if closed over all estates together (Part of #5865) - #7136

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5865-20261030T1224Z
Oct 30, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5865-20261030T1224Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

gap_prevalence (#5865) gave "coverage if closed" only per scope; the All-estates ranking, the headline table, had none. This adds it for both scopes together.

  • rank() stores shapes: the programs that still have a gap, grouped by the exact (scrubbed, name-free) gap set, with per-era counts. Present only when non-empty.
  • combined_coverage() re-ranks over both scopes' shapes: top-N of the all-estates order and the greedy close-next order. Programs add across scopes (estate labels never overlap). Result on the committed data: 134 / 169 whole today, 143 after the top gap, 163 (96.5%) after ten greedy steps, all upper bounds (refusing gaps).
  • The page's All-estates section now opens with the headline, the top-N table and the close-next table. The per-scope sections are unchanged (only shapes added to both summaries; regenerated from the same survey runs, no other summary field moved).

Burned estates only for case work; census is aggregates under opaque labels, shapes carry only scrub_key vocabulary.

Class / Sibling gaps

Class: a coverage-if-closed figure that existed per scope but not for the all-estates ranking, because the committed summaries lacked the per-program gap sets (name-free shapes fix that for every scope combination). Members handled here: combined top-N, combined greedy order, combined headline. Sibling gaps: a combined needs-together tail (not here: it needs per-estate counts that shapes does not keep; small follow-up if wanted). No burned program needs any new gap. Validating the upper bounds against actual translation of the census programs is the remaining part of the item's premise and is not measurable here.

Checklist: done [c:19a53848]

Tests

tests/tools/test_gap_prevalence.py: shapes account for every program with a gap; combined whole equals per-scope sums for one closed set; committed summaries combine and render (3 headlines).

🤖 Generated with Claude Code

…me-free gap-set shapes (Part of #5865)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 30, 2026 12:47
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 30, 2026 12:49
@squid-shepherd
squid-shepherd Bot merged commit 66ed3f9 into main Oct 30, 2026
62 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/5865-20261030T1224Z branch October 30, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant