Skip to content

CBSA GETCOMPY/GETSCODE: raw caller bytes enter a typed case's byte[] entry; det mutation re-judged (Part of #7954) - #8003

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/7954-20261107T1007Z
Nov 7, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/7954-20261107T1007Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7954 (slice 4, first half).

Checklist: partial [c:c45209e5] -- GETCOMPY and GETSCODE now run the raw byte[] entry and are re-judged; ACCTCTRL, UPDACC, UPDCUST and ABNDPROC's two rows are open, and the byte[] entry's own copy rows stay masked (below)

What changed

  • tests/tools/equivalence_cics.py: a typed case may state commarea_hex (a caller with no typed layout), with link_bytes (handleLink(request, byte[])) or without (the byte[] entry through runTask). The facade, whose handleLink(Dto) is typed, falls back to runTask for raw bytes. Still refused beside commarea, commarea_length, commarea_tail_hex, dto_entry, and for bad or empty hex. mask_absent_commarea no longer masks stated bytes.
  • tests/cobol_mainframe/test_equivalence_cics_commarea.py: accept/refuse matrix and the mask rule.
  • cbsa-getcompy / cbsa-getscode case.json: raw-entry-bytes-* (link_bytes) and raw-entry-direct-* scenarios (under, equal, over the record). Both PROVED (21 / 22 scenarios).
  • Det mutation re-run in full: GETCOMPY 71 killed, GETSCODE 78 killed. The killed harness-gap rows (a09175d61d, 1c96b6ee72) are dropped, stale ones removed, 6 new survivors stated (2 unreachable after a survivor_attack try, 4 harness-gap).
  • X10.md Slice 4 paragraph.

Class / Sibling gaps

Class: a typed case could not hand the program raw caller bytes, so the byte[] entry rows stayed harness-gap. Siblings of the same mechanism: ACCTCTRL (needs the byte[] entry row), UPDACC, UPDCUST (same shapes plus their ledgers). Burned-estate programs: all CBSA. Not filed as issues.
The byte[] entry's own arraycopy / beyond rows stay masked on both shapes: the generated service re-copies the LINK area (task.linkArea(), #7589) over the entry's copy. A shape that omits the area (tried as commarea_by_value) made COBOL keep its own record where Java took the bytes: unresolved, reverted, not shipped.

Remaining slices

  • ACCTCTRL / UPDACC / UPDCUST: raw-entry-* scenarios and re-run ledgers (three more hand-written files).
  • ABNDPROC 89e1bd4020 (|| to && in store()): differs only where the region lacks ABNDFILE, so needs a region in cbsa-abndproc/case.json.
  • ABNDPROC caBack fill_ on ABND-RESPCODE (SIGN LEADING SEPARATE): the det/CICS: a typed COMMAREA write-back rewrites the sign of a field the program never touched #7485 sign write-back question, probably translator work.
  • UPDACC short-EIBCALEN facade rows (refused by the port's java-facade side).
  • The masked byte[]-entry copy rows above (needs a shape without the LINK area re-copy).

Facts checked

  • Plan deviations: the not ca_fields switches were unneeded; mask_absent_commarea changed; facade runTask fallback added; link_bytes alone is masked by the linkArea re-copy, so the direct shape was added.
  • det_mutation.py check ok, stale-check --vs origin/main no stale ledger; pr_gates --fast (derived refreshed via proof_sweep --det-only + det_coverage_ledger.py update), --ratchets 9/9, audit_check.py clear, ruff format --check clean, plain pytest of the commarea tests 25 passed from /tmp. merge-tree against origin/main clean. No engine change, no golden bless.

Lessons for agents

  • A typed service's task.linkArea() re-copy overwrites the byte[] entry's copy, so link_bytes alone cannot kill its arraycopy mutants.
  • det_mutation.py state needs --attempts <work>/attempts.json from a survivor_attack try before an unreachable verdict; check passes without it but stale-check does not.
  • Wrap each Bash call's PATH with the selfscan venv; pinned ruff is not bin/ruff in a worktree.

🤖 Generated with Claude Code

squid-protocol and others added 4 commits November 7, 2026 05:13
…s; GETCOMPY/GETSCODE raw-entry scenarios (Part of #7954)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…directly (runTask, facade falls back to runTask); direct scenarios (Part of #7954)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…s, survivors re-stated (Part of #7954)

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 7, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 7, 2026 12:07
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 7, 2026 12:16
@squid-shepherd
squid-shepherd Bot merged commit 3d3b453 into main Nov 7, 2026
88 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7954-20261107T1007Z branch November 7, 2026 12:31
squid-protocol added a commit that referenced this pull request Nov 7, 2026
…easons (Part of #4628) (#8014)

* survivor_attack: `try` attacks batch cases; stale-check refuses bulk survivor reasons (Part of #4628)

Batch `try`: a batch case is one job step, so an input changes the step -- a new record of an
input dataset (strengthen.py's record builder), new generator specs for a `@generate` dataset,
SYSIN, PARM, or a fault run. The trial is the committed step with those changes; `packet` shows
the layouts, first records, generated fields and a fault plan to copy. CBSTM03A, PAUDBLOD,
PAUDBUNL and COBSWAIT had no attack path at all before this.

The verdict gate (`stale-check --vs REF`, `state`, `lint`), for the entries a change writes:
- one reason template (numbers, quoted code, method names aside) on more than 10 Java lines of a
  case, unless each entry has an attack or `facts` settlement on record;
- a case-gap / harness-gap saying the code is not exercised when the ledger's proof covers every
  paragraph (a branch claim stands while branches are left uncovered).
`state --attempts` now records the attack behind a gap verdict too.

Replayed over every survivor-file change since 2026-10-28 (142 commit/case pairs): all of
watcher1's PRs (#7720 #7739 #7762, open #7981) are refused, as are the 10-30/11-01 bulk
"account for all" PRs the 11-01 audit found wrong; open #8003 and #8004 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* survivor_attack: a committed port that does not compile is `refused`, not port-differs (Part of #4628)

Found on the first live batch `try` (COBSWAIT from a JDK 21 shell): the Java build failed, and
`try` said port-differs, which the skill says is a real finding to stop and report. A compile
failure of the unchanged committed port is the box; a crash on the new input stays port-differs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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