Skip to content

Blind census of CSD definitions; entry transactions derived (#3575 part 1) - #3584

Merged
squid-protocol merged 3 commits into
mainfrom
census/csd-3575
Sep 25, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
census/csd-3575

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

New csd census suite (cross_verify_sections.py): every CSD deck -- a .csd /
.rdo member, or a JCL job running DFHCSDUP with in-stream SYSIN -- is read in
full, each DEFINE with its key attributes, compared through the key's own
csd_resource_values. Round-trip clean before any reviewer ran.

Nine blind reviewers, 26 decks / 457 definitions:
CardDemo 134/134, CBSA 100/100, GENAPP 197/197, zECS 13/26.
The 13 zECS rows are CSDZC##.rdo's ZC@id@ names: the brief said a name may
hold "A-Z, 0-9, @ # $", so the reviewer (flagging it) skipped the lower-case
template token; the key and engine check characters case-insensitively and
keep it, with its TRANSACTION -> ZECS001 / ZECS000 links. Ruled key_correct
(all 13 rows checked against the source); the brief now says either case.

Once a corpus's decks are all signed, programs' entry transactions are stamped
as derived: censused TRANSACTION -> PROGRAM rows joined to the cross-verified
PROGRAM-ID (recorded in transactions_census).

Ledger: "CSD resources" draft -> cross_verified on CardDemo, CBSA, GENAPP,
zECS; "entry transactions" draft -> cross_verified on CardDemo, GENAPP, zECS.

Part of #3575 (record layouts, BMS / symbolic maps, DSNs, DB2 columns follow).

Verification

  • coverage --suite csd: 5/5, 2/2, 5/5, 14/14 decks (decks with no DEFINE asked too).
  • Ledger update/check clean; tests/cobol_mainframe + tests/tools 601 passed; ruff/mypy/dead-key audits clean. No engine change.

🤖 Generated with Claude Code

https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g

…art 1)

New `csd` census suite (cross_verify_sections.py): every CSD deck -- a .csd /
.rdo member, or a JCL job running DFHCSDUP with in-stream SYSIN -- is read in
full, each DEFINE with its key attributes, compared through the key's own
csd_resource_values. Round-trip clean before any reviewer ran.

Nine blind reviewers, 26 decks / 457 definitions:
  CardDemo 134/134, CBSA 100/100, GENAPP 197/197, zECS 13/26.
The 13 zECS rows are CSDZC##.rdo's `ZC@id@` names: the brief said a name may
hold "A-Z, 0-9, @ # $", so the reviewer (flagging it) skipped the lower-case
template token; the key and engine check characters case-insensitively and
keep it, with its TRANSACTION -> ZECS001 / ZECS000 links. Ruled key_correct
(all 13 rows checked against the source); the brief now says either case.

Once a corpus's decks are all signed, programs' entry transactions are stamped
as derived: censused TRANSACTION -> PROGRAM rows joined to the cross-verified
PROGRAM-ID (recorded in `transactions_census`).

Ledger: "CSD resources" draft -> cross_verified on CardDemo, CBSA, GENAPP,
zECS; "entry transactions" draft -> cross_verified on CardDemo, GENAPP, zECS.

Part of #3575 (record layouts, BMS / symbolic maps, DSNs, DB2 columns follow).

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 77bc969 into main Sep 25, 2026
30 checks passed
@squid-protocol
squid-protocol deleted the census/csd-3575 branch September 25, 2026 12:08
squid-protocol added a commit that referenced this pull request Sep 25, 2026
* BMS screen fields censused; symbolic maps checked against IBM's own output (#3575, part 3)

Symbolic maps: the key computes each generated COBOL symbolic map by layout
arithmetic from the BMS source. CardDemo checks IBM's DFHMAPS output into the
repo (`cpy-bms`), so those are the oracle: `cobol_answer_key.py
verify-symbolic` reads them with the key's COBOL item reader, lays them out
by plain storage arithmetic (copybook_layout_units) and signs each mapset
whose layout matches exactly. All 21 CardDemo mapsets, 5,307 units, match ->
cross_verified. CBSA / GENAPP ship no generated copybooks: they stay draft.

Screen fields: new `bms` census suite -- a seeded sample of BMS sources (up to
~300 facts per corpus; a full census when the plan covers every source),
compared through the key's own bms_layout_units (owner, POS, LENGTH, ATTRB,
PICIN / PICOUT, OCCURS, INITIAL). Round-trip clean first.
  CardDemo 313/313 (4 of 21 sources), CBSA 333/333 (8 of 10),
  GENAPP 286/286 (its one source: full census).
GENAPP's first reviewer was discarded, not ruled: its parser dropped operands
on continuation lines (where every GENAPP INITIAL sits); a fresh reviewer on
the same brief agreed 286/286 (noted in the key). 0 key errors.

Ledger: BMS screen fields -> sample_verified (CardDemo, CBSA), cross_verified
(GENAPP); symbolic maps -> cross_verified (CardDemo).

Part of #3575.

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

