.NET: release: Mark Handoff Orchestrations Experimental#5065
Merged
Conversation
peibekwe
approved these changes
Apr 2, 2026
alliscode
approved these changes
Apr 2, 2026
westey-m
reviewed
Apr 2, 2026
westey-m
approved these changes
Apr 2, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Marks the Workflows “handoff orchestration” surface as experimental so downstream consumers get explicit warnings about potential breaking changes while the feature is still in development.
Changes:
- Annotates handoff-related builders/executors with
System.Diagnostics.CodeAnalysis.Experimental. - Introduces a new experimental diagnostic ID (
MAAIW001) and suppresses it in the workflows unit tests and one workflows sample. - Enables legacy-framework support for
ExperimentalAttributeviaInjectExperimentalAttributeOnLegacy.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| dotnet/src/Microsoft.Agents.AI.Workflows/HandoffWorkflowBuilder.cs | Adds experimental annotations and introduces MAAIW001 via a new DiagnosticConstants. |
| dotnet/src/Microsoft.Agents.AI.Workflows/AgentWorkflowBuilder.cs | Marks CreateHandoffBuilderWith as experimental. |
| dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/HandoffAgentExecutor.cs | Marks handoff executor/filter internals as experimental. |
| dotnet/src/Microsoft.Agents.AI.Workflows/Microsoft.Agents.AI.Workflows.csproj | Injects ExperimentalAttribute for non-net8 targets. |
| dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/Microsoft.Agents.AI.Workflows.UnitTests.csproj | Suppresses MAAIW001 warnings for the test project. |
| dotnet/samples/03-workflows/_StartHere/03_AgentWorkflowPatterns/03_AgentWorkflowPatterns.csproj | Suppresses MAAIW001 warnings for the sample project. |
Comments suppressed due to low confidence (2)
dotnet/src/Microsoft.Agents.AI.Workflows/HandoffWorkflowBuilder.cs:16
- The repo already centralizes experimental diagnostic IDs in Microsoft.Shared.DiagnosticIds.DiagnosticIds (e.g., it states MAAI001 is used for all experimental features). Introducing a new local ID (MAAIW001) here forces new suppressions in tests/samples and for downstream consumers. Consider reusing DiagnosticIds.Experiments.AgentsAIExperiments (or adding the ID to the shared DiagnosticIds list if a separate ID is required) instead of defining a new local DiagnosticConstants class in this file.
dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/HandoffAgentExecutor.cs:49 - The method-level [Experimental] attribute is redundant because the containing type (HandoffMessagesFilter) is already marked [Experimental]. Keeping it duplicated increases annotation noise and can make future edits harder; consider removing the member-level attribute unless you specifically need a different diagnostic ID/message for the method.
[Experimental(DiagnosticConstants.ExperimentalFeatureDiagnostic)]
internal sealed class HandoffMessagesFilter
{
private readonly HandoffToolCallFilteringBehavior _filteringBehavior;
public HandoffMessagesFilter(HandoffToolCallFilteringBehavior filteringBehavior)
{
this._filteringBehavior = filteringBehavior;
}
[Experimental(DiagnosticConstants.ExperimentalFeatureDiagnostic)]
internal static bool IsHandoffFunctionName(string name)
{
return name.StartsWith(HandoffWorkflowBuilder.FunctionPrefix, StringComparison.Ordinal);
}
alliscode
pushed a commit
to alliscode/agent-framework
that referenced
this pull request
Apr 3, 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 and Context
Handoff Orchestrations are still under development, and should be marked Experimental so consumers can be ready for potential breaking changes and behaviour fixes.
Contribution Checklist
[ ] Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.