Skip to content
Experiment Report
Exceptional94 / 100
Evidence33/35Judgment23/25Structure19/20Usefulness19/20
A page is missing from the AI work log. Can it still resume?
Open-source engineering · Controlled comparison

A page is missing from the AI work log. Can it still resume?

Delete an event in the middle and the survivors can still be read, while their original sequence retains a gap. Resumable is not the same as complete.

2026-10-28中文 →

A page is missing from the AI work log. Can it still resume? ​

Suppose a work journal has four pages and the second page disappears. You would want to read pages three and four to learn what was completed. You would also want to know a page is missing.

A long-running AI assistant faces the same problem when it restores context from an event log. If the reader stops at the first missing file, later valid records disappear too. If it silently renumbers the survivors into a neat sequence, someone may conclude that the history was complete.

Why we investigated this change ​

In the October 28 engineering digest, OpenHands SDK PR #6197 addresses loading after an event file is lost. We wanted to check two properties together: can the remaining events be read, and can the missing event still be recognized?

The case is easy to control: write four events, delete a file in the middle, and reload. We first replayed the upstream InMemoryFileStore regressions against both revisions. We then deleted a real local file ourselves and compared two read interfaces. Neither experiment involved a real conversation.

Where do the later pages go? ​

We pinned the pre-fix source at acd96e6f and the merge commit at ded5fa5e. Five parameterized cases cover a lost middle or first file, sequence reuse, a missing parent event, and repeated warnings.

SourceFive casesObserved difference
Before the fix5/5 failedAfter a missing middle file, later surviving events were not indexed; a parent-chain lookup also failed.
Merge commit5/5 passedSurvivors remained readable, the original gap was preserved and reported, and new events did not reuse old sequence numbers.

The four-event example makes this concrete. Original on-disk sequence numbers are 0, 1, 2, 3. Remove 1, and the three readable records can be displayed at dense positions 0, 1, 2; their original sequence remains 0, 2, 3. The next event receives 4, rather than filling the old 1 slot. A convenient display position no longer pretends to be original history.

After one event is lost, survivors remain readable while the original sequence retains a gap

Figure: sequence behavior in the controlled test. The missing content was not recovered.

In another case, a surviving event points to a missing parent. The fixed reader can bridge the visible path back to an earlier surviving event and warn about the gap; it does not repeat the same warning on every traversal. The path is repaired for use; the missing fact is not restored.

We deleted a real local file too ​

To go beyond the upstream in-memory test, we used the merge commit's original EventLog and LocalFileStore to write four JSON event files in a temporary directory. We deleted sequence 1 and reloaded through a new store instance. All three survivors remained readable. Ordinary iteration showed consecutive list positions 0,1,2; reading durable sequence numbers separately showed 0,2,3. Loading also logged the missing file. The script, event IDs, and both sequences are available for inspection.

That split is the point of the story. “Can I read it?” is answered by one interface. “Is it complete?” requires another interface or the warning. We have not shown that a higher-level agent ignores this information. We have shown that a consumer of the ordinary list alone cannot see the gap in its list positions.

Resumability and completeness are different claims ​

Our observation is deliberately narrow. In both the upstream simulated gaps and our local file deletion, the fixed version kept survivors readable and preserved the gap in durable sequence numbers and logs. It does not prove recovery of damaged content or behavior under production disk failure, concurrent writers, or every packaged release. The PR is merged; we did not verify a specific release.

This raises a harder question for long-running agents: when history has a hole, does the layer that verifies the work receive a clear “evidence incomplete” signal? If it sees only the ordinary list, it may mistake recovery for completeness. Our tests did not evaluate that higher-level propagation; it is the next experiment suggested by the two read views.

Users can weigh in too: when a log is damaged, would you prefer an assistant to stop immediately, or show what can be recovered while clearly marking the missing position? The appropriate response depends on the task, but the missing fact should remain visible.

The public experiment report records pinned versions, the independent disk probe, commands, and limits. This round combines an upstream before-and-after replay with local file deletion, not a production data-loss incident. Research repository

Last updated: