Skip to content

Limit skill evaluation configuration options - #38572

Merged
kubaflo merged 1 commit into
mainfrom
pureween-limit-vally-evaluation-config
Sep 16, 2026
Merged

kubaflo merged 1 commit into
mainfrom
pureween-limit-vally-evaluation-config

Conversation

@PureWeen

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

Limits skill evaluation specs to the workflow-owned executor and supported model configuration. The preparer now rejects alternate executor shapes, provider and plugin mapping keys at any depth, and combined defaults plus legacy config, while allowing the same words in prompt and rubric text.

Adds focused preparer coverage for accepted and rejected configuration shapes and workflow structure coverage confirming validation completes before token selection and evaluation steps.

Validation

  • Preparer test suite: 80 runs, 462 assertions
  • Preparer validation across all current evaluation spec directories
  • Strict Vally 0.14.0 lint across all 16 evaluation specs

Issues Fixed

N/A

Require the workflow-owned executor and reject unsupported provider and plugin mappings before evaluation starts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 15, 2026 20:04
@github-actions

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 -- 38572

Or

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

@azure-pipelines

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

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.

Copilot review overview

🔵 Needs a closer look

Credentialed evaluation configuration and workflow validation warrant final human review.

Review tier: Lite
Findings: None

What changed in this PR

This PR restricts skill evaluation specs to the workflow-owned executor and supported configuration shapes.

Changes:

  • Rejects unsupported executors, provider/plugin keys, and mixed configuration scopes.
  • Adds validation and workflow-ordering test coverage.
File Description
.github/​scripts/​TestPrepareVallyEvaluation.rb Adds focused validation and workflow-structure tests.
.github/​scripts/​PrepareVallyEvaluation.rb Enforces supported execution and configuration options.

@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 Sep 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Skill Validation Results

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

Overall Needs attention Static Passed LLM Needs attention Skills 25 Agents 6

⚠️ Skill Validation Results — f967fbc · Limit skill evaluation configuration options · 2026-09-15T20:33:10Z

✅ Static Checks Passed

Skills: 25 | Eval specs linted: 16

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/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 Incomplete

No valid JUnit suite results were found for: agentic-labeler, analyze-sessions, ci-fix, code-review, evaluate-pr-tests, pr-review, try-fix, verify-tests-fail-without-fix.

🔍 Full results and investigation steps

@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 f967fbc.

Gate No Tests Confidence Low Platform Ci


🗂️ 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

Issue: N/A - No linked issue
PR: #38572 - Limit skill evaluation configuration options
Platforms Affected: CI/evaluation tooling (platform-neutral; requested test platform: android)
Files Changed: 1 implementation, 1 test

Key Findings

  • The PR recursively rejects seven execution/provider/plugin mapping keys, permits the same terms in scalar prompt and rubric text, and restricts defaults.executor or legacy config.executor to the exact string copilot-sdk.
  • The PR rejects specs that combine defaults with legacy config, and adds focused Minitest coverage plus workflow-order assertions.
  • No inline review comments or linked issue were present. The prior Copilot review reported no findings; static skill validation passed, while the external LLM evaluation produced no valid JUnit suites.
  • Gate result supplied by the caller: SKIPPED because the gate detected no tests. The changed test file is .github/scripts/TestPrepareVallyEvaluation.rb; the bounded primary command for alternatives is ruby .github/scripts/TestPrepareVallyEvaluation.rb. No additional mandatory regression tests were listed.

Code Review Summary

Verdict: SKIPPED
Confidence: N/A
Errors: 0 | Warnings: 0 | Suggestions: 0

Key code review findings:

  • Dedicated expert review is intentionally deferred to STEP 5b by the execution contract; no separate expert-review agent was launched in this phase.

Fix Candidates

# Source Approach Test Result Files Changed Notes
PR PR #38572 AST key deny-list plus exact executor and mixed-scope validation ⚠️ SKIPPED (Gate) .github/scripts/PrepareVallyEvaluation.rb, .github/scripts/TestPrepareVallyEvaluation.rb Original PR; gate detected no tests

🔬 Code Review — Deep Analysis

Code Review — PR #38572

