Skip to content

det RECEIVE MAP honours DFHMDF JUSTIFY; proof_reach det helpers; PCCONF det port (Closes #5082) - #5115

Merged
squid-protocol merged 6 commits into
mainfrom
churn/5082-20261014T1004Z
Oct 14, 2026
Merged

squid-protocol merged 6 commits into
mainfrom
churn/5082-20261014T1004Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #5082

What

(1) det RECEIVE MAP honours DFHMDF JUSTIFY (IBM BMS: right-justify, zero/blank fill on input)

  • ScreenField (generated by cobol_to_java_screen_forge.py) carries justify ("RIGHT,ZERO", "LEFT,ZERO", ...; null without one).
  • det/cics.py receive_map reads it off the screen's LAYOUT and emits DetJustify.place only for a field that has one; every other field keeps DetCics.typed. The runtime is a class of its own (cobolrt/cics/DetJustify.java) so a port without such a field does not carry it.
  • Register X54, rule RT-CICS-BMS-JUSTIFY (IBM DFHMDF / RECEIVE MAP cited; ASSUMED where IBM is silent: ZERO with LEFT, over-length cut, <f>L).
  • The equivalence oracle models it too (equivalence_cics.map_input / bms_justify): without it GnuCOBOL handed the program left-justified text and GenApp LGTESTP2 / LGTESTP4 (ENP2LIF, JUSTIFY=(RIGHT,ZERO)) read as DIFFERS. The crucible runner already justified (cics_bms.received_value).
  • PCCONF is a committed det port (47/47, 0 holes, replaces the model port); pc-wizard java-ported 6/6 (cobol-stub 6/6); crucible_port_provenance reprove and evidence.py prove for PCCONF and PCWIZ done.

(2) proof_reach no longer counts det helpers as ported-unproven. A method of a file carrying DET_PORT_MARKER before any code, named in proof_reach.DET_HELPERS (runProgram, handleTransaction / handleLink / handleChannel facades, run-unit plumbing, in_X / out_X / fill_X codecs) is kind det_helper: proven by the cells that reach the class. Not loosened: any other method of a det file, every method of an unmarked file, and what a helper calls still count; stubs/generated keep their kinds; the blocking policy is still ported_unproven only. Tests pin the list to what det/ emits and run every committed det port.

Class table

member status
JUSTIFY RIGHT / LEFT / BLANK / ZERO forms (parsed + applied) done, tests over all 8 forms x widths x texts
det helpers: runProgram, facades, plumbing, codecs done
Oracle side of RECEIVE MAP JUSTIFY done

Sibling gaps (not here)

  • NUM field with no JUSTIFY: the crucible runner right-justifies and zero-fills it; det port and oracle leave it as typed (as before).
  • JUSTIFY on SEND MAP output; PICIN/PICOUT; per-occurrence JUSTIFY on OCCURS/GRPNAME fields.
  • 24 det ports changed only in their generated screen DTO (LAYOUT gains a column; service unchanged) were not re-proven.

Cross-repo

None (cics-crucible pin unchanged, v0.7.0).

Evidence

  • det_port.py check vs origin/main: 74/110 unchanged; 36 moved = every port with a screen (LAYOUT column) and the 12 that use JUSTIFY (DetJustify), the DetCics/CicsTask lines in the first run were main drift. The 12 re-proved: acctupdate, acctview(+generated), adminmenu, cardupdate, menu, cbsa-bnk1cac, genapp-lgtestc1/p1/p3 PROVED; lgtestp2/p4 DIFFERED until the oracle change, then PROVED.
  • pr_gates --fast 6/6; --ratchets 7/7 (ports, fact-crosscheck, ground-truth, completeness ...).
  • Golden masters: not re-blessed (no parsing logic touched; the screen forge is not in the crucible scan); not run locally.
  • Not committed: evidence report pages (bot).

🤖 Generated with Claude Code

squid-protocol and others added 6 commits October 14, 2026 09:56
…cs.typedJustified places the input (Part of #5082)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…oven by the cells that reach the class, not ported-unproven (Part of #5082)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…field are not moved; det design note (Part of #5082)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…izard java-ported 6/6 (Part of #5082)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… (GenApp LGTESTP2/P4 prove again) (Part of #5082)

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

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 14, 2026 14:54
@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 15:01
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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.

Siblings of #5053: det-port proof blockers (RECEIVE MAP JUSTIFY, proof_reach det helpers)

1 participant