Skip to content

Enhance mpg-sdk-migration skill for autonomous build-fix operation#56705

Closed
live1206 wants to merge 2 commits intomainfrom
enhance-mpg-migration-skill
Closed

Enhance mpg-sdk-migration skill for autonomous build-fix operation#56705
live1206 wants to merge 2 commits intomainfrom
enhance-mpg-migration-skill

Conversation

@live1206
Copy link
Member

@live1206 live1206 commented Mar 3, 2026

Summary

Enhances the mpg-sdk-migration Copilot skill to enable autonomous operation during the build-fix loop. Copilot can now work through build errors without asking the user, following structured decision trees and fix recipes.

Changes

SKILL.md

  • Phase 8 → Autonomous Build-Fix Loop: Rewrote as a concrete algorithm with loop protocol, error classification algorithm, priority ordering, autonomous fix decision trees, batch fix strategy, SQL error tracking with attempt counters, and escalation criteria
  • Autonomous Rename Resolution Strategy: Algorithm for extracting old API names, comparing with generated names, and deciding spec-side vs SDK-side fixes
  • Generator Bug Fix Recipe: Includes RegenSdkLocal.ps1 regeneration + cleanup of stale custom code workarounds
  • Safety Rules: Autonomous mode permits client.tsp spec changes and custom code additions without asking; clear escalation boundaries
  • Discovery Phase: Added steps to snapshot old API, extract autorest renames, identify custom code folder convention

error-reference.md

  • Expanded each error pattern from table entries to full autonomous fix recipes with detection, investigation, decision logic, and code examples
  • Added new patterns: CS0111, CS0535, CS0115
  • Added ApiCompat fix recipes with concrete C# examples
  • Added Generator Bug Detection section with fix-vs-workaround decision tree
  • Added Pitfall Range in list methods #17: Clean up stale custom workarounds after generator fixes

live1206 and others added 2 commits March 3, 2026 07:31
- Rewrite Phase 8 as Autonomous Build-Fix Loop with decision trees
  for error classification, fix selection, and batch strategy
- Add autonomous fix recipes for each error pattern (CS0234, CS0051,
  CS0246, CS0111, CS1729, AZC0030, AZC0032, CS0535, CS0115)
- Add autonomous rename resolution strategy using old API surface
- Add generator bug detection checklist and fix vs workaround decision
- Add batch fix strategy to minimize regeneration cycles
- Add SQL error tracking with attempt counters and escalation criteria
- Update safety rules: autonomous mode permits spec and custom code
  changes without asking; define clear escalation boundaries
- Enhance Discovery phase: snapshot old API, extract autorest renames,
  identify custom code folder convention
- Add ApiCompat autonomous fix recipes with code examples
- Consistent @@clientName namespace syntax across both files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
After a generator fix is applied and code is regenerated with
RegenSdkLocal.ps1, any custom code workarounds previously added for
the same issue must be cleaned up. Stale workarounds cause CS0111
(duplicate definition) or silently override correct generated code.

Updated in SKILL.md:
- Fix Recipe: Generator Bug - explicit cleanup step with instructions
- Sub-Agent Strategy - added cleanup agent step after generator regen

Updated in error-reference.md:
- Added pitfall #17 about cleaning up stale custom workarounds

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@live1206 live1206 closed this Mar 3, 2026
@live1206 live1206 deleted the enhance-mpg-migration-skill branch March 3, 2026 08:11
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.

1 participant