code change · featureCopilot & Agentsofficial - Microsoftreviewed - checked by Opus

#2402 Move Copilot review engine into AL-Go

AL-Go gains a built-in Copilot pull request review. A new SetupBCQuality action installs and filters the BCQuality plugin, and a new ReviewAgent action runs the review and posts comments. Generated Per Tenant Extension and AppSource App templates get a two-workflow integration, configured through new BCQuality and CodeReviewAgent settings.

Pull request · merged into main on 2026-10-20 by WaelAbuSeada · 57 files (+14057 -30), 30 AL · feature · tier official · reviewed (checked by Opus)

What changed

  • New ReviewAgent action runs in four phases (context, prepare, generate, post). Review generation is read-only, and a separate job with write permissions publishes the results.
  • New SetupBCQuality action is the only place BCQuality is installed. It filters the plugin by layers, skills and knowledge rules.
  • Per Tenant Extension and AppSource App templates get CopilotPRReview and CopilotPRReviewRunner workflows. The runner starts through workflow_run and reads trusted settings from the base repository.
  • New BCQuality and CodeReviewAgent settings split AL knowledge selection from review orchestration policy.
  • Review is bound to the validated PR head SHA, and untrusted PR code is never used as workflow configuration or review infrastructure.
  • Behaviour changes for users or extensions.

AL objects touched

  • Actions/.Modules/ReadSettings.psm1: modified, not in the BC? snapshot
  • Actions/.Modules/settings.schema.json: modified, not in the BC? snapshot
  • Actions/AL-Go-Helper.ps1: modified, not in the BC? snapshot
  • Actions/CheckForUpdates/CheckForUpdates.HelperFunctions.ps1: modified, not in the BC? snapshot
  • Actions/ReviewAgent/ReviewAgent.ps1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/action.yaml: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/schemas/review-run-diagnostics.schema.json: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/Artifacts.ps1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/BCQualityContextAndMetrics.ps1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/CommentPublishing.ps1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/CopilotCli.ps1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/FindingDeduplication.ps1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/FindingPlacement.ps1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/Git.ps1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/GitHub.ps1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/Invoke-CopilotPRReview.ps1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/Invoke-CopilotPRReview.psm1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/LoggingAndValidation.ps1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/ReportParsing.ps1: added, not in the BC? snapshot yet
  • Actions/ReviewAgent/scripts/ReviewExecution.ps1: added, not in the BC? snapshot yet
  • Actions/SetupBCQuality/README.md: added, not in the BC? snapshot yet
  • Actions/SetupBCQuality/SetupBCQuality.ps1: added, not in the BC? snapshot yet
  • Actions/SetupBCQuality/SetupBCQuality.psm1: added, not in the BC? snapshot yet
  • Actions/SetupBCQuality/action.yaml: added, not in the BC? snapshot yet
  • Actions/package-lock.json: added, not in the BC? snapshot yet
  • Actions/package.json: added, not in the BC? snapshot yet
  • Templates/AppSource App/.github/workflows/CopilotPRReview.yaml: added, not in the BC? snapshot yet
  • Templates/AppSource App/.github/workflows/CopilotPRReviewRunner.yaml: added, not in the BC? snapshot yet
  • Templates/Per Tenant Extension/.github/workflows/CopilotPRReview.yaml: added, not in the BC? snapshot yet
  • Templates/Per Tenant Extension/.github/workflows/CopilotPRReviewRunner.yaml: added, not in the BC? snapshot yet

Context

  • Systems: copilot, development, platform

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).