Skip to content

census: --blind-root measurement path for the blind trial (Part of #8073, #8077) - #8080

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8077-20261108T0414Z
Nov 8, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8077-20261108T0414Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8073. Closes #8077.

Checklist: none named in the brief.

What

--blind-root DIR on the three measurement tools, so a blind-trial merge is measured like the census nightly without calling run_det_survey by hand (T0's workaround):

  • cics_census.py survey [--baseline] --blind-root DIR: surveys only the blind corpora, into its own cache <scratch>/blind-cache/<sha> (meta.json says blind, never census). Refuses a root holding a census or burned corpus (reported by count, never by name) and contradicts --census-corpora, --no-census, --crucible, --corpora. history show --generated --series blind reads the new series.
  • census_nightly.py --after-merge SHA --blind-root DIR: same box gate, origin/main ancestry check, stamp (blind- prefix) and counts_only as the census run; no provisioning; publishes one counts-only line to docs/language_status/blockers/blind_history.jsonl on generated. The estate's directory names and root path join the forbidden list. --blind-root without --after-merge is refused.
  • gap_prevalence.py --census-survey DIR --blind-root DIR: whole / accounted / coverage-if-closed counts and the scrubbed gap table to stdout, nothing written, --write refused; the era scanner's estate-name announcement is silenced at fd level.

Evidence (counts only)

T0 at d675a619c through the new path: survey --baseline --sha d675a619c --blind-root ... then gap_prevalence --census-survey <blind-cache>/<sha> --blind-root ...: 58 programs, 14 translate whole, accounted 22 / 58 (matches the issue). The output was checked for the estate name: none.
Tests: tests/tools/test_blind_root_8077.py (21), plus census_nightly / cics_census / gap_prevalence / census_check suites green; audit_check.py all clear.

Class / Sibling gaps

Class: census measurement tools that hard-require the exact 9-repo census root cannot survey, record or aggregate a blind estate through the supported CLI. Members handled here: cics_census survey (plain and --baseline), census_nightly --after-merge, gap_prevalence --census-survey, history show --series blind.
Sibling gaps: cics_census.py check (census_check) and preflight still assume the census root (preflight already takes the blind dir via --census-corpora); no burned-estate program needs either. The "per-merge measurement runs like the census nightly" trigger (churn calling --after-merge --blind-root after a trial merge) is promoter-bot-side, as for the census run.

Cross-repo

None: engine-side tooling only; no companion PR.

Lessons for agents

  • gap_prevalence.census_eras -> feature_inventory.scan_estate prints Scanning estate: <name> on stdout/stderr: any blind-estate caller must silence it (gp._silenced()).
  • A new test that names a docs path literal (page.md) lands in docs_read_by_tests.txt and fails test_change_classifier.test_the_committed_list_is_fresh: avoid the literal or regenerate with change_classifier.py --write.

Doc-refs fixes: none.

🤖 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 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 8, 2026 04:42
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 04:42
@squid-shepherd
squid-shepherd Bot merged commit a464a9b into main Nov 8, 2026
63 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8077-20261108T0414Z branch November 8, 2026 05:02
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.

Blind trial #8073: measurement tooling -- census_nightly / cics_census / preflight accept the blind-estate root

1 participant