Skip to content

estate-crucible: era profiles -- era-tagged horrors with release-specific IBM citations, mixed-era strata, per-era scores #5118

Open

Description

@squid-protocol

What: give the estate crucible (squid-protocol/estate-crucible, the synthetic z/OS estate whose generator writes both the code and the answer key) an era profile: each planted construct ("horror") carries an era tag and cites the IBM manual for that CICS/COBOL release; add era-1 and era-0 strata (BLL cells, SERVICE RELOAD, HANDLE CONDITION flows, FCT/PCT/PPT/DCT macro tables, DL/I calls, macro-level programs) mixed into one estate with the modern strata -- the cross-era seams (a BLL program LINKing an ADDRESS OF program, COMMAREA passed between them) are the point. Then in gitgalaxy: bump the pin in tests/crucible_pins.toml and make tests/tools/estate_crucible_gate.py report a score per era next to the overall ratchet.

Where: the generator change is a PR on squid-protocol/estate-crucible (clone it under /srv/storage_16tb/projects/gitgalaxy-worktrees/, never under /home/joe/Projects); the pin + gate change is a gitgalaxy PR after it merges.

Acceptance: era-tagged horrors with release-specific IBM citations; per-era scores in the gate summary and baseline; existing ratchet unchanged for the modern strata.

Context (owner-approved 2026-10-14): our CICS corpus is almost all eras 3-4 (CardDemo, CBSA, GenApp are modern demos) on top of well-modelled old COBOL semantics. Real estates are layered: 1980s programs LINK 1990s ones that call 2010s Db2 code in one region. Era model used here (approximate; the scanner should cite evidence, not dates):

Era ~When CICS COBOL Tells
0 ~1969-80 macro level (DFHPC/DFHFC, CSA/TCA) ANS 68 DFHxx macro calls, no EXEC CICS
1 ~1978-88 CICS/VS 1.x command level OS/VS COBOL (74) BLL cells + SERVICE RELOAD, HANDLE CONDITION/AID, DL/I, FCT/PCT/PPT/DCT macro tables
2 ~1988-96 CICS/MVS 2.x, CICS/ESA 3-4 VS COBOL II / COBOL 85 ADDRESS OF / SET ADDRESS, RESP/RESP2, EXEC SQL, CSD (RDO), DPL
3 ~1996-2005 CICS TS 1-2 COBOL for MVS/OS390, LE MQ, EXCI, 3270 bridge, web
4 2005+ CICS TS 3+ Enterprise COBOL channels/containers, SOAP/JSON, async, named counters

