Skip to content

Census: a clone holding a RECFM=V export never earns the clone-defect label (Part of #8412) - #8839

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261121T0527Z
Nov 21, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261121T0527Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8412.

Checklist: done [c:8e893dfa] (detect + refuse by name; the decode path is deliberately not built, the line allows "either decode or refuse").

What

RECFM=V detection and refusal were already on main: source_text.rdw_framing (RDW, BDW+RDW, spanned VS; #8562, #8780), the aperture's named refusal "Blocked (RECFM=V export ...)" (#8688), and the preflight count (gap_prevalence.rdw_files). The one hole left: the census labelled a missing copybook "clone defect" or "resolver defect" while the clone held an RDW export that the aperture had dropped, so the refused file could be the very member (rule 10: no source-defect label without evidence).

This adds gap_prevalence.RDW_HELD ("missing copybook: unverified (clone holds a RECFM=V export)"), the same treatment archives got (#8419): verified_copybook_key(..., rdws) and measure_census(..., clone_rdws) refuse the clone-defect and resolver-defect labels for such a clone, counted via census_rdws at both call sites. Authored test uses an invented member (PAYREC) framed with RDWs in cp037.

Class / Sibling gaps

Class: files in a clone that hide COPY members from both the engine and the independent file search, so a clone-defect label is unsafe. Members: archives (handled, #8419, #8675), RECFM=V / VB / VS exports (handled now: named refusal in the aperture, counted in preflight, label refused here), undeclared raw EBCDIC (handled, #8559). Sibling gaps: decoding an RDW export to text (needs a declared code page, a record-to-line rule, an aperture admit and a golden re-bless; its own item); unpacking archives (listed in the issue as a later line); TERSE has no magic-byte signature, so it is counted by name only.

Remaining slices

Decode path for RDW exports (source_text decode with --source-encoding, aperture admit, golden re-bless).

Gates

pytest tests/tools/test_gap_prevalence.py tests/tools/test_cics_preflight.py 245 passed; audit_check.py all clear; ruff format --check clean. Not run: pr_gates --ratchets (no engine, golden or det change; test-tool files only).

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 21, 2026 05:32
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 21, 2026 05:32
@squid-shepherd
squid-shepherd Bot merged commit ffadb5f into main Nov 21, 2026
63 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8412-20261121T0527Z branch November 21, 2026 05:51
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