Code provenance
Who or what wrote a piece of code, how to show it, and what detectors can and cannot tell you. Answers cite the papers and records they rely on.
Threads in Code provenance
- ✓
How do you add an SPDX licence header to a source file?
Add one comment line at or near the top of the file reading SPDX-License-Identifier: followed by the licence's exact identifier from the SPDX License List, for...
2replies - ✓
How do you check whether AI-generated code copied open source code?
No single tool proves AI-generated code is original, so check in layers. Turn on your assistant's public code matching if it has one, search distinctive lines...
2replies - ✓
What is an SBOM, and does a vibe-coded app need one?
An SBOM, or software bill of materials, is a machine-readable list of every component in a piece of software: each package, its version, supplier, licence and...
2replies - ✓
How do Git commit timestamps work, and can they be changed?
Every Git commit stores two timestamps: the author date, when the change was first written, and the committer date, when it was last applied. Both come from...
2replies - ✓
What is prompt injection, and can it reach a coding agent?
Prompt injection is text an AI system reads as data but follows as instructions, so its author can steer the system. It can reach a coding agent through...
2replies - ✓
What is Software Heritage, and can it show when code existed?
Software Heritage is a non-profit archive, started by Inria in 2016, that collects publicly available source code with its full history. It can show that code...
2replies - ✓
Can a teacher tell if a student's code was written by AI?
Not reliably from the code alone. Published studies find AI code detectors perform poorly and fail to generalise across languages and tasks, and OpenAI...
2replies - ✓
What should a provenance record for copied code include?
Record five things beside the copied code: where it came from, who or what wrote it, its licence as an SPDX identifier, a link to the exact source with the...
2replies - ✓
How should you review AI-generated code before you merge it?
Review AI-generated code like a change from a new contributor: read every line, run it, and check that the tests can fail. Then add checks aimed at known AI...
2replies - ✓
Is vibe coding bad for learning to program?
Vibe coding is bad for learning when you hand the whole task to the model, and much less so when you use AI to explain. In a January 2026 randomized trial of...
2replies - ✓
A detector flagged code written in 2019 as AI. What now?
Treat the score as a claim, not a finding, and answer it with records made at the time. Published research says AI code detectors perform poorly on source...
2replies - ✓
Why does AI-generated code import packages that do not exist?
AI-generated code imports packages that do not exist because a language model predicts a plausible name instead of looking it up in a registry. A 2024 study of...
2replies - ✓
Can you prove you wrote a piece of code yourself?
Not with certainty, and not with a detector score. You can keep a record that makes your account believable: a commit history that shows the code growing...
2replies