python-feature-lifecycle
Skill14k starsChanged 10 months agoMITView on GitHub
Guidance for package and feature lifecycle in the Agent Framework Python codebase, including stage meanings, feature-stage decorators, feature enums, and how to move APIs from one stage to the next.
Trending
More talk lately.about the whole repository
Who's talking about microsoft/agent-framework
- microsoft/vscode-dotnettools“Project system data flow 'CapabilitiesScope Aggregating Publishing: 46625485' closed because of an exception.”GitHub · Nov 4, 2025 · 9 reactions
- @aymericw.bsky.social“Hyperlight codeact disponible en #dotnet et en #python dans Microsoft agent framework #opensource #ai …”Bluesky · May 12, 2026 · 5 likes
- @jeremymorgan.com“Microsoft made multi-agent workflows boring in the best way. Graph orchestration, OpenTelemetry, …”Bluesky · May 1, 2026 · 5 likes
- A Hacker News story“Microsoft's new framework for building and orchestrating AI agents”Hacker News · Apr 4, 2026 · 4 points
- microsoft/AgentSchema“Add headers to McpTool spec”GitHub · Mar 23, 2026 · 4 reactions
The biggest 5 of 31 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 31
Talked about on GitHub, Bluesky and Hacker News (31 times).
On GitHub · 17
- Nov 4, 2025Project system data flow 'CapabilitiesScope Aggregating Publishing: 46625485' closed because of an exception. — microsoft/vscode-dotnettools9 reactions · 13 comments
- Mar 23, 2026Add headers to McpTool spec — microsoft/AgentSchema4 reactions
- Mar 19, 2026Foundry Hosted Agent from_agent_framework removes Authorization Header disabling OBO possibilities — Azure/azure-sdk-for-python4 reactions · 14 comments
- Mar 19, 2026Tool Search Tool feature similar to anthropic — google/adk-python3 reactions · 6 comments
- Dec 4, 2025Add Agent Framework DevUI Integration — microsoft/aspire2 reactions · 4 comments
12 more on GitHub
- Oct 3, 2025Built-in Agent Framework integration — microsoft/prompty2 reactions · 2 comments
- Oct 4, 2026[AgentServer] Resilient Responses turn hangs `in_progress` after graceful shutdown: deferral task update returns 400 and the task is left `suspended` — Azure/azure-sdk-for-net1 reaction · 3 comments
- Sep 23, 2026[azure-search-documents] Enable HTTPX async transport for AnyIO/Trio callers — Azure/azure-sdk-for-python1 reaction · 3 comments
- Sep 18, 2026[Bug]: Background Responses calls on gpt-5.4 return reasoning_tokens equal to output_tokens — Azure/azure-sdk-for-python1 reaction
- Sep 8, 2026[azure-ai-agentserver-responses] Failed response inputs are replayed in conversation history — Azure/azure-sdk-for-python1 reaction · 1 comment
- Aug 18, 2026.NET: Published packages are still built from `microsoft/agent-framework`, so fixes merged here don't reach NuGet — microsoft/agent-framework-durable-extension1 reaction · 2 comments
- Jun 11, 2026Align All Samples with Official Microsoft Agent Framework Samples and Remove Shared Dependencies — punitkshah/FoundryFeatures1 reaction
- May 1, 2026Microsoft Agent Framework 의 기능을 이용한 Multi-Turn Functionality — MSFT-AI-BUILD-INTERNAL/agentic-devops-starter1 reaction
- Apr 16, 2026Add Aspire DevUI Integration — leslierichardson95/aspire-agent-template1 reaction · 1 comment
- Oct 16, 2025[feat] Add TypeScript SDK — manekinekko/agent-framework1 reaction
- Oct 2, 2025Add Agent Framework Scenario: Shopping Assistant — Azure-Samples/eShopLite1 reaction · 1 comment
- Feb 27, 2026NuGet: Bump the microsoftagents group with 2 updates — foxminchan/BookWorm0 reactions · 2 comments
On Bluesky · 10
- May 12, 2026Hyperlight codeact disponible en #dotnet et en #python dans Microsoft agent framework #opensource #ai github.com/microsoft/ag... — @aymericw.bsky.social5 likes and reposts
- May 1, 2026Microsoft made multi-agent workflows boring in the best way. Graph orchestration, OpenTelemetry, time-travel debugging, durable execution.… — @jeremymorgan.com5 likes and reposts · 1 reply
- Apr 6, 2026🤖 Microsoft drops agent-framework today! AutoGen + Semantic Kernel merged for multi-agent AI workflows. Native Python & .NET support.… — @just--bruno.bsky.social2 likes and reposts · 1 reply
- Oct 12, 2025#Autogen was part of my first experiments into multi-agentic AI and I certainly learnt a lot from the platform (including from @ag2oss &… — @5h15h.bsky.social2 likes and reposts
- Jul 17, 2026My first contribution to the Microsoft Agent Framework just got merged! 🚀 I'm excited to contribute to this ecosystem!… — @handle.invalid1 likes and repost
5 more on Bluesky
- Apr 5, 2026Microsoftから新フレームワーク「agent-framework」が登場。 Pythonと.NETに対応し、グラフベースで複雑なAIエージェントのワークフローを構築可能。チェックポイントや人介在(Human-in-the-loop)、タイムトラベル機能まで標準装備なのが熱い… — @woody-ai-tools.bsky.social1 likes and repost
- Oct 14, 2025agent-framework A framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and .NET.… — @pythonhub.dev1 likes and repost
- Oct 3, 2025Agent Framework brings the production ready focus of Semantic Kernel with full C#/Python support, as well as the nimble intuitive interface… — @victordibia.bsky.social1 likes and repost · 1 reply
- Apr 27, 2026microsoft/agent-framework: A framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for… — @fluid.sublimer.me0 likes and reposts · 1 reply
- Oct 3, 2025🎉 Celebrating! 🎉 (500+ new stars) 📦 microsoft / agent-framework ⭐ 1,432 (+678) 🗒 Python A framework for building, orchestrating and… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 4
- Apr 4, 2026Microsoft's new framework for building and orchestrating AI agents4 points
- Oct 1, 2025Microsoft Agent Framework3 points
- Oct 3, 2025Microsoft Agent Framework2 points
- Oct 2, 2025Microsoft releases Agent Framework for Python and .NET1 point
In this repository67 other files it gives its agents.
- dotnet/AGENTS.mdAGENTS.md
- dotnet/samples/AGENTS.mdAGENTS.md
- python/AGENTS.mdAGENTS.md
- python/packages/a2a/AGENTS.mdAGENTS.md
- python/packages/ag-ui/AGENTS.mdAGENTS.md
- python/packages/anthropic/AGENTS.mdAGENTS.md
- python/packages/azure-ai-search/AGENTS.mdAGENTS.md
- python/packages/azure-contentunderstanding/AGENTS.mdAGENTS.md
- python/packages/azure-cosmos/AGENTS.mdAGENTS.md
- python/packages/azure-cosmos-memory/AGENTS.mdAGENTS.md
- python/packages/bedrock/AGENTS.mdAGENTS.md
- python/packages/chatkit/AGENTS.mdAGENTS.md
- python/packages/claude/AGENTS.mdAGENTS.md
- python/packages/copilotstudio/AGENTS.mdAGENTS.md
- python/packages/core/AGENTS.mdAGENTS.md
- python/packages/declarative/AGENTS.mdAGENTS.md
- python/packages/devui/AGENTS.mdAGENTS.md
- python/packages/foundry_local/AGENTS.mdAGENTS.md
- python/packages/gemini/AGENTS.mdAGENTS.md
- python/packages/github_copilot/AGENTS.mdAGENTS.md
- python/packages/hosting-a2a/AGENTS.mdAGENTS.md
- python/packages/hosting-mcp/AGENTS.mdAGENTS.md
- python/packages/lab/AGENTS.mdAGENTS.md
- python/packages/mem0/AGENTS.mdAGENTS.md
- python/packages/mistral/AGENTS.mdAGENTS.md
- python/packages/monty/AGENTS.mdAGENTS.md
- python/packages/ollama/AGENTS.mdAGENTS.md
- python/packages/openai/AGENTS.mdAGENTS.md
- python/packages/purview/AGENTS.mdAGENTS.md
- python/packages/redis/AGENTS.mdAGENTS.md
- python/packages/typesafe/AGENTS.mdAGENTS.md
- python/samples/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- build-and-testSkill
- project-structureSkill
- pull-requestsSkill
- verify-dotnet-samplesSkill
- verify-samples-toolSkill
- unit-converterSkill
- unit-converterSkill
- unit-converterSkill
- risk-scoringSkill
- valuationSkill
- risk-scoringSkill
- valuationSkill
- regex-testerSkill
- escalation-policySkill
- support-styleSkill
- pull-requestsSkill
- agent-framework-py-releaseSkill
- pull-requestsSkill
- python-code-qualitySkill
- python-developmentSkill
- python-package-managementSkill
- python-testingSkill
- risk-scoringSkill
- valuationSkill
- risk-scoringSkill
- valuationSkill
- unit-converterSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
39 rules. About 0 are common, 31 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈31
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Feature-stage decorators are only for exceptions: when a feature is behind the package's default stage.
- Distinctive: line 22
Do not decorate every class or function just because the package is experimental or release candidate.
- Distinctive: line 26
If a package is still in beta / experimental preview, all public APIs in that package are experimental by default.
- Very specific: line 28
Do not add @experimental(...) everywhere in that package.
- Distinctive: line 33
If a package moves to release candidate, a feature may remain experimental
- Distinctive: line 34
If a package moves to released / GA, a feature may remain experimental or release candidate
- Distinctive: line 42
Use for features that are still unstable and may change or be removed without notice.
- Very specific: line 63
Add an all-caps member to ExperimentalFeature
- Distinctive: line 68
Use for features that are nearly stable but may still receive small refinements before GA.
- Distinctive: line 93
Use for stable GA APIs.
- Distinctive: line 101
If a feature is fully released, remove any stage-specific feature annotation.
- Distinctive: line 105
Use for APIs that still exist but should not be used for new code.
- Distinctive: line 126
Should describe what to use instead
- Distinctive: line 148
Use one enum member per conceptual feature, not per class
- Distinctive: line 150
Keep feature IDs all caps
- Distinctive: line 152
Remove enum members when the feature no longer belongs to that stage
- Distinctive: line 153
Treat these enums as current-stage inventories, not as a stable consumer introspection API
- Very specific: line 157
Treat __feature_stage__ and __feature_id__ as optional staged metadata, not as stable contracts
- Very specific: line 158
Use getattr(obj, "__feature_stage__", None) and getattr(obj, "__feature_id__", None) rather than direct attribute access
- Distinctive: line 159
Treat missing metadata as "no explicit feature-stage annotation"
- Very specific: line 161
Do not rely on ExperimentalFeature.X, ReleaseCandidateFeature.X, or the continued presence of __feature_id__ after a feature moves stages …
- Distinctive: line 169
Use the following rules:
- Distinctive: line 173
All public APIs are experimental by default
- Distinctive: line 174
Do not add feature-stage decorators just to restate that
- Distinctive: line 175
Only introduce feature-level annotations later if the package advances first
- Distinctive: line 179
All public APIs are RC by default
- Distinctive: line 180
Do not decorate everything
- Very specific: line 181
Add @experimental(...) only for features that are intentionally still behind the package
- Distinctive: line 185
All public APIs are released by default
- Very specific: line 186
Add @experimental(...) or @release_candidate(...) only for features still being held back
- Distinctive: line 194
Update any tests or docs that mention the old stage
- Very specific: line 199
Remove the feature from ExperimentalFeature
- Distinctive: line 200
Do not add a replacement feature-stage decorator
- Distinctive: line 206
Leave the API undecorated
- Distinctive: line 210
Remove any feature-stage decorator
- Distinctive: line 211
Remove the feature from the stage enum
- Distinctive: line 213
Update docs/tests to reflect the replacement path
- Distinctive: line 221
Do not force a feature through release candidate if there is no real RC period
- Distinctive: line 226
Keep lagging features explicitly marked only when they are behind the package default
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Python Feature Lifecycle
Two lifecycle levels
Agent Framework uses lifecycle at two different levels:
- Package lifecycle — the maturity of the package as a whole
- Feature lifecycle — the maturity of a specific API or feature inside that package
These are related, but they are not the same thing.
- The package stage is the default for everything in the package.
- Feature-stage decorators are only for exceptions when a feature is behind the package's default stage.
- Do not decorate every class or function just because the package is experimental or release candidate.
Important default
If a package is still in beta / experimental preview, all public APIs in that package are experimental by default.
- Do not add
@experimental(...)everywhere in that package. - The package stage already communicates that default.
Once a package moves forward, you can keep individual features behind:
- If a package moves to release candidate, a feature may remain experimental
- If a package moves to released / GA, a feature may remain experimental or release candidate
That is the main use case for feature-stage decorators.
The four stages
1. Experimental
Use for features that are still unstable and may change or be removed without notice.
Feature-level code pattern:
from ._feature_stage import ExperimentalFeature, experimental
@experimental(feature_id=ExperimentalFeature.MY_FEATURE)
class MyFeature:
...Behavior:
- Adds an experimental warning block to the docstring
- Records feature metadata on the decorated object
- Emits a runtime warning the first time the feature is used (once per feature by default)
Enum setup:
- Add an all-caps member to
ExperimentalFeature - Reuse the same feature ID across all APIs that belong to the same conceptual feature
2. Release candidate
Use for features that are nearly stable but may still receive small refinements before GA.
Feature-level code pattern:
from ._feature_stage import ReleaseCandidateFeature, release_candidate
@release_candidate(feature_id=ReleaseCandidateFeature.MY_FEATURE)
class MyFeature:
...Behavior:
- Adds a release-candidate note to the docstring
- Records feature metadata on the decorated object
- Does not emit the experimental warning
Enum setup:
- Add an all-caps member to
ReleaseCandidateFeature
3. Released
Use for stable GA APIs.
Code pattern:
- No feature-stage decorator
- No entry in
ExperimentalFeature - No entry in
ReleaseCandidateFeature
If a feature is fully released, remove any stage-specific feature annotation.
4. Deprecated
Use for APIs that still exist but should not be used for new code.
Code pattern:
import sys
if sys.version_info >= (3, 13):
from warnings import deprecated # type: ignore # pragma: no cover
else:
from typing_extensions import deprecated # type: ignore # pragma: no cover
@deprecated("MyOldFeature is deprecated. Use MyNewFeature instead.")
class MyOldFeature:
...Behavior:
- Uses the repository's version-conditional deprecation import pattern
- Should describe what to use instead
Deprecated APIs should not also carry feature-stage decorators.
Expected decorators by stage
| Feature stage | Expected annotation |
| Experimental | @experimental(feature_id=ExperimentalFeature.X) |
| Release candidate | @release_candidate(feature_id=ReleaseCandidateFeature.X) |
| Released | No feature-stage decorator |
| Deprecated | @deprecated("...") |
Feature enums
The feature enums are the inventory of currently staged features:
ExperimentalFeatureReleaseCandidateFeature
Guidance:
- Use one enum member per conceptual feature, not per class
- Ideally, an ADR already defines the overall feature boundary and therefore the feature ID that staged APIs for that feature should reuse
- Keep feature IDs all caps
- Reuse the same member across related APIs for the same feature
- Remove enum members when the feature no longer belongs to that stage
- Treat these enums as current-stage inventories, not as a stable consumer introspection API
Minimal consumer guidance:
- Treat
__feature_stage__and__feature_id__as optional staged metadata, not as stable contracts - Use
getattr(obj, "__feature_stage__", None)andgetattr(obj, "__feature_id__", None)rather than direct attribute access - Treat missing metadata as "no explicit feature-stage annotation"
- For warning filters while a feature is staged, match the literal feature ID string
- Do not rely on
ExperimentalFeature.X,ReleaseCandidateFeature.X, or the continued presence of__feature_id__after a feature moves stages or is released
For consumers, the enums are also re-exported from agent_framework.
For internal implementation code inside agent_framework, continue to import the enums and decorators from ._feature_stage.
Package stage vs feature stage
Use the following rules:
Package is experimental / beta
- All public APIs are experimental by default
- Do not add feature-stage decorators just to restate that
- Only introduce feature-level annotations later if the package advances first
Package is release candidate
- All public APIs are RC by default
- Do not decorate everything
- Add
@experimental(...)only for features that are intentionally still behind the package
Package is released / GA
- All public APIs are released by default
- Add
@experimental(...)or@release_candidate(...)only for features still being held back
Moving a feature from one stage to the next
Experimental -> Release candidate
- Move the feature ID from
ExperimentalFeaturetoReleaseCandidateFeature - Replace
@experimental(...)with@release_candidate(...) - Update any tests or docs that mention the old stage
Experimental -> Released
- Remove
@experimental(...) - Remove the feature from
ExperimentalFeature - Do not add a replacement feature-stage decorator
Release candidate -> Released
- Remove
@release_candidate(...) - Remove the feature from
ReleaseCandidateFeature - Leave the API undecorated
Any stage -> Deprecated
- Remove any feature-stage decorator
- Remove the feature from the stage enum
- Add
@deprecated("...") - Update docs/tests to reflect the replacement path
Promotion guidance
Features do not have to pass through every stage.
- It is usually a good idea to move features in order when that reflects reality
- But it is completely acceptable to go experimental -> released
- Do not force a feature through release candidate if there is no real RC period
Likewise, when a package advances, do not automatically move every feature with it.
- Promote features based on actual readiness
- Keep lagging features explicitly marked only when they are behind the package default
Practical rules of thumb
- Package default first, feature exceptions second
- Do not decorate everything in preview packages
- Do not double-annotate members of an already-staged class
- Use enums only for currently staged features
- Do not treat stage enums as a compatibility contract
- Treat
__feature_stage__and__feature_id__as optional metadata; usegetattr - Remove stage annotations once a feature is released or deprecated
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

