Repository navigation
det: JSON GENERATE from a group of DISPLAY items is translated from IBM's definition, oracle-unbacked (Part of #7524) - #7851
Conversation
…BM's definition, oracle-unbacked (Part of #7524) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #7851 @ 8d68757: 2 failed check(s) == full-suite part 1/3 (failure) -- main == ground-truth part 1/2 (failure) -- real |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (2f9b0ae) is not the one a maintainer labelled |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
What
#7524 slice 2:
JSON GENERATEfrom 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.pyparsesINTO / FROM / COUNT IN / NAME OF .. IS / SUPPRESS item;det/gen.pyjson_generatebuilds the member tree (FILLER, REDEFINES and all-ignored groups left out, unique names required, SUPPRESS / NAME OF applied); newcobolrt/JsonGenerate.javawrites 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. RegisterX76marks it ASSUMED, oracle-unbacked: GnuCOBOL has no JSON statement, so no L2+ claim. The generated code reaches the runtime by its__PACKAGE__name, soprogram.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 GENERATEwith ON / NOT ON EXCEPTION, JSON-CODE, SUPPRESS WHEN / EVERY, CONVERTING, NAME OMITTED, an elementary source, OCCURS tables, COMP / COMP-3 / float / separately signed items; runtimeHolefor 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
program.py, wait for det: COMP-5 big-endian serves EXEC SQL and LINK COMMAREA over non-COMP-5 data (Part of #7646, #7709) #7841).Facts checked
__PACKAGE__is replaced in paragraph bodies (program.py:1251), so no import wiring is needed.test_det_source_4462JSON cases still hold (SUPPRESS WHEN stays a hole);test_gap_prevalencekey regex still matchesJSON GENERATE.Gates
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; theaffectedgate first failed ontest_cobolrt_rules(the runtime file was not in the rule catalogue), fixed by addingRT-CBL-JSON-GENERATE(ASSUMED, X76) todocs/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).Lessons for agents
python -IignoresPYTHONPATH: with it a script imports the editable install of another checkout; insert the repo root onsys.pathinstead.SUPPRESS AMTbecameSUPPRES, "missing operand"): split the statement over lines.🤖 Generated with Claude Code