Skip to content

det: ACCEPT FROM SYSIN reads one stdin record (Part of #5106) - #5372

Merged
squid-protocol merged 4 commits into
mainfrom
churn/5106-20261017T2045Z
Oct 17, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/5106-20261017T2045Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5106 (accept-sysin).

What

ACCEPT identifier FROM SYSIN now translates: gen.py emits Accept.sysin(target, CS); the runtime (cobolrt/Accept.java) reads one stdin record per ACCEPT (line end and CR dropped) and moves it as an alphanumeric MOVE (short card space-padded, long one truncated). No record left is refused by name (IBM leaves it undefined). Other ACCEPT sources still refuse by name; DATE/DAY/TIME unchanged. program.py imports Accept for the new call.

Class table

Member Status
ACCEPT FROM SYSIN this PR (translate + Java runtime)
CALL MVSWAIT (site-routine) remaining slice; COBSWAIT stays refused until it lands
CBPAUP0C ACCEPT SYSIN same mechanism, now translates; program still blocked by IMS/DLI
ACCEPT FROM CONSOLE/ENVIRONMENT out of scope, no burned program

Cross-repo

None.

Evidence

tests/cobol_mainframe/test_det_accept_sysin_5106.py (12 pass, ~5 s): translation wiring, other sources unchanged, Java runs for exact/short/long/CRLF/two records/no trailing newline, exhausted input refused. pr_gates --fast 6/6, --ratchets 8/8 (ports, ground-truth, completeness, fact-crosscheck unchanged). Golden not run: no extraction code touched.

Not proven against the oracle: the harness has no SYSIN feed to GnuCOBOL, so this is Java-runtime evidence only (stated in the refusal-map note). The oracle feed goes with the MVSWAIT slice.

Remaining slices

CALL MVSWAIT: LIBRARY entry in gen.py, cobolrt/le/Mvswait.java, C twin under tests/equivalence, COBSWAIT case, SYSIN feed in tests/tools/equivalence.py.

🤖 Generated with Claude Code

Accept.sysin moves the next record to the target as an alphanumeric MOVE;
no record left is refused by name. COBSWAIT still waits on CALL MVSWAIT.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 17, 2026 20:58
@squid-protocol
squid-protocol enabled auto-merge (squash) October 17, 2026 20:58
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5372 @ 55049d7: 1 failed check(s)

== Pre-gate (Vault Sentinel, X-Ray, Supply Chain) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39068928250/job/117502295985
repro: python tests/tools/pr_gates.py --only secrets xray
errors:
ERROR: Package 'gitgalaxy' requires a different Python: 3.10.22 not in '>=3.11'
##[error]Process completed with exit code 1.
log tail:
Requirement already satisfied: tomli==2.5.0 in /opt/hostedtoolcache/Python/3.10.22/x64/lib/python3.10/site-packages (from -r /home/runner/work/gitgalaxy/gitgalaxy/.//ci/requirements/bootstrap.txt (line 116)) (2.5.0)
Requirement already satisfied: typing-extensions==4.16.0 in /opt/hostedtoolcache/Python/3.10.22/x64/lib/python3.10/site-packages (from -r /home/runner/work/gitgalaxy/gitgalaxy/.//ci/requirements/bootstrap.txt (line 186)) (4.16.0)
Requirement already satisfied: vcs-versioning==2.6.0 in /opt/hostedtoolcache/Python/3.10.22/x64/lib/python3.10/site-packages (from -r /home/runner/work/gitgalaxy/gitgalaxy/.//ci/requirements/bootstrap.txt (line 192)) (2.6.0)
Requirement already satisfied: wheel==0.48.0 in /opt/hostedtoolcache/Python/3.10.22/x64/lib/python3.10/site-packages (from -r /home/runner/work/gitgalaxy/gitgalaxy/.//ci/requirements/bootstrap.txt (line 196)) (0.48.0)
Obtaining file:///home/runner/work/gitgalaxy/gitgalaxy
Checking if build backend supports build_editable: started
Checking if build backend supports build_editable: finished with status 'done'
Preparing editable metadata (pyproject.toml): started
Preparing editable metadata (pyproject.toml): finished with status 'done'
INFO: pip is looking at multiple versions of gitgalaxy to determine which version is compatible with other requirements. This could take a while.
ERROR: Package 'gitgalaxy' requires a different Python: 3.10.22 not in '>=3.11'
##[error]Process completed with exit code 1.
##[end-action id=__self_3.__run;outcome=failure;conclusion=failure;duration_ms=2282]
##[start-action display=Execute GitGalaxy Tool;id=__self_3.__run_2]
##[end-action id=__self_3.__run_2;outcome=skipped;conclusion=skipped;duration_ms=0]
Post job cleanup.
##[start-action display=Set up Python;id=__2990de99-eddb-4b75-a91c-127ebad3a813.__actions_setup-python]
##[end-action id=__2990de99-eddb-4b75-a91c-127ebad3a813.__actions_setup-python;outcome=skipped;conclusion=skipped;duration_ms=0]
Post job cleanup.
##[start-action display=Set up Python;id=__dbf78a45-0145-4c3f-83a6-5bd6b3f869ce.__actions_setup-python]
##[end-action id=__dbf78a45-0145-4c3f-83a6-5bd6b3f869ce.__actions_setup-python;outcome=skipped;conclusion=skipped;duration_ms=0]
Post job cleanup.
##[start-action display=Set up Python;id=__50bdff53-6e6a-4e3e-b390-cfc34c46af95.__actions_setup-python]
##[end-action id=__50bdff53-6e6a-4e3e-b390-cfc34c46af95.__actions_setup-python;outcome=skipped;conclusion=skipped;duration_ms=0]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/aae1335a-662a-48d0-a2b6-289ec82da742' 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
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-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (f474019) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (f474019) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 17, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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