{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2608-21867","title":"MemGuard: Persisting Verifier Signals for LLM-Agent Memory Governance","arxiv_id":"2608.21867","date":"2026-08-22","proceeding":null,"authors":["Haoyu Wang","Guangyuan Dong","He Liang","Zijing Zhang","Jiachen Luo","Chuang Liu","Chao Xue","Hao Tang"],"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.","url_abs":"https://arxiv.org/abs/2608.21867","url_pdf":"https://arxiv.org/pdf/2608.21867","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2608.21867","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2608.21867"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/whyyyyy123/MemGuard","reach":null}],"summary":{"ran_honours":4,"ran_violates":2,"ran_draft_wrong":5,"ran":3,"unverified":8},"by_repo_kind":{"found_in_text":{"samples":22,"ran":14,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"1ed3295c923663a0","entry":"_age_days","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1ed3295c923663a0"}},{"code_sha256_prefix":"46190085512be5a1","entry":"_is_verified_success","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"46190085512be5a1"}},{"code_sha256_prefix":"54460377e09f4f92","entry":"_make_summary_record","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"54460377e09f4f92"}},{"code_sha256_prefix":"2d262cf10a58fb63","entry":"_normalize_text","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2d262cf10a58fb63"}},{"code_sha256_prefix":"9a4ad480d7420674","entry":"_normalize_token","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9a4ad480d7420674"}},{"code_sha256_prefix":"f8163f6324dd61be","entry":"_parse_timestamp","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f8163f6324dd61be"}},{"code_sha256_prefix":"55370582150beff6","entry":"_retention_score","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"55370582150beff6"}},{"code_sha256_prefix":"f4ae4281d4257d39","entry":"_stronger_record","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f4ae4281d4257d39"}},{"code_sha256_prefix":"fcfff9d162975a44","entry":"build_signature","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fcfff9d162975a44"}},{"code_sha256_prefix":"3bc79e46d07c6eb3","entry":"canonical_token_set","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3bc79e46d07c6eb3"}},{"code_sha256_prefix":"09e53c079cc48f93","entry":"canonical_tokens","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"09e53c079cc48f93"}},{"code_sha256_prefix":"0a7496e54bac1ee4","entry":"compute_text_relevance","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0a7496e54bac1ee4"}},{"code_sha256_prefix":"0c8761b47d687424","entry":"has_negation","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0c8761b47d687424"}},{"code_sha256_prefix":"5f9acd760a957490","entry":"tokenize","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5f9acd760a957490"}},{"code_sha256_prefix":"084726e6df28f3cf","entry":"MemoryRecord","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"084726e6df28f3cf"}},{"code_sha256_prefix":"e4583c10b7a84975","entry":"MemoryState","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e4583c10b7a84975"}},{"code_sha256_prefix":"e7f0ac915b745d4f","entry":"MemoryType","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e7f0ac915b745d4f"}},{"code_sha256_prefix":"fe4477a4110d856d","entry":"_resolve_conflicts","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fe4477a4110d856d"}},{"code_sha256_prefix":"d78eac1bb02c4e9b","entry":"_similarity","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d78eac1bb02c4e9b"}},{"code_sha256_prefix":"4cc9b56ca604d3d9","entry":"may_conflict","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4cc9b56ca604d3d9"}},{"code_sha256_prefix":"477b35bb458ab53b","entry":"run_budgeted_governance","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"477b35bb458ab53b"}},{"code_sha256_prefix":"24882a9c1b05b99b","entry":"signature_similarity","repo":"whyyyyy123/MemGuard","repo_kind":"found_in_text","path":"src/memguard/memory/governance.py","file_url":"https://github.com/whyyyyy123/MemGuard/blob/HEAD/src/memguard/memory/governance.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"24882a9c1b05b99b"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,264 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6264},"entries":[],"not_placed":{"boards":1,"rejected_by_independent_check":0,"refused_by_a_rule":1,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}