Preprint · 2026 · Open access

When to Remember: A Preregistered Study of Failure-Memory Delivery Timing in an LLM Coding Agent

Joshua S Warren

Zenodo (CERN European Organization for Nuclear Research) · Published 13 August 2026 · DOI 10.5281/zenodo.21922630

Open full textCite this paper

In brief

“When to Remember: A Preregistered Study of Failure-Memory Delivery Timing in an LLM Coding Agent” is a 2026 preprint by Joshua S Warren, published in Zenodo (CERN European Organization for Nuclear Research). OpenAlex counts 0 citations as of 1 December 2026. It is open access under a CC BY licence: the full text is free to read at Zenodo (CERN European Organization for Nuclear Research).

Citations
0
Authors
1

Abstract

Research on memory for LLM agents has concentrated on what to remember: what to store, how to consolidate it, and what to retrieve. This paper offers preregistered evidence that for failure memories, when and where the memory is delivered can matter more than what it says. On synthetic TypeScript repair tasks built around trap fixes, an open-weight coding model frequently repeated its own previously observed failure. A matched memory of that failure injected at turn start, the delivery point used by current memory systems, failed its registered support test and showed a worse task-pass estimate than an equivalent success memory. The identical fact evaluated against the agent's proposed action, as a just-in-time advisory, eliminated repetition of the known failure: a 35.6-percentage-point reduction (p = 0.0019), confirmatory on all 18 preregistered tasks with zero invalid rows and zero protocol deviations. Prevention did not become completion (+1.5 pp, interval touching zero): the mechanism removes a known failure mode rather than improving the agent overall. The design implication is architectural. Failure memories should be routed to the action site as advisory guardrails, not inserted into the prompt preamble. Our first registration returned NOT_ESTIMABLE under its own zero-cut rule; we report both registrations in full. The task corpus, harness, registrations, episode logs, and analysis artifacts are public and replay byte-for-byte. Task dataset: https://huggingface.co/datasets/joshuaswarren/h6-failure-gate-tasks Harness, registrations, and run artifacts: https://github.com/joshuaswarren/remnic/releases/tag/h6-study-2026-08

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Warren, J. S. (2026). When to Remember: A Preregistered Study of Failure-Memory Delivery Timing in an LLM Coding Agent. Zenodo (CERN European Organization for Nuclear Research). https://doi.org/10.5281/zenodo.21922630

MLA 9

Warren, Joshua S. “When to Remember: A Preregistered Study of Failure-Memory Delivery Timing in an LLM Coding Agent.” Zenodo (CERN European Organization for Nuclear Research), 2026. https://doi.org/10.5281/zenodo.21922630.

Chicago

Warren, Joshua S. 2026. “When to Remember: A Preregistered Study of Failure-Memory Delivery Timing in an LLM Coding Agent.” Zenodo (CERN European Organization for Nuclear Research). https://doi.org/10.5281/zenodo.21922630.

Harvard

Warren, J. S. (2026) ‘When to Remember: A Preregistered Study of Failure-Memory Delivery Timing in an LLM Coding Agent’, Zenodo (CERN European Organization for Nuclear Research). doi:10.5281/zenodo.21922630.

IEEE

J. S. Warren, “When to Remember: A Preregistered Study of Failure-Memory Delivery Timing in an LLM Coding Agent,” Zenodo (CERN European Organization for Nuclear Research), 2026, doi: 10.5281/zenodo.21922630.

BibTeX

@misc{warren2026when,
  title     = {{When to Remember: A Preregistered Study of Failure-Memory Delivery Timing in an LLM Coding Agent}},
  author    = {Warren, Joshua S},
  howpublished = {Zenodo (CERN European Organization for Nuclear Research)},
  year      = {2026},
  doi       = {10.5281/zenodo.21922630},
  url       = {https://doi.org/10.5281/zenodo.21922630}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Topic and keywords

Physical Sciences › Computer Science › Information Systems › Software Engineering Research

  • LLM coding agents
  • failure prevention

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Warren, J. S. (2026). When to Remember: A Preregistered Study of Failure-Memory Delivery Timing in an LLM Coding Agent. Zenodo (CERN European Organization for Nuclear Research). https://doi.org/10.5281/zenodo.21922630

How many times has this paper been cited?

0 times, according to OpenAlex on 1 December 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at Zenodo (CERN European Organization for Nuclear Research): sign in and open the full text from this page.

Who wrote this paper?

Joshua S Warren.

What is the DOI of this paper?

10.5281/zenodo.21922630, permanently at https://doi.org/10.5281/zenodo.21922630. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 1 December 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.