Skip to content

Snapshot session records and tokens atomically - #74

Open
nightlessbaron wants to merge 18 commits into
prodfrom
agent/atomic-session-snapshot
Open

nightlessbaron wants to merge 18 commits into
prodfrom
agent/atomic-session-snapshot

Conversation

@nightlessbaron

Copy link
Copy Markdown

Summary

  • take the legacy session records and accumulated-token checkpoint under one lock
  • prevent GET from returning N records with N+1 turns of tokens during the Phase-3 commit window
  • copy the snapshot before response serialization

Dependency

This is stacked on #66 and temporarily includes #66 in the prod diff. Rebase onto prod after #66 lands.

@nightlessbaron
nightlessbaron marked this pull request as ready for review August 28, 2026 17:23
@nightlessbaron
nightlessbaron requested a review from a team August 28, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants