Repository navigation
feat(#3210): hand-verified COBOL answer key for the #3120 corpora, scored against forge and engine - #3216
Merged
Conversation
…ored against forge and engine tests/cobol_mainframe/answer_key/ records per-program truth for IBM/zopeneditor-sample (5 programs) and CBSA (31 programs, 680 units), pinned by commit: PROGRAM-ID, real paragraph/section headers, dead units with reasons (trivial EXIT-only flagged), COPY/SQL INCLUDE resolution (zapp.yaml libraries; system and BMS-generated copybooks explained), SELECT/OPEN modes, CALL/LINK targets, CICS/SQL presence. Every program is validated, with notes on what was checked. tests/tools/cobol_answer_key.py draft computes candidates (an independent fixed-format reading used only as a verification helper). tests/tools/cobol_answer_key.py score measures the forge tools and the engine DB against a key. First scores on CBSA: real dead logic is 10 units. The forge finds 5 among 571 claims; engine usage_status finds 2 among 221. Engine COPY edges are 78/78 correct but cover 68% of references. The forge reports no outputs anywhere; on BANKDATA it marks the entry paragraph dead. Four draft errors found during verification are pinned by tests, each shown to fail with its fix reverted. Part of #3122. Closes #3210. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Contributor
…dropped them) CI failed 2 tests: tests/cobol_mainframe/answer_key/*.json were never in the commit. The .gitignore *.json rule silently excluded them from `git add` of the directory, and the local run passed on the on-disk copies. Add a documented exception beside the ledger's. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3210. Part of #3122. First of the tooling issues from the #3120 retrospective (#3210–#3215).
What this adds
tests/cobol_mainframe/answer_key/: a hand-verified key for each Refraction pipeline: consume the engine's master DB instead of re-parsing COBOL #3120 corpus, pinned by commit:Each program records:
trivialset forEXIT.-only onesEXEC SQL INCLUDEresolution, through zapp.yaml libraries where the corpus declares them; unresolved entries say why (CICS/LE/DB2-supplied, or a BMS-generated map)Every program is
validated, and the key'smethodblock says how each field was checked. The README has the details and the scores.tests/tools/cobol_answer_key.py:draftcomputes candidate values with an independent fixed-format reading. It is a verification helper, not a third product parser, and nothing imports it.scoremeasures the forge tools and an engine DB against a key.tests/cobol_mainframe/test_cobol_answer_key.py(13 tests): key integrity (no corpus needed), the draft rules on small fixtures, and a scorer smoke test.First scores (CBSA)
Neither side can say what's dead yet (#3198, #3203). The engine's copybook edges are always correct but cover 68% of references (#3199). New detail for #3203/#3204: on BANKDATA the forge marks the entry paragraph
A010dead, which is why even its single-modeOPEN OUTPUTdisappears.How it was verified
HANDLE ABEND LABEL(...)handlers read as dead (8 sections);PERFORM GET-ME-OUT-OF-HERE;AUTHOR. James O'Grady.opened a literal that hid the rest of the file;draftreproduces both committed keys exactly, verification blocks aside.pytest tests/cobol_mainframe: 68 passed, run CI-style from an unrelated directory.audit_check.pyis all clear.Tests only; no product code changes.
🤖 Generated with Claude Code