ADR-Control: Do LLM Coding Agents Follow Architectural Decisions? An Evaluation of ADR-Grounded Code Generation

Pham The Phong, Phan Duy Hung


Abstract

Large language models can generate code at repository scale, but they frequently violate architectural intent even when relevant design decisions are available as context. This gap mirrors a broader faithfulness problem in natural language generation: models retrieve correct evidence yet fail to apply it faithfully in their outputs. We propose ADR-Control, a framework that elevates Architecture Decision Records (ADRs) from passive documentation to active control artifacts through retrieval, constraint normalization, verification, and typed trace emission. We evaluate one bounded component of this framework: canonical ADR-constraint violation identification on fixed candidate patches under four reviewer-context conditions across five tasks from one .NET repository. Across two canonical repetitions, Structured-ADR context achieves mean canonical identification F1 of 0.746 ± 0.145, compared with 0.675 ± 0.194 for ADR-prose context. This result provides pilot evidence for bounded ADR-grounded constraint identification; it does not establish end-to-end generation superiority, verifier-gated repair success, executable correctness, or generalization beyond the pilot.

Anthology ID:
2026.inlg-long.15
Volume:
Proceedings of the 19th International Natural Language Generation Conference: Long Papers
Month:
October
Year:
2026
Address:
Utrecht, The Netherlands
Editors:
Guanyi Chen, Laura Perez-Beltrachini, Emiel van Miltenburg
Venue:
INLG
SIG:
SIGGEN
Publisher:
Association for Computational Linguistics
Note:
Pages:
301–309
Language:
URL:
https://aclanthology.org/2026.inlg-long.15/
DOI:
Bibkey:
Cite (ACL):
Pham The Phong and Phan Duy Hung. 2026. ADR-Control: Do LLM Coding Agents Follow Architectural Decisions? An Evaluation of ADR-Grounded Code Generation. In Proceedings of the 19th International Natural Language Generation Conference: Long Papers, pages 301–309, Utrecht, The Netherlands. Association for Computational Linguistics.
Cite (Informal):
ADR-Control: Do LLM Coding Agents Follow Architectural Decisions? An Evaluation of ADR-Grounded Code Generation (Phong & Hung, INLG 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.inlg-long.15.pdf