Skip to content

PR reviewer: add opt-in evidence-first skill and review mode - #39233

Closed
PureWeen wants to merge 7 commits into
mainfrom
pureween-reviewer-evidence-first
Closed

PureWeen wants to merge 7 commits into
mainfrom
pureween-reviewer-evidence-first

Conversation

@PureWeen

@PureWeen PureWeen commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Draft challenger for Jakub to compare with the existing reviewer in DevDiv. Ordinary pipeline branches retain the candidate-comparison control. Selecting the dedicated pureween-reviewer-evidence-first pipeline source branch opts into evidence-first through the pipeline-only auto default; either explicit concrete mode always overrides that selection. The offline evaluator is separate in #39195; neither PR depends on the other.

Aligns the reviewer skill and its active trusted driver around the same experimental policy: gather context without routine alternative generation; perform the substantive expert review; request at most one evidence-backed refinement only for an actionable defect or unresolved behavioral mechanism; assess only actual candidates. Raw PR alone can still require changes. Preserve Gate/regression evidence, platform tracing, expert dimensions, models/context/caps, artifact schemas, and isolated refinement.

Restricted preflight tools, bounded Setup-snapshot context/output, visible intentional omission, and experimental publisher/label completeness checks preserve honest delivery reporting. Mode authority comes from the trusted caller/pipeline source context, not reviewed PR text or artifact markers. Missing outputs cannot establish approval; existing Gate/expert/winner vetoes remain authoritative.

auto is resolved before Setup changes the reviewed worktree. The concrete mode is expanded at compile time into review and both publication paths, never through a mutable runtime macro. The driver and publishers continue accepting only the two concrete modes. Validation logs the requested and resolved modes before PR-controlled code runs.

Trusted agent definitions are copied before merging PR code and restored into review/refinement worktrees. Experimental execution fails if the trusted expert definition is missing. Existing GPT-5.6 Sol orchestration/implementation and GPT-5.3 Codex expert models are retained; dimension tasks explicitly select GPT-5.3 Codex instead of relying on automatic model selection. These are explicit model/instruction contracts, not a provider API hard-deny.

The Windows infrastructure follow-up selects native PowerShell for both MSBuild-task watchdogs instead of unconditionally launching Bash, which can resolve to WSL without an installed distribution on hosted Windows agents. POSIX Bash/pipefail behavior is unchanged. Both launch and fallback retain output sanitization and build exit codes; process-tree timeouts and retry markers are preserved. This platform repair applies to both review modes and does not change credential scope or review policy.

A subsequent live refinement exposed a Windows integration-runner bootstrap error: the string false could not bind to Arcade's Boolean warnAsError parameter, while the old native wrapper still returned success. The runner now passes numeric 0 on Windows, following existing eng/build.ps1 conventions; POSIX retains false. Native-chain regression fixtures cover the real build.cmd and eng/build.ps1 parsing boundary without running a full product build. No shared-SDK or credential bypass is introduced.

A further instruction-only correction clarifies that the single candidate validation pass includes documented prerequisite setup within existing budgets. A fresh candidate does not inherit SDKs, workloads, or installed templates. Integration validation uses the existing runner's -AutoProvision and default build/install steps; skip flags require evidence of matching candidate outputs and packs. The shared policy and active driver both prohibit borrowing the raw PR's SDK/templates as candidate evidence and retain honest blocked reporting when setup fails. This adds no provisioning service, shared-SDK producer, credential change, or extra validation attempt.

Testing and rollback

Comment activation uses the existing syntax:

/review -b pureween-reviewer-evidence-first -p android

Use ios, catalyst, or windows for the relevant platform. No change to the trigger workflow on main is required: it already forwards the pipeline ref. Existing queued runs retain their original revision/mode, and retriggers respect the existing in-progress lock.

Alternatively, explicitly select ReviewMode=evidence-first in the manual reviewer pipeline, or after normal separate Setup/Gate phases invoke -Phase CopilotReview -TrustedScriptsDir $Trusted -ReviewMode evidence-first. $Trusted is Setup's package containing scripts, skills, agents, and eng-scripts. Editing SKILL.md alone does not activate the DevDiv variant.

For control/rollback, explicitly select ReviewMode=candidate-comparison on the experiment branch, or omit the parameter on an ordinary pipeline branch. Omitting the local driver's parameter also continues selecting the control. Do not treat the experimental branch's auto default as a control run.

Before changing production behavior, compare identical frozen reviewed heads/platforms/models with fresh contexts, independent gold, candidate-value judgments, and comparable telemetry coverage. Private pilot data is not included. No measured fidelity or savings claim; contract tests cannot substitute for paired comparisons or live CLI compatibility evidence. The pipeline remains manual/comment-triggered; this PR adds no scheduled trial.

Validation

