Skip to content

cics_census: refuse a bad census root; --no-census reports 'not surveyed' (Part of #6064) - #6124

Merged
squid-protocol merged 1 commit into
mainfrom
churn/6064-20261023T0151Z
Oct 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/6064-20261023T0151Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6064 (parts 2-4; part 1, the scheduled owner-box census run, is a design note on the issue, not repo CI).

What

  • Part 2: survey (plain and --baseline) and blockers call check_census_root: the census root must hold exactly equivalence_env.census_repos(), each with at least one COBOL program. Otherwise exit non-zero naming missing:, unexpected: and no COBOL program: corpora (a main + scratch root now refuses). usage / compare stay lenient (ad-hoc option counts).
  • Part 3: a run with --no-census that counted no non-burned program prints non-burned: not surveyed in the blockers header; its history line carries null non-burned counts and census_surveyed: false; history show prints not surveyed. If local non-burned corpora were counted, their counts are still shown (they are real). Old history lines are untouched.
  • Part 4: test that census_names() / census_repos() and BURNED_NAMES do not overlap.

Class table

member status
survey --out, survey --baseline, blockers (dir) strict, this PR
blockers --baseline / --generated header via the census_surveyed flag
history append/show, publish null-aware
usage, compare lenient by design

Tests

tests/tools/test_cics_census.py, test_cics_census_baseline.py (77 pass; plain pytest from another cwd too). audit_check.py all clear. No parsing code touched, no golden bless.

Cross-repo

None.

🤖 Generated with Claude Code

…nsus (Part of #6064)

survey and blockers now require the census root to hold exactly
equivalence_env.census_repos(), each with a program, and name the missing /
unexpected / empty corpora. A run that counted no non-burned program reports
"non-burned: not surveyed" (header and history line, null counts) instead of 0 / 0.
A test pins the census and burned sets as disjoint.

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 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 23, 2026 02:01
@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 02:11
@squid-protocol

Copy link
Copy Markdown
Owner Author

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