Skip to content

equivalence: declared SQL fault carries SQLERRMC and SQLERRD(3); BANKDATA branches 25 to 47 of 48 (Part of #5561) - #5794

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5561-sqlerrmc
Oct 20, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5561-sqlerrmc

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

BANKDATA (cbsa-bankdata) branch coverage in the det sweep: 25/48 to 47/48 outcomes, paragraphs 24/24, over 24 runs, proven against GnuCOBOL plus the Db2 stub.

Derived SQL faults on BANKDATA were refused by name: the stub left SQLERRML 0, and BANKDATA does SQLERRMC(1:SQLERRML) (register X8 / M2, a length-0 ref-mod the bounds flags refuse). A declared SQL fault can now carry SQLERRMC and SQLERRD(3), set identically on both sides.

Class table (SQL fault fields)

Field ggsql.c DetSql.java case.json sql_faults
SQLCODE / SQLSTATE already already already
SQLERRMC token (+ SQLERRML) new new new (sqlerrmc, - = none)
SQLERRD(3) new new new (sqlerrd3)
SQLERRP, SQLERRD other, SQLWARN not modelled not modelled not modelled

Plan line: <program> <line> <nth|*> <sqlcode> <sqlstate> [<sqlerrmc|-> [<sqlerrd3>]]. Token is validated as 1 to 70 non-space characters, else Unsupported.

Coverage quoted

BANKDATA: proven on 24 runs, 24/24 paragraphs, 47/48 branches. 15 declared runs added (12 reason-arm, 3 positive-SQLCODE). The derived faults still run and are still named as unrunnable.
Left: line 917 true arm (100 failed opened-date draws in a row; each draw fails with probability at most about 1/14, so no seed reaches it in practice). Not claimed infeasible.

Assumptions relied on

  • Token values are not judged: both sides carry the same bytes.
  • The reason-code token is the first token of IBM's -913 SQLERRMC; other tokens and X'FF' separators are not modelled.
  • +802 / 01519 stands in for a positive non-100 warning.

Deviations from the plan

  • Plan-format code lives in equivalence_cics.py (sql_fault_plan), not equivalence_sql.py.
  • Register M2.md not edited (5-file cap); left as a slice below.

Gates

pr_gates --fast 7/7, --ratchets 8/8; test_sql_faults, test_evidence, test_equivalence_sql, test_equivalence_db2_rows pass (77 passed, 19 skipped). Det sweep ledger regenerated for cbsa-bankdata only.

Cross-repo: None.

Checklist: partial [c:c957d43c] -- line 917 true arm (1 outcome) left; M2 register note

Lessons for agents

  • Run ruff format before the proof: formatting changes the harness fingerprint and stales the ledger.
  • proof_sweep.py --det-only --cases X --work DIR --jobs 1 --faults all --no-ratchet, then det_coverage_ledger.py update DIR, regenerates one case's coverage ledger.

Part of #5561

🤖 Generated with Claude Code

…NKDATA branches 25 to 47 of 48 (Part of #5561)

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 20, 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 20, 2026 22:51
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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