The initial implementation had 267 focused reviewer/publisher/label/artifact contracts passing in an independent coordinator run. Four existing cases were explicitly excluded: two stale local-model assertions and two Windows administrator-only symlink cases. The activation/model-propagation follow-up passes 253 affected reviewer/publisher/label contracts, with one pre-existing unrelated local test-reviewer model assertion excluded. PowerShell AST, YAML parsing, and whitespace checks pass.

The Windows watchdog follow-up passes 49 targeted contracts with no failures or skips, including real Windows child-process fixtures for stdout/stderr/host-output sanitization, exit-code propagation, and a missing build script. Both repaired watchdogs subsequently completed actual hosted Windows MAUI build-task builds with zero errors on the authorized #39217 canary.

The integration-bootstrap follow-up reproduces three failures against the old runner and passes all 54 affected contracts after the fix, including five native-chain runner cases. These fixtures do not establish that a full pack or template test suite passed. Hosted retry 15606342 completed the real authenticated review and result check, but its candidate command used -SkipBuild -SkipInstall despite an absent candidate-local SDK. Zero tests ran; that retry did not exercise the Boolean build fix.

The candidate-prerequisite clarification passes 62 affected routing, trusted-policy, setup-guidance, watchdog, and native-bootstrap contracts with no failures or skips. Authorized #39015 canary 15606936 used published source d66d561dc3917c19349c71256f4a36ceebd354a0. Actual context/expert phases and result check completed with zero startup authentication errors. Its sole candidate validation used -AutoProvision, default build/install, one focused sample-content filter, and the exact isolated candidate root. The native bootstrap forwarded -warnAsError 0 without the prior Boolean-binding failure. No skip flags or model validation retry were used.

Full candidate validation remains blocked: SDK 11.0.100-rtm.26480.113 Windows x64 archive downloaded twice with matching remote/local sizes of 257,019,874 bytes, but extraction failed both times before compilation or test discovery. The saved log contains no detailed extraction exception, so the cause is unknown. Zero tests executed. The report explicitly retained BLOCKED validation and REQUEST CHANGES; no compilation, runtime-keyboard, candidate-correctness, or merge-ready claim is made. Further SDK-installer infrastructure changes and live retries are paused rather than bypassing isolation or extending the experiment.

Fresh authorized Android and Windows runs completed the real preflight-context and expert-review/comparison phases. The Windows cases produced conditional refinements but retained REQUEST CHANGES when validation was blocked. These are runtime protocol observations, not paired fidelity or token-savings evidence.

Azure's published-branch preview confirms automatic selection compiles to evidence-first in all four trusted mode bindings. A second preview confirms explicit candidate-comparison wins on that same branch. An authorized unchanged comment-trigger request on #39231 used the repaired revision; its successful live parameter-validation task logged Review mode: evidence-first (requested: auto). Subsequent live canaries also logged the concrete mode. Branch-selected activation alone is not a completed review or fidelity result.

Unpublished yamlOverride preview was unavailable due to its separate EditBuild permission requirement. Presence checks are not full artifact-schema or reasoning validation; candidate/refinement limits remain instruction contracts. No semantic assessor or paired reviewer comparison has run. Label description and task-name wording are generalized; ordinary control decisions/context/caps are preserved.

The clean-runner fixture follow-up registers a fail-closed, test-only copilot command so Pester can mock the reviewer adapter when the CLI is not installed, then removes that command after the file completes. In a fresh process with the real CLI directory removed from PATH, all 13 new routing/adapter cases passed and no command registration leaked. The full touched test file reported 133 passed and one unchanged stale local test-reviewer model assertion; the fixture repair does not change production CLI installation, model selection, or reviewer behavior.

Issues Fixed

N/A — opt-in reviewer workflow experiment, branch-selected activation, Windows watchdog shell selection, Windows integration bootstrap argument binding, and candidate-prerequisite guidance; no product issue or public API change.

PureWeen and others added 2 commits October 7, 2026 12:36
Keep candidate comparison as the default while restricting experimental context collection and preserving expert review and publication vetoes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Qualify two-model skill/report instructions locally and guard mode-specific wording with focused assertions; preserve runtime policy and default semantics.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@PureWeen
PureWeen temporarily deployed to copilot-pat-pool October 7, 2026 18:11 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39233

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39233"

@PureWeen
PureWeen temporarily deployed to copilot-pat-pool October 7, 2026 18:11 — with GitHub Actions Inactive
@azure-pipelines

This comment has been minimized.

@PureWeen
PureWeen had a problem deploying to skill-evaluation-pat-pool October 7, 2026 18:11 — with GitHub Actions Failure
@PureWeen
PureWeen deployed to skill-evaluation-pat-pool October 7, 2026 18:11 — with GitHub Actions Active
@PureWeen
PureWeen temporarily deployed to copilot-pat-pool October 7, 2026 18:12 — with GitHub Actions Inactive
@PureWeen
PureWeen temporarily deployed to copilot-pat-pool October 7, 2026 18:16 — with GitHub Actions Inactive
@PureWeen
PureWeen temporarily deployed to copilot-pat-pool October 7, 2026 18:18 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Skill Validation Results

