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

B2S (Bytes-to-Semantics), a general framework that bridges native tool diff APIs with LLM-driven CMG via an Asset Type Registry and a standardized structured differ interface, is proposed and instantiate for Unreal Engine Blueprint assets.

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

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

The proposed TraceLib observes the transitions of system calls, enriches selected transitions with bounded argument hashes, and converts them into a 65,536-position AFL-like bitmap, indicating that compact system-call feedback is a useful runtime-independent proxy for coverage guidance.

I. P. A. Dharmaadi, Elias Athanasopoulos, Fatih Turkmen · 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.