Skip to content

Keep discarded review candidates out of inline findings - #70628

Merged
PureWeen merged 7 commits into
dotnet:mainfrom
PureWeen:shneuvil-microsoft-review-inline-gating-fix
Nov 19, 2026
Merged

PureWeen merged 7 commits into
dotnet:mainfrom
PureWeen:shneuvil-microsoft-review-inline-gating-fix

Conversation

@PureWeen

@PureWeen PureWeen commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Keep discarded review candidates out of inline findings

  • 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.

Keep discarded review candidates in the summary, never inline.

Description

Route contradicted verifier results, proven pre-existing behavior, and candidates disproved before verification only to DISCARDED. Completed reviews with no surviving NEW_FINDINGS return STATUS: NO_FINDINGS and use noop.

Remove the discarded-only verifier-count exception. The publication backstop removes only an erroneously emitted discarded inline item, allowing real findings in the same review to publish. It runs on the downloaded payload inside safe outputs, before the publisher reads that same file. It still rejects malformed, incomplete, unsupported, or contradictory output sets before filtering.

Preserve surviving findings and mixed-review summaries, including DISCARDED audit details. If filtering removes every inline item, replace the review with exactly one STATUS: NO_FINDINGS noop rather than posting an empty findings review. The original Actions artifacts retain the unfiltered output. A PR-visible no-findings audit comment is deferred to a separate follow-up. [UNRESOLVED] publication and the existing intent-question exception are unchanged.

Classify actual disposition labels rather than quoted examples: ignore fenced code and blockquotes, recognize a discarded claim only at its start, and recognize discarded reason/confidence only as standalone fields. Verified and unresolved findings may quote these literals.

Handle fences inside list items, container-relative indentation, sibling items, indented code, and ordinary lazy list continuations. Recognize adjacent severity/disposition labels such as [P2][DISCARDED]. This guard covers common reviewer output, not every CommonMark construct; item-only filtering does not change the classifier.

Known limits: The guard checks the first content line and explicit reason and confidence fields, but it does not parse arbitrary introductions. All-discarded runs currently depend on expiring Actions artifacts for their audit trail, not a PR summary.

Align workflow regression tests, disposition grading, and catch-policy evaluation expectations. Regenerate the workflow lock with the existing compiler version and action pins.

The separate oldVsNew adjudication issue illustrated by #70556 is deferred; this change prevents discarded candidates from being posted but does not change how incomplete new features are adjudicated.

Validation

The new item-filter regression uses the inline bodies from run 43875900411 on #70497. At d5e4be4cf7, both source and generated lock reject the whole set. With item-only filtering, the unresolved cleanup-callback finding remains unchanged, the discarded replacement-startup candidate is removed, and the review summary survives. All-discarded regression cases now produce exactly one no-findings noop. Tests also check that the compiled filter runs after download and before publication, on the same payload file.

Command Result
node .github\workflows\tests\pull-request-review-publication-preflight.test.mjs Passed: 167 cases against source and generated lock, including persisted output assertions.
node .github\workflows\tests\pull-request-review-adaptive-validation.test.mjs Passed: publication, verifier collection, 37 clarification cases, 96 mixed publication body classifications against source and generated lock, and discarded-only noop paths with and without a verifier.
node --test eng\skill-evals\test_disposition.mjs Passed: 103 tests, zero failures.
.\eng\skill-evals\run.ps1 Test -Suite review-candidate-verifier Passed in an isolated checkout with the exact current sources: deterministic harness checks, 96 fixture checks, and 103 disposition tests.
gh aw compile pull-request-review Passed with compiler v0.92.0; zero warnings; existing action and container pins preserved.
git diff --check Passed.
.\eng\skill-evals\run.ps1 Validate -Eval eng\skill-evals\review-pull-request\catch-policy.vally.yaml Passed at f77f9cd0050 in a clean isolated checkout: nine skills linted, catch-policy schema valid, and both experiment dry runs succeeded. Existing fixture-walk depth warnings remain.

Offline replay through both source and generated lock covers all 81 published inline bodies and all 66 corresponding actual run payloads. Exactly 12 discarded items are removed; all 69 non-discarded items are preserved, with zero observed false fires or missed discarded labels. There are 56 surviving findings sets and 10 all-discarded sets converted to noop. The #70497 mixed run keeps its author-fixed unresolved finding instead of losing the entire review. This is a fixed-output replay, not an estimate of future model behavior; no natural non-discarded body in this corpus quotes a discarded marker.

The earlier quoted-marker regressions failed for the expected reason on 68413947fd: 16 valid publication cases and eight valid mixed-review cases were rejected in each of the source and generated lock. List-fence and adjacent-label regressions reproduced both misclassifications at 4dc23df1d0. The classifier continues to pass those controls without expanding its Markdown scope.

Disposition-grader regressions also fail at da1c878937: identifier-free discarded entries in NEW_FINDINGS were accepted, including Markdown subheadings. The grader now requires empty or absence-only sections where no entry belongs. Existing absence markers still pass. Offline re-grading preserves all 30 saved case-01/03/04 passes across the PR and main arms, with no score changes.

Whole-line absence phrases such as No new findings. and No unresolved candidates. also pass, with optional emphasis and punctuation. These tolerance regressions fail at f7e1cdd4d4. Same-line explanations, subsequent entries, and identifier-free headings still fail. Repeating the offline re-grade preserves all 30 passes with no score changes.

At da1c878937, Workflow tests and Skill eval checks passed. The latter runs deterministic checks; hosted inference steps were skipped.

Paid validation

The skill was measured at 68413947fd against the skill from main at 18781e9d03, using identical catch-policy fixtures, prompts, and configured settings: five trials per stimulus, threshold 1. Native skill-load evidence matched the intended skill in all trials. Every failed output and grading explanation was inspected.

Evaluation Result
Configured catch-policy gate, 25 trials per arm Both arms failed: 0/25 passing trials, mean score 54%. Four existing evidence-read patterns reject Windows path separators. Those evidence-read patterns are unchanged.
Slash-normalized evidence-read diagnostic on the same saved trials Both arms: 18/25 passing trials, mean score 79%. This diagnostic preserves the original semantic grades and is not a configured-gate pass.
Frozen cases 01, 03, and 04 from ce5f001a6c, five trials each, graded against this PR's contract 15/15 passed: STATUS: NO_FINDINGS, C1 only in summary DISCARDED, no inline entry. Case 04 uses the reworded C1. One case-03 response missed non-gating explanatory details; its publication contract passed.
Catch-policy stimulus PR strict Main strict PR slash-normalized Main slash-normalized
logging-policy-unspecified 0/5 0/5 3/5 3/5
existing-policy-question 0/5 0/5 3/5 2/5
propagation-contract 0/5 0/5 3/5 4/5
best-effort-contract 0/5 0/5 4/5 5/5
nonthrowing-producer 0/5 0/5 5/5 4/5

Both arms retained the real propagation finding, avoided duplicate publication, and correctly suppressed benign findings in all five relevant trials. The remaining semantic misses concern source citations, complete guidance reads, output ordering, or retaining the feedback identifier in UNRESOLVED. These small repeated-fixture measurements do not establish statistical equivalence or general review accuracy.

Additional case-06 trials passed the strict publication contract in 7/10 runs with the PR skill and 4/10 with main. Both arms used the same adapted prompt. The PR skill placed unresolved candidates only in the summary in 1/10 runs, compared with 3/10 for main. Both arms also omitted required markers in some runs. These small, unpaired batches do not prove equivalence. Main matches the PR skill's 5/5 publication results for each of cases 01, 03, and 04.

No live hosted review was dispatched for these measurements.

Previously checked the merge with main at 7c704fed60: no conflicts. The item-filter revision is f77f9cd0050. The skill measurement is pinned to 68413947fd; the subsequent guard, grader, and item-filter changes leave that skill unchanged.

Fixes #70546

Report no findings when every candidate is discarded, and reject discarded inline payloads before publication.

Co-authored-by: Copilot App <[email protected]>
@github-actions github-actions Bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Nov 16, 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.

Review summary

Reviewed the eight-file change at bce304aaf8b2dc4bbf07a6f151272936c3969e7e, target main, frozen base tip 7c704fed602c54d174e5674aee7b2eefe57073c9, verified merge base bd09dd9c08b6d1bf736cb86a0dbea4d4a013e088. Read the skill's full disposition contract, workflow source and publication/worker-validation paths, corresponding generated changes, scoring changes, and focused regression changes. Reconciled the explicit requirements in #70546 and all three fully paginated feedback surfaces; no prior substantive review was present on this PR.

No actionable defect established. Contradicted verifier drops, proven pre-existing behavior, and coordinator pre-verification disproofs now stay in summary-only DISCARDED. Completed all-discarded reviews use STATUS: NO_FINDINGS/noop; real findings retain their inline slots and include discarded audit information in the summary. The head-side-contract intent-question exception and unresolved-inline behavior remain intact. Removing the discarded-only verifier bypass restores the ordinary verifier requirement for findings publication without requiring a verifier for a valid pre-verification-disproof noop.

The preflight check rejects marked discarded inline bodies even in a mixed set while permitting discarded text in the submitted summary. Its literal-body matching is deliberately broad: #70546 explicitly asks to reject any inline body containing [DISCARDED] or Why discarded:. That includes quotations of those strings, not just a parsed disposition field; I am not treating that issue-requested policy as an accidental classifier defect.

Direct output-contract probes: for each of cases 01, 03, and 04, an actual base/head grader comparison changed summary-only NO_FINDINGS from 0 to 1, and the old inline-discarded FINDINGS form from 1 to 0 (six paired probes). Existing controls still cover verified/unresolved findings and existing-feedback deduplication. These are deterministic parser/gate checks, not proof of any case's semantic oracle.

External output contracts

Consumer Producer/contract Ordinary negative case and effect
Inline body marker check, pull-request-review.md:752-760 and generated counterpart The updated skill allows only verified/question/unresolved in NEW_FINDINGS; issue #70546 explicitly specifies the literal discarded-marker veto. A normal [UNRESOLVED] inline body remains accepted; discarded audit text in the review summary does not trigger the inline-only check. A discarded member of a mixed set rejects the whole publication set.
hasFindingsPublication verifier-count check Recorded native safe-output tool-start events distinguish inline/review publication from noop; the discarded-only exception is removed. An all-discarded noop succeeds with or without a previously collected verifier; an inline/review set without the verifier fails. No nonzero process exit is reclassified as an incomplete test run.

Validation at this exact head: node .github/workflows/tests/pull-request-review-publication-preflight.test.mjs passed 53 cases against source and generated lock, including exact extracted-preflight parity. node .github/workflows/tests/pull-request-review-adaptive-validation.test.mjs passed its publication/verifier/clarification groups, including the new discarded-only paths. node --test eng/skill-evals/test_disposition.mjs passed 50/50. pwsh -NoProfile -File eng/skill-evals/test_review_fixtures.ps1 passed 96/96; cached pinned Vally 0.19.0 run.ps1 Validate -Suite review-candidate-verifier passed layout/lint/schema. git diff --check 7c704fed602c54d174e5674aee7b2eefe57073c9...bce304aaf8b2dc4bbf07a6f151272936c3969e7e passed. No tests or implementation files were authored by this review.

Limits and integration: local gh aw version is v0.86.2, not the reported v0.92.0, so I did not regenerate with the wrong compiler or independently verify whole-lock byte-for-byte regeneration. Existing checks exercised the source and generated publication logic; no live hosted review, token-bearing workflow, model/judge campaign, or review-accuracy measurement was run. The separate oldVsNew/new-feature adjudication issue remains deliberately deferred. This PR changes the L1 discarded-output contract also being developed in #70555; that branch's prompts and stored-output interpretation will need reconciliation with this contract, rather than inheriting historical scores as current-head evidence.

Required Build Analysis is currently pending; license/cla passes. Verdict: NEEDS_DISCUSSION; safety confidence: low for shared review infrastructure and outstanding CI/runtime coverage, not an established new code defect. GPT-6.1 Sol source/text/CLI review; no UI change or supplied visual media requiring inspection, browser/device execution, product edits, approvals, request-changes event, merge, or thread resolution.

@PureWeen
PureWeen marked this pull request as ready for review November 16, 2026 20:23
@PureWeen
PureWeen requested review from a team and wtgodbe as code owners November 16, 2026 20:23
Copilot AI balanced review requested due to automatic review settings November 16, 2026 20:23
@PureWeen
PureWeen marked this pull request as draft November 16, 2026 20: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 68413947fd7a1cfa3bc0b1dd69c9043b159713ee, target main, frozen base tip 7c704fed602c54d174e5674aee7b2eefe57073c9; merge base remains bd09dd9c08b6d1bf736cb86a0dbea4d4a013e088. The complete delta from the reviewed bce304aaf8 changes only two catch-policy rubric entries to folded YAML scalars. The PR returned to draft during this review; the head is unchanged.

The correction is valid and materially restores the specialized suite's schema. Parsing the actual old/head blobs shows the two affected rubric[1] values were objects before this commit because their plain YAML text included STATUS: NO_FINDINGS; both are now strings. Pinned Vally 0.19.0 run.ps1 -Action Lint -Eval eng/skill-evals/review-pull-request/catch-policy.vally.yaml with the cached executable and empty prefix passed at this exact head. git diff --check bce304aaf8b2dc4bbf07a6f151272936c3969e7e 68413947fd7a1cfa3bc0b1dd69c9043b159713ee passed.

Correction to my prior review's coverage: its component-only Validate did not cover this specialized catch-policy schema; the publication/grader checks passed but did not establish that the specialized spec was runnable. The new targeted lint closes that specific gap. No new defect established in this delta. The publication, worker-verification, and deterministic disposition implementations are byte-unchanged from the preceding review, whose results are inherited, not newly rerun.

Description mostly remains applicable, but its final sentence still calls bce304aaf8 the branch head; that is stale provenance text, not the current reviewed SHA. The separate oldVsNew semantics issue and L1 output-contract integration with #70555 remain outside this correction. 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, retaining the shared-infrastructure and live-hosted-validation limitations. GPT-6.1 Sol source/text/CLI review; no model/judge campaign, live hosted review, browser/device or visual-media execution, product edits, approval, request-changes event, merge, or thread resolution.

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.

🟢 Approval recommended

No active review issues are reported for the change to keep discarded candidates in summary audit details rather than inline comments.

No open issues 🎉

What changed in this PR

Updates the hosted PR review workflow to keep disproved candidates in summary audit details rather than inline comments, addressing #70546. The separate oldVsNew adjudication issue remains out of scope.

Changes:

  • Routes discarded candidates exclusively to DISCARDED, using NO_FINDINGS and noop when no findings survive.
  • Rejects discarded inline payloads, removes the verifier-count exception, and regenerates the workflow lock.
  • Aligns regression tests and evaluation expectations while preserving unresolved and intent-question handling.
File Description
eng/​skill-evals/​test_disposition.mjs Updates tests for summary-only discarded results.
eng/​skill-evals/​review-pull-request/​catch-policy.vally.yaml Requires NO_FINDINGS for disproved scenarios.
eng/​skill-evals/​grade_disposition.mjs Grades discarded cases against the summary-only contract.
.github/​workflows/​tests/​pull-request-review-publication-preflight.test.mjs Covers rejected discarded payloads and allowed summary audit details.
.github/​workflows/​tests/​pull-request-review-adaptive-validation.test.mjs Covers verifier enforcement and discarded-only noop paths.
.github/​workflows/​pull-request-review.md Enforces publication rules and preserves discarded summary details.
.github/​workflows/​pull-request-review.lock.yml Regenerates executable workflow checks.
.github/​skills/​review-pull-request/​SKILL.md Defines discarded candidates as summary-only results.

Review effort: Balanced

@kubaflo kubaflo mentioned this pull request Nov 16, 2026
4 tasks done
@PureWeen
PureWeen marked this pull request as ready for review November 16, 2026 20:52
Copilot AI balanced review requested due to automatic review settings November 16, 2026 20:52

@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 the complete four-file delta from 68413947fd7 to 4dc23df1d08aa1dfffe4e0dbbf731921cc7c13b8, target main, frozen base tip 7c704fed602c54d174e5674aee7b2eefe57073c9; merge base remains bd09dd9c08b6d1bf736cb86a0dbea4d4a013e088. Reconciled the expanded description and new CCR summary 5927030499, which adds agreement rather than a new defect or question.

No new actionable defect established. The previous broad literal veto is intentionally narrowed: the classifier skips fenced examples and blockquotes, recognizes a discarded claim at the first remaining nonempty line, and recognizes discarded reason/confidence as line-start fields. This now agrees with the updated description rather than the earlier "reject every occurrence" policy. Genuine discarded inline bodies still reject the complete publication set; summary audit text remains permitted.

Actual classifier probes: extracted the new source function and compared it with the previous source predicate. Inline-code, fenced-code, and blockquoted examples of discarded markers changed from rejected to accepted. Actual [DISCARDED] claims and standalone Why discarded: fields remained rejected. These are execution checks of the classifier, not inferred outcomes from regex text or a live hosted publication.

Exact-head validation: node .github/workflows/tests/pull-request-review-publication-preflight.test.mjs passed 81 cases against source and generated lock, including exact extracted-preflight parity. node .github/workflows/tests/pull-request-review-adaptive-validation.test.mjs passed its publication/worker checks, 37 clarification cases, and 14 mixed-body classifications against source and lock. node --test eng/skill-evals/test_disposition.mjs passed 50/50. git diff --check 68413947fd7a1cfa3bc0b1dd69c9043b159713ee 4dc23df1d08aa1dfffe4e0dbbf731921cc7c13b8 passed. No tests or implementation files were authored for this review.

External-output contract: the producer is the agent's Markdown review body, governed by the updated skill's verified/question/unresolved inline contract. The consumer now distinguishes sample quotations from actual disposition labels rather than treating every literal as metadata. Ordinary verified/unresolved findings quoting these markers no longer lose the entire review. This remains a bounded Markdown classifier, not a general semantic proof that every possible discarded paraphrase is detected.

Paid-evidence reconciliation: the description clearly separates the failed configured catch-policy gate (0/25 in both arms) from the slash-normalized diagnostic (18/25 each) and the separately reported 15/15 publication-contract sample. It does not claim statistical equivalence or general review accuracy. The unchanged skill and grader blobs between the measured 68413947fd7 and this guard-only head were verified. I have not independently inspected those saved trial trajectories, native-load receipts, semantic grades, or Windows-path diagnostics; all paid-run counts remain author-reported. A passing publication contract does not audit provisional semantic oracles.

Prior disposition and limits: the specialized YAML scalar correction remains unchanged and its targeted lint from the preceding review is inherited, not rerun. The pending #70555 output-contract integration and deferred oldVsNew/new-feature adjudication issue remain. The description's statement that this PR remains draft is stale: the live PR is currently ready. Local compiler-version mismatch still prevents independent whole-lock regeneration; source/generated executed preflight parity is established by the checks above. No live hosted review or model/judge campaign was launched by this review.

Required Build Analysis is pending; license/cla passes; current-head Skill eval checks is successful. Verdict: NEEDS_DISCUSSION; safety confidence: low, retaining the shared-infrastructure, pending CI, and live-hosted-validation limitations. GPT-6.1 Sol source/text/CLI review; no relevant supplied visual media, browser/device execution, product edits, approval, request-changes event, merge, or thread resolution.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Preflight parsing still mishandles list-contained code fences and adjacent severity/discarded labels, allowing discarded claims to be published or valid findings to be suppressed.

2 open issues

Review effort: Balanced

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

Same-head feedback review

Rechecked unchanged 4dc23df1d08aa1dfffe4e0dbbf731921cc7c13b8 against main (frozen base tip 7c704fed602c54d174e5674aee7b2eefe57073c9, merge base bd09dd9c08b6d1bf736cb86a0dbea4d4a013e088) after CCR review 5927549395. Both new findings are independently supported.

  • List-contained fences: the raw-line fence scanner misses - ```text. A closing indented fence is then interpreted as a new opener. In the actual classifier and full publication preflight, a valid verified finding with a list-fenced example containing Confidence: discarded is rejected; conversely, an actual standalone Confidence: discarded after the list-fenced example is hidden and the mixed publication set is accepted.
  • Adjacent labels: **[P2][DISCARDED] Pre-existing behavior.** is accepted because the optional severity prefix requires intervening whitespace. The otherwise equivalent spaced-label control is rejected. With no separate reason/confidence field, the explicit discarded claim survives the full mixed-set preflight.

I executed both source and generated-lock classifiers on all four inputs, then executed each complete extracted preflight script with the three failing bodies alongside a real finding and a COMMENT review. Both scripts accepted the two genuine-discard bypasses and rejected the valid quotation example. This establishes downstream publication-gate behavior, not merely a regex mismatch. It does not claim a live hosted publication occurred; verifier collection and other unchanged gates remain separate requirements.

External-output contract: the producer supplies Markdown finding bodies; the consumer intends to ignore quoted examples while vetoing actual discarded labels/fields. A list-contained fence is an ordinary example layout, not a disposition. Treating its closing delimiter as an opener reverses which later lines are classified. Adjacent severity/disposition labels still explicitly identify a discarded claim. Correct fence/container handling and equivalent label boundaries must preserve the quotation controls and genuine-discard veto in both generated and source scripts.

These are new counterexamples missing from the previously passing 81-case and 14-body groups. My preceding no-new-defect assessment was incomplete; the green existing checks did not cover these layouts. No duplicate inline comments added: the linked CCR threads already identify both defects.

Prior YAML scalar correction remains intact. No head, base-ref, or description change; historical model measurements remain unaudited and cannot establish classifier coverage. Required Build Analysis is pending; license/cla passes. Verdict: NEEDS_CHANGES; safety confidence: low for the reproduced publication errors and pending infrastructure evidence.

GPT-6.1 Sol source/text/CLI review with in-memory deterministic probes; no new tests or product edits, model/judge campaign, live hosted/browser/device/visual execution, approval, request-changes event, merge, or thread resolution.

Preserve list and quote context when classifying inline review bodies. Cover adjacent labels, sibling items, indented code, and ordinary lazy continuations.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 17, 2026 16:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

A critical validation bypass lets identifier-free [DISCARDED] entries in NEW_FINDINGS receive perfect scores despite violating the required disposition placement.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

High severity Reject identifier-free discarded entries in NEW_FINDINGS

eng/​skill-evals/​grade_disposition.mjs:189

hasCandidate only recognizes entries containing C1, so cases 01, 03, and 04 receive a perfect score when NEW_FINDINGS contains an identifier-free [DISCARDED] entry, provided the response uses STATUS: NO_FINDINGS and lists C1 under DISCARDED. This lets the disposition gate accept the inline placement it should reject. Require NEW_FINDINGS to contain only recognized empty-section markers, and add a regression where the inline entry omits C1.

2 resolved since last review

Review effort: Balanced

@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 the complete four-file scanner/regression delta from 4dc23df1d08 to da1c8789370f9b503a1eb0606c353e602f84da97, target main, frozen base tip 7c704fed602c54d174e5674aee7b2eefe57073c9, verified merge base bd09dd9c08b6d1bf736cb86a0dbea4d4a013e088. Reconciled the two author fix replies and new CCR summary 5942374158; the two empty review bodies add no defect evidence.

Both previously reported publication findings are fixed for the demonstrated inputs. I executed the complete extracted source and generated-lock preflight scripts with mixed review sets: adjacent **[P2][DISCARDED]...** now rejects; a list-fenced quotation remains publishable; a real discarded-confidence field following that fence rejects. This directly rechecks the list-fence and adjacent-label mechanisms rather than relying solely on resolution status.

The new CCR grader concern is also reproducible, but it is an evaluation false-pass, not a bypass of the hosted publication gate. In grade_disposition.mjs:187-190, the discarded branch tests !hasCandidate('NEW_FINDINGS'); that helper recognizes C1, not arbitrary section entries. For each of cases 01, 03, and 04, the actual head grader yields:

NEW_FINDINGS content, with STATUS: NO_FINDINGS and C1 correctly under DISCARDED Score
None. 1
C1 [DISCARDED] Old behavior. 0
Identifier-free [DISCARDED] Old behavior. followed by Confidence: discarded and Why discarded: Old and head match. 1

Those nine probes establish that dropping the identifier hides an actual nonempty inline entry from the deterministic disposition gate. That conflicts with this PR's required summary-only/no-NEW_FINDINGS contract and can overstate publication-contract success. Require the discarded/no-findings branch to validate an actually empty section or recognized absence-only content, not merely absence of the C1 token. This branch was introduced by this PR even though the current scanner-only commit does not change it. The existing CCR summary already identifies the grader location; no duplicate inline comment added.

Boundary check: the actual full source and generated hosted preflight both reject the same identifier-free discarded body when supplied as an inline safe-output item. Thus the proven impact is a false-green evaluation, not demonstrated GitHub publication through the corrected runtime gate. The source contract and the evaluation gate need to agree even when the candidate identifier is malformed or missing.

Exact-head checks: existing publication-preflight tests passed 163 cases against source/lock with extracted-script parity; existing adaptive validation passed its publication/worker paths, 37 clarification cases and 96 mixed-body classifications; existing Node disposition tests passed 50/50. git diff --check 4dc23df1d08aa1dfffe4e0dbbf731921cc7c13b8 da1c8789370f9b503a1eb0606c353e602f84da97 passed. The new false-pass is outside those green controls. No tests or implementation files were authored for this review.

External-output and measurement scope: the scanner now tracks common Markdown list/quote containers and code regions, with explicitly disclosed non-CommonMark-complete limits. The new false-pass consumer instead classifies section text by token presence; a disposition label without C1 is the negative control it misses. Expanded paid case-06 counts, read receipts, and cross-arm comparisons remain author-reported; I did not inspect saved trajectories or run models. Unchanged skill/grader blobs mean the new scanner correction does not itself measure adjudication improvement.

Required Build Analysis is pending; license/cla passes. Verdict: NEEDS_CHANGES; safety confidence: low for the independently reproduced deterministic-grader false-pass, while the two prior publication failures are addressed.

GPT-6.1 Sol source/text/CLI review; no relevant supplied visual media, model/judge campaign, live hosted/browser/device execution, product edits, approval, request-changes event, merge, or thread resolution.

Copilot AI balanced review requested due to automatic review settings November 17, 2026 17:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The grader incorrectly fails valid summary-only outputs using “No new findings.” or “No unresolved candidates.”, so its absence matcher needs broader phrase support and regression coverage without accepting substantive entries.

1 open issue

Review effort: Balanced

Comment thread eng/skill-evals/grade_disposition.mjs Resolved

@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 the complete two-file grader/test delta from da1c8789370 to f7e1cdd4d4d36155c363c4093355029eca8502d4, target main, frozen base tip 7c704fed602c54d174e5674aee7b2eefe57073c9, merge base bd09dd9c08b6d1bf736cb86a0dbea4d4a013e088. Reconciled the author's fix/regrade report and new CCR review 5943912836.

The prior identifier-free false-pass is fixed for the demonstrated inputs. Cases 01, 03, and 04 now reject an identifier-free [DISCARDED] entry in NEW_FINDINGS, including one introduced by a Markdown subheading. The new absence-only gate also rejects identifier-free conflicting prose in sections that should be empty. Prescribed None. output still passes.

The new absence-phrase concern reproduces, with an important contract qualification. For all three cases, replacing only NEW_FINDINGS's None. with No new findings., or UNRESOLVED's None. with No unresolved candidates., changes the actual old/head score from 1 to 0. Both are semantically empty-section statements, unlike the substantive conflicting-prose control, which correctly changes from 1 to 0. The anchored absence matcher does not recognize these longer phrases.

However, the L1 prompt currently in sibling #70555 explicitly says to write only None. in an inapplicable section. These alternative phrasings do not follow that precise prompt. The general review skill does not impose that serialization, and this grader deliberately accepts several alternatives (None, emphasis, blank text, C1 omitted.). Therefore the evidence establishes a loss of semantic-format tolerance, not a failure of a fully prompt-conforming L1 output or of hosted publication. The remaining decision is whether this grader is intended to normalize ordinary absence prose or enforce the narrow prompt. If normalization is intended, add these anchored absence forms without admitting explanatory/substantive entries; do not restore the identifier-free false-pass.

Exact-head evidence: 18 actual old/head probes covered the three discarded cases with None., the two identifier-free forms, both reported absence phrases, and substantive conflicting prose. Existing node --test eng/skill-evals/test_disposition.mjs passed 72/72. Existing publication-preflight checks passed 163 source/generated cases; adaptive validation passed its worker/publication groups, 37 clarification cases, and 96 mixed-body cases. git diff --check da1c8789370f9b503a1eb0606c353e602f84da97 f7e1cdd4d4d36155c363c4093355029eca8502d4 passed. No tests or implementation files were authored for this review.

External-output boundary: the consumer now checks every line of an absent section, rather than only searching for C1; the producer contract must distinguish prescribed serialization from semantically equivalent prose. An ordinary absence statement and a substantive candidate are different controls. The reported offline regrade preserving 30 saved passes remains author-reported: I have not independently inspected those trajectories or rerun models. No claim that these new phrase counterexamples occurred in those trials.

The prior scanner fixes remain unchanged; no new publication-gate defect was established. Required Build Analysis is pending; license/cla passes. Verdict: NEEDS_DISCUSSION; safety confidence: low for the unresolved normalization-policy boundary and pending CI, while the prior false-green defect is addressed. No duplicate inline comment added.

GPT-6.1 Sol source/text/CLI review; no model/judge campaign, live hosted/browser/device or visual-media execution, product edits, approval, request-changes event, merge, or thread resolution.

Copilot AI balanced review requested due to automatic review settings November 17, 2026 20:44

@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 the complete two-file delta from f7e1cdd4d4d to d5e4be4cf7107a014ab8b18cedbf9d470e971ded, target main, frozen base tip 7c704fed602c54d174e5674aee7b2eefe57073c9, merge base bd09dd9c08b6d1bf736cb86a0dbea4d4a013e088. Reconciled the author's response to the absence-phrase thread and the updated description.

The demonstrated normalization issue is addressed without reopening the earlier false-pass. The anchored matcher now accepts whole-line No new findings., No unresolved candidates., and No discarded candidates., including optional emphasis/punctuation. It still requires absence-only content in sections where no entry belongs. Same-line explanations, subsequent identifier-free inline entries, and identifier-free Markdown subheadings remain rejected.

I ran 21 actual old/head grader probes across cases 01, 03, and 04: prescribed None. stayed accepted; both reported absence phrases and an emphasized form changed from 0 to 1; appended explanatory prose, extra inline discarded content, and extra discarded subheadings stayed rejected. This verifies the semantic-tolerance choice discussed in the prior review, not merely a strict-prompt serialization change.

node --test eng/skill-evals/test_disposition.mjs passed 103/103 at this exact head. git diff --check f7e1cdd4d4d36155c363c4093355029eca8502d4 d5e4be4cf7107a014ab8b18cedbf9d470e971ded passed. The publication scanner and skill are unchanged by this delta; preceding source/generated publication checks are inherited, not newly rerun. No new actionable defect established.

Evidence limits: the consumer is a deterministic absence-prose classifier; the positive controls establish accepted whole-line absence statements while the negative controls retain substantive-entry rejection. The claimed offline regrade preserving 30 saved passes remains author-reported: I have not inspected those trajectories or rerun model/receipt grading. No broader adjudication-quality or live-hosted-publication claim follows from these parser checks.

Required Build Analysis is pending; license/cla passes. Verdict: NEEDS_DISCUSSION; safety confidence: low, retaining the shared-infrastructure, pending CI, and live-hosted-validation limitations rather than an unresolved instance of the prior grader findings.

GPT-6.1 Sol source/text/CLI review; no relevant supplied visual media, model/judge campaign, live hosted/browser/device execution, new tests or product edits, approval, request-changes event, merge, or thread resolution.

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.

🟢 Approval recommended

No active review issues remain for the update keeping discarded candidates in the summary rather than publishing them inline.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@PureWeen PureWeen left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

One finding: the publication guard can miss a discarded candidate when its label follows an introductory line (2/3 reviewers after dispute).

Three independent reviewers with adversarial consensus. The changed tests cover the source and generated preflight and disposition grading; this review was source-only. The three previous inline threads are resolved.

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

Same-head feedback review

Rechecked unchanged d5e4be4cf7107a014ab8b18cedbf9d470e971ded against main, frozen base tip 7c704fed602c54d174e5674aee7b2eefe57073c9, merge base bd09dd9c08b6d1bf736cb86a0dbea4d4a013e088, after review 5946468532, its inline finding, and the author's reply. This was my own direct review, not a repetition of the other review's adversarial-consensus methodology.

The introduction-prefixed bypass is reproducible in both complete publication preflight scripts. A mixed review set containing Candidate summary:\n[DISCARDED] Pre-existing behavior. is accepted. Removing the introduction makes it reject; adding a standalone Confidence: discarded after the introduction also rejects. The ordinary valid control A verified regression.\n[DISCARDED] is an example of a parsed marker. remains accepted. Thus the proven gap is specifically an actual discarded claim after introductory content without another recognized disposition field, not every later occurrence of the literal.

The author explicitly accepts this as a bounded-backstop limitation: the reply reports that all ten observed discarded bodies start with the label, and the description now documents that arbitrary introductions are not parsed. I have not independently inspected that ten-comment corpus. It is valid not to scan every later marker indiscriminately, because that would reintroduce the previously fixed quotation/prose false positives; the controls above demonstrate why.

Remaining decision: whether the observed-body backstop plus the skill's never-inline instruction is sufficient, or whether the ordinary Candidate summary: form should also be recognized. Documentation accurately discloses the gap but does not make the preflight reject that payload. This is a reachable miss against the broad never-inline objective; it is not evidence that an agent has emitted this form in a live hosted run. No duplicate inline comment added, and I have not resolved the author's scope decision for them.

Validation/scope: executed the complete extracted source and generated-lock preflight scripts on the four bodies above, each alongside a real finding and a COMMENT review. Both behaved identically. These eight in-memory checks establish actual downstream gate behavior. No code change occurred; preceding 103 grader tests and source/generated regression results are inherited, not rerun here. Prior absence-normalization and identifier-free-eval fixes remain intact; no model measurements or stored trajectories were independently audited.

Required Build Analysis is pending; license/cla passes. Verdict: NEEDS_DISCUSSION; safety confidence: low, for the explicitly accepted but still executable publication-scope gap and pending CI. This is not an unqualified no-findings assessment.

GPT-6.1 Sol source/text/CLI review; no relevant supplied visual media, model/judge campaign, live hosted/browser/device execution, new tests or product edits, approval, request-changes event, merge, or thread resolution.

@PureWeen PureWeen left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No high-confidence issues found on re-review. The first-line-only guard limitation is explicitly documented in the updated PR description; 2/3 reviewers consider it consistent with the structured output contract and existing marker-in-prose regression coverage. The changed publication and disposition paths have regression tests in the PR; this review was source-only and did not rerun them. Prior inline review threads are resolved.

3 independent reviewers with adversarial consensus.

Filter the actual safe-output payload after validating its complete shape. Preserve surviving findings and summaries, and turn all-discarded sets into a single no-findings noop.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 18, 2026 21:40

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.

🟢 Approval recommended

No active review issues block the change to keep discarded candidates out of inline PR comments.

No open issues 🎉

Review effort: Balanced

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

No new actionable findings in the item-filtering revision. The generated safe_outputs job checks the reviewed head, downloads the artifact, and runs preflight before the publisher reads the same GH_AW_AGENT_OUTPUT file. Preflight still rejects invalid output-set shapes before filtering. The checked-in mixed-review regression now preserves the unresolved inline item and the review summary while removing the discarded inline item; the all-discarded case produces a single STATUS: NO_FINDINGS noop. That path retains the audit detail in the original artifact, not in a PR-visible summary.

The previously reported introduction-prefix limitation is unchanged: the classifier itself did not change, and the description accurately documents its scope. The new revision changes what happens after an item is recognized as discarded; it does not broaden recognition. The prior grader fixes are unchanged.

Validation at f77f9cd0050: 167 existing publication cases against source and compiled lock passed, the adaptive suite passed (including 37 clarification cases and 96 mixed body classifications), all 103 disposition tests passed, and git diff --check was clean. Reviewed against base tip 7c704fed60, merge base bd09dd9c08. Required Build Analysis was still pending. I did not independently audit the reported corpus replay or paid runs, or execute a live hosted publication. GPT-6.2 Sol source and CLI review; no relevant visual media.

@PureWeen
PureWeen enabled auto-merge (squash) November 19, 2026 21:22
@PureWeen

Copy link
Copy Markdown
Member Author

/ba-g Only .github workflow and test files changed. The Azure DevOps builds were skipped, so Build Analysis has no build to analyze. All checks that ran passed.

@PureWeen
PureWeen merged commit 744c772 into dotnet:main Nov 19, 2026
22 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 2%

No docs needed: repository automation change (PR review workflow and skill evals) with no product impact.

Documentation surfaces considered

  • Conceptual article: Not required — Only .github workflow/skill and eng/skill-evals files changed; no user-facing behavior.
  • Migration guidance: Not required — No upgrade action for users.
  • Breaking change: Not required — No compatibility impact; internal automation.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — f77f9cd0 Deployed Nov 19, 2026 by PureWeen via conclusion #401
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.

[review-pull-request] Stop publishing contradicted [DISCARDED] candidates as inline GitHub PR review comments

3 participants