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
2 changes: 1 addition & 1 deletion docs/any-legacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The owner's direction (27 November 2026): Reframe should not be only for mainframes. It should take any legacy codebase that the tools it drives support, and give the same result: reviewed requirements and business rules, checked against the source, and a package to build from.

Status: **draft for the owner's agreement.** When it is agreed, its stories go into [the plan](plan.md) with an issue each, and are built on a phase branch, as [CONTRIBUTING.md](../CONTRIBUTING.md) says. It builds on release 1.0 ([release-1.md](release-1.md)) and changes nothing in it.
Status: **agreed** (27 November 2026, #464). Its stories are in [the plan](plan.md), with an issue each under epic #472, and are built on a phase branch, as [CONTRIBUTING.md](../CONTRIBUTING.md) says. It builds on release 1.0 ([release-1.md](release-1.md)) and changes nothing in it.

## 1. Goal

Expand Down
40 changes: 28 additions & 12 deletions docs/plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Part of sharing the results: the requirements in the forms people work in. Speci
| Story | Title | Specification | Done when |
|---|---|---|---|
| S-12 | Requirements to a spreadsheet | [sharing §7](sharing.md) | `reframe export --to xlsx` writes one workbook from a run's reconciled results: domains, functions, capabilities, requirements, business rules, decision tables, open questions and the SME list as sheets, each requirement with the rules and source lines behind it and the reviewers' marks; every cell is text, cleaned as `reframe publish` cleans its copy |
| S-13 | Backlog items with acceptance criteria | [sharing §8](sharing.md) | #385 · Done 26 November 2026 (the owner moved it forward from Later, the same day): `reframe export --to jira` writes an Epic per function and a Story per capability, and `--to azure-devops` an Epic per domain, a Feature per function and a User Story per capability, each tool's CSV import file, from the design's final specifications with the package's IDs and their acceptance criteria. No credentials; a person imports it. On CardDemo: 154 stories with 1,503 criteria |
| S-13 | Backlog items with acceptance criteria | [sharing §8](sharing.md) | #385 · Done 26 November 2026 (#462; the owner moved it forward from Later, the same day): `reframe export --to jira` writes an Epic per function and a Story per capability, and `--to azure-devops` an Epic per domain, a Feature per function and a User Story per capability, each tool's CSV import file, from the design's final specifications with the package's IDs and their acceptance criteria. No credentials; a person imports it. On CardDemo: 154 stories with 1,503 criteria |
| S-14 | Runs in the workspace, with inputs and outputs | [specification §7](specification.md), [how to run](how-to-run.md) | Done 26 November 2026 (the owner's request): every run is in `<workspace>/.reframe/<project>/<run>/`, the folder Reframe is run from, with `inputs/reconcile/` and `inputs/design/` (read when `--context` is not given) and `outputs/`; Reframe's tools and settings stay in `~/.reframe`; `.reframe/` is git-ignored. The existing runs were moved, not rerun, with symlinks left at the old paths. `reframe design` is a command, `reframe publish` includes the design and the package, and the README, the command reference and a one-page [How to run Reframe](how-to-run.md) describe it |
| S-15 | A published run's source, results and reports | [sharing §4](sharing.md) | Done 26 November 2026 (the owner's request): `reframe publish --to aws` uploads the run under `<project>/<run>/` in the standing Reframe bucket as `source/` (the snapshot and a note of its origin without local paths), `results/aws/` and `results/claude/` (the tools' own files) and `reports/` (the cleaned copy and `report.zip`). The owner chose the standing bucket over each run's source bucket, which teardown deletes. Reports published before keep opening |

Expand All @@ -169,13 +169,13 @@ Agreed by the owner on 24 November 2026. From the reconciled and reviewed result
| P4-02 | Spike: the screen inventory | [§4 D1](pipeline-4.md) | Done 25 November 2026 ([spikes/p4-02-screens.md](spikes/p4-02-screens.md)): every BMS map in CardDemo (21) is read into its fields, positions, attributes and function keys, with no model, and each legacy screen is drawn as a faithful 3270 copy |
| P4-03 | How the screens connect | [§4 D2](pipeline-4.md) | Done 25 November 2026: the flow between screens and programs is read from the source and shown as a map, each link citing its lines; on CardDemo nothing is left open |
| P4-04 | User journeys | [§4 D3](pipeline-4.md) | Done 25 November 2026: screens are grouped into the tasks people do, each journey linked to its capabilities and requirements; on CardDemo 20 journeys over all 21 screens, every answer passing Reframe's checks |
| P4-05 | Modernized screens and their mapping | [§4 D4, §5](pipeline-4.md) | Each journey has modern screen designs. A mapping table takes every legacy screen and field to its new component as kept, merged, dropped or new, with the reason; no legacy field is left unmapped. Each screen also records its role, data and service dependencies, the pain points it removes and test scenarios, and follows a `style-reference/` folder where the design system is silent |
| P4-05 | Modernized screens and their mapping | [§4 D4, §5](pipeline-4.md) | Done 25 November 2026 (#420), and proven in P4-10's live rounds: each journey has modern screen designs. A mapping table takes every legacy screen and field to its new component as kept, merged, dropped or new, with the reason; no legacy field is left unmapped. Each screen also records its role, data and service dependencies, the pain points it removes and test scenarios, and follows a `style-reference/` folder where the design system is silent |
| P4-06 | The clickable prototype | [§4 D5](pipeline-4.md) | Done 25 November 2026: one static HTML app with a route per screen, sample data shaped by the fields and messages written from the rules, each screen beside the legacy screens it replaces; screens and components can be marked *Agree*, *Needs change* or *Question*, journeys signed off, and the marks downloaded |
| P4-07 | Final specifications | [§4 D6, D8](pipeline-4.md) | Done 26 November 2026: per capability, the final requirements and business rules, screen specifications, data contracts from the copybooks, acceptance criteria, decision tables with their gaps, and the questions still open, each citing its sources; each rule and requirement classed as business rule, formatting, error handling, side effect or historical artifact |
| P4-08 | The AI-DLC package | [§4 D7](pipeline-4.md) | Done 26 November 2026, with placeholders and START-HERE.md for what the engineer gives (the stack, house conventions, skills); the *Sign in* build check is the engineer's step (owner's decision). One package in three forms: Kiro (`.kiro/specs/<capability>/` with `requirements.md`, `design.md` and `tasks.md`, and steering files), Claude Code (`CLAUDE.md`, the specifications, the prototype as the UI reference and the tasks) and Spec Kit (a constitution, `specs/<capability>/` and role files under `.claude/agents/`, each task naming its role), every item keeping its requirement and rule IDs. Checked by loading it into Claude Code and building one journey |
| P4-09 | Rounds with more context | [§4 D9](pipeline-4.md) | Done 26 November 2026 (`python -m reframe.design.pipeline`, with `--plan`): added context redoes only the parts it touches; each round versions the package and writes what changed since the last |
| P4-10 | Live acceptance and README | [§8](pipeline-4.md) | Done 26 November 2026 ([results](pipeline-4.md)): rounds 1 and 2 on CardDemo from the CLI; round 2's persona, design system and *Needs change* redid only what they reach, and a kept part now records its pieces so a later round can say why. On CardDemo, from the CLI: the prototype covers every screen, a second round with added context changes only what it should, and the README and `docs/cli.md` describe pipeline 4 from the tested commands |
| P4-11 | Golden datasets and equivalence tests | [§4 D10](pipeline-4.md) | Done 26 November 2026 (the owner moved it forward from Later, the same day), with no model: per capability, a golden dataset from the worked examples and decision tables in each form of the package, with `golden/compare.py` setting formatting apart from business differences, and the test-generation task naming every case. On CardDemo: 1,595 cases for 139 capabilities, 746 edge cases and 82 combinations left for the owner. Expected outputs come from the rules until P4-13 |
| P4-11 | Golden datasets and equivalence tests | [§4 D10](pipeline-4.md) | #421 · Done 26 November 2026 (#456; the owner moved it forward from Later, the same day), with no model: per capability, a golden dataset from the worked examples and decision tables in each form of the package, with `golden/compare.py` setting formatting apart from business differences, and the test-generation task naming every case. On CardDemo: 1,595 cases for 139 capabilities, 746 edge cases and 82 combinations left for the owner. Expected outputs come from the rules until P4-13 |
| P4-12 | Risk and replacement order | [§4 D11](pipeline-4.md) | **Later** (the owner, 26 November 2026). Capabilities are ordered for replacement from their risk and what they touch, low-risk and read-only first and money, security and adjudication last, shared data and screens kept together; the order and its reasons are on the design page and in the package's constitution and tasks |
| P4-13 | Spike: real legacy outputs under GnuCOBOL (low priority) | [§4 D12](pipeline-4.md) | **Later** (the owner, 26 November 2026). A note records which CardDemo batch programs compile and run under GnuCOBOL with files built from the copybooks, and whether their outputs can replace the rules' expected outputs in the golden datasets |

Expand Down Expand Up @@ -205,21 +205,37 @@ The owner's direction (26 November 2026): make Reframe credible to someone readi

| Story | Title | Specification | Done when |
|---|---|---|---|
| Q1-01 | Honest status | – | #450 · `pyproject.toml` classes Reframe as Beta (`Development Status :: 4 - Beta`), not Production/Stable |
| Q1-02 | Lint in CI | [CONTRIBUTING](../CONTRIBUTING.md) | #451 · `ruff check src tests` passes in CI with pyflakes, syntax and bugbear rules. The 51 findings of the first check are fixed: unused imports and names, two dead loads in the design round, loop variables never read, and a test that accepted any exception |
| Q1-03 | Types in CI | [CONTRIBUTING](../CONTRIBUTING.md) | #452 · `mypy` passes in CI. The modules with type errors still to fix are listed in `pyproject.toml`, and the list only shrinks: 25 of 85 modules at the start, after 13 were fixed |
| Q1-04 | Tests of the drivers, and a coverage floor | [CONTRIBUTING](../CONTRIBUTING.md) | #453 · The Claude assessment's driver, the AWS Transform assessment's driver and the command handlers are tested stage by stage with fakes, and CI fails below 80% line coverage. At the start: 81% overall; the drivers went from 44%, 38% and 46% to 95%, 93% and 71% |
| Q1-05 | Split `core/commands.py` | – | #454 · **After the v1.0.0 tag** (the owner, 26 November 2026), so it does not collide with the release's fixes. The 900-line module becomes one module per command group, with the Q1-04 tests passing unchanged |
| Q1-01 | Honest status | – | #450 · Done 26 November 2026 (#455): `pyproject.toml` classes Reframe as Beta (`Development Status :: 4 - Beta`), not Production/Stable |
| Q1-02 | Lint in CI | [CONTRIBUTING](../CONTRIBUTING.md) | #451 · Done 26 November 2026 (#455): `ruff check src tests` passes in CI with pyflakes, syntax and bugbear rules. The 51 findings of the first check are fixed: unused imports and names, two dead loads in the design round, loop variables never read, and a test that accepted any exception |
| Q1-03 | Types in CI | [CONTRIBUTING](../CONTRIBUTING.md) | #452 · Done 26 November 2026 (#455): `mypy` passes in CI. The modules with type errors still to fix are listed in `pyproject.toml`, and the list only shrinks: 25 of 85 modules at the start, after 13 were fixed |
| Q1-04 | Tests of the drivers, and a coverage floor | [CONTRIBUTING](../CONTRIBUTING.md) | #453 · Done 26 November 2026 (#455): The Claude assessment's driver, the AWS Transform assessment's driver and the command handlers are tested stage by stage with fakes, and CI fails below 80% line coverage. At the start: 81% overall; the drivers went from 44%, 38% and 46% to 95%, 93% and 71% |
| Q1-05 | Split `core/commands.py` | – | #454 · **Next:** unblocked now that v1.0.0 is tagged (27 November 2026). The 900-line module becomes one module per command group, with the Q1-04 tests passing unchanged |

## Release 1.1: any legacy codebase

The owner's direction (27 November 2026): Reframe takes any legacy codebase Claude's plugin reads, not only mainframes. Outside the mainframe a run is Claude only, since AWS Transform writes requirements only for mainframe code. The specification is [docs/any-legacy.md](any-legacy.md), agreed when #464 merged. Epic #472.

| Story | Title | Specification | Done when |
|---|---|---|---|
| L1-01 | The stack profile | [§4](any-legacy.md) | #473 · `stack-profile.json` names the languages, family, screens, routes, jobs and data with the files that show them, for each test fixture; `--legacy` overrides it; status and the reports show it |
| L1-02 | Pipelines 1 and 2 by profile | [§5.1, 5.2](any-legacy.md) | #474 · AWS Transform is offered only for `mainframe`, and refused before anything is made otherwise; program names follow the profile |
| L1-03 | A reconciliation in the stack's words | [§5.3](any-legacy.md) | #475 · The prompts and source files come from the profile; the evidence check, the audit and the expert's pack work on a non-mainframe fixture |
| L1-04 | A design without screens | [§5.4](any-legacy.md) | #476 · A batch or service fixture gets its specifications, golden datasets, package and backlog, with journeys, screens and the prototype left out and the page saying why |
| L1-05 | Screens and flow from any stack | [§5.4](any-legacy.md) | #477 · The general reader lists each view's fields and actions and the routes and links between them, each citing lines and checked; patterns that settle a link need no model; what fails twice is unresolved |
| L1-06 | Data contracts from any stack | [§5.4](any-legacy.md) | #478 · SQL DDL is read with no model; entity classes by a checked model step; the target stack's types apply as today |
| L1-07 | "Runs as" for any stack | [§5.4](any-legacy.md) | #479 · Online, scheduled job, service or library from screens, routes and job definitions, for each fixture |
| L1-08 | Words, README and docs | [§5.5, 6](any-legacy.md) | #480 · The tagline, the README's table by family, the guide and every stage's words follow section 6 |
| L1-09 | Live acceptance on two codebases | [§7](any-legacy.md) | #481 · Section 7's *done when* on eShopModernizing and JPetStore 6, run locally, nothing committed, the results recorded here |

## Proving it at scale

After everything above is tested and the owner is satisfied.

| Story | Title | Specification | Done when |
|---|---|---|---|
| SC-01 | Spike: a larger codebase | [spike](spikes/sc-01-larger-codebase.md) | Spike written 26 November 2026, for the owner to choose: no public COBOL and CICS codebase several times CardDemo's size has a licence that allows it. The paths are CardDemo, GenApp and Bank-of-Z as one codebase (about 2.7 times CardDemo, permissive licences, read today), or NAV's DSF (MIT, about 20 times, a real national system) once Reframe reads PL/I. Estimates are in the spike |
| SC-01 | Spike: a larger codebase | [spike](spikes/sc-01-larger-codebase.md) | #398 · Spike written 26 November 2026 (#461), for the owner to choose: no public COBOL and CICS codebase several times CardDemo's size has a licence that allows it. The paths are CardDemo, GenApp and Bank-of-Z as one codebase (about 2.7 times CardDemo, permissive licences, read today), or NAV's DSF (MIT, about 20 times, a real national system) once Reframe reads PL/I. Estimates are in the spike |
| SC-02 | All pipelines on the larger codebase | to be written | **Later** (the owner, 26 November 2026). Every pipeline runs to the end on it, with the time, agents and cost of each recorded in the documentation |
| SC-03 | Amazon Bedrock, live | [pipeline 2 §4.1](pipeline-2.md) | **Later** (the owner, 26 November 2026). The Claude assessment, the reconciliation and pipeline 4 run live with Claude on Amazon Bedrock. Held until the owner's security clearance for using Bedrock on the codebase |
| SC-04 | Sign in with an Anthropic API key | [pipeline 2 §4.1](pipeline-2.md) | #457 · Done 26 November 2026, offline (the owner: build and test offline, a live run only on a yes): `--auth api-key` on `reframe run`, `claude`, `reconcile` and `design`, and in the guided run. `ANTHROPIC_API_KEY`, with `ANTHROPIC_BASE_URL` when set, goes to Claude Code from the shell and is never written; the preflight checks it is set; the estimate says it is billed to the key; `reframe publish` replaces a key it finds and names it |
| SC-05 | Amazon Bedrock on a Claude-only run | [pipeline 2 §4.1](pipeline-2.md) | #458 · Done 26 November 2026, offline: `reframe run --tools claude --auth bedrock --profile <p> --region <r>` uses the profile for Bedrock only and creates no AWS resources; `AWS_BEARER_TOKEN_BEDROCK` needs no profile. The reconciliation and the design now check the Bedrock sign-in against the run's profile (before, they checked it with no identity and always refused). Live runs wait for SC-03 |
| SC-06 | A mainframe expert's own check of an audit sample | [pipeline 3 §8.13](pipeline-3.md) | #460 · Built 26 November 2026, with no model: `python -m reframe.reconcile.expert pack` writes a blind pack of the audit's sample, cleaned, with `verdicts.csv`; `read` reports the expert's figures, their agreement with each judge and with the audit, and the rules they call wrong. On CardDemo the pack holds the audit's 76 items. **Live:** the expert's verdicts, for the owner to arrange |
| SC-04 | Sign in with an Anthropic API key | [pipeline 2 §4.1](pipeline-2.md) | #457 · Done 26 November 2026 (#459), offline (the owner: build and test offline, a live run only on a yes): `--auth api-key` on `reframe run`, `claude`, `reconcile` and `design`, and in the guided run. `ANTHROPIC_API_KEY`, with `ANTHROPIC_BASE_URL` when set, goes to Claude Code from the shell and is never written; the preflight checks it is set; the estimate says it is billed to the key; `reframe publish` replaces a key it finds and names it |
| SC-05 | Amazon Bedrock on a Claude-only run | [pipeline 2 §4.1](pipeline-2.md) | #458 · Done 26 November 2026 (#459), offline: `reframe run --tools claude --auth bedrock --profile <p> --region <r>` uses the profile for Bedrock only and creates no AWS resources; `AWS_BEARER_TOKEN_BEDROCK` needs no profile. The reconciliation and the design now check the Bedrock sign-in against the run's profile (before, they checked it with no identity and always refused). Live runs wait for SC-03 |
| SC-06 | A mainframe expert's own check of an audit sample | [pipeline 3 §8.13](pipeline-3.md) | #460 · Built 26 November 2026 (#461), with no model: `python -m reframe.reconcile.expert pack` writes a blind pack of the audit's sample, cleaned, with `verdicts.csv`; `read` reports the expert's figures, their agreement with each judge and with the audit, and the rules they call wrong. On CardDemo the pack holds the audit's 76 items. **Live:** the expert's verdicts, for the owner to arrange |
Loading