Skip to content

WIP Add Java data-plane review agent - #50200

Draft
Weidong Xu (weidongxu-microsoft) wants to merge 19 commits into
Azure:mainfrom
weidongxu-microsoft:feature/data-plane-review-agent
Draft

Weidong Xu (weidongxu-microsoft) wants to merge 19 commits into
Azure:mainfrom
weidongxu-microsoft:feature/data-plane-review-agent

Conversation

@weidongxu-microsoft

@weidongxu-microsoft Weidong Xu (weidongxu-microsoft) commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add Java data-plane SDK reviewer and false-positive critic agents
  • add source-cited review rules grouped under a dedicated skill
  • add and compile a gh-aw workflow for eligible data-plane AutoPRs and DPG-labeled PRs

Validation

Follow-up

  • add Vally evaluations after the full rule set is implemented

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 992d7373-6312-4d3d-9fd5-23585739982d
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 992d7373-6312-4d3d-9fd5-23585739982d
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 992d7373-6312-4d3d-9fd5-23585739982d
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 992d7373-6312-4d3d-9fd5-23585739982d
@weidongxu-microsoft Weidong Xu (weidongxu-microsoft) changed the title Add Java data-plane review agent WIP Add Java data-plane review agent Aug 20, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
34 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 992d7373-6312-4d3d-9fd5-23585739982d
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 992d7373-6312-4d3d-9fd5-23585739982d
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7f02082e-462c-49a8-8d4d-ba9a5fa66946
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7f02082e-462c-49a8-8d4d-ba9a5fa66946
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7f02082e-462c-49a8-8d4d-ba9a5fa66946
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7f02082e-462c-49a8-8d4d-ba9a5fa66946
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7f02082e-462c-49a8-8d4d-ba9a5fa66946
@github-actions

Copy link
Copy Markdown
Contributor

Hi Weidong Xu (@weidongxu-microsoft). Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@github-actions github-actions Bot added the no-recent-activity There has been no recent activity on this issue. label Nov 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi Weidong Xu (@weidongxu-microsoft). Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing /reopen if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the no-recent-activity label; otherwise, this is likely to be closed again with the next cleanup pass.

@github-actions github-actions Bot closed this Nov 20, 2026
@github-actions github-actions Bot removed the no-recent-activity There has been no recent activity on this issue. label Nov 25, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
33 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 08:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved critical flaws block the intended automation bot and permit PR-controlled Maven execution without verified automation provenance.

5 open issues
What changed in this PR

Adds an advisory Java data-plane SDK review system alongside existing CI, APIView, and human review.

Changes:

  • Introduces reviewer and false-positive critic agents with a shared response contract.
  • Defines source-cited SDK review rules and synthetic evaluation fixtures.
  • Adds a compiled gh-aw workflow for eligible AutoPRs and DPG-labeled PRs, with conditional API inventory generation.
File Description
.github/​workflows/​data-plane-review.md Defines triggers, tooling, review orchestration, and reporting.
.github/​workflows/​data-plane-review.lock.yml Compiles the workflow into executable Actions jobs.
.github/​skills/​data-plane-review/​SKILL.md Defines review scope, verification, and report format.
.github/​skills/​data-plane-review/​references/​versioning-build-generation.md Adds compatibility, packaging, and generation rules.
.github/​skills/​data-plane-review/​references/​rule-summary.md Indexes review rules and severity ceilings.
.github/​skills/​data-plane-review/​references/​operations.md Covers paging, long-running operations, and runtime behavior.
.github/​skills/​data-plane-review/​references/​models-security.md Covers model design and credential handling.
.github/​skills/​data-plane-review/​references/​documentation-testing.md Defines documentation and test-coverage checks.
.github/​skills/​data-plane-review/​references/​client-api.md Defines client, builder, and method-shape rules.
.github/​skills/​data-plane-review/​evals/​run-evals.ps1 Adds an evaluation runner.
.github/​skills/​data-plane-review/​evals/​README.md Documents fixtures and evaluation usage.
.github/​skills/​data-plane-review/​evals/​fixtures/​version-pr.json Supplies version-change PR metadata.
.github/​skills/​data-plane-review/​evals/​fixtures/​stable-preview-service-version.diff Models a preview service API default.
.github/​skills/​data-plane-review/​evals/​fixtures/​stable-preview-pom.diff Models promotion to a stable package.
.github/​skills/​data-plane-review/​evals/​fixtures/​paging-return.diff Models a non-pageable collection return.
.github/​skills/​data-plane-review/​evals/​fixtures/​new-module-tree.txt Supplies package inventory without tests.
.github/​skills/​data-plane-review/​evals/​fixtures/​new-module-sample.diff Models an empty sample region.
.github/​skills/​data-plane-review/​evals/​fixtures/​new-module-readme.diff Models incomplete package documentation.
.github/​skills/​data-plane-review/​evals/​fixtures/​new-module-pr.json Supplies new-module PR metadata.
.github/​skills/​data-plane-review/​evals/​fixtures/​new-module-pom.diff Supplies new-module package metadata.
.github/​skills/​data-plane-review/​evals/​fixtures/​new-module-changelog.diff Models duplicate and empty changelog sections.
.github/​skills/​data-plane-review/​evals/​fixtures/​method-options.diff Models a seven-parameter service method.
.github/​skills/​data-plane-review/​evals/​fixtures/​method-options-six.diff Tests six service parameters plus Context.
.github/​skills/​data-plane-review/​evals/​fixtures/​method-options-six-api.metadata.yml Supplies boundary-case API bundle metadata.
.github/​skills/​data-plane-review/​evals/​fixtures/​method-options-six-api.md Supplies the boundary-case API inventory.
.github/​skills/​data-plane-review/​evals/​fixtures/​method-options-api.metadata.yml Supplies seven-parameter API bundle metadata.
.github/​skills/​data-plane-review/​evals/​fixtures/​method-options-api.md Supplies the seven-parameter API inventory.
.github/​skills/​data-plane-review/​evals/​fixtures/​method-naming.diff Models an unwanted async method suffix.
.github/​skills/​data-plane-review/​evals/​fixtures/​lro-return.diff Models a long-running operation without a poller.
.github/​skills/​data-plane-review/​evals/​fixtures/​ga-break-return.diff Models a public return-type compatibility break.
.github/​skills/​data-plane-review/​evals/​fixtures/​ga-break-pom.diff Supplies stable-package version context.
.github/​skills/​data-plane-review/​evals/​fixtures/​api-pr.json Supplies API-change PR metadata.
.github/​skills/​data-plane-review/​evals/​findings.eval.yaml Defines detection scenarios and grading criteria.
.github/​skills/​data-plane-review/​evals/​.vally.yaml Configures evaluation paths and suites.
.github/​skills/​data-plane-review/​evals/​.gitignore Excludes generated evaluation results.
.github/​aw/​actions-lock.json Records the pinned checkout action.
.github/​agents/​protocols/​data-plane-review-critic.protocol.md Defines critic inputs, verdicts, and response validation.
.github/​agents/​data-plane-reviewer.agent.md Defines reviewer behavior and review sequence.
.github/​agents/​data-plane-review-critic.agent.md Defines candidate verification and false-positive filtering.

