Skip to content

test: det translator reads compile options only through the one resolver (Part of #4704) - #6195

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4704-20261023T0827Z
Oct 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4704-20261023T0827Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

Verification of the det translator's option reads, with a test covering the class. No engine code changed (golden-neutral).

Findings:

  • DECIMAL-POINT: DECIMAL-POINT IS COMMA is a SPECIAL-NAMES clause the program states (det/source.py:decimal_comma); no compile option carries it, so there is no option reader to move onto effective_options.
  • Code page: the det translator takes the page from the scan's recorded decode (EngineCopies.pages / region_page), not from an option. The CODEPAGE option is judged only by the resolver (unhonoured(code_page)).
  • Option values (TRUNC, NUMPROC, ARITH): trunc_mode, numproc_pfd, arith_extend all call compiler_options.effective_with_defaults over the case's effective_options(...).layers; no other det module reads an option name.

tests/cobol_mainframe/test_det_option_reads_4704.py pins this: AST scan of every det/*.py (an option-name read outside a resolver-calling function fails; no private card reader), each reader calls the resolver, layer order (PARM then program cards), and that DECIMAL-POINT is not an option.

Not touched: #4707 rows.

Checklist: done [c:5a2b9b99]

Cross-repo: none.

Lessons for agents

  • The shared /home/joe/gitgalaxy/venv/bin/python runs these tests; python is not on PATH in a worktree.

🤖 Generated with Claude Code

…the one resolver (Part of #4704)

DECIMAL-POINT IS COMMA is a SPECIAL-NAMES clause and the code page is the scan's recorded decode, so neither has an
option reader to move; the class that could drift (TRUNC / NUMPROC / ARITH reads) is now pinned by an AST check.

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 Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 08:41
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit a246429 into main Oct 23, 2026
26 checks passed
@squid-protocol
squid-protocol deleted the churn/4704-20261023T0827Z branch October 23, 2026 08:58
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