Skip to content

genapp-lgstsq: det-proved LINKed-arm case; port held back by an X6 gap (Part of #4054) - #5611

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4054-20261019T1039Z
Oct 19, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4054-20261019T1039Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #4054. Checklist: partial [c:93ce969f] -- GenApp stays at E1: LGSTSQ has a det-proved case but no committed port or evidence record (X6 gap below); LGAPDB01 (Db2 case, no port or record yet) and LGUPVS01 (holds LGUPDB01 at E1) are untouched.

What changed

  • tests/equivalence/genapp-lgstsq/ (case.json, LICENSE, NOTICE): LGSTSQ driven as a LINKed target, seven scenarios (EIBCALEN 90, 40, 10, 9, a blank text, a full text, the caller's error record). The COMMAREA DTO is the callers' 99-byte CA-ERROR-MSG.
  • tests/equivalence/det_sweep_coverage/genapp-lgstsq.json: regenerated by det_coverage_ledger.py update, not hand-written.

Evidence ladder (this program)

  • Translated: whole, no holes, none refused.
  • Executed-equivalent (det): 7 scenarios, 0 diffs. Paragraphs 1/1, branches 3/6. The Q= and RECEIVE arms are unreachable when LINKed; longer COMMAREAs hit the X6 refusal (the oracle is GnuCOBOL plus our CICS model, not z/OS).
  • Model port: proven on attempt 1 (7 scenarios), but held out of this PR.

Why the port is not here

Adopting it changes genapp-lgapvs01's proof inputs (evidence.equivalence_target, #4188: a LINKed program's committed port runs in the proof). Re-proving LGAPVS01 then fails: add-duplicate-key, add-io-error and add-nospace compare 1 vs 9 events. LGAPVS01's 101-byte ERROR-MSG reaches LGSTSQ's WRITEQ TD, where the oracle refuses (X6: LENGTH > FROM) and is judged up to there. The model port clamps LENGTH to FROM (min(recvLen, 95)) and keeps going, so no .x6 is written. I did not loosen the comparison or hand-edit the port. The held files are in the worktree's scratch dir only.

Class table (GenApp callees that hold callers at E1)

member status this PR source / why
LGSTSQ det-proved case; port proven but held; no record covered (case + ledger) port blocked by the X6 gap below
LGAPVS01 E2 record, stale on generator not touched needs LGSTSQ executed-equivalent and re-proof
LGAPDB01 Db2 case, no port or record not here needs its own Db2 case and port; also LINKs LGAPVS01
LGUPVS01 no record not here holds LGUPDB01 at E1

Sibling gaps

  • LGAPDB01: no port, no record. Needed by GenApp's callee-hole rule (policy 4).
  • LGUPVS01: no record. Holds LGUPDB01 at E1.
  • Any LINK to LGSTSQ with a COMMAREA over 95 bytes hits the same X6 divergence once a model port is adopted (LGAPVS01 is the burned-estate program that needs it).

Gates

pr_gates.py --fast 6/6, --ratchets 8/8; pytest (test_estate_evidence, test_det_coverage_ledger, test_proof_reach, test_evidence, test_source_reads, test_cics_spec, test_generated_branch, test_sweep_plan, test_ci_critical_path_split, test_evidence_report) 352 passed. Not run: audit_check.py (no Python source changed).

Cross-repo: none.

Lessons for agents

🤖 Generated with Claude Code

…eld back by an X6 gap (Part of #4054)

Seven scenarios drive LGSTSQ as a LINKed target (COMMAREA DTO from the callers' CA-ERROR-MSG, EIBCALEN stated),
det-proved 7/7, 1/1 paragraphs, 3/6 branches. The coverage ledger entry is regenerated.

The model-written port (proven on attempt 1) and its evidence record are NOT committed: adopting the port changes
LGAPVS01's proof inputs (#4188 runs a LINKed program's committed port), and LGAPVS01 then fails -- the port clamps
WRITEQ LENGTH to FROM where the oracle refuses (X6), so the Java runs on past the refusal.

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 Oct 19, 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 19, 2026 11:24
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 11:28
@squid-protocol
squid-protocol merged commit 0e2bf4a into main Oct 19, 2026
51 checks passed
@squid-protocol
squid-protocol deleted the churn/4054-20261019T1039Z branch October 19, 2026 11:33
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