Repository navigation
Census: a clone holding a RECFM=V export never earns the clone-defect label (Part of #8412) - #8839
Merged
Merged
Conversation
… label (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
13 tasks done
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 #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)andmeasure_census(..., clone_rdws)refuse the clone-defect and resolver-defect labels for such a clone, counted viacensus_rdwsat 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.py245 passed;audit_check.pyall clear;ruff format --checkclean. Not run:pr_gates --ratchets(no engine, golden or det change; test-tool files only).🤖 Generated with Claude Code