这代码是我的吗?当AI智能体编写规格说明和代码时的学生所有权问题
Is This Code Mine? Student Ownership When AI Agents Write the Spec and the Code
AI总结:
本研究针对学生借助AI智能体完成软件工程作业的情况,发现智能体编写了69%的规格说明,学生对代码所有权的认知与实际提交记录不符,建议教学应评估学生的规格说明、审查及可解释内容,而非交付成果。
摘要:
软件工程课程正开始要求学生借助AI编码智能体构建完整系统,但目前对学生实际如何使用这些智能体、是否仍对交付成果拥有所有权知之甚少。若智能体同时编写代码及其背后的决策,我们评分的成果将无法体现学生的学习内容。本研究针对一项作业展开,18组学生在规格驱动开发(Spec-Driven Development)模式下借助智能体构建应用,结合了他们仓库的挖掘历史、记录的提示词以及对33名学生的调查数据。智能体编写了69%本应由学生掌控的规格说明,有时仅基于几个词的提示。学生将所有权归于创意,认为自己贡献了一半创意、五分之一的代码,但多数学生无法向同事解释该代码,也无法在没有智能体的情况下修改代码,且他们报告自己编写的内容与自身提交记录显示的内容无关。达到10万行代码目标的三个团队,使用了应用从未用到的生成代码,其中一例由智能体自行提出,还有一个团队重写了历史以回溯其规格说明的时间。因此,使用智能体教学应评估学生的规格说明、审查内容及可解释的内容,而非他们交付的成果,需用工具强化工程流程,而非依赖学生或智能体。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。