@PureWeen — new skill validation results are available based on this last commit: e3e8831.
To request a fresh validation after new comments or commits, comment /evaluate-skills.

Overall Failed Static Passed LLM Failed Skills 28 Agents 6

❌ Skill Validation Results — e3e8831 · PR reviewer: add opt-in evidence-first skill and review mode · 2026-10-08T17:54:14Z

✅ Static Checks Passed

Skills: 28 | Eval specs linted: 17

Full lint output
── .github/skills/agentic-labeler/tests/eval.vally.yaml
Vally collects pseudonymous usage telemetry (command name, version, outcome, duration, persistent device identifier (when available), and coarse OS/runtime info) to improve the product. No prompts, datasets, file paths, or arguments are collected.
Opt out any time by setting VALLY_TELEMETRY_OPTOUT=1 or DO_NOT_TRACK=1.
Learn more: https://aka.ms/vally/telemetry
✔ .github/skills/agentic-labeler/tests/eval.vally.yaml is valid
── .github/skills/analyze-sessions/tests/eval.vally.yaml
✔ .github/skills/analyze-sessions/tests/eval.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.ownership.vally.yaml
✔ .github/skills/ci-fix/tests/eval.ownership.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.vally.yaml
✔ .github/skills/ci-fix/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/eval.inline-findings.vally.yaml
✔ .github/skills/code-review/tests/eval.inline-findings.vally.yaml is valid
── .github/skills/code-review/tests/eval.producer-trace.vally.yaml
✔ .github/skills/code-review/tests/eval.producer-trace.vally.yaml is valid
── .github/skills/code-review/tests/eval.trim-aot.vally.yaml
✔ .github/skills/code-review/tests/eval.trim-aot.vally.yaml is valid
── .github/skills/code-review/tests/eval.vally.yaml
✔ .github/skills/code-review/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/hermeticity.vally.yaml
✔ .github/skills/code-review/tests/hermeticity.vally.yaml is valid
── .github/skills/code-review/tests/soak.capability.vally.yaml
✔ .github/skills/code-review/tests/soak.capability.vally.yaml is valid
── .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
✔ .github/skills/evaluate-pr-tests/tests/eval.vally.yaml is valid
── .github/skills/pr-review/tests/eval.gh-auth.vally.yaml
✔ .github/skills/pr-review/tests/eval.gh-auth.vally.yaml is valid
── .github/skills/review-test-failures/tests/eval.vally.yaml
✔ .github/skills/review-test-failures/tests/eval.vally.yaml is valid
── .github/skills/try-fix/tests/eval.restore.vally.yaml
✔ .github/skills/try-fix/tests/eval.restore.vally.yaml is valid
── .github/skills/try-fix/tests/eval.vally.yaml
✔ .github/skills/try-fix/tests/eval.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.protocol.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.protocol.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml is valid

❌ LLM Evaluation Failed

0/1 eval suite(s) passed

Suite Score Threshold Verdict
pr-review-gh-auth 0.67 0.80 ❌ 1 execution error
❌ pr-review-gh-auth — 1 stimulus(es) with failed trials
  • regression-gh-unauth-is-not-a-blocker (trial 3) (🛑 error): Request sessionFs.setProvider failed with message: Cannot set session filesystem provider while sessions are active. Call sessionFs.setProvider before creating any sessions.
📊 pr-review — eval report

Eval Results

Timestamp: 2026-10-08T17:52:55.334Z

Regression guard for the pr-review pre-flight phase: when GitHub CLI is unauthenticated (the normal, by-design state inside the CI CopilotReview task), the agent must treat it as EXPECTED — not an environment blocker — pivot to the documented local-first context-gathering path (git + anonymous public REST), and NOT lower its review confidence because of it.

Environment: 1 file · 1 skill

Stimulus Environment Graders Pass Rate pass@k pass^k Duration (median) Tokens (median) Turns (median) Tool Calls (median) Verdict
regression-gh-unauth-is-not-a-blocker
1 file · 1 skillFiles: fixtures/pr-preflight-auth.md → .github/pr-review/pr-preflight.md
Skills: ..</details>
❌ output-matches /GH_AUTH_BLOCKER:\s*…/ 2/3
❌ preflight-guidance-read 2/3
❌ gh-auth-judge 2/3
2/3 100.0% 29.6% 16.9s 37,318 2
1 calls (median)total across 3 trials: view: 2</details>
🟡 1

Model: gpt-5.6-sol | Judge: gpt-5.3-codex | Executor: copilot-sdk

🔍 Full results and investigation steps

Footnotes

  1. ⚠️ Flaky (33% minority outcome). Grader breakdown: output-matches /GH_AUTH_BLOCKER:\s*…/ passed 2/3 trials, preflight-guidance-read passed 2/3 trials, gh-auth-judge passed 2/3 trials. 1/3 trial(s) errored. Trial durations: 0.6s – 26.3s ↩

@PureWeen
PureWeen temporarily deployed to copilot-pat-pool October 7, 2026 18:18 — with GitHub Actions Inactive
@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Note

🔍 /review started

AzDO build 15601079 is running for android.

The s/agent-review-in-progress label stays on this PR while the run is active. The final recommendation and outcome labels are posted only after Gate, expert review, and Deep UI tests finish.

Resolve pipeline-only auto before Setup, preserve explicit mode overrides and control defaults elsewhere, and freeze the concrete mode across review and publication. Restore trusted GPT-only agent definitions and pin dimension models.

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

This comment has been minimized.

@MauiBot MauiBot added s/agent-review-incomplete AI review did not complete all expected phases s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) and removed s/agent-review-in-progress AI review is currently running for this PR labels Oct 7, 2026
@PureWeen
PureWeen deployed to skill-evaluation-pat-pool October 7, 2026 19:06 — with GitHub Actions Active
@PureWeen
PureWeen had a problem deploying to skill-evaluation-pat-pool October 7, 2026 19:06 — with GitHub Actions Error
@PureWeen

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Note

🔍 /review started

AzDO build 15602051 is running for android.

The s/agent-review-in-progress label stays on this PR while the run is active. The final recommendation and outcome labels are posted only after Gate, expert review, and Deep UI tests finish.

@kubaflo

This comment has been minimized.

@PureWeen
PureWeen had a problem deploying to skill-evaluation-pat-pool October 8, 2026 17:50 — with GitHub Actions Failure
@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 8, 2026
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Note

🔍 /review started

AzDO build 15616982 is running for android.

The s/agent-review-in-progress label stays on this PR while the run is active. The final recommendation and outcome labels are posted only after Gate, expert review, and Deep UI tests finish.

@azure-pipelines

This comment has been minimized.

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

AI Review Summary

@PureWeen — new AI review results are available based on commit e3e8831.

Gate No Tests Confidence Low Platform Android


🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix

Gate Result: ⚠️ SKIPPED

No tests were detected in this PR.

Recommendation: Add tests to verify the fix using the write-tests-agent.


📋 Pre-Flight — Context & Validation

Pre-Flight Context

PR identity and scope

  • PR: #39233, PR reviewer: add opt-in evidence-first skill and review mode
  • State: Open draft; base main at 6d812244f67b94077e52cb4da88e0108828c6f03, submitted HEAD e3e8831de1f23dbe05947b086ca63a6baa3403dd.
  • Size: 16 changed files, reported as 1,527 additions and 53 deletions across seven commits.
  • Issue context: The author reports no product issue or public API change. #39195 is a separate, independent draft for offline reviewer evaluation with disjoint files; #39233 supplies the opt-in runtime experiment.
  • This affects internal reviewer/pipeline infrastructure, not MAUI application controls or Android product runtime code.

Reported problem

The existing reviewer normally performs candidate comparison with routine Try-Fix alternatives. This PR introduces an opt-in evidence-first mode intended to:

  1. Gather bounded, read-only context from the immutable submitted change.
  2. Skip routine alternative generation while recording that omission explicitly.
  3. Run the existing expert review once.
  4. Permit at most one evidence-backed refinement when a concrete defect or unresolved mechanism supports it.
  5. Compare only candidates that actually exist.
  6. Preserve Gate, expert, winner, publication, and label vetoes so missing evidence cannot support approval.

The experiment is selected automatically only when the pipeline itself runs from refs/heads/pureween-reviewer-evidence-first; explicit concrete mode parameters override that selection. Ordinary pipeline refs and local callers retain candidate-comparison by default.

The PR also includes two Windows infrastructure repairs discovered during live experimentation:

  • Build-task watchdogs select native PowerShell on Windows instead of invoking bash, which may resolve to unusable WSL.
  • The integration-test bootstrap passes numeric 0 for Windows warnAsError Boolean binding while preserving string false on POSIX.

Changed files and mechanism

Review policy and orchestration

  • .github/scripts/Review-PR.ps1
  • .github/skills/pr-review/SKILL.md
  • .github/skills/pr-review/references/evidence-first-policy.md (new)
  • .github/pr-review/pr-report.md
  • .github/agents/maui-expert-reviewer.md

