Repository navigation
Language sheets: answer-key column and a legacy/mainframe group - #9204
Merged
Merged
Conversation
… the COBOL ground truth that missed #9144) The engine's strongest evidence for the legacy languages is the hand-built answer keys in tests/cobol_mainframe/ground_truth_ledger.json, and the sheets showed almost none of it. This adds an "Answer key" stat and a legacy/mainframe group. Answer key: each ledger field is assigned to the language it is evidence for (JCL job flow, resolved datasets, runner programs and DD names to jcl; BMS screen fields and symbolic maps to bms; CSD resources to csd; the four PL/I fields to pli; Db2 table access and columns to db2_sql; everything else, COBOL and the CICS, IMS and MQ calls inside it, to cobol). The cell shows the engine's agreement with the key summed over the keyed corpora, and a bar of how many facts sit at each verification tier (cross-verified, LLM-verified, sample-verified, draft), because the tier is what says how far the number can be trusted. `dead` and `dead (non-trivial)` are listed on the sheet but not in the aggregate: the engine's flag means unreferenced by name, the key's means unreachable (ledger cause engine_dead_is_unreferenced_by_name). What it shows: bms 9,945 facts, jcl 2,792, csd 501, db2_sql 127 and cobol 40,694 all agree at 99.5% to 100%, but only 56%, 68%, 91%, 89% and 17% of those facts are cross-verified, and pli's 16,513 facts have none (all sample-verified or draft). clist, easytrieve, hlasm and rexx have no answer key. Legacy group: a hand-set context (legacy/mainframe) in docs/language_sheets/notes keeps cobol, pli, hlasm, jcl, rexx, clist, bms, csd, easytrieve and db2_sql together in matrix_legacy.svg whatever their coverage count. The README block gains the legacy matrix and states that the reviewers are LLMs and no field has a human sign-off. Also included: the COBOL commit from the #9144 branch (cobol's functions, call links and imports from the same ledger, method `answer-key`, its note and tests). It was pushed after #9144 was squash-merged, so it never reached main; main's cobol sheet still said "not measured" for those three stats. It is cherry-picked here with the conflicts resolved, and the answer-key stat builds on it. Tests: the field-to-language mapping, the by-design exclusion, the tier mix and cell text, the legacy grouping, and each language landing in exactly one matrix. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
… with the error bound
The tier bar says how much of a language's evidence was read in full, but for the large fields the keys
are verified by a seeded sample, and the answer keys already record what that sample found: items
asked, key errors, and a 95% upper bound. This surfaces it, pooled per language with the same formula
as tests/tools/cross_verify_sections.py (a test pins it to the key's own figure: 2 errors in 315 is
0.019).
Pooled over the keyed corpora: pli 1,350 items re-read, 3 key errors, at most 0.6%; bms 932 and 0
errors, at most 0.3%; jcl 365 and 0, at most 0.8%; cobol 2,787 and 103, at most 4.3%. The COBOL figure
is mostly one reader defect found and fixed in a review of record fields (86 of the 103), so it bounds
the key as first drafted. The sheets say so: the counts are findings against the key as first drafted,
the bound is conservative for the key as it is now, and a sample bounds the error rate but does not
prove the unsampled facts correct. A section whose result is nested (no direct `asked`) is skipped.
The matrix cell gains a line ("sample: key error <= 0.6% (95%)"), each sheet a "How much of the key was
re-read" table, and the README block a sentence. Also fixes "1 fields".
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
…eets Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
…nswer keys Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
squid-protocol
marked this pull request as ready for review
November 24, 2026 19:30
Contributor
|
No description provided. |
Contributor
|
No description provided. |
squid-protocol
added a commit
that referenced
this pull request
Nov 24, 2026
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
squid-shepherd Bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
…#9235) * Missing-keyword mining report per family and language (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Regenerate docs_read_by_tests.txt (stale on main since #9204) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[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.
What this does
Step 1 of validating the legacy languages: show the evidence that already exists. The engine's strongest legacy evidence is the hand-built answer keys in
tests/cobol_mainframe/ground_truth_ledger.json, and the language sheets showed almost none of it. This adds an Answer key stat and a Legacy and mainframe group. It measures nothing new.Answer key. Each ledger field is assigned to the language it is evidence for: JCL (job flow, resolved datasets, runner programs, DD names), BMS (screen fields, symbolic maps), CSD (resources), PL/I (call sites, data moves, layouts, record fields), Db2 (table access, columns), and everything else to COBOL (including the CICS, IMS and MQ calls inside it). Each cell shows the engine's agreement with the key and a bar of how many facts sit at each verification tier, because the tier says how far the number can be trusted.
High agreement with a key that is mostly sample-verified or draft is a weaker claim than the same number against a cross-verified key. PL/I is the clearest case: every one of its facts is sample-verified or draft. The reviewers are LLMs, not people, and no field has a human sign-off; the README and the sheets say so.
Legacy group. A hand-set context in
docs/language_sheets/noteskeeps cobol, pli, hlasm, jcl, rexx, clist, bms, csd, easytrieve and db2_sql together inmatrix_legacy.svg, whatever their coverage count. The README block gets the legacy matrix.Added after reading the keys: how much of each key was re-read
For the large fields the keys are verified by a seeded sample, and each answer key already records what blind reviewers found (items asked, key errors, a 95% upper bound). That says more about trust than the tier alone, so the sheets and the matrix now show it, pooled per language with the same formula as
cross_verify_sections.py(a test pins it to the key's own figure: 2 errors in 315 is 0.019):Read the COBOL row with care: 86 of its 103 errors are one reader defect (a record's
linefell on the blank line before its level number) found by a review and fixed afterwards, so the counts are findings against the key as first drafted and the bound is conservative for the key as it is now. The sheets say this. A sample bounds the error rate; it does not prove the unsampled facts correct. A section whose result is nested (no directasked) is skipped, so the figures use only numbers a key records directly.Read before merging
main's cobol sheet still says "not measured" for functions, call links and imports. That commit (cobol's three stats from the same ledger, methodanswer-key, its note and tests) is cherry-picked into this PR, with the conflicts resolved, since the answer-key stat builds on it.deadanddead (non-trivial)are listed on each sheet but left out of the aggregate: the engine's flag means unreferenced by name and the key's means unreachable (ledger causeengine_dead_is_unreferenced_by_name, deliberate).tests/tools/language_sheets.pyand its tests.docs/language_sheets. Whichever merges second needspython tests/tools/language_sheets.py --writeafter resolving, not a hand merge.Checked
pytest tests/tools/test_language_sheets.py: 23 passedlanguage_sheets.py --check: current;ruff_audit.py --cianddoc_refs_audit.py --ci: no new findings🤖 Generated with Claude Code
https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem