Repository navigation
Conversation
Collaborator
Kaap10
requested changes
Nov 21, 2026
Kaap10
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for working on this! The snapshot data model, in-memory isolation, and tests are a great starting point.
However, there are a few important issues that need to be addressed before we can merge:
- Checkpoint ID self-loop in
fork_from_snapshot: When forking,forked_cp_idreusessource.checkpoint_id, andparent_checkpoint_idis also set tosource.checkpoint_id. This makes the checkpoint its own parent (checkpoint_id == parent_checkpoint_id). A new thread should generate its own unique checkpoint ID. override_inputsdoes not update Checkpoint state:override_inputsupdatesSnapshot.inputs, butCheckpoint.stateis copied without changes. When an agent resumes on the new thread, it readsCheckpoint.stateand still sees the old goal/messages.- Incomplete Replay test:
test_react_agent_snapshot_capture_and_replayonly checks dictionary values after forking. It doesn't actually run the agent again to test replay with overridden inputs. - DynamoDB redundant read:
DynamoDBCheckpointer.save_snapshotcallsget_itembeforeput_item. TheConditionExpression="attribute_not_exists(pk)"input_itemalready prevents overwrites atomically. - PR description format: Please update the PR description to follow
.github/pull_request_template.mdand remove the escaped backslashes (\).
Please see the inline comments below for suggested fixes.
Collaborator
Author
|
Thanks @Kaap10 for the thorough review! All requested changes have been addressed:
|
Kaap10
approved these changes
Nov 23, 2026
Kaap10
left a comment
Collaborator
There was a problem hiding this comment.
LGTM! Thanks for addressing all the feedback quickly. The unique checkpoint ID generation on fork, state updates for overridden inputs, and end-to-end replay test look great. Approved and ready to merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Introduces snapshots for agent run state persistence, time-travel rewind, and replay with input overrides in dynaflow, addressing issue #281.
Related issue
Fixes #281
Changes
Testing
pytest tests/test_snapshots.py tests/test_checkpointer.py-> 19 passed)ruff check src/dynavec/checkpoint.py tests/test_snapshots.py-> All checks passed)mypy src/dynavec/checkpoint.py-> Success: no issues found)Checklist