Independent Assessment

What this changes: The trusted Vally preparer now rejects evaluation specs that attempt to select an executor other than the workflow-owned copilot-sdk, combine modern defaults with legacy config, or introduce provider, credential-environment, or plugin configuration keys anywhere in the YAML mapping tree. Scalar prompt and rubric text remains opaque, so merely mentioning those terms does not trigger rejection. The PR also adds focused preparer tests and assertions that spec validation precedes token selection and evaluation in both workflow jobs.

Inferred motivation: Evaluation specs are untrusted input executed in a token-bearing workflow. Restricting them to the executor and model controls supported by that workflow prevents a spec from redirecting execution, credentials, providers, or plugins before secrets are selected.

Approach Assessment

The implementation is appropriately fail-closed and runs on the Psych syntax tree before semantic YAML loading. That ordering preserves the existing defenses against aliases, duplicate keys, merge keys, and parameter placeholders while allowing forbidden terms in scalar values. Exact type-and-value validation for defaults.executor and config.executor prevents object-shaped executor configuration from bypassing the string contract. Rejecting mixed defaults and config at validation time removes ambiguous precedence for all preparer modes, not only model listing.

The recursive key deny-list is intentionally broader than validating only known top-level envelopes. That is justified for this trusted boundary because nested grader, stimulus, environment, provider, and plugin mappings can affect execution, and the tests exercise each forbidden key at multiple depths. The tradeoff is that future inert metadata mappings cannot reuse these seven key names without a preparer update; no current submitted spec requires that shape.

Findings

No actionable inline findings. The expert reviewer wrote an empty JSON array to inline-findings.json.

Failure-Mode Probing

  • Non-string or object-shaped executor: rejected unless the value is exactly the string copilot-sdk.
  • Alternate configuration scope: both defaults and legacy config are checked, and using both is rejected before downstream model enumeration.
  • Nested execution controls: mapping keys are traversed recursively, including grader configuration and environment metadata.
  • Prompt/rubric false positives: scalar values are not treated as mapping keys, and focused acceptance coverage preserves literal prose.
  • YAML structural bypasses: the new traversal runs alongside the existing syntax-tree checks; aliases, merge keys, duplicate keys, and parameter placeholders remain independently rejected.

External Output Contract

Not applicable. The submitted change does not classify external tool output.

Gate and Confidence

The supplied trusted Gate was skipped because it detected no tests. The PR does add Ruby preparer coverage, but the Gate result remains undetermined and must not be re-run under the execution contract.

Verdict: NEEDS_DISCUSSION

Confidence: low
Summary: The submitted code has no identified correctness or security defect and is the only implemented STEP 5a approach. Approval is nevertheless unavailable because the trusted Gate was skipped; the comparative phase must preserve that uncertainty rather than treating the missing Gate result as a pass.


🛠️ Try-Fix — Analysis & Comparison

Fix Candidates

# Source Approach Test Result Files Changed Notes
1 gpt-5.3-codex / try-fix Schema-gated execution envelope using a positive structural contract ⚠️ BLOCKED — primary test not run None Baseline script could not establish .github/.baseline-state.json from the pre-existing dirty worktree, so the target-file allow-list could not be proven; restore reported no baseline state and no candidate edits remained
2 gpt-5.6-sol / try-fix Differential validation of Vally's resolved effective execution plan ⚠️ BLOCKED — primary test not run None Used candidate 1's recorded result and avoided both prior mechanisms, but the same pre-existing dirty worktree prevented safe baseline state creation; restore reported no baseline state and target hashes were unchanged
PR PR #38572 Recursive execution-key deny-list, exact executor checks, and mixed-scope rejection ⚠️ SKIPPED (Gate) 2 files Original PR; gate detected no tests

Cross-Pollination

Model Round New Ideas? Details
All N/A Not run Prohibited by the STEP 5a execution contract

Exhausted: Yes — the contract's two model attempts were completed; both were blocked before implementation or testing
Selected Fix: PR's fix (provisional) — it is the only implemented option, but STEP 5a did not empirically validate it because the supplied gate was skipped and both alternatives were blocked by the pre-existing dirty worktree


