Skip to content

TraceCoder: Explainable and Auditable Code Generation with Position-Key Snippet Versioning

Jul 2026 · arXiv.org · Vol abs/2607.26307 · 0 citations · 25 references
Computer Science

TL;DR

The proposed mechanism makes the internal narrative of automated code generation auditable and replayable, a property essential for trust and accountability in production deployments, a property essential for trust and accountability in production deployments.

Abstract

Contemporary LLM-based coding agents produce code as black-box outputs: the rationale behind each line is hidden, the evolution of the code through benchmark-driven repair is ephemeral, and post-hoc auditing is impossible. We present a code generation concept that addresses these shortcomings through three complementary mechanisms: (i) a relational snippet-history schema that records, per repair event, the benchmark reference, round number, failure text, and LLM explanation, enabling full provenance queries; (ii) a browser-based visualisation tool that renders this history as heat-mapped, hover-annotated source code; and (iii) a competitive fractional position-key indexing scheme with tree-node delimiters that assigns stable, lexicographically-ordered identifiers to each code snippet, enabling fine-grained tracking without disrupting surrounding lines. We evaluate TraceCoder on 30 algorithmic programming tasks spanning string processing, mathematical computation, and data-structure manipulation, across two provider configurations. Of these, 10 exhaust the 6-iteration budget on tasks with subtle edge-case behaviour. Mean Chg% reaches 30%, three in ten code snippets carry a traceable repair-event row, compared to 21% when using Gemini 2.0 Flash as sole provider on a 20-task subset. Three detailed case studies demonstrate how the system explains which specific benchmark failures shaped each line of the final program. The proposed mechanism makes the internal"narrative"of automated code generation auditable and replayable, a property essential for trust and accountability in production deployments.

View source

Similar papers

Review Open access Sep 2026

CodeMergeR: A Shiny‐Based Application for Codelist Integration

ABSTRACT Objective To describe CodeMergeR, an open‐source R shiny application developed within the VAC4EU network for the standardization, cleaning, and integration of individual concept codelists into a master file for real‐world evidence (RWE) studies. Materials and Methods CodeMergeR was designed to process codelist...

V. Hoxhaj, J. Riera-Arnau, Sima Mohammadi et al. · 0 citations
Book Open access Oct 2026

From Bytes to Semantics: LLM-Agent-Driven Commit Message Generation for Non-Code Assets

Modern software projects increasingly version binary assets alongside source code—files that encode semantic logic authored by engineers yet are stored as opaque blobs by version control systems. Such assets appear across diverse domains: gameplay logic in game engines, circuit designs in EDA tools, and scene hierarchi...

Li-Ran Wang, Zhou-Jun Li · 0 citations
Preprint Sep 2026

TraceLib: System-Call Bitmap Feedback Mechanism for Language-Agnostic Web Fuzzing

Coverage feedback is an important source of guidance for fuzzing. However, obtaining such feedback normally requires application-level instrumentation that is specific to the language and runtime of the application. Given that modern web applications span multiple languages and runtimes, this application-level instrume...

I. P. A. Dharmaadi, Elias Athanasopoulos, Fatih Turkmen · 0 citations
Preprint Oct 2026

SCCGBench: Executability-Oriented Evaluation for Real-World Web Service-Call Code Generation

LLM-generated service-call code is increasingly important for service computing, where developers rely on large language models (LLMs) to compose services and invoke third-party services. However, current approaches have not yet evaluated the invocation and execution of services in the actual code environment. To suppo...

Shuo Wang, Guo-Dong Fan, Ming Zhu et al. · 0 citations
Open access Aug 2025

SynthCoder: Anti-pattern identification and model training for FIM mode code completion

This work introduces SynthCoder, which adopts optimized masking strategies better aligned with developer’s expectation in FIM, and first refine AST-level node masking and add heuristics that better mimic developers’ expectation to construct the training corpora.

Dong-Jun Yu, Xiao Yan, Zhen-Rui Li et al. · 1 citation
Book Open access Oct 2026

Preserving Model-to-Code Traceability During LLM-Based Code Generation

Large language models (LLMs) are increasingly used for model-to-code generation, but they weaken one of the central properties of model-driven engineering: traceability between design models and generated implementation artefacts. Existing approaches either rely on deterministic transformations, where trace links can b...

Marc North, Nelly Bencomo, Amir Atapour-Abarghouei · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.