Is This Code Mine? Student Ownership When AI Agents Write the Spec and the Code
Gustavo Pinto, Enne Rebeca Silva de Freitas, Danilo Monteiro Ribeiro
Abstract
Software engineering courses are starting to ask students to build entire systems with AI coding agents, but little is known about what students actually do with them and whether they still own what they deliver. If the agent writes both the code and the decisions behind it, the artifacts we grade no longer show what students learned. We studied an assignment in which 18 pairs of students built applications with agents under Spec-Driven Development, combining the mined history of their repositories, the prompts they recorded, and a survey of 33 students. The agents wrote 69\% of the specifications meant to keep students in control, sometimes from a prompt of a few words. Students locate their ownership in the ideas, crediting themselves with half of them but a fifth of the code, yet most could not explain that code to a colleague or modify it without the agent, and what they report having written is unrelated to what their own commits declare. The three teams that met the 100,000-line target did so with generated code the application never uses, in one case proposed by the agent itself, and one team rewrote its history to backdate its specifications. Teaching with agents should therefore assess what students specify, review, and can explain, rather than what they ship, and enforce the engineering process with tools rather than trusting it to students or agents.
Create a lesson
Related papers
Can Coding Agents Write and Transpile Unit Tests
Shared title terminology · Gil Pasternak, AJ Langley, Tom Yotam et al.
Reliable Mining of Heterogeneous AI Coding-Agent Data: Context-Aware Prediction and Resource-Aware Ranking
Shared title terminology · Haoran Yu, Lifei Liu, Danping Zhang
Spec-Driven PBT: Deriving Semantic Invariants from Code Specifications for Agentic Property-based Testing
Shared title terminology · Aditya Shukla, Kartik Gupta, Ali Alavi et al.
Outcome Over Learning? Evidence from Student Use of AI Code Assistants for Unit Test Writing
Shared title terminology · Daniel Hinbest, Jeremy S. Bradbury, Michael A. Miljanovic
Markdown Is Not a Firewall: four coding agents, one rules file, four boundaries
Shared title terminology · Sandeep Dhuri
How developers split roles among them and a coding agent and what "collaboration" means
Shared title terminology · Linus Ververs, Helya Dadkhah, Lutz Prechelt