Repository navigation
fix(memory-wiki): prevent partial failures during concurrent agent writes - #103408
Conversation
|
Codex review: found issues before merge. Reviewed July 10, 2026, 6:44 AM ET / 10:44 UTC. Summary PR surface: Source +56, Tests +153, Docs +1. Total +210 across 6 files. Reproducibility: yes. at high confidence from source and supplied live proof: current main performs a page mutation followed by an uncoordinated whole-vault compile, and the real sixteen-call Gateway workload observed six compile-stage failures. Review metrics: none identified. Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep the focused same-process Do we have a high-confidence way to reproduce the issue? Yes at high confidence from source and supplied live proof: current main performs a page mutation followed by an uncoordinated whole-vault compile, and the real sixteen-call Gateway workload observed six compile-stage failures. Is this the best way to solve the issue? Yes for the demonstrated same-process Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 29d018f0af5e. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +56, Tests +153, Docs +1. Total +210 across 6 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
f66649f to
8247ebf
Compare
|
Merged via squash.
|
…ites (openclaw#103408) * fix(memory-wiki): serialize concurrent apply transactions * chore(memory-wiki): leave release note to release workflow
Closes #103400
Related: #91828, #94443, #98787, #103349
What Problem This Solves
Fixes an issue where simultaneous agent turns writing one Memory Wiki vault could report
wiki_applyfailure after the primary page had already been committed. Under a local 8+8 support/marketing email burst, six of 16 tool calls failed during compile even though all 16 synthesis pages existed afterward.Why This Change Was Made
The complete
wiki_applymutation-plus-compile sequence now runs through a reentrant queue keyed by the resolved vault path. Writes to one agent vault are serialized, while different agent vaults remain parallel; standalone compiles use the same coordinator. Bridge/source-sync coalescing and cross-process CLI/Gateway coordination remain separate work.User Impact
Bursty email ingestion and other concurrent agent turns can update the same Memory Wiki vault without partial-success tool errors or lost disjoint metadata. Support and marketing agents with separate vaults still write concurrently and remain isolated.
AI-assisted: yes. The implementation was source-reviewed, behavior-tested through a real local Gateway/tool loop, and passed the repository's structured autoreview.
Evidence
Before-fix local product path:
wiki_applycalls.wiki_applycalls failed during compile (path changed during read/unable to resolve opened file path).After-fix replay of the same workload:
wiki_applyfailures.Focused local proof:
Blacksmith Testbox through Crabbox (
tbx_01kx56fg3xhjypxg7k9megebb2):Autoreview: