My Git History Cannot Tell You How the AI Helped, and That Is the Problem

12 minute read

Published:

Git faithfully kept every snapshot of my code and still cannot answer the one question journals now ask me, which is how artificial intelligence (AI) helped do the work, where AI means software that can draft text and code, follow instructions across a session, and revise files on my behalf.

Author: Koutian Wu; GitHub: ktwu01

Publishers and funders increasingly ask authors to disclose how AI tools contributed to a piece of research, and the policies are specific about where that statement sits in a paper. They are much quieter about where its content is supposed to come from, especially when the work happened months earlier. So my coauthors Zesen Huang, Hejia Geng, and I asked what a repository like that can actually supply. The result is our paper, What Git Does Not Record, accepted at the NeurIPS 2026 Workshop on AI-Native Academia. NeurIPS is the Conference on Neural Information Processing Systems, a large annual meeting for machine learning research, and this workshop covers authorship, peer review, and conference governance under AI.

A repository records a narrow thing. It holds snapshots of a file tree, each carrying a name, an email address, two timestamps, and a free text message, all supplied by the person committing and none of it verified. That is a record of states, not of decisions. It shows the code after I decided what to keep. It does not show the suggestion I accepted unchanged, the draft I rewrote, or the context a model was shown when it produced a paragraph I later kept. The judgment and the AI contribution both happened between snapshots, in exactly the space Git never sees.

We audited two repositories of mine, and the design matters for what we can claim. Both are single investigator projects by the same author, me, in the same field, the environmental sciences. Everything else differs, and we manipulated none of it, so no difference we report can be credited to a tool alone. This is a comparison of two cases, not a controlled experiment.

What makes the two comparable is not their research content. It is the leftover artifact each agentic tool maintained inside the repository to carry state between sessions. We call that artifact the AI trace, and an auditor would read it first because it is the closest thing to a contemporaneous record of AI involvement that an ordinary repository contains. In Project A, the larger repository with 466 commits, the trace is prescriptive, a directory of standing rule files holding instructions the agent is meant to follow on future work. In Project B, with 103 commits, the trace is narrative, a single running scratchpad file tracked at .cursor/scratchpad.md that holds plans, findings, and status and gets rewritten as work proceeds. One trace stores conclusions for the future, the other stores episodes as they happen. I had assumed the episode one would simply be the better record, and the measurement disagreed with me in an interesting way.

We measured legibility, and we gave that word a specific meaning. Provenance is the account of where something came from and who or what produced it, and provenance legibility is how much of that account a reader can recover from what the repository shows at its current revision. For each trace we added up every line ever committed to it, then compared that total with the lines still present at the revision we fixed for the census. The two traces are legible in opposite ways. For the prescriptive trace, 85.6 percent of the lines ever committed are still visible now, where that percentage is the 1915 lines present at the census revision divided by the 2236 lines ever committed. For the narrative trace, only 21.8 percent are still visible, where that percentage is the 335 lines present now divided by the 1537 lines ever committed. The narrative trace churned, growing by a net 335 lines across its 39 revisions while absorbing 2739 lines of change, the signature of a document rewritten in place. Nothing was lost in storage, since Git kept the removed lines for anyone who walks the history of the file. It just does not show them to anyone who opens the file, and opening the file is what a reader does.

The prescriptive trace has the mirror image problem. It accumulates, so most of its lines stay on screen, but the lines are rules, and a rule states a conclusion while discarding the episode behind it. When we tried to reconstruct why any given rule in Project A exists, working from the trace alone the way an auditor would have to, the trace gave us the text of the rule and its commit date and nothing about the failure that motivated it. We coded each rule for where it came from, how a human reviewed it, and how strong the evidence was, and the result was uniform. Origin was unknown for every rule, review state was not observed, and the evidence for why a rule exists reached inference at best. So the artifact that records the process does not show it, and the artifact that shows itself does not record the process. Both sat in my own repositories the whole time, looking like documentation.

Counting by revision makes the contrast stranger. We used git blame, the Git command that reports which commit last wrote each visible line, to ask which revisions still contribute a line a reader can see. Counted that way, 15 of the 41 revisions of the prescriptive trace leave no visible line at all, and 18 of the 41 revisions of the narrative trace leave none either. Both artifacts are top heavy, and in Project A the newest 3 revisions supply half of everything visible. The traces are also unusual in their own neighbourhoods, since the rule directory sits at the 87th percentile of 174 files in Project A and the scratchpad sits at the 99th percentile of 88 files in Project B, the second most overwritten text file there, while the median file in both repositories is fully visible. Asking for the history is itself a trap, because the rule directory in Project A was renamed partway through its life, and the number of revisions you find varies by a factor of 5.9 depending on how you ask, while the apparent start date shifts by 228 days.

The commit log, where an automated audit would look first, fares worse than either artifact. Git trailers are the key and value lines at the end of a commit message, and Co-Authored-By is the trailer that became the AI disclosure field by convention, because well known agentic tools write it. In Project A that trailer names an AI identity on 66 of the 466 commits, where 66 divided by 466 is 14.2 percent. In Project B it appears on 1 of the 103 commits, where 1 divided by 103 is 1.0 percent. Read naively, those rates suggest Project A involved roughly fourteen times as much AI as Project B, and that reading falls apart inside either repository. In Project A, Co-Authored-By is only one of three trailer keys whose value names an AI system, the others being Made-with on 55 commits and Claude-Session on 2 commits, and together they cover 121 of the 466 commits, where 121 divided by 466 is 26.0 percent. An audit reading only the famous key misses 55 of those 121 disclosing commits, where 55 divided by 121 is 45.5 percent, silently.

We do not isolate the cause of the patterns below, and the paper says so plainly, since neither repository records tool settings over time. Project B gives the cleaner test, because it contains its own yardstick. Thirty nine commits revise the scratchpad file the project maintained to hold the working notes of the agent, so those commits are an explicit, if imperfect, sign of contemporaneous agent activity inside the same repository. Of those 39 commits, exactly 1 carries the AI trailer, where 1 divided by 39 is 2.6 percent. The other 38 revisions of the agent’s own notebook say nothing. In Project A the same comparison over the rule files gives 5 of 15 commits carrying the trailer, where 5 divided by 15 is 33.3 percent. What survives is narrower and still serious. A rate read off a commit log is a rate of commits that say so, and no evidence inside the repository converts it into a rate of commits a model helped write.

The rate is not even stable inside one project. In Project A, through December 2025 the trailer appears on 3 of 111 commits, where 3 divided by 111 is 2.7 percent, and afterwards it appears on 63 of 355 commits, where 63 divided by 355 is 17.7 percent, a factor of 6.6 between the two stretches. We found that boundary by inspecting the monthly series rather than choosing it in advance, and the repository has no commits in January 2026, so the step coincides with a silent month. Even the identity inside the trailer is slippery, with 6 distinct values across the 66 disclosing trailers in Project A, for at most four models. The strings tell you which software was open, not how much I leaned on it.

We also worked through the fields a disclosure statement would need, one by one. Some are recoverable, like who the committer claims to be, though that is self asserted. Some are partial, like the identity of a model, which survives only as free text inside a trailer. Several are absent, since nothing distinguishes a line accepted unchanged from a line I wrote myself, and nothing records what context the model was shown.

All of this rests on a choice so small it is easy to miss. Neither trace artifact is excluded from version control by a gitignore rule, which is the list of patterns telling Git which files to leave untracked, and we verified that rather than assuming it. Excluding them takes a one line edit that neither tool prompts for and neither warns against. Had that edit been made before the first commit of the artifact, every number in the paper would be zero. Provenance here survived by accident.

So what would a system need if it wanted to record research provenance as it happens. The paper derives its requirements field by field from the gaps above. The accept event itself has to be recorded, not just the result after it, because whether a human modified model output is the line between assistance and authorship. The field saying a model was involved has to be separate from the field naming the tool, both need fixed names no tool is free to invent, and there has to be a defined value for not recorded, so silence is not read as absence. A narrative record has to be presented as a series rather than merely stored in history, the decision to track the trace has to be explicit when the artifact is created, and records have to bind to history rather than to file paths, so a rename does not cut the record in half. It needs capture at the moment of the work, instead of reconstruction months later from snapshots never designed for the job.

We studied two repositories and one author, and we built an auditable evidence ledger behind every number so anyone can regenerate the measurements rather than take our word for them. What two cases can show is existence. A repository can hold a large record and present a small one, and a disclosure field can vary sixfold inside one person’s history. Until the relevant facts are captured as they happen, a repository can constrain a provenance claim, but it cannot establish one. When a journal asks me how AI contributed to my research, the honest answer today is that I know more than my repository does, and my repository knows less than everyone assumes. The paper is on arXiv at https://arxiv.org/abs/2610.28655, and I would rather we fixed the recording than kept polishing the excavation.