Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,43 @@

What changed in each release. Releases are tagged on `main`; the stories behind each are in [docs/plan.md](docs/plan.md).

## Unreleased
## 1.1.0 (unreleased)

Any legacy codebase Claude's code-modernization plugin reads, not only mainframes: Java, .NET and PHP join mainframe COBOL, CICS and JCL. Outside the mainframe a run is Claude only, since AWS Transform writes requirements and business rules only for mainframe code.

**The stack profile**
- `stack-profile.json` names a codebase's languages, family, screens, routes, jobs and data, with the files that show them; vendored libraries and build wrappers are left out. `--legacy` overrides it; `reframe status` and the reports show it.
- AWS Transform is offered only for a mainframe codebase, and refused before anything is made otherwise.

**The reconciliation and the design, in the stack's words**
- The prompts, source files and evidence checks follow the profile: programs are a web application's files, not COBOL members.
- The general reader: each view's fields and actions by a checked Claude step; the routes and links between screens by pattern with no model (Spring and JAX-RS annotations, Stripes, MVC conventions, Razor helpers, the Web Forms route table, redirects, forms), and a checked step for the rest. Included parts (JSP includes, Razor partials and layouts, master pages, user controls, PHP includes) are folded into the pages that include them.
- A codebase without screens (batch jobs, services, libraries) gets its specifications, golden datasets, package and backlog, with the screens left out and the page saying why.
- Data contracts from SQL DDL with no model, and from entity classes by a checked step, with their keys; a file that holds SQL (a mapper, a query file) names the tables it uses. The target stack's types apply, SQL integers by their width.
- "Runs as": online, a scheduled job, a service or a library, from the screens, routes and job definitions.
- The order of replacement (P4-12): read-only capabilities first, then updates, then money, security and audit, shared data and screens kept together, with the reason for each, on the design page and in the package.

**The AI-DLC package**
- The Claude Code form has the role files the tasks name, in `.claude/agents/`.
- The proof slice is named by the journey it starts; a value with a space at either end is quoted in the criteria; a message with a value in it (`'<quantity> in stock.'`) matches any value in its place in `golden/compare.py`.

