arXiv:2610.29758cs.SEOct 2026

Manuscript Offprint

arXiv:2610.29758

AssureCode: Structured Justification for Trustworthy Agentic Coding

Logan Murphy, Wilson Sy, Rhys Balevicius, Kelsie Fung, Karenna Kung, Aren A. Babikian, Marsha Chechik

LOGAN MURPHY, University of Toronto, Canada

WILSON SY, University of Toronto, Canada

RHYS BALEVICIUS, University of Toronto, Canada

KELSIE FUNG, University of Toronto, Canada

KARENNA KUNG, University of Toronto, Canada

AREN A. BABIKIAN, McGill University, Canada

MARSHA CHECHIK, University of Toronto, Canada

The use of AI-based tools in software development is rapidly changing how software is produced, enabling large volumes of code to be generated with limited human implementation effort. However, this raises fundamental challenges for ensuring that generated artifacts are aligned with developer intent and have been appropriately validated. In this work, we propose the use of structured argumentation in driving AI-assisted software development. Inspired by techniques from assurance engineering for safety-critical systems, we define a language of justification rationales that explicitly relate informal natural language prompts, formal specifications, assumptions about developer intentions, and program analysis evidence in a structured and verifiable format. We then describe ASSURECODE, a tool-supported methodology for creating such rationales as part of agentic code generation. We provide an empirical analysis of our implementation where we investigate its capacity to contribute towards justified assurance of correctness for AI-generated code.

CCS Concepts: • Software and its engineering → Software verification and validation; Formal methods.

Additional Key Words and Phrases: Agentic software engineering, trustworthy AI, assurance cases, formal methods

1 Introduction

The software engineering landscape is undergoing a radical transformation through the widespread use of LLM-based (“agentic”) tools as software development assistants [12]. These tools allow for large volumes of code to be rapidly generated, which has the potential to increase developer productivity. However, this scale of generation also raises the question of trust in the generated artifacts. In traditional software development, developers are directly involved in implementing their systems and can draw on their understanding of the development context and requirements to assess whether the resulting software is adequate. AI-assisted software development creates a greater separation between what the developer intends and what gets produced.

Accordingly, the role of human developers is evolving, with less emphasis on directly implementing code and more emphasis on specifying requirements, steering agentic tools, and evaluating their outputs. In order to have trustworthy code, we require a sufficiently clear and precise account of what the software is intended to accomplish (e.g., requirements and specifications), and we must have concrete evidence that the software satisfies particular properties (e.g., successful execution of tests). We must also have grounds for believing that this evidence is sufficient to establish alignment between the software artifact and the developer's intentions. Because of their centrality in establishing trustworthiness, offloading specification of intention and determination of evidence adequacy to agentic tools is more problematic than offloading the implementation of code. An

Authors' Contact Information: Logan Murphy, University of Toronto, Toronto, Canada, lmurphy@cs.toronto.edu; Wilson Sy, University of Toronto, Toronto, Canada, wilsons@cs.toronto.edu; Rhys Balevicius, University of Toronto, Toronto, Canada, balevicius@cs.toronto.edu; Kelsie Fung, University of Toronto, Toronto, Canada, kelsiefung@cs.toronto.edu; Karenna Kung, University of Toronto, Toronto, Canada, kkung@cs.toronto.edu; Aren A. Babikian, McGill University, Montreal, Canada, aren.babikian@mcgill.ca; Marsha Chechik, University of Toronto, Toronto, Canada, chechik@cs.toronto.edu.

Murphy et al.

agent may produce an internally consistent set of requirements, implementation, and tests while still failing to demonstrate alignment with what the developer actually intended. We therefore argue that trustworthy agentic development requires a disciplined notion of justification: an explicit and systematic account of reasons why the requirements, implementation, and evidence produced during development warrant trusting that the resulting software realizes the developer's intentions.

To this end, this work introduces a language of structured justification rationales, inspired by structured assurance cases developed for safety-critical systems [19, 29]. A justification rationale explicates not only the properties a program should satisfy and the evidence used to establish them, but also the additional issues that must be addressed to justify the adequacy of this evidence. We refer to these issues as collateral validation obligations [13]. A justification rationale makes explicit the reasoning connecting claims, evidence, and validation obligations needed to establish alignment between developer intent and generated artifacts. We then introduce ASSURECODE, a tool-supported methodology for constructing and using such rationales as part of agentic code generation, combining autoformalization, theorem proving, and agentic artifact generation.

Contributions. This paper makes the following contributions: (1) We define a formalism for justification rationales for code generation, analysis, and validation, inspired by assurance cases in safety-critical software engineering [29]. (2) We describe ASSURECODE, a tool-supported methodology for agentic software development based on the semi-automated construction and analysis of justification rationales. (3) We provide an empirical evaluation of our implementation of ASSURECODE, investigating its ability to identify relevant collateral validation obligations that should be reviewed by human developers before accepting AI-generated code.

References (29)