Method
How a rebuild gets validated
Most prior work is controlled and cannot be shown. The method is public on purpose.
01
Recover the intent
Derive the equations the code actually implements — not the ones it claims to.
02
Rebuild it
Maintainable language, version control, tests from the first commit. AI accelerates; it does not decide correctness.
03
Benchmark it
Matching the old code only reproduces its bugs. Outside reference data decides.
04
Hand it over
Source, tests, validation report, documentation. The aim is that you never call me about this code again.
Worked example
Before, after, and the proof
Illustrative. Not client data.
SUBROUTINE EXTRCT(DF,NS,E) C STAGE EFFICIENCY DIMENSION E(20) DO 10 I=1,NS E(I)=1.0-EXP(-DF*0.37) 10 CONTINUE RETURN END
def stage_efficiency(df, n_stages): """Murphree efficiency per stage.""" return 1 - np.exp(-df * ALPHA) @pytest.mark.parametrize("c", LIT_CASES) def test_against_literature(c): assert_allclose(stage_efficiency(*c.x), c.expected, rtol=c.tol)
| Case | Source | Reference | Rebuilt | Δ | Result |
|---|---|---|---|---|---|
| 01 | literature, 1994 | 0.912 | 0.908 | 0.4% | pass |
| 02 | agency dataset | 0.774 | 0.781 | 0.9% | pass |
| 03 | literature, 2011 | 0.655 | 0.690 | 5.3% | flagged |
| 04 | plant data | 0.588 | 0.585 | 0.5% | pass |
Case 03 is the useful one. A rebuild that never disagrees with anything has not been tested.
Want this run against your code?
Send what you have and I will tell you what is validatable with it.
Get in touch