Skip to content

det: hoist abended/store/lastAnswerBytes/lastLinkBytes shims into DetCics (Closes #8486) - #8932

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8486-20261121T1822Z
Nov 21, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8486-20261121T1822Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

Closes #8486 (slice 2; slice 1 was #8537).

The live det translator still wrote identical method bodies into every *Service.java. They are now one-line delegates to new DetCics helpers:

  • abended() -> DetCics.abended(task, caBack, Goback::new)
  • lastAnswerBytes() / lastLinkBytes() -> DetCics.copyBytes
  • store() for a program that stores no file -> DetCics.noStore
  • paragraph() / condition() collapsed to one line (they were 3-line bodies the guard counts)

The guard test now translates through the full task path (project dir plus a stub with runTask). The old sample took a minimal path that emitted none of these methods, so it guarded nothing. abended, lastAnswerBytes and lastLinkBytes are removed from the structural-method exemption set. A new test pins the delegate shapes.

Class / siblings

Class: a method body the live det translator emits identically into every service.

Fixed here: abended, lastAnswerBytes, lastLinkBytes, the no-file store, paragraph, condition.

Sibling gaps

  • The 30-entry ALLOWED_COMMITTED_DUPLICATES is unchanged. The committed tests/cics_crucible/det-ports copies are built from crucible projects by cics_crucible_det.py build. The carddemo-*/port/service ports are model-written. Neither is regenerable here. Rebuilding the det-ports from their crucible projects would shrink the list. The model-written carddemo ports stay as they are.
  • Per-program shapes (perform, run, dd, p<N>) are not shims.

Facts checked

  • det_port.py check: every CICS port's DetCics.java and its service change (276 of 302 ports); the other 26 are unchanged. The change is mechanical.
  • A local proof (det_port.py run on 5 cases) reports JAVA FAILED. A control run of asynccc-getpol on pristine origin/main fails the same way: the proof classpath picks up another solver's scratch project (multiple @SpringBootConfiguration). So the re-prove could not be run locally. CI's e2e is the proof.
  • audit_check.py: all clear. cobolrt_api.py --check, test_cobolrt_api, test_cobolrt_rules, test_det_translate, the guard test: pass.

Cross-repo

None.

Checklist: n/a

🤖 Generated with Claude Code

…s are one-line cobolrt delegates (Part of #8486)

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 21, 2026 18:49
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 21, 2026 19:09
@squid-shepherd squid-shepherd Bot 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 Nov 21, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 3ab84ae into main Nov 21, 2026
107 of 109 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8486-20261121T1822Z branch November 21, 2026 20:50
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/cobolrt: factor out per-service duplicated runtime shims (40.9% of CardDemo methods)

1 participant