Skip to content

Improve regression-trace evidence collection - #39236

Merged
kubaflo merged 3 commits into
mainfrom
kubaflo-issue-report-usefulness
Oct 9, 2026
Merged

kubaflo merged 3 commits into
mainfrom
kubaflo-issue-report-usefulness

Conversation

@kubaflo

@kubaflo kubaflo commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

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

Repair avoidable evidence-collection gaps found while auditing nine October 6–7 /issue trace-regression reports. This improves the tracing workflow, not the underlying framework bugs or the standards for claiming a confirmed introduction.

  • Preserve the original form boundaries while selecting a separate, cited investigation pair from explicit human outcomes. Consistent duplicate precise versions no longer disable collection; conflicting duplicates remain ambiguous.
  • Prioritize title-matched, platform-applicable fixed source paths, including Resizetizer dependencies, NavigationPage TitleView, safe-area wrappers, Windows selection/AOT, native SwipeView, and SourceGen resources.
  • Retain bounded, line-numbered symbol excerpts for oversized NavigationRenderer files, explicitly marked incomplete rather than silently losing the source.
  • Spend the six-diff budget across paths and prioritize visible bad-side comparison commits. Divergent histories remain explicitly non-forward; older history is excluded only for a complete forward comparison.
  • Map Preview/RC shorthand only through a bounded published MAUI workload row, distinguishing package version, workload-set version, and source SHA. Track spent metadata requests and exclude recognizable prior AI reports from diagnostic evidence, including reports posted by User accounts.

Update the skill, workflow prompt, maintainer documentation, and generated lock. Command authorization, trusted checkout, read-only analysis, MCP integrity/visibility policies, and separately scoped publication are unchanged. No overlapping regression-trace collector repair was found when checking existing PRs after independently implementing this approach.

Read-only collection results

The final collector was invoked against all nine audited issues. Representative recovered evidence:

Issue Evidence now retained
#39155 Cited 10.0.10 → 10.0.11 observations, two incomplete TitleView excerpts, and shipped change 32188497d5fe645b1b4657048a41bb3644b27344.
#39165 Cited 10.0.100 → 10.0.101 observations and dependency upgrade 7e10776e75560503f96db6fe26e9485cc177d8bb.
#39220 Working form 10.0.60 plus human first-observed failure 10.0.70; change b8332a3a3c9d25b04bd47193b5429340416c699e is prioritized while the divergent comparison remains unverified as an interval.
#39202 Safe-area/wrapper snapshots and change 817460045681ffba2dce773feadee1d17ba3cd04, with non-forward ancestry retained.
#39132 Resource-generation snapshots and an explicitly unverified published RC package/source mapping.

The remaining cases retain the correct Windows, Android SwipeView, iOS RefreshView, and shared/iOS HybridWebView sources. Unknown working versions, capped history, omitted excerpt lines, and uncertain installed-package/runtime evidence remain explicit gaps.

Validation

  • PowerShell 7.5.4 with Pester 5.9.0: Invoke-Pester -Path .github/scripts/IssueRegression.Tests.ps1 -PassThru -Output Normal — 256 passed, 0 failed. No new pipeline tests were written or existing tests changed.
  • gh aw compile issue-trace-regression --strict --no-check-update — passed, using the committed v0.86.2 compiler.
  • actionlint -ignore 'unexpected key "queue" for "concurrency" section' -ignore 'property "aw" is not defined' -ignore 'SC2129' .github/workflows/issue-trace-regression.lock.yml — passed. These exclusions cover four independently verified pre-existing generated-runtime diagnostics; unfiltered native lint is not clean. Docker-backed compiler lint was unavailable.
  • PowerShell AST parsing of both collectors and git diff --check — passed.
  • Get-IssueRegressionContext -Issue $issue — completed read-only for all nine issues. No reproduction projects, native tests, or device automation were run. Revised hosted agent/report execution is not claimed: production tracing runs trusted default-branch code, so this branch is not used before merge.

Issues Fixed

Addresses report-quality gaps observed on #39165, #39053, #39220, #39202, #39166, #39080, #39078, #39132, and #39155. These are evidence-collection examples, not framework fixes or closing references.

Preserve cited human version observations, select platform-specific sources, map bounded published release leads, and prioritize relevant comparison history without overstating runtime evidence.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 7, 2026 19:46
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 7, 2026 19:46 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

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

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

Or

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

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

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Skill Validation Results

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

Overall Passed Static Passed LLM Skipped Skills 28 Agents 6

✅ Skill Validation Results — 2c3b074 · Improve regression-trace evidence collection · 2026-10-07T23:04:42Z

✅ Static Checks Passed

Skills: 28 | Eval specs linted: 17

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

⏭️ LLM Evaluation: Skipped

No changed skills with eval specs found.

