Erosion of Code Ownership in AI-Assisted Programming: An Empirical Study of Developer’s Perspective
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesis
Abstract [en]
Background. AI-assisted programming tools built on large language models have become increasingly common in software development. As a consequence, developers increasingly work with code that they select, review, and accept rather than write entirely themselves. Code ownership, including responsibility for a software component and accountability for its outcomes, has traditionally been studied through repository-based measures such as contribution frequency, file-level ownership, and the bus factor. These measures record who committed code, but they cannot capture whether developers perceive themselves as responsible for, or understand, code produced with AI assistance. Whether developers perceive an erosion of code ownership in AI-assisted environments has received limited empirical attention, as existing research has largely focused on measurable outcomes such as productivity and code quality.
Objectives. This thesis investigates how AI-assisted programming relates to developers’ perceived code ownership (responsibility, authorship, and accountability) and their engagement with code (understanding, review, and maintenance).
Methods. A cross-sectional survey was conducted with 83 respondents (from 96 raw responses), of whom 73 were software practitioners and 10 were students or academic researchers. The instrument measured nine ownership items and fifteen engagement items using five-point Likert scales. Relationships were analysed using Spearman rank correlations and non-parametric group comparisons (Kruskal–Wallis and Mann–Whitney).
Results. Perceived responsibility was high (M = 4.37 of 5, 87–95% agreement) and showed no significant association with AI reliance (ρ = −0.01 to −0.16). Authorship and achievement were positively associated with usage frequency and code share (ρ = 0.36 and 0.39, both p < .001). All six engagement composites correlated negatively with AI exposure and positively with experience (24 of 30 coefficients significant). Understanding showed the strongest relationship (ρ = −0.44, p < .001); developers with ≥ 60% AI-generated code scored significantly lower than those with ≤ 40% (r = 0.51, p = .002).
Conclusions. Perceived code ownership does not behave as a single construct. Responsibility was high, while understanding and engagement were lower among heavier AI users. Developers report high responsibility for code they report understanding less well, a difference not captured by traditional repository-based ownership measures. These findings establish associations, not causation.
Place, publisher, year, edition, pages
2026. , p. 74
Keywords [en]
Code Ownership, AI-Assisted Programming, Developer Perspective, Software Engineering, Artificial Intelligence.
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:bth-30680OAI: oai:DiVA.org:bth-30680DiVA, id: diva2:2114258
Subject / course
PA2534 Master's Thesis (120 credits) in Software Engineering
Educational program
PAASW Master's Programme in Software Engineering 120,0 hp
Supervisors
Examiners
2026-11-022026-10-312026-11-02Bibliographically approved