⚑ demo⇄ rewriteπŸ›€ journeyπŸ“Š assessmentπŸ“ˆ statsπŸ–₯ green screenπŸ”¬ console🚧 blockersβ¬’ served from poc-smk Β· Linux x86_64 Β· cloud VM (poc-jkdm-ai)
CardDemo Β· modernization pipeline Β· live demo

CBACT01C β€” COBOL off the mainframe, verified in PHP

Three acts, all real: 1) the mainframe COBOL program compiled with GnuCOBOL runs on this Linux machine. 2) the AI-converted PHP port runs on the same input. 3) the oracle byte-compares the two outputs β€” every sen must match.

checking…

The map β€” what is real, what is rebuilt, and what the % counts

β‘  The whole original system
44 programs Β· 22,904 lines of mainframe COBOL. The stats page percentages measure THIS box β€” nothing else.
1 program fully translated + byte-verified (the pilot) β€” the 1.6% (P3)
+10 programs already compile on Linux β€” together the 13.8% (P2)
3 need small copybook fixes
25 CICS screen programs (74.7%) β€” the big block, awaiting the screen-rewrite route
5 DB2/IMS β€” awaiting the database port
% cannot be high yet: three-quarters of the system is CICS screens, and CICS does not exist on Linux β€” that layer must be rewritten, not recompiled.
the pilot went through the factory β†’
β‘‘ The translated pilot β€” CBACT01C
The one program that finished the whole journey. It exists twice:
P2 Β· COBOL on Linux (GnuCOBOL)
P3 Β· PHP written by Gemini
Both read the same account data (50 records) and write the same output file. The oracle byte-compares them: 5,350 bytes, identical βœ…
this box IS counted in the % β€” it is the green + purple sliver of box β‘ 
what you can touch below β†’
β‘’ This demo page
β–Ά Run batch / βš– Verify buttons β†’ run box β‘‘ for real β€” translated code, counted in the %
πŸ–₯ green screens (menus 1Β·2Β·3) β†’ rebuilt new small screens β€” a preview of the end state for the 25 CICS programs. New code, so they add 0%
but they show real translated results: the screens read the same data files, and Posting Summary (3) displays the output file box β‘‘ wrote
the interface proves the METHOD Β· the % counts how much of box β‘  has been through it: P2 13.8% Β· P3 1.6%

How the translation is done β€” watch one program go through the factory

Every artifact below is real β€” taken from the actual pipeline run on the cloud VM. P2 is the easy hop (recompile). The AI translation is P3: analyze β†’ prompt β†’ Gemini writes β†’ run β†’ oracle, looping until the bytes match. Steps advance automatically β€” click any step to inspect it. full side-by-side code view β†—

P2 Β· COBOL ON LINUX (REPLATFORM β€” SAME SOURCE, NO MAINFRAME)
interactive app below ↓ (click the screen, then use keys 1-5) open full screen β†—
P3 Β· PHP REWRITE (AI-TRANSLATED β€” ORACLE-VERIFIED, ALSO DRIVES THE GREEN SCREEN)
⇄ Rewrite side-by-side
How this PHP was made β€” Gemini CLI (Vertex AI): raw COBOL β†’ prompt β†’ Gemini writes the PHP in an empty sandbox β†’ it runs on the same input β†’ oracle byte-diff vs the COBOL β†’ crashes/mismatches are fed back for Gemini to self-fix β†’ loop until byte-for-byte MATCH. view Gemini's generated code Β· rerun: python3 bin/gemini_translate.py
same interactive app, P3 engine β€” every action below is answered by PHP, not COBOL:

Live output (stdout from this machine)

Run act 1, then act 2, then verify…

Account master

Acct IDStatusBalanceCredit limit Cash limitOpenedGroup