Skip to content

Ground truth: blind census of the file-definition key sections (#3455, #3451) - #3474

Merged
squid-protocol merged 1 commit into
mainfrom
feat/census-file-sections
Sep 24, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
feat/census-file-sections

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #3445. Follows #3470 and #3471.

The file control, VSAM defines and JCL job flow key sections matched the engine exactly, but they were only drafts. This PR gets them read a second time, blind.

Tool

cross_verify_sections.py --suite files:

  • Coverage: every COBOL program (SELECTS) and every JCL member (VSAM, FLOW) is asked, including files with no key entry.
  • Canonical forms: blanks inside COND and IF conditions are normalised, and so is a bare 1 generation.
  • Workflow: its own brief, grade, sign and coverage, kept apart from the channels suite. Signing sets each section's *_validated flag, with tier cross_verified.
  • Round-trip check first: before any reviewer ran, the key's own rows were graded as if they were a reviewer's. All 18 batches came out with 0 disagreements.

Census result

  • 18 batches, one fresh-context reviewer each: 261 files, 1,199 facts, 100% coverage on all three corpora.
  • One disagreement, and the reviewer was right. In CardDemo samples/proc/BUILDONL.prc, a //* comment line sits inside a continued DD statement: DSN=&LOADLIB(&MEM), / //* ... / // DISP=SHR.
    • The engine's job-flow reader and the key's reader both ended the statement at the comment, so both defaulted DISP to NEW.
    • Now fixed in both, with a test. A comment line, or the empty line PRISM leaves in its place, neither ends nor joins a continued statement; in-stream data still ends it.
    • The key now reads SHR. The disagreement was ruled key_fixed and signed against the corrected key.
  • Golden masters: unchanged.

Ledger

Every populated file-definition section is now labelled cross_verified:

field zopeneditor CBSA CardDemo
file control 12/12 1/1 54/54
VSAM defines — 2/2 24/24
JCL job flow 138/138 410/410 558/558

Checks: full suite passes locally (11,219 passed). Ruff and mypy show no new findings. The skill doc now covers the files suite and the "a reviewer can be right" case.

🤖 Generated with Claude Code

https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g

…#3451)

file control, VSAM defines and JCL job flow matched the engine exactly but
were drafts. They have now been read a second time, blind.

cross_verify_sections.py gains `--suite files`: every COBOL program (SELECTS)
and every JCL member (VSAM, FLOW) is asked, files with no key entry too, with
its own canonical forms (blanks inside COND / IF conditions and a bare `1`
generation normalised), brief, grade, sign (setting file_control_validated /
vsam_validated / jobflow_validated, tier cross_verified) and coverage, kept
apart from the channels suite. Round trip (the key as reviewer) graded 0
disagreements on all 18 batches before any reviewer ran.

Census: 18 batches, one fresh-context reviewer each, 261 files, 100% coverage
on all three corpora, 1,199 facts. One disagreement pair, and the reviewer was
RIGHT: in CardDemo samples/proc/BUILDONL.prc a `//*` comment line sits inside
a continued DD statement (`DSN=&LOADLIB(&MEM),` / `//* ...` / `//  DISP=SHR`).
The engine's job-flow reader and the key's both ended the statement at the
comment and defaulted DISP to NEW. Fixed in both (a comment, or the empty
line PRISM leaves for one, neither ends nor joins a continued statement;
in-stream data still ends it), with a test; the key now reads SHR. Ruled
key_fixed and signed against the corrected key. Golden masters unchanged.

Ledger: every populated file-definition section is now cross_verified.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 4cc7fe1 into main Sep 24, 2026
31 checks passed
@squid-protocol
squid-protocol deleted the feat/census-file-sections branch September 24, 2026 12:47
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