Repository navigation
det: the SQLCA read as bytes is held big-endian under the default switch (Part of #7646) - #7875
Conversation
… COTRTUPC / COTRTLIC STRING SQLERRM) (Part of #7646) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…churn/7646-20261106T0620Z
… under the default switch (Part of #7646) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…620Z Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…lt screen text as z/OS holds it; cotrtupc declares it and proves (Part of #7646) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… SQLERRML in screen / SEND TEXT text (Part of #7646) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #7875 @ d09f3d8: 1 failed check(s) == det (failure) -- real |
…t of #7646) Its case.json gained declared_differences [comp5_byte_order] in this PR, so the ledger entry went stale (CI det: 'sweep: 1 unexpected'). Local Db2 sweep: PROVED on 54 scenarios, 63/63 paragraphs, 140/166 branches -- coverage unchanged, only the input fingerprints move. Also regenerates docs_read_by_tests.txt (#8026). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
CI shepherd: the head of this PR (39bf8a7) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
CI shepherd: the head of this PR (416a212) is not the one a maintainer labelled |
Pull request was converted to draft
|
CI shepherd: the head of this PR (416a212) is not the one a maintainer labelled |
|
No description provided. |
Picks up #8133 (assert_linear meta-test on a deterministic fake clock), whose timing flake failed full-suite part 2/3 on this PR. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No description provided. |
…n) (#8137) test_the_committed_list_is_fresh kept failing PRs that moved faster than the committed list (#7875's approved head, and others). Paused with a skip marker, not deleted: the list and its generator stay, and the planners that read it keep working; re-enable by deleting the marker. While paused, the list can lag the code, so a docs-only change could skip a test that reads the changed doc; refresh with tests/tools/change_classifier.py --write. It is fresh as of this commit. Co-authored-by: Claude Opus 5.5 <[email protected]>
Part of #7646 (slice 2: the SQLCA's COMP-5 bytes). Built on #7870's branch (register C7 note); that merge commit is the only unrelated content here.
One port changes (carddemo-cotrtupc). Its proof differed by exactly the byte order; the comparator slice (2nd commit) now reads that, and the case PROVES again.
What it does
A program that reads the SQLCA as bytes (
MOVE SQLERRM TO T,MOVE SQLCA TO T,SQLERRM(1:2)) now holds the SQLCA's COMP-5 items (2+ bytes: SQLERRML, SQLCODE-adjacent halfwords) big-endian under the default (zos_comp5=None, auto), as z/OS does. Mechanism:det/gen.py:Gen.sqlca_extents,sql_handoff,sqlca_bytes.field_exprsetssqlca_byteswhen a byte view overlaps those items.det/program.py:SqlcaBytesReadraised from_attempt;translate()retries withSQLCA_HOLDset, which adds the items tocomp5_held. If the retry meets azos_comp5refusal it falls back to the oracle's order (no Hole yet, see Sibling gaps).det/sql.py: the SQL lane's own SQLCA group hand-off is excluded (sql_handoff), otherwise 70 ports move.zos_comp5=Falseis unchanged (GnuCOBOL-native what-if).File-cap exception: the translator change (4 files) and the comparator reading (3 files) cannot land apart: the port change alone turns the cotrtupc proof red in the nightly sweep and Evidence Refresh.
Evidence
det_port.py check: 1 of 270 ports moves (carddemo-cotrtupc,STRING ... SQLERRM). cotrtlic and its generated case do not move:CSDB2RPY.cpynames SQLERRM only in a comment.screen.ERRMSG,0\x00vs\x000(the two SQLERRML bytes).equivalence_common.comp5_zos_textreverses, on the ORACLE side only and only under a declaredcomp5_byte_order, each halfwordn, 0(n 1-70, SQLERRML's range) in screen fields and SEND TEXT. The port's text is untouched, so a port that kept the oracle's order still differs (unit test).carddemo-cotrtupc/case.jsondeclarescomp5_byte_order.det_port.py run carddemo-cotrtupc: 436/436 translated, PROVED. No evidence.json is committed for this case, so there was no--recordfile to refresh; Evidence Refresh regenerates it.n, 0pair in declared cases' text, not only ones traced to SQLERRM; screens of this case carry no other NUL bytes.test_det_zos_comp5.py(3 byte reads get the wrapper by default, none with explicitFalse; 3 number/text reads get none). Register C7.md updated.Class / Sibling gaps
comp5_byte_orderzos_comp5refusal falls back to oracle order with no HoleSibling gaps: the five rows above marked gap / not run; none filed by this PR.
Remaining slices
The sibling gaps above (none blocks this PR).
Checklist: partial [c:c95c362b] -- SQLCA bytes and cotrtupc re-proof done; the other sibling gaps and census T3 remain.
Owner decisions
Owner ruling 2026-11-04: COMP-5 follows z/OS byte order by default (option B). The det port holds COMP-5 big-endian, as z/OS does, for every program, not only where a byte view would otherwise be refused. Rationale: one representation (no per-program hidden mode); no byte-order mismatch when COMP-5 crosses a COMMAREA, file or CALL boundary; IBM is the reference and GnuCOBOL the instrument (#4702). The oracle's little-endian bytes are a declared difference (#7725, #7729, #7733).
zos_comp5=Falsestays an explicit GnuCOBOL-native what-if.Gates
Not run here: golden bless (no parser change). Run:
pr_gates --fast9/9 pass, 69 targeted tests, the cotrtupc proof,det_port.py check, ruff format on changed files, mypy.Lessons for agents
sql.pyhands the SQLCA group throughfield_expr, so any new SQLCA-byte detection must skip that call (sql_handoff) or ~70 ports move._Genintest_sql_whenever.pylack newGenmethods: use attributes set from the caller, not new methods.Cross-repo
None: no companion PR in another repo.
🤖 Generated with Claude Code