Add readable Markdown article for OpenClaw lost-ack retry study
Browse files
openclaw-lost-ack-20260927/SHA256SUMS.json
CHANGED
|
@@ -47,5 +47,6 @@
|
|
| 47 |
"openclaw-lost-ack-20260927/tools/probe_openclaw_lost_ack.py": "219372a78deddfcdaf67cdfb9feb50cc65d4fb0892fd38bf25857a6763563403",
|
| 48 |
"openclaw-lost-ack-20260927/tools/probe_openclaw_lost_ack_host.py": "e2773ee8dbe0a64610e367a30c01a66156c1c2a29977ed995be7206cc177bbf4",
|
| 49 |
"paper/openclaw-lost-ack/atmem-openclaw-lost-ack-retry.pdf": "17fbb8a4a1f177ec007f5828cb29ee5fcec3ade676217cf8994facfe16b3cbd6",
|
| 50 |
-
"paper/openclaw-lost-ack/main.tex": "0a2e5e4475306a3b8323c2cf0e052a2e1ae37de1eb70c0fc3aafafa7f6a62515"
|
|
|
|
| 51 |
}
|
|
|
|
| 47 |
"openclaw-lost-ack-20260927/tools/probe_openclaw_lost_ack.py": "219372a78deddfcdaf67cdfb9feb50cc65d4fb0892fd38bf25857a6763563403",
|
| 48 |
"openclaw-lost-ack-20260927/tools/probe_openclaw_lost_ack_host.py": "e2773ee8dbe0a64610e367a30c01a66156c1c2a29977ed995be7206cc177bbf4",
|
| 49 |
"paper/openclaw-lost-ack/atmem-openclaw-lost-ack-retry.pdf": "17fbb8a4a1f177ec007f5828cb29ee5fcec3ade676217cf8994facfe16b3cbd6",
|
| 50 |
+
"paper/openclaw-lost-ack/main.tex": "0a2e5e4475306a3b8323c2cf0e052a2e1ae37de1eb70c0fc3aafafa7f6a62515",
|
| 51 |
+
"paper/openclaw-lost-ack/article.md": "a5e506367cc9bf1dab23e5c817d86f0c9a35a42110a9d770b8ae7dd4d214356f"
|
| 52 |
}
|
paper/openclaw-lost-ack/article.md
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# The memory was saved. The confirmation was lost. What happens when the agent retries?
|
| 2 |
+
|
| 3 |
+
**Javad Taghia · AtMem.Ai Lab · 27 September 2026**
|
| 4 |
+
|
| 5 |
+
An agent asks its memory system to save a fact. The system saves it, but the confirmation never reaches the agent. The agent sees a timeout and tries again.
|
| 6 |
+
|
| 7 |
+
What does it read back afterward: one complete memory, two duplicates, a conflicting version, or a record with missing metadata?
|
| 8 |
+
|
| 9 |
+
We tested this failure sequence with AtMem and OpenClaw. In the tested configuration, the retry returned the **original record**, marked `already_stored`. Reading it back returned the complete original fact. The final store contained one active record, with no duplicate or conflicting record and a valid audit chain.
|
| 10 |
+
|
| 11 |
+
The result comes from a small, reproducible engineering test: five isolated bridge crash trials, three actual OpenClaw gateway crash trials, and one gateway no-fault control. All final qualification trials passed. The agent's tool-call sequence was scripted through a local model endpoint; this was not an evaluation of an autonomous model's recovery decisions.
|
| 12 |
+
|
| 13 |
+
## Why recall accuracy cannot answer this question
|
| 14 |
+
|
| 15 |
+
A recall test typically asks whether the system can retrieve the information needed to answer a question. That is useful, but it does not necessarily reveal what happened during a failed write request.
|
| 16 |
+
|
| 17 |
+
A system might retrieve the right sentence while storing it twice. It might preserve the text but change its source linkage. Or the agent might mistake a timeout for proof that nothing was saved and repeat an operation that already completed.
|
| 18 |
+
|
| 19 |
+
To answer the retry question, we need to inspect both the result presented to the agent and the persistent state behind it.
|
| 20 |
+
|
| 21 |
+
## The exact sequence we tested
|
| 22 |
+
|
| 23 |
+
The synthetic user request was:
|
| 24 |
+
|
| 25 |
+
> Remember that I prefer cobalt blue notebooks.
|
| 26 |
+
|
| 27 |
+
The memory tool received this fact:
|
| 28 |
+
|
| 29 |
+
> User prefers cobalt blue notebooks.
|
| 30 |
+
|
| 31 |
+
It used the memory slot `notebook_preference`.
|
| 32 |
+
|
| 33 |
+
We then exercised the five steps directly:
|
| 34 |
+
|
| 35 |
+
1. **The agent sends the write.** OpenClaw calls the real AtMem `memory_remember` tool.
|
| 36 |
+
2. **The memory system saves it.** The backend finishes the operation and produces a successful response containing the new record.
|
| 37 |
+
3. **The acknowledgement is lost.** A test proxy intercepts that response, saves it as evaluator evidence, withholds it from OpenClaw, and kills the memory backend with `SIGKILL`.
|
| 38 |
+
4. **The agent sees a timeout and retries.** The bridge's real request deadline expires after 2,000 milliseconds. OpenClaw subsequently retries the same fact with a new tool-call identifier, using a fresh backend connection to the same database.
|
| 39 |
+
5. **The agent reads the memory back.** OpenClaw calls `memory_get` using the record identifier returned by the retry.
|
| 40 |
+
|
| 41 |
+
The evaluator's saved copy of the lost response is not given to the agent. OpenClaw sees the timeout and obtains the record identifier through its retry.
|
| 42 |
+
|
| 43 |
+
The process killed in this experiment is the memory backend. OpenClaw's gateway and the operating system remain running.
|
| 44 |
+
|
| 45 |
+
## What OpenClaw received
|
| 46 |
+
|
| 47 |
+
The first write call returned a timeout to OpenClaw:
|
| 48 |
+
|
| 49 |
+
```text
|
| 50 |
+
atmem tools/call timed out after 2000ms
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
The retry then returned these values:
|
| 54 |
+
|
| 55 |
+
| Field | Observed value |
|
| 56 |
+
| --- | --- |
|
| 57 |
+
| `stored` | `true` |
|
| 58 |
+
| `status` | `already_stored` |
|
| 59 |
+
| `record_id` | The original record's identifier |
|
| 60 |
+
| `fact` | `User prefers cobalt blue notebooks.` |
|
| 61 |
+
|
| 62 |
+
The subsequent `memory_get` returned:
|
| 63 |
+
|
| 64 |
+
```text
|
| 65 |
+
User prefers cobalt blue notebooks.
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
That answers the immediate question: **the agent read the complete original memory, and the retry was recognized as already stored.**
|
| 69 |
+
|
| 70 |
+
## What we checked beyond the returned text
|
| 71 |
+
|
| 72 |
+
We did not stop at checking that the expected sentence appeared in the tool response.
|
| 73 |
+
|
| 74 |
+
The final store contained exactly one record, even when enumeration included inactive records. It remained active and retained its original identifier, source turn, episode linkage, fact key, and trust metadata. There was no superseding record, and the record generation remained zero.
|
| 75 |
+
|
| 76 |
+
The bridge trials additionally compared the complete record dictionaries before and after retry. They were identical, including the creation timestamp and metadata. Each bridge trial tested a retry with the original tool-call ID and then another retry with a new ID.
|
| 77 |
+
|
| 78 |
+
Each final trial retained one `memory.record_created` audit event and passed audit-chain verification. The gateway trials also passed SQLite integrity and foreign-key checks.
|
| 79 |
+
|
| 80 |
+
Retries were still visible in the audit history: the bridge trials recorded two semantic duplicate events, and the gateway trials recorded one. One preserved memory record does not mean that only one tool invocation occurred.
|
| 81 |
+
|
| 82 |
+
## Results and controls
|
| 83 |
+
|
| 84 |
+
| Final qualification condition | Runs | Passed |
|
| 85 |
+
| --- | ---: | ---: |
|
| 86 |
+
| Isolated OpenClaw bridge: lost acknowledgement, same-ID and new-ID retries | 5 | 5 |
|
| 87 |
+
| Actual OpenClaw gateway: lost acknowledgement, new-ID retry and read-back | 3 | 3 |
|
| 88 |
+
| Actual OpenClaw gateway: no-fault control | 1 | 1 |
|
| 89 |
+
|
| 90 |
+
Every trial used a fresh store and the same synthetic fact. The no-fault control deliberately repeated a successful write; it also returned the existing record and read back the complete fact.
|
| 91 |
+
|
| 92 |
+
These counts describe repeated deterministic tests at one failure boundary. They are not a measured production failure rate, a comparison against competing memory systems, or evidence that every possible write is safe to retry.
|
| 93 |
+
|
| 94 |
+
The final qualification used a clean source snapshot at commit `da046dc59fd41fdd77ed407d8f196cfc434b478c`. The bridge declares version 2.3.7, and the installed OpenClaw runtime reports 2026.9.1 (`ad6fe23`). The evidence bundle records source hashes and runtime details. This qualifies that source and configuration, rather than certifying a newly published package release.
|
| 95 |
+
|
| 96 |
+
## What “actual OpenClaw” means here
|
| 97 |
+
|
| 98 |
+
The gateway trials ran the installed OpenClaw runtime, the real registered memory tools, the production bridge, and the real Python MCP backend with a file-backed SQLite store. OpenClaw's normal lifecycle hooks staged the source message.
|
| 99 |
+
|
| 100 |
+
A local OpenAI-compatible endpoint supplied a fixed tool-call sequence: write, retry, read, finish. OpenClaw performed the calls and supplied their actual results to that endpoint. The endpoint chose the read identifier from the observed retry result.
|
| 101 |
+
|
| 102 |
+
This made the failure sequence repeatable without paid model inference. It demonstrates that the integration handles this sequence. It does not demonstrate that an autonomous model will always choose to retry correctly or preserve the same fact wording.
|
| 103 |
+
|
| 104 |
+
The gateway driver waited 600 milliseconds before each scripted response, allowing the bridge's 250-millisecond idle-close interval to dispose of the failed connection. Immediate retry on a still-open failed connection was not tested.
|
| 105 |
+
|
| 106 |
+
## We also retained the unsuccessful setup runs
|
| 107 |
+
|
| 108 |
+
Before final qualification, two embedded OpenClaw CLI attempts could not establish the current typed user-message binding. The memory tool rejected their writes, no record was created, and the fault was never injected.
|
| 109 |
+
|
| 110 |
+
Those attempts are recorded as setup failures. They are not counted as successful crash tests. An isolated gateway startup subsequently reached the intended write and fault sequence. The study does not establish the root cause of the embedded CLI behavior or claim that it was fixed.
|
| 111 |
+
|
| 112 |
+
The published development evidence also includes six earlier passing bridge trials and one passing gateway trial. These are kept separate from the final qualification counts above.
|
| 113 |
+
|
| 114 |
+
## What this test does not establish
|
| 115 |
+
|
| 116 |
+
The test interrupted delivery of a response **after the write had completed**. It did not kill the backend halfway through a SQL transaction. Consequently, it does not establish that a partially written memory record cannot occur at another failure point.
|
| 117 |
+
|
| 118 |
+
It also did not test sudden power loss, a whole-machine crash, damaged storage, concurrent writers, or distributed replicas. Retries used identical fact bytes, the same slot, and the same source binding. Paraphrased facts and conflicting updates require separate tests.
|
| 119 |
+
|
| 120 |
+
The tested direct-memory tool profile is one OpenClaw integration configuration. Results should not be generalized to every managed control-plane setup or arbitrary external tool.
|
| 121 |
+
|
| 122 |
+
The supported claim is precise: **when this exact memory write completed but its response was lost, a retry after reconnection returned the original complete record without creating a duplicate.**
|
| 123 |
+
|
| 124 |
+
## Paper, source, and evidence
|
| 125 |
+
|
| 126 |
+
The three-page technical note provides the protocol, assertions, results, and limitations in the same LaTeX format as our earlier memory-integrity paper.
|
| 127 |
+
|
| 128 |
+
- [Read the paper: *When the Write Lands but the Acknowledgement Is Lost*](https://huggingface.co/datasets/atmem/memory-integrity-continuity/blob/main/paper/openclaw-lost-ack/atmem-openclaw-lost-ack-retry.pdf)
|
| 129 |
+
- [LaTeX source](https://huggingface.co/datasets/atmem/memory-integrity-continuity/blob/main/paper/openclaw-lost-ack/main.tex)
|
| 130 |
+
- [Per-run evidence, test programs, checksums, and reproduction instructions](https://huggingface.co/datasets/atmem/memory-integrity-continuity/tree/main/openclaw-lost-ack-20260927)
|
| 131 |
+
- [Earlier paper: *Beyond Recall Accuracy*](https://huggingface.co/datasets/atmem/memory-integrity-continuity/blob/main/paper/atmem-memory-integrity-and-continuity.pdf)
|
| 132 |
+
|
| 133 |
+
The new supplement leaves the earlier paper and its benchmark results unchanged.
|