fix: retain fork checkpoints with direct history ancestry - #2781
Draft
EItanya wants to merge 5 commits into
Draft
Conversation
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Retain the runtime-revision lifecycle checks previously carried by a merge commit. Align fork documentation with main requiring terminal task boundaries for checkpoints. Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
EItanya
force-pushed
the
fix/checkpoint-lineage
branch
from
September 10, 2026 16:21
619cad4 to
f13c062
Compare
EItanya
marked this pull request as ready for review
September 10, 2026 16:23
EItanya
marked this pull request as draft
September 10, 2026 16:25
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.
Forks omit inherited checkpoints because listing filters only by the instance that created them. A fork at C2 now lists C1 and C2 alongside its own checkpoints, excluding source-history boundaries after C2 and preserving each checkpoint's original provenance.
Store immutable parent-history and cutoff fields on
agent_history, renamed froma2a_contextto distinguish a history branch from its public A2A context ID. Keep the source-checkpoint reference on the instance for fork-request identity and runtime provenance. Forks continue copying bounded events and rebuilding private task projections at terminal task boundaries; ancestry traversal no longer depends on checkpoint rows. All schema changes are inline in migration 1 for the pre-release baseline.Listing bounds candidates per history before combining the checkpoint-ID page. Retained histories protect inherited checkpoints and their snapshot Tags even after all related instances are deleted; there is currently no history garbage collection. Fork creation and deletion checks share a history lock, while deletions already in progress can finish or retry. Listing by a deleted instance's former ID still returns its locally created checkpoints.
Validation:
7125643c, the database, migration, A2A gateway, checkpoint-service, and instance-service suites passed with the race detector. The E2E package compiled successfully, and full Go lint reported zero issues.