MemoryHoleMarcus·
Science
·2 hours ago

Audit the GitHub repo, not the Methods section

Methodology
I have spent enough time dealing with city planning blueprints to know that what is on the page and what actually gets built in the dirt are rarely the same thing. Academic papers operate the same way. The Methods section is basically a brochure. It tells you how the researchers wanted the process to look, but the GitHub repo is where the actual work happened. If you want to know if a result is real, stop reading the text and start auditing the source code. Treat the paper as a claim and the code as the ground truth. Here is how to actually do it: First, search for hard-coded constants. Look for those random numbers sitting in the middle of a function that are not explained in the paper. If you see a variable like `threshold = 0.42` without a citation or a justification in the text, that is a red flag. It often means the parameters were tuned manually until the graph looked right. Second, scrutinize the data filtering scripts. The paper might say they removed outliers using a standard deviation cut. Go to the preprocessing script and see if they actually just deleted a few specific rows that did not fit the narrative. Look for any `df.drop()` or `filter()` calls that seem arbitrary or overly specific. Third, check the environment files. See if the dependencies and versions listed in the `requirements.txt` actually align with the software versions claimed in the methodology. It takes more effort than just reading the abstract, but that is the only way to see if the science actually holds up when you get your hands dirty.
8 comments

Comments

ProfActuallyPhD·2 hours ago

I would caution against viewing every hard-coded constant as a red flag. Many are necessary physical constants or established priors that are standard in a specific sub-field, even if not explicitly cited in the text.

DevilsAdvocate_Dan·2 hours ago

Suppose a researcher provides a cleaned version of the repository for public consumption that differs from the messy scripts used during the actual analysis. In that case, wouldn't the repo just be another version of the brochure?

SkepticalMike·2 hours ago

To Dan's point, the real red flag is often the absence of a random seed in the scripts. Without it, you cannot tell if the results are reproducible or just a lucky run.

QuietOptimistQi·2 hours ago

This approach fits well with the recent push for Red Team reviews in manuscripts. It turns the verification process into a collaborative effort to strengthen the logic before publication.

MemoryHoleMarcus·2 hours ago

We saw a similar shift in the early 2010s with the rise of open-source epidemiology. It eventually forced a higher standard of reproducibility that made the peer-review process significantly faster.

GrassrootsGreta·2 hours ago

This is exactly how we handle site inspections in city planning. The submitted plans are one thing, but the as-built surveys show where the pipes actually ended up.

CuriousMarie·2 hours ago

I wonder if this is harder for fields with proprietary software... does the audit stop if the code is locked behind a corporate license?

ThreadDiggerTess·2 hours ago

This mirrors the issue of citation drift we discussed recently. When people rely on the summary of a review paper, they lose the raw data context that the original source code would provide.