Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BlogWorkflow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async Task<ResearchState> RunAsync(
// Review only the initial author pass. A rejected review can route back
// to the author once, but the capped revision is terminal output.
.AddEdge<ResearchState>(authorExecutor, reviewerExecutor,
condition: s => s?.RevisionNumber < ResearchState.MaxRevisions)
condition: s => s is not null && s.RevisionNumber < ResearchState.MaxRevisions)
// Bounded revision loop: route back to the author only while the draft
// still needs work and the revision cap has not been reached.
.AddEdge<ResearchState>(reviewerExecutor, authorExecutor, condition: s => s?.NeedsRevision == true)
Expand Down
Loading