Skip to content

Health Db2 programs: SQL-fault scenarios lift HCIPDB01, HCITDB01, HCIVDB01, HCMADB02 to every net branch (Part of #8121) - #8308

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8121-20261111T1358Z
Nov 11, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8121-20261111T1358Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8121. Case data only: SQL-fault and frequency scenarios lift the Health Db2 programs from L3 toward L4.

Class / Sibling gaps

Class: Db2 EVALUATE SQLCODE arms (WHEN -913, WHEN OTHER) that the enumerated default fault does not reach (a SELECT INTO defaults to 100), so they need a stated sql_faults entry in a scenario. Members fixed here: HCIPDB01, HCITDB01, HCIVDB01 (two SELECTs), HCIMDB01 (the loop FETCH, named by line). HCMADB02 was not SQL: its open arms were the twice/three/four-times-a-day frequency values.

Sibling gaps, not here:

Remaining slices

  • Harness: allow a scenario to drive CA-MEDICATIONS past one entry (HCIMDB01 221:WHEN@222).
  • Solver: decide HCIMDB01 226:false (witness vs reading above).
  • HCATDB01 130:true over-read: harness or owner ruling.

Coverage (det sweep, --faults all)

case paragraphs before paragraphs after net branches before net branches after proof
health-hcimdb01 100.0 (6/6) 100.0 (6/6) 78.6 (11/14) 85.7 (12/14) proven
health-hcipdb01 100.0 (4/4) 100.0 (4/4) 75.0 (6/8) 100.0 (8/8) proven
health-hcitdb01 100.0 (4/4) 100.0 (4/4) 75.0 (6/8) 100.0 (8/8) proven
health-hcivdb01 100.0 (5/5) 100.0 (5/5) 71.4 (10/14) 100.0 (14/14) proven
health-hcmadb02 100.0 (7/7) 100.0 (7/7) 72.7 (8/11) 100.0 (11/11) proven

The oracle is GnuCOBOL plus our stub and a real Db2 container, not z/OS. Expected outputs come from the oracle, none hand-written. Four of five cases take every net branch; HCIMDB01 does not. No infeasible entries were added.

Checklist: partial [c:581bd365] -- Db2 family L4 except HCIMDB01 (2 arms); screen, REST and error programs remain

Lessons for agents

  • A Db2 seed row for a dependent table needs its parent row first (SQL0530N), and medication.type is two characters (SQL0433N on 'OTC').
  • A scenario that gives a cursor loop a second row over a one-entry OCCURS table is refused as X8; do not use it to take a loop's WHEN 0.
  • branch_solver.py reach witnesses can skip a loop guard (it faulted the first FETCH to reach a paragraph that only runs after a successful one): read the witness against the PERFORM UNTIL before using it as a scenario.
  • infeasible_outcomes.py add needs --unit and --kind when the case has no evidence record listing the branch.

🤖 Generated with Claude Code

…VDB01 and HCMADB02 to every net branch (Part of #8121)

sql_faults scenarios take the EVALUATE SQLCODE -913 and OTHER arms; HCMADB02 needed frequency
scenarios. HCIMDB01 goes 11/14 to 12/14 (loop FETCH arms); two arms stay open.

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 Nov 11, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 11, 2026 14:32
@squid-shepherd

Copy link
Copy Markdown
Contributor

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