Skip to content

det: JSON PARSE fills OCCURS DEPENDING ON tables and COMP-1 items (Part of #7524) - #7966

Merged
squid-shepherd[bot] merged 5 commits into
mainfrom
churn/7524-json-parse-odo-float
Nov 7, 2026
Merged

squid-shepherd[bot] merged 5 commits into
mainfrom
churn/7524-json-parse-odo-float

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

JSON PARSE now fills OCCURS DEPENDING ON tables and COMP-1 items (register X77, oracle-unbacked, ASSUMED). IBM states that PARSE never updates an ODO object and lists internal floats as valid receivers, but gives no occurrence count, rounding or exponent rule, so the model reads the ODO object's current value at run time and converts a COMP-1 through the runtime's Cobol.store. Everything else IBM leaves unstated stays a Hole or a refusal.

Checklist: partial [c:3fc8b69b] -- CONVERTING, COMP-2 and elementary receivers, JSON-STATUS after an exception are left
Checklist: partial [c:afa8a8d3] -- the census re-survey is recorded in X77 (#7953); the count is not posted on #7709 by this PR

Cross-repo

No companion PRs in other repos. Same-repo: this branch contains the head of #7952 (fixed OCCURS tables, same files); #7952 should merge first, then merge main here and the PR shrinks to its own diff. Nothing re-runs after merge (no burned program uses JSON).

Class / Sibling gaps

Class: JSON PARSE receiver kinds that JSON GENERATE already models and PARSE refused by name: OCCURS DEPENDING ON tables (elementary and group elements) and COMP-1 floats. Members handled here, each with a translation test and a runtime test on bytes: ODO elementary table, ODO group table, COMP-1 item, COMP-1 table element, exponent number into a float, exponent into a fixed item (Hole).
Sibling gaps:

  • Array length mismatch (fixed or ODO): IBM states it (fewer elements leave the rest unmodified, extra values ignored, JSON-STATUS nonzero) but the JSON-STATUS value was not found on the pages read; stays a Hole until the Programming Guide table is read. Source: rlpsjsopb.html.
  • Out-of-range ODO count: IBM silent; Hole.
  • ODO table inside another table: refused by name (same as GENERATE).
  • COMP-2 receiver, string-of-digits into a numeric/float (IBM allows), null skip, CONVERTING, elementary receiver, JSON-STATUS after an exception: different mechanisms, later slices of det: JSON GENERATE / JSON PARSE not modelled (census #7709, 2 programs) #7524.

Remaining slices: PARSE CONVERTING; array-length mismatch with JSON-STATUS; null handling and JSON-STATUS bits 4-512.

Gates: pr_gates --fast 9/9 after fixing one catalogue finding (JsonParse.floating added to cobolrt_rules.json plumbing; the 6th hand-written file, forced by test_cobolrt_rules); pr_gates --ratchets 9/9; det_port check 270/270 ports unchanged; audit_check all clear; test_det_json_parse + test_det_json_generate 77 pass.

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

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 7, 2026 00:09
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 7, 2026 00:10
@github-actions

github-actions Bot commented Nov 7, 2026

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 7, 2026 00:45
@squid-shepherd

squid-shepherd Bot commented Nov 7, 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 7, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 7, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (5cfbf24) 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 7, 2026 01:05
@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 labels Nov 7, 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 7, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 7, 2026 01:11
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 7, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 7, 2026 01:12
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 7, 2026
@squid-shepherd
squid-shepherd Bot merged commit a7d551c into main Nov 7, 2026
101 of 138 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7524-json-parse-odo-float branch November 7, 2026 02:08
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