The driver accepts only candidate-comparison or evidence-first; unresolved auto is handled by the trusted pipeline, not by reviewed content. Evidence-first preflight:

  • Requires Setup’s bounded snapshot and verifies the prepared HEAD against its recorded commit.
  • Produces an immutable base-to-HEAD diff, truncating it at 16,000 UTF-8 bytes with an explicit partial-diff notice.
  • Restricts the context process to read-only/search GitHub and repository tools, denying shell and write access and disallowing temporary-directory access.
  • Loads a versioned, size-bounded policy from the trusted skill package and rejects missing, invalid, symlinked, or oversized policy data.
  • Accepts output only after a successful CLI exit, terminal result event, exact heading, nonempty body, and per-run completion marker.
  • Writes a visible try-fix/content.md omission stating that alternatives were not requested, rather than representing the omission as a failed search.
  • Restores trusted scripts, skills, agent definitions, and engineering scripts over review/refinement worktrees. Evidence-first fails when the trusted expert definition is unavailable.
  • Pins expert and nested dimension work to gpt-5.3-codex; orchestration/implementation remains described as gpt-5.6-sol.

Pipeline routing and platform bootstrap

  • eng/pipelines/ci-copilot.yml

The pipeline introduces ReviewMode: auto, resolves it before Setup from the trusted source ref, validates that the result is concrete, logs requested/resolved values, and compile-time-forwards the same value through review, normal publication, deferred publication, deep-result fallback, and label application. It also copies trusted agent definitions during Setup.

The same file changes both build-task watchdog copies to use PowerShell command execution on Windows and Bash with pipefail elsewhere, retaining output sanitization, child-process timeout handling, retry markers, and exit-code propagation.

Publication and labels

  • .github/scripts/post-ai-summary-comment.ps1
  • .github/scripts/shared/Test-ReviewerArtifactsComplete.ps1 (new)
  • .github/scripts/shared/Update-AgentLabels.ps1

Evidence-first completeness requires seven regular, nonempty artifacts:

  • pre-flight/content.md
  • try-fix/content.md
  • expert-pr-eval/content.md
  • report/content.md
  • inline-findings.json
  • winner.json
  • pr-finalize/content.md

A symlink/reparse point, whitespace-only file, missing artifact, or explicitly skipped expert makes the evidence-first result incomplete. An otherwise positive approval is softened to a neutral comment/incomplete label, while failed/timed-out Gate results, blocking expert verdicts, and a refinement winner continue to force request-changes behavior. The helper checks presence and limited content conditions; it does not establish full artifact schema or reasoning correctness.

Windows integration bootstrap

  • .github/skills/run-integration-tests/scripts/Run-IntegrationTests.ps1
  • .github/skills/run-integration-tests/scripts/Run-IntegrationTests.Tests.ps1 (new)
  • .github/skills/run-integration-tests/SKILL.md

The runner now sends -warnAsError 0 through build.cmd on Windows and preserves -warnAsError false on POSIX. Added fixtures exercise Debug/Release binding, native failure propagation, SkipBuild, and the unchanged POSIX argument.

Contract tests

  • .github/scripts/Review-PR.Tests.ps1
  • .github/scripts/Post-AISummaryComment.Tests.ps1
  • .github/scripts/shared/Export-ExpectedPRAgentArtifact.Tests.ps1
  • .github/scripts/shared/Update-AgentLabels.Tests.ps1

These cover mode routing, policy loading, immutable snapshot checks, restricted preflight invocation and framing, omission artifacts, export/import behavior, publication completeness, trusted veto precedence, model propagation, clean-runner Copilot mocking, and pipeline/platform bootstrap contracts.

Platform-sensitive paths

The designated later test platform is Android. Relevant Android-path behavior is pipeline-level rather than MAUI runtime-level:

  • Exercise /review -b pureween-reviewer-evidence-first -p android or an equivalent authorized pipeline invocation.
  • Confirm the trusted pipeline logs evidence-first as the concrete resolved mode before reviewed code runs.
  • Confirm Android/Linux build-task watchdog execution retains Bash and pipefail; the new native-PowerShell branch is Windows-only.
  • Confirm the Android review receives the frozen submitted HEAD, Android platform requirement, immutable diff context, intentional Try-Fix omission, expert output, and complete publication artifacts.
  • Compare against candidate-comparison only with the same frozen head, base, platform, models, caps, and fresh artifact directories.

Android validation cannot establish the correctness of the Windows watchdog or build.cmd Boolean-binding changes. Those paths require Windows-specific evidence. Conversely, the integration runner’s POSIX false behavior remains relevant on the Linux host used for Android review work.

Validation requirements and known evidence

  • Gate: ⚠️ SKIPPED — no tests detected in this PR. Gate was not re-run. This provides no passing regression signal for the submitted change.
  • The submitted description reports several focused Pester/AST/YAML contract suites and live canaries, but those claims were not independently reproduced here.
  • The description reports that one candidate validation reached candidate-local provisioning but was blocked while extracting SDK 11.0.100-rtm.26480.113; compilation and test discovery did not occur, and zero tests executed.
  • Another reported hosted retry used -SkipBuild -SkipInstall without a candidate-local SDK and therefore did not validate the Boolean bootstrap repair.
  • The author explicitly reports no paired semantic assessor comparison, no measured fidelity or savings result, and no complete full-pack/template validation.
  • Later Android validation should verify behavior at submitted HEAD rather than treating protocol tests, artifact presence, branch activation, or completion markers as proof of review quality.
  • Because Gate did not discover tests, the discoverability/execution of the added Pester coverage in normal CI remains a validation concern even though test files are present.

Remaining uncertainties

  • The supplied inline diff was explicitly partial. The complete 16-file inventory and central submitted hunks were inspected, but this is not an exhaustive line-by-line review.
  • Actual compatibility of the restricted Copilot CLI flags and JSON event-capture assumptions with the deployed CLI version remains dependent on live execution.
  • The trusted-source-ref auto resolution and consistent propagation through every Azure publication path require pipeline evidence; source inspection alone does not establish compiled-template behavior.
  • Artifact completeness checks do not fully validate JSON/Markdown schemas, semantic consistency, reviewed-HEAD identity, or reasoning fidelity.
  • External Azure canary logs and the claimed SDK extraction failure were not independently retrieved, so their detailed causes and results remain unknown.
  • Detailed conclusions from all 27 PR discussion comments and any unresolved review threads are not established here.
  • The PR is currently draft and GitHub reports a blocked merge state with agent review labels, but those states are workflow context rather than correctness evidence.
  • Windows watchdog sanitization, fallback exit codes, process-tree timeout behavior, and native Boolean binding need Windows validation separate from the requested Android experiment.
  • No conclusion is made here about approval, a winning candidate, or the outcome of the separate expert review.

🔬 Code Review — Deep Analysis

Code Review — PR #39233

Independent Assessment

What this changes: Adds a trusted, opt-in evidence-first review mode with bounded read-only preflight capture, an explicit routine-alternative omission artifact, one expert review, conditional evidence-backed refinement, actual-candidate-only comparison, and artifact-completeness vetoes. It also selects native PowerShell for Windows build-task watchdogs and passes numeric 0 for the Windows integration-runner warnAsError binding while preserving POSIX behavior.

Inferred motivation: Permit a controlled comparison between the existing candidate-comparison reviewer and an evidence-first reviewer without allowing reviewed PR content to select the mode or weakening Gate, expert, publication, and label safeguards.

Reconciliation with PR Narrative

Author claims: The PR introduces an opt-in evidence-first experiment, trusted mode authority, bounded context capture, an intentional Try-Fix omission, preserved review vetoes, and Windows watchdog/bootstrap repairs.

Agreement/disagreement: The submitted code supports those mechanisms. No concrete mismatch between the current narrative and submitted implementation was identified.

Prior Review Reconciliation

Prior ❌ Error Finding Source Status Evidence
Earlier MauiBot NEEDS_CHANGES findings Top-level reviews on older submitted commits 🔄 Obsolete The retrieved findings were tied to older commits (ff9246a and d66d561); no current-head inline error finding was present for submitted HEAD e3e8831de1f23dbe05947b086ca63a6baa3403dd.

Blast Radius Assessment

  • Runs for all instances: The review-mode routing and artifact gates affect review infrastructure, not MAUI control instances. Ordinary pipeline refs retain candidate-comparison.
  • Startup impact: Pipeline startup resolves and validates the concrete review mode before reviewed code runs.
  • Static/shared state: No new MAUI runtime static state. The change does alter shared review and publication infrastructure.
  • Platform tracing: Android/Linux retains Bash with pipefail; Windows watchdogs select native PowerShell. The Windows integration bootstrap sends warnAsError as numeric 0, while POSIX retains false.

CI Status

  • Required-check result: undetermined/pending, with anonymous status evidence showing skill-validation failure and an incomplete check matrix.
  • Classification: Gate was ⚠️ SKIPPED because no tests were detected; this is not passing validation. Authenticated required-check retrieval was unavailable.
  • Action taken: Confidence capped at low. No Gate rerun was performed.

Findings

No submitted-diff ❌ Errors, ⚠️ Warnings, or 💡 Suggestions were identified. The required inline findings artifact contains [].

Failure-Mode Probing

  • PR-authored content selecting evidence-first: No direct path was found; the trusted pipeline resolves and validates the concrete mode before reviewed code executes.
  • Approval with missing or blank evidence-first artifacts: The completeness helper requires nonempty regular files and rejects an explicitly skipped expert artifact; publication and labels downgrade an incomplete approval.
  • Windows watchdog launch without usable WSL: Addressed by selecting native PowerShell on Windows while retaining Bash on POSIX.
  • Windows warnAsError false Boolean binding failure: Addressed by passing numeric 0 through the Windows command chain; the POSIX branch is unchanged.

