.NET: Fix CheckpointInfo.Parent always null in InProcessRunner#3812
Open
.NET: Fix CheckpointInfo.Parent always null in InProcessRunner#3812
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes missing checkpoint lineage in the .NET in-process workflow runner by populating Checkpoint.Parent so checkpoints form a navigable chain (including after resume), improving restore-point visualization and time-travel debugging.
Changes:
- Track the previously committed checkpoint in
InProcessRunnerand pass it as the parent when committing the next checkpoint. - When restoring from a checkpoint, set that checkpoint as the parent of the next checkpoint created.
- Add unit tests intended to validate parent chaining across normal execution and resume scenarios.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| dotnet/src/Microsoft.Agents.AI.Workflows/InProc/InProcessRunner.cs | Track and apply the last checkpoint info as Checkpoint.Parent, including after restore. |
| dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/CheckpointParentTests.cs | Adds tests for parent = null on first checkpoint, chaining on subsequent checkpoints, and parent after resume. |
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/CheckpointParentTests.cs
Outdated
Show resolved
Hide resolved
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/CheckpointParentTests.cs
Show resolved
Hide resolved
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/CheckpointParentTests.cs
Outdated
Show resolved
Hide resolved
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/CheckpointParentTests.cs
Outdated
Show resolved
Hide resolved
dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/CheckpointParentTests.cs
Outdated
Show resolved
Hide resolved
a49bb6b to
d3d9eef
Compare
d3d9eef to
3ef3001
Compare
markwallace-microsoft
approved these changes
Feb 10, 2026
3ef3001 to
9edf1a6
Compare
Track the last CheckpointInfo in InProcessRunner so that newly created checkpoints reference their parent. When resuming from a checkpoint, the resumed-from checkpoint becomes the parent of the next checkpoint. Adds tests verifying: - First checkpoint has null parent - Subsequent checkpoints chain parents correctly - Checkpoint after resume references the resumed-from checkpoint
9edf1a6 to
39a4478
Compare
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.
Motivation and Context
We added
Checkpoint.Parentto have lineage information, and to enable a better visualization of the various restorable points in the history, particularly during TimeTravel Debugging, but we never filled it in.Description
Track the last CheckpointInfo in InProcessRunner so that newly created checkpoints reference their parent. When resuming from a checkpoint, the resumed-from checkpoint becomes the parent of the next checkpoint.
Fixes #3796
Adds tests verifying:
Contribution Checklist
Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.