* JCL resolved DSNs and DB2 columns censused (#3575, part 4)

Two census suites (cross_verify_sections.py):

`dsns` -- a seeded sample of JCL members, symbolic-DSN members first, read in
full against the key's resolution contract, now spelled out in the brief:
literal / resolved from earlier SETs / in-stream PROC defaults when nothing
calls the PROC / per-call overrides (all equal -> resolved, differing ->
ambiguous) / unresolved; `&NAME.` syntax, nested values, `&&` temporaries.
Compared through the key's jcl_dsn_values. 363/365 agree: the two are
override DDs (`//PRC001.FILEIN DD`), which key and engine scope out by
contract but the brief never said so -- key_correct; the brief now states it.
That exclusion is a real limit worth knowing: an override DD carries a PROC
step's effective dataset and neither side records it.
  CardDemo 125, CBSA 98, GENAPP 30, zECS 7 (all-literal JCL; the 95% bound
  says how thin), zopeneditor 105 (every member: a full census).

`db2cols` -- every DECLARE TABLE source in full: CardDemo 31/31, CBSA 24/24.

0 key errors. Ledger: JCL resolved DSNs -> cross_verified (zopeneditor),
sample_verified (CardDemo, CBSA, GENAPP, zECS); DB2 table columns ->
cross_verified (CardDemo, CBSA).

Completes #3575's census of the draft fields (with #3584, #3586, #3599).

Closes #3575

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]>
squid-protocol added a commit that referenced this pull request Sep 25, 2026
#3603)

* BMS screen fields censused; symbolic maps checked against IBM's own output (#3575, part 3)

Symbolic maps: the key computes each generated COBOL symbolic map by layout
arithmetic from the BMS source. CardDemo checks IBM's DFHMAPS output into the
repo (`cpy-bms`), so those are the oracle: `cobol_answer_key.py
verify-symbolic` reads them with the key's COBOL item reader, lays them out
by plain storage arithmetic (copybook_layout_units) and signs each mapset
whose layout matches exactly. All 21 CardDemo mapsets, 5,307 units, match ->
cross_verified. CBSA / GENAPP ship no generated copybooks: they stay draft.

Screen fields: new `bms` census suite -- a seeded sample of BMS sources (up to
~300 facts per corpus; a full census when the plan covers every source),
compared through the key's own bms_layout_units (owner, POS, LENGTH, ATTRB,
PICIN / PICOUT, OCCURS, INITIAL). Round-trip clean first.
  CardDemo 313/313 (4 of 21 sources), CBSA 333/333 (8 of 10),
  GENAPP 286/286 (its one source: full census).
GENAPP's first reviewer was discarded, not ruled: its parser dropped operands
on continuation lines (where every GENAPP INITIAL sits); a fresh reviewer on
the same brief agreed 286/286 (noted in the key). 0 key errors.

Ledger: BMS screen fields -> sample_verified (CardDemo, CBSA), cross_verified
(GENAPP); symbolic maps -> cross_verified (CardDemo).

Part of #3575.

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

* JCL resolved DSNs and DB2 columns censused (#3575, part 4)

Two census suites (cross_verify_sections.py):

`dsns` -- a seeded sample of JCL members, symbolic-DSN members first, read in
full against the key's resolution contract, now spelled out in the brief:
literal / resolved from earlier SETs / in-stream PROC defaults when nothing
calls the PROC / per-call overrides (all equal -> resolved, differing ->
ambiguous) / unresolved; `&NAME.` syntax, nested values, `&&` temporaries.
Compared through the key's jcl_dsn_values. 363/365 agree: the two are
override DDs (`//PRC001.FILEIN DD`), which key and engine scope out by
contract but the brief never said so -- key_correct; the brief now states it.
That exclusion is a real limit worth knowing: an override DD carries a PROC
step's effective dataset and neither side records it.
  CardDemo 125, CBSA 98, GENAPP 30, zECS 7 (all-literal JCL; the 95% bound
  says how thin), zopeneditor 105 (every member: a full census).

`db2cols` -- every DECLARE TABLE source in full: CardDemo 31/31, CBSA 24/24.

0 key errors. Ledger: JCL resolved DSNs -> cross_verified (zopeneditor),
sample_verified (CardDemo, CBSA, GENAPP, zECS); DB2 table columns ->
cross_verified (CardDemo, CBSA).

Completes #3575's census of the draft fields (with #3584, #3586, #3599).

Closes #3575

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

* docs: refresh CICS / mainframe coverage after the #3575-#3578 censuses

cics_mainframe_facts.md and the per-language CICS sections now match the
ledger:
- every former draft field censused; record layouts and PL/I CICS operations
  sample_verified; CSD definitions, entry transactions and DB2 columns
  cross_verified;
- CardDemo symbolic maps cross_verified against IBM's own generated
  copybooks (a new "oracle instead of reviewers" note in section 2);
- the censuses found real errors (an engine PL/I defect, a key line defect,
  three brief ambiguities), and sampled error bounds describe the key as
  drafted;
- the new completeness scores, and which programs the report now scores
  (#3576; two scores fell because more programs count);
- name resolution follows MOVE chains up to three hops (#3578);
- newly stated limits: copybook record layouts are not keyed (#3602), and JCL
  override DDs are out of scope.

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