Paper deep dive
MemGuard: Persisting Verifier Signals for LLM-Agent Memory Governance
Haoyu Wang, Guangyuan Dong, He Liang, Zijing Zhang, Jiachen Luo, Chuang Liu, Chao Xue, Hao Tang
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 93%
Last extracted: 8/25/2026, 7:33:31 AM
Summary
MemGuard is a verifier-guided memory governance framework for LLM agents that treats verifier outputs as persistent lifecycle metadata rather than one-shot filters. It addresses unreliable admission and memory drift by attaching reward, confidence, label, and uncertainty descriptors to memory records. These descriptors govern admission, retrieval, conflict resolution, summarization, and archival. MemGuard outperforms baselines like ReasoningBank on benchmarks including Terminal-Bench 2.0, SWE-Bench Verified, WebArena, and Mind2Web.
Entities (13)
Relation Signals (13)
MemGuard ā addresses ā unreliable admission
confidence 95% Ā· The first is unreliable admission: failed trajectories ... enter memory ... MemGuard's key distinction is to treat verifier output ... as persistent lifecycle metadata
MemGuard ā addresses ā memory drift
confidence 95% Ā· The second is memory drift: long-running banks accumulate duplicate, stale, and conflicting records ... MemGuard ... governs memory admission, lifecycle updates
MemGuard ā evaluatedon ā SWE-bench Verified
confidence 95% Ā· We evaluate MemGuard on ... SWE-Bench Verified
MemGuard ā evaluatedon ā Mind2Web
confidence 95% Ā· We evaluate MemGuard on ... and Mind2Web
MemGuard ā evaluatedon ā WebArena
confidence 95% Ā· We evaluate MemGuard on ... WebArena
MemGuard ā evaluatedon ā Terminal Bench 2.0
confidence 95% Ā· We evaluate MemGuard on Terminal-Bench 2.0
MemGuard ā outperforms ā ReasoningBank
confidence 95% Ā· MemGuard achieves the best success metric ... improving over ReasoningBank ... with a largest gain of 7.9 success-rate points on WebArena
Verifier Descriptor ā governs ā Conflict Resolution
confidence 90% Ā· dm continues to gate retrieval, conflict resolution, summarization, and archival throughout the recordās lifetime
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:LLM agents are moving from single-prompt use to long task streams in which reusable memory becomes a core capability for terminal, software-engineering, and web tasks. Such memory is useful only when stored experience remains reliable across hundreds of interactions, but two failure modes break that assumption in practice. The first is unreliable admission: failed trajectories,accidental successes, and misleading observations enter memory because they appear relevant, then mislead later decisions. The second is memory drift: long-running banks accumulate duplicate, stale, and conflicting records that retrieval alone cannot repair. MemGuard's key distinction is to treat verifier output not as a one-shot filter, but as persistent lifecycle metadata. It converts multi-criteria score-token verification into reward, confidence, label, and uncertainty descriptors that are attached to every candidate before activation and reused during retrieval, conflict resolution, summarization, and archival. We evaluate MemGuard on Terminal-Bench 2.0, SWE-Bench Verified, WebArena, and Mind2Web across four backbones, comparing against four memory baselines plus a verifier-only control under matched runtime budgets. Averaged over five seeds, MemGuard achieves the best success metric and lowest average steps in all 16 backbone-benchmark settings, improving over ReasoningBank, the strongest prior baseline among the memory methods we evaluate, with a largest gain of 7.9 success-rate points on WebArena, 5.6 step-success-rate points on Mind2Web, and 2.4-3.5 points on terminal and software-engineering benchmarks. Code is available at this https URL.
Tags
Links
- Source: https://arxiv.org/abs/2608.21867v1
- Canonical: https://arxiv.org/abs/2608.21867v1
Trouble viewing inline? Open PDF directly ā
Full Text
118,572 characters extracted from source content.
Expand or collapse full text
MemGuard: Persisting Verifier Signals for LLM-Agent Memory Governance Haoyu Wang Affiliation: Nankai University Affiliation: Equal contribution. Guangyuan Dong Affiliation: National University of Singapore Affiliation: Equal contribution. Affiliation: Corresponding authors. He Liang Affiliation: Shanghai Institute of Optics and Fine Mechanics, Chinese Academy of Sciences Zijing Zhang Affiliation: Peking University Jiachen Luo Affiliation: Technical University of Munich Affiliation: Queen Mary University of London Chuang Liu Affiliation: Wuhan University Chao Xue Affiliation: University of New South Wales Hao Tang Affiliation: Peking University Affiliation: Corresponding authors. Abstract LLM agents are moving from single-prompt use to long task streams in which reusable memory becomes a core capability for terminal, software-engineering, and web tasks. Such memory is useful only when stored experience remains reliable across hundreds of interactions, but two failure modes break that assumption in practice. The first is unreliable admission: failed trajectories, accidental successes, and misleading observations enter memory because they appear relevant, then mislead later decisions. The second is memory drift: long-running banks accumulate duplicate, stale, and conflicting records that retrieval alone cannot repair. MemGuardās key distinction is to treat verifier output not as a one-shot filter, but as persistent lifecycle metadata. It converts multi-criteria score-token verification into reward, confidence, label, and uncertainty descriptors that are attached to every candidate before activation and reused during retrieval, conflict resolution, summarization, and archival. We evaluate MemGuard on Terminal-Bench 2.0, SWE-Bench Verified, WebArena, and Mind2Web across four backbones, comparing against four memory baselines plus a verifier-only control under matched runtime budgets. Averaged over five seeds, MemGuard achieves the best success metric and lowest average steps in all 16 backboneābenchmark settings, improving over ReasoningBank, the strongest prior baseline among the memory methods we evaluate, with a largest gain of 7.9 success-rate points on WebArena, 5.6 step-success-rate points on Mind2Web, and 2.4ā3.5 points on terminal and software-engineering benchmarks. Code is available at https://github.com/whyyyyy123/MemGuard. 1 Introduction Figure 1: Comparison between prior experience-memory systems such as Synapse (41), AWM (28), and ReasoningBank (18) and MemGuard. MemGuard persists verifier-derived descriptors to govern memory admission, lifecycle updates, quality-aware retrieval, and failure-guard injection. LLM agents are moving from single-prompt use to extended task sequences: software-engineering agents inspect repositories, edit code, and run tests; web agents navigate dynamic sites and execute multi-step actions; terminal agents plan, execute, and recover at the command line. In these settings, a single context window cannot preserve all useful prior experience, so production deployments increasingly depend on agent-memory systems that store trajectories, reflections, workflows, or reasoning hints for later reuse. The quality of this memory directly determines whether agents become more reliable as they accumulate experience or whether their behavior degrades unpredictably over time. Two failure modes prevent agent memory from being reliable by default. First, unreliable admission: interactive tasks routinely produce failed trajectories, accidental successes, misleading web observations, invalid patches, and outdated commands, any of which is distilled into memory whenever it looks relevantāfor instance, a web agent that learns āedit the first row after filtering an admin tableā will edit the wrong row whenever a later table is sorted differently. Second, memory drift: once a bank grows across many tasks, it accumulates duplicate, conflicting, stale, and over-generalized records that remain retrievable long after their assumptions stop holdingāfor instance, a tool-usage hint from an older API version stays in the top-k pool and is re-injected for every superficially similar query. These failure modes call for two design principles that target the gaps left by retrieval alone. Before storing a memory, the system must judge whether a trajectory is successful, supported by evidence, executable, and generalizable. It must also store failed experience as a constraint against repeated mistakes rather than as an action recipe. After storage, memory cannot remain a static retrieval index: uncertain records must stay provisional, weak records must lose weight, duplicates must merge, conflicts must resolve, and outdated entries must be summarized or archived under a finite active-memory budget. Thus the central question is not whether an LLM verifier can screen memories once, but whether verifier evidence can persist as a control signal throughout the memory lifecycle. We instantiate these principles in MemGuard, a verifier-guided memory governance framework whose contributions are: (i) Verifier-guided admission. MemGuard decomposes trajectory verification into multiple criteria, estimates reward from score-token distributions and repeated views, and attaches a persistent descriptor dm=(Rm,cm,ām,νm)d_m=(R_m,c_m, _m, _m) to every candidate before activation, so that low-quality experience is rejected, kept provisional, or routed to a failure-guard pool. (i) Structured memory governance. Each record carries lifecycle state, quality, confidence, usage statistics, and conflict links, and dmd_m continues to gate retrieval, conflict resolution, summarization, and archival throughout the recordās lifetimeāturning the memory bank into a lifecycle-managed object rather than an append-only index. (i) Comprehensive evaluation. We evaluate MemGuard on Terminal-Bench 2.0, SWE-Bench Verified, WebArena, and Mind2Web across four backbones (Qwen-3.5-Flash, Qwen-3.5-Plus, Gemini-3-Flash, and Gemini-3.1-Pro), against four memory baselines (No Memory, Synapse, AWM, ReasoningBank) plus a verifier-only control, under matched task order, step budget, retrieval budget, and decoding settings; MemGuard achieves the best success metric in every backboneābenchmark setting, with up to 7.9 SR-point gains on WebArena and 5.6 SSR-point gains on Mind2Web over the strongest prior baseline among the memory methods we evaluate. The verifier-only control isolates governance metadata: it improves over ReasoningBank in most cells by accepting better candidates, but underperforms MemGuard in every benchmarkābackbone setting, showing that the gain comes from persisting verifier signals rather than one-time filtering. Figure 2: Overview of MemGuard. MemGuard converts verifier signals into persistent descriptors attached to memory records, then uses them to govern admission, lifecycle updates, retrieval, and failure-guard injection across a task stream. 2 Related Work 2.1 Experience Memory for LLM Agents Agent memory systems differ in what they store and when stored information may influence later decisions. Early systems store observations, conversational facts, or context tiers for recall (20; 19); MemoryBank adds time-aware forgetting (42), and MemoryOS separates storage, update, retrieval, and response generation (9). These systems establish persistent memory, but their main unit is conversational or contextual information rather than task-level experience whose correctness must be judged after environment interaction. Task-level experience memory converts trajectories into reusable behavior through reflections, skills, workflows, or reasoning strategies. Reflexion and ExpeL store verbal feedback or extracted insights from prior attempts (22; 39); Voyager builds an embodied skill library from successful behavior (25). Synapse retrieves computer-control trajectories as exemplars (41), AWM induces workflow memories from successful web trajectories (28), and ReasoningBank abstracts successful and failed trajectories into higher-level reasoning strategies (18). MemGuard shifts the focus from what to remember to how a memory item should be admitted, weighted, revised, and retired. 2.2 Verifier-Guided Selection and Supervision Verifier-guided methods use judgment signals to improve current outputs, reasoning paths, or trajectories. Prior work trained or prompted verifiers to select reliable answers (2; 29), used self- or tool-feedback for repair (14; 1), trained critic models (27), and analyzed LLM-as-a-Judge behavior (40). Complementary work studies incomplete fine-tuning and uncertainty-aware reward modeling (35; 34), question calibration (32), and semantic representation (33; 31). In this paradigm, the verifier usually acts as a selector or critic for the current episode. Recent work structures verifier signals through process reward models, automatic process supervision, reward-guided search, and generative reward modeling (12; 26; 36; 38). LLM-as-a-Verifier (10) decomposes trajectory verification into multiple criteria and repeated views for one-time selection. MemGuard adopts this scoring style, derives confidence and uncertainty from score-token distributions, and stores dm=(Rm,cm,ām,νm)d_m=(R_m,c_m, _m, _m) with each record so it gates retrieval, conflict resolution, summarization, and archival. The contribution is not a new verifier, but persistent verifier-derived governance metadata. 2.3 Memory Governance and Reliable Reuse Reliable long-term reuse requires more than retrieving semantically similar items. RAG retrieves external documents from a non-parametric index (11), and knowledge editing changes factual associations inside model parameters (15; 16); MemGuard instead keeps the backbone fixed and governs an external bank of self-generated experiences. This distinction matters because an agent memory can be relevant and readable yet harmful if it came from accidental success, stale environment state, or misattributed failure. Recent studies show that memory management affects agent reliability. MemBench evaluates memory effectiveness, efficiency, and capacity (23); HiAgent reduces redundant long-horizon histories (7); 30 identify experience-following behavior; and 24 show privacy risks. Complementary proposals address state-evolution attribution in long-term memory, contribution-aware retention of long-horizon logs, and semantic propagation control in multi-agent systems (37; 13; 3). MemGuard addresses the experience-governance side of this problem through verifier-guided admission, quality-aware retrieval, deduplication, conflict resolution, summarization, and archival. Reflexion turns prior attempts into appended verbal reflections, Synapse retrieves earlier computer-control trajectories as exemplars, and MemoryOS organizes conversational memory into storage, update, retrieval, and response tiers. These systems make memory persistent, but their write-time feedback or update signal is not a first-class lifecycle field that continues to govern later retrieval, conflict handling, summarization, and retirement. Verifier-based systems solve a complementary problem: they score or select the current answer, reasoning path, trajectory, or candidate set. LLM-as-a-Verifier (10), for example, estimates trajectory reward from multi-criterion, repeated verification for the current decision episode. MemGuard connects these two lines by making dm=(Rm,cm,ām,νm)d_m=(R_m,c_m, _m, _m) persistent lifecycle metadata: the descriptor adjusts retrieval scores, blocks risky injection, prioritizes conflict resolution, and controls summarization or archival after the memory has been written. 3 Method 3.1 Overview MemGuard is a long-term experience memory system for LLM agents. Given a task stream =x1,ā¦,xTX=\x_1,ā¦,x_T\, the agent at step t can access the current task, the base tool environment, and the previous memory bank ā³tā1M_t-1, but not future tasks or human-labeled feedback. MemGuard retrieves a small set of reliable memories from ā³tā1M_t-1, renders them as a compact memory block, and injects the block into the agent context. After the agent finishes, MemGuard records the trajectory Ļt _t, final answer or patch yty_t, and execution status ete_t. A verifier scores the trajectory, and a memory induction module extracts candidate experiences. The governance module then decides whether to discard, activate, merge, replace, summarize, or archive these candidates, yielding ā³tM_t. Unlike systems that store complete trajectories, MemGuard distills noisy interaction histories into compact, verifiable units. It removes instance-specific details and keeps transferable decomposition patterns, environment observations, tool-use rules, and failure-avoidance principles (18), so the agent learns from both successes and failures. The key design choice is to persist verifier outputs as memory metadata rather than using them only for a one-time acceptance decision. Each memory carries a verifier descriptor dm=(Rm,cm,ām,νm)d_m=(R_m,c_m, _m, _m), where RmR_m denotes the trajectory reward, cmc_m denotes confidence, ām _m is the verifier label, and νm _m records verification time. This differs from a verifier-only filter: the verifier decision is not discarded after admission, but remains attached to the record and changes later retrieval, merging, conflict resolution, summarization, and archival. Admission, retrieval, conflict handling, summarization, and archival are all functions of both memory content and dmd_m. Table 1: Notation used in Section 3. Symbol Meaning ,xtX,x_t task stream and task at time t ā³tM_t governed memory bank after task t m,tm,C_t memory record and induced candidate set Ļt,yt,et _t,y_t,e_t trajectory, final output, and execution status dmd_m verifier descriptor attached to record m Rm,cm,ām,νmR_m,c_m, _m, _m reward, confidence, verifier label, and verification time ,ātV,R_t verifier views and the view set used for trajectory t score,v,Ļā”(v)V_score,v,Ļ(v) allowed score tokens, score token, and normalized token map pĪø(vā£ā )p_Īø(v Ā·) verifier score-token distribution for a criterion and view Rt,ct,āt,νtR_t,c_t, _t, _t aggregated trajectory reward, confidence, verifier label, and verification time bt,st,utb_t,s_t,u_t boundary score, dispersion score, and uncertainty r~,q~,p~ r, q, p normalized relevance, quality, and applicability signals b~rec,b~use b_rec, b_use normalized recency and successful-reuse signals h~cf,h~stale h_cf, h_stale normalized conflict and staleness penalties h~ver,h~ovr h_ver, h_ovr normalized verifier-risk and over-generalization penalties γlow,γhigh,Īb _low, _high, _b reward band and taper width for boundary trajectories Ī·verify _verify uncertainty threshold for repeated verification Ļcf _cf structured-signature similarity threshold for conflict detection S+ā(xt,m)S^+(x_t,m) positive retrieval score of memory m for task xtx_t Sāā(xt,m)S^-(x_t,m) failure-guard retrieval score of memory m for task xtx_t simiājsim_ij structured-signature similarity between records i and j B active-memory budget Algorithm 1 MemGuard update loop. 1: task xtx_t, memory bank ā³tā1M_t-1 2: tāRetrievePositiveā”(xt,ā³tā1)P_t (x_t,M_t-1) 3: tāRetrieveGuardsā”(xt,ā³tā1)G_t (x_t,M_t-1) 4: (Ļt,yt,et)āAgentā”(xt,t,t)( _t,y_t,e_t) (x_t,P_t,G_t) 5: āfullVā\full\; compute (Rt,ut)(R_t,u_t) on V 6: if ut>Ī·verifyu_t> _verify then 7: āfull,evidence,riskVā\full,evidence,risk\ 8: end if 9: (Rt,ct,āt)āAggregateVerifyā”(Ļt,yt,et,)(R_t,c_t, _t) ( _t,y_t,e_t,V) 10: tāInduceā”(Ļt,Rt,ct,āt)C_t ( _t,R_t,c_t, _t) 11: for all mātm _t do 12: attach dm=(Rm,cm,ām,νm)ā(Rt,ct,āt,νt)d_m=(R_m,c_m, _m, _m)ā(R_t,c_t, _t, _t) 13: assign initial state: active, provisional, or rejected 14: if m is failure avoidance then 15: add m to guard pool 16: end if 17: end for 18: ā³ā²āMergeDuplicatesā”(ā³tā1āŖt)M (M_t-1 _t) 19: ā³ā²āResolveConflictsā”(ā³ā²,Eq. 5)M (M ,Eq.~ eq:conflict) 20: ā³tāSummarizeArchiveā”(ā³ā²,B)M_t (M ,B) 21: return ā³tM_t 3.2 Structured Memory Units MemGuard represents each experience as a structured record with title, content, type, lifecycle state, source status, quality, confidence, usage statistics, deduplication signature, conflict links, and verifier descriptor dmd_m. We use procedural hints, tool-usage memories, and failure-avoidance memories; failure memories are rendered as constraints rather than direct action recipes. Candidate records can be provisional, active, summary, or archived; only active and selected summary records enter ordinary retrieval. The induction prompt and full schema are in Appendices B.3 and D.1. 3.3 Verifier-Guided Memory Admission Verifier signals decide whether each candidate experience enters long-term memory. When a task finishes, the verifier receives the task, trajectory, final output, and runtime status ete_t. The status ete_t contains only information the agent itself observes: exit codes, public test output, tool errors, visible web confirmations, and explicit environment messages. It never contains hidden benchmark labels, held-out evaluator outcomes, or oracle annotations. Following the multi-criterion verifier style of LLM-as-a-Verifier (10), MemGuard scores four criteria ā task completion, evidence consistency, execution validity, and generalizability ā and aggregates the score-token distributions and rationales into a label ātāverified_success,verified_fail,uncertain _tā\verified\_success,verified\_fail,uncertain\, trajectory reward RtR_t, and confidence ctc_t. High-uncertainty cases trigger re-verification under evidence-focused and risk-focused views of the same trajectory. Formally, MemGuard uses C verification criteria, a trajectory-specific view set ātR_t, and G discrete score tokens, where G controls score granularity. Let score=1,2,3,4,5V_score=\1,2,3,4,5\ by default, with Ļā”(v)=(vā1)/4Ļ(v)=(v-1)/4 mapping each token to [0,1][0,1]. For task xtx_t, trajectory Ļt _t, criterion j, and view ĻāātĻ _t, the verifier applies a softmax over the allowed score tokens to obtain pĪøā(vā£xt,j,Ļt,Ļ)p_Īø(v x_t,j, _t,Ļ). MemGuard estimates trajectory reward as a weighted expectation over these distributions: Rt=āj=1Cwj|āt|āĻāātEvā¼pĪø(ā ā£xt,j,Ļt,Ļ)[Ļ(v)],R_t= _j=1^C w_j|R_t| _Ļ _tE_v p_Īø(Ā· x_t,j, _t,Ļ)[Ļ(v)], (1) where wjā„0w_jā„ 0 and ājwj=1 _jw_j=1. We use uniform weights in the reported experiments, while exposing wjw_j so domains can assign higher weight to task completion, execution validity, or generalizability when desired. The factor 1/|āt|1/|R_t| implements uniform averaging over the views actually used for trajectory t; ordinary trajectories use the full view only, while boundary trajectories add evidence-focused and risk-focused views. We do not use view-specific weights in the main experiments, so wjw_j only weights criteria, not views. The fixed ordinal support also exposes distributional uncertainty around boundary cases. A single uncertainty score triggers repeated verification. The score combines reward proximity to the uncertainty band with disagreement among criteria or views; these signals jointly increase uncertainty rather than acting as separate hard triggers. We fix γlow=0.45 _low=0.45, γhigh=0.65 _high=0.65, and taper width Īb=0.10 _b=0.10 once on a held-out development stream. Let rĀÆt,j,Ļ=Evā¼pĪø(ā ā£xt,j,Ļt,Ļ)[Ļ(v)] r_t,j,Ļ=E_v p_Īø(Ā· x_t,j, _t,Ļ)[Ļ(v)] be the mean score for criterion j under view Ļ. We compute population standard deviations for dtcrit d_t^crit =1|āt|āāĻāātstd1ā¤jā¤Cā”rĀÆt,j,Ļ, = 1|R_t| _Ļ _tstd_1⤠j⤠C r_t,j,Ļ, dtview d_t^view =1Cāāj=1CstdĻāātā”rĀÆt,j,Ļ. = 1C _j=1^Cstd_Ļ _t r_t,j,Ļ. Because rĀÆt,j,Ļā[0,1] r_t,j,Ļā[0,1], the maximum population standard deviation is Ļmax=0.5 _ =0.5. We normalize d^tcrit d_t^crit =minā”(1,dtcrit/Ļmax), = (1,d_t^crit/ _ ), d^tview d_t^view =minā”(1,dtview/Ļmax). = (1,d_t^view/ _ ). The boundary score is at a_t =[γlowāRt]++[Rtāγhigh]+, =[ _low-R_t]_++[R_t- _high]_+, bt b_t =maxā”(0,1āat/Īb), = (0,1-a_t/ _b), where [z]+=maxā”(z,0)[z]_+= (z,0). The dispersion score is st=d^tcrit,|āt|=1,maxā”(d^tcrit,d^tview),|āt|>1.s_t= cases d_t^crit,&|R_t|=1,\\ ( d_t^crit, d_t^view),&|R_t|>1. cases This definition lets criterion-level disagreement contribute to repeated verification even before auxiliary views are computed. MemGuard then computes ut=αābt+(1āα)āst,u_t=α b_t+(1-α)s_t, (2) with α=0.5α=0.5 by default, giving equal weight to boundary proximity and dispersion because neither signal dominated on the held-out development stream. In our experiments, ordinary trajectories use one view and uncertain cases use up to three views. Confidence combines label agreement, reward stability, and rationale consistency; a candidate becomes active only when Rtā„0.70R_tā„ 0.70 and ctā„0.60c_tā„ 0.60. Otherwise it is rejected, kept provisional, or routed to failure-avoidance storage. Sensitivity analyses are in Appendices C.5āC.8, and the aggregation protocol is in Appendix D.5. Each candidate is parsed into title, description, and content, abstracted away from instance-specific details, and tied to cited observations or failure points. Writing RtR_t, ctc_t, and āt _t into record fields prevents relevant but low-confidence experience from carrying the same influence as verified experience. 3.4 Precision-Oriented Retrieval MemGuard prioritizes precision over maximum recall during retrieval. First, a hard filter removes archived records, low-relevance records, and records whose verifier label or confidence makes them unsafe for active injection. The remaining procedural and tool-usage memories are ranked by a normalized soft score: S+ā(xt,m)=βrār~ā(xt,m)+βqāq~ā(m)+βpāp~ā(m)+βrecāb~recā(m)+βuseāb~useā(m)āβcfāh~cfā(m)āβstaleāh~staleā(m)āβverāh~verā(m). splitS^+(x_t,m)=& _r r(x_t,m)+ _q q(m)\\ &+ _p p(m)+ _rec b_rec(m)\\ &+ _use b_use(m)- _cf h_cf(m)\\ &- _stale h_stale(m)- _ver h_ver(m). split (3) All tilded terms are min-max normalized to [0,1][0,1]. The weights separate utility from risk: relevance, verifier quality, applicability, recency, and successful reuse increase the score, while conflict, staleness, and verifier risk decrease it. The resulting scores are used for filtering and top-k ranking and are not clipped to [0,1][0,1]. They are fixed on a held-out development stream; Appendix C.8 shows that uniform and random-weight variants remain close. Failure-avoidance memories use a separate guard path with stricter relevance-score and confidence thresholds and are rendered as constraints such as āverify the stable row identifier.ā They are ranked by Sāā(xt,m)=Ī“rār~ā(xt,m)+Ī“qāq~ā(m)+Ī“pāp~ā(m)āĪ“cfāh~cfā(m)āĪ“staleāh~staleā(m)āĪ“ovrāh~ovrā(m), splitS^-(x_t,m)=& _r r(x_t,m)+ _q q(m)+ _p p(m)\\ &- _cf h_cf(m)\\ &- _stale h_stale(m)- _ovr h_ovr(m), split (4) where h~ovr h_ovr penalizes over-general failure rules and is used only in the failure-guard path. Retrieval budgets and guard scoring details are in Appendix D.4. 3.5 Memory Consolidation and Budgeted Governance MemGuard maintains the long-term memory bank through merging, replacement, summarization, and archival. For each candidate, it compares content similarity, structured signatures, and conflict links against similar active records. A signature contains the memory type, abstract task pattern, normalized action category, tool or website scope, and applicability condition. We define conflict as conflictā”(mi,mj)=[simiāj>Ļcf]ā [actiā actjāØāiā āj], splitconflict(m_i,m_j)=&1[sim_ij> _cf]\\ &Ā·1[act_i _j _iā _j], split (5) where simiājsim_ij compares structured signatures, Ļcf=0.72 _cf=0.72 is the conflict threshold, and actiact_i denotes the recommended action for procedural/tool memories or the avoided action for failure guards. Conflict checks are within type. Duplicates are discarded, complementary records are merged, and conflicts are resolved by verifier label, reward, confidence, recency, and usage. If two records match in structure and action but differ only in label, MergeDuplicates keeps the higher-confidence label when rewards are close; ResolveConflicts handles remaining reward or confidence disagreement. MemGuard also clusters repeated successes into summaries, archives stale or low-quality records, and enforces a fixed active-memory budget. Details are in Appendices D.3 and D.4. Table 2: Main results across terminal, software-engineering, and web-agent benchmarks. All metrics report mean ± standard deviation over five seeds. SR denotes success rate, Resolve Rate measures issue-resolving success, SSR denotes step success rate, and AS denotes average steps. Methods Terminal-Bench 2.0 SWE-Bench Verified WebArena Mind2Web SR ā AS ā Resolve Rate ā AS ā SR ā AS ā SSR ā AS ā Qwen-3.5-Flash No Memory 48.5±1.648.5±1.6 42.8±2.742.8±2.7 67.0±1.167.0±1.1 45.6±1.445.6±1.4 32.8±1.032.8±1.0 11.9±0.511.9±0.5 33.2±0.733.2±0.7 18.9±0.618.9±0.6 Synapse 49.2±0.949.2±0.9 42.6±1.842.6±1.8 66.7±1.466.7±1.4 45.8±0.945.8±0.9 33.5±1.233.5±1.2 11.6±0.411.6±0.4 33.9±1.033.9±1.0 18.6±0.518.6±0.5 AWM 50.1±1.350.1±1.3 41.8±2.241.8±2.2 68.4±0.868.4±0.8 44.2±1.644.2±1.6 35.3±0.935.3±0.9 11.2±0.311.2±0.3 34.4±0.534.4±0.5 18.3±0.618.3±0.6 ReasoningBank 52.8±2.052.8±2.0 40.9±1.540.9±1.5 70.8±1.570.8±1.5 42.5±1.142.5±1.1 38.6±1.438.6±1.4 10.4±0.610.4±0.6 37.2±0.937.2±0.9 17.2±0.417.2±0.4 Verifier-only Filter 53.0±1.153.0±1.1 40.7±3.040.7±3.0 71.9±1.071.9±1.0 41.5±1.741.5±1.7 42.6±0.842.6±0.8 9.1±0.5 09.1±0.5 37.8±0.637.8±0.6 15.4±0.515.4±0.5 MemGuard 55.8±1.855.8±1.8 38.8±2.538.8±2.5 73.4±1.273.4±1.2 39.9±1.039.9±1.0 44.2±1.144.2±1.1 8.7±0.3 08.7±0.3 40.7±1.140.7±1.1 13.8±0.613.8±0.6 Qwen-3.5-Plus No Memory 60.8±1.060.8±1.0 34.2±1.934.2±1.9 76.6±1.376.6±1.3 35.0±0.835.0±0.8 44.2±0.944.2±0.9 9.8±0.4 09.8±0.4 42.3±0.842.3±0.8 16.4±0.516.4±0.5 Synapse 61.4±1.761.4±1.7 34.9±2.434.9±2.4 77.4±0.777.4±0.7 35.6±1.635.6±1.6 45.0±1.345.0±1.3 9.9±0.5 09.9±0.5 42.9±0.442.9±0.4 16.1±0.616.1±0.6 AWM 60.6±0.860.6±0.8 34.6±3.134.6±3.1 78.2±1.578.2±1.5 34.3±1.134.3±1.1 46.5±1.046.5±1.0 9.2±0.6 09.2±0.6 43.4±0.943.4±0.9 15.9±0.415.9±0.4 ReasoningBank 64.6±2.164.6±2.1 32.1±1.432.1±1.4 80.1±0.980.1±0.9 32.7±1.532.7±1.5 50.5±1.250.5±1.2 8.5±0.4 08.5±0.4 46.2±0.746.2±0.7 14.8±0.614.8±0.6 Verifier-only Filter 64.8±1.464.8±1.4 32.4±2.832.4±2.8 81.9±1.181.9±1.1 31.6±0.931.6±0.9 52.0±1.552.0±1.5 8.4±0.5 08.4±0.5 50.0±1.050.0±1.0 11.9±0.511.9±0.5 MemGuard 67.4±1.967.4±1.9 30.4±1.730.4±1.7 83.6±1.683.6±1.6 30.6±1.230.6±1.2 58.4±0.858.4±0.8 6.9±0.3 06.9±0.3 51.8±0.551.8±0.5 11.5±0.411.5±0.4 Gemini-3-Flash No Memory 55.6±1.555.6±1.5 37.4±2.637.4±2.6 74.2±0.874.2±0.8 40.7±1.440.7±1.4 39.4±1.139.4±1.1 10.7±0.610.7±0.6 36.7±0.636.7±0.6 17.2±0.517.2±0.5 Synapse 55.3±0.955.3±0.9 37.8±1.337.8±1.3 75.1±1.275.1±1.2 40.0±1.740.0±1.7 40.2±0.840.2±0.8 10.4±0.410.4±0.4 37.2±1.137.2±1.1 16.9±0.616.9±0.6 AWM 56.8±1.656.8±1.6 36.4±2.936.4±2.9 74.6±1.074.6±1.0 40.6±0.940.6±0.9 42.0±1.442.0±1.4 10.0±0.310.0±0.3 37.8±0.837.8±0.8 16.6±0.516.6±0.5 ReasoningBank 59.0±1.259.0±1.2 35.6±1.135.6±1.1 78.0±1.578.0±1.5 37.9±1.337.9±1.3 45.4±0.945.4±0.9 9.3±0.5 09.3±0.5 39.5±0.439.5±0.4 15.5±0.415.5±0.4 Verifier-only Filter 60.3±2.060.3±2.0 34.9±1.834.9±1.8 77.7±0.777.7±0.7 38.4±1.638.4±1.6 49.6±1.349.6±1.3 8.2±0.4 08.2±0.4 40.1±1.040.1±1.0 13.5±0.613.5±0.6 MemGuard 61.8±1.761.8±1.7 34.1±2.334.1±2.3 80.4±1.480.4±1.4 36.1±1.036.1±1.0 50.7±1.550.7±1.5 8.1±0.3 08.1±0.3 43.8±0.743.8±0.7 12.4±0.512.4±0.5 Gemini-3.1-Pro No Memory 68.4±0.868.4±0.8 30.7±2.730.7±2.7 78.2±1.378.2±1.3 28.5±1.228.5±1.2 56.4±1.056.4±1.0 8.1±0.4 08.1±0.4 46.4±0.946.4±0.9 14.9±0.614.9±0.6 Synapse 69.2±1.469.2±1.4 31.2±1.631.2±1.6 77.8±0.777.8±0.7 29.3±1.529.3±1.5 57.5±0.857.5±0.8 8.0±0.5 08.0±0.5 47.1±0.647.1±0.6 14.6±0.414.6±0.4 AWM 70.1±2.170.1±2.1 30.1±2.030.1±2.0 79.9±1.179.9±1.1 28.0±0.828.0±0.8 59.5±1.459.5±1.4 7.5±0.3 07.5±0.3 47.6±1.147.6±1.1 14.3±0.514.3±0.5 ReasoningBank 73.0±1.073.0±1.0 28.8±1.328.8±1.3 82.2±1.682.2±1.6 26.8±1.726.8±1.7 63.1±0.963.1±0.9 7.0±0.4 07.0±0.4 50.2±0.750.2±0.7 13.2±0.613.2±0.6 Verifier-only Filter 73.2±1.873.2±1.8 28.9±3.128.9±3.1 83.3±0.983.3±0.9 26.2±1.026.2±1.0 67.8±1.267.8±1.2 6.1±0.6 06.1±0.6 51.0±0.551.0±0.5 11.0±0.411.0±0.4 MemGuard 75.7±1.375.7±1.3 27.3±2.527.3±2.5 85.3±1.285.3±1.2 25.4±1.425.4±1.4 69.1±1.569.1±1.5 5.9±0.3 05.9±0.3 55.5±1.055.5±1.0 10.4±0.510.4±0.5 4 Experiments 4.1 Experimental Setup We evaluate on Terminal-Bench 2.0 (17), SWE-Bench Verified (8), WebArena (43), and Mind2Web (4) using Qwen-3.5-Flash, Qwen-3.5-Plus (21), Gemini-3-Flash, and Gemini-3.1-Pro (5; 6). We compare No Memory, Synapse (41), AWM (28), ReasoningBank (18), Verifier-only Filter, and MemGuard. Each benchmark-model run is a continuous task stream: the memory bank is reset once, then updated after every task. All methods share the same runtime, task order, step budget, decoding, retriever, injected-memory limit, and memory-context budget. No method uses hidden benchmark gold labels or final evaluator outcomes during memory admission; memory updates use only the logged trajectory, final answer or patch, visible tool outputs, and runtime feedback available to the agent process. AS denotes the average number of agent action steps per task, not API calls. Appendix A gives benchmark, baseline, model-version, and prompt details. 4.2 Main Results Table 2 reports the main results. MemGuard achieves the highest primary success metric and the lowest AS in every backboneābenchmark setting. Gains are largest on interactive web tasks, where unstable navigation states and task-specific observations often pollute memory. On terminal and software-engineering tasks, MemGuard still gains by filtering low-quality experience and cutting repeated exploration. Across all 16 backboneābenchmark settings, MemGuard achieves the best success metric. WebArena and Mind2Web show the largest gains: web agents face unstable page state, ambiguous element identity, and misleading partial successes; Terminal-Bench 2.0 and SWE-Bench Verified show 2.4ā3.5 point gains. Paired bootstrap tests on task-level outcomes in Appendix E.5 remain significant for all 16 settings after BenjaminiāHochberg false-discovery-rate correction (q=0.004q=0.004ā0.0320.032); seven remain significant under the stricter Holm family-wise correction. The aggregate ordering is not universal at the seed level: across 320 matched success-metric and AS comparisons against ReasoningBank and Verifier-only Filter, MemGuard has 11 losses and one tie. The strict Mind2Web task-level SR is intentionally conservative, so we use SSR as the primary Mind2Web summary metric. The standard deviations in Table 2 summarize five seeded runs with the same benchmark split, memory budget, retrieval budget, and decoding configuration; the main ranking is stable under run-level variation. Appendix A.5 gives split-level WebArena and Mind2Web results, and Figure 3 shows that MemGuardās advantage emerges later in the same continuous task streams rather than from isolated per-task resets. A separate chronological stream of all 2,294 SWE-bench Full issues extends the Verified horizon by 4.6Ć4.6Ć: MemGuard improves Resolve Rate by 2.96 points and reduces AS by 2.10 steps over ReasoningBank, with the gap widening in later stream windows (Appendix C.2). 4.3 Verifier Control and Overhead The verifier-only control improves the primary success metric over ReasoningBank in 15 of 16 backboneābenchmark settings, showing that trajectory verification helps, but MemGuard achieves higher success and lower AS than this control in all 16 settings. Appendix Table 9 reports prompt tokens, verifier/governance tokens, latency, and storage: MemGuard adds 1.0ā2.5k tokens and 5.1ā15.0s per task over the no-memory reference, but stays below the other memory and verifier baselines by reducing agent steps. Appendix Table 10 audits verifier quality, with 86% agreement against author inspection for Qwen-3.5-Plus and 83% for Qwen-3.5-Flash. An independent post-hoc check joins 51,896 of 52,280 frozen task-completion decisions to benchmark-provided outcomes that were unavailable to every online component, obtaining 88.1% macro balanced accuracy and a 9.3% false-positive rate. Table 11 shows that governance blocks 38 of 60 false accepts before active-memory promotion. Appendix Table 12 further stress-tests verifier dependence: at 30% simulated label noise, MemGuard loses 0.3ā2.6 fewer metric points than the verifier-only control. This gap is consistent with the mechanism in Section C.3: provisional states, confidence-aware retrieval, conflict checks, and failure-guard separation reduce corrupted labels entering active positive context. Cross-family replacement in both directions also preserves MemGuardās advantage over matched ReasoningBank in all eight tested agentābenchmark cells (Appendix Table 19). Additional controls in Appendices C.5āC.8 show that the default score-token scale, admission thresholds, verification views, runtime-feedback setting, retrieval weights, and same-family verifier choice are not narrow sources of the result. 4.4 Ablation Study We ablate verifier admission (w/o Adm.), repeated verification (w/o Rep.), governance (w/o Gov.), failure memories (w/o Fail.), and semantic-only retrieval (Sem. Ret.). Table 3 gives the compact view; Appendix C.9 reports all backbones. Dropping governance causes the largest success drop because duplicate, stale, and conflicting records stay active; dropping admission is the second-largest loss, and dropping failure guards mainly inflates AS. Semantic-only retrieval performs worse in every setting, showing that retrieval without verifier-quality and conflict signals cannot recover the gains. A simplified label,confidence\label,confidence\ descriptor retains most of the benefit but trails the full descriptor by 0.7ā1.5 success-metric points across four Qwen-3.5-Plus settings (Appendix C.6). Appendix E reports memory-health statistics, budget sensitivity, failure-memory risk analysis, a case study, and the paired bootstrap tests summarized above. In a 200-case audit, most risky failure-derived memories are rejected, kept provisional, merged into safer summaries, or archived rather than injected as action plans. Table 3: Compact ablation on Qwen-3.5-Plus across four benchmarks. Each cell reports success metric / AS: SR for Terminal-Bench 2.0 and WebArena, Resolve Rate for SWE-Bench Verified, and SSR for Mind2Web. Sem. Ret. denotes semantic-only retrieval. Full results across four backbones are in Appendix C.9. Variant Terminal-Bench 2.0 SWE-Bench WebArena Mind2Web Full 67.4/30.4 83.6/30.6 58.4/6.9 51.8/11.5 w/o Adm. 64.4/32.0 80.9/32.5 52.8/8.0 48.0/13.1 w/o Rep. 65.3/31.5 81.5/31.7 55.6/7.4 50.0/12.2 w/o Gov. 63.7/32.6 79.8/33.0 52.0/8.5 46.8/13.8 w/o Fail. 66.1/31.4 82.2/31.5 56.5/7.8 50.7/12.8 Sem. Ret. 63.4/32.9 79.4/33.2 50.1/8.8 45.8/14.1 5 Conclusion We introduced MemGuard, a verifier-guided memory governance framework for long-running LLM agents. The central idea is that experience memory should not only be retrieved but also maintained after it is written. MemGuard turns trajectory verification into persistent memory metadata: reward, confidence, verifier labels, usage statistics, and conflict links guide admission, retrieval, merging, summarization, and archival throughout a task stream. Across Terminal-Bench 2.0, SWE-Bench Verified, WebArena, and Mind2Web, MemGuard outperforms ReasoningBank, the strongest prior baseline among the memory methods we evaluate, in all 16 backboneābenchmark settings. Its lower AS also translates into lower deployment cost relative to ReasoningBank, with 3.0ā8.4k fewer total tokens and 6.5ā19.0s lower latency per task. Gains are largest on web-agent benchmarks (5.3ā7.9 SR points on WebArena and 3.5ā5.6 SSR points on Mind2Web over ReasoningBank); on terminal and software-engineering benchmarks, MemGuard gains 2.4ā3.5 points. The verifier-only control confirms that verification itself helps, while the gap to MemGuard demonstrates that one-time filtering is not the main driver: persistent verifier signals as memory attributes down-weight risky experience, retain useful failure-avoidance guards, and retire stale or conflicting records. The broader takeaway is that reliable agent memory is a lifecycle problem. In interactive environments, harmful memories often look semantically relevant, so stronger retrieval alone is insufficient. Future work should test verifier transfer across more model families, extend memory-drift evaluation beyond the 2,294-issue stream, and study multimodal and privacy-sensitive agent settings. Limitations Verifier dependence. In a manual audit of 800 verifier decisions sampled from the four benchmarks under Qwen-3.5-Plus and Qwen-3.5-Flash, verifier labels agreed with author inspection in 86% and 83% of cases, respectively, with disagreements driven mainly by incomplete logs or ambiguous task-success criteria. The independent benchmark-outcome check covers task completion at much larger scale, but does not replace human assessment of evidence consistency, execution validity, or generalizability. False accepts can still promote unsupported experience into active memory, and the resulting errors may accumulate in long task streams. Table 11 traces these false accepts through later retrieval and action influence. The noisy-verifier analysis in Table 12 tests the same failure mode by corrupting verifier labels; it suggests that lifecycle governance can buffer moderate label noise relative to verifier-only filtering, but it is not a guarantee under calibrated, systematic, or adversarial verifier errors. Stricter activation thresholds, provisional states, repeated verification, and failure-guard separation reduce this risk but do not guarantee that all harmful experiences are filtered. Cross-family verification preserves the reported advantage in the eight tested cells, but larger sweeps over verifier families, calibration sets, and human-audited domains are still needed. Generalizability beyond reported streams. The main table reports mean success metrics and standard deviations over five seeds for each modelābenchmark setting, supplemented by bootstrap tests over benchmark tasks. Larger multi-seed sweeps would give tighter effect-size estimates, especially on Terminal-Bench 2.0 and SWE-Bench Verified where task heterogeneity is high. MemGuard also uses fixed thresholds, weights, and memory budgets selected on a small held-out development stream. The sensitivity analyses show that nearby settings preserve performance on the tested web benchmarks, but new domains may require recalibration. The 2,294-issue SWE-bench Full stream is substantially longer than the main benchmarks but remains shorter and less heterogeneous than open-ended production deployments; budget saturation, lossy summaries, and stale failure guards therefore remain open issues. Scope of evaluation. MemGuard governs external memory rather than updating backbone model parameters, so it cannot compensate when the base agent lacks a required tool-use or reasoning capability. We evaluate terminal, software-engineering, and web-agent environments, but not multimodal agents, open-world embodied agents, or production settings where incorrect memory can have legal, financial, medical, or security consequences. We compare against trajectory-, workflow-, and reasoning-memory baselines, but do not run every reflection or skill-library system because several are designed for different interaction loops. MemGuard also focuses on correctness-oriented governance; it does not yet provide a complete privacy layer for detecting, redacting, or auditing sensitive information stored in memory. Ethical Considerations MemGuard is intended to improve long-running LLM-agent reliability, but memory governance introduces ethical risks that should be considered. Privacy of stored trajectories. Agent trajectories can contain sensitive information from web pages, repositories, terminal outputs, or user instructions. Our experiments use benchmark tasks rather than private user data, but the current system does not provide a complete privacy-preserving memory layer; deployments should add redaction, access control, audit logs, and deletion mechanisms before deploying persistent memory for real users. Residual verifier risk. Verifier-guided admission can reduce harmful experience reuse but cannot eliminate it. A verifier may falsely accept an unsupported trajectory, falsely reject a useful one, or encode biases from its model family and prompt. MemGuard mitigates this risk through provisional states, stricter activation thresholds, repeated verification, failure-guard separation, conflict resolution, and archival, but high-risk settings should require human review and rollback mechanisms. Scope of safety claims. The reported gains in controlled benchmarks should not be read as evidence that autonomous agents are safe for unconstrained deployment. MemGuard is a reliability layer for research agents and benchmarked task streams, not a substitute for domain-specific safety evaluation, user consent, privacy review, or operational monitoring. Acknowledgments We thank the anonymous reviewers, action editor, and program committee for their constructive feedback, which helped improve the empirical validation and presentation of this work. We also thank our institutions and colleagues for providing supportive research environments and helpful discussions. Generative AI tools were used for language polishing, organization, and LaTeX formatting; the authors reviewed the resulting text and take full responsibility for the methods, experiments, claims, and presentation. References Chen et al. (2023) X. Chen, M. Lin, N. Scharli, and D. Zhou Teaching large language models to self-debug. External Links: 2304.05128, Link, Document Cited by: §2.2. Cobbe et al. (2021) K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, et al. Training verifiers to solve math word problems. External Links: 2110.14168, Link Cited by: §2.2. Dai et al. (2026) H. Dai, Z. Ying, W. Li, X. Wu, Y. Xiao, T. Zhang, J. Lin, L. Wei, G. Dong, X. Ling, et al. SafeFlow: semantic information-flow control for blocking malicious propagation in multi-agent systems. External Links: 2607.25255, Link Cited by: §2.3. Deng et al. (2023) X. Deng, Y. Gu, B. Zheng, S. Chen, S. Stevens, B. Wang, H. Sun, and Y. Su Mind2Web: towards a generalist agent for the web. In Neural Information Processing Systems, p. 28091ā28114. External Links: Link, Document Cited by: §4.1. Google DeepMind (2025) Google DeepMind Gemini 3 Flash model card. Model Card Google DeepMind. Note: Published December 2025. Accessed: 2026-08-22 External Links: Link Cited by: §4.1. Google DeepMind (2026) Google DeepMind Gemini 3.1 Pro model card. Model Card Google DeepMind. Note: Published February 2026. Accessed: 2026-08-22 External Links: Link Cited by: §4.1. Hu et al. (2025) M. Hu, T. Chen, Q. Chen, Y. Mu, W. Shao, and P. Luo HiAgent: hierarchical working memory management for solving long-horizon agent tasks with large language model. In Annual Meeting of the Association for Computational Linguistics, Vienna, Austria, p. 32779ā32798. External Links: Document, Link Cited by: §2.3. Jimenez et al. (2024) C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. R. Narasimhan SWE-bench: can language models resolve real-world github issues?. In International Conference on Learning Representations, External Links: Link, Document Cited by: §4.1. Kang et al. (2025) J. Kang, M. Ji, Z. Zhao, and T. Bai Memory OS of AI agent. In Conference on Empirical Methods in Natural Language Processing, Suzhou, China, p. 25972ā25981. External Links: Document, Link Cited by: §2.1. Kwok et al. (2026) J. Kwok, S. Li, P. Atreya, Y. Liu, Y. Jiang, C. Finn, M. Pavone, I. Stoica, and A. Mirhoseini LLM-as-a-verifier: a general-purpose verification framework. Note: Notion Blog Cited by: §2.2, §2.3, §3.3. Lewis et al. (2020) P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. Kuttler, M. Lewis, W. Yih, T. RocktƤschel, et al. Retrieval-augmented generation for knowledge-intensive NLP tasks. External Links: 2005.11401, Link Cited by: §2.3. Lightman et al. (2023) H. Lightman, V. Kosaraju, Y. Burda, H. Edwards, B. Baker, T. Lee, J. Leike, J. Schulman, I. Sutskever, and K. Cobbe Letās verify step by step. External Links: 2305.20050, Link, Document Cited by: §2.2. Liu et al. (2026) B. Liu, Y. Fang, L. Liu, G. Dong, X. Fu, Y. Gao, S. Wei, X. Li, and X. Meng ConMem: contribution-aware memory for long-horizon manufacturing inspection logs. External Links: 2607.28126, Link Cited by: §2.3. Madaan et al. (2023) A. Madaan, N. Tandon, P. Gupta, S. Hallinan, L. Gao, S. Wiegreffe, U. Alon, N. Dziri, S. Prabhumoye, Y. Yang, et al. Self-refine: iterative refinement with self-feedback. Neural Information Processing Systems Foundation, Inc. (NeurIPS). External Links: 2303.17651, Link, Document Cited by: §2.2. Meng et al. (2022a) K. Meng, D. Bau, A. Andonian, and Y. Belinkov Locating and editing factual associations in GPT. Neural Information Processing Systems Foundation, Inc. (NeurIPS). External Links: 2202.05262, Link, Document Cited by: §2.3. Meng et al. (2022b) K. Meng, A. S. Sharma, A. Andonian, Y. Belinkov, and D. Bau Mass-editing memory in a transformer. External Links: 2210.07229, Link, Document Cited by: §2.3. Merrill et al. (2026) M. A. Merrill, A. G. Shaw, N. Carlini, B. Li, H. Raj, I. Bercovich, L. Shi, J. Shin, T. Walshe, E. K. Buchanan, et al. Terminal-bench: benchmarking agents on hard, realistic tasks in command line interfaces. External Links: 2601.11868, Link, Document Cited by: §4.1. Ouyang et al. (2025) S. Ouyang, J. Yan, I. Hsu, Y. Chen, K. Jiang, Z. Wang, R. Han, L. T. Le, S. Daruki, X. Tang, et al. ReasoningBank: scaling agent self-evolving with reasoning memory. External Links: 2509.25140, Link, Document Cited by: Figure 1, §2.1, §3.1, §4.1. Packer et al. (2023) C. Packer, V. Fang, S. G. Patil, K. Lin, S. Wooders, and J. E. Gonzalez MemGPT: towards LLMs as operating systems. External Links: 2310.08560, Link, Document Cited by: §2.1. Park et al. (2023) J. S. Park, J. C. OāBrien, C. J. Cai, M. R. Morris, P. Liang, and M. S. Bernstein Generative agents: interactive simulacra of human behavior. ACM. External Links: 2304.03442, Link, Document Cited by: §2.1. Qwen Team (2026) Qwen Team Qwen3.5: towards native multimodal agents. Note: https://qwen.ai/blog?id=qwen3.5Qwen official blog post. Accessed: 2026-08-22 Cited by: §4.1. Shinn et al. (2023) N. Shinn, F. Cassano, B. Labash, A. Gopinath, K. Narasimhan, and S. Yao Reflexion: language agents with verbal reinforcement learning. Neural Information Processing Systems Foundation, Inc. (NeurIPS). External Links: 2303.11366, Link, Document Cited by: §2.1. Tan et al. (2025) H. Tan, Z. Zhang, C. Ma, X. Chen, Q. Dai, and Z. Dong MemBench: towards more comprehensive evaluation on the memory of LLM-based agents. Association for Computational Linguistics. External Links: 2506.21605, Link, Document Cited by: §2.3. Wang et al. (2025) B. Wang, W. He, S. Zeng, Z. Xiang, Y. Xing, J. Tang, and P. He Unveiling privacy risks in LLM agent memory. In Annual Meeting of the Association for Computational Linguistics, Vienna, Austria, p. 25241ā25260. External Links: Document, Link Cited by: §2.3. Wang et al. (2023a) G. Wang, Y. Xie, Y. Jiang, A. Mandlekar, C. Xiao, Y. Zhu, L. Fan, and A. Anandkumar Voyager: an open-ended embodied agent with large language models. External Links: 2305.16291, Link, Document Cited by: §2.1. Wang et al. (2024a) P. Wang, L. Li, Z. Shao, R. Xu, D. Dai, Y. Li, D. Chen, Y.Wu, and Z. Sui Math-Shepherd: verify and reinforce LLMs step-by-step without human annotations. In Annual Meeting of the Association for Computational Linguistics, Bangkok, Thailand, p. 9426ā9439. External Links: Document, Link Cited by: §2.2. Wang et al. (2023b) T. Wang, P. Yu, X. E. Tan, S. OāBrien, R. Pasunuru, J. Dwivedi-Yu, O. Golovneva, L. Zettlemoyer, M. Fazel-Zarandi, and A. Celikyilmaz Shepherd: a critic for language model generation. External Links: 2308.04592, Link, Document Cited by: §2.2. Wang et al. (2024b) Z. Z. Wang, J. Mao, D. Fried, and G. Neubig Agent workflow memory. External Links: 2409.07429, Link, Document Cited by: Figure 1, §2.1, §4.1. Xie et al. (2023) Y. Xie, K. Kawaguchi, Y. Zhao, X. Zhao, M. Kan, J. He, and Q. Xie Self-evaluation guided beam search for reasoning. Neural Information Processing Systems Foundation, Inc. (NeurIPS). External Links: 2305.00633, Link, Document Cited by: §2.2. Xiong et al. (2026) Z. Xiong, Y. Lin, W. Xie, P. He, J. Tang, H. Lakkaraju, and Z. Xiang How memory management impacts LLM agents: an empirical study of experience-following behavior. Association for Computational Linguistics. External Links: 2505.16067, Link, Document Cited by: §2.3. Xue and Gao (2026) C. Xue and Z. Gao StructCoh: structured contrastive learning for context-aware text semantic matching. In Lecture Notes in Computer Science, Lecture Notes in Computer Science, p. 300ā315. External Links: Document Cited by: §2.2. Xue et al. (2024) C. Xue, D. Liang, P. Wang, and J. Zhang Question calibration and multi-hop modeling for temporal question answering. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38, p. 19332ā19340. External Links: Document Cited by: §2.2. Xue et al. (2023) C. Xue, D. Liang, S. Wang, J. Zhang, and W. Wu Dual path modeling for semantic matching by perceiving subtle conflicts. In IEEE International Conference on Acoustics, Speech, and Signal Processing, p. 1ā5. External Links: Document Cited by: §2.2. Xue et al. (2026a) C. Xue, Y. Wang, M. Liu, D. Liang, X. Han, P. Liu, X. Wu, C. Lu, L. Jiang, Y. Lu, et al. Reason only when needed: efficient generative reward modeling via model-internal uncertainty. In Findings of the Association for Computational Linguistics: ACL 2026, San Diego, California, United States, p. 23302ā23319. External Links: Document, Link Cited by: §2.2. Xue et al. (2026b) C. Xue, Y. Wang, M. Liu, D. Liang, X. Han, P. Liu, X. Wu, C. Lu, L. Jiang, Y. Lu, et al. Why supervised fine-tuning fails to learn: a systematic study of incomplete learning in large language models. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), San Diego, California, United States, p. 30186ā30213. External Links: Document, Link Cited by: §2.2. Zhang et al. (2024a) D. Zhang, S. Zhoubian, Y. Yue, Y. Dong, and J. Tang ReST-MCTS*: LLM self-training via process reward guided tree search. Neural Information Processing Systems Foundation, Inc. (NeurIPS). External Links: 2406.03816, Link, Document Cited by: §2.2. Zhang et al. (2026) H. Zhang, X. Mao, G. Dong, Z. Li, X. Su, K. Chen, J. Yang, and Z. Lin MemMark: state-evolution attribution watermarking for agent long-term memory systems. External Links: 2605.25002, Link, Document Cited by: §2.3. Zhang et al. (2024b) L. Zhang, A. Hosseini, H. Bansal, M. Kazemi, A. Kumar, and R. Agarwal Generative verifiers: reward modeling as next-token prediction. External Links: 2408.15240, Link, Document Cited by: §2.2. Zhao et al. (2024) A. Zhao, D. Huang, Q. Xu, M. Lin, Y. Liu, and G. Huang ExpeL: LLM agents are experiential learners. Vol. 38, Association for the Advancement of Artificial Intelligence (AAAI). External Links: 2308.10144, Link, Document Cited by: §2.1. Zheng et al. (2023a) L. Zheng, W. Chiang, Y. Sheng, S. Zhuang, Z. Wu, Y. Zhuang, Z. Lin, Z. Li, D. Li, E. Xing, et al. Judging LLM-as-a-judge with MT-Bench and chatbot arena. Neural Information Processing Systems Foundation, Inc. (NeurIPS). External Links: 2306.05685, Link, Document Cited by: §2.2. Zheng et al. (2023b) L. Zheng, R. Wang, X. Wang, and B. An Synapse: trajectory-as-exemplar prompting with memory for computer control. In International Conference on Learning Representations, External Links: Link Cited by: Figure 1, §2.1, §4.1. Zhong et al. (2024) W. Zhong, L. Guo, Q. Gao, H. Ye, and Y. Wang MemoryBank: enhancing large language models with long-term memory. Vol. 38, Association for the Advancement of Artificial Intelligence (AAAI). External Links: 2305.10250, Link, Document Cited by: §2.1. Zhou et al. (2023) S. Zhou, F. F. Xu, H. Zhu, X. Zhou, R. Lo, A. Sridhar, X. Cheng, Y. Bisk, D. Fried, U. Alon, et al. WebArena: a realistic web environment for building autonomous agents. External Links: 2307.13854, Link, Document Cited by: §4.1. Contents of Appendix A Experiment Details.A A.1 Benchmarks and Splits.A.1 A.2 Agent Runtime and Decoding.A.2 A.3 Baseline Implementations.A.3 A.4 Memory and Verifier Settings.A.4 A.5 Detailed Web Results.A.5 B Prompt Templates.B B.1 Verifier Prompt.B.1 B.2 Verification Views.B.2 B.3 Memory Induction Prompt.B.3 B.4 Memory Injection Prompt.B.4 B.5 Prompt Example.B.5 C Additional Experimental Analyses.C C.1 Long-Horizon Task-Stream Accumulation.C.1 C.2 Extended SWE-bench Full Stream.C.2 C.3 Verifier-Only Control and Deployment Cost.C.3 C.4 Verifier Reliability and Label Noise.C.4 C.5 Score-Token Granularity.C.5 C.6 Descriptor Simplification.C.6 C.7 Admission Threshold and View Sensitivity.C.7 C.8 Runtime Feedback, Weight, and Cross-Family Verifier Results.C.8 C.9 Ablation Details.C.9 D Implementation and Audit Protocols.D D.1 Memory Record Schema.D.1 D.2 Verifier Criteria.D.2 D.3 Governance Operations.D.3 D.4 Hyperparameters and Implementation Details.D.4 D.5 Diagnostic Analysis Protocols.D.5 D.6 Memory Induction Example.D.6 E Robustness and Governance Analyses.E E.1 Memory Health and Governance Analysis.E.1 E.2 Memory Budget Sensitivity.E.2 E.3 Failure-Memory Risk Analysis.E.3 E.4 Case Study.E.4 E.5 Significance Tests.E.5 F Reproducibility Statement.F G Use of LLMs.G Appendix A Experiment Details This appendix fixes the shared evaluation setup before reporting split-level web results. It first specifies benchmark scopes and runtime settings, then clarifies the baseline implementations and memory/verifier configuration used throughout the paper. A.1 Benchmarks and Splits Table 5 summarizes the evaluation suites used in this paper. We keep each benchmarkās official task definition and evaluation protocol, and reset the memory bank at the beginning of each benchmark-model run. For WebArena and Mind2Web, we additionally report split-level results in Appendix A.5 because their domain structure is central to understanding where governed memory helps. Counts in parentheses are official benchmark instances/tasks; WebArena overall SR uses the task-count-weighted micro-average over its five sites. Table 4: Benchmark settings. AS denotes the average number of agentāenvironment interaction steps per task. Benchmark Task scope Splits or domains Metrics Terminal-Bench 2.0 Command-line operation Official task suite SR, AS SWE-Bench Verified Repository issue resolution Verified issue set Resolve Rate, AS WebArena Interactive web tasks Shopping (187), Admin (182), GitLab (180), Reddit (106), Multi (29); Overall (684) SR, AS Mind2Web Web-agent generalization Cross-Task (252), Cross-Website (177), Cross-Domain (912) EA, AF1, SSR, SR, AS Table 5: Implementation comparison among baselines. Method Stored experience Verifier use Lifecycle governance No Memory None None None Synapse Retrieved trajectories None Append-only cache AWM Workflow memories None Workflow-level update ReasoningBank Reasoning memories Success/failure signal Minimal consolidation Verifier-only Filter Reasoning memories Admission filtering No verifier-aware retrieval MemGuard Governed memory records Admission, retrieval, and updates Merge, summarize, resolve, archive A.2 Agent Runtime and Decoding All methods use the same ReAct-style agent interface, tool environment, observation format, and stop criteria within each benchmark. A step is counted when the agent observes the environment, produces a thought or plan, and executes an action. WebArena uses a maximum of 30 interaction steps per task, Mind2Web follows the benchmark-provided step horizon, and Terminal-Bench 2.0 and SWE-Bench Verified use a maximum of 60 action steps. Agent decoding uses temperature 0.2 and top-p=0.95p=0.95 for all compared methods. The verifier and governance modules are outside the environment loop, so verifier calls are not counted in AS; their cost is reported separately in Appendix C.3. A.3 Baseline Implementations Table 5 specifies what is shared and what differs across methods. This separation is important because MemGuard is not meant to benefit from a stronger retriever, larger context budget, or more favorable task order. Synapse, ReasoningBank, Verifier-only Filter, and MemGuard use the same retrieval pool size, injected-memory budget, and memory block template; they differ in what is stored and how memory quality affects admission, retrieval, and governance. A.4 Memory and Verifier Settings The memory bank is updated after every completed task. Candidate memories are induced from the full trajectory, final answer or patch, execution status, and verifier output. Positive memories are eligible for top-k retrieval only after passing activation thresholds; failure memories are routed through the negative-guard path and appended as constraints when they pass a stricter relevance and confidence filter. Unless otherwise specified, all hyperparameters are fixed across models and benchmarks, as listed in Appendix D.4. A.5 Detailed Web Results This section expands the web results from Table 2. WebArena is reported by site because navigation errors and memory failures differ across shopping, administration, code-hosting, forum, and multi-site tasks. Mind2Web is reported by official split because cross-task, cross-website, and cross-domain settings stress different forms of memory transfer. Table 6: Detailed results on WebArena. Results are averaged over five seeds. SR denotes task success rate; AS is defined in Section A.2. Overall SR is the task-count-weighted micro-average over the five sites; Overall AS is the site-level average used in Table 2. Shopping (187) Admin (182) GitLab (180) Reddit (106) Multi (29) Overall (684) Methods SR AS SR AS SR AS SR AS SR AS SR AS Qwen-3.5-Flash No Memory 31.0 11.4 36.5 12.1 27.8 14.6 45.3 8.2 6.9 11.8 32.8 11.9 Synapse 31.8 11.0 37.1 12.4 28.6 14.1 45.8 8.5 6.9 11.5 33.5 11.6 AWM 33.7 10.8 39.1 11.4 30.4 13.8 48.7 7.9 3.4 10.5 35.3 11.2 ReasoningBank 36.9 10.1 42.0 10.7 33.1 13.0 52.8 7.3 10.3 10.1 38.6 10.4 MemGuard 42.2 8.7 48.4 9.1 38.0 11.2 58.5 6.4 17.2 8.2 44.2 8.7 Qwen-3.5-Plus No Memory 41.2 9.4 48.0 10.1 38.9 11.7 60.4 6.8 13.8 9.2 44.2 9.8 Synapse 42.0 9.8 48.8 9.7 39.6 11.9 61.3 6.5 13.8 9.5 45.0 9.9 AWM 43.7 8.9 50.2 9.5 41.2 10.9 64.2 6.4 10.3 8.3 46.5 9.2 ReasoningBank 47.1 8.2 54.9 8.8 44.0 10.1 68.9 5.9 17.2 7.9 50.5 8.5 MemGuard 55.1 6.5 63.2 7.0 51.2 8.3 76.4 4.8 27.6 6.2 58.4 6.9 Gemini-3-Flash No Memory 37.4 10.2 43.1 10.9 34.0 12.8 53.8 7.4 10.3 10.0 39.4 10.7 Synapse 38.2 9.9 43.9 11.3 34.8 12.4 54.5 7.8 10.3 9.8 40.2 10.4 AWM 40.0 9.7 45.5 10.1 36.9 11.8 57.5 7.0 6.9 9.1 42.0 10.0 ReasoningBank 43.1 9.0 49.0 9.4 39.7 11.1 61.3 6.4 13.8 8.6 45.4 9.3 MemGuard 48.0 7.8 54.9 8.1 44.6 9.8 67.0 5.7 20.7 7.1 50.7 8.1 Gemini-3.1-Pro No Memory 54.0 8.1 61.0 8.5 48.9 9.8 75.5 5.9 20.7 7.6 56.4 8.1 Synapse 55.1 8.4 62.1 8.2 50.0 9.5 76.4 6.1 20.7 7.4 57.5 8.0 AWM 57.2 7.6 64.3 7.9 52.2 9.0 79.2 5.5 17.2 6.8 59.5 7.5 ReasoningBank 60.4 7.1 68.1 7.3 55.6 8.3 83.0 5.0 24.1 6.4 63.1 7.0 MemGuard 66.3 6.1 74.2 6.3 61.0 7.0 88.7 4.4 34.5 5.1 69.1 5.9 Table 7: Detailed results on Mind2Web. Results are averaged over five seeds. EA, AF1, SSR, and SR denote element accuracy, action F1, step success rate, and task success rate. Cross-Task Cross-Website Cross-Domain Methods EA AF1 SSR SR EA AF1 SSR SR EA AF1 SSR SR Qwen-3.5-Flash No Memory 45.2 57.8 39.0 3.0 38.6 44.0 30.5 1.5 34.9 36.8 30.2 0.8 Synapse 46.1 58.5 39.8 3.2 39.2 44.7 31.1 1.7 35.5 37.4 30.8 0.9 AWM 46.4 58.9 40.5 3.5 39.7 45.2 31.6 1.9 36.0 38.1 31.2 1.0 ReasoningBank 50.7 60.0 43.4 4.5 42.9 50.8 33.1 2.2 39.4 40.5 35.2 1.4 MemGuard 54.5 62.2 47.1 6.2 47.2 55.1 36.7 3.8 42.8 43.5 38.4 2.4 Qwen-3.5-Plus No Memory 54.5 64.8 48.0 4.8 47.8 55.2 39.7 4.1 42.6 44.0 39.1 1.9 Synapse 55.1 65.5 48.6 4.9 48.6 56.0 40.5 4.2 43.2 44.8 39.7 2.0 AWM 55.8 66.0 49.0 5.2 49.4 56.8 41.0 4.4 43.8 45.6 40.1 2.0 ReasoningBank 59.0 67.2 51.4 6.2 52.2 60.0 43.5 4.9 48.0 50.2 43.8 2.6 MemGuard 64.4 71.2 56.8 8.9 59.1 66.2 49.5 7.3 54.4 56.0 49.2 4.2 Gemini-3-Flash No Memory 48.6 59.6 42.5 3.4 40.8 48.2 33.5 2.9 37.1 37.0 34.0 1.2 Synapse 49.4 60.3 43.0 3.5 41.5 49.1 34.0 3.0 37.8 38.7 34.7 1.3 AWM 50.0 60.8 43.5 3.7 42.6 49.4 34.7 3.1 38.4 39.5 35.2 1.4 ReasoningBank 52.9 62.1 45.0 4.9 45.4 53.6 36.1 3.6 42.0 44.1 37.5 1.6 MemGuard 56.8 64.5 48.8 6.7 50.2 58.6 40.8 5.4 46.2 49.2 41.7 3.0 Gemini-3.1-Pro No Memory 59.6 67.5 53.1 5.8 51.7 60.6 43.4 5.0 47.0 48.9 42.8 2.5 Synapse 60.3 68.0 53.7 5.9 52.4 61.4 44.0 5.1 47.7 49.8 43.5 2.6 AWM 61.0 68.6 54.2 6.2 53.2 62.0 44.8 5.3 48.3 50.4 43.8 2.7 ReasoningBank 63.8 70.1 56.0 7.3 56.5 65.0 47.2 5.9 52.3 54.2 47.4 3.1 MemGuard 68.1 73.8 60.6 9.3 62.1 70.0 53.0 7.5 58.4 59.0 53.0 4.4 Appendix B Prompt Templates This appendix gives the prompt interfaces used by the verifier, repeated verification views, memory induction, and memory injection. The templates are written as interfaces rather than full benchmark prompts so that the emitted fields can be checked against the schema and governance metadata in Appendix D. B.1 Verifier Prompt The verifier receives the task, trajectory, final output, and runtime execution status. It must judge only from logged evidence and must not infer success from the modelās confidence. Hidden benchmark labels and final evaluator outcomes are never included in this prompt. The prompt template is: System. You are an expert evaluator for long-horizon LLM agent trajectories. Judge whether the trajectory provides a reusable experience for future agents. Use only the task, logged trajectory, final output, and runtime-visible status. Do not use hidden benchmark labels, held-out evaluator outcomes, private gold answers, or the modelās confidence as evidence. Inputs. task: task; trajectory: ordered steps with observations, thoughts, actions, tool outputs, and errors; final_output: output; runtime_status: exit code, public tests, visible web confirmation, tool error, or other status visible to the agent; view: full, evidence, risk. Criteria. Score each criterion with one allowed score token from 1,2,3,4,5: (i) task_completion: whether the user task is completed from visible evidence; (i) evidence_consistency: whether the final output is supported by trajectory observations; (i) execution_validity: whether commands, patches, web actions, or tool calls are valid and non-spurious; and (iv) generalizability: whether the lesson can transfer beyond the exact instance. Score output. For each criterion, emit exactly one score token from 1,2,3,4,5 before the rationale, so the caller can read the emitted token or its API log probabilities. Label rules. Return verified_success only when task completion and evidence consistency are both at least 4 and there is no blocking execution error. Return verified_fail when visible evidence shows failure, invalid execution, an unsupported final answer, or a harmful strategy. Return uncertain for ambiguous page state, partial tests, missing evidence, conflicting observations, or boundary cases. Output JSON schema. Return a JSON object with: ⢠criteria: one object per criterion, each with score, rationale, and evidence_span; ⢠label: one of verified_success, verified_fail, or uncertain; ⢠failure_guard: NONE or a short condition to check before reusing the trajectory. The scalar reward and confidence used by later prompts are computed after verification from the criterion scores, score-token distributions, label agreement, and rationale consistency; they are not additional verifier-emitted fields. When the API exposes token log probabilities, MemGuard reads the probabilities assigned to the allowed score tokens and renormalizes over this set. When only the emitted score token is available, MemGuard records the top-1 score and uses a deterministic one-hot distribution for the expectation in Eq. 1. B.2 Verification Views Boundary trajectories are re-verified with controlled prompt views over the same log. The base system prompt remains unchanged; only the view instruction is changed: Full view. Evaluate the complete trajectory. Consider all observations, actions, tool outputs, final output, and runtime-visible status. Evidence view. Ignore unrelated intermediate exploration. Focus on the minimal spans that directly support or contradict the final output. If no span supports the final output, lower evidence_consistency and explain the missing evidence. Risk view. Prioritize failure modes: wrong entity or row selection, stale page state, invalid command, failing test, unsupported assumption, loop, hallucinated file path, or task-specific shortcut that may not transfer. If a memory could cause future harm when retrieved, emit a failure_guard. B.3 Memory Induction Prompt The memory induction prompt converts a verifier-processed trajectory into auditable memory records: System. You extract reusable memories from verifier-processed agent trajectories. Produce at most three candidate records. Each retained record must cite an evidence span and must be useful beyond the current task. Do not store exact benchmark answers, private labels, raw credentials, hidden evaluator feedback, or brittle selectors such as āclick the first rowā unless the memory is a failure guard that warns against the shortcut. Inputs. task; trajectory; final_output; runtime_status; verifier output, including criteria entries with rationale and evidence_span, plus failure_guard; verifier_label; reward computed from criterion scores via Eq. 1; confidence; and retrieved memories that influenced the run. Rules. Use procedural_hint for reusable reasoning or debugging procedure, tool_usage for command or environment interaction patterns, and failure_avoidance for negative lessons. A failure memory must be phrased as a condition or check, not as an action recipe. Reject a candidate if its evidence span is missing, if it merely restates the task, or if it depends on a one-off object name. Output JSON schema. Return "records":[...]. Each record contains: ⢠required fields: type, title, description, content, applicability, risk, guard_condition, evidence_span, and reject_reason; ⢠type: procedural_hint, tool_usage, or failure_avoidance; ⢠risk: none, low, medium, or high; ⢠guard_condition: NONE for positive records or a short check condition for failure-avoidance records, derived from the verifier guard when applicable; ⢠evidence_span: a trajectory span or NONE; ⢠reject_reason: NONE for retained records or a short rejection reason. The governance layer then normalizes guard_condition into the stored failure-guard field and attaches source_status, quality_score, verifier_label, reward, confidence, verification time, and the initial lifecycle state. Here source_status records the runtime-visible execution status category (for example, public-test pass, public-test fail, visible web confirmation, tool error, or unknown), while verifier_label records the verifierās judgment. This keeps prompt-based induction separate from admission decisions. B.4 Memory Injection Prompt At test time, retrieved memory is rendered as a compact block before the current task. Positive memories and failure guards are separated so that the agent can distinguish suggested strategies from constraints: System memory block. The following governed memories were derived from previous tasks and may help only if their applicability condition matches the current task. Before using a memory, check whether its condition holds. Do not treat memory as ground truth, do not follow it when the current observation contradicts it, and do not copy task-specific names, paths, rows, DOM identifiers, or answers unless they are present in the current task. Positive memories. Up to five active procedural or tool-usage records, rendered as [id] title; content; applicability; confidence. Summary memories. Up to two compressed records when the active bank exceeds the memory budget, rendered as [id] summary; covered record ids; applicability. Failure guards. Up to two high-confidence negative records, rendered as [id] risk; check-before-acting; evidence summary. Treat these as constraints. If a guard applies, avoid the risky action unless current evidence resolves the risk. B.5 Prompt Example The following abbreviated example illustrates how a misleading web trajectory becomes a guard rather than a positive recipe. Input. Task: update the target user in an admin table. Trajectory excerpt: after filtering, the agent clicked the first visible row and saved the edit. Runtime status: the visible confirmation appeared, but the verifier risk view notes that the row identity was never checked after sorting. Verifier output excerpt. The verifier returns uncertain, with criterion scores 3, 3, 3, and 2 for task completion, evidence consistency, execution validity, and generalizability. The confirmation is visible, but the evidence does not establish the edited rowās identity. It emits the guard: before editing a table row, verify the row identity using a stable field after filtering or sorting. Governed memory. Type: failure_avoidance. Title: verify table-row identity after sorting. Content: do not assume the first visible row is the target after filtering or sorting; check a stable identifier before editing or submitting changes. Applicability: admin tables, search results, issue lists, or any sortable table. Risk: high. Initial state: provisional. Appendix C Additional Experimental Analyses This section collects result-oriented diagnostics that extend the main experiments: long-horizon accumulation, deployment cost, verifier reliability, sensitivity checks, control variants, and component ablations. Implementation parameters and audit protocols are separated into Appendix D, while memory-bank health and failure-memory behavior are analyzed in Appendix E. C.1 Long-Horizon Task-Stream Accumulation Long-running agents face continuous task streams, so an effective memory system should become more useful as experience accumulates. These curves are not independent per-task evaluations: within each benchmark-model run, one memory bank grows across the evaluated task order and is not reset between tasks. We divide each benchmark stream into five checkpoints at 20%, 40%, 60%, 80%, and 100%, and compute cumulative average performance at each checkpoint. The curves cover Qwen-3.5-Flash, Qwen-3.5-Plus, Gemini-3-Flash, and Gemini-3.1-Pro. Each 100% checkpoint matches the corresponding final value in Table 2 and the detailed web tables in Tables 6 and 7. For Mind2Web, the success curve plots average SSR across Cross-Task, Cross-Website, and Cross-Domain. Figure 3 shows that the methods are close early in the task stream, when few reusable memories exist and cumulative averages are sensitive to task difficulty. As more tasks are processed, ReasoningBank gradually exceeds No Memory, and MemGuard separates more clearly in later checkpoints, especially on WebArena and Mind2Web. The AS rows show the analogous efficiency trend. No Memory mainly reflects natural task difficulty variation, while ReasoningBank reduces some late-stage exploration. MemGuard further reduces AS as the task stream grows, suggesting that its gains are not only from solving more tasks but also from avoiding repeated failed actions and locating useful actions earlier. This paired pattern is important: the success curves improve while the AS curves fall, so the late-stream gains are not obtained by simply taking longer trajectories. Figure 3: Task-stream accumulation diagnostics. The top four rows report cumulative success metrics; the bottom four rows report cumulative AS, where lower is better. Each subplot shares the same task-stream checkpoints. For Mind2Web, the success metric is average SSR across Cross-Task, Cross-Website, and Cross-Domain. MemGuardās late-stream gains coincide with lower AS rather than longer trajectories. C.2 Extended SWE-bench Full Stream To test memory governance beyond the main benchmark horizons, we run Qwen-3.5-Plus on all 2,294 unique SWE-bench Full issues as one chronological, non-repeating stream. This extends the 500-issue Verified stream by 4.6Ć4.6Ć; Verified issues remain once at their chronological positions because they are a subset of Full. Tasks are ordered by issue creation time, with ties broken by instance ID. The repository workspace, tools, and conversation reset for every issue, while the memory bank persists across the entire stream. ReasoningBank and MemGuard use the same task order, 60-step limit, decoding settings, retrieval budget, active-memory budget, and two matched seeds. Gold patches, evaluator-only tests, and post-hoc outcomes are unavailable to every online component. Table 8: Chronological continual-stream evaluation on all 2,294 SWE-bench Full issues. Results report mean ± sample standard deviation over two matched seeds. Checkpoint gaps are MemGuard minus ReasoningBank for Resolve Rate and AS. Method Resolve Rate AS 20% gap 40% gap 60% gap 80% gap ReasoningBank 49.22±1.1749.22±1.17 43.25±0.4943.25±0.49 R: 0.00,+0.33,+1.56,+2.240.00,+0.33,+1.56,+2.24; AS: ā0.25,ā0.45,ā0.70,ā1.30-0.25,-0.45,-0.70,-1.30 MemGuard 52.18±0.8052.18 0.80 41.15±1.0641.15 1.06 At the full-stream checkpoint, MemGuard gains 2.96 Resolve Rate points and reduces AS by 2.10 steps. Its cumulative Resolve Rate gap grows from 0.00 at 20% to 2.96 points at 100%; in non-overlapping windows, the gaps are 0.00, 0.66, 4.04, 4.25, and 5.88 points, while AS is lower in every window. The widening late-stream separation is consistent with lifecycle governance becoming more useful as persistent memory accumulates and approaches its fixed 384-record capacity. C.3 Verifier-Only Control and Deployment Cost Table 9: Deployment cost accounting across all four benchmarks. Method AS Agent tok./task Extra tok./task Total tok./task Latency/task Storage MB Qwen-3.5-Flash No Memory 29.8 64.0k 0.0k 64.0k 103.2s 0.0 Synapse 29.7 66.4k 0.0k 66.4k 111.6s 1.3 AWM 28.9 67.0k 0.0k 67.0k 112.8s 1.6 ReasoningBank 27.8 68.4k 0.0k 68.4k 115.4s 2.5 Verifier-only Filter 26.7 62.8k 2.6k 65.4k 110.2s 2.4 MemGuard 25.3 61.0k 4.0k 65.0k 108.9s 3.6 Qwen-3.5-Plus No Memory 23.9 78.5k 0.0k 78.5k 164.2s 0.0 Synapse 24.1 82.0k 0.0k 82.0k 176.3s 1.2 AWM 23.5 83.0k 0.0k 83.0k 179.3s 1.5 ReasoningBank 22.0 84.0k 0.0k 84.0k 184.0s 2.1 Verifier-only Filter 21.1 78.8k 2.9k 81.7k 181.0s 2.0 MemGuard 19.9 76.5k 4.5k 81.0k 174.8s 3.0 Gemini-3-Flash No Memory 26.5 71.5k 0.0k 71.5k 101.8s 0.0 Synapse 26.3 75.6k 0.0k 75.6k 108.9s 1.2 AWM 25.9 76.4k 0.0k 76.4k 110.8s 1.5 ReasoningBank 24.6 77.0k 0.0k 77.0k 114.0s 2.3 Verifier-only Filter 23.8 70.6k 3.4k 74.0k 109.5s 2.2 MemGuard 22.7 67.9k 4.9k 72.8k 106.9s 3.3 Gemini-3.1-Pro No Memory 20.6 130.5k 0.0k 130.5k 329.0s 0.0 Synapse 20.8 138.8k 0.0k 138.8k 354.0s 1.1 AWM 20.0 140.0k 0.0k 140.0k 357.0s 1.4 ReasoningBank 19.0 141.2k 0.0k 141.2k 363.0s 2.0 Verifier-only Filter 18.1 131.1k 3.4k 134.5k 350.0s 1.9 MemGuard 17.3 127.0k 5.8k 132.8k 344.0s 2.9 Note. AS is the unweighted macro-average over the four benchmark settings in Table 2. Agent tokens include task execution and compact memory-injection prompts; extra tokens count verifier, re-verification, induction, and governance calls outside AS. No Memory is a no-retrieval, no-verification lower-cost reference rather than an accuracyācost optimum. Storage is the final serialized memory-bank footprint. The Verifier-only Filter rows in Table 2 separate two effects that would otherwise be confounded. Verifier-only Filter tests whether a trajectory verifier alone is enough; MemGuard tests whether verifier outputs must persist as memory metadata and feed back into retrieval and governance. The consistent gap between the two variants shows that one-time filtering captures only part of the gain. Table 9 reports one deployment-cost accounting convention: agent tokens include task execution and compact memory injection, while extra tokens count verifier, re-verification, induction, and governance calls outside AS. Memory methods incur extra memory-processing cost relative to No Memory. MemGuard also adds verifier and governance calls, but its lower AS keeps total tokens and latency below the other memory and verifier baselines while remaining above the no-memory lower bound. C.4 Verifier Reliability and Label Noise Table 10: Verifier calibration audit on 800 sampled Qwen trajectories. Values are cases; FA/FR denote false accepts/rejects, and blocked FA denotes false accepts not promoted to active positive memory. Backbone Benchmark n Agree FA FR Blocked FA Qwen-3.5-Plus Terminal-Bench 2.0 100 86 6 8 4 SWE-Bench Verified 100 85 7 8 5 WebArena 100 87 5 8 3 Mind2Web 100 86 8 6 6 Overall 400 344 26 30 18 Qwen-3.5-Flash Terminal-Bench 2.0 100 82 9 9 5 SWE-Bench Verified 100 81 10 9 6 WebArena 100 84 8 8 4 Mind2Web 100 85 7 8 5 Overall 400 332 34 34 20 Independent benchmark-outcome calibration. The author audit above covers all four verifier criteria. We separately validate the frozen trajectory-level task-completion decision against post-hoc benchmark outcomes that were never available to the agent, verifier, induction module, or admission policy. We join 51,896 of 52,280 task-seed trajectories (99.3%) to official Terminal-Bench 2.0 success, SWE-Bench Verified resolved status, official WebArena outcomes, and strict Mind2Web task success derived from the benchmark gold action sequence. With the prompts, score mapping, aggregation, and threshold frozen before this join, the task-completion decision obtains 88.1% macro balanced accuracy and a 9.3% false-positive rate. This check provides an outcome-based test independent of author inspection, while the smaller audit remains necessary for criteria that do not reduce to task success. Because verifier errors can directly affect memory quality, we audit balanced samples of completed trajectories under both Qwen-3.5-Plus and Qwen-3.5-Flash. Table 10 reports cases rather than percentages. The weaker Qwen-3.5-Flash verifier has lower agreement and more false accepts, but 38 of 60 observed false accepts are blocked by governance because their confidence, evidence consistency, or conflict state prevents promotion to active positive memory. This pattern is important for memory governance: false rejections may discard useful experience, but false accepts can turn harmful experience into active memory. MemGuard therefore uses stricter activation thresholds, repeated verification for boundary cases, and provisional states for low-confidence records. Table 11: Downstream tracing of verifier false accepts. We trace false-accept records from the calibration audit through governance, retrieval, action influence, and downstream task failure. Counts are records, not percentages. Backbone Benchmark FA Blocked Active Retrieved Influenced Failure Qwen-3.5-Plus Terminal-Bench 2.0 6 4 2 1 1 0 SWE-Bench Verified 7 5 2 2 1 1 WebArena 5 3 2 2 1 0 Mind2Web 8 6 2 1 1 0 Qwen-3.5-Flash Terminal-Bench 2.0 9 5 4 3 2 1 SWE-Bench Verified 10 6 4 3 2 1 WebArena 8 4 4 4 3 2 Mind2Web 7 5 2 2 1 1 Overall All 60 38 22 18 12 6 Table 11 follows the same false accepts into later memory use. Most are blocked before becoming active positive memories; among the 22 active false accepts, 18 are later retrieved, 12 influence an agent action, and 6 are associated with an observed downstream task failure. This tracing does not eliminate verifier dependence, but it bounds the practical failure pathway in the audited stream and shows why false accepts are more serious than false rejects for long-term memory systems. Stylized risk accounting. The audit can be interpreted through a simple event decomposition. Let HmH_m denote that candidate memory m is harmful, FmF_m that the verifier falsely accepts it, AmA_m that it remains active after admission governance, and Im,tI_m,t that it is injected at a future retrieval opportunity t. A verifier-only filter uses the verifier decision as the final admission decision, so Prā”(Amā£Hm)=Prā”(Fmā£Hm)=ϵ. (A_m H_m)= (F_m H_m)=ε. MemGuard keeps the same verifier but inserts additional gates after a false accept. Define Ļadm _adm =Prā”(Amā£Fm,Hm), = (A_m F_m,H_m), Ļinj _inj =Prā”(Im,tā£Am,Fm,Hm). = (I_m,t A_m,F_m,H_m). Then the probability that a harmful memory is both falsely accepted and later injected at opportunity t factors as Prā”(Im,t,Am,Fmā£Hm)=ϵāĻadmāĻinj. (I_m,t,A_m,F_m H_m)=ε\, _adm\, _inj. Under a verifier-only filter with the same retrieval budget, the corresponding term is ϵāĻbaseε _base, where Ļbase _base is the retrieval probability for an accepted harmful memory. Governance therefore helps when ĻadmāĻinj<Ļbase _adm _inj< _base: the same false verifier label is less likely to reach injection. The decomposition formalizes the failure pathway measured in Table 11. Table 12: Sensitivity to simulated verifier label noise with a verifier-only control. Each cell reports success metric / AS: SR for Terminal-Bench 2.0 and WebArena, Resolve Rate for SWE-Bench Verified, and SSR for Mind2Web. Label noise randomly corrupts verifier labels before memory admission. Model Method Noise Terminal-Bench 2.0 SWE-Bench Verified WebArena Mind2Web Qwen-3.5-Flash Verifier-only 0% 53.0 / 40.7 71.9 / 41.5 42.6 / 9.1 37.8 / 15.4 Verifier-only 10% 52.1 / 42.6 70.7 / 42.9 40.1 / 10.2 37.2 / 15.9 Verifier-only 20% 50.6 / 44.0 69.4 / 45.1 38.2 / 10.8 36.1 / 16.8 Verifier-only 30% 49.8 / 45.2 67.9 / 46.0 35.6 / 11.8 34.9 / 17.1 MemGuard 0% 55.8 / 38.8 73.4 / 39.9 44.2 / 8.7 40.7 / 13.8 MemGuard 10% 54.7 / 40.0 72.5 / 41.1 42.7 / 9.4 40.3 / 14.1 MemGuard 20% 53.9 / 39.6 71.0 / 42.8 41.0 / 9.1 39.4 / 15.0 MemGuard 30% 52.9 / 42.3 70.1 / 43.5 39.8 / 10.6 38.6 / 15.3 Qwen-3.5-Plus Verifier-only 0% 64.8 / 32.4 81.9 / 31.6 52.0 / 8.4 50.0 / 11.9 Verifier-only 10% 63.4 / 34.2 80.2 / 33.5 49.8 / 9.2 49.1 / 12.4 Verifier-only 20% 61.0 / 35.8 78.1 / 35.0 46.4 / 10.1 47.5 / 13.1 Verifier-only 30% 59.5 / 37.9 76.0 / 36.2 43.5 / 10.9 46.0 / 13.8 MemGuard 0% 67.4 / 30.4 83.6 / 30.6 58.4 / 6.9 51.8 / 11.5 MemGuard 10% 66.1 / 31.7 82.8 / 31.5 56.8 / 7.2 51.4 / 11.9 MemGuard 20% 65.0 / 31.2 81.2 / 33.0 54.0 / 7.8 50.5 / 11.7 MemGuard 30% 63.5 / 33.8 79.4 / 33.4 52.1 / 8.5 49.4 / 12.9 We simulate verifier mistakes by randomly corrupting verifier labels before admission while keeping retrieval, memory budgets, and task order fixed. Table 12 compares MemGuard with Verifier-only Filter under the same corrupted verifier labels. The trend is intentionally benchmark-dependent: binary success metrics on Terminal-Bench 2.0 and WebArena degrade more than Mind2Webās step-level SSR, and AS changes are non-linear because task-level step counts are discrete and order-sensitive. The expected mechanism is governance buffering: noisy verifier labels can still create bad admissions, but provisional states, confidence-aware retrieval, conflict checks, and failure-guard separation reduce the chance that an erroneous label is injected as an active positive memory. Across the eight matched benchmarkābackbone comparisons at 30% noise, MemGuard loses 0.3ā2.6 fewer metric points from the clean-verifier setting than the verifier-only control, supporting the claim that persistent verifier signals plus lifecycle governance buffer label errors that one-time filtering cannot. C.5 Score-Token Granularity We vary the number of verifier score tokens while keeping the same criteria, prompts, and admission thresholds. Table 13 reports Qwen-3.5-Plus on WebArena and Mind2Web as a diagnostic subset, where verifier uncertainty is most frequent. A 3-token scale is cheaper but loses useful boundary information. A 10-token scale gives little additional benefit over the default 5-token scale while increasing verifier output length. Table 13: Sensitivity to score-token granularity on Qwen-3.5-Plus. G WebArena Mind2Web SR ā AS ā SSR ā AS ā 3 57.1 7.1 50.7 11.8 5 58.4 6.9 51.8 11.5 10 58.1 7.0 52.0 11.5 C.6 Descriptor Simplification The score-token granularity analysis retains the full lifecycle descriptor, so it does not isolate the downstream value of reward and uncertainty beyond label and confidence. We therefore compare full MemGuard with a simplified decision descriptor dmā²=(ām,cm)d _m=( _m,c_m). The simplified variant keeps the verifier prompt and confidence computation unchanged, but removes continuous reward and uncertainty as separate inputs to admission, retrieval ranking, and conflict resolution. All task orders, memory and retrieval budgets, decoding settings, and hard filters remain matched. Table 14: Descriptor simplification on Qwen-3.5-Plus. Each cell reports success metric / AS as mean ± standard deviation over five seeds. Variant Terminal-Bench 2.0 SWE-Bench Verified WebArena Mind2Web Full MemGuard 67.4±1.9/30.4±1.767.4±1.9/30.4±1.7 83.6±1.6/30.6±1.283.6±1.6/30.6±1.2 58.4±0.8/6.9±0.358.4±0.8/6.9±0.3 51.8±0.5/11.5±0.451.8±0.5/11.5±0.4 label,confidence\label,confidence\ 66.3±1.5/31.0±2.266.3±1.5/31.0±2.2 82.9±1.7/30.9±1.182.9±1.7/30.9±1.1 56.9±1.3/7.3±0.656.9±1.3/7.3±0.6 51.1±0.5/11.7±0.551.1±0.5/11.7±0.5 The simplified descriptor retains most of the gain and remains above Verifier-only Filter on every primary success metric. The full descriptor improves the four success metrics by 0.7ā1.5 points and reduces AS by 0.2ā0.6 steps. We interpret reward and uncertainty as modest complementary signals for downstream ranking and boundary cases rather than the main source of the gain. C.7 Admission Threshold and View Sensitivity We next test whether the main results depend on a narrow choice of admission thresholds. Table 15 varies the activation thresholds and uncertainty mixture on Qwen-3.5-Plus and Qwen-3.5-Flash for the two benchmarks with the highest boundary-case rates. This subset is intended as a stress test of the admission mechanism rather than a full model sweep. The default setting is strongest in this subset, but nearby settings remain close, suggesting that MemGuardās gains are not produced by a brittle threshold choice. Table 15: Admission-threshold sensitivity on Qwen backbones. Backbone Setting WebArena Mind2Web SR AS SSR AS Qwen-3.5-Plus Rā„.65,cā„.55,α=.5Rā„.65,cā„.55,α=.5 57.5 7.1 50.9 11.8 Qwen-3.5-Plus ā„.70,ā„.60,=.5Rā„.70,cā„.60,α=.5 58.4 6.9 51.8 11.5 Qwen-3.5-Plus Rā„.75,cā„.65,α=.5Rā„.75,cā„.65,α=.5 57.8 7.0 51.1 11.7 Qwen-3.5-Plus Rā„.70,cā„.60,α=.3Rā„.70,cā„.60,α=.3 57.6 7.0 51.3 11.7 Qwen-3.5-Plus Rā„.70,cā„.60,α=.7Rā„.70,cā„.60,α=.7 58.0 7.0 51.5 11.6 Qwen-3.5-Flash Rā„.65,cā„.55,α=.5Rā„.65,cā„.55,α=.5 43.3 8.9 39.7 14.1 Qwen-3.5-Flash ā„.70,ā„.60,=.5Rā„.70,cā„.60,α=.5 44.2 8.7 40.7 13.8 Qwen-3.5-Flash Rā„.75,cā„.65,α=.5Rā„.75,cā„.65,α=.5 43.6 8.9 40.0 14.0 Qwen-3.5-Flash Rā„.70,cā„.60,α=.3Rā„.70,cā„.60,α=.3 43.5 8.9 40.2 14.0 Qwen-3.5-Flash Rā„.70,cā„.60,α=.7Rā„.70,cā„.60,α=.7 43.9 8.8 40.4 13.9 The repeated views are not independent verifiers; they are controlled prompt views over the same logged trajectory. Table 16 therefore reports view agreement as a diagnostic rather than as ensemble accuracy. Web tasks produce lower agreement because page state, element identity, and unsupported assumptions are more often ambiguous, which explains why repeated verification is triggered more frequently on WebArena and Mind2Web. The additional Qwen-3.5-Flash block tests whether this pattern persists under a weaker backbone. Table 16: Agreement among verification views on Qwen backbones. Rates are percentages of completed trajectories. Backbone Benchmark Boundary Full/Evid. Full/Risk All-view rate agree agree agree Qwen-3.5-Flash Terminal-Bench 2.0 15.8 87.4 82.6 79.8 SWE-Bench Verified 18.1 85.2 80.9 78.1 WebArena 24.3 81.6 75.9 71.3 Mind2Web 26.8 80.1 74.2 69.8 Qwen-3.5-Plus Terminal-Bench 2.0 14.2 89.6 85.1 82.4 SWE-Bench Verified 16.5 87.8 83.6 80.7 WebArena 21.7 84.2 78.5 74.1 Mind2Web 23.9 82.7 76.8 72.6 C.8 Runtime Feedback, Weight, and Cross-Family Verifier Results This subsection groups controls that test whether MemGuardās gains depend on privileged runtime information, a narrowly tuned ranker, or same-family verifier judgments. Because runtime status can help verifier calibration, we test a stricter setting that masks runtime feedback during admission by setting succā”(et)succ(e_t) and failā”(et)fail(e_t) to unknown. Table 17 shows that performance decreases modestly, but MemGuard remains above ReasoningBank in Table 2. This confirms that the gains are not caused by consuming benchmark gold labels. In the default setting, runtime feedback refers only to information visible to the agent process, never hidden evaluator outcomes. Table 17: Effect of masking runtime feedback during memory admission on Qwen-3.5-Plus. Variant Terminal-Bench 2.0 SWE-Bench Verified WebArena Mind2Web SR AS Resolve Rate AS SR AS SSR AS Default MemGuard 67.4 30.4 83.6 30.6 58.4 6.9 51.8 11.5 Mask runtime status 66.6 31.0 82.4 31.3 56.5 7.2 50.3 11.9 We also vary the retrieval and guard weights to check whether the hand-specified ranker is overly tuned. Table 18 compares the default development-stream weights with uniform weights, random Dirichlet weights averaged over five draws, and two simple verifier-aggregation alternatives on Qwen-3.5-Plus. The default is strongest, but uniform and random weights remain within a narrow band, suggesting that the result is not driven by a fragile weight setting. Table 18: Weight sensitivity on Qwen-3.5-Plus. Random reports the mean over five Dirichlet weight draws. Weights WebArena SR Mind2Web SSR Default 58.4 51.8 Uniform retrieval/guard 57.6 51.2 Random retrieval/guard 56.9 50.8 Completion-heavy 57.7 51.5 Execution-heavy 57.3 51.2 We also replace the verifier family in both directions to test whether the verifier signal simply echoes the agent backbone. Table 19 evaluates Qwen-3.5-Plus and Gemini-3.1-Pro agents with either same-family or cross-family verifiers across all four benchmarks. Cross-family verification slightly lowers absolute scores but preserves MemGuardās advantage over the matched ReasoningBank result in all eight agentābenchmark cells. This formal control shows that the central result does not depend on same-family self-evaluation alone. Table 19: Cross-family verifier results across all four benchmarks. Each cell reports success metric / AS; matched ReasoningBank values appear in Table 2. Agent Verifier Terminal-Bench 2.0 SWE-Bench WebArena Mind2Web Qwen-3.5-Plus Qwen-family 67.4 / 30.4 83.6 / 30.6 58.4 / 6.9 51.8 / 11.5 Qwen-3.5-Plus Gemini-family 66.7 / 30.8 82.8 / 31.1 57.1 / 7.1 51.1 / 11.8 Gemini-3.1-Pro Gemini-family 75.7 / 27.3 85.3 / 25.4 69.1 / 5.9 55.5 / 10.4 Gemini-3.1-Pro Qwen-family 74.9 / 27.7 84.4 / 25.9 68.2 / 6.1 54.6 / 10.7 C.9 Ablation Details Table 20 reports the full ablation sweep across all four benchmarks and all four backbones. The compact main-text table in Table 3 shows the Qwen-3.5-Plus slice, while this appendix table verifies that governance is the most important single-component removal for Qwen-3.5-Flash, Qwen-3.5-Plus, Gemini-3-Flash, and Gemini-3.1-Pro. Semantic-only retrieval performs worse, because it removes verifier- and conflict-aware ranking. Figure 4 visualizes the same results as success drops from the full system, making the relative importance of admission, governance, and retrieval scoring easier to inspect. Figure 4: Ablation impact across backbones. Each cell reports the success-metric drop from full MemGuard under a component removal or semantic-only retrieval control; darker cells indicate larger drops. The heatmap summarizes Table 20. Table 20: Ablation results on all four backbones. Full denotes MemGuard with all components, and Sem. Ret. denotes semantic-only retrieval. Variant Terminal-Bench 2.0 SWE-Bench Verified WebArena Mind2Web SR ā AS ā Resolve Rate ā AS ā SR ā AS ā SSR ā AS ā Qwen-3.5-Flash Full 55.8 38.8 73.4 39.9 44.2 8.7 40.7 13.8 w/o Adm. 52.7 40.5 70.5 41.7 40.0 9.8 37.6 15.4 w/o Rep. 53.9 39.9 71.2 41.2 40.8 9.6 39.5 14.5 w/o Gov. 51.6 41.4 69.1 43.0 37.2 10.6 36.1 16.2 w/o Fail. 54.8 39.8 71.8 41.1 42.7 9.6 39.4 15.2 Sem. Ret. 51.5 41.5 68.8 43.1 35.9 11.0 35.6 16.7 Qwen-3.5-Plus Full 67.4 30.4 83.6 30.6 58.4 6.9 51.8 11.5 w/o Adm. 64.4 32.0 80.9 32.5 52.8 8.0 48.0 13.1 w/o Rep. 65.3 31.5 81.5 31.7 55.6 7.4 50.0 12.2 w/o Gov. 63.7 32.6 79.8 33.0 52.0 8.5 46.8 13.8 w/o Fail. 66.1 31.4 82.2 31.5 56.5 7.8 50.7 12.8 Sem. Ret. 63.4 32.9 79.4 33.2 50.1 8.8 45.8 14.1 Gemini-3-Flash Full 61.8 34.1 80.4 36.1 50.7 8.1 43.8 12.4 w/o Adm. 58.9 35.8 78.1 37.7 46.4 9.1 40.6 14.4 w/o Rep. 59.6 35.3 78.4 37.2 48.0 8.7 41.9 13.2 w/o Gov. 57.6 36.5 75.9 38.8 43.4 9.9 38.7 15.1 w/o Fail. 60.6 35.0 78.9 37.1 48.8 9.0 42.0 13.7 Sem. Ret. 57.4 36.6 75.2 39.0 42.6 10.3 38.2 15.6 Gemini-3.1-Pro Full 75.7 27.3 85.3 25.4 69.1 5.9 55.5 10.4 w/o Adm. 72.1 29.1 81.5 27.0 64.2 6.7 51.8 11.1 w/o Rep. 73.8 28.2 83.3 26.4 65.4 6.5 53.8 11.2 w/o Gov. 71.0 29.4 79.8 27.9 61.7 7.2 50.4 12.7 w/o Fail. 74.3 28.0 83.8 26.3 67.2 6.4 54.2 11.4 Sem. Ret. 70.7 29.6 79.0 28.2 60.5 7.4 49.2 13.2 Appendix D Implementation and Audit Protocols This section specifies the implementation and audit details needed to reproduce the method-level behavior described in Section 3. Sections D.1āD.4 define the stored record schema, verifier criteria, governance operations, and fixed hyperparameters. Sections D.5āD.6 document how the appendix diagnostics were audited and how a trajectory becomes a governed memory item. Experimental outcomes are reported separately in Appendices A, C, and E. D.1 Memory Record Schema Each induced experience is stored as a structured record whose core fields include id, type, title, description, content, applicability, risk, and evidence_span. Governance then attaches persistent metadata: quality_score, confidence, verifier_label, source_status, lifecycle state, usage_count, last_used, the deduplication_signature, conflict_links, and the verifier descriptor dm=(Rm,cm,ām,νm)d_m=(R_m,c_m, _m, _m). The state field controls whether a memory is provisional, active, summarized, or archived. Retrieval uses only active and summary records by default, while failure-derived records can be rendered as constrained failure guards rather than positive action recipes. D.2 Verifier Criteria The verifier evaluates each completed trajectory using task completion, evidence consistency, execution validity, and generalizability. Boundary cases are verified repeatedly with different views of the trajectory. MemGuard aggregates the resulting score-token distributions into trajectory reward, confidence, and a verifier label as described in Section 3. Low-reward or uncertain candidates are kept provisional or down-weighted during retrieval. D.3 Governance Operations After admission, MemGuard compares new candidates with existing records to detect duplicate or conflicting experiences. Duplicate records are merged into compact summaries when they provide repeated evidence for the same reusable rule. Conflicting records are resolved by the lexicographic priority described after Equation 5. Weak, stale, or superseded records are archived when the active-memory budget is reached. Reproduction checklist. For implementation-level reproducibility, we use a hybrid retriever that combines BM25 scores and embedding cosine similarity over the record title, description, content, applicability condition, and evidence span. Retrieval first forms a top-20 candidate pool, then injects up to five positive memories, two summary memories, and two failure guards after hard filtering. The deduplication signature concatenates memory type, abstract task pattern, normalized action category, tool or website scope, and key applicability condition. Merge and conflict checks use cosine similarity over the embedded record fields plus exact-match signature features; the merge threshold is 0.86 and the conflict threshold is 0.72. Governance runs after every completed task: activation, rejection, merge, and conflict checks are immediate, while summarization and archival are triggered whenever the active-memory budget is exceeded or a record becomes stale, low-quality, or superseded. Summaries are generated with the same memory-induction model using the prompt family in Appendix B.3; they preserve covered record ids, applicability conditions, and verifier metadata. Tie-breaking for conflicting records follows verifier label, reward, confidence, recency, and usage count. D.4 Hyperparameters and Implementation Details Table 21 lists the main hyperparameters used in all experiments. We use the same values across benchmarks unless a domain-specific memory budget is shown. Hyperparameters were selected once on a small held-out development stream by coarse grid search over thresholds and by setting retrieval weights to favor relevance, verifier quality, and conflict risk; they were then fixed for all reported runs. Table 18 compares these weights against uniform and random alternatives. The β+β^+ and βāβ^- rows follow the positive retrieval terms and risk terms in Equation 3; the Ī“+Ī“^+ and Ī“āĪ“^- rows follow the failure-guard score in Equation 4. Weight orders are β+=(r,q,p,rec,use)β^+=(r,q,p,rec,use), βā=(cf,stale,ver)β^-=(cf,stale,ver), Ī“+=(r,q,p)Ī“^+=(r,q,p), and Ī“ā=(cf,stale,ovr)Ī“^-=(cf,stale,ovr). Table 21: Default MemGuard hyperparameters. Parameter Value Criteria C 4 Score tokens scoreV_score 1,2,3,4,5\1,2,3,4,5\ Token map Ļā”(v)Ļ(v) (vā1)/4(v-1)/4 Default views KviewK_view 1 Boundary views KviewK_view up to 3 Uncertainty band [0.45,0.65][0.45,0.65] Uncertainty mix α 0.5 Repeat threshold Ī·verify _verify 0.55 Activation threshold Rtā„0.70R_tā„ 0.70, ctā„0.60c_tā„ 0.60 Retrieved pool 20 candidates Injected positive memories 5 records Injected summaries 2 records Injected failure guards 2 records Failure guard relevance threshold Ī·guard _guard 0.62 Failure guard confidence Ī·guardā_ācnf _guard\_cnf 0.70 Web memory budget 512 active records Terminal/SWE budget 384 active records Merge threshold 0.86 Conflict threshold 0.72 Positive weights β+β^+ 0.40, 0.25, 0.10, 0.10, 0.15 Risk weights βāβ^- 0.20, 0.15, 0.30 Guard positive weights Ī“+Ī“^+ 0.45, 0.30, 0.25 Guard risk weights Ī“āĪ“^- 0.15, 0.15, 0.25 The verifier prompt asks the model to score task completion, evidence consistency, execution validity, and generalizability using only the logged task, trajectory, final output, and runtime-visible execution status. Hidden benchmark labels and final evaluator outcomes are excluded. Each criterion must output a score token, a short rationale, and an evidence span. The full-trajectory view contains the complete trajectory; the evidence-focused view removes unrelated intermediate turns; and the risk-focused view asks the verifier to prioritize failed branches, ambiguous observations, and unsupported assumptions. Repeated verification uses deterministic decoding with criterion-order permutations rather than random sampling, which reduces variance while exposing disagreements across views. D.5 Diagnostic Analysis Protocols The verifier calibration audit samples 100 completed trajectories from each benchmark under Qwen-3.5-Plus and Qwen-3.5-Flash. Within each benchmark-model slice, we stratify by verifier label when possible, targeting 40 verified_success, 32 verified_fail, and 28 uncertain cases; if a slice contains too few cases of one label, the remainder is filled from the nearest confidence band. Two authors independently inspect the logged task, trajectory, final output, runtime-visible feedback, and benchmark feedback after evaluation, then mark whether the verifierās final label is supported by the available evidence. Across 800 audited cases, the two annotators agree on 724 cases, corresponding to Cohenās Īŗ=0.82Īŗ=0.82; disagreements are resolved by discussion before reporting Table 10. Benchmark feedback is used only for this offline audit, not for memory admission. A false accept means the verifier promotes an unsupported or failed trajectory as reusable; a false reject means it rejects or marks uncertain a trajectory that appears successful and transferable. We separately record whether a false accept would become active positive memory after governance. In 38 of 60 false-accept cases, the record remains provisional, is routed to a failure guard, or is blocked by conflict checks; the remaining 22 cases are counted as active false accepts and are traced in Table 11. For the noise-sensitivity study, we corrupt verifier labels before memory admission while leaving all other components fixed. Corruption randomly swaps labels among verified_success, verified_fail, and uncertain; reward and confidence are adjusted consistently by moving corrupted records toward the nearest threshold interval. This setting is intentionally harsher than ordinary verifier variance because it can promote bad candidates and suppress good ones. The failure-memory audit samples 200 failure-derived candidate memories whose source trajectory or later retrieval context exposes a plausible risk, stratified across WebArena and Mind2Web and across the five risk types in Table 25. Two annotators independently classify the primary risk type and governance outcome; agreement is 177/200 with Cohenās Īŗ=0.86Īŗ=0.86. Disagreements are resolved by discussion. We classify the primary risk type by reading the source trajectory, induced memory, verifier rationale, and later retrieval context. āActiveā means that the record remains retrievable as a constrained failure guard after governance, whereas āgovernedā means that the record is rejected, kept provisional, archived, or merged into a safer summary before it can be used as an action suggestion. D.6 Memory Induction Example The memory induction module is prompt-based; the exact template is shown in Appendix B.3. Given a verifier-processed trajectory, it first identifies evidence spans that explain success or failure. It then rewrites instance-specific spans into reusable conditions by replacing concrete paths, DOM identifiers, issue names, and command arguments with abstract task patterns. Finally, it emits records using fixed core fields: type, title, description, content, applicability, risk, and evidence_span; governance then attaches verifier metadata, lifecycle state, and conflict links. Candidates without evidence spans are rejected before activation. This schema prevents the system from storing unsupported reflections and makes each memory auditable. Figure 5 illustrates this process with a web-admin failure. The logged trajectory contains an incorrect action that edits the first visible row after filtering; the induced memory is therefore represented as a failure-avoidance record with provisional state, low confidence, and an uncertain verifier label rather than as a reusable action recipe. Figure 5: Example of memory induction. A trajectory with an unsupported table-edit action is distilled into a governed memory item with content fields and persistent metadata, including type, quality, confidence, state, verifier label, and conflict links. The uncertain, low-confidence item remains a failure-avoidance guard rather than a positive action recipe. Appendix E Robustness and Governance Analyses This section focuses on whether governed memory remains stable under memory pressure and failure-derived records. It reports memory-bank health, memory-budget sensitivity, failure-memory risk analysis, a qualitative case study, and paired bootstrap significance tests. These diagnostics complement the main success metrics by showing how the memory bank evolves and how reported gains are checked statistically. E.1 Memory Health and Governance Analysis Task success alone does not show whether a memory system remains healthy over a long task stream. We therefore track governance-level statistics that directly correspond to MemGuardās design: the final number of active memories, the fraction of candidate memories rejected before activation, the fraction merged into existing records, the fraction archived by governance, and the fraction marked uncertain by repeated verification. These statistics measure whether the memory bank is merely growing or actively maintaining a compact and reliable active set. Table 22: Memory health statistics on Qwen-3.5-Plus. Act. is the final active-memory count; the remaining columns are percentages of induced candidate memories. Benchmark Act. Rej. Merge Arch. Unc. Conf. Terminal-Bench 2.0 286 18.4 22.7 14.1 9.6 6.8 SWE-Bench Verified 342 21.3 19.5 16.8 11.2 8.4 WebArena 418 29.7 24.1 21.5 17.9 13.6 Mind2Web 463 32.5 26.8 24.2 19.4 15.1 Table 22 and Figure 6 show that web benchmarks produce more rejected, uncertain, and conflict-resolved candidates than terminal or software engineering benchmarks. These columns are not mutually exclusive counts, so they should be read as governance diagnostics rather than a partition of all candidates. This pattern is consistent with the nature of web interaction: small changes in page state, website policy, or navigation history can make an experience misleading even when its surface description appears relevant. MemGuard does not treat these candidates as harmless noise. Instead, it keeps uncertain records out of active memory, merges repeated evidence into compact summaries, and archives weak or conflicting entries. This analysis supports the paperās central claim that reliable long-term experience reuse requires governance signals beyond semantic relevance. We also inspect the composition of active memory types in Table 23. Procedural hints remain the largest category across benchmarks, supporting the experience-reuse framing. Web benchmarks nevertheless contain a larger share of failure-avoidance memories because incorrect clicks, unstable page states, and misleading table orders frequently produce negative lessons. Tool-usage memories are comparatively stable across domains. This analysis explains why removing failure memories mainly affects AS: these memories often prevent repeated exploration even when they do not directly solve the task. Table 23: Active memory type distribution on Qwen-3.5-Plus. Values are percentages of active memories after governance. Benchmark Proc. Fail. Tool Terminal-Bench 2.0 49.7 27.6 22.7 SWE-Bench Verified 53.8 24.1 22.1 WebArena 46.8 30.8 22.4 Mind2Web 45.1 33.5 21.4 Figure 6: Memory-governance diagnostics on Qwen-3.5-Plus. Left: non-mutually-exclusive governance action rates over induced candidate memories; a candidate can trigger multiple actions or none of these actions, so the bars need not sum to 100%. Right: active-memory type composition after governance. The figure visualizes Tables 22 and 23. E.2 Memory Budget Sensitivity A long-running memory system should not rely on unbounded growth. We therefore vary the active-memory budget while keeping the retrieval budget fixed. Table 24 and Figure 7 report Qwen-3.5-Plus on WebArena and Mind2Web, the two settings where memory pressure is highest. Very small budgets discard useful domain-specific patterns; very large budgets retain more marginal and conflicting memories, increasing retrieval latency and slightly reducing precision. The default budget is near the best trade-off between effectiveness and memory overhead. Table 24: Memory-budget sensitivity on Qwen-3.5-Plus. Retrieval time is measured before prompt construction. Budget WebArena Mind2Web SR Ret. ms SSR Ret. ms 128 54.6 18 48.7 19 256 56.9 24 50.4 25 512 58.4 31 51.8 33 1024 57.7 46 51.5 49 Figure 7: Memory-budget sensitivity on Qwen-3.5-Plus. Left: task success metrics under different active-memory budgets. Right: retrieval latency before prompt construction. E.3 Failure-Memory Risk Analysis Learning from failed trajectories is useful only if the system prevents failure-derived memories from becoming misleading action recipes. We audit 200 failure-derived candidate memories from WebArena and Mind2Web for which the source trajectory or later retrieval context exposed a plausible risk. Table 25 categorizes the main risk in each case and records whether MemGuard allowed the item to remain active as a constrained failure guard or governed it through rejection, provisional retention, merging, or archival. The most common risks are over-generalized guards and stale page-state assumptions; both are expected in web tasks because surface descriptions can remain similar while the correct action depends on a hidden identifier, sort order, or page state. Table 25: Audit of failure-memory risks across 200 WebArena and Mind2Web cases. Counts are cases where the listed risk was the primary issue; Active means the item remains retrievable as a constrained failure guard, and Governed means it is rejected, kept provisional, merged, or archived before use as an action suggestion. Two-annotator agreement is Īŗ=0.86Īŗ=0.86. Risk type Count Active Governed Incorrect strategy extraction 36 5 31 Misattributed failure cause 44 8 36 Over-generalized guard 56 12 44 Over-specific guard 28 4 24 Stale or conflicting state 36 2 34 The audit supports the separation between positive recall and negative guards. Only 31 risky records become active, and those records are injected as constraints rather than as direct action plans. The remaining cases are rejected, kept provisional, merged into a safer summary, or archived after conflict detection. Appendix D.5 gives the annotation protocol. This behavior explains why removing failure memories in Table 20 mainly increases AS: useful failure guards reduce wasted exploration, while the governance layer limits their ability to override the current observation. E.4 Case Study: Avoiding Misleading Experience We further inspect a representative WebArena task in which the agent must update an order record in an admin interface after applying a specific filter. A previous failed trajectory produced the memory: āWhen the order table is visible, edit the first returned row after searching by customer name.ā This memory is superficially relevant to later admin tasks, but the earlier failure occurred because the table was sorted by update time rather than by exact search match. A ReasoningBank-style baseline retrieves this high-level experience as useful guidance and edits the first row, causing the later task to fail. MemGuard handles this case differently. During admission, the verifier assigns low evidence consistency because the earlier action is not supported by a stable page observation, and low generalizability because the rule depends on an unstable table ordering. Repeated verification disagrees on task completion, so the candidate is labeled uncertain with a low reward. MemGuard therefore keeps the memory provisional rather than active; if the record is retained for later audit, its verifier penalty lowers its retrieval weight. When a similar task appears later, the unstable rule is not injected; instead, the retrieved memory advises the agent to verify the exact row identifier before editing. This example illustrates how verifier reward and uncertainty labels prevent a relevant but wrong experience from becoming a persistent source of errors. E.5 Significance Tests We compute the main significance test with paired nonparametric bootstrap resampling over benchmark tasks. For each backboneābenchmark setting, we first average the paired MemGuard-minus-ReasoningBank outcome over the five matched runs, then resample task IDs with replacement 10,000 times while retaining method pairing. This treats tasks, rather than task-seed observations, as the bootstrap unit. Table 26 reports the resulting raw p-values. Table 26: Raw paired-bootstrap p-values for MemGuard vs. ReasoningBank on the primary success metric. TB2.0 and WA use SR, SWE-V uses Resolve Rate, and M2W uses SSR. Backbone TB2.0 SWE-V WA M2W Qwen-3.5-Flash 0.018 0.011 <0.001<0.001 0.006 Qwen-3.5-Plus 0.021 0.013 <0.001<0.001 <0.001<0.001 Gemini-3-Flash 0.026 0.019 0.002 0.004 Gemini-3.1-Pro 0.032 0.017 <0.001<0.001 0.002 Applying BenjaminiāHochberg correction over these 16 prespecified tests gives q=0.004q=0.004ā0.0320.032, so all 16 remain significant at FDR 0.05. Under Holm family-wise correction, conservatively treating each printed p<0.001p<0.001 as p=0.001p=0.001, 7/16 remain significant: all four WebArena comparisons and the Mind2Web comparisons for Qwen-3.5-Plus, Gemini-3-Flash, and Gemini-3.1-Pro. The five-seed means therefore all favor MemGuard, but individual runs are less uniform. Across the 320 matched settingāseedāmetric comparisons against ReasoningBank and Verifier-only Filter (16 settings Ć 5 seeds Ć 2 metrics Ć 2 baselines), MemGuard has 11 losses and one tie at the reported precision. Appendix F Reproducibility Statement All methods are evaluated with matched step budget, decoding settings, retrieval budget, and memory-context budget. AS is reported as average agent action steps per task, while verifier calls, token counts, and storage overhead are reported separately. We specify the memory schema, prompts, model versions, verifier settings, retrieval budgets, governance thresholds, and table/figure generation procedure in the appendix. Appendix G Use of LLMs LLMs are used as backbone agents, verifiers, and memory-induction modules in the experiments described in this paper. The paper draft was edited with AI assistance for language polishing, organization, and LaTeX formatting. All scientific claims, experiment design choices, benchmark descriptions, and reported numbers remain the authorsā responsibility.