Skip to content

det: state EIBTASKN on both harness sides (#4270) - #4616

Merged
squid-protocol merged 2 commits into
mainfrom
det/4270-eibtaskn-stated
Oct 7, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
det/4270-eibtaskn-stated

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4270.

This PR makes EIBTASKN a value the harness states on both sides: in the spec (gitgalaxy/standards/cics/eib.py), in the stub (GGCTASKN / $GGCICS_TASKN), and on the Java side (CicsTask.withTaskNumber), set per case or per scenario by "taskn" (equivalence_cics.task_number). proof_blockers now counts it as a stated fact. oracle_assumptions gets a new X21 entry and an updated C12. It also adds seed-row scenarios for GenApp LGIPDB01 and LGUCDB01.

Evidence ladder

Measured with proof_blockers.py <survey 3167e2bb0> --label before [--branches] --sweep and a local full proof_sweep.py (det and model, Db2 included). Before is main; after is this branch.

bar before after
paragraph bar (L3, 100% paragraphs) 22 29
strict bar (L4, 100% branches) 4 4

Programs that reach the paragraph bar (all burned): DELACC, LGACDB01, LGACDB02, LGDPDB01, LGIPDB01, LGUCDB01, LGUPDB01. Their only gap was the unstated EIBTASKN.

Branch coverage:

program before after
DELACC 13/14 13/14
LGACDB01 8/14 8/14
LGACDB02 5/10 5/10
LGDPDB01 6/12 6/12
LGIPDB01 48/74 56/74
LGUCDB01 4/10 5/10
LGUPDB01 26/38 26/38

New scenarios:

  • LGIPDB01: the case seed is now @case/seed.sql. It holds every INSERT of db2cre.jcl, plus customer 11 (the same row genapp-lgacdb02 adds), plus three policies of customer 11 whose brokerId and payment are NULL. The endowment policy also has PADDINGDATA set. These cover the false sides of l.397/400/494/497/588/591 and the true sides of l.383/410.
  • LGUCDB01: one KSDSCUST record (customer 11) that has no Db2 row. Its UPDATE returns +100 (l.173 true, '01'), LGUCVS01's READ UPDATE / REWRITE are NORMAL, and no path reaches LGSTSQ.

Gates

  • pr_gates.py: lint, audits, secrets, xray, gauntlet, golden and suite all pass.
  • pr_gates.py --ratchets: ports, port-surface, estate, fact-crosscheck, completeness and ground-truth all pass.
  • Re-proof after the harness change (proof_sweep.py, det and model, Db2 included): det 56/59 (as baseline), model 28/28, "sweep: as expected".
  • Evidence records go stale through the harness fingerprint. Refreshing them is the scheduled job's work and is not done here.

Follow-ups (why the strict bar does not move)

The full classification is on #4602.

  • Infeasible: DELACC 363 false. l.282 ABENDs on any SQLCODE other than 0 or +100, and l.350 GO TOs on +100, so SQLCODE is always 0 at l.363. This needs proof_blockers: the strict branch bar counts statically dead outcomes -- 13 CardDemo programs cannot reach it (#4270) #4602's mechanism for declaring an outcome infeasible.
  • X6 (reachable on z/OS but not judgeable here), in every GenApp program: in WRITE-ERROR-MESSAGE, IF EIBCALEN > 0 true and both sides of IF EIBCALEN < 91 (LGACDB01 313/314, LGACDB02 210/211, LGDPDB01 230/231, LGIPDB01 1015/1016, LGUCDB01 207/208). That path LINKs LGSTSQ with the 99-byte CA-ERROR-MSG, and LGSTSQ writes 104 bytes from its 95-byte WRITE-MSG.
  • EIBCALEN 0 (131/149/117/251 true and the matching EIBCALEN > 0 false): needs LGSTSQ in programs, a region, and equivalence harness: COBOL side drops WRITEQ TS events (first hit: GenApp LGSTSQ run in-task) #4607 (the COBOL side drops WRITEQ TS events).
  • Short COMMAREA ('98': LGACDB01 165, LGDPDB01 143, LGIPDB01 390/487/581/689/793): the harness has no per-scenario COMMAREA length.
  • Declared SQL faults on paths that LINK LGSTSQ (LGIPDB01 421/512/610/712/817 false, 855/938 true): a scenario I write that reaches an unrun LINK is refused, and with LGSTSQ run the path hits X6.
  • LGIPDB01 907 true (more than 20 rows in Cust_Cursor): reachable with seed rows. I left it out because the cursor has no ORDER BY, so which row lands in the COMMAREA depends on Db2's access path.
  • equivalence Db2: a -- comment with an apostrophe in a case seed.sql is loaded differently by ggsqlrun, the Java reset and CLP #4610: a -- comment containing an apostrophe in a case seed.sql is loaded differently by ggsqlrun, the Java reset and CLP. I found it while writing these seed rows and worked around it by dropping the comment.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 7, 2026 08:01
EIBTASKN becomes a stated fact of the run: spec gitgalaxy/standards/cics/eib.py
(EIB_FACTS), stub GGCTASKN / $GGCICS_TASKN called by both drivers, CicsTask
withTaskNumber stored by the det port's runTask; a case's or scenario's
"taskn", default 0. proof_blockers no longer counts it for equivalence cases.
oracle_assumptions X21. NOT PUSHED: strict-bar measurement moved 0 programs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…age (#4270)

LGIPDB01: three policies of a case-added customer 11 with NULL brokerId /
payment (nullable in db2cre.jcl), the endowment one with PADDINGDATA set:
48/74 -> 56/74 branches. LGUCDB01: a customer on KSDSCUST but not in Db2,
so the UPDATE is +100 ('01') without reaching LGSTSQ: 4/10 -> 5/10.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 7, 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 7, 2026 13:42
@squid-protocol
squid-protocol merged commit 3bcbb8c into main Oct 7, 2026
40 checks passed
@squid-protocol
squid-protocol deleted the det/4270-eibtaskn-stated branch October 7, 2026 13:43
squid-protocol added a commit that referenced this pull request Oct 7, 2026
squid-protocol added a commit that referenced this pull request Oct 7, 2026
squid-protocol added a commit that referenced this pull request Oct 7, 2026
squid-protocol added a commit that referenced this pull request Oct 7, 2026
* tooling: purchaser-facing evidence report (#4601)

tests/tools/evidence_report.py writes, per estate, report.md + report.json
(gitgalaxy-evidence-report/1): a row per program with a level L0-L5 and the
numbers under it -- translation, executed equivalence, coverage, oracle
backing, assumptions named, residual risk, reproducibility. Filled only from
cics_census / proof_blockers / evidence / cics_spec_status / the crucible
baseline / oracle_assumptions.md. Corpus- and sweep-dependent inputs are
frozen in a `measured` block, so --refresh and --check need no corpora.

Committed for the five burned estates under
docs/language_status/evidence_report/. Tests: staleness (--check),
forbidden words, every Markdown number comes from the JSON, levels.
The nightly evidence-refresh job rebuilds the reports (--refresh --live).

Part of #4270.

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

* tooling: evidence report follows the owner's #4601 decisions

L2 is the det-sweep verdict alone (main's CI ratchet; a local --sweep for
Db2); the #4048 evidence record becomes a reported column. Coverage comes
from the --sweep line or the det-sweep coverage ledger (#4606, fresh
entries, frozen at build like the record status). Bars default to 100%
paragraphs / 100% branches, with "net of reviewed infeasible outcomes"
reported as not yet available (#4602). Pins come from the #4597 manifest.
Reports re-rendered at translator commit ec87c13.

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

* tooling: re-render evidence reports on main 3bcbb8c (after #4606, #4616)

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

* tooling: evidence report ladder per the owner (#4601): net branches, mutation rung

L4 is 100% of branch outcomes net of the case's reviewed infeasible
outcomes (infeasible_outcomes.stated, #4602), listed per program as stated
claims with family and reason; raw and net numbers both printed, and a
refuted claim blocks L4. L5 is every surviving det-port mutant accounted
for (#4628), reported as not yet measured. Oracle backing leaves the
ladder and becomes a per-program column (DIFFERS reached: not measured).
Model-port mutation scores are left out on purpose. Reports re-rendered
with --refresh.

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

---------

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