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.

EXTRCT.F · 1987 · no tests
      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
stage_efficiency.py · benchmarked
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)
Benchmark run · tolerances set before execution
CaseSourceReferenceRebuiltΔResult
01literature, 19940.9120.9080.4%pass
02agency dataset0.7740.7810.9%pass
03literature, 20110.6550.6905.3%flagged
04plant data0.5880.5850.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