arXiv
AI provenance starts before Git history
Git history cannot reliably explain how AI contributed to research because it records saved files, not the moments when people accept, change, or reject an AI suggestion. The paper audits two repositories and finds that one common AI label would have missed 55 of 121 commits carrying an AI-naming label. If editors and coding agents record those events as they happen, a university researcher could open a reviewable disclosure panel instead of rebuilding the story from memory.
Months after an AI-assisted research project ends, an author may be asked to say which parts came from an AI tool. The usual evidence is a Git repository: a timeline of saved versions, plus messages written by the people who saved them. But that timeline is not a diary. It cannot show an AI suggestion that was accepted without changes, the prompt that produced it, or the steps between two saved versions.
What Git remembers
Git is a tool for keeping versions of files. When someone commits work, Git records a snapshot and some information supplied by the user. It does not normally record how each line was produced.
Some projects add short labels to commit messages. These are called commit trailers: free-form key-value fields that people use by convention. An AI Co-Authored-By label might suggest that an AI tool was involved. But it is not a universal record of what the tool did, and the label can be absent even when AI helped.
A current file can hide earlier text without erasing it from Git. Finding that old text means searching through the project’s history. That makes the record even less like a ready-made account of the work. It is evidence that someone must reconstruct later.
This matters because publishers and funders increasingly ask researchers to describe how generative AI contributed to their work. A precise-looking percentage based on commit labels may sound useful while answering the wrong question: not what happened during the work, but what someone chose to mark afterward.
The paper audits two environmental-science repositories made by the same single investigator. They differ in their research subjects, periods, tools, and phases of work, so the authors do not claim that one tool alone caused the differences.
Project A had 466 commits and used standing rule files as its AI trace. At the census revision, 1,915 of the 2,236 lines ever added to that trace were still visible. Project B had 103 commits and used a versioned Cursor scratchpad. Only 335 of its 1,537 inserted lines remained visible in the current file; another 1,202 lines survived only in Git history.
That is the central problem. A researcher looking at the present-day checkout would miss much of the record. A researcher looking only at labels would miss other parts. In Project B, 39 commits revised the scratchpad, but only one carried an AI Co-Authored-By trailer. In Project A, 66 commits carried that trailer, while 121 carried one of three AI-naming trailer keys. Using only the common Co-Authored-By label would have missed 55 of those 121 commits.
Recording the moment instead
The proposed change is not a smarter way to search old Git logs. It is to record the human–AI interaction when it happens.
An editor or coding agent could capture an acceptance event: the moment a researcher accepts a suggestion. It could also record which tool was used, keep an append-only session record, and separate the fact that an agent was involved from the identity of that agent. A session would then read less like a pile of snapshots and more like a series of events: a suggestion appeared, a person accepted or changed it, and the file later moved or was rewritten.
The record would need to remain visible after files change. It would need common fields, deliberate tracking, and a way to follow renamed files. Self-reported dates could also be checked against the repository’s history. These steps would not turn Git into a complete memory of research; they would place the missing evidence alongside the work instead of asking someone to recover it months later.
A disclosure that is already there
In a university lab, a researcher submitting a computational paper could open a disclosure panel that already lists the agent sessions, accepted suggestions, edits, and tools connected to the analysis. Instead of searching old commits and trying to remember what happened, the researcher could review a record made during the work. Editors, reviewers, and research-integrity teams could examine the process behind a declaration rather than relying on an unexplained percentage.
That future depends on coding agents, editors, and research tools recording these events in a standardized form that remains reviewable. Without that shared record, AI-use disclosures will still be assembled from incomplete snapshots, disappearing traces, and memory. The missing technology is therefore not a better Git audit. It is a trustworthy provenance record that begins before Git history does.
Sources
arXiv, “What Git Does Not Record: Provenance Legibility in Two AI-Assisted Research Repositories”