Skip to content

Add review-pull-request L1 Vally suite - #70555

Closed
PureWeen wants to merge 6 commits into
dotnet:mainfrom
PureWeen:review-pull-request-l1-suite
Closed

PureWeen wants to merge 6 commits into
dotnet:mainfrom
PureWeen:review-pull-request-l1-suite

Conversation

@PureWeen

@PureWeen PureWeen commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Add review-pull-request L1 Vally suite

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Add the frozen-evidence L1 suite for review-pull-request.

Description

This PR adds five real-code reviewer cases and one synthetic control to eng/skill-evals/review-pull-request/eval.vally.yaml, plus the L1 fixture checks and runner tests. Case-06 replaces the catch-policy suite, so this PR removes catch-policy.vally.yaml and its fixtures. The reviewer experiments, the result assertions, and the rest of the harness are already on main.

The PR diff changes 57 files. Forty-three are case fixtures (four are catch-policy fixtures moved to case-06). The rest are the spec, the seven removed catch-policy files, the workflow dispatch option, the README, the disposition grader and its Node tests, and two PowerShell test scripts.

The fixtures are curated slices, not production bundle output. Case-02 uses one diff from a six-file PR. Production supplies full SHA-keyed source trees and the complete PR diff. These results provide regression evidence only.

Cases

All six expected answers are provisional. No oracle has an independent human audit. Each needs a two-reviewer audit.

Case Source What it tests Expected result
case-01 #70106 (AuthorizationMessageHandler.cs) A stale-token claim during an authentication-state change. discarded (STATUS: FINDINGS + inline [DISCARDED])
case-02 #69782 (FileConverter.cs) Changed binding of an unmatched IReadOnlyList<IFormFile> constructor parameter, from an empty list to a required-value error. verified (STATUS: FINDINGS)
case-03 #70304 / #66322 (Renderer.cs) An ErrorBoundary-delivery claim after renderer disposal. discarded (STATUS: FINDINGS + inline [DISCARDED])
case-04 #69721 (RemoteMsalAuthenticationStartup.cs) Whether the wrapper flag can become true only after a token exchange completes. discarded (STATUS: FINDINGS + inline [DISCARDED])
case-05 #70299 (NavigationEnhancement.ts) A navigation-ordering question already present in a review thread. EXISTING_FEEDBACK_COVERAGE + unresolved (STATUS: NO_FINDINGS, no duplicate comment)
case-06 #70312 synthetic catch-policy control An unestablished secondary-failure policy after status notification. unresolved (STATUS: FINDINGS + inline [UNRESOLVED])

The original case-04 claim mixed an unestablished timing link with a contradicted effect link, so reviewers split between DISCARDED and UNRESOLVED. The case was narrowed to the flag's ordering relative to signIn(state).

Case-06 notifies observers before the diagnostic sink call. This removes an accidental notification-order confound. Its oracle remains UNRESOLVED. Two independent cold model reviews agree, but they do not replace human audit.

Disposition grader fixes

The review-mode disposition grader in grade_disposition.mjs gets fixes and regression tests.

  • Candidate IDs with underscore emphasis, such as _C1_ or __C2__, now count as candidate IDs. The grader now matches IDs on the raw text instead of on text with Markdown removed, so an underscore in a literal path or identifier such as src/_C2_/File.cs or C1_value is not read as an ID.
  • A C1 absence statement that names another section, such as "C1 is not discarded; it remains unresolved", now counts as absence from the section that it negates.
  • Absence prose that is already handled on main (none-applicable and N/A with colon or comma, conflicting no-findings prose, and a PATH: bullet that ends a section) is now covered by tests.

Component mode is unchanged.

How L1 grading works

  • L1 measures frozen-evidence adjudication regressions, not skill lift. Skill lift needs end-to-end evidence.
  • The baseline arm is a diagnostic control, not a competitor. Its scores do not have a pass threshold.
  • Multi-trial assertions enforce each skilled case independently.
  • Only the deterministic Node disposition grader has scoring weight. The LLM rubric, skill-invocation, and tool-call graders have zero weight.
  • Both arms receive the same outcome definitions. Shared prompts do not include SKILL.md decision rules.
  • Baseline receives the saved pull request files and repository guides. Skilled also receives the skill and the worker and verifier profiles.

Earlier L1 results

These results come from an earlier measured commit, edf19115a81134220659c99a5edaa965f08a95e9. The experiments, guidance documents, and agent profiles in this PR match that commit byte for byte. Several inputs changed after the measurement:

  • Main later added explicit entry-point routing to the start of .github/skills/review-pull-request/SKILL.md. The L1 prompt already asks for the offline one-pass path that this routing describes. The skilled arm was rerun with the current skill as described below.
  • The disposition grader changed in this PR. A regrade of all 60 stored trial outputs with the new grader gives the same score for every trial.
  • Case-04's candidate and rubric were narrowed after both 30-trial runs. Their case-04 scores measure the original claim.

Each arm ran five trials for each case. Baseline scored 27/30. Skilled scored 29/30. All 60 trials completed.
Codes: D = discarded, V = verified, U = unresolved, EC+U = existing-feedback coverage with the same unresolved thread reference.

Case Baseline codes, trials 0-4 Passed Skilled codes, trials 0-4 Passed
case-01 D,D,D,D,D 5/5 D,D,D,D,D 5/5
case-02 V,V,V,D,V 4/5 V,V,V,V,V 5/5
case-03 D,D,D,D,D 5/5 D,D,D,D,D 5/5
case-04 U,D,D,U,D 3/5 D,D,D,U,D 4/5
case-05 EC+U,EC+U,EC+U,EC+U,EC+U 5/5 EC+U,EC+U,EC+U,EC+U,EC+U 5/5
case-06 U,U,U,U,U 5/5 U,U,U,U,U 5/5

The earlier assert_results.ps1 check failed on skilled case-04: 4/5 is below its configured 5/5 threshold.

Earlier skilled trial 3 abstained as UNRESOLVED on missing version-bound MSAL behavior and browser-ordering evidence. This was a semantic disagreement on the original claim, not a parsing failure. The narrowed case remains provisional pending independent human audit.

Baseline case-02 trial 3 returns DISCARDED. It treats the required-constructor-parameter contract as support for the new missing-value error. This is another provisional-oracle audit item.

Baseline case-04 trials 0 and 3 both returned UNRESOLVED: they found no frozen browser or MSAL timing evidence establishing the original claim's exchange-before-assertion link.

Evidence and guidance graders each pass 60/60. Skilled skill-invocation and treatment graders each pass 30/30. Baseline treatment passes 0/30, as intended. Zero-weight rubric diagnostics pass 20/30 baseline and 23/30 skilled.

Skilled rerun with the current skill, before case-04 narrowing

The skilled arm was rerun at 2330e6d947e9f0c46e6c3eaae1cfd44c22a1aee2. All 30 trials completed. The baseline was not rerun.

Case Earlier skilled Rerun skilled codes, trials 0-4 Rerun skilled
case-01 5/5 D,D,D,D,D 5/5
case-02 5/5 V,V,V,V,D 4/5
case-03 5/5 D,D,D,D,D 5/5
case-04 4/5 D,D,D,D,D 5/5
case-05 5/5 EC+U,EC+U,EC+U,EC+U,EC+U 5/5
case-06 5/5 U,U,U,U,U 5/5
Total 29/30 29/30

The rerun fails the configured per-case gate: assert_results.ps1 reports case-02 at 4/5, below 5/5. Trial 4 recognizes the changed mapping error but discards the claim, treating the required-parameter rule and the lower-layer head test as support for that behavior. The provisional oracle expects a verified finding.

All five case-04 trials returned DISCARDED on the original claim. This does not resolve its prior disagreement or replace the pending human audit of the narrowed case. This rerun does not establish that the skill change caused either case-level difference.

