Repository navigation
Limit skill evaluation configuration options - #38572
Conversation
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>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38572Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38572" |
|
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. |
There was a problem hiding this comment.
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. |
This comment has been minimized.
This comment has been minimized.
Skill Validation Results
|
MauiBot
left a comment
There was a problem hiding this comment.
AI Review Summary
@PureWeen — new AI review results are available based on commit
f967fbc.
🗂️ 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.executoror legacyconfig.executorto the exact stringcopilot-sdk. - The PR rejects specs that combine
defaultswith legacyconfig, 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 isruby .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 | .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
defaultsand legacyconfigare 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 | 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 | 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 | 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 |
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 |
No improvement over pr; reviewer.patch is empty |
Equivalent, not a distinct winner | |
| 3 | try-fix-1 |
Proposed a positive schema-gated execution envelope | 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 | 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.
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
defaultsplus legacyconfig, 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
Issues Fixed
N/A