📝 PR Finalize — Recommended Title & Description

Assessment: ✏️ Recommend updating — the description is accurate and detailed, but the title lacks the required CI/component prefix and does not name the Vally evaluation surface.

Recommended title

[CI] Vally evaluation: Limit supported execution configuration

Recommended description

### Description of Change

Limits skill evaluation specs to the workflow-owned executor and supported model configuration. `.github/scripts/PrepareVallyEvaluation.rb` now rejects alternate executor shapes, provider and plugin mapping keys at any depth, and combined `defaults` plus legacy `config`, while allowing the same words in prompt and rubric text.

Adds focused coverage in `.github/scripts/TestPrepareVallyEvaluation.rb` for accepted and rejected configuration shapes and workflow structure coverage confirming validation completes before token selection and evaluation steps.

This is platform-neutral CI/evaluation tooling and does not change Android or other product platform runtime behavior.

### Validation

- Preparer test suite: 80 runs, 462 assertions
- Preparer validation across all current evaluation spec directories
- Strict Vally 0.14.0 lint across all 16 evaluation specs

### Issues Fixed

N/A

🏁 Report — Final Recommendation

⚠️ Final Recommendation: REQUEST CHANGES

Winner

pr — the raw submitted PR fix.

The submitted implementation is the only candidate with an actual fix, focused tests, and a complete code-level assessment. The single expert review found no actionable defect. The recommendation cannot be APPROVE, however, because the supplied trusted Gate was skipped and the execution contract forbids treating that result as a pass.

Comparative Ranking

Rank Candidate Implementation Regression evidence Expert assessment Result
1 pr Recursive denial of seven execution/provider/plugin mapping keys; exact copilot-sdk executor contract; mixed defaults/legacy config rejection ⚠️ Trusted Gate skipped No actionable inline findings; approach is sound and focused Winner
2 pr-plus-reviewer No reviewer delta; semantically identical to pr for the reviewed fix ⚠️ Not run because there was no reviewer patch to validate No improvement over pr; reviewer.patch is empty Equivalent, not a distinct winner
3 try-fix-1 Proposed a positive schema-gated execution envelope ⚠️ Blocked before edits; primary test executed 0 times Design-only; compatibility and coverage are unproven Lower than implemented candidates
4 try-fix-2 Proposed comparing Vally's resolved effective execution plan with a trusted control ⚠️ Blocked before edits; primary test executed 0 times Design-only and additionally depends on an unverified pinned-runtime planning interface Lower than implemented candidates

No candidate failed a regression test: the trusted Gate was skipped, pr-plus-reviewer had no patch requiring validation, and both STEP 5a alternatives were blocked before testing. Therefore, the mandatory failed-test demotion rule does not distinguish the candidates; implementation completeness and reviewed correctness do.

Why pr Wins

The raw PR enforces the security boundary before token selection without scanning scalar prompt or rubric text. It covers both modern and legacy execution scopes, rejects non-string/object-shaped executor values, recursively detects nested execution controls, and removes ambiguous defaults/config precedence. The expert reviewer produced [] in inline-findings.json, so there was no justified pr-plus-reviewer source change.

The try-fix proposals may be useful future designs, but neither produced a diff or empirical evidence. The positive-schema approach risks rejecting unrelated supported fields unless a complete schema is established, while the effective-plan approach requires a credential-free pinned-Vally planning contract that the attempt never confirmed.

Required Follow-Up

Obtain a trusted run of the focused preparer validation (ruby .github/scripts/TestPrepareVallyEvaluation.rb) or correct the Gate's Ruby-test detection so this PR's added tests are recognized. Do not alter the winning implementation solely to manufacture a distinct candidate.


🧭 Next Steps — review latest findings

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

@MauiBot MauiBot added s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates 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 Sep 15, 2026
@kubaflo
kubaflo merged commit b272273 into main Sep 16, 2026
18 of 32 checks passed
@kubaflo
kubaflo deleted the pureween-limit-vally-evaluation-config branch September 16, 2026 17:18
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Sep 16, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 17, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — f967fbcc Deployed Sep 15, 2026 by PureWeen via conclusion #1910
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates 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.

5 participants