Repository navigation
Name spanned RECFM=VS exports (segment-coded RDWs) as rdw-spanned (Part of #8412) - #8780
Merged
Merged
Conversation
…rt of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
This was referenced Nov 20, 2026
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: partial [c:8e893dfa] -- detect-and-refuse-by-name was already on main (#8562 sniff and census count, #8688 aperture refusal reason, both with authored fixtures); this PR closes the spanned-record gap in that sniff. A DECODE path (declared code page, record-to-line rule, aperture admit, golden re-bless) is not built.
What changed
rdw_framingrequired the two RDW reserved bytes to be00 00, so a RECFM=VS (spanned) export, whose segment descriptor carries a segment code 1-3 in the first reserved byte, was not named and fell through as plain binary._rdw_chainnow accepts a segment code 0-3 (second reserved byte still zero) when asked; a chain with a non-zero segment code is namedrdw-spanned, the aperture refusal reads "RDW-SPANNED length-prefixed records". All-zero chains still returnrdw, BDW+RDW detection is unchanged.Files (2 hand-written):
gitgalaxy/core/source_text.py,tests/core_engine/test_rdw_framing_8412.py(authored spanned fixture in cp037 and ascii, bad segment code, bad reserved byte, plain RDW keeps its name).Class / Sibling gaps
Class: RECFM=V family exports whose records carry length-prefix descriptors, which the engine must name instead of decoding as text. Members: RDW (handled, #8562/#8688), BDW+RDW (handled), spanned segment-coded RDW (handled here). Sibling gaps: a DECODE path for RDW exports (needs a declared source encoding, an aperture admit and a golden check; different mechanism, own queue item); RECFM=U exports carry no prefix and have no structural signature to sniff (not detectable by this mechanism); reassembling spanned segments into one record is part of the decode path.
Gates
tests/core_engine/test_rdw_framing_8412.py+test_aperture_rdw_refusal_8412.py: 33 passed.pr_gates --fast: 8/9 gates pass; the "affected" gate ran 5952 passed, 2 failed (test_bms_occurs_grpname_census_5116,test_runtime_option_tableused-by), both depend on which burned corpora are present in this worktree'sGITGALAXY_MAINFRAME_CORPORAand neither touches the RDW code; CI is authoritative.--ratchets/crucible not run: the aperture and detector paths are unchanged for any file the sniff did not already name, and the crucible corpora contain no RDW exports (not measured here).🤖 Generated with Claude Code