Skip to content

census: cics_census.py preflight, counts-only checks before a blind trial (Part of #7964) - #7971

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/7964-20261107T0023Z
Nov 7, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/7964-20261107T0023Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7964

Checklist: done [c:preflight]

What

cics_census.py preflight [--census-corpora DIR] [--root DIR] [--t0 SHA]: counts only, exit 1 on any finding. Logic is in the new tests/tools/cics_preflight.py; cics_census.py gains the subcommand and census_root_problems() (the non-raising half of check_census_root, message unchanged).

Checks: programs vs copy members (copy_member_reason; zero programs fails); distinct COPY names whose 3-letter prefix is in neither the estate's members nor _COPYBOOK_FAMILIES; every #N owner in gap_prevalence.OWNERS is open (accounted rows, named source defect / product copybook frontier, skipped; a gh failure counts as not open); census dir holds only the census corpora; T0 SHA given (--t0 or census-t0.json in the scratch root) and resolves in git. Output names no corpus, program or member (a test pins it).

Class / Sibling gaps

Class: census configuration skew that silently changes a blind-trial result (copy members counted as programs, unknown copybook prefixes, closed gap owners, stray dirs in the census root, unrecorded T0). All five members are checked here, each with its own fixture test.
Sibling gaps: the first real run finds 10 of 16 gap-map owners closed (#4098, #4270, #4462, #5042, #5106, #5119, #5121, #5866, #7525, #7845): a re-owner pass over gap_prevalence.OWNERS (changes the generated gap page, needs the blocker owner's call; no burned program is blocked by this tool). Checklist items 2-4 of #7964 (skill, source-defect rule, ask-the-customer list) are separate slices.

Facts checked

  • pytest tests/tools/test_cics_preflight.py test_cics_census.py test_cics_census_copy_member_7901.py: 58 passed; also plain pytest from /tmp: pass.
  • audit_check.py: all clear. Real run on the local census root: copy members 1, unknown prefixes 0, census dir clean, T0 ok, owners finding as above.
  • No engine change, so no golden bless; no workflow change.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 7, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 7, 2026 01:24
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 7, 2026 01:25
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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