Repository navigation
MP-01 to MP-04, release 1.1 (L1-01 to L1-08) and P4-12 - #494
Merged
Merged
Conversation
reframe.source.kinds is the one table of what each file in a mainframe snapshot is, taken from AWS Transform's list of source file types (its user guide's page on mainframe source artifacts), with `.pli`, which Reframe already read. - A known extension decides, in any case: `.CBL` is `.cbl`; `.cobol` and `.pl1` are COBOL and PL/I. A member with no extension or `.txt` is classed by its content, as AWS Transform classes it: COBOL divisions, copybook data entries, JCL JOB and PROC statements, BMS, CSD, IMS DBD, PSB and Stage 1 macros, DCLGEN, DDL, REXX, PL/I, Assembler and an IDCAMS LISTCAT listing. - The reconciliation's source files and the design's readers (the inventory, the flow and the data contracts) use it in place of their own suffix lists. - Defect fixed: the flow followed COPY only into folders whose name starts with `cpy` (CardDemo's layout), so copybooks in `copy/` (Bank-of-Z) or `copybooks/` (AWS's example layout) were never read. The flow now finds copybooks wherever they are, and those in a `cpy` folder still come first when two share a name. Tests: a package laid out as AWS Transform documents it, with upper-case extensions, members with no extension and `.txt`, gives the same programs, copybooks, maps, transactions, links and keys as the usual layout, and the reconciliation reads the same source files. Prepared with AI assistance.
The design's flow reads each transaction and its program from either form a codebase keeps its CICS definitions in, each citing its line: - DFHCSDUP's DEFINE statements, now with names that use the national characters `$`, `#` and `@` and spaces inside the brackets. Before, such a transaction was skipped. - IBM's CICS resource-builder YAML: a top-level `resourceDefinitions` list whose `transaction` entries name their `program`, as Bank-of-Z keeps its definitions. Any other YAML, or YAML that does not parse, gives nothing. On Bank-of-Z this reads 35 transactions: 14 of its own and 21 for IBM's debugger and TCP/IP listener. Tests: national characters in a CSD, a resource-builder file beside other YAML and a broken file, and YAML transactions reaching their programs in the flow with every cited line checked. Prepared with AI assistance.
After the snapshot, and before anything is uploaded, Reframe reads the snapshot's archive and writes package-check.json in the run folder. It changes nothing in the source. It lists: - the files whose extension AWS Transform's table does not name, by extension, and those that look like mainframe source all the same (JCL kept as a `.j2` template; PL/I as `.pli`, where AWS's table names `.pl1`); - the files whose content is not what their extension says, with what AWS Transform takes them as (IMS DBD and PSB macros kept as `.asm` are taken as Assembler); - the files that are not text (SMF data belongs in its own folder), and the source files' encodings (ASCII or UTF-8, EBCDIC, or another), with a note when they are not one; - which system extracts are present: a catalog listing, CICS definitions (a CSD extract or resource-builder YAML), IMS Stage 1 and CA-7 reports. `reframe status` shows its line and notes, and both business reviews show it at the foot of the overview, beside the source's SHA-256. The snapshot's event log records `package_checked`. On Bank-of-Z: 724 files, 173 mainframe source, 537 with extensions AWS Transform does not name (32 of them look like JCL), 17 IMS definitions kept as `.asm`, 19 not text, one encoding, CICS definitions as YAML and no other extracts. Prepared with AI assistance.
The guide has a section on giving Reframe a mainframe's source as AWS Transform documents its source package, linked to AWS's page: - the folders by type, AWS Transform's extensions and one encoding; - the optional system extracts: LISTCAT, the DFHCSDUP extract (and the resource-builder YAML Reframe also reads), IMS Stage 1 and CA-7; - that SMF data goes in its own folder and Reframe does not run AWS's activity analysis; - what the package check reports, and what to do about it. The code layout row for src/reframe/source/ names the table of source kinds and the package check. Prepared with AI assistance.
This was referenced Nov 28, 2026
After the snapshot, with no model, Reframe works out what the codebase
is and records it in stack-profile.json (docs/any-legacy.md, section 4):
- languages, counted by file and by line: by extension, by content for
the shared `.inc`, `.h` and `.prc`, and a mainframe member with no
extension as reframe.source.kinds classes it;
- the family that carries more than half the lines (mainframe, java,
dotnet, web-script, front-end, native, 4gl, or mixed). SQL counts
toward none, since every stack has a schema. JavaScript and TypeScript
count toward front-end only when no other family has a quarter of the
code. Libraries kept in the tree (node_modules, vendor, packages,
minified files) are not counted;
- what it has, each with the files that show it: user interface, routes,
jobs and data;
- the prompts' words: "COBOL" for the mainframe, as today, or the
family's two main languages ("Java and JSP").
`reframe run --legacy <family>` overrides the family, and the profile
records what was found and what it was told. For a local source, the
guided run shows the profile before the run starts and asks only when
no family carries most of the code. `reframe status` shows it, and both
business reviews show it at the foot of the overview. The package check
is now shown only for mainframe code, the only code AWS Transform reads.
Tests: six synthetic fixtures written for the tests (a Java web
application, .NET, PHP, a batch-only Java job, a mainframe and a mixed
codebase) in tests/stacks.py. Each one's family, what it has with the
files, the words, the skipped libraries, the shared extensions, the
override, the snapshot's record, status and the reports.
Bank-of-Z profiles as mainframe: COBOL carries 33.8k lines against
about 3.8k of Java and JavaScript.
Prepared with AI assistance.
Pipeline 1 (docs/any-legacy.md, section 5.1): AWS Transform writes requirements and business rules only for mainframe code, so it is offered only when the stack profile's family is mainframe. - `reframe run --legacy <family>` other than mainframe, with --tools both or aws, is refused at once with the Claude-only command. - Otherwise the check is at the end of stage 1: after the snapshot has been profiled and before stage 2 makes the first AWS resource. Nothing is created in AWS, and the message gives the Claude-only command. A run from before the profile goes on as a mainframe run. - The guided run does not offer AWS Transform for a local source that is not mainframe code: it says so and goes on as Claude only. Pipeline 2 (section 5.2): a program's name follows the profile. For the mainframe it is still the member name, the file's stem in capitals. For any other family it is the file's path within the source, so two OrderService.java files in different folders stay apart. A rule card joins its module of the plugin's map by the module's name or by its file, in the card's domain, Claude's requirements, its business review and its graph. The plugin's commands, the estimate and the agent limit are unchanged. Tests: the refusal and its place in stage order, mainframe and older runs going on, --legacy with AWS, the guided run on a PHP source, program names by family, and two files of one name kept apart. Prepared with AI assistance.
The reconciliation takes its words and its source files from the stack profile (docs/any-legacy.md, section 5.3). - The prompts of the decision, the description of agreed rules and the accuracy audit are written for the mainframe, and for a mainframe run they are exactly as before. For any other stack, Reframe puts them in the stack's words: readers "who do not read Java and JSP"; "follow a call, an include, an import or an inherited method" in place of "a PERFORM, CALL or copybook"; and the reachability check speaks of entry points reached from a route, a page or form, a menu, a call, an event or a scheduled job, not of XCTL, LINK and job cards. The rules keep their business form (WHEN ..., THE ... SHALL ...). - The source files read are those of the profile's languages. For any family but the mainframe, each file stands for itself, keyed by its path, as its program name is (L1-02). Libraries kept in the tree are left out. - The evidence check is unchanged: every cited line must exist in the snapshot. - The expert's pack says which stack the source is, and its guide uses the stack's words. Tests: every mainframe prompt is the same object as before; Java's and .NET's words; the source files and the evidence check on the Java fixture; the audit's prompts and the expert's pack on a Java run. Prepared with AI assistance.
A codebase with no screens (a batch system, a service or a library) is designed without them (docs/any-legacy.md, section 5.4). - A design round leaves out the journeys, the modern screens and the prototype when no reader found a screen and the stack profile found no screen definitions, views, templates or forms. No model step runs for them. design/journeys.json and design/modern.json record why, and the round's notes say "Left out: the codebase has no screens." So does `--plan`. - The final specifications, golden datasets, package and backlog are written as for any codebase. - The design page says why there are no screens, in words taken from the profile (it looks like a batch system, a service or a library). It shows no screen tiles or links to pages that do not exist. - The package's CLAUDE.md says there is no prototype, and the package has no ui-reference folder. Tests: a round on the batch-only Java fixture runs only the specifications' step and writes the specifications, golden datasets, the package in each form and a Jira backlog. The reason names a batch system, a codebase whose views a reader will find is not left out, and the plan says so too. Prepared with AI assistance.
For a codebase that is not a mainframe, the design reads its screens and the flow between them with a general reader, reframe.design.general (docs/any-legacy.md, section 5.4). It gives the later stages the same shapes the BMS and CICS readers give, so the journeys, the modern screens and the prototype work as on the mainframe. - Screens (D1): one Claude step per batch of the views, pages and forms the stack profile found lists each screen's fields (name, label, kind, validation) and actions (buttons, links, submits), each citing its line. Reframe checks that every screen names a file of the batch and every cited line exists. A failed answer is asked again once with the reasons; then the screen is kept with no fields and the reasons, never guessed. - Flow (D2): links read with no model where a pattern settles them: an href, a form's action, a redirect, Spring and JAX-RS route annotations, Stripes' @UrlBinding, the ASP.NET MVC conventions (Html.ActionLink, Html.BeginForm, View(), RedirectToAction) and a script page's own path. The ends of a link are view files and routes, and each route stands for the screens it renders, or those it redirects to. A link no pattern settles goes to one Claude step, checked the same way (its target must be a screen, a route or a file, and its lines must exist). What fails twice stays unresolved. - The code behind a screen is its view, the handlers that render it and the classes they use, so a screen reaches the domain of the rules in its service. - The legacy screens page shows a general screen as its fields and actions with their lines and its source file; the old page is not drawn. The flow page and the design page say which reader made them. - The journeys, modern screens and specifications prompts speak of screens, actions and links, not 3270 maps and function keys, for any stack but the mainframe, whose prompts are unchanged. Tests: the Java, .NET and PHP fixtures' screens, links by pattern, reach and the code behind each screen; an answer that fails twice; a link only a model step settles; the prompts' words; and a whole design round on the Java fixture through to the prototype and the specifications. Prepared with AI assistance.
For a codebase that is not a mainframe, the design's data contracts come from what the stack profile found as data (docs/any-legacy.md, section 5.4), in the copybooks' contract shape, so the specifications, the design page and the package use them as they are. - SQL DDL is read with no model: each CREATE TABLE is a record of its columns. Each column carries its SQL type as written, a neutral type (text of n characters, an integer, a decimal with digits and scale, floating point, a date, a timestamp, true or false, binary data), whether it may be empty, and its key: primary, from the column or a PRIMARY KEY clause, or foreign to a table's column. Each cites its line. - Entity and record classes (JPA, Entity Framework and the like) are read by one Claude step per batch of files. Reframe checks that every cited line exists and shows the field's name. A failed answer is asked again once with the reasons, then the file is listed as unread on the design page, never guessed. Unchanged files are not asked again. - The target stack's code and column types apply as for copybooks. A date, a timestamp, a boolean or binary data keeps its neutral type, since Reframe's type tables do not name them; a text with no stated length gets no column size. - A capability's contracts are those its rules' source files name, by table or by entity class. The design page says where they were read from. Tests: the DDL's tables, types, nullability and keys; the stack's types; the Java fixture's table and @entity, and the second read kept; the .NET entity; a field not on its cited line, asked again and left unread; and the Java design round's contract. Prepared with AI assistance.
Each capability's "runs as" comes from the screens, routes and job definitions of any stack (docs/any-legacy.md, section 5.4). The mainframe's rule is unchanged. - Online: the capability's rules are in code behind a screen. That is the view, the handlers that render it, the handler its form posts to, and the classes they use. - Scheduled job: the code is a job definition (cron, Quartz, Spring Batch, @scheduled, Windows tasks, JCL), or a file one uses, or a rule's entry cites one. Both online and a scheduled job give "online and scheduled job", as before. - Service: routes reach the code and no screen does. - Library: nothing in the source shows how the code runs. The package's API task then builds the library the rest of the application calls, and the specification counts list it. Tests: for each fixture (the Java web application online and its nightly job, .NET online, the PHP form handler online, the batch-only job), a REST service with no screens and a helper nothing runs, the mainframe's rule as before, and the batch fixture's design round. Prepared with AI assistance.
Reframe's words follow docs/any-legacy.md, section 6: "the legacy source", not "the mainframe", except where they mean exactly the mainframe. - The tagline on the header and in `reframe --help`: "From legacy source to reviewed requirements, business rules and a design to build from". `reframe run`'s help and the guided run ask for the legacy source, and say AWS Transform is for mainframe source. The published reports' index speaks of legacy assessments. - The package speaks of a modernized legacy application. A mainframe's mechanics (VSAM, CICS, JCL, COMMAREA) are named as an example, not as the only kind. START-HERE.md names the stack it was made from (for example "Java and JSP, java"), and its data contracts are copybooks, tables or entities. - The README says what each family gets in one table: the tools, how the design reads screens, flow and data, and what is proven (end to end for the mainframe; offline for Java, .NET and PHP; not yet for the rest). Its roadmap says release 1.1 is built and tested offline, with live acceptance next. - The guide has a section on what Reframe reads for each stack: the mainframe as it is, then Java, .NET, web scripts and the rest, and a codebase with no screens. - docs/cli.md and the help image (docs/images/cli-help.svg, regenerated at the same width) show the new help. Every Markdown link and anchor in the README, the guide and the command reference resolves. Prepared with AI assistance.
This was referenced Nov 28, 2026
Closed
The design orders the capabilities for replacement, with no model (docs/pipeline-4.md, section 4 D11), and writes design/order.json with each place's wave and reason. - Three waves, from each capability's risk and what it touches (P3-24): read-only first (reporting only, or nothing on the list, and low risk); then updates (record updates, card or personal data); then money, security and audit, or any high-risk capability, last. - Within a wave: lower risk first, then final capabilities before drafts, then the specifications' own order. - A capability that shares a data contract or a screen with one already placed follows it at once, within its own wave. Sharing never pulls a money or security capability into an earlier wave. - Each place says why in words, for example "Money, security or audit, so last: it touches security; high risk." or "... Follows View an account: they share CVACT01Y." - The design page has an "Order of replacement" table linking each capability. The package's constitution replaces its placeholder line 6 with the rule and an "Order of replacement" list. Claude Code's tasks.md is in that order, and every form's tasks for a capability say where it comes and why. The package's data-contracts.md now speaks of copybooks, tables or entities (L1-06's contracts). Tests: the three waves and their reasons, the order within a wave, shared data and screens kept together, a shared contract never moving a capability to an earlier wave, and a whole design round's page, constitution and tasks in each form. Prepared with AI assistance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #485. One commit per story: MP-01 (#486), MP-02 (#487), MP-03 (#488) and MP-04 (#489).
Now holds three PRs' work. #493 is merged into
develop, so this PR's base is nowdevelop. #495 (release 1.1, L1-01 to L1-08) and #496 (P4-12) were merged into this PR's branch, so merging this PR brings all three intodevelop:Its required checks did not run when the base changed, because a base change does not start CI. Closing and reopening the PR started them.
MP-01, one table of source kinds.
reframe.source.kindsfollows AWS Transform's list of source file types. A known extension decides, in any case; a member with no extension, or.txt, is classed by its content. The reconciliation and the design's readers use the table in place of their own suffix lists.cpy…, so copybooks incopy/(Bank-of-Z) orcopybooks/(AWS's layout) were never read.MP-02, CICS definitions in either form. DFHCSDUP's DEFINE statements are read with
$ # @in names, where such a transaction was skipped before. IBM's CICS resource-builder YAML (resourceDefinitions/transaction/program) is read too. Each transaction cites its line. On Bank-of-Z this finds 35 transactions: 14 of its own and 21 for IBM's debugger and TCP/IP listener.MP-03, a package check before the upload. After the snapshot, and before anything is uploaded, Reframe writes
package-check.json. It lists:reframe statusand both business reviews show it. Nothing in the source changes.MP-04, the guide. A section on bringing source from a mainframe: AWS's package, the system extracts, and SMF data in its own folder.
On Bank-of-Z (a local clone of its
mainbranch, no paid run), the check says:.asm, which AWS will take as Assembler;Checked locally with the
devextra, at each commit and at the tip:ruff check src tests: passes.mypy: no issues.coverage run -m unittest discover -s tests -t .: 476 tests pass, 82% total.I also syntax-checked the report template's script with Node.
Prepared with AI assistance.