Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7462b20ab3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| On startup/session open: | ||
|
|
||
| 1. read `session.json` if present | ||
| 2. scan `events/*` from `log.lastSeq + 1` (or from start if missing) |
There was a problem hiding this comment.
Recompute replay cursor from event log
Starting recovery from log.lastSeq + 1 trusts session.json even though this document defines events/*.ndjson as authoritative; if session.json is parseable but ahead (for example after a torn/partial projection write or manual corruption), replay will skip existing events and silently produce an incomplete reconstructed state. Recovery should derive or validate the cursor from the event stream itself before skipping prior sequences.
Useful? React with 👍 / 👎.
No description provided.