Skip to content

det translator: accept single-byte national letters in data names (BETRÄGE / GEBÜHR) (Fixes #4664) - #4854

Merged
squid-protocol merged 9 commits into
mainfrom
fix/4664-det-national-characters
Oct 10, 2026
Merged

squid-protocol merged 9 commits into
mainfrom
fix/4664-det-national-characters

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Fixes #4664.

What changes: the translator used to refuse a program whose data names hold a single-byte national letter (estate-crucible DEUT ZINSBER: GEBÜHR, BETRÄGE in cp273), because the COBOL grammar reads ASCII words only.

  • Parser input: the grammar is now handed a same-length copy with each national byte as a digit (9, or a in a word of national letters alone) via source.ascii_for_grammar (layout.parse, stmt.parse); a digit because ÄLL read as aLL is the keyword ALL and ÄND the operator AND. Offsets are unchanged, and names and literals are still read from the original source by byte offset, so 'GEBÜHR' stays 'GEBÜHR'.
  • Refusal removed: the unmodelled refusal for a national letter in a name is gone. National / DBCS text beyond Latin-1 is still refused.
  • Java names: jname keeps the letter (Java identifiers allow Ä). ASCII names are unchanged.

Proof:

  • new NATLET det program (01 BETRÄGE … DISPLAY BETRÄGE): GnuCOBOL and the Java port print the same output, in all 3 modes (end-to-end, Docker + JDK 17);
  • det_port check against main: 103/103 existing ports byte-identical.

Fact cross-check: ZINSBER now translates, so its refusal entry is GONE (ledger lowered). It shows 4 new entries, the same values in two notations under DECIMAL-POINT IS COMMA: the engine reports 0,5 / 1000,00 as written, the translator 0.5 / 1000.00. These are assigned to a new cause, notation-decimal-comma (definitional).

How it was made: the change was written by agy (Gemini). I reviewed it, ran the formatter, ran the end-to-end proof and the port diff, and triaged the ledger. Gates: pr_gates --fast 5/5; ratchets 7/7 after the ledger update.

Widened scope (review: "does this cover the whole input class?"). National and double-byte text, probed one sub-case at a time:

Sub-case Result
Single-byte national letter in a name (BETRÄGE / GEBÜHR), incl. names that look like reserved words once ASCII-fied (ÄLL, ÄND, ÄS, NOT-Ä) read, in layout, MOVE / IF / PERFORM and paragraph names
Kanji / any character beyond Latin-1 in a name or VALUE (already refused, #4462) refused by name, tested
Shift-out / shift-in (X'0E' / X'0F') delimited DBCS name or literal, Kanji decoded or not refused by name (new; the undecoded form fell through to a layout parse error or a literal read as text)
PIC N / PIC G items, USAGE NATIONAL / DISPLAY-1 refused by name (new). Before: a PIC N(4) item was laid out as 4 alphanumeric-edited bytes (a national item is 2 bytes a character) with no error: a mistranslation
N'..' / NX'..' / G'..' / GX'..' / U'..' literals, ASCII or national letters inside (PROCEDURE or VALUE) refused by name (new). Before: read as a name N'ABC'
Mixed (a national name beside a Kanji name or a PIC N item) the first national / DBCS data line is named
Kanji alphanumeric literal in a PROCEDURE statement unchanged: the statement is a hole (#4272); the rest translates

Not supported, and refused rather than translated: any PIC N / G data, NATIONAL usage, and national / DBCS literals. They need a two-byte layout and runtime (#4272). Words that merely contain the tokens (NATIONAL-ID, G-U, a literal's content, a *> comment) are still read.

Tests: tests/cobol_mainframe/test_det_source_4462.py (keyword look-alike names x12, ascii_for_grammar column check, 17 refusal rows, 3 look-alike reads, Kanji literal / name / VALUE). Gates after the widening: pr_gates --fast gauntlet / audits / secrets / xray pass, lint pass after an import-order fix; --ratchets 7/7 (ledger unchanged). The NATLET end-to-end proof was not re-run (no Docker / JDK 17 run in this pass; the change after it touches only the grammar stand-in and the new refusals).

🤖 Generated with Claude Code

https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV

squid-protocol and others added 4 commits October 10, 2026 14:39
…mes (#4664)

- Mask single-byte national characters (e.g. cp273 BETRÄGE) from tree-sitter parser by substituting them with a safe ASCII letter before parsing, while preserving exact byte length to extract from original source bytes.
- Preserve national characters in generated Java identifiers (e.g. `s_BETRÄGE`) by substituting `[^\w]` instead of `[^A-Za-z0-9]` in `jname`.
- Remove unmodelled refusal for single-byte national letters in `source.py`.
- Add `NATLET` e2e test to verify equivalence between GnuCOBOL behavior and generated Java output.
…S COMMA literals get a notation cause

Ledger lowered (`update`: the GEBÜHR refusal is GONE) and the 4 new entries assigned to notation-decimal-comma:
the engine reports 0,5 / 1000,00 as written, the translator 0.5 / 1000.00 as modelled -- one value, neither side wrong.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 10, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 10, 2026 19:00
@squid-protocol
squid-protocol enabled auto-merge (squash) October 10, 2026 19:00
@squid-protocol squid-protocol added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Oct 10, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #4854 @ 869640c: 3 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38078076819/job/114289387559
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
##[error]Process completed with exit code 1.
log tail:
if [ "$EVENT" = "schedule" ]; then extra=(--update-durations); fi
PYTHONPATH="$PWD" python tests/tools/proof_sweep.py --aggregate $found --expect "$expect" "${extra[@]}" | tee agg.txt
{
echo "## Det sweep (merged)"
echo '' grep -v '^ *$' agg.txt | tail -80 echo ''
} >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PLAN_RESULT: skipped
MODE:
CASES:
SHARDS:
EVENT: pull_request
##[endgroup]
the plan job did not succeed (skipped)
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/881d9c96-7b1a-49d9-8aeb-2be3de6ae55f' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== plan (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/38077860074/job/114288502030
repro: python tests/tools/det_sweep_plan.py --base origin/main
errors:
##[error]The operation was canceled.
log tail:
##[endgroup]
##[group]Fetching the repository
[command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules origin +refs/heads/:refs/remotes/origin/ +refs/tags/:refs/tags/ +9950c2041bd41fb9630484769f86b82c29a58ea3:refs/remotes/pull/4854/merge
##[error]The operation was canceled.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/66375f25-bf06-42f9-9d59-b0800390c37c' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
includeif.gitdir:/home/runner/work/gitgalaxy/gitgalaxy/.git.path
includeif.gitdir:/home/runner/work/gitgalaxy/gitgalaxy/.git/worktrees/.path
includeif.gitdir:/github/workspace/.git.path
includeif.gitdir:/github/workspace/.git/worktrees/
.path
[command]/usr/bin/git config --local --get-all includeif.gitdir:/home/runner/work/gitgalaxy/gitgalaxy/.git.path
/home/runner/work/_temp/git-credentials-25c26b6b-db9f-4588-a10a-8960c2470896.config
[command]/usr/bin/git config --local --unset includeif.gitdir:/home/runner/work/gitgalaxy/gitgalaxy/.git.path /home/runner/work/_temp/git-credentials-25c26b6b-db9f-4588-a10a-8960c2470896.config
[command]/usr/bin/git config --local --get-all includeif.gitdir:/home/runner/work/gitgalaxy/gitgalaxy/.git/worktrees/.path
/home/runner/work/_temp/git-credentials-25c26b6b-db9f-4588-a10a-8960c2470896.config
[command]/usr/bin/git config --local --unset includeif.gitdir:/home/runner/work/gitgalaxy/gitgalaxy/.git/worktrees/
.path /home/runner/work/_temp/git-credentials-25c26b6b-db9f-4588-a10a-8960c2470896.config
[command]/usr/bin/git config --local --get-all includeif.gitdir:/github/workspace/.git.path
/github/runner_temp/git-credentials-25c26b6b-db9f-4588-a10a-8960c2470896.config
[command]/usr/bin/git config --local --unset includeif.gitdir:/github/workspace/.git.path /github/runner_temp/git-credentials-25c26b6b-db9f-4588-a10a-8960c2470896.config
[command]/usr/bin/git config --local --get-all includeif.gitdir:/github/workspace/.git/worktrees/.path
/github/runner_temp/git-credentials-25c26b6b-db9f-4588-a10a-8960c2470896.config
[command]/usr/bin/git config --local --unset includeif.gitdir:/github/workspace/.git/worktrees/
.path /github/runner_temp/git-credentials-25c26b6b-db9f-4588-a10a-8960c2470896.config
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Removing credentials config '/home/runner/work/_temp/git-credentials-25c26b6b-db9f-4588-a10a-8960c2470896.config'
Evaluate and set job outputs
Cleaning up orphan processes
Terminate orphan process: pid (2059) (git)
Terminate orphan process: pid (2060) (git)

== shard ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/38077860074/job/114288945924
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. 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 Oct 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

…fused (#4664)

The two refusal cases (BETRÄGE, GEBÜHR) become a test that they are laid out under their own names, distinct from
the ASCII look-alike (BETRAGE), with the literal kept as written.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 10, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (48835b4) 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.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 10, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 10, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (48835b4) 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.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 10, 2026 19:23
@squid-protocol squid-protocol added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 10, 2026
@squid-protocol squid-protocol added the shepherd:hold Maintainer: never auto-merge this PR. Guide: docs/ci.md label Oct 10, 2026
@squid-protocol
squid-protocol marked this pull request as draft October 10, 2026 20:30
squid-protocol and others added 2 commits October 10, 2026 17:14
…-byte names

- Single-byte national letters: the grammar is handed a same-length copy where a letter becomes a digit (an ASCII-looking
  letter would turn ÄLL into the keyword ALL, ÄND into AND); all-national words become `a`s. One helper, used by layout and stmt.
- Refused by name instead of read as one byte a character (a mistranslation: PIC N(4) was laid out as 4 alphanumeric-edited
  bytes): PIC N / G, USAGE NATIONAL / DISPLAY-1, N / NX / G / GX / U / UX literals, shift-out / shift-in bytes X'0E' / X'0F'.
- Tests for single-byte, Kanji / DBCS, shift-delimited and mixed cases, and for look-alikes that must still be read.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #4854 @ cd59ca6: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38088119281/job/114320355940
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
2026-10-10T21:42:34.2494143Z Current runner version: '2.337.0'
##[group]Runner Image Provisioner
Hosted Compute Agent
Version: 20261002.596
Commit: c3d12f3313a95f25162a1503be624f3b0617f8c0
Build Date: 2026-10-02T22:28:27Z
Worker ID: {eaba319f-42a8-4e6e-9f42-e55f3c565038}
Region: westus3
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261004.327.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261004.327/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261004.327
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS"
echo "full-suite parts: $PARTS"
test "$PARTS" = "success"
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
##[endgroup]
full-suite parts: failure
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 1/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38088119281/job/114318802511
repro: python -m pytest -q tests/cobol_mainframe/test_feature_inventory.py::test_data_types
failing tests: tests/cobol_mainframe/test_feature_inventory.py::test_data_types
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
[--fail-on-malware]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
--fail-on-malware CI/CD Gate: Fail build if ML threat inference flags
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
E AssertionError: assert False
tests/cobol_mainframe/test_feature_inventory.py:118: AssertionError
FAILED tests/cobol_mainframe/test_feature_inventory.py::test_data_types - AssertionError: assert False
##[error]Process completed with exit code 1.
log tail:
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: cics-banking-sample-application-cbsa not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: aws-mainframe-modernization-carddemo not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: cics-genapp not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: zecs not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: dsf not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: dbb-mortgage-application not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: cics-async-api-credit-card-application-example not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_regional_options.py:300: needs Docker (GnuCOBOL)
SKIPPED [1] tests/cobol_mainframe/test_rounding.py:112: needs Docker (GnuCOBOL)
SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: zopeneditor-sample not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: cics-banking-sample-application-cbsa not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: aws-mainframe-modernization-carddemo not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: cics-genapp not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: zecs not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: dsf not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: dbb-mortgage-application not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: cics-async-api-credit-card-application-example not fetched (mainframe_corpus.py fetch)
SKIPPED [5] tests/cobol_mainframe/test_regional_options.py:226: no JDK 17
SKIPPED [2] tests/cobol_mainframe/test_sql_unit_of_work.py:366: needs Docker (GnuCOBOL, Db2) and a JDK + Maven
SKIPPED [2] tests/cobol_mainframe/test_trunc_opt.py:195: needs Docker and a JDK 17 (JAVA_HOME / JDK_17)
FAILED tests/cobol_mainframe/test_feature_inventory.py::test_data_types - AssertionError: assert False
+ where False = has({'cics_commands': {'READ': {'count': 1, 'programs': ['fallback.cbl']}, 'SEND TEXT': {'count': 1, 'programs': ['cics_co...ISSING': {'count': 2, 'programs': ['copybook_gap.cbl', 'fallback.cbl']}, 'unknown': {'count': 0,
1 failed, 2663 passed, 591 skipped, 1 warning in 467.36s (0:07:47)
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/2b952afe-c316-4815-8e95-b2f8bdc36ea4' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:hold Maintainer: never auto-merge this PR. Guide: docs/ci.md shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 10, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

2 similar comments
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 10, 2026 21:46
@squid-protocol
squid-protocol enabled auto-merge (squash) October 10, 2026 21:47
@squid-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 10, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: real failure(s) on this head. Reproduce locally with the repro line; don't re-push to find out.

PR #4854 @ cd59ca658c3f: 3 failed check(s)

== full-suite (failure) -- real
   https://github.com/squid-protocol/gitgalaxy/actions/runs/38088119281/job/114320355940
   repro: python -m pytest -q tests
   errors:
     ##[error]Process completed with exit code 1.
   log tail:
     2026-10-10T21:42:34.2494143Z Current runner version: '2.337.0'
     ##[group]Runner Image Provisioner
     Hosted Compute Agent
     Version: 20261002.596
     Commit: c3d12f3313a95f25162a1503be624f3b0617f8c0
     Build Date: 2026-10-02T22:28:27Z
     Worker ID: {eaba319f-42a8-4e6e-9f42-e55f3c565038}
     Region: westus3
     Cloud: Azure
     ##[endgroup]
     ##[group]Operating System
     Ubuntu
     24.04.5
     LTS
     ##[endgroup]
     ##[group]Runner Image
     Image: ubuntu-24.04
     Version: 20261004.327.1
     Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261004.327/images/ubuntu/Ubuntu2404-Readme.md
     Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261004.327
     ##[endgroup]
     ##[group]GITHUB_TOKEN Permissions
     Contents: read
     Metadata: read
     ##[endgroup]
     Secret source: Actions
     Cache mode: write
     Prepare workflow directory
     Prepare all required actions
     Complete job name: full-suite
     ##[group]Run echo "full-suite parts: $PARTS"
     echo "full-suite parts: $PARTS"
     test "$PARTS" = "success"
     shell: /usr/bin/bash -e {0}
     env:
       PARTS: failure
     ##[endgroup]
     full-suite parts: failure
     ##[error]Process completed with exit code 1.
     Cleaning up orphan processes

== full-suite part 1/3 (failure) -- real
   https://github.com/squid-protocol/gitgalaxy/actions/runs/38088119281/job/114318802511
   repro: python -m pytest -q tests/cobol_mainframe/test_feature_inventory.py::test_data_types
   failing tests: tests/cobol_mainframe/test_feature_inventory.py::test_data_types
   errors:
       fail-on-cache-miss: false
                           [--ai-guardrails] [--fail-on-secrets]
                           [--fail-on-malware]
       --fail-on-secrets     CI/CD Gate: Fail build if hardcoded secrets are
       --fail-on-malware     CI/CD Gate: Fail build if ML threat inference flags
                             CI/CD Gate: Fail build if any file exceeds this risk
                             CI/CD Gate: fail the build if any file's structural
     E       AssertionError: assert False
     tests/cobol_mainframe/test_feature_inventory.py:118: AssertionError
     FAILED tests/cobol_mainframe/test_feature_inventory.py::test_data_types - AssertionError: assert False
     ##[error]Process completed with exit code 1.
   log tail:
     SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: cics-banking-sample-application-cbsa not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: aws-mainframe-modernization-carddemo not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: cics-genapp not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: zecs not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: dsf not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: dbb-mortgage-application not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: cics-async-api-credit-card-application-example not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_regional_options.py:300: needs Docker (GnuCOBOL)
     SKIPPED [1] tests/cobol_mainframe/test_rounding.py:112: needs Docker (GnuCOBOL)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: zopeneditor-sample not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: cics-banking-sample-application-cbsa not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: aws-mainframe-modernization-carddemo not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: cics-genapp not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: zecs not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: dsf not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: dbb-mortgage-application not fetched (mainframe_corpus.py fetch)
     SKIPPED [1] tests/cobol_mainframe/test_refraction_differential.py:52: cics-async-api-credit-card-application-example not fetched (mainframe_corpus.py fetch)
     SKIPPED [5] tests/cobol_mainframe/test_regional_options.py:226: no JDK 17
     SKIPPED [2] tests/cobol_mainframe/test_sql_unit_of_work.py:366: needs Docker (GnuCOBOL, Db2) and a JDK + Maven
     SKIPPED [2] tests/cobol_mainframe/test_trunc_opt.py:195: needs Docker and a JDK 17 (JAVA_HOME / JDK_17)
     FAILED tests/cobol_mainframe/test_feature_inventory.py::test_data_types - AssertionError: assert False
      +  where False = has({'cics_commands': {'READ': {'count': 1, 'programs': ['fallback.cbl']}, 'SEND TEXT': {'count': 1, 'programs': ['cics_co...ISSING': {'count': 2, 'programs': ['copybook_gap.cbl', 'fallback.cbl']}, 'unknown': {'count': 0, 
     1 failed, 2663 passed, 591 skipped, 1 warning in 467.36s (0:07:47)
     ##[error]Process completed with exit code 1.
     Post job cleanup.
     [command]/usr/bin/git version
     git version 2.55.0
     Temporarily overriding HOME='/home/runner/work/_temp/2b952afe-c316-4815-8e95-b2f8bdc36ea4' before making global git config changes
     Adding repository directory to the temporary git global config as a safe directory
     [command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
     Removing SSH command configuration
     [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
     [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
     Removing HTTP extra header
     [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
     [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
     Removing includeIf entries pointing to credentials config files
     [command]/usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
     [command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
     Cleaning up orphan processes

== ground-truth (failure) -- real
   https://github.com/squid-protocol/gitgalaxy/actions/runs/38088119398/job/114318802993
   repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth
   failing tests: tests/cobol_mainframe/test_feature_inventory.py::test_data_types
   errors:
       fail-on-cache-miss: false
     2026-10-10 21:34:58,839 [WARNING] [GalaxyScope]  ┃    (--fail-on-malware cannot fire). Rule-based threats still run.       ┃
     2026-10-10 21:35:04,039 [WARNING] [GalaxyScope]  ┃    (--fail-on-malware cannot fire). Rule-based threats still run.       ┃
     2026-10-10 21:35:21,808 [WARNING] [GalaxyScope]  ┃    (--fail-on-malware cannot fire). Rule-based threats still run.       ┃
     2026-10-10 21:35:46,715 [WARNING] [GalaxyScope]  ┃    (--fail-on-malware cannot fire). Rule-based threats still run.       ┃
     2026-10-10 21:35:55,188 [WARNING] [GalaxyScope]  ┃    (--fail-on-malware cannot fire). Rule-based threats still run.       ┃
     2026-10-10 21:35:59,317 [WARNING] [GalaxyScope]  ┃    (--fail-on-malware cannot fire). Rule-based threats still run.       ┃
     2026-10-10 21:38:26,274 [WARNING] [GalaxyScope]  ┃    (--fail-on-malware cannot fire). Rule-based threats still run.       ┃
     2026-10-10 21:38:44,316 [WARNING] [GalaxyScope]  ┃    (--fail-on-malware cannot fire). Rule-based threats still run.       ┃
     E       AssertionError: assert False
     tests/cobol_mainframe/test_feature_inventory.py:118: AssertionError
     FAILED tests/cobol_mainframe/test_feature_inventory.py::test_data_types - AssertionError: assert False
     ##[error]Process completed with exit code 1.
   log tail:
     ....................s.................................................s. [ 96%]
     s....................................................................... [ 99%]
     .............................                                            [100%]
     =================================== FAILURES ===================================
     _______________________________ test_data_types ________________________________
     [gw1] linux -- Python 3.12.15 /opt/hostedtoolcache/Python/3.12.15/x64/bin/python
     synthetic = (PosixPath('/tmp/pytest-of-runner/pytest-0/popen-gw1/feature_inventory0/estate'), PosixPath('/tmp/pytest-of-runner/pyt...SSING': {'count': 2, 'programs': ['copybook_gap.cbl', 'fallback.cbl']}, 'unknown': {'count': 0, 'programs':
         def test_data_types(synthetic):
             inv = synthetic[2]
     >       assert has(inv, "data_types", "PACKED", "data_types")  # noqa: S101
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     E       AssertionError: assert False
     E        +  where False = has({'cics_commands': {'READ': {'count': 1, 'programs': ['fallback.cbl']}, 'SEND TEXT': {'count': 1, 'programs': ['cics_co...ISSING': {'count': 2, 'programs': ['copybook_gap.cbl', 'fallback.cbl']}, 'unknown': {'cou
     tests/cobol_mainframe/test_feature_inventory.py:118: AssertionError
     =============================== warnings summary ===============================
     tests/cobol_mainframe/test_evidence.py::test_every_committed_record_is_current
       /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy/tests/cobol_mainframe/test_evidence.py:47: UserWarning: evidence records stale on the harness / oracle / generator (re-proven by the scheduled job): carddemo-acctview: harness, oracle, gener
         warnings.warn("evidence records stale on the harness / oracle / generator (re-proven by the scheduled job): "
     -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
     =========================== short test summary info ============================
     FAILED tests/cobol_mainframe/test_feature_inventory.py::test_data_types - AssertionError: assert False
      +  where False = has({'cics_commands': {'READ': {'count': 1, 'programs': ['fallback.cbl']}, 'SEND TEXT': {'count': 1, 'programs': ['cics_co...ISSING': {'count': 2, 'programs': ['copybook_gap.cbl', 'fallback.cbl']}, 'unknown': {'count': 0, 
     1 failed, 2574 passed, 550 skipped, 1 warning in 443.43s (0:07:23)
     ##[error]Process completed with exit code 1.
     Post job cleanup.
     [command]/usr/bin/git version
     git version 2.55.0
     Temporarily overriding HOME='/home/runner/work/_temp/952ae027-c98e-4851-ab26-f6eec3af649f' before making global git config changes
     Adding repository directory to the temporary git global config as a safe directory
     [command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
     Removing SSH command configuration
     [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
     [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
     Removing HTTP extra header
     [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
     [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
     Removing includeIf entries pointing to credentials config files
     [command]/usr/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
     [command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
     Cleaning up orphan processes

…when it holds national data (#4664)

The translator now refuses PIC N / G, USAGE NATIONAL / DISPLAY-1 and N / G literals whole (it laid them out one byte a
character), so the inventory's layout.parse raised and the program's PACKED / COMP / EDITED / statements went uncounted
(test_data_types). The census now reads that national data as plain text for counting only, and counts NATIONAL itself.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 10, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (28d31f3) 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.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). 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 Oct 10, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 10, 2026 22:07
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit cd3af84 into main Oct 10, 2026
41 checks passed
@squid-protocol
squid-protocol deleted the fix/4664-det-national-characters branch October 10, 2026 22:10
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.

det translator: a data name with a single-byte national letter (cp273 BETRÄGE / GEBÜHR) is refused: estate-crucible ZINSBER

1 participant