External Output Contract

Consumer token/pattern Producer location Producer emission condition Consumer assumption Ordinary negative case Downstream effect
Restricted-tool CLI flags in copilot --help External Copilot CLI help, consumed by .github/scripts/Review-PR.ps1 Present when the installed CLI supports each required restriction Restricted preflight can run safely CLI is available but lacks one required flag Evidence-first preflight fails closed; there is no permissive fallback
Per-run completion marker plus required heading/body Final Copilot JSON event, consumed by Complete-PreflightCapture Present only when a successful terminal response follows the framing contract Captured preflight output is complete for this run CLI exits successfully but omits the marker or body Capture is rejected as incomplete
Code Review: SKIPPED heading Expert artifact, consumed by Test-ReviewerArtifactsComplete.ps1 Emitted when expert review is skipped Skipped expert evidence is incomplete Artifact exists but records a skipped expert phase Approval is blocked/downgraded

No validated producer/consumer mismatch was found.

Refinement Threshold

Not met. The expert review identified no concrete actionable defect or unresolved behavioral mechanism backed by submitted source or test evidence. No pr-plus-reviewer patch is authorized.

Verdict: NEEDS_DISCUSSION

Confidence: low

Summary: The submitted implementation has no identified line-level blocking defect, but Gate supplied no passing regression evidence and current required-check evidence is incomplete with a failure signal. The raw PR therefore cannot be recommended for approval from the available evidence.


🛠️ Try-Fix — Analysis & Comparison

Alternative generation: not requested

Evidence-first mode intentionally omits routine Try-Fix attempts. This is not a failed
attempt, a completed alternative search, or evidence that alternatives have no value.
The expert review may still produce one evidence-backed PR refinement.


🏁 Report — Final Recommendation

⚠️ Final Recommendation: REQUEST CHANGES

Phase Status

Phase Status Notes
Pre-Flight ✅ COMPLETE Trusted evidence-first context captured for submitted HEAD e3e8831de1f23dbe05947b086ca63a6baa3403dd
Code Review NEEDS_DISCUSSION (low) 0 errors, 0 warnings; required validation evidence remains incomplete
Gate ⚠️ SKIPPED Android selected; no tests detected, so Gate does not permit approval
Try-Fix Not requested Evidence-first mode intentionally omitted routine alternative generation
Refinement Not generated No actionable defect or unresolved behavioral mechanism met the evidence threshold
Report ✅ COMPLETE Compared the sole real candidate, pr

Code Review and Candidate Comparison

Candidate Implementation Validation Expert findings Assessment
pr Submitted fix Gate skipped; required checks undetermined/pending with a failure signal No line-level errors or warnings; verdict NEEDS_DISCUSSION because safety is not validated Sole and selected candidate, but not demonstrated merge-ready

Try-Fix was not requested. No pr-plus-reviewer candidate was implemented because the expert review found no concrete actionable defect or unresolved behavioral mechanism backed by source or test evidence. The submitted PR therefore wins by being the only real candidate, not by having passed regression validation.

Summary

The submitted implementation coherently adds the opt-in evidence-first path and its completeness safeguards, and the expert pass found no actionable line-level defect. Approval is nevertheless vetoed: Gate was skipped because no tests were detected, authenticated required-check evidence was unavailable, and the available check state was incomplete with a failure signal. The submitted fix needs successful relevant validation before merge readiness can be claimed.

Root Cause

The existing reviewer always enters candidate comparison and routine Try-Fix exploration. This change introduces a trusted experiment mode that gathers bounded context, records routine alternative generation as intentionally not requested, performs one expert review, and permits refinement only when evidence identifies a concrete mechanism. It also repairs Windows-specific process-launch and Boolean-binding incompatibilities found while exercising that infrastructure.

Fix Quality

The source-level design keeps mode authority in the trusted caller, fails closed when restricted preflight requirements are unavailable, preserves publication vetoes, and scopes the Windows repairs without changing POSIX behavior. However, artifact-presence checks and source inspection do not prove review fidelity or runtime correctness. With Gate skipped and no completed relevant regression signal, the raw PR remains unvalidated and requires changes or evidence sufficient to clear those obligations.


🧭 Next Steps — review latest findings

No alternative fix was selected for this run. Review the session findings and CI results before merging.

@kubaflo

This comment has been minimized.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Warning

Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding.

What happened

The threat detection results could not be parsed.

Review the workflow run logs for details.

Tests Failure Analysis

@PureWeen — test-failure analysis for commit e3e8831.

Scope CI failures Commit e3e8831


🧪 CI Analysis — click to expand
📊 maui-pr

No failures found.


🧪 maui-pr-devicetests

No failures found.


