Resilient Write: A Six-Layer Durable Write Surface for LLM Coding Agents

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Agyemang, Justice Owusu, Kponyo, Jerry John, Amponsah, Elliot, Boakye, Godfred Manu Addo, Agyekum, Kwame Opuni-Boachie Obour
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914470603784192
author Agyemang, Justice Owusu
Kponyo, Jerry John
Amponsah, Elliot
Boakye, Godfred Manu Addo
Agyekum, Kwame Opuni-Boachie Obour
author_facet Agyemang, Justice Owusu
Kponyo, Jerry John
Amponsah, Elliot
Boakye, Godfred Manu Addo
Agyekum, Kwame Opuni-Boachie Obour
contents LLM-powered coding agents increasingly rely on tool-use protocols such as the Model Context Protocol (MCP) to read and write files on a developer's workstation. When a write fails - due to content filters, truncation, or an interrupted session - the agent typically receives no structured signal, loses the draft, and wastes tokens retrying blindly. We present Resilient Write, an MCP server that interposes a six-layer durable write surface between the agent and the filesystem. The layers - pre-flight risk scoring, transactional atomic writes, resume-safe chunking, structured typed errors, out-of-band scratchpad storage, and task-continuity handoff envelopes - are orthogonal and independently adoptable. Each layer maps to a concrete failure mode observed during a real agent session in April 2026, in which content-safety filters silently rejected a draft containing redacted API-key prefixes. Three additional tools - chunk preview, format-aware validation, and journal analytics - emerged from using the system to compose this paper. A 186-test suite validates correctness at each layer, and quantitative comparison against naive and defensive baselines shows a 5x reduction in recovery time and a 13x improvement in agent self-correction rate. Resilient Write is open-source under the MIT license.
format Preprint
id arxiv_https___arxiv_org_abs_2604_10842
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Resilient Write: A Six-Layer Durable Write Surface for LLM Coding Agents
Agyemang, Justice Owusu
Kponyo, Jerry John
Amponsah, Elliot
Boakye, Godfred Manu Addo
Agyekum, Kwame Opuni-Boachie Obour
Software Engineering
Artificial Intelligence
LLM-powered coding agents increasingly rely on tool-use protocols such as the Model Context Protocol (MCP) to read and write files on a developer's workstation. When a write fails - due to content filters, truncation, or an interrupted session - the agent typically receives no structured signal, loses the draft, and wastes tokens retrying blindly. We present Resilient Write, an MCP server that interposes a six-layer durable write surface between the agent and the filesystem. The layers - pre-flight risk scoring, transactional atomic writes, resume-safe chunking, structured typed errors, out-of-band scratchpad storage, and task-continuity handoff envelopes - are orthogonal and independently adoptable. Each layer maps to a concrete failure mode observed during a real agent session in April 2026, in which content-safety filters silently rejected a draft containing redacted API-key prefixes. Three additional tools - chunk preview, format-aware validation, and journal analytics - emerged from using the system to compose this paper. A 186-test suite validates correctness at each layer, and quantitative comparison against naive and defensive baselines shows a 5x reduction in recovery time and a 13x improvement in agent self-correction rate. Resilient Write is open-source under the MIT license.
title Resilient Write: A Six-Layer Durable Write Surface for LLM Coding Agents
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2604.10842