Skip to content

Name spanned RECFM=VS exports (segment-coded RDWs) as rdw-spanned (Part of #8412) - #8780

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261120T1426Z
Nov 20, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261120T1426Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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_framing required the two RDW reserved bytes to be 00 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_chain now accepts a segment code 0-3 (second reserved byte still zero) when asked; a chain with a non-zero segment code is named rdw-spanned, the aperture refusal reads "RDW-SPANNED length-prefixed records". All-zero chains still return rdw, 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_table used-by), both depend on which burned corpora are present in this worktree's GITGALAXY_MAINFRAME_CORPORA and 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

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 20, 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 20, 2026 14:42
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 20, 2026 14:47
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit 449f343 into main Nov 20, 2026
101 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8412-20261120T1426Z branch November 20, 2026 15:27
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