.NET: Clarify declarative workflow input serialization - #8046
Merged
Vincent Biret (baywet) merged 2 commits intoSep 4, 2026
Merged
Conversation
宇宙的山峰 (UniversePeak)
deployed
to
github-app-auth
September 4, 2026 00:30 — with
GitHub Actions
Active
宇宙的山峰 (UniversePeak)
deployed
to
github-app-auth
September 4, 2026 00:30 — with
GitHub Actions
Active
宇宙的山峰 (UniversePeak)
deployed
to
github-app-auth
September 4, 2026 00:30 — with
GitHub Actions
Active
宇宙的山峰 (UniversePeak)
deployed
to
github-app-auth
September 4, 2026 00:31 — with
GitHub Actions
Active
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The new copyable README snippet is missing the namespace import required for Workflow.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Clarifies typed-input serialization for declarative .NET workflows under AOT constraints.
Changes:
- Adds a source-generated serializer context and explicit input transform.
- Documents the distinction between input transformation and checkpoint serialization.
File summaries
| File | Description |
|---|---|
README.md |
Documents typed inputs and checkpoint serialization. |
Program.cs |
Demonstrates AOT-safe typed-input serialization. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
宇宙的山峰 (UniversePeak)
force-pushed
the
fix/8016-declarative-input-serialization
branch
from
September 4, 2026 05:55
a958fd4 to
cec963c
Compare
宇宙的山峰 (UniversePeak)
deployed
to
github-app-auth
September 4, 2026 05:55 — with
GitHub Actions
Active
Vincent Biret (baywet)
marked this pull request as ready for review
September 4, 2026 17:47
Vincent Biret (baywet)
deployed
to
github-app-auth
September 4, 2026 17:48 — with
GitHub Actions
Active
宇宙的山峰 (UniversePeak)
temporarily deployed
to
integration
September 4, 2026 17:48 — with
GitHub Actions
Inactive
宇宙的山峰 (UniversePeak)
temporarily deployed
to
integration
September 4, 2026 17:48 — with
GitHub Actions
Inactive
宇宙的山峰 (UniversePeak)
deployed
to
github-app-auth
September 4, 2026 18:00 — with
GitHub Actions
Active
Vincent Biret (baywet)
approved these changes
Sep 4, 2026
Vincent Biret (baywet)
left a comment
Member
There was a problem hiding this comment.
Thank you for making the changes!
宇宙的山峰 (UniversePeak)
had a problem deploying
to
integration
September 4, 2026 18:05 — with
GitHub Actions
Failure
宇宙的山峰 (UniversePeak)
temporarily deployed
to
integration
September 4, 2026 18:05 — with
GitHub Actions
Inactive
Vincent Biret (baywet)
enabled auto-merge
September 4, 2026 18:05
auto-merge was automatically disabled
September 4, 2026 18:47
Head branch was pushed to by a user without write access
宇宙的山峰 (UniversePeak)
force-pushed
the
fix/8016-declarative-input-serialization
branch
from
September 4, 2026 18:47
38d13d4 to
d5edf33
Compare
宇宙的山峰 (UniversePeak)
deployed
to
github-app-auth
September 4, 2026 18:47 — with
GitHub Actions
Active
Vincent Biret (baywet)
enabled auto-merge
September 4, 2026 18:48
宇宙的山峰 (UniversePeak)
temporarily deployed
to
integration
September 4, 2026 18:48 — with
GitHub Actions
Inactive
宇宙的山峰 (UniversePeak)
temporarily deployed
to
integration
September 4, 2026 18:48 — with
GitHub Actions
Inactive
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
Issue #8016 reports that typed inputs to declarative workflows fall back to
ToString(), while the documentation's serializer example focuses on checkpoint state. This makes it unclear how to reliably serialize an initial input and can lead to confusing expectations that checkpoint serializer registration also transforms that input.Description & Review Guide
WorkflowInputthroughDeclarativeWorkflowBuilder.Buildwith an explicitinputTransform.JsonSerializerContextfor the sample's initial input and serialize it into aChatMessage.inputTransformand checkpointJsonSerializerOptions, including how to register user-defined checkpoint payloads.System.Text.Json.Related Issue
Fixes #8016
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.