Skip to content

Census: copybook layouts, CICS RIDFLD and refmod spans verified by blind reviewers (#3649 / #3602) - #3695

Merged
squid-protocol merged 2 commits into
mainfrom
census/new-key-fields
Sep 26, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
census/new-key-fields

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Verifies the three answer-key fields added for the Java conversion: copybook layouts (#3602), CICS RIDFLD and refmod spans (#3649). Part of #3625.

Result

Twenty fresh blind reviewers each got only a brief (no key) and read 20 batches, covering 1,907 key facts across 6 corpora.

field compared agreed disagreements tier now
copybook layouts 1,111 1,058 53 cross_verified (CardDemo: sample_verified)
CICS RIDFLD 395 395 0 cross_verified (DSF: sample_verified)
refmod spans 379 366 13 cross_verified

Every disagreement is ruled against the source, with a written reason in the key's section_census.

Two key errors, and the engine shares both:

  1. SIGN … SEPARATE takes its own byte. In CBSA ABNDINFO.cpy, PIC S9(8) DISPLAY SIGN LEADING SEPARATE is 9 bytes; the key said 8. The key reader is fixed, with a test.
  2. A refmod on a FUNCTION result was dropped. In CardDemo CBIMPORT, MOVE FUNCTION CURRENT-DATE(1:4) TO … had its (1:4) read as an argument list, which lost 6 refmods.
    • Fixed in both the key reader and the engine (core/data_moves.py), with tests (D023).
    • Only a colon at a group's top level counts, so FUNCTION NUMVAL(WS-X(1:3)) is still not a refmod.
    • The CardDemo data-move key units for those 6 moves are corrected too, with a note on the entry.

Ruled key_correct (the reviewer erred):

  • zopeneditor, 46: CUSTCOPY.cpy is made of COPY REPLACING pseudo-text (:TAG:-REC), which is not a data name. The brief hadn't said so (B004); it does now.
  • GENAPP, 1: an item under an elementary PIC item.
  • zECS, 1: a MOVE's second target on a continuation line.

The layouts suite

  • Full or sampled: each section of each corpus is censused in full while it holds ≤ 600 units, else over a seeded, stratified sample (≥ 300 units). The sample's strata are OCCURS, packed, binary and REDEFINES for layouts, and every verb for RIDFLD. It also includes 3 unkeyed recall candidates, so "none" is checked too. The plan is stored in sample_census.layouts.
  • Briefs:
    • the layout brief states the COBOL byte rules;
    • the RIDFLD brief reuses the resources suite's own file-name rule, including PL/I and assembler;
    • the refmod brief reuses the data-move pairing contract through a shared MOVE_PAIRS constant, extracted from the lineage brief. The lineage brief renders byte-identically (checked).
  • Round trip first: before any reviewer saw a brief, I graded every key unit back through the suite. That gave 0 disagreements on all 6 corpora, and no key answer appears in any brief.
  • Reviewers: each got a directory holding only brief.md and a staged copy of the sources, never the truth file.

Checks

  • Full test suite: 11,768 passed. Preflight --java is all PASS.
  • ground_truth_ledger.py is clean. The diff contains only tier flips, CBSA copybook layouts tp 389 → 386, and the 6 Engine: SIGN ... SEPARATE DISPLAY items are sized one byte short (record layouts) #3694 entries.
  • The engine change moves 0 of 48 IR joins on every corpus (ir_join_diff --rescan).
  • Apart from sign-off metadata, the keys' content changes only in the 3 corrected entries (verified per section against main).
  • field_testing.json: D023, D024 and B004 logged, and the report and fact_channel_confidence.json regenerated. The three fields go from untested to open (5 public estates).

🤖 Generated with Claude Code

https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g

squid-protocol and others added 2 commits September 25, 2026 20:55
…ind reviewers (#3649 / #3602)

A new `layouts` suite in cross_verify_sections.py asks the three answer-key fields the
Java forges read. Each section of each corpus is censused in FULL while small (<= 600
units), else over a seeded, stratified SAMPLE of files with unkeyed recall candidates,
signed sample_verified. The refmod brief shares the data-move pairing contract
(MOVE_PAIRS, extracted from the lineage brief byte-identically).

20 batches, 1,907 key facts, 20 fresh blind reviewers. 1,885 facts compared (key or
reviewer side): 1,819 agreed; 66 disagreements, each ruled against the source.

Two key errors, both shared by the engine:
- SIGN ... SEPARATE takes its own byte: CBSA ABNDINFO, 3 items, 8 -> 9. Key reader fixed;
  engine filed as #3694 (record_data keeps no SIGN clause), carried in the ledger as a
  known defect (D024).
- A reference modification of a FUNCTION result (`FUNCTION CURRENT-DATE(1:4)`) was read as
  an argument list and dropped: CardDemo CBIMPORT, 6 moves. Key reader and engine both
  fixed (a top-level colon only: `NUMVAL(WS-X(1:3))` is no refmod), with tests (D023).
One brief gap: pseudo-text awaiting COPY REPLACING is no data name (B004); the brief now says so.

Tiers:
- copybook layouts, CICS RIDFLD and refmod spans are cross_verified on every keyed corpus;
- CardDemo layouts and DSF RIDFLDs are sample_verified.

The ledger is clean. The engine change moves 0 of 48 IR joins on any corpus.

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 79cc422 into main Sep 26, 2026
38 checks passed
@squid-protocol
squid-protocol deleted the census/new-key-fields branch September 26, 2026 01:03
squid-protocol added a commit that referenced this pull request Sep 26, 2026
…3700)

* Engine: SIGN ... SEPARATE DISPLAY items take their sign byte (#3694)

The census (#3695) found the engine sizing `PIC S9(8) DISPLAY SIGN LEADING SEPARATE` as 8
bytes, not 9: record_data kept no SIGN clause. Now:
- the COBOL record extractor records `sign_separate` (presence-keyed, like copy_members);
- record_data carries it as a column, healed into old tables;
- the rehydrator restores it;
- GalaxyIR.record_layout adds the byte. A DB written before the column existed still loads
  and sizes every sign as embedded.

Blast radius: only CBSA codes SEPARATE signs. ABNDPROC's COMMAREA contracts grow 678 -> 681
bytes, with data-flow spans and one VSAM store following. Elsewhere, only the programs
join's data-item shape gains `sign_separate: false`. The ledger's 6 #3694 entries clear and
the engine now matches the key.

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

* field testing: D024 fixed by #3700

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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