Skip to content

census: cics_census.py check, counts-only HEAD survey vs the cached baseline (Part of #7961) - #7969

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7961-20261107T0014Z
Nov 7, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7961-20261107T0014Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7961. Checklist: partial -- check shipped; the blocker-slice / worker-brief edits (line 2) and the two skill rules (line 3) remain.

What

cics_census.py check (new tests/tools/census_check.py, wired in cics_census.py): surveys the worktree HEAD with the census corpora (nice -n 10, --jobs 2, gated on box_status.py GREEN, else exit 3; --force skips the gate), compares with the cached origin/main baseline and prints counts only: whole a -> b (census, burned), accounted c -> d (whole, or only named source defects, same rule as gap_prevalence), gap rows gone / new by scrub_key. The survey dir is deleted afterwards; run_det_survey's own prints (census roots, log paths) are swallowed. A line that still names a census repo, clone path, corpus or program is refused (exit 1, nothing printed). census_nightly.counts_only now shares its matcher (names_census), behaviour unchanged.

Class / Sibling gaps

Class: a census measurement that needs a merge to be seen, or that could expose census names. Handled here: the HEAD-with-census comparison and its name refusal, reusing scrub_key, is_named_defect and the nightly's matcher. Sibling gaps: none in code. Remaining slices: (2) blocker-slice SKILL.md and gitgalaxy-pr-worker.md: run check before the PR, paste the line under ## Census, drop the HEAD trap (SKILL.md "Traps"); (3) skill rules (a) confirm with the tool that a class is the only gap of the programs it would free before a 4th PR on it, (b) record where the gap's data flows before forecasting. No burned-estate program needs either.

Tests / gates

tests/tools/test_census_check.py (13 tests, fixtures only, invented names, no census paths): measure/compare, scrubbing, name refusal, box gate, no-census / missing baseline, failed survey withholds details, subcommand wiring. Plus the existing cics_census / census_nightly / change_classifier tests. audit_check.py all clear; pr_gates.py --fast 9/9. docs_read_by_tests.txt regenerated (change_classifier.py --write). Not run: a real survey (heavy, box-gated); no gitgalaxy/ change, so no golden bless.

Facts checked: baseline_dir / baseline_census / survey_runs / run_det_survey / load_surveys reused as they stand; no tests/tools README exists, doc-refs reports no new finding.

Cross-repo: none.

🤖 Generated with Claude Code

…us vs the cached baseline (Part of #7961)

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 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 00:39
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 7, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 7, 2026 00:42
@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