🧪 maui-pr-uitests
  • 🟢 Likely unrelated — macOS WebView navigation: identical 45-second Appium timeout on main; PR leaves WebView and its harness unchanged.
  • 🟢 Likely unrelated — 98 Android setup failures: shared disposed-IApp exception also affects the same ShellSearch test on main; setup is unchanged.
  • 🟢 Likely unrelated — Android API 36 emulator provisioning: “ZipFile unknown archive” during system-image installation; PR changes neither this provisioning nor its packages.
  • 🟡 Needs human investigation — macOS ChangingTranslationShouldNotCauseLayoutPassOnAncestors: textUpdated remained false; reproduce on main with identical setup because the five sampled runs provide no comparable assertion.
  • Insufficient data — four macOS/Android API 30 publisher errors report failed tests, but only 100/428 failed results were collected; all five target samples are partial.
  • Insufficient data — canceled Android API 30 Shell (Mono, CoreCLR) and macOS Layout legs leave incomplete outcomes.

🧭 Follow-up — actions and refresh

Next action: Restore complete UI evidence and compare the translation assertion on main under identical conditions.

Maintainers: comment /review tests to refresh this report.

github-actions[bot]

This comment was marked as outdated.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Note

🔍 /review started

AzDO build 15682278 is running for android.

The s/agent-review-in-progress label stays on this PR through the full pipeline. The final AI Summary and outcome labels are posted only after Gate, expert review, and Deep UI tests finish.

github-actions[bot]

This comment was marked as outdated.

@MauiBot

MauiBot commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

⚠️ Merge Conflict Detected — This PR has merge conflicts with its target branch. Please rebase onto the target branch and resolve the conflicts.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Oct 14, 2026
github-actions[bot]

This comment was marked as outdated.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 14, 2026
github-actions[bot]

This comment was marked as outdated.

@MauiBot

MauiBot commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@PureWeen — existing-test verification; Setup did not capture a tested commit.

Result INCONCLUSIVE Platform Android


🧪 Gate analysis — click to expand

⚠ Inconclusive. The PR could not be merged with its target branch; no tests ran.

No interpretable test-group summary was produced. No additional test execution is inferred.

Setup did not capture a verified PR head; no commit is claimed as tested.

No immutable without-fix baseline was prepared.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Oct 14, 2026

@github-actions github-actions Bot 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.

Expert Review

@PureWeen — new AI review results are available based on commit e3e8831.

Scope: Full PR (all commits) Expert review: Incomplete

⚠️ Merge recommendation: NO. Review incomplete: Dimension 5 did not complete. The reviewer did not complete finding validation.

🔬 Review details

Coverage: 4/5 dimensions; finding validation incomplete.

Dimensions:

  • ⚠️ 5. Logic and Correctness Verification (incomplete)
  • ✅ 6. Regression Prevention and Test Coverage
  • ✅ 16. Complexity Reduction
  • ✅ 29. Build & MSBuild
  • ✅ 31. Input and Path Correctness

Findings: 1 new inline, 0 in this comment, 0 already posted (not repeated).

AI source/history review only; no builds or tests run. Required CI and human approval still apply.

$env:TreatWarningsAsErrors = $savedWarningsAsErrors
}

It 'passes Boolean false through the native Windows bootstrap for <BuildConfiguration>' -Skip:(-not $IsWindows) -ForEach @(

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.

[moderate] Regression Prevention and Test Coverage - The new native-bootstrap regression suite is not selected by .github/workflows/powershell-script-tests.yml: its directory is absent from both the change triggers and Run.Path, and the only Pester job uses ubuntu-latest, where the Windows cases are skipped. Reverting -warnAsError 0 to false would restore the reported Boolean-binding failure without these tests failing in CI. Wire this suite and its trigger path into a Windows-capable Pester job so the actual build.cmd to eng/build.ps1 fixture runs automatically.

@github-actions github-actions Bot 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.

Expert Review — 0 findings

Reviewed commit e3e8831.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 17, 2026
@MauiBot

MauiBot commented Oct 17, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@PureWeen — existing-test verification; Setup did not capture a tested commit.

Result INCONCLUSIVE Platform Android


🧪 Gate analysis — click to expand

⚠ Inconclusive. The PR could not be merged with its target branch; no tests ran.

No interpretable test-group summary was produced. No additional test execution is inferred.

Setup did not capture a verified PR head; no commit is claimed as tested.

No immutable without-fix baseline was prepared.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Oct 17, 2026
@kubaflo kubaflo closed this Nov 20, 2026

This branch had an error being deployed

1 failed and 1 inactive (outdated) deployments
skill-evaluation-pat-pool — e3e8831d Deployed Oct 8, 2026 by PureWeen via Harness hermeticity gate #26676
copilot-pat-pool — 593c62bb Deployed Oct 7, 2026 by PureWeen via conclusion #2272
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants