Skip to content

equivalence: cases for the GenApp, zECS, async credit-card and CardDemo programs made whole (Part of #4270) - #4808

Merged
squid-protocol merged 8 commits into
mainfrom
equiv/4270-noncbsa-cases
Oct 9, 2026
Merged

squid-protocol merged 8 commits into
mainfrom
equiv/4270-noncbsa-cases

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4270. Equivalence cases for the non-CBSA programs that translate whole but had no case (evidence L1). The list comes from cics_census.py blockers --baseline --all-programs on main 5242878 plus the committed cases. All 8 cases are det-proven in one local sweep through heavy-run.sh: proof_sweep.py --det-only --cases …, 8/8 proven, "as expected". The coverage is ledgered with det_coverage_ledger.py update (check: as expected), and both proof sides (runTask and java-facade) are equal in every scenario. Two of the cases are Db2 cases (LGTESTC1, COPAUS2C). CI's det-sweep skips Db2 cases, so their entries come from this local sweep.

The levels below are what the evidence report should compute after the refresh: L2 = proven, L3 = paragraphs 100%, and branches 100% also meets L4's bar.

Program (estate) Case Scenarios Level before → after Gaps left
LGIPVS01 (GenApp) genapp-lgipvs01 5: a GENERIC GTEQ key on file, the next key, another policy type, past the end, a 9-digit customer number L1 → L3 (1/1 ¶, 4/6 br) The COMMAREA path: STARTCODE 'D' or a LINK, and no GenApp program takes it
LGASTAT1 (GenApp) genapp-lgastat1 8: an event channel (first / queue present / 02ACUS, 03ICOM, 05ICOM folding / RC→99 / no counter); no channel with and without a COMMAREA L1 → L3 (1/1, 10/10) The ABSTIME date is X11 (DIFFERS, declared)
LGSETUP (GenApp) genapp-lgsetup 2: a last customer typed / only the transaction id L1 → L3 (1/1, 2/2) Hollow: every task stops at the second WRITEQ, LENGTH(23) past FROM X(13) (X6), so only the RECEIVE and the first WRITEQ are compared. The counters, the third WRITEQ and SEND TEXT are not compared until #4050
LGTESTC1 (GenApp) genapp-lgtestc1 14 (+4 derived SQL faults): inquire / not found, add / first customer (X6) / add fails, update / not found / fails / row gone (+100), bad option, CLEAR, PF3, MAPFAIL. Runs 11 programs in the task, with Db2 + VSAM L1 → L2 (9/10 ¶, 16/18 br) NO-ADD: every failure in the add chain LINKs LGSTSQ first (X6)
LGWEBST5 (GenApp) genapp-lgwebst5 4: all counters and queues present, the first interval (no GENA000V), rates falling, a queue and a counter missing L1 → L3 (3/3, 0/0) CountVal / WS-TSQdata without VALUE (L3) are left out; X11 date
ZECSPLT (zECS) zecs-zecsplt 4: one instance, other URIMAPs (wrong prefix, suffix, no transaction), a 'ZC' name, no URIMAPs L1 → L3 (11/11, 6/6) Browse order (X32): no scenario has two instances
SEQPNT (async) asynccc-seqpnt 4: terminal 0001 / 0002, web-service channel 0001 / 9999. Runs 8 programs in the task L1 → L3 (3/3, 4/4) A short terminal line, or no SEQPNT container (L3 initial storage)
COPAUS2C (CardDemo) carddemo-copaus2c 5 (+2 derived): new fraud, report again (-803 → UPDATE), remove, INSERT fails, UPDATE fails L1 → L3 (2/2, 6/6) FRAUD_RPT_DATE is Db2's CURRENT DATE on both sides, so a run across midnight would differ

Refused by name (issues filed, milestone 18):

Translator / harness fixes (separate commits):

  • det: keep a COMMAREA program's handleChannel… (det/program.py). A program with both a COMMAREA and a channel (LGASTAT1) had a controller calling handleChannel, which the det port dropped, so the port did not compile. The method is now kept and stops by name (Generator: emit no entry points or handlers that have no COBOL behaviour behind them #4342).
  • harness: … (equivalence_cics.py, equivalence_sql.py, db2/ggsql.c):
    • The COBOL side's START events were dropped while CicsTask records them. They are now compared on transid, termid, interval/time, reqid, protect, RESP/RESP2, expiry ($GGCICS_NOW = the case clock) and FROM as text.
    • A case or scenario can now state "urimaps" (INQUIRE URIMAP, X32) on both sides, as the crucible runner already does.
    • The facade side runs a LINK CHANNEL target that is a channel program through runTask, the same way it already enters the scenario's own channel program (Prove crucible ports through their deployed entry points (Spring façades), not only runTask #4343).
    • The SQL stub takes 32 host variables (COPAUS2C's 26-column INSERT).
    • A DCLGEN PIC S9(11)V is now accepted.
  • Register X32 text notes the urimaps key. Unit tests are added for each change.

det_port.py check vs origin/main: 80/88 ports unchanged; only the 8 new cases changed. Gates: pr_gates --fast 5/5 pass; --ratchets 7 pass, 0 skipped. The harness, oracle and generator changes stale the evidence records on scheduled inputs only, which the refresh bot re-proves. No blocking-stale records. The rendered evidence report is not committed.

🤖 Generated with Claude Code

squid-protocol and others added 6 commits October 9, 2026 12:39
…s port compiles (GenApp LGASTAT1, Part of #4270)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the facade side, 32 SQL host variables, PIC S9(n)V (Part of #4270)

- cobol_events reads the stub's START (transid, termid, interval/time, reqid, protect,
  RESP/RESP2, expiry from $GGCICS_NOW = the case clock, FROM as text); it was dropped.
- a case / scenario "urimaps" states INQUIRE URIMAP's installed definitions on both
  sides ($GGCICS_URIMAPS, CicsTask.withUrimaps), as the crucible runner does (X32).
- the facade side runs a LINK CHANNEL target that is a channel program through
  runTask, as it already enters the scenario's own channel program (#4343).
- ggsql.c / equivalence_sql: 32 host variables (COPAUS2C's 26-column INSERT) and a
  DCLGEN's trailing-V picture (PIC S9(11)V COMP-3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mo programs made whole (Part of #4270)

LGIPVS01, LGASTAT1, LGSETUP, LGTESTC1, LGWEBST5 (GenApp), ZECSPLT (zECS),
SEQPNT (async credit-card), COPAUS2C (CardDemo): each det-proven in a local
sweep (8/8), coverage ledgered.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	tests/equivalence/det_sweep_coverage.json
# Conflicts:
#	tests/equivalence/det_sweep_coverage.json
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 9, 2026 19:40
@squid-protocol
squid-protocol merged commit 8130b9a into main Oct 9, 2026
37 checks passed
@squid-protocol
squid-protocol deleted the equiv/4270-noncbsa-cases branch October 9, 2026 19:40
squid-protocol added a commit that referenced this pull request Oct 9, 2026
squid-protocol added a commit that referenced this pull request Oct 9, 2026
…uivalence_cics: terminal facts + URIMAPs / case clock kept together

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant