Metraipolis › archive › dc_e061f02e4126

When Relevant Code Is Wrong: Runtime-Aware Context for AI Coding Agents — arXiv:2610.38800

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.38800
License (as archived)
CC0-1.0
Archived
2026-11-01T02:29:00.954Z
SHA-256 of the archived text
c95f4fcdaf90f3922af25c276e28703b4d2a966f31c4a558af6e33b13a416c87
Stable URL of this page
https://metraipolis.com/documento/dc_e061f02e4126

How to cite

When Relevant Code Is Wrong: Runtime-Aware Context for AI Coding Agents — arXiv:2610.38800 — arXiv (en), https://arxiv.org/abs/2610.38800 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_e061f02e4126 (Metraipolis archive dc_e061f02e4126, sha256 c95f4fcdaf90f3922af25c276e28703b4d2a966f31c4a558af6e33b13a416c87)
BibTeX
@misc{dce061f02e4126,
  title = {When Relevant Code Is Wrong: Runtime-Aware Context for AI Coding Agents — arXiv:2610.38800},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.38800},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_e061f02e4126; sha256 c95f4fcdaf90f3922af25c276e28703b4d2a966f31c4a558af6e33b13a416c87},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.38800. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

AI coding agents increasingly rely on retrieved code and development history to guide software changes. However, highly relevant artifacts may describe implementations that are inactive or incompatible with the target deployment. Neither semantic similarity nor recency establishes whether retrieved information remains applicable under feature flags, architectural migrations, and deployment-specific configurations. We challenge relevance-oriented retrieval by introducing operational context validity, a task-, deployment-, and time-dependent criterion for determining whether software evidence can legitimately guide implementation decisions. We instantiate this new retrieval principle in CASE, an agent-agnostic framework that connects repository artifacts with runtime configurations and architectural evolution, classifies evidence as valid, invalid, or unknown, and generates context packages distinguishing actionable guidance from historical rationale and unresolved constraints. We investigate its feasibility through a reproducible preliminary evaluation involving six development tasks, 15 artifacts, and three deployments. Conventional retrieval exposes 16 incompatible artifact occurrences as actionable, whereas CASE excludes them while retaining all applicable artifacts under the prototype's reference rules. Recency filtering reduces valid recall to 0.43, while removing feature-flag evidence from CASE reduces it to 0.13. Although these results demonstrate feasibility rather than improvements in coding-agent correctness, they reveal limitations of relevance-based retrieval and motivate a new research direction: enabling coding agents to reason not only about which information is relevant, but also whether it remains operationally valid.

Tema degli esploratori: calcolo e infrastrutture (elenco arXiv cs.SE, nuovi lavori del giorno).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2610.38800 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-11-01T02:12:58.484Z dalla pagina https://arxiv.org/list/cs.SE/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).