**After the forward-engineering review (28 November 2026)**
- Specifications: rules only about the old screen's mechanics are *legacy interaction*, with no acceptance criterion; an example's criterion states its event, not the rule's condition; a journey's screen with nothing of the capability is named as context, not given an empty table (#393).
- The package: every capability has its service or job task; SQL tables and ORM entities are stored records, rendered with their columns; the copy for the team keeps the application's own e-mail addresses and IDs (#394, #478).
- Golden datasets: values an outcome states are compared by value; an unchecked case is never a pass, and `compare.py` exits 2 until the team asserts it (#421).

**Mainframe source packages**
- One table of source kinds, from AWS Transform's list: upper-case extensions, `.cobol`, `.pl1`, and members with no extension or `.txt` classed by their content.
- CICS transactions from DFHCSDUP's DEFINE statements (with `$`, `#` and `@` in names) and from IBM's CICS resource-builder YAML.
- A package check after the snapshot, before any upload: files AWS Transform's table does not name, content and extension that disagree, files that are not text or not in one encoding, and which system extracts are present.
- The guide says how to bring source from a mainframe.

**Code quality**
- `reframe.core.commands` is one module per command group, and every module is type-checked.

**Proven on**
- Live, Claude only: JPetStore 6 (Java) and eShopModernizing (.NET Framework), from `reframe run` to `reframe export`, run locally; nothing from them is committed. Results in [docs/any-legacy.md](docs/any-legacy.md), section 7.

## 1.0.0 (27 November 2026)

The first release for anyone to try: with Claude only, or with Claude and AWS Transform. Tested end to end on mainframe code; open source under the MIT License, at github.com/CodeStrata/reframe.
Expand Down
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<p align="center">
<b>From legacy source to reviewed requirements, business rules and a design to build from.</b>
<br />
<sub>Tested end to end on mainframe COBOL and CICS. Java, .NET and PHP are tested offline, with live runs to come.</sub>
<sub>Tested end to end on mainframe COBOL and CICS, and live on Java and .NET web applications with Claude only. PHP is tested offline.</sub>
</p>

<p align="center">
Expand Down Expand Up @@ -48,12 +48,12 @@ Reframe works out what the codebase is first, its *stack profile*, and picks its
| Family | Tools | How the design reads screens, flow and data | Proven |
|---|---|---|---|
| **Mainframe:** COBOL, PL/I, JCL, CICS, BMS, IMS | Claude's assessment and AWS Transform's, reconciled | Exact readers with no model: BMS maps, CICS transfers and definitions (CSD or resource-builder YAML), copybooks | **End to end** on AWS's CardDemo |
| **Java:** Java, JSP, JSF, Groovy, Kotlin | Claude only: AWS Transform writes requirements only for the mainframe | The general reader: views, fields and actions by a checked Claude step; links from routes and patterns; SQL DDL with no model, entities by a checked step | Offline, on small fixtures |
| **.NET:** C#, VB.NET, ASP.NET, Razor | Claude only | The general reader, with the MVC conventions | Offline, on small fixtures |
| **Java:** Java, JSP, JSF, Groovy, Kotlin | Claude only: AWS Transform writes requirements only for the mainframe | The general reader: views, fields and actions by a checked Claude step; links from routes and patterns; SQL DDL with no model, entities by a checked step | **Live** on JPetStore 6, Claude only ([results](docs/any-legacy.md)) |
| **.NET:** C#, VB.NET, ASP.NET, Razor | Claude only | The general reader, with the MVC and Web Forms conventions | **Live** on eShopModernizing, Claude only ([results](docs/any-legacy.md)) |
| **Web scripts:** PHP, Perl, Ruby, Python, classic ASP | Claude only | The general reader | Offline, on small fixtures |
| **Front end, native, 4GL, mixed** | Claude only | The general reader | **Not yet:** they run, unproven |

A codebase with no screens (a batch system, a service or a library) gets its specifications, golden datasets, package and backlog without journeys, screens or a prototype. Live runs on two codebases beyond the mainframe come next ([the 1.1 specification](docs/any-legacy.md)).
A codebase with no screens (a batch system, a service or a library) gets its specifications, golden datasets, package and backlog without journeys, screens or a prototype. Both live codebases were also built in another language from the package alone, as a test of the package ([the results](docs/any-legacy.md)).

It is for modernization teams, architects and the business people who have to say "yes, that is what the system does" before anything is rebuilt.

Expand Down Expand Up @@ -121,6 +121,8 @@ Both tools assess the same snapshot. The comparison shows where they agree and w

## How it works

[How Reframe works](docs/how-it-works.md) explains it in two pages: the four pipelines, traceability from a line of legacy code to a test, and where reviewers' marks live and how they come back.

![How a Reframe run works: the snapshot, the two assessments side by side, the reports, the reconciliation against the source code, the design, sharing and teardown](docs/images/reframe.svg)

| Step | Command | What happens |
Expand All @@ -137,7 +139,7 @@ Every step is recorded before it starts and confirmed after it ends, so a run th
You need macOS or Linux (on Windows, WSL2), Python 3.10 or later and [uv](https://docs.astral.sh/uv/).

```bash
uv tool install "git+https://github.com/CodeStrata/reframe@v1.0.0"
uv tool install "git+https://github.com/CodeStrata/reframe@v1.1.0"
```

### With Claude only
Expand Down Expand Up @@ -233,9 +235,10 @@ The figures are from live runs and are recorded in [docs/acceptance.md](docs/acc

## Roadmap

- **Beyond the mainframe (1.1):** built and tested offline: the stack profile, Claude-only runs by family, the reconciliation in the stack's words, and screens, flows, data contracts and "runs as" read for each stack. Live acceptance on two codebases comes next ([the specification](docs/any-legacy.md)).
- **Beyond the mainframe (1.1):** done: the stack profile, Claude-only runs by family, the reconciliation in the stack's words, and screens, flows, data contracts and "runs as" read for each stack, live on JPetStore 6 and eShopModernizing ([the results](docs/any-legacy.md)).
- **A second public mainframe codebase:** IBM's Bank-of-Z end to end, with both tools.
- **Proof at scale:** a codebase several times CardDemo's size, and a mainframe expert's own check of the audit.
- **Later:** a replacement order from the specifications, real legacy outputs under GnuCOBOL, and Claude on Amazon Bedrock, live ([docs/plan.md](docs/plan.md)).
- **Later:** real legacy outputs in the golden datasets (the GnuCOBOL spike is done), and Claude on Amazon Bedrock, live ([docs/plan.md](docs/plan.md)).

## Contributing

Expand Down
52 changes: 52 additions & 0 deletions docs/any-legacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,58 @@ The profile is shown by `reframe status`, carried into the reports' About sectio
- the package's checks pass.
- **Recorded in this document:** the time, agents and cost of each run, and what was found and fixed.

### Results (L1-09, 28 and 29 November 2026)

Both codebases ran from the CLI on the owner's yes, Claude only, on the subscription, from the workspace's `.reframe/`, with nothing committed. Costs are the list-price equivalents Claude Code reports. eShopModernizing's input was its two legacy applications only (the MVC and Web Forms solutions' `src`, 316 files), not the repository's modernized versions.

| Stage | JPetStore 6 (Java, JSP) | eShopModernizing (.NET Framework MVC and Web Forms) |
|---|---|---|
| Profile | `java`: Java 46 files, JSP 20, SQL 3; 20 views, 6 route files, 14 data files | `dotnet`: C# and Razor; 307 vendored script files left out |
| `reframe run --tools claude` | 40 minutes, $22.08: 13 shards (estimate 15 to 40 agents, "tiny estate"); 11 functions, 29 rules, 112 requirements | about 50 minutes of work, $21.62, with a stop at the usage limit during extract-rules and `reframe resume` after the reset; 12 shards (estimate 120 to 180 agents); 23 functions, 46 rules, 198 requirements |
| Agents | the logs show 3 subagents in assess and 40 in map | the same: 3 and 40 |
| `reframe reconcile` | 4 minutes, $6.29: 29 rules decided against the code; 72 recommended rules, all cited by 78 requirements; 21 possible defects; 7 SME questions from 9 | 5 minutes, $9.04: 46 rules decided; 79 recommended rules, all cited by 117 requirements; 14 possible defects; 16 SME questions from 20 |
| Screens and flow | 20 views; 86 links by pattern, 2 by model, none unresolved | 15 views in round 1; 13 screens in round 2, with 6 parts folded or left out (two layouts, two master pages, a partial, a user control); 48 links by pattern, none by model, 1 unresolved (a link built at run time, `<%: SwitchUrl %>`) |
| Data contracts | 8 tables from the SQL DDL, with their keys; the inventory table, read only in a mapper, was missing until the fix below | 6, from the entity classes of both applications, by a checked step |
| `reframe design` | 14 minutes, $10.72: 13 journeys, 15 modern screens, 24 capabilities (all draft), 123 golden cases | two rounds, 23 minutes, $15.94: 7 journeys, 8 modern screens, 37 capabilities (all draft) |
| `--package` and `--check` | 64 files in the Claude Code form; ready once the engineer's placeholders are filled | 86 files; ready once filled |
| `reframe export` | Jira and Azure DevOps: 10 epics, 24 stories, 78 requirements, 87 acceptance criteria | Jira and Azure DevOps: 19 epics, 37 stories, 117 requirements, 126 acceptance criteria |

No stage stopped for a fault in the code.

**Built in another language from the package alone.** To test the package as a build would use it, Claude Code (headless, on the subscription) built each application in a new language from the Claude Code form alone, with no access to the legacy source. The engineer's placeholders were filled for a local test build, and the owner confirmed the draft capabilities for this test only.

| | JPetStore 6 → React with TypeScript, NestJS, PostgreSQL | eShopModernizing → React with TypeScript, Python 3.12 with FastAPI, PostgreSQL |
|---|---|---|
| The proof slice | 4 capabilities, 22 minutes, $7.32: 11 of 11 criteria pass; 37 package gaps recorded | 4 capabilities, 15 of 15 criteria, before the rest |
| The whole build | 24 capabilities; the rest in 58 minutes, $27.58; 87 of 87 criteria pass; 117 back-end and 111 front-end tests | 37 capabilities in one run of 72 minutes, $19.49; 125 of 126 criteria pass; 241 back-end tests against PostgreSQL and 41 screen tests |
| End to end | a script through browse, search, cart, sign on, checkout and orders: 17 of 17 steps | a script through browse, view, add, edit and delete: 21 of 21 steps |
| Golden datasets | 123 cases: 45 match, 4 formatting, 2 business (both from the datasets: a template literal and a title the case says must not appear), 72 for the tests to assert | 105 cases: 21 match, none differ, 84 for the tests to assert |
| Package gaps | 37 | 23 |
| For the owner | the reconciled rules let a crafted request change any account, password included, as the legacy does; a repeated confirmation places a second order; three rules contradict their screen's text | the one criterion not met asks for the legacy binary brand file, which its own design note says not to copy; a brand "delete" that deletes nothing and an unprinted correlation ID are carried as historical artifacts; anyone can change the catalog, as in the legacy |

**Found and fixed in Reframe:**
- *A web application profiled by its vendored scripts.* eShopModernizing's unminified jQuery, Bootstrap and ASP.NET scripts outweighed its C#: library files and folders are now left out, and build wrappers (`mvnw.cmd`, `build.cmd`) are no longer jobs.
- *Links the patterns missed.* A view returned through a constant from a long method (JPetStore), the Web Forms route table and routes by name, `~` as the application root, and Razor's `Url.Action` in any case (eShopModernizing).
- *Included parts read as screens.* JPetStore's `IncludeTop.jsp` started 7 of its 13 journeys and became part of a modern screen. Includes, Razor partials and layouts, `_ViewStart`, master pages, user controls and PHP includes are now folded into the pages that include them, and a layout, partial, master page or control is never a screen, even when nothing names it.
- *The proof slice.* It was always titled "Sign in", and on eShopModernizing it listed no capability, because the controller reaches its service through an interface. It is now named by the journey that starts it, and falls back to that journey's capabilities.
- *What the build found missing in the package:*
- the Claude Code form had no role files, though every task names a role;
- a table read only in a MyBatis mapper was missing from the contracts (files that hold SQL, and the files a rule cites, now count);
- the contracts showed no keys and used mainframe words (`PIC`, "working storage of") for tables and entities;
- an SQL `INT` was typed as a `BIGINT`;
- a leading space in an example's value was lost;
- a quoted message with a value in it (`'<quantity> in stock.'`) could never match;
- the golden README said `python`.
- *What the Python build found missing in the entity contracts:* eShopModernizing's entities were read from its Entity Framework context, which configures only some properties, so the stock fields and the description were missing; the classes a context names in `DbSet<...>` are now read too. A C# `decimal` with no declared precision was given 18 digits and no decimals, which would have dropped the cents; it now says its precision is not declared, for the team to decide.
- *The prototype's review marks* were kept under one fixed key in the browser, so two prototypes opened from files could mix them. They are now kept per project, run and source, as the review pages keep theirs.
- *The start message* gave CardDemo's two hours for every codebase.

**Seen, not a fault in Reframe:**
- On eShopModernizing, Claude's plugin names its functions after the code's layers (`bootstrap`, `mvc-host`, `wf-host`), not business functions.
- Two pairs of capabilities on JPetStore restate the same rule (search, and placing an order); the build implemented each once with both IDs.
- The MVC and Web Forms applications share route paths (`/Catalog/Create`), and in one codebase the first one found wins.
- Rule programs are kept in upper case, as the reconciliation matches them, so a web file's path shows in capitals in `traceability.md`.

## 8. Not in 1.1

- **AWS Transform for other stacks.** It transforms code rather than documenting it, so there is nothing to reconcile yet. Revisit if AWS adds requirements for them. Whether its code analyses could give a second opinion on debt and security is looked at in [aws-transform-other-stacks.md](aws-transform-other-stacks.md).
Expand Down
Loading
Loading