Python: Fix checkpoint pickling of runtime raw representations - #8023
Merged
Evan Mattson (moonbox3) merged 7 commits intoSep 4, 2026
Conversation
Dineshsuriya D (droideronline)
temporarily deployed
to
github-app-auth
September 3, 2026 07:35 — with
GitHub Actions
Inactive
Dineshsuriya D (droideronline)
temporarily deployed
to
github-app-auth
September 3, 2026 07:35 — with
GitHub Actions
Inactive
Dineshsuriya D (droideronline)
temporarily deployed
to
github-app-auth
September 3, 2026 07:35 — with
GitHub Actions
Inactive
Dineshsuriya D (droideronline)
force-pushed
the
fix/checkpoint-raw-representation-pickle
branch
from
September 3, 2026 07:35
ff2e3fa to
2d028e3
Compare
Dineshsuriya D (droideronline)
temporarily deployed
to
github-app-auth
September 3, 2026 07:35 — with
GitHub Actions
Inactive
Dineshsuriya D (droideronline)
force-pushed
the
fix/checkpoint-raw-representation-pickle
branch
from
September 3, 2026 07:35
2d028e3 to
fe6d664
Compare
Dineshsuriya D (droideronline)
temporarily deployed
to
github-app-auth
September 3, 2026 07:35 — with
GitHub Actions
Inactive
Eduard van Valkenburg (eavanvalkenburg)
approved these changes
Sep 3, 2026
Eduard van Valkenburg (eavanvalkenburg)
enabled auto-merge
September 3, 2026 08:07
Eduard van Valkenburg (eavanvalkenburg)
disabled auto-merge
September 3, 2026 08:10
Dineshsuriya D (droideronline)
requested a review
from Evan Mattson (moonbox3)
September 3, 2026 08:19
Dineshsuriya D (droideronline)
temporarily deployed
to
github-app-auth
September 3, 2026 08:20 — with
GitHub Actions
Inactive
Dineshsuriya D (droideronline)
deployed
to
github-app-auth
September 3, 2026 10:53 — with
GitHub Actions
Active
Dineshsuriya D (droideronline)
requested a review
from Evan Mattson (moonbox3)
September 3, 2026 10:53
Evan Mattson (moonbox3)
approved these changes
Sep 3, 2026
Evan Mattson (moonbox3)
enabled auto-merge
September 3, 2026 11:15
auto-merge was automatically disabled
September 3, 2026 11:20
Head branch was pushed to by a user without write access
Dineshsuriya D (droideronline)
deployed
to
github-app-auth
September 3, 2026 11:20 — with
GitHub Actions
Active
Evan Mattson (moonbox3)
enabled auto-merge
September 3, 2026 21:50
Evan Mattson (moonbox3)
requested a review
from Jose Alvarez (jpalvarezl)
as a code owner
September 4, 2026 00:36
Evan Mattson (moonbox3)
deployed
to
github-app-auth
September 4, 2026 00:36 — with
GitHub Actions
Active
auto-merge was automatically disabled
September 4, 2026 06:08
Head branch was pushed to by a user without write access
Dineshsuriya D (droideronline)
deployed
to
github-app-auth
September 4, 2026 06:08 — with
GitHub Actions
Active
Dineshsuriya D (droideronline)
requested a review
from Evan Mattson (moonbox3)
September 4, 2026 06:15
Evan Mattson (moonbox3)
approved these changes
Sep 4, 2026
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 & Context
Workflow checkpoint creation fails when A2A responses are present in workflow state. A2A protobuf objects such as
a2a_pb2.Partcan be retained in frameworkraw_representationfields, but the generated module is not importable by Python pickle. The workflow continues, but the affected checkpoint is skipped and durable workflow recovery can lose that checkpoint boundary.This change ensures provider-specific runtime objects do not prevent framework-native workflow state from being persisted.
Description & Review Guide
SerializationMixinandContent._SHALLOW_COPY_FIELDS, includingraw_representation, from pickle state.Noneafter unpickling.Content._SHALLOW_COPY_FIELDSis the right source of truth for pickle exclusion.Noneis appropriate for checkpoint resume semantics.Related Issue
Fixes #8022
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix) — a workflow keeps the label and title prefix in sync automatically.