Skip to content

chore: sync main hotfix (v2.0.4) into dev#252

Merged
Roopan-Microsoft merged 2 commits into
devfrom
chore/sync-main-into-dev-2026-05-20
May 20, 2026
Merged

chore: sync main hotfix (v2.0.4) into dev#252
Roopan-Microsoft merged 2 commits into
devfrom
chore/sync-main-into-dev-2026-05-20

Conversation

@Shreyas-Microsoft
Copy link
Copy Markdown
Collaborator

@Shreyas-Microsoft Shreyas-Microsoft commented May 20, 2026

Purpose

  • Forward-port the changes that shipped in main tag v2.0.4 (5a0efca) into dev so the two trunks stay in sync.
  • Carries the Bug #43771 processor fix (retry on model produced invalid content and ResultGenerator.max_tokens bump) into dev.
  • dev is otherwise 34 commits ahead of main on unrelated work; this PR only forward-ports the two commits below.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • Only two commits are introduced into dev:
  • No merge conflicts and no unintended file changes outside src/processor for the Bug #43771 fix.
  • Branch chore/sync-main-into-dev-2026-05-20 was created off origin/main @ 5a0efca (tag v2.0.4) with no additional commits on top.

Other Information

Shreyas-Microsoft and others added 2 commits May 19, 2026 17:24
…tGenerator max_tokens (Bug #43771)

Two-part fix for the Design step failure 'The model produced invalid content':

1. Add 'model produced invalid content' / 'invalid content' to the transient-error patterns recognised by _looks_like_rate_limit so that AzureOpenAIResponseClientWithRetry retries instead of failing.

2. Increase the ResultGenerator agent's max_tokens from 12_000 to 25_000 in OrchestratorBase to prevent truncation of large nested JSON schemas (the underlying cause of the 'invalid content' error).

ADO #43771

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
fix(processor): retry 'model produced invalid content' and bump Resul…
@github-actions
Copy link
Copy Markdown

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL309720893% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
588 0 💤 0 ❌ 0 🔥 20.189s ⏱️

@github-actions
Copy link
Copy Markdown

Coverage

Processor Coverage Report •
FileStmtsMissCoverMissing
src/processor/src/libs/agent_framework
   azure_openai_response_retry.py36313263%87, 197, 205, 227, 253, 263–265, 389, 396–399, 401–403, 409–411, 428, 449–450, 455–458, 461–464, 466–469, 471, 481–483, 485–488, 490–493, 495–499, 501, 509–511, 513, 529–531, 536, 540–543, 547, 550, 558–559, 565–566, 571, 573, 594, 600–602, 606–607, 618, 620–623, 627, 630, 638–639, 645–647, 649–652, 654–665, 668, 675–676, 701–702, 709–710, 712, 716, 719–720, 724–725, 727–729, 737, 739–741, 743–745, 747–748, 758
src/processor/src/libs/base
   orchestrator_base.py1654970%62, 68, 71–74, 80–81, 83–84, 127, 138, 143, 148–149, 153, 161, 163, 165, 172–173, 180, 182, 189, 193, 202, 206, 211, 213–214, 216, 315–317, 320, 326, 333–335, 362–364, 367, 374, 381–383, 434–435
TOTAL572772087% 

Tests Skipped Failures Errors Time
812 0 💤 0 ❌ 0 🔥 19.107s ⏱️

@Shreyas-Microsoft Shreyas-Microsoft changed the title chore: sync main (v2.0.4) into dev chore: sync main hotfix (v2.0.4) into dev May 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Syncs main (v2.0.4) into dev, forward-porting reliability improvements for Azure OpenAI retry behavior and structured result generation token budgeting in the processor orchestration layer.

Changes:

  • Increases ResultGenerator response max_tokens from 12,000 to 25,000 to reduce truncation risk for complex structured outputs.
  • Treats Azure OpenAI “model produced invalid content” responses as transient and eligible for retry in the Responses retry wrapper.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/processor/src/libs/base/orchestrator_base.py Raises ResultGenerator max_tokens to reduce truncation during structured JSON generation.
src/processor/src/libs/agent_framework/azure_openai_response_retry.py Expands transient-error detection to retry on “model produced invalid content”.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/processor/src/libs/base/orchestrator_base.py
@Roopan-Microsoft Roopan-Microsoft merged commit 5a8447d into dev May 20, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants