Skip to content

Aperture names a RECFM=V export when it drops it as binary (Part of #8412) - #8688

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8412-20261119T1908Z
Nov 19, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8412-20261119T1908Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8412

Summary

#8562 detects a RECFM=V export (source_text.rdw_framing) and counts it in the census preflight, but the engine scan still dropped such a file with the generic reason Blocked (Binary Format Detected). This slice makes the aperture name it: when Gate 3.1 drops a file as binary and its raw head chains as RDW or BDW+RDW, the reason becomes Blocked (RECFM=V export: RDW|BDW+RDW length-prefixed records; download the member as text or convert it to RECFM=F/FB).

Design: refuse by name, no decode. Classification stays binary_payload, the file is still out of scope, so no scan output moves. ApertureFilter._name_rdw_export reads at most 64 KB + 1 byte of the file (the sniff's sample, one byte over so a longer file reads as cut) and only on the already-blocked path.

Class / Sibling gaps

Class: a variable-length (RECFM=V / VB) host export that the engine's aperture drops. Members:

Member Status
RDW records, EBCDIC (cp037, cp1047) and ASCII / cp1252 refused by name (test)
BDW + RDW blocked (cp037, ascii) refused by name (test)
Export longer than the 64 KB sample refused by name (test)
Ordinary binary, broken RDW chain keep the generic reason (test)
Plain text stays in scope (test)
Detection and census preflight count landed in #8562
Decoding an RDW export into records Sibling gap: needs the estate's declared code page, a record-to-line rule and an aperture admit; a different mechanism, changes scan output and goldens. Not here.
Spanned records (non-zero RDW segment-control bytes) Sibling gap: not matched by the sniff; no fixture in any burned estate.

Remaining slices

  1. Decode path for RDW exports (source_text.py, aperture admit, tests, golden re-bless): once the estate declares a code page.

Checklist: partial [RECFM=V exports] -- detected (#8562), counted in the preflight, and now named at the dropping gate; nothing decodes the export yet (slice above).

Gates

  • tests/core_engine/test_aperture_rdw_refusal_8412.py (new, 10 pass) with test_aperture.py and test_rdw_framing_8412.py: 62 passed, 1 xfailed (pre-existing).
  • pr_gates.py --fast: lint failed once on an E402 I introduced; fixed, ruff_audit.py --ci clean, ruff format --check clean on both files. The other gates in that run passed (audits, secrets, xray, gen-docs, derived, workflows, gauntlet, affected). I did not re-run the whole --fast after the one-line fix.
  • crucible_check.py (no update), both legs: PASS, zero diff.
  • --ratchets not run: no golden, ledger or pin changed.

Doc-refs fixes: none.

🤖 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 19, 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 19, 2026 19:55
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 19:55
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 19, 2026 20:05
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8688 @ 6aadf6c: 2 failed check(s)

== crucible (failure) -- flake
https://github.com/squid-protocol/gitgalaxy/actions/runs/44603302706/job/135846075485
repro: tests/tools/box/heavy-run.sh python -m pytest -q tests/cics_crucible && tests/tools/box/heavy-run.sh python tests/tools/cics_crucible.py --ci --out /tmp/gitgalaxy-scratch/ci-digest/cics
errors:
CICS crucible: 620 pass, 637 fail, 51 unsupported (1308 cells, 4 shards)
##[error]Process completed with exit code 1.
log tail:
Beginning upload of artifact content to blob storage
Uploaded bytes 42877
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 1836e5d09d6014f798ddd061729b185f9ac0f1cfe3279cee3515216ddfbe88d0
Finalizing artifact upload
Artifact cics-crucible-results successfully finalized. Artifact ID 14569658314
Artifact cics-crucible-results has been successfully uploaded! Final size is 42877 bytes. Artifact ID is 14569658314
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/44603302706/artifacts/14569658314
##[group]Run echo "measure: success, runner-tests: failure"
echo "measure: success, runner-tests: failure"
[ "success" = "success" ] && [ "failure" = "success" ]
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
PYTHONUTF8: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
measure: success, runner-tests: failure
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/afedb96c-a607-4263-8c6e-a39c6c826358' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== runner-tests (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44603302706/job/135840199175
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/cics_crucible/test_cics_crucible_runner.py::test_the_fixture_runs_through_every_side tests/cics_crucible/test_det_port_bytes_4965.py::test_the_crucible_proves_the_byte_overload_and_kills_its_assignment tests/cics_crucible/test_getmain_pointer_det_port_6876.py::test_the_crucible_passes_every_scenario_on_the_java_ported_and_facade_sides tests/cics_crucible/test_hc_file_read_set_det_port_6876.py::test_each_scenario_passes_on_both_sides tests/cics_crucible/test_hc_file_unlock_det_port_6876.py::test_each_scenario_passes_on_both_sides tests/cics_crucible/test_load_release_det_port_6876.py::test_the_crucible_passes_every_scenario_on_the_java_ported_and_facade_sides tests/cics_crucible/test_receive_retrieve_set_det_port_6876.py::test_short_input_passes_and_the_others_differ_only_at_the_log_item tests/cics_crucible/test_return_channel_carry_5005.py::test_the_crucible_proves_the_carry_and_kills_its_removal tests/cics_crucible/test_web_client_det_port_4767.py::test_the_crucible_passes_both_scenarios_on_the_cobol_stub_and_both_java_sides tests/cics_crucible/test_web_parse_url_det_port_4767.py::test_the_crucible_passes_every_scenario_on_the_java_ported_and_facade_sides tests/cics_crucible/test_web_server_det_ports_6876.py::test_the_crucible_passes_every_scenario_on_the_cobol_stub_and_both_java_sides[gt-http-inbound] tests/cics_crucible/test_web_server_det_ports_6876.py::test_the_crucible_passes_every_scenario_on_the_cobol_stub_and_both_java_sides[gt-web-server-receive] tests/cics_crucible/test_web_server_det_ports_6876.py::test_the_crucible_passes_every_scenario_on_the_cobol_stub_and_both_java_sides[gt-web-server-send]
errors:
fail-on-cache-miss: false
"fx-text-chain/three-visits/cobol-stub": "pass", "fx-text-chain/three-visits/java": "fail",
"fx-text-chain/three-visits/java-facade": "fail",
"fx-ts-queue/seeded/cobol-stub": "pass", "fx-ts-queue/seeded/java": "fail",
"fx-ts-queue/seeded/java-ported": "fail", "fx-ts-queue/seeded/java-facade": "fail"} # fmt: skip
E AssertionError: assert {'fx-text-cha...: 'fail', ...} == {'fx-text-cha...: 'fail', ...}
E {'fx-ts-queue//forge-compile': 'fail'} != {'fx-ts-queue//forge-compile': 'pass'}
E {'fx-text-chain//forge-compile': 'fail'} != {'fx-text-chain//forge-compile': 'pass'}
E {'fx-text-chain/three-visits/java-ported': 'fail'} != {'fx-text-chain/three-visits/java-ported': 'pass'}
E + 'fx-text-chain//forge-compile': 'fail',
E 'fx-text-chain/three-visits/java': 'fail',
E 'fx-text-chain/three-visits/java-facade': 'fail',
E + 'fx-text-chain/three-visits/java-ported': 'fail',
E + 'fx-ts-queue/
/forge-compile': 'fail',
E 'fx-ts-queue/seeded/java': 'fail',
E + 'fx-ts-queue/seeded/java-facade': 'fail',
E 'fx-ts-queue/seeded/java-ported': 'fail',
E - 'fx-ts-queue/seeded/java-facade': 'fail',
tests/cics_crucible/test_cics_crucible_runner.py:830: AssertionError
cobol-stub:pass 1, engine-facts:pass 1, forge-compile:fail 1, java-facade:fail 1, java-ported:fail 1, java:fail 1
E AssertionError: assert ({'back-and-fix': {'case': 'pc-wizard', 'trap': 'pseudo-conversational', 'scenario': 'back-and-fix', 'side': 'java-faca...e': 'pc-wizard', 'trap': 'pseudo-conversational', 'scenario': 'clear-and-bad-amount', '
E 'fail'
E + 'fail',
tests/cics_crucible/test_det_port_bytes_4965.py:58: AssertionError
java-facade:fail 6
... 173 more
log tail:
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
MAVEN_ARGS: -ntp
GITGALAXY_ORACLE_PREBUILT: 1
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-cics-crucible.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 886
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is e64dd44748df1dcc496f9722f70340322aea3c1f7affe7fd151cfe1096461c62
Finalizing artifact upload
Artifact test-times-cics-crucible successfully finalized. Artifact ID 14568793000
Artifact test-times-cics-crucible has been successfully uploaded! Final size is 886 bytes. Artifact ID is 14568793000
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/44603302706/artifacts/14568793000
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/c4ee765f-5da5-415b-86e1-124915191661' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 19, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 20:19
@squid-shepherd squid-shepherd Bot removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 19, 2026
@squid-shepherd
squid-shepherd Bot merged commit d9a7c0c into main Nov 19, 2026
61 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8412-20261119T1908Z branch November 19, 2026 20:34
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