Order: after the current CI work and CICS blocker work (owner). Siblings: the five "era" issues filed together.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    legacy-modernization
    on Oct 14, 2026
  2. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Siblings (era work, filed together 2026-10-14): #5117 era tags, #5118 estate-crucible era profiles, #5119 BLL cells / SERVICE RELOAD, #5120 resource macro tables, #5121 macro-level / Assembler refusals. Queued after the CI and CICS blocker work (owner).

    🤖 Generated with Claude Code

  3. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Backfill steps (estate-crucible, Sonnet ~20-30 min each)

    Owner 2026-10-14: churn backfill while gitgalaxy CI is busy. estate-crucible has no gating CI. One PR per step on squid-protocol/estate-crucible, merged when make check passes. Rules (AGENTS.md): change generator/ or spec/horrors.json and run python3 -m generator, never hand-edit estate/, key/ or horrors/; the key is truth; every horror has asserts and a citation (url, section, quote); cobc -std=ibm or ibm-only with a check_variant; original code only. Quote only from a manual you actually opened; otherwise stop and mark the step "find exact cite". Main is v0.4.0 (H-0001..H-0060, nothing era-0/1 yet); new horrors start at H-0061.

    • S1 Era schema (estate-crucible#1 merged): optional era (0-4) and release on horrors (SPEC §5.1) and era per member (§1.1). Carry them into horrors/H-*.json and the README index; tools/check.py requires era from H-0061 on. Additive, so the format stays -key/1. No new horrors. Depends: none.
    • S2a Era tags, existing apps (estate-crucible#2 merged): era on the 20 apps (and any programs that differ), each with a one-line era_evidence from the code (per readiness scanner: tag each program's CICS/COBOL era from evidence (BLL, ADDRESS OF, channels, macro calls...) #5117's table). Depends: S1.
    • S2b Era tags, H-0001..H-0060 (estate-crucible#4 merged; open: S2a member tag KØBREG era 3 for FUNCTION CURRENT-DATE vs H-0048 era 2, decide with S17; H-0006 EXIT PERFORM ISO-2002 dating lacks a manual quote): citations kept. Era-neutral syntax horrors per Q2. Depends: S2a.
    • S3 Era-1 app skeleton (estate-crucible#3 merged: app INVT; if_(end_if=False) added; doubt: INVTDLY uses NOTIFY=&SYSUID, a post-1983 symbol, fix with S4): generator/apps/<new>.py (name per Q7), registered in apps/__init__.py; a 1980s deck style (numbered cols 1-6, upper case), one batch program + JCL, no horrors. Depends: S1.
    • S4 BLL cells: H-0061, LINKAGE S9(8) COMP cells filled by EXEC CICS ADDRESS / READ ... SET(cell). Keys: data_items, layouts, entry_points; status compiled-stubbed. Cite the CICS/VS 1.x APRM (Command Level) "BLL cells" (find the exact cite), plus the Enterprise COBOL Migration Guide as cross-reference. Depends: S3.
    • S5 SERVICE RELOAD (estate-crucible#6 merged; OS/VS COBOL LR/PG cite still "find exact cite"): H-0062, a service-reload check_variant in tools/compile.py (the member becomes ibm-only); generator/moves.py must not treat SERVICE as moving. Cite the OS/VS COBOL LR / Programmer's Guide (find the exact cite). Depends: S4.
    • S6 BLL long record (>4096 bytes): H-0063, the second cell = the first + 4096; layouts offsets. Depends: S5.
    • S7 HANDLE CONDITION flows: H-0064, NOTFND/ERROR(label) + IGNORE CONDITION; the label paragraphs are not dead; handler edges keyed per Q3. Depends: S3, Q3.
    • S8 HANDLE AID / HANDLE ABEND: H-0065, a BMS flow driven by PF3/CLEAR. Depends: S7.
    • S9 DL/I calls: H-0066, PCB schedule + CALL 'CBLTDLI' GU/GN/REPL with a PCB mask and SSAs; CBLTDLI added to the system names in estate.py _gaps. Keys: call_sites (resolves_to null), data_items. Cite IMS/VS AP + the CICS/VS DL/I interface (find the exact cite). Depends: S3.
    • S10a Macro tables: writer + FCT/PPT: a tables/ member kind (not-cobol) with its writer in generator/other.py; H-0067 DFHFCT TYPE=DATASET, DFHPPT TYPE=ENTRY, keyed per Q4 with provenance. Cite the CICS/VS 1.x Resource Definition (Macro) manual (find the exact cite). Depends: S3, Q4.
    • S10b PCT, DCT (ATI trigger), TST: H-0068; the era-1 program is not dead, because a PCT-only transaction reaches it. Depends: S10a.
    • S10c Table/CSD conflict: H-0069, one file in both the FCT and a CSD with different DSNAMEs; the key names the conflict (scanner: parse CICS resource macro tables (DFHFCT / DFHPCT / DFHPPT / DFHDCT / DFHTST) into the resource map #5120's merge rule). Depends: S10b.
    • S11 Macro-level COBOL (era 0): H-0070, DFHPC TYPE=LINK and DFHFC TYPE=GET with CSA/TCA addressing (DFHCSADS/DFHTCADS are system copybooks, not gaps); ibm-only, with a check_variant that blanks the macros; keys per Q5. Cite the CICS/VS APRM (Macro Level) (find the exact cite). Depends: S3, Q5.
    • S12 CICS Assembler (era 0): H-0071, a small Assembler program using DFHFC/DFHSC; skip it if Q5 puts Assembler out of scope. Depends: S11.
    • S13 Era-2 ADDRESS OF callee: an era-2 program with DFHCOMMAREA, SET ADDRESS OF and RESP/RESP2; H-0072 layouts. Cite the CICS/ESA 3.x APRM or the VS COBOL II APG (find the exact cite). Depends: S4.
    • S14 Seam: BLL LINK to ADDRESS OF + COMMAREA: H-0073, the same bytes under different names on each side. Keys: call_sites.resolves_to, file_edges, both layouts. Depends: S6, S13.
    • S15 Seam: era-2 to modern Db2: H-0074, the S13 program LINKs CUST's CUSTDBIO; cross-app file_edges; CUSTDBIO's facts unchanged. Depends: S14.
    • S16 Seam: macro-level to command level: H-0075, a DFHPC TYPE=LINK resolves to the S4 program (so it is not dead). Depends: S11, S14.
    • S17 Era coverage check: tools/check.py fails if era 0 or 1 has no horror, or if an era-0/1 horror cites only a modern manual without release/notes. Add the era step to AGENTS.md; fix the stale pin wording (the pin now lives in gitgalaxy tests/crucible_pins.toml [estate]). Depends: S16.
    • S18 Release prep: RELEASING.md step 2 run locally (scorer vs v0.4.0; modern strata unchanged; each new horror fails, or passes with a stated reason). v0.5.0 notes + "Where things stand" row in a PR. Tag only with owner OK. Depends: S17.
    • G1 gitgalaxy pin bump + per-era score (lane ci, only when CI is calm): crucible_pins.py bump estate v0.5.0; an era table in estate_crucible.py; per-era pass counts in estate_crucible_gate.py + baseline.json (a per-era drop is a regression); re-baseline; scorecard + Cross-repo note in the PR. Depends: S18 tagged.

    Owner questions (S7, S10a, S11/S12 wait on these; everything else can proceed):

    1. Per-era score grouping: horror era, member era, or both? (Recommend both.)
    2. What era do era-neutral syntax horrors get: null/"any", or the member's era?
    3. HANDLE label targets: edges with a new kind handle (additive, or a §7 major bump?), or only via dead?
    4. Macro tables: a new channel (resource_tables), or csd_resources/transactions with source: macro?
    5. What does the key assert for era 0: call_sites for DFHPC TYPE=LINK, programs + a refusal marker, or Assembler out of scope?
    6. Are bitsavers.org scans of 1980s IBM manuals OK as citation URLs? Where none exists, the modern IBM doc with release noting the gap?
    7. A new era-1 app (name?) rather than planting into existing apps? Is the next tag v0.5.0?
  4. squid-protocol commented on Oct 14, 2026

    @squid-protocol
    OwnerAuthor

    Owner decisions (2026-10-14) on the backfill-step questions:

    1. Per-era score: report both, by member era (all checks) and by horror era (horror verdicts).
    2. Era-neutral syntax horrors (continuation, NATIONAL, encodings): era: null ("any"), not counted toward any single era.
    3. HANDLE CONDITION/AID label targets: a new additive edge kind handle, with no SPEC §7 major bump. If the S7 worker finds the scorer can't ignore unknown edge kinds, fall back to keying through dead only, and say so in the PR.
    4. Macro tables: reuse csd_resources / transactions with source: macro (plus table and macro-line provenance), which is scanner: parse CICS resource macro tables (DFHFCT / DFHPCT / DFHPPT / DFHDCT / DFHTST) into the resource map #5120's "same resource map as the CSD".
    5. Era 0: the key asserts programs plus a refusal marker (matching scanner/det: detect and refuse by name macro-level CICS and CICS Assembler programs #5121's refuse-by-name), and call_sites for DFHPC TYPE=LINK (needed by S16). Assembler stays in scope as a refused member (S12 stays).
    6. Citations: bitsavers.org scans of the IBM publications are acceptable as url. Where no scan exists, cite the modern IBM doc with release / notes naming the gap. Quote only from a manual you opened.
    7. A new era-1 app, INVT (a 1983-style inventory system); the next tag is v0.5.0.

    S7, S10a and S11 are unblocked once their step dependencies merge. Era-1 BLL coverage for #5119 lives here (S4-S6); see #5119.

  5. added
    scope:frontier
    on Oct 16, 2026
  6. added
    era:0
    on Oct 16, 2026
  7. squid-protocol commented on Oct 17, 2026

    @squid-protocol
    OwnerAuthor

    Waiting on an owner decision (asked privately, 2026-10-17). Nothing is needed from contributors; work resumes once it is answered.

  8. squid-protocol commented on Oct 17, 2026

    @squid-protocol
    OwnerAuthor

    The owner decided (2026-10-17); the bot applies it on its next tick.

  9. added
    needs:crucible
    and removed on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementera:0legacy-modernizationneeds:cruciblepriority: mediumscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions