Repository navigation
Description
Goal
Improve the SDK team's review and merge process for generated Python SDK pull requests, especially when manual functional changes are added after SDK-reviewer approval. This issue tracks process improvements, not an investigation of the Sovereign SDK's functional fixes.
Example motivating this improvement
In PR #49705, "[AutoPR azure-mgmt-sovereign]-generated-from-SDK Generation - Python-7030648", manual commit 0754921, "Fix Sovereign snapshot precision and awaited remediation results", was added after the earlier SDK-reviewer approvals.
The commit included _patch.py customizations and runtime helpers outside _patch.py, such as azure/mgmt/sovereign/_remediation.py and azure/mgmt/sovereign/models/_snapshot_datetime.py. Such changes need explicit review of their rationale and regeneration safety.
The PR was merged on November 11, 2026 without renewed approval from the original SDK reviewers. There was a subsequent approval from @ankitkaushal01; the gap is ensuring that the required SDK reviewers re-review new functional changes, rather than treating any later approval as sufficient.
Proposed SDK-team process improvements
- Require renewed SDK review after functional changes: When manual functional changes are added after approval, request re-review from the required SDK reviewers and wait for their renewed approval before merging.
- Require context for manual customizations: Explain why a manual change is needed, link supporting bugs or requirements, and identify whether it belongs in the specification, generator, or SDK customization layer.
- Include regeneration safety in the review checklist: Review changes outside
_patch.pyexplicitly and require evidence that regeneration preserves custom files, imports, and behavior, or use a supported customization mechanism. - Make merge responsibility explicit: Define who verifies that required SDK approvals cover the latest functional changes before merge. Evaluate repository rules or automation to enforce this without unnecessarily blocking generation-only updates or branch-sync commits.
Completion criteria
- Document the SDK team's re-review and merge policy for changes added after approval.
- Update the generated-SDK PR review checklist or contributor guidance to cover manual-change rationale and regeneration safety.
- Define the required SDK reviewers and the merge owner's responsibility for verifying renewed approval.
- Evaluate and record appropriate enforcement through repository rules, PR checks, or automation.
- Communicate the updated process to SDK contributors and maintainers.
Activity
[-]azure-mgmt-sovereign: Track manual customization rationale, regeneration safety, and SDK re-review[/-][+]Improve SDK review and merge process for manual changes in generated Python SDK PRs[/+][-]Improve SDK review and merge process for manual changes in generated Python SDK PRs[/-][+][Python][Epic] Improve SDK review and merge process for manual changes in generated Python SDK PRs[/+]