Evidence, guidance, treatment, and skill-invocation receipts each passed 30/30. The native skill activation delivered the staged current skill body in every trial. The zero-weight rubric diagnostic passed 22/30.

Narrowed case-04 diagnostic

The narrowed case-04 ran ten skilled trials: 10/10 DISCARDED, with evidence, guidance, treatment, and skill-invocation receipts each passing 10/10. The result-set assertion passed.

All ten reasons cite the flag assignment before delegation to signIn. Some responses also assert browser observation timing that the frozen source does not establish; that timing is not needed to refute the narrowed claim. The case remains provisional pending independent human audit.

Red means "read the misses": inspect each decision and its reason against the provisional oracle, rather than treating the score alone as a verdict.

Case-02 diagnostic

A separate skilled-only run completed 20 case-02 trials: 19 VERIFIED, 1 DISCARDED. The only miss was trial 3. It recognized the changed mapping error but treated the target-base required-parameter rule as dispositive and the lower-layer head converter test as supporting intent. This was a substantive disagreement with the provisional oracle, not a parsing failure.

Evidence, guidance, treatment, and skill-invocation receipts each passed 20/20. The native skill activation delivered the staged skill body in every trial. The zero-weight rubric passed 19/20. Both Vally with --require-pass and assert_results.ps1 exited 1 because 19/20 is below the threshold of 1.

Together with the earlier 4/5, the current skill scored 23/25 on case-02. Both misses, including diagnostic trial 3, treated the target-base required-parameter rule and the lower-layer head test as support for the changed behavior. Include both arguments in the pending two-reviewer audit of the provisional #69782 oracle.

At an assumed independent per-trial pass rate of 0.92, a 5/5 gate goes red about one run in three. This small sample does not establish a population rate.

The full six-case suite was not rerun after narrowing case-04.

Validation

Command or check Result
pwsh -NoProfile -File eng\skill-evals\run.ps1 -Action Validate Passed, exit 0
pwsh -NoProfile -File eng\skill-evals\run.ps1 -Action Test Passed, exit 0, including 356/356 fixture checks and 75/75 Node tests
pwsh -NoProfile -File eng\skill-evals\run.ps1 -Action Test -Suite review-pull-request Passed before case-04 narrowing, exit 0
git diff $(git merge-base origin/main HEAD) --check Clean
Offline regrade of the 60 stored L1 outputs with the new grader 0 score changes (baseline 27/30, skilled 29/30)
L1 baseline, all six cases x five trials (measured commit) 30 ran, 27 disposition passes, 3 misses
L1 skilled, all six cases x five trials (measured commit) 30 ran, 29 disposition passes, 1 miss
L1 assert_results.ps1 (measured commit) Failed on skilled case-04, 0.8 below 1
L1 skilled rerun, all six cases x five trials (current skill) 30 ran, 29 disposition passes, 1 miss
L1 assert_results.ps1 -Variant skilled (rerun) Failed on skilled case-02, 0.8 below 1
Narrowed case-04, skilled only, ten trials 10 ran, 10 disposition passes, 10/10 read and skill receipts
Narrowed case-04 assert_results.ps1 -Variant skilled Passed, exit 0
Case-02 diagnostic, skilled only, 20 trials 20 ran, 19 disposition passes, 1 miss; 20/20 read and skill receipts
Case-02 assert_results.ps1 -Variant skilled Failed, exit 1, 0.95 below 1

Known limits

Routine run.ps1 still requests --compare, which adds an LLM pairwise judge. Neither L1 measurement requested that judge.

The coordinator head-test question guard remains unmeasured end to end. No case tests a positive confidence: question output.

These public fixtures are development regressions, not hidden holdout benchmarks.

Two zero-weight rubric checks refer to fixture-specific roles in case-02 and case-04.
Make those checks layout-independent in a follow-up.

Evaluate hydrated source bundles in a separate follow-up. The current fixtures
are curated slices, not full production bundles.

Relates to #70231

@github-actions github-actions Bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Nov 12, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at.

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

Initial review: L1 is now separated from #70318 as described, but its shared grader retains a reproduced wording-sensitive failure and its case-04 oracle remains disputed.

Reviewed head ae48e9e54e, frozen main base/verified merge base 034cdd3d1d487e4f692bb61a64b288c912372ecb. Verified actual stack ancestry: #70318 head 2d4129cb25 is this head's ancestor. Current GitHub base is still main, so its 107-file diff intentionally includes the parent. The stated post-squash reconciliation and trusted-main /evaluate dependency are disclosed, not performed here.

Evidence reuse is exact, not inferred: this head and previously reviewed edf19115a81134220659c99a5edaa965f08a95e9 have the identical whole repository Git tree c4ef31831682e99c0f764e62a7e35b66f83840fb. Thus this PR restores the already reviewed six-case inputs, experiments, grader, runner/staging/assertion logic and docs byte-for-byte. The parent-to-child delta restores L1 fixture/selection tests and dispatch option and retires the old catch-policy suite. I inspected that split delta and both descriptions; the original main-to-head diff is not being mistaken for 107 newly unreviewed implementations.

Actionable shared-grader finding: independently reproduced the issue raised on the parent in r4557651101. Case-06 with C1: None of the supplied contracts requires logger exceptions to propagate. under UNRESOLVED scores 0; equivalent C1: No supplied contract requires ... scores 1; true omission (None.) scores 0. The consumer treats the substantive “None of the contracts” explanation as absence of C1. Because the deterministic program alone has scoring weight, this can reject correct adjudication solely for phrasing. The finding is not limited to parent scope: this tree contains the active L1 suite that consumes the grader. No duplicate inline report added.

Oracle disposition remains unchanged: case-04's forced DISCARDED is explicitly provisional/disputed. The wrapper's flag-before-delegation and a later Selenium poll do not alone prove exchange cannot finish before observation; missing version-specific external MSAL/request evidence remains a gap. All six expected answers await the disclosed independent audit. Author-reported baseline 27/30, skilled 29/30 and skilled case-04 4/5 below its configured 5/5 floor are accurately identified as a failing L1 gate, not evidence of skill lift. I did not inspect raw model-run artifacts or repeat those model measurements.

Validation provenance: the exact identical tree was independently validated in my preceding review: existing Test passed 356/356 fixture assertions and 27/27 Node tests plus infrastructure tests; reviewer/component Validate with Vally 0.19.0 passed schema/lint and model-free planning. Those results are carried by proven tree identity, not described as newly rerun at this commit. The three direct grader probes above were run anew after checking out this head. Current-head git diff --check passes using its frozen-fixture attributes. A cross-ref check while the parent was checked out warned about intentionally preserved fixture whitespace because those L1 attributes were absent there; rerunning in this head resolved that context mismatch.

Assessment: NEEDS_CHANGES; overall safety confidence low. Required Build Analysis pending; CLA passes. No prior reviews on this new PR at final feedback refresh; parent findings and historical fixes reconciled above. Direct GPT-6.1 Sol and model-free checks only; no additional models/campaigns, new tests, dependency installation, product/runtime/browser/screenshot execution or relevant supplied visual media, product edits, commits, fixes, approval, request-changes event, merge, history rewriting or thread resolution. Final live open/head/base-ref, complete three-surface fingerprint and same-head duplicate-marker guards checked before publication.

PureWeen and others added 5 commits November 16, 2026 11:02
Add the standard review-pull-request suite with six frozen-evidence cases,
the reviewer baseline and smoke experiments, the L1 fixture self-tests, and
the review-pull-request dispatch option. Case-06 replaces the specialized
catch-policy suite and its fixtures.

Co-authored-by: Copilot App <[email protected]>
Review-mode C1 and extra-candidate checks ran on raw text, so _C1_ and __C1__ were invisible to the word-boundary match. Check markdown-stripped text instead.

Co-authored-by: Copilot App <[email protected]>
A DISCARDED line such as 'C1 is not discarded; it remains unresolved' or 'None. C1 is unresolved rather than discarded.' states that C1 belongs elsewhere, but the grader counted it as a DISCARDED candidate. Recognize negation of the section's own status, paired with another status, as absence.

Co-authored-by: Copilot App <[email protected]>
Add review-mode tests for absence-marker prose with comma and colon continuations, 'No findings' prose, and an unindented '- PATH:' bullet that ends a section.

Co-authored-by: Copilot App <[email protected]>
Recognizing underscore-emphasized IDs by stripping Markdown exposed IDs inside literal paths such as src/_C2_/File.cs. Match IDs on the raw text instead: keep word-bounded IDs and also accept an underscore-emphasis run only when it is not part of a word or path.

Co-authored-by: Copilot App <[email protected]>
@PureWeen
PureWeen force-pushed the review-pull-request-l1-suite branch from ae48e9e to 2330e6d Compare November 16, 2026 18:26

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

Follow-up review

Reviewed 2330e6d947e9f0c46e6c3eaae1cfd44c22a1aee2 against main, frozen base tip 7c704fed602c54d174e5674aee7b2eefe57073c9, verified merge base bd09dd9c08b6d1bf736cb86a0dbea4d4a013e088. The parent #70318 has merged: I separated inherited main changes from the actual 57-file L1 diff rather than treating the old-head-to-new-head merge history as fresh product changes.

No newly introduced actionable correctness defect established in the reviewed delta. The added candidate-ID handling recognizes _C1_/__C1__ and extra emphasized candidates without stripping underscores from literal paths first; cross-section negation now distinguishes "not discarded; it remains unresolved" from actual contradictory placement. Direct base/head grader probes confirm the new emphasized-ID and cross-section-negation cases change from rejection to acceptance, while an ordinary plain-C1 control remains accepted. Component scoring is unchanged.

Prior finding disposition: the substantive C1: None of the supplied contracts requires logger exceptions to propagate. explanation now scores 1 at this head; the wording-sensitive failure from my initial review is addressed by the inherited main grader fix. This does not establish universal Markdown support: a sampled _C1_. Missing ... section entry still fails in both merge-base and head graders, whereas _C1_: Missing ... passes at head. That punctuation limitation is pre-existing, not a regression attributed to these commits.

Measurement provenance checked, not assumed: every Git blob in all 43 L1 fixture files, the eval spec, both review experiments, both guidance documents, and both worker/verifier profiles exactly matches edf19115a81134220659c99a5edaa965f08a95e9. The skilled SKILL.md does not match that measured revision: its inherited entry-point/offline routing text changed. The description now discloses that difference. These byte comparisons support fixture/input reuse only; I did not independently inspect the stored 60 model outputs or verify the claimed zero-change regrade.

Oracle and gate concerns remain: all six expected answers await the disclosed independent two-reviewer audit; case-04's forced DISCARDED remains disputed. The author correctly reports skilled case-04 4/5 below the required 5/5 as a failing historical gate, not a pass or skill-lift result. Missing version-bound MSAL/browser-ordering evidence is not supplied by new regex tests, and source parity cannot resolve that semantic dispute. Case-02's baseline disagreement and the absent end-to-end coordinator handoff/positive-question controls remain explicitly disclosed.

Exact-head model-free validation: pwsh -NoProfile -File eng/skill-evals/test_run.ps1 passed; pwsh -NoProfile -File eng/skill-evals/test_review_fixtures.ps1 passed 356/356; node --test eng/skill-evals/test_disposition.mjs passed 75/75. Pinned Vally 0.19.0 run.ps1 -Action Validate -Suite review-pull-request with the cached executable and empty prefix passed lint/schema/layout and both experiment dry-runs. git diff --check 7c704fed602c54d174e5674aee7b2eefe57073c9...2330e6d947e9f0c46e6c3eaae1cfd44c22a1aee2 passed. No new tests or product changes were authored for this review.

External-output scope: the changed consumer reads final review prose, not process completion tokens. I compared the actual suite prompt's section/C1 rules with the raw-text ID and section-negation parser, including controls for unchanged plain IDs and literal underscore paths. The cited model-run counts remain author-reported rather than independent runtime measurements. Required Build Analysis is currently pending; license/cla passes.

Verdict: NEEDS_DISCUSSION; safety confidence: low, chiefly for the provisional/disputed oracles, disclosed failing historical L1 gate, and pending CI. GPT-6.1 Sol source/text/CLI review; no model or judge campaign (including no non-GPT replay), browser/MSAL runtime or device execution, supplied visual media, approval, request-changes event, merge, or thread resolution.

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

Follow-up review

Reviewed ce5f001a6c706683387eb404e03971613cafff82, target main, frozen base tip 7c704fed602c54d174e5674aee7b2eefe57073c9, merge base bd09dd9c08b6d1bf736cb86a0dbea4d4a013e088. The complete four-file delta from 2330e6d947e changes the case-04 candidate/rubric, its recorded candidate-file hash, and the README; the expanded PR description reports further diagnostics.

No new actionable defect established. Narrowing case-04 changes the question being measured: the flag is now alleged to become true only after a completed token exchange. The actual frozen wrapper assigns window.__msalSignInCalled = true before return signIn(state). That source supports rejecting a required exchange-completion dependency of this wrapper assignment; it still does not establish when Selenium observes the flag relative to asynchronous browser/network activity. The new rubric removes the earlier unsupported assertion that browser observations necessarily precede exchange completion. I did not run a browser or MSAL.

The provenance hash is updated consistently: existing exact-head fixture checks passed 356/356. node --test eng/skill-evals/test_disposition.mjs passed 75/75; cached pinned Vally 0.19.0 run.ps1 -Action Validate -Suite review-pull-request with explicit executable/empty prefix passed schema/lint/layout and both model-free experiment plans. git diff --check 2330e6d947e9f0c46e6c3eaae1cfd44c22a1aee2 ce5f001a6c706683387eb404e03971613cafff82 passed. Grader and runner code are unchanged from the preceding review; their earlier results are not being described as a new model run.

Measurement reconciliation: the description now distinguishes the earlier original-case measurements, the skilled-only 30-trial rerun before narrowing, the narrowed-case 10-trial diagnostic, and the separate case-02 20-trial diagnostic. It explicitly states the full six-case suite was not rerun after narrowing and reports the case-02 19/20 below threshold 1 as failure, not a green gate. The arithmetic 4/5 + 19/20 = 23/25 is consistent; under the explicitly assumed independent pass rate 0.92, a 5/5 run fails with probability 1 - 0.92^5, about 34.1%. That is a conditional calculation, not an independently measured population rate.

I have not inspected raw diagnostic trajectories, verified all read receipts, or independently rerun those model measurements. All six oracles still await the disclosed human audit; case-02's required-parameter/lower-layer-test disagreement is not resolved by score counts. The narrower case-04 avoids the original timing overclaim but does not retroactively validate its older oracle or scores. Coordinator handoff/positive-question controls and hydrated-bundle coverage remain unmeasured. The separate #70628 output-format change still needs reconciliation if it lands.

No new substantive feedback appeared in the fully paginated three surfaces before this round. Required Build Analysis is pending; license/cla passes. Verdict: NEEDS_DISCUSSION; safety confidence: low, for provisional oracles, disclosed failing case-02 measurements, and outstanding CI/runtime evidence. GPT-6.1 Sol source/text/CLI review; no model or judge calls, browser/MSAL runtime, device or visual-media execution, product edits, approval, request-changes event, merge, or thread resolution.

@PureWeen

Copy link
Copy Markdown
Member Author

Closing for now. These cases cannot separate reviewer changes yet. We will rebuild a smaller guard suite from corrected case pins if we still need one after the measurement work.

@PureWeen PureWeen closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants