Skip to content

det/JSON PARSE: CONVERTING FROM JSON BOOLEAN / NULL (Part of #7524) - #8071

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/7524-20261108T0236Z
Nov 8, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/7524-20261108T0236Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Part of #7524. Checklist: partial [c:3fc8b69b] -- fixture proof of the whole slice is oracle-unbacked, left
Checklist: partial [c:afa8a8d3] -- re-survey and the count on #7709 not done here

JSON PARSE now takes IBM's CONVERTING ... FROM JSON BOOLEAN | NULL phrase (the one phrase of the slice still refused; name matching, WITH DETAIL, JSON-STATUS and ON EXCEPTION were already in X77). Assumed (IBM-documented), oracle-unbacked (GnuCOBOL has no JSON statement): no L2+ claim, nothing "proven".

What changed

  • stmt.py: _json_parse_converting_phrase (BOOLEAN / BOOL USING cn | cn AND cn | lit AND lit; NULL USING figurative; ALSO chains); bools / nulls keys only when non-empty.
  • gen.py: json_tree builds converting nodes for PARSE (shared with GENERATE; GENERATE entries unchanged).
  • JsonParse.java: reader accepts true/false/null; a converted one-byte PIC X item stores the IBM value; an unconverted value, or one under an unmatched name / top level, stays a runtime Hole.
  • X77.md, cobolrt API / rules catalogues. Tests: test_det_json_parse.py 47 pass (translation, refusal matrix, runtime true/false/null/mixed/Hole).

Class / Sibling gaps

Class: every JSON PARSE phrase IBM lists. Still refused by name: IGNORING / INDICATING, NAME OMITTED, SUPPRESS item forms not in PARSE syntax; the one-condition-name BOOLEAN form (layout does not record the 88's WHEN SET TO FALSE value); FROM STRING / NUMBER. Sibling gaps: JSON-STATUS for a converted null (IBM states none: Hole when read); IBM's examples wrap the text in the group's name, X77 assumption (1) says no wrapper (not changed); an elementary receiver; JSON-STATUS after malformed text and bits 4-512; X76.md still says "Still refused: JSON PARSE CONVERTING" (left for the 5-file cap).

Remaining slices

X76.md line fix; IGNORING / INDICATING; one-88 BOOLEAN form; wrapper-name question; re-survey post on #7709 (checklist item 3).

Gates

test_det_json_*, test_det_source_4462, test_gap_prevalence, cobolrt api/rules tests pass; audit_check.py clear; pr_gates --ratchets 9/9; pr_gates --fast 8/9: the one failure, test_crucible_case.py::test_events_table_matches_the_crucible_schema (WRITE / DELETE rows from #8064 vs the pinned schema), is in a file this PR does not touch.

Lessons for agents

  • A new public cobolrt method needs cobolrt_api.py generate --promote-used (emitter-used members default to internal and --check fails) and its name in a family's plumbing in cobolrt_rules.json.
  • Fixed-form test statements past column 72 are silently truncated: wrap them.

🤖 Generated with Claude Code

JSON PARSE takes IBM's converting phrase: a one-byte PIC X item gets the
literal / figurative for a JSON true, false or null. Unconverted values,
the one-condition-name form, IGNORING / INDICATING stay refused by name.
Assumed (IBM-documented), oracle-unbacked: no L2+ claim.

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 Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 8, 2026 03:16
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@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 Nov 8, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 03:20
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 8, 2026 03:23
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

PR #8071 @ 7b13f33: 1 failed check(s)

== runner-tests (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/42442028146/job/128613080351
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/tools/test_crucible_case.py::test_events_table_matches_the_crucible_schema
errors:
fail-on-cache-miss: false
E AssertionError: assert {'SEND-MAP': ..., set()), ...} == {'SEND-MAP': ..., set()), ...}
tests/tools/test_crucible_case.py:99: AssertionError
FAILED tests/tools/test_crucible_case.py::test_events_table_matches_the_crucible_schema - AssertionError: assert {'SEND-MAP': ..., set()), ...} == {'SEND-MAP': ..., set()), ...}
##[error]Process completed with exit code 1.
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 2 files 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 6154
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is a0892b723906c7b87c389fecfd1622438eb41be6ad8b48ebd7df379f12f8c319
Finalizing artifact upload
Artifact test-times-cics-crucible successfully finalized. Artifact ID 13602461112
Artifact test-times-cics-crucible has been successfully uploaded! Final size is 6154 bytes. Artifact ID is 13602461112
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/42442028146/artifacts/13602461112
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/0a9e94aa-861b-455e-8c89-377222de8a45' 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 the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 05:16
@squid-shepherd squid-shepherd Bot added shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 8, 2026 07:34
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 8, 2026
@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 Nov 8, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 08:30
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

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