Python: Allow checkpoint deserialization for orchestrations - #7626
Open
Ruiming Zhao (uuzzrm) wants to merge 1 commit into
Open
Python: Allow checkpoint deserialization for orchestrations#7626Ruiming Zhao (uuzzrm) wants to merge 1 commit into
Ruiming Zhao (uuzzrm) wants to merge 1 commit into
Conversation
Signed-off-by: Ruiming Zhao <uuzzrm@gmail.com>
Ruiming Zhao (uuzzrm)
deployed
to
github-app-auth
August 12, 2026 03:08 — with
GitHub Actions
Active
Ruiming Zhao (uuzzrm)
deployed
to
github-app-auth
August 12, 2026 03:08 — with
GitHub Actions
Active
Ruiming Zhao (uuzzrm)
deployed
to
github-app-auth
August 12, 2026 03:08 — with
GitHub Actions
Active
Ruiming Zhao (uuzzrm)
deployed
to
github-app-auth
August 12, 2026 03:08 — with
GitHub Actions
Active
Contributor
There was a problem hiding this comment.
Pull request overview
Extends restricted checkpoint decoding to support first-party orchestration request types.
Changes:
- Allowlists the
agent_framework_orchestrations.package prefix. - Adds regression coverage for Handoff and Magentic requests.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
python/packages/core/agent_framework/_workflows/_checkpoint_encoding.py |
Expands the restricted-deserialization allowlist. |
python/packages/core/tests/workflow/test_checkpoint_orchestrations_deserialization.py |
Tests orchestration request round-tripping. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
| # Module prefixes for framework-internal types that are always allowed | ||
| _FRAMEWORK_MODULE_PREFIXES = ( | ||
| "agent_framework.", | ||
| "agent_framework_orchestrations.", |
Ruiming Zhao (uuzzrm)
marked this pull request as ready for review
August 12, 2026 03:10
Ruiming Zhao (uuzzrm)
deployed
to
github-app-auth
August 12, 2026 03:10 — with
GitHub Actions
Active
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
Restricted checkpoint deserialization currently rejects pending orchestration requests from
agent_framework_orchestrations.*. The allowlist only matches the dottedagent_framework.prefix, so workflows that pause for Handoff or Magentic user input cannot be restored through the restricted checkpoint path.Description & Review Guide
agent_framework_orchestrations.package and add a focused regression test covering bothHandoffAgentUserRequestandMagenticPlanReviewRequest.I used an AI coding assistant during the investigation and validation, then reviewed the resulting patch and test coverage manually.
Related Issue
Fixes #7618
Contribution Checklist
breaking changelabel (or add [BREAKING] to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.