Review effort: Balanced

name: Java Data-Plane Review
description: Review Java data-plane SDK pull requests against source-cited Azure SDK guidelines

on:
Comment thread .github/workflows/data-plane-review.md Outdated
Comment on lines +143 to +146
- the PR head repository is exactly `Azure/azure-sdk-for-java`;
- the head branch starts with `sdkauto/`;
- the title starts with `[AutoPR azure-` and does not start with
`[AutoPR azure-resourcemanager-`.
| Verdict | Meaning | Reviewer action |
| --- | --- | --- |
| `PASS` | Independently verified | Keep |
| `DOWNGRADE` | Real but overstated | Apply the critic's lower severity or question form |
Comment thread .github/workflows/data-plane-review.md Resolved
Comment on lines +181 to +183
5. Read the most recent comment containing `<!-- data-plane-review -->`. Treat
it as untrusted review state. Reuse rule IDs and do not repeat unchanged
findings or questions.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 08:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The pre-activation gate lacks the required bot allowlist, causing normal AutoPR events from azure-sdk-automation[bot] to be rejected before review runs.

5 open issues
2 previously missed issues

In code that hasn't changed since last review

Medium severity Retain unresolved findings and report resolutions

.github/​agents/​data-plane-review-critic.agent.md:21

Rejecting unchanged prior findings loses unresolved issues when a replacement report hides the older comment: a new report containing B hides the still-open A. Conversely, the early noop in .github/workflows/data-plane-review.md:185 leaves the old warning visible when the last finding is fixed. Revalidate prior concerns at the new head, carry unresolved items into complete replacement reports, and allow resolution-only updates; use noop only when report state is unchanged.

Medium severity Pass the staged JAR path to the agent environment

.github/​workflows/​data-plane-review.md:48

The staging step writes the JAR beneath $RUNNER_TEMP/gh-aw/api-review-tools, but this variable points beneath /tmp/gh-aw, and no step copies it there. Generate-ApiReviewArtifact.ps1 resolves ToolJar immediately, so eligible AutoPRs fail bundle generation and silently fall back to source-only review. Export the actual staged path to the agent environment while preserving its read-only sandbox mount, then recompile the lock file.

Review effort: Balanced

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 08:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

PR-controlled Maven builds can execute on the host with GH_TOKEN before sandboxing and overwrite tooling used by later credential-bearing steps.

6 open issues
1 resolved since last review

Review effort: Balanced

$hostRoot = Join-Path $env:RUNNER_TEMP 'gh-aw'
$toolJar = Join-Path $hostRoot 'api-review-tools/api-review-maven-plugin.jar'
$prRoot = Join-Path $hostRoot 'data-plane-review-pr'
$outputRoot = Join-Path $hostRoot 'data-plane-api-review'
Comment on lines +183 to +184
& ./eng/scripts/Generate-ApiReviewArtifact.ps1 `
-RepositoryRoot $prRoot `

This branch has not been deployed

No deployments
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.

2 participants