Skip to content

det: JSON-CODE is 0 after a JSON GENERATE; the exception value stays refused (Part of #7524) - #7897

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7524-20261106T1115Z
Nov 6, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7524-20261106T1115Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

JSON-CODE for JSON GENERATE (#7524). A program that names JSON-CODE and has a JSON statement gets a hidden S9(4) item (GG-JSON-CODE), set to 0 after a JSON GENERATE that raised no exception (IBM LR: "contains zero after execution"). Programs that do not name it are unchanged. A program's own JSON-CODE item is kept.

The value IBM sets for an exception is in the Programming Guide's exception table, which I could not read (the page was not retrievable). So a program that names JSON-CODE and has a JSON GENERATE with ON / NOT ON EXCEPTION, or any JSON PARSE, is refused by name rather than guessed. Register X76 updated; still ASSUMED, oracle-unbacked, no L2+ claim.

Checklist: partial [c:bb8e1760] -- the JSON-CODE value after an exception, SUPPRESS WHEN / EVERY, CONVERTING, NAME OMITTED, OCCURS DEPENDING ON stay holes

Class

Class: det translator special registers a JSON statement sets. Siblings: JSON PARSE JSON-CODE / JSON-STATUS (item c:3fc8b69b), the exception code table. No burned program uses JSON.

Sibling gaps

  • JSON PARSE JSON-CODE / JSON-STATUS: no burned program needs it.
  • JSON-CODE exception value (needs the IBM Programming Guide table): no burned program.
  • SUPPRESS WHEN / EVERY, CONVERTING, XML GENERATE / PARSE: no burned program.

Remaining slices

  1. Exception code table for GENERATE and PARSE (det/gen.py, JsonParse.java, X76/X77).
  2. SUPPRESS WHEN family (stmt.py, gen.py, JsonGenerate.java).
  3. Census re-survey, post count on Census mock trial: take the 40 census programs from 8 whole to 40 of 40 accounted, measured by the tool only #7709.

Tests / gates

test_det_json_generate.py (29 pass), det_translate/det_source tests (708 pass), audit_check ruff/mypy/dead-key/doc-refs OK.

🤖 Generated with Claude Code

…refused by name (Part of #7524)

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 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 11:33
@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

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