Skip to content

gap_prevalence: clone defect needs an independent file search (Part of #8113) - #8145

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8113-20261108T1647Z
Nov 9, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8113-20261108T1647Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8113.

What

The missing copybook: clone defect (not in the clone) row (a named source defect, so those programs count as accounted) took its only evidence from the resolver under test. It now needs an independent plain file search of the clone (clone_member_index: whole name, stem and part before the first dot, any case, any extension or none, any depth, .git skipped; in memory, names never printed) to find no member either.

  • A gap the search finds becomes missing copybook: resolver defect (member found by file search), owned by Pre-draw gate: independent copybook-resolution census (engine resolver vs plain file search) #8111 and not accounted.
  • With no index (a re-render, or no clones given) the label is unverified, also not accounted.
  • measure_census (census and --blind-root) record clone_defect_checked / clone_defect_found counts, only when non-empty; the blind run prints the same counts, no names. The page renders the line.
  • Guard: clone_defect_violations(summary) fails on an unchecked copybook gap; a test runs it on the committed census summary.

Class / Sibling gaps

Class: a source-defect label ("clone defect") whose evidence is the engine's own resolver, against rule 10's independent-evidence requirement. Covered here: both measure paths (census, blind), ambiguous copybook gaps, every case/extension/depth spelling of a member (parametrized tests), the no-index case. Sibling gaps: burned measure() keeps full member names as unowned and carries no named-defect label (no burned program needs it); other source-defect rows' evidence unchanged (rule 10 review per row).

Census

Re-measure NOT run: cics_census.py check refused (box YELLOW, needs GREEN) and I did not force it; the committed census summary is unchanged except the owner text, so its accounted count is unchanged until a survey re-run with --census-corpora. Blind estate re-measure also pending (gap_prevalence.py --blind-root ... --census-survey ... now prints the checked/found counts). Expected effect: accounted may drop by the programs whose clone-defect label was the resolver failing (6 of 8 at T0).

Remaining slices

Re-run census + blind surveys on a GREEN box, gap_prevalence.py --census-survey ... --census-corpora ... --write, and report the accounted before/after.

Gates

test_gap_prevalence + blocker_report + cics_census_baseline + copy_member_7901 (289 passed); tree-wide guards pass; audit_check.py all clear; pinned ruff format clean. pr_gates --fast not run.

🤖 Generated with Claude Code

…file search to find no member (Part of #8113)

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 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 23:57
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 23:57
@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 9, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 06e354c into main Nov 9, 2026
65 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8113-20261108T1647Z branch November 9, 2026 00:13
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