Inside the Code Archive Where a Climate Model No Longer Runs
A climate model that ran on a university cluster in 2012 may not run anywhere today. The source code survives in an archive, but the compiler, the numerical libraries, and the hardware that shaped its results do not. That gap sits at the center of a disagreement among computational scientists about what reproducibility actually requires.
A Model That Will Not Run
The failure is mundane. A model released with a paper gets archived as source files, and years later a reader downloads them and finds that the build script points to a library version no longer distributed. The code is intact. The instructions for turning it into a running program are not.
Software Heritage, unveiled in 2016 by the French research institute Inria and supported by UNESCO, was built to solve the first half of this problem. It archives human-readable source code and assigns persistent identifiers. It does not promise that archived code will execute.
That distinction matters for climate science, where a model is often the instrument behind a published result. A preserved file is evidence that the code existed. A reproducible run is evidence that the result follows from it. The two are not the same, and reasonable scientists split on which one deserves the funding.
What Software Heritage Actually Stores
The archive is structured as a non-profit, multi-stakeholder initiative. Its focus is source code in human-readable form, not compiled binaries. Each file and commit receives a SoftWare Hash IDentifier, or SWHID, a persistent label comparable in spirit to a DOI but tailored to versioned code.
That design choice is deliberate. Source is compact, inspectable, and portable across systems in a way that a compiled executable is not. A SWHID lets a reader point to an exact version of a function and know it has not changed underneath them.
The limitation follows from the same choice. A DOI identifies a paper. A SWHID identifies a piece of source. Neither identifies a working build environment, and that environment is where climate models tend to break. The archive can tell you what the code said. It cannot tell you what the code did.
The Gap Between Hash and Behavior
Pinned source still needs a compiler, and compilers age out of vendor support. A model written for an older Fortran standard may compile today with warnings that hide changed behavior, or fail outright when a dependency is pulled from a package repository that no longer carries the needed version.
Binary dependencies rot in a subtler way. Numerical libraries are often distributed as compiled objects, and a library built for one operating system release may not load on the next. Hardware drift adds another layer: the same floating-point operations can produce slightly different results across processors, enough to shift a long simulation.
The scale of the drift is small per operation and large per run. A single addition differing in the last digit is nothing. Iterate that difference across millions of grid cells and tens of thousands of timesteps, and a chaotic system can diverge into a visibly different climate trajectory. Modelers sometimes describe this as a butterfly effect inside the machine, and it means that two runs of nominally identical code can disagree without either being wrong.
This echoes the replication crisis that has occupied other fields, though the mechanism differs. The site has argued that funding sources shape replication outcomes, and a similar question applies here: who pays to keep a model runnable, and for how long? A related piece on sensor logs facing the same audit as bench data makes a parallel point about records that outlive their instruments.
Two Camps, One Archive
Preservationists argue that freezing source is the achievable goal. Archives are cheap to maintain relative to execution environments, and a well-labeled source tree lets a future researcher reconstruct a build if the need is great enough. The cost is deferred, not avoided.
Executionists counter that a model nobody can run is a historical document, not a scientific instrument. They favor emulation and container images that capture the whole toolchain, from compiler flags to library versions. Containers can be archived alongside source and rebuilt on demand.
Both sides agree that provenance is essential. The disagreement is over who pays for upkeep. A container image needs periodic testing and migration as host systems change, and that recurring cost has no natural funder. The archive can store the image. It cannot guarantee the image still boots.
What Emulation Costs
Emulation is the most complete answer and the most expensive one. Running old software on a simulated older machine can preserve behavior that no rebuild will reproduce, because the emulator reproduces the instructions rather than translating them. For models whose results depend on exact floating-point behavior, that fidelity can be the whole point.
The price is ongoing attention. Emulators themselves depend on host systems, and an emulator that ran well a decade ago may need patching to run on current hardware. Each layer added to the stack is another layer that can fail, and the failure is often discovered only when someone tries to use the archive. A rough rule among digital preservationists is that the cost of keeping something runnable scales with the number of layers you must maintain, which is why full emulation tends to be reserved for a small set of high-value models rather than applied across a whole field.
There is also a documentation cost that no emulator removes. A model released without a record of its compiler flags, its library versions, or its expected output is hard to validate even when it runs. The run may succeed and still tell you nothing, because you have no baseline to compare against. Preservation of the environment and preservation of the evidence of what that environment produced are separate jobs, and archives have generally taken on only the first.
What a Reproducible Run Requires
A reproducible run needs more than a hash. It needs the compiler version and the flags used, the exact library versions, and a record of the hardware class if floating-point behavior matters. Those details are rarely in the paper and often missing from the repository.
Archiving a container alongside source is one practical answer, provided the container is tested on a schedule. A rebuild test every few years catches the slow drift before it becomes a crisis. Publishing expected output checksums lets a reader confirm that a rebuilt model produces the same numbers, not merely that it compiles.
Checksums have a limit worth naming. They confirm that a rebuild matches a stored baseline, but they cannot tell you whether the baseline was correct. A model archived with a bug in it will reproduce the bug faithfully, and the checksum will pass. Reproducibility is a statement about consistency, not about truth, and conflating the two is one of the quieter mistakes in the field.
The hardest part is cultural. Software is still treated as a byproduct of research rather than a citable artifact. Until a model release carries the same weight as a paper, the build environment will remain an afterthought, and the archive will keep filling with code that no one can execute.
Five Habits for Computational Authors
Assign a SWHID to every public release of a model, so readers can point to an exact version rather than a repository that may change. Freeze the build environment in a container or a documented script, and record compiler versions and flags in the same place as the source.
Store sample outputs with checksums, so a future rebuild can be compared against known results. Schedule a rebuild test every few years on a current system, and treat a failure as a finding worth reporting. Budget for archive maintenance at the start of a project, because the cost of keeping a model runnable outlives the grant that paid for it.