Repository navigation
Release 1.1: L1-01 to L1-08, any legacy codebase - #495
Merged
Merged
Conversation
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
This was referenced Nov 28, 2026
Closed
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 #472 (release 1.1, any legacy codebase; docs/any-legacy.md). One commit per story: L1-01 (#473) to L1-08 (#480). L1-09 (#481), the live runs, is not here: it waits for an estimate and the owner's yes.
Stacked on #494, which is stacked on #493. L1-01 builds on #494's table of source kinds, and its status line goes into #493's
commands/reading.py. Merge #493, then #494, then retarget this PR todevelop.stack-profile.jsonrecords the codebase's languages (by file and by line), its family (the one carrying more than half the lines) and what it has (screens, routes, jobs, data), with the files that show each, plus the words the prompts use.--legacyoverrides the family. For a local source, the guided run shows the profile and asks only when no family carries most of the code.reframe statusand the reviews show it. The package check is shown only for mainframe code.--legacy <other>with AWS is refused at once, any other non-mainframe run is refused at the end of stage 1 before anything is made, and the guided run goes on as Claude only. Outside the mainframe, a program's name is its file's path, so two files of the same name stay apart, and rule cards join their modules by file.• fields and actions come from one Claude step per batch of views; every cited line is checked, the step is asked again once, then the screen is kept with no fields, never guessed;
• links come from patterns with no model (href, form action, redirects, Spring/JAX-RS/Stripes routes, ASP.NET MVC conventions, PHP pages), and a checked Claude step settles the rest.
The journeys, modern screens and prototype then work as on the mainframe. The design prompts speak of screens and actions, not 3270 maps.
CREATE TABLEis read with no model (types, nullability, primary and foreign keys). Entity classes come from a checked Claude step. The target stack's types apply as for copybooks.Tests: six synthetic fixtures, written for the tests, are in
tests/stacks.py: Java web, .NET, PHP, batch-only Java, mainframe and mixed. Model steps run against fakes that answer from the fixture files, as the other design tests do.Bank-of-Z profiles as
mainframe: COBOL carries 33.8k lines, against about 3.8k of Java and JS. So AWS Transform stays available for it.Checked locally with the
devextra, at each of the eight commits and at the tip:ruff check src tests: passes.mypy: no issues.Every Markdown link and anchor in the README, the guide and
docs/cli.mdresolves.Prepared with AI assistance.