When Code Works but the License Doesn't: Evaluating License Constraint Handling in Coding Agents
Abstract
Coding agents increasingly undertake repository-level development, including dependency selection, source modification, and software deployment. However, existing evaluations prioritize functional success over licensing correctness and commercial suitability. We investigate whether agents recognize and preserve software-license constraints when developing proprietary software. Experiments across multiple agents examine permissive and copyleft licenses, missing licensing information, transitive dependencies, source modification, dual licensing, vendoring, and distribution contexts. Agent traces, repository changes, and final artifacts are evaluated against licensing ground truth. Results reveal a persistent gap between functional and licensing correctness. Agents can successfully build and test software while overlooking licensing constraints involving provenance, authorization, and distribution. Better outcomes emerge when licensing information translates into engineering actions such as dependency substitution, architectural changes, and release gating. We argue that licensing in agentic development requires contextual constraint recognition and preservation across the software lifecycle, not merely license classification.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI, cs.ET
- Comments
- Accepted at the NeurIPS 2026 VeriCode Workshop
Related papers
SpecEngineeringBench: Evaluating Coding Agents as Autonomous Specification Engineers
Shared title terminologycs.SEXingjian Wang, Shijian Wang, Minghao Liu et al.
RepoClean: Evaluating Coding Agents on Repository-Level Obsolete Code Cleanup
Shared title terminologycs.SEHongyixuan Yuan, Qixing Zhou, Pengcheng Huang et al.
Characterizing and Detecting Unfaithful Work Reports by Coding Agents
Shared title terminologycs.SEWenhao Yang, Runzhi He, Minghui Zhou et al.
JoyFrontBench: Evaluating Front-End Coding Agents through Goal-Oriented Acceptance Contracts
Shared title terminologycs.SEXiaoyi Qiao, Yicheng Wang, Jianan Lin et al.
Take It From Here: Evaluating Coding Agents On Project Takeover
Shared title terminologycs.SEDingxian Wang, Zhe Fu, Jiaqi Deng et al.
Trace2Eval: Contextualized Evaluation of Coding Agents from Real-World Traces
Shared title terminologycs.SEJi Shi, Lirong Jie, Lexiao Zou et al.