🔍 Full results and investigation steps

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 7, 2026 19:49 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 7, 2026 19:51 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool October 7, 2026 19:51 — with GitHub Actions Inactive

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 core new collector paths lack automated regression coverage.

1 open finding
What changed in this PR

Improves /issue trace-regression evidence collection while preserving conservative attribution standards.

Changes:

  • Adds cited investigation boundaries, release mapping, and platform-specific source selection.
  • Adds bounded source excerpts and balanced diff selection.
  • Updates workflow guidance, documentation, and generated lock.
File Description
.github/​workflows/​issue-trace-regression.md Updates agent instructions.
.github/​workflows/​issue-trace-regression.lock.yml Regenerates workflow metadata.
.github/​skills/​trace-regression/​SKILL.md Documents new evidence semantics.
.github/​scripts/​shared/​Get-RegressionSourceEvidence.ps1 Expands source and diagnostic collection.
.github/​scripts/​Get-IssueRegressionContext.ps1 Adds investigation-pair and release mapping logic.
.github/​docs/​pr-review-workflow.md Documents collector behavior and limits.

🧠 Review effort: Balanced

}
}

function Get-RegressionInvestigation {

@PureWeen PureWeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Adversarial review

As an independent reviewer, I reviewed commit 08d37c8aa3d707e0d3aa6d6046c66a52aeba3046 and found two actionable issues in the new evidence-collection paths.

  1. ❌ Logic - non-reproduction statements become failing version boundaries. In Get-RegressionSourceEvidence.ps1, lines 397-407, the negation handling does not recognize failed to reproduce or cannot reproduce, but the bad-outcome matcher accepts their failed/reproduce tokens. A network-free probe using 10.0.10 works. followed by I failed to reproduce on 10.0.20. produced a human-reported-pair with 10.0.20 marked bad. Starting with a reported bad version of 10.0.30, the selected investigation actually changed it to 10.0.20; cannot reproduce produced the same result. The investigation consumer then uses that false outcome to select the source comparison and history. Recognize these negative reproduction phrases before matching failure tokens, or conservatively leave them unclassified. Add a focused fixture asserting that these statements cannot select a bad boundary.

    Consensus: 3/3 reviewers after dispute; independently reproduced against the assigned head.

  2. ❌ Logic - annotated Preview/RC versions lose metadata resolution after normalization. The collector now accepts 10.0.0-preview.7 (workload) and normalizes it for tag lookup, but line 438 restores the raw answer into reported. The new mapping eligibility and shorthand derivation use that raw value, as does the existing preflight eligibility check. With an unknown good version and absent shorthand tags, an end-to-end mocked probe mapped the plain Preview value through the published MAUI workload row and selected metadata-resolution; adding the accepted parenthetical note selected boundary-only, made no release-list request, and retained no mapped source. The new normalization and release-mapping paths therefore do not compose for this accepted input. Preserve the raw answer for reporting, but use one canonical normalized version for eligibility, shorthand matching, and preflight. Cover plain and annotated inputs against the same mocked published-release row.

    Consensus: 2/3 reviewers after dispute; independently reproduced against the assigned head.

Review coverage and limits: Three independent reviewers with adversarial consensus examined the six PR-changed files and relevant consumers. The title and description match the evidence-collection scope. The diff retains the authorization, trusted-checkout, read-only analysis, and separately scoped publication boundaries. The existing unresolved review already requests hermetic coverage for the new collector paths; this review does not duplicate that general finding. The two probes above exercised the changed functions with authentication tokens cleared and network calls replaced by mocks. The nine live-issue collection results and hosted report execution were not independently reproduced, and no full test suite or workflow compilation was run.

Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.

Keep inability-to-reproduce statements unclassified and use the canonical version normalizer consistently for Preview/RC metadata mapping and preflight while preserving raw answers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 7, 2026 22:11
@kubaflo
kubaflo requested a review from PureWeen October 7, 2026 22:14

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

Negated reproduction outcomes can be classified incorrectly, and the substantial new collector paths lack focused tests.

2 open findings

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@PureWeen PureWeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Adversarial review

As an independent reviewer, I assessed the complete PR at commit 81bf4ced3a94821de187fe1f644f2c16c22aab5f, including the revised outcome guard and canonical Preview/RC mapping. One new actionable issue remains after adversarial adjudication.

❌ Logic - preserve encounter order when selecting corrected version pairs

In Get-IssueRegressionContext.ps1, lines 210-211, Group-Object mentionedAt sorts observation groups by their URL keys, and the reverse loop then uses that lexical order to prioritize a source pair. URL order is not comment chronology.

A network-free fixture supplied an earlier comment ending in #issuecomment-999999999 reporting good/bad versions 10.0.10/10.0.11, followed by a later correction ending in #issuecomment-1000000000 reporting 10.0.20/10.0.21. Although the observations arrived in chronological encounter order, the selector chose the earlier 10.0.10/10.0.11 pair. The resulting investigation.good/bad then direct the source snapshots and comparison to the superseded releases. The same failure applies to an old nine-digit comment followed by a newer ten-digit comment; it does not require comment IDs to be consecutive.

Group observations while preserving their encounter order, then traverse those groups in reverse, rather than relying on lexical permalink sorting. Add a discriminating fixture asserting that the later correction wins across a comment-ID digit boundary.

Consensus: 3/3 reviewers after dispute; independently reproduced against the assigned head.

Prior feedback status

The two exact counterexamples from my previous review are addressed: failed to reproduce and cannot reproduce now remain unclassified, and plain and annotated Preview shorthand both reach the same mocked published-release mapping while retaining the raw answer.

The existing past-tense negation finding remains relevant. Offline probes also found that 10.0.10 did not work. 10.0.11 failed. can classify the first failing version as good; this is another counterexample within that existing negation-remediation scope, not a separate finding. The existing hermetic coverage request also remains outstanding. Neither request is duplicated here, and no review-thread state was changed.

Coverage and limits: Three independent reviewers with adversarial consensus examined the six PR-changed files and relevant consumers. The title and description match the evidence-collection scope. The authorization, trusted-checkout, read-only analysis, and separately scoped publication boundaries are retained. Focused probes exercised the changed functions with authentication tokens cleared and network calls replaced by mocks. The nine live-issue collection results, hosted report execution, and native repro scenarios were not independently rerun.

Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.

Select human sources by reverse encounter order rather than lexical permalink order, and share negated outcome patterns across classification and masking for present and past tense.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 7, 2026 23:02
@kubaflo
kubaflo requested a review from PureWeen October 7, 2026 23:04

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

Passive non-reproduction wording can be misclassified as a bad boundary, and the new evidence-selection paths lack automated coverage.

1 open finding
1 resolved since last review
Previously missed (2)

In code that hasn't changed since last review

Medium severity Add tests for source evidence extraction and prioritization

.github/​scripts/​shared/​Get-RegressionSourceEvidence.ps1:70

The substantial source-evidence changes are also untested: the Pester suite has no cases for Get-RegressionSourceExcerpt, symbol-excerpts, inComparedBadHistory, or diffsTruncated. Add hermetic mocked coverage for excerpt byte/line caps and missing symbols, platform filtering, round-robin selection, complete-forward exclusion, and diverged/truncated fallback so evidence is not silently dropped or misprioritized.

Medium severity Handle optional passive “be” in inability-to-reproduce detection

.github/​scripts/​shared/​Get-RegressionSourceEvidence.ps1:398

Passive inability wording is still inverted. For example, “10.0.10 could not be reproduced” misses this guard because be separates not from reproduced; it also misses $notReproduced, then the later reproduced+ branch records the version as bad. Accept the optional passive be here so inability-to-reproduce statements remain unclassified as documented.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

@PureWeen PureWeen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Adversarial review

As an independent reviewer, I assessed exact commit 2c3b074bcd0d38eaf543cfdf27c4a897b1e34a0d. No additional actionable findings survived adjudication on this head. This conclusion does not close the existing coverage request or establish merge readiness.

Independent checks: Three independent reviewers with adversarial consensus examined the six authoritative PR-changed files and relevant consumers. Checks covered outcome classification and investigation-pair selection, comment encounter order, canonical Preview/RC metadata handling, bounded source/history/excerpt collection, producer-consumer documentation, and workflow source/lock consistency against the pinned v0.86.2 compiler. The authorization, trusted-checkout, read-only analysis, and separately scoped publication boundaries remain intact. The title and description match the collector changes rather than claiming framework fixes.

Earlier feedback: The previously reported inability-to-reproduce false-bad classification, annotated Preview/RC mapping, lexical comment ordering, and past-tense negation counterexamples are addressed. Focused network-free probes with tokens cleared and dependencies mocked checked inability exclusions, present/past-tense polarity, digit-width rollover and reversed encounter order, empty/single-source selection, and metadata canonicalization. A further compound-cell candidate was reproduced and independently disputed; it did not receive two qualifying support votes and is not presented as a severity finding. Cells containing inability-to-reproduce wording remain conservatively unclassified.

Coverage and limits: One independent reviewer ran the existing Pester suite: 256 passed, 0 failed. That is not evidence of new committed coverage for the added collector paths. The existing unresolved coverage request (comment 4211349470) remains outstanding and is not duplicated here. Live issue collection, native/device reproduction, hosted report execution, and workflow recompilation were not independently performed in this assessment. Human outcomes and published package/source mappings remain unverified runtime evidence.

Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.

@kubaflo

kubaflo commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Stamping as requested by @kubaflo; no code review performed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants