Skip to content

equivalence: compare browse events; HCRDST F/B/N scenarios (Part of #7434) - #7632

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7434-20261103T2243Z
Nov 3, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7434-20261103T2243Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7434 (slice 1 of 2).

What

The C stub already logs STARTBR / READNEXT / READPREV / ENDBR (#6262) and the Java CicsTask records them, but the equivalence harness dropped the COBOL side, so the HCRDST browse modes could not be a scenario. Now:

  • FILE_EVENT_VERBS gains the four browse verbs; cobol_file_event parses rid= / mode= / set=1, java_file_event_as_compared turns the Java ridfld into hex, and compare_events compares ridfld, mode, set for the browse verbs (READ is unchanged).
  • cruc-hc-file-read-set gains browse-forward (HC83 F), browse-backward (B) and browse-notfound (N).

Evidence

case paragraphs net branches proof
cruc-hc-file-read-set 4/8 -> 8/8 6/9 -> 9/9 det PROVED, 5 scenarios, 17/17, 17/17, 13/13 browse events equal

Re-proved with the new comparison: carddemo-billpay(-generated), cardlist, tranadd, tranlist, userlist, cbsa-inqcust, mortgage-mlist(-generated) (det) and five model ports: all still PROVED, none moved.

Plan deviation

The brief's symptom (SET(ADDRESS OF) READNEXT/READPREV skipping every other record) did not reproduce: the stub log and the Java both step K015, K020, K030, K040, K050. The cause was the missing comparison, not the stub or the translator, so no C or translator change; test_a_browse_that_skips_a_record_is_a_diff pins that a skipping sequence now differs.

Class / Sibling gaps

Class: file events the harness does not compare. Fixed here: STARTBR, READNEXT, READPREV, ENDBR (stub SET and INTO forms). Still not compared: WRITE and DELETE events, RESETBR, the RBA browse (ridfld is unmodelled), READ set / ridfld. Which burned program needs each is not yet checked.

Lessons for agents

  • The Java browse ridfld in the equivalence harness is the program's ASCII page, like data; the cp037 form is the crucible runner's (cics_crucible._java_file_event).

Gates

pr_gates --fast 9/9, audit_check.py clear, pinned ruff format clean, time ratchet pass, 349 related tests, test_evidence.py + tests/equivalence 58 passed. No golden bless (no engine change). Cross-repo: none.

🤖 Generated with Claude Code

…BR); HCRDST F/B/N scenarios (Part of #7434)

The stub already logged the browse; the harness dropped it. Both sides' browse events are now paired and
compared (file, resp, resp2, ridfld, mode, set, length, data), and cruc-hc-file-read-set gains browse-forward,
browse-backward and browse-notfound (L1 -> L4: 4/8 -> 8/8 paragraphs, 6/9 -> 9/9 net branches).

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

squid-shepherd Bot commented Nov 3, 2026

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