Repository navigation
census: gap_prevalence census half reports programs over the corrected basis (40 -> 39) (Part of #7901, #7709) - #7926
Conversation
…d basis (40 -> 39) (Part of #7901, #7709) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
PR #7926 @ 82f2664: 2 failed check(s) == ground-truth (failure) -- real == ground-truth part 3/4 (failure) -- real |
|
CI shepherd: the head of this PR (bece11c) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
census: gap_prevalence census half reports
programsover the corrected basis (40 -> 39) (Part of #7901, #7709)Checklist: done [c:eeeecaa2]
What
The committed census summary and page still counted the data-only copy member as a program (
programs: 40, arefused: UnitRefused: no PROGRAM-IDgap row and shape).gap_prevalence.drop_copy_member_gap(called fromreowner, so every committed-summary read) derives the corrected basis from the committed aggregates: it drops that program, gap row, shape and close-next step, re-derives coverage shares andupper_bound, and setscopy_members. A no-op when the gap is absent. The summary and page are regenerated withgap_prevalence.py --write: census 40 -> 39, combined 169 -> 168, "Copy members: 1 listed, not counted in the 39 programs", accounted 36 / 39.Facts checked: no census clones on this box (
CICS_CENSUS_CORPORAunset), so a fresh census survey cannot run; the derivation is exact for this case (the copy member was one program whose only gap was the dropped one, ranked 15th of 15, so no top-N/close-next pick shifts). A fresh survey (item 3) must reproduce it; fresh surveys already skip the member (#7921). No burned-estate summary carries a copy member.Class / Sibling gaps
Class: a committed gap_prevalence summary produced before copy members were listed counts the member as a program. Handled: census summary, page, combined totals, owner note wording (reword of the old "40-program basis" text), via one reader path for all summaries. Test covers the whole input class: equivalence with a survey without the member across eras, no-op, idempotence, committed fixture + page.
Sibling gaps: item 3 (re-survey and post the row on #7709) needs census clones on the owner's box; no burned-estate program needs it. Limit: if the copy member were the only program of an estate the derived
estateslist could differ from a fresh survey (not the case here).Overlap: PR #7906 touches the same four files; merge order is its call, a conflict resolves by regenerating the summary and page.
Tests / gates
pytest tests/tools/test_gap_prevalence.py test_cics_census_copy_member_7901.py test_blocker_report.py184 passed;audit_check.pyclear;pr_gates --fast9/9.--ratchetsnot run (no engine/golden/ledger change).🤖 Generated with Claude Code