Metraipolis › archive › dc_3727a410591d

AgentR A Stateful and Recovery-Aware Software Architecture for LLM-based Auditable Workflows — arXiv:2608.15264

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.15264
License (as archived)
CC0-1.0
Archived
2026-10-18T19:55:21.170Z
SHA-256 of the archived text
4be3f9f0e676b3cd63a4c2385feac47f25bb1ae3191cf372818882bc596f6937
Stable URL of this page
https://metraipolis.com/documento/dc_3727a410591d

How to cite

AgentR A Stateful and Recovery-Aware Software Architecture for LLM-based Auditable Workflows — arXiv:2608.15264 — arXiv (en), https://arxiv.org/abs/2608.15264 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_3727a410591d (Metraipolis archive dc_3727a410591d, sha256 4be3f9f0e676b3cd63a4c2385feac47f25bb1ae3191cf372818882bc596f6937)
BibTeX
@misc{dc3727a410591d,
  title = {AgentR A Stateful and Recovery-Aware Software Architecture for LLM-based Auditable Workflows — arXiv:2608.15264},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.15264},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_3727a410591d; sha256 4be3f9f0e676b3cd63a4c2385feac47f25bb1ae3191cf372818882bc596f6937},
  year = {2026}
}

Archived text

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

Modern LLM-based applications increasingly require multi- stage execution, persistent intermediate state, retry seman- tics, and auditable usage accounting. However, many LLM applications are still implemented as stateless prompt- response wrappers or session-bounded conversational sys- tems, which makes them difficult to recover, audit, and re- produce after interruption or failure. We propose AgentR, a stateful architecture for LLM workflow systems that en- ables persistence and recovery, instantiated through scien- tific literature review as a representative use case. AgentR represents research intent, generated queries, candidate- paper assessments and gap analyses as durable workflow artifacts, and executes the pipeline through asynchronous BullMQ workers backed by Redis, with PostgreSQL as the persistence store. The design includes explicit processing state transitions, retries with exponential backoff, orphan job detection, credit-aware pre-checks, ACID token-cost logging, and Type-2 slowly changing pricing records. We evaluate AgentR on telemetry collected from a prototype deployment. At the LLM stage, the system achieves 99.2% job completion, and mean latencies of 9.0 s, 18.9 s, and 25.4 s for intent decomposition, query generation, and paper scoring, respectively. Parallel scoring allows for analytical latency modeling from observed calls, leading to as much as 4.3 wall-clock speedup over sequential execution. The results provide preliminary proof-of-concept that persistent state machine design, asynchronous orchestration, and cost-aware usage logging can enable improved observability, recoverability, and operational accountability in LLM workflow systems. The prototype implementation of AgentR is publicly available at: this https URL RiyaSamanta/AgentR-public.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-18 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2608.15264 — 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-10-18T19:41:45.996Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-18?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).