Skip to content

det: JSON GENERATE from a group of DISPLAY items is translated from IBM's definition, oracle-unbacked (Part of #7524) - #7851

Merged
squid-shepherd[bot] merged 6 commits into
mainfrom
churn/7524-20261106T0154Z
Nov 6, 2026
Merged

squid-shepherd[bot] merged 6 commits into
mainfrom
churn/7524-20261106T0154Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

#7524 slice 2: JSON GENERATE from a group of DISPLAY alphanumeric / fixed-point numeric items is translated from IBM's definition (Enterprise COBOL 6.3 LR) instead of refused. det/stmt.py parses INTO / FROM / COUNT IN / NAME OF .. IS / SUPPRESS item; det/gen.py json_generate builds the member tree (FILLER, REDEFINES and all-ignored groups left out, unique names required, SUPPRESS / NAME OF applied); new cobolrt/JsonGenerate.java writes the text (names as written, {"GROUP":{...}} wrapper, trailing blanks trimmed, numbers as edited, escapes) as ASCII bytes into the receiver and returns the byte count for COUNT IN. Register X76 marks it ASSUMED, oracle-unbacked: GnuCOBOL has no JSON statement, so no L2+ claim. The generated code reaches the runtime by its __PACKAGE__ name, so program.py (in flight in #7841 / worker 7709) is untouched.

Checklist: partial [c:bb8e1760] -- JSON-CODE / ON EXCEPTION, SUPPRESS WHEN, COMP and OCCURS shapes left

Class / Sibling gaps

The class is the JSON/XML statements the det port refuses. Still holes (named, with the shape in the text): JSON GENERATE with ON / NOT ON EXCEPTION, JSON-CODE, SUPPRESS WHEN / EVERY, CONVERTING, NAME OMITTED, an elementary source, OCCURS tables, COMP / COMP-3 / float / separately signed items; runtime Hole for a character beyond ASCII, non-digit data in a numeric item (undefined by IBM, C11), a negative zero and a receiver too small. Sibling statements untouched: JSON PARSE, XML GENERATE, XML PARSE. No issues filed.

Remaining slices

Facts checked

  • IBM text read from the 6.3 LR pages (rlpsjsog and sub-pages); names are not lower-cased and a group source is wrapped in its own name.
  • __PACKAGE__ is replaced in paragraph bodies (program.py:1251), so no import wiring is needed.
  • test_det_source_4462 JSON cases still hold (SUPPRESS WHEN stays a hole); test_gap_prevalence key regex still matches JSON GENERATE.
  • No burned program uses JSON, so no committed port moves.

Gates

  • New test_det_json_generate.py (8 tests, ~1 s), test_det_source_4462, test_gap_prevalence, test_cobolrt_rules.py: pass.
  • audit_check.py: all clear. pr_gates --fast: lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet pass; the affected gate first failed on test_cobolrt_rules (the runtime file was not in the rule catalogue), fixed by adding RT-CBL-JSON-GENERATE (ASSUMED, X76) to docs/language_status/cobolrt_rules.json. That is a sixth hand-written file over the brief's cap of five, forced by the catalogue test.
  • det_port.py check: 270/270 ports unchanged (no burned program uses JSON).
  • Merge with origin/main clean, no conflicts. 810 of 1089 affected test files were over the local 300 s budget and are left to CI.

Lessons for agents

  • python -I ignores PYTHONPATH: with it a script imports the editable install of another checkout; insert the repo root on sys.path instead.
  • A fixed-format test statement past column 72 is cut silently (a SUPPRESS AMT became SUPPRES, "missing operand"): split the statement over lines.

🤖 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 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 6, 2026 02:35
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 6, 2026 02:42
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

PR #7851 @ 8d68757: 2 failed check(s)

== full-suite part 1/3 (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/42150220716/job/127674645603
repro: fails on main too: fix main (then merge origin/main here)
failing tests: tests/core_engine/test_inline_extraction.py::test_a_spawned_pool_is_the_forked_pools_output
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
[--fail-on-malware]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
--fail-on-malware CI/CD Gate: Fail build if ML threat inference flags
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
E AssertionError:
E Traceback (most recent call last):
E _pickle.PicklingError: Can't pickle <function at 0x7fe77ab394e0>: attribute lookup on gitgalaxy.standards.language_standards.languages.haskell failed
tests/core_engine/test_inline_extraction.py:140: AssertionError
FAILED tests/core_engine/test_inline_extraction.py::test_a_spawned_pool_is_the_forked_pools_output - AssertionError:
Traceback (most recent call last):
_pickle.PicklingError: Can't pickle <function at 0x7fe77ab394e0>: attribute lookup on gitgalaxy.standards.language_standards.languages.haskell failed
##[error]Process completed with exit code 1.
log tail:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 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
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[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 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 962045
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 3c3ed33aee0b34c33dbd35c51a2cb9b2b7425d33f49f76df10d13930f965ca9f
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 13472224564
Artifact test-times-part-1 has been successfully uploaded! Final size is 962045 bytes. Artifact ID is 13472224564
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/42150220716/artifacts/13472224564
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/f1ad3830-ff3f-48db-9aee-4399bcd647b2' 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

== ground-truth part 1/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/42150220844/job/127671758628
repro: python -m pytest -q tests/cobol_mainframe/test_cobolrt_api.py::test_the_manifest_is_the_sources_surface
failing tests: tests/cobol_mainframe/test_cobolrt_api.py::test_the_manifest_is_the_sources_surface
errors:
fail-on-cache-miss: false
E AssertionError: assert ['type cobolr....py generate'] == []
tests/cobol_mainframe/test_cobolrt_api.py:109: AssertionError
FAILED tests/cobol_mainframe/test_cobolrt_api.py::test_the_manifest_is_the_sources_surface - AssertionError: assert ['type cobolr....py generate'] == []
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: 24f4ec4436e1673b095a7bfac736445df4fd45d2698bd3d96cd40cfff892afb4
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]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 160587
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is dff84d647afe5651ae246802a1508f9b749e14d2fb3af949359e5935a25afca4
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 13472626353
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 160587 bytes. Artifact ID is 13472626353
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/42150220844/artifacts/13472626353
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/300664f2-a5b7-4aaf-840d-73077aed4a63' 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:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Nov 6, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (2f9b0ae) 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). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 6, 2026 05:03
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. 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:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Nov 6, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 6, 2026 05:18
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 6, 2026 05:19
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