Skip to content

engine: DEFINE PROGRAM TRANSID is not a transaction route (#4503) - #4504

Merged
squid-protocol merged 2 commits into
mainfrom
fix/4503-csd-transid
Oct 5, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
fix/4503-csd-transid

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4503.

Change

CICS reads a DEFINE PROGRAM ... TRANSID(x) as the remote-DPL mirror transaction, not a route. Only DEFINE TRANSACTION(x) PROGRAM(p) routes x. Three CSD readers paired the program attribute as a second owner of x, so GalaxyIR._transaction_program saw two programs and left x unresolved:

  • core/mainframe_boundary._csd_transactions (the source of transaction_map)
  • the forge reader cics_transaction_reader._deck_transactions
  • the answer-key oracle tests/tools/cobol_answer_key._csd_pairs

All three now route from DEFINE TRANSACTION only. The attribute is kept as program metadata: csd_resources("PROGRAM") still carries transid/attributes.

CardDemo CC00 now resolves to COSGN00C (pinned in test_galaxy_ir.py). #4499's generator workaround (RETURN TRANSID to the program's own transaction) is left alone and becomes redundant once this lands.

Drift attributed to this change

  • scope_check (both legs): 7 diffs, all in Mainframe Skeleton Completeness / transactions channel (resolved 166->145, total 197->168, missing-program gaps 16->8, ratio 84.3->86.3%), nothing else. Golden masters blessed via crucible_check.py --update --yes.
  • Ground-truth ledger: 12 count lines (entry transactions) in carddemo and genapp. genapp's DS*/VS* ids are mirror transids whose DEFINE TRANSACTION routes to DFHMIRS, so they were never program entries; carddemo COCRDLIC lost the false CC00 and COPAUS2C the false CPVD (DEFINE TRANSACTION(CPVD) -> COPAUS1C).
  • Committed answer keys (carddemo, genapp): transactions fields corrected from the same oracle.
  • test_completeness PINNED transactions: carddemo (62,73)->(49,55), genapp (74,74)->(57,57).
  • cics_field_testing.md regenerated.
  • Unchanged and checked: refraction snapshots (excerpts and full carddemo/genapp), ports, estate, fact-crosscheck ratchets pass. Evidence records: status identical to origin/main (pre-existing "harness/generator stale", re-proven by the scheduled job), so nothing to re-prove.

Local: lint/audits/secrets/xray/gauntlet/golden pass; suite 14588 passed, the one failure (stale field-testing report) fixed here.

🤖 Generated with Claude Code

CICS reads a DEFINE PROGRAM's TRANSID(x) as the remote-DPL mirror
transaction, not a route. Only DEFINE TRANSACTION(x) PROGRAM(p) routes x.
The CSD boundary extractor, the forge reader and the answer-key oracle all
paired it as a second owner, leaving CardDemo's CC00 (COCRDLIC and COSGN00C
both carry TRANSID(CC00)) unresolved. CC00 now resolves to COSGN00C; the
attribute stays on the csd_resources PROGRAM record. genapp's DS*/VS*
mirror transids (routed to DFHMIRS) no longer count as program entries.

Ratchets moved by this change: golden masters (transactions channel,
both legs), ground-truth ledger, completeness pins, the carddemo/genapp
answer keys' entry transactions, cics_field_testing report.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol added bug Unintended behavior or logic failure in the engine core-engine Modifications to the central physics and parsing engine legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: high Core feature broken, but workarounds exist labels Oct 5, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

Orchestrator note for review: besides the engine fix, this PR edits the committed answer keys (carddemo and genapp transactions) and the answer-key oracle (tests/tools/cobol_answer_key._csd_pairs). The change follows CICS semantics (DEFINE PROGRAM TRANSID is the remote-DPL mirror transaction, not a route), but an oracle edit in the same PR as the engine fix deserves an explicit human look before merge.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 5, 2026 22:48
@squid-protocol
squid-protocol merged commit 5544b8a into main Oct 5, 2026
41 checks passed
@squid-protocol
squid-protocol deleted the fix/4503-csd-transid branch October 5, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unintended behavior or logic failure in the engine core-engine Modifications to the central physics and parsing engine legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: high Core feature broken, but workarounds exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Engine: DEFINE PROGRAM's TRANSID attribute is read as a transaction route, so CardDemo's CC00 is left unresolved

1 participant