Repository navigation
census: cics_census.py check, counts-only HEAD survey vs the cached baseline (Part of #7961) - #7969
Merged
Merged
Conversation
…us vs the cached baseline (Part of #7961) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #7961. Checklist: partial --
checkshipped; the blocker-slice / worker-brief edits (line 2) and the two skill rules (line 3) remain.What
cics_census.py check(newtests/tools/census_check.py, wired incics_census.py): surveys the worktree HEAD with the census corpora (nice -n 10,--jobs 2, gated onbox_status.pyGREEN, else exit 3;--forceskips 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 asgap_prevalence), gap rows gone / new byscrub_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_onlynow 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_defectand the nightly's matcher. Sibling gaps: none in code. Remaining slices: (2)blocker-sliceSKILL.md andgitgalaxy-pr-worker.md: runcheckbefore 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.pyall clear;pr_gates.py --fast9/9.docs_read_by_tests.txtregenerated (change_classifier.py --write). Not run: a real survey (heavy, box-gated); nogitgalaxy/change, so no golden bless.Facts checked:
baseline_dir/baseline_census/survey_runs/run_det_survey/load_surveysreused as they stand; no tests/tools README exists, doc-refs reports no new finding.Cross-repo: none.
🤖 Generated with Claude Code