[Python] Restore final beta compatibility fixes - #81
Merged
Chris Gillum (cgillum) merged 2 commits intoSep 1, 2026
Merged
Conversation
Port the checkpoint and feature-usage behavior that landed in the final public betas after this repository was extracted. Raise the Agent Framework Core floor and refresh the lock for Core 1.16 compatibility. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7011ed65-8e86-4f12-98a2-a54d76b858bc
Contributor
There was a problem hiding this comment.
Pull request overview
Restores Python durable-extension behaviors that shipped in the last published beta packages by (1) explicitly rejecting checkpoint construction in activity runner contexts, (2) emitting Agent Framework Core feature-usage telemetry at the intended activation points, and (3) aligning both Python packages’ Core dependency floor to >=1.13.0,<2 (with corresponding lock refresh).
Changes:
- Add explicit
build_checkpoint(...)NotImplementedErroroverrides to capturing runner contexts (Durable Task + Azure Functions) and corresponding tests. - Add per-package
FeatureIndexenums and callmark_feature_used(...)from key entrypoints, with tests validating the feature index activation. - Raise
agent-framework-coreminimum version to1.13.0in both packages and updateuv.lockto resolve a newer Core (1.16.0) plus transitive deps.
Reviewed changes
Copilot reviewed 14 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| python/uv.lock | Updates Core floor and resolved versions; adds msgspec as a transitive dependency. |
| python/packages/durabletask/pyproject.toml | Bumps agent-framework-core requirement to >=1.13.0,<2. |
| python/packages/azurefunctions/pyproject.toml | Bumps agent-framework-core requirement to >=1.13.0,<2. |
| python/packages/durabletask/agent_framework_durabletask/_workflows/runner_context.py | Adds explicit build_checkpoint rejection for activity context. |
| python/packages/azurefunctions/agent_framework_azurefunctions/_context.py | Adds explicit build_checkpoint rejection for activity context. |
| python/packages/durabletask/agent_framework_durabletask/_worker.py | Marks Durable Task feature usage when the worker starts. |
| python/packages/durabletask/agent_framework_durabletask/_shim.py | Marks Durable Task feature usage when the shim run() is invoked. |
| python/packages/azurefunctions/agent_framework_azurefunctions/_app.py | Marks Azure Functions feature usage during app initialization. |
| python/packages/durabletask/agent_framework_durabletask/_feature_usage.py | Introduces Durable Task feature index enum. |
| python/packages/azurefunctions/agent_framework_azurefunctions/_feature_usage.py | Introduces Azure Functions feature index enum. |
| python/packages/durabletask/tests/test_worker.py | Verifies worker start triggers feature usage marking. |
| python/packages/durabletask/tests/test_shim.py | Verifies shim run triggers feature usage marking. |
| python/packages/durabletask/tests/test_runner_context.py | Adds coverage for build_checkpoint raising in Durable Task capturing context. |
| python/packages/azurefunctions/tests/test_func_utils.py | Adds coverage for build_checkpoint raising in Azure Functions capturing context. |
| python/packages/azurefunctions/tests/test_app.py | Verifies app init triggers feature usage marking. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7011ed65-8e86-4f12-98a2-a54d76b858bc
Chris Gillum (cgillum)
marked this pull request as ready for review
September 1, 2026 16:14
Chris Gillum (cgillum)
requested review from
Ahmed Muhsin (ahmedmuhsin) and
Laveesh Rohra (larohra)
September 1, 2026 16:15
Laveesh Rohra (larohra)
approved these changes
Sep 1, 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.
Why
The durable extension repository was extracted before the final Python 1.13.0 beta publishing cut. As a result, the public
agent-framework-durabletask==1.0.0b260730andagent-framework-azurefunctions==1.0.0b260730include two package-specific compatibility changes that are absent here.This PR restores those changes directly against
main. It is independent of PR #58 and does not use its package-version changes.What changes
Capturing runner contexts now reject checkpoint construction explicitly. This preserves the activity-context contract with newer Agent Framework Core releases instead of inheriting a protocol stub that returns
None.Durable Task and Azure Functions now mark their final-beta feature indexes at the same activation points used by the published packages. This lets Agent Framework Core include feature usage in User-Agent telemetry.
Both packages now require
agent-framework-core>=1.13.0,<2. The lock resolves Core 1.16 and itsmsgspecdependency, while Azure Functions keeps its existingagent-framework-durabletask>=1.0.0b260709,<2dependency.Compatibility
Review focus
Please verify that the checkpoint failure behavior and feature activation points match the final beta contract, and that the lockfile change is limited to the required Core floor and transitive dependency.