Skip to content

[automated] Merge branch 'main' => 'net11.0' - #39111

Merged
kubaflo merged 3 commits into
net11.0from
merge/main-to-net11.0
Oct 3, 2026
Merged

kubaflo merged 3 commits into
net11.0from
merge/main-to-net11.0

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

I detected changes in the main branch which have not been merged yet to net11.0. I'm a robot and am configured to help you automatically keep net11.0 up to date, so I've opened this PR.

This PR merges commits made on main by the following committers:

  • kubaflo

Instructions for merging from UI

This PR will not be auto-merged. When pull request checks pass, complete this PR by creating a merge commit, not a squash or rebase commit.

merge button instructions

If this repo does not allow creating merge commits from the GitHub UI, use command line instructions.

Instructions for merging via command line

Run these commands to merge this pull request from the command line.

git fetch
git checkout main
git pull --ff-only
git checkout net11.0
git pull --ff-only
git merge --no-ff main

# If there are merge conflicts, resolve them and then run git merge --continue to complete the merge
# Pushing the changes to the PR branch will re-trigger PR validation.
git push https://github.com/dotnet/maui HEAD:merge/main-to-net11.0
or if you are using SSH
git push git@github.com:dotnet/maui HEAD:merge/main-to-net11.0

After PR checks are complete push the branch

git push

Instructions for resolving conflicts

⚠️ If there are merge conflicts, you will need to resolve them manually before merging. You can do this using GitHub or using the command line.

Instructions for updating this pull request

Contributors to this repo have permission update this pull request by pushing to the branch 'merge/main-to-net11.0'. This can be done to resolve conflicts or make other changes to this pull request before it is merged.
The provided examples assume that the remote is named 'origin'. If you have a different remote name, please replace 'origin' with the name of your remote.

git fetch
git checkout -b merge/main-to-net11.0 origin/net11.0
git pull https://github.com/dotnet/maui merge/main-to-net11.0
(make changes)
git commit -m "Updated PR with my changes"
git push https://github.com/dotnet/maui HEAD:merge/main-to-net11.0
or if you are using SSH
git fetch
git checkout -b merge/main-to-net11.0 origin/net11.0
git pull git@github.com:dotnet/maui merge/main-to-net11.0
(make changes)
git commit -m "Updated PR with my changes"
git push git@github.com:dotnet/maui HEAD:merge/main-to-net11.0

Contact .NET Core Engineering (dotnet/dnceng) if you have questions or issues.
Also, if this PR was generated incorrectly, help us fix it. See https://github.com/dotnet/arcade/blob/main/.github/workflows/scripts/inter-branch-merge.ps1.

kubaflo and others added 3 commits October 3, 2026 13:24
<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

<!-- Enter description of the fix in this section -->

Add `/issue trace-regression` as a maintainer-triggered issue
investigation command, following the authorization and
expandable-comment conventions of `/review tests`.

- Accept only newly created, standalone issue comments from users with
current `write`, `maintain`, or `admin` permission. Ignore PR comments,
bots, edits, and other subcommands. Check permission before and after
evidence collection; a removed collaborator's 404 is an unauthorized
no-op, while private organization membership is not excluded by an
author-association filter.
- Gate the credential-bearing PAT-pool job on the collector's validated
`should_run` output, so unrelated `/issue` commands do not enter that
job.
- Preserve the maximum pending per-issue queue, so unrelated comment or
edit events cannot replace a pending authorized request. Leave the
command visible until a report is actually published; a separate trusted
completion job requires the native report comment ID, fetches that exact
comment, requires its exact triggering-issue URL, and rechecks current
permission before best-effort minimization. Its explicit `!cancelled()`
condition permits completion after an agent failure that nevertheless
produced the published output, while cancellation or an absent
publication receipt skips completion. A positive ID or successful
publisher job alone cannot resolve an unanswered command.
- Use **GPT-6.1 Sol** (`gpt-6.1-sol`) and the dedicated
`trace-regression` skill to investigate candidate introducing commits
and PRs. Explicitly select the Responses API and import the same
model-pricing configuration used by the repository's other GPT-6.1 Sol
workflows.
- Freeze reported versions, exact release-tag SHAs, recent comments, and
bounded history in the compiler's read-only `$RUNNER_TEMP/gh-aw` mount.
The snapshot download is required: a failed download stops inference
instead of falling back to mutable live issue data.
- Parse issue-form headings only outside backtick or tilde fences. Treat
real duplicate version headings as ambiguous: do not select a value,
resolve a tag, or compare releases for that boundary. Detect partial
comment pages by their expected counts, then revalidate the issue's
count and normalized update timestamp. Concurrent changes or failed
revalidation discard questionable comments and explicitly mark the
evidence incomplete. Report these gaps, missing evidence, conflicting
tags, divergent ancestry, policy-filtered reads, and truncated results.
- Distinguish confirmed introductions, likely introductions, candidates,
and insufficient evidence. Static inspection must not be described as a
completed reproduction or bisect.
- Publish one expandable report, restricted to the triggering issue, and
collapse older reports. The pinned v0.86.2 add-comment handler
prioritizes explicit agent target aliases over both `target: triggering`
and a fixed numeric target. Configuration alone is therefore not the
boundary: a token-free trusted validation step checks a bounded regular
output file before native publication, rejects cross-issue aliases,
foreign repository overrides, existing-comment/status edits, and
unsupported operations. The collector/helper runs from an immutable
trusted checkout, and the agent output is copied only as data outside
it. Explicitly disable pull-request publication; generated safe-output
and conclusion jobs have no PR write permission. Disable both
agent-failure and the separate failed-custom-job issue reporters, so
failed completion cannot create an untargeted repository issue.
- Require each report intent to contain a nonempty text body and reject
multiple `add_comment` intents before the native maximum can select one.
The pinned handler's maximum-only body limits otherwise accept
whitespace and subsequently add report markers, potentially creating a
marker-only comment. Empty/noop/missing-data outcomes remain permitted:
requiring exactly one report unconditionally would break legitimate
no-report paths, and these paths cannot minimize the command without a
verified publication receipt. This validates minimum report shape, not
the semantic accuracy of AI analysis.

This is report-only: it does not execute reproduction code, builds,
tests, or bisects, modify labels, or push fixes. The discarded
conflict-resolution implementation is not part of the final diff. The
model migration does not change triggers, permissions, collector
behavior, or publication scope. The obsolete hardcoded GPT-5.6
configuration assertion was removed. The original PR already included
functional tests and workflow/report source-contract checks; the model
migration and subsequent review-fix batches added no additional
pipeline/configuration tests. Workflow changes are validated with strict
compilation and actual hosted execution.

#### Validation

- `gh aw compile issue-trace-regression --validate --strict` and `gh aw
compile issue-trace-regression --validate --strict --no-emit` —
**passed**, zero warnings; regenerated lockfile included with the
earlier frontmatter change. The latest body/count fix changes only the
trusted helper and directly related documentation, so production
frontmatter and lockfile are unchanged. Native ordering was inspected:
output download, output-path setup, immutable-SHA credentials-free
checkout, bounded scope guard, then `Process Safe Outputs`. All 15
consumers of the shared PAT-pool import also passed strict validated
compilation in the earlier shared-import batch; two existing warnings
remain in unrelated workflows.
- `pwsh -NoProfile -Command '$config = New-PesterConfiguration;
$config.Run.Path = @(".github/scripts/IssueRegression.Tests.ps1",
".github/scripts/ReviewTrigger.Tests.ps1",
".github/scripts/shared/Invoke-GhCommandWithRetry.Tests.ps1",
".github/scripts/shared/Copy-BoundedDiagnosticFile.Tests.ps1");
$config.Run.PassThru = $true; $config.Output.Verbosity = "Normal";
$result = Invoke-Pester -Configuration $config; if ($result.FailedCount
-gt 0 -or $result.TotalCount -lt 1) { exit 1 }'` — **passed**, 303
existing collector, trigger, retry, source-contract, and bounded-copy
checks. Existing completion fixtures were adapted for the newly required
valid receipt; no test cases or configuration assertions were added.
These suites are not claimed as new automated coverage of the
publication validator; that function was exercised directly and through
actual hosted runs below. Maintained validator regression tests were not
added under the requested no-new-pipeline-tests scope.
- `gh aw compile copilot-review-tests --validate --strict` — **passed**
for the fork-only dispatch harness; this harness is not part of the
production PR.
- **Final minimum report-shape validation on the production-identical
helper:** the [normal
run](https://github.com/kubaflo/maui/actions/runs/36959639518) accepted
a real report alongside a diagnostic `missing_tool`, successfully
published [report
5945066587](kubaflo#928 (comment)),
verified its issue URL, and resolved only its command. The
[whitespace-only
run](https://github.com/kubaflo/maui/actions/runs/36959642227) modified
the actual emitted report body to whitespace; the trusted guard failed
with the nonempty-body error, native processing and completion were
skipped, no report was created, and its command remained visible. The
[duplicate-intent
run](https://github.com/kubaflo/maui/actions/runs/36959644940) added a
second real same-issue report intent with a distinct temporary ID; the
trusted guard rejected the pair before native processing, no report was
created, and its command remained visible. Both negative runs
intentionally conclude failure; their required rejection outcomes
passed. Actual output artifacts, native step outcomes, report/issue
receipts, and GitHub minimized states were inspected. Before/after
inventories contained the same 88 issue IDs; only the normal run
published a new report. Both fault modes default off and exist only on
the isolated fork dispatch branch.
- Direct function execution accepted a valid report and
empty/noop/missing-data outcomes; rejected missing, null, non-text, and
whitespace-only bodies and duplicate reports; and rechecked all 13
target/repository/edit fields. This is one-off functional validation,
not a maintained regression suite. No additional pipeline/configuration
tests were introduced.
- **Earlier publication binding and independent receipt verification:**
the [normal fork
run](https://github.com/kubaflo/maui/actions/runs/36955490959)
successfully ran the guard, posted [report
5944525378](kubaflo#928 (comment))
to the expected issue, verified its exact issue URL, and resolved only
its own command. The [guarded cross-target
run](https://github.com/kubaflo/maui/actions/runs/36955493105)
deliberately changed exactly one real GPT-6.1 Sol output to
`item_number=929`; the trusted validation step failed, native
publication and completion were skipped, no report from that run
appeared on either fixture, and the original command stayed visible.
That run intentionally concludes failure; the required rejection outcome
passed. The [fork-only guard-bypass
run](https://github.com/kubaflo/maui/actions/runs/36955495393)
independently exercised completion: the pinned native handler posted
[actual report
5944684604](kubaflo#929 (comment))
to isolated secondary fixture 929, but completion fetched its receipt,
rejected the mismatched issue URL, and left the original issue-928
command visible. GitHub's actual minimized states were checked; a
successful completion job was not mistaken for minimization.
Before/after inventories contained the same 88 fork issue IDs, with no
unexpected issue creation. Mutation and bypass inputs default off, exist
only in the isolated fork harness, and were never added to production.
- Earlier direct probes rejected all eight cross-issue aliases, a
foreign repository, existing-comment edits, case-normalized unsupported
operations, and native `target: status` edits; valid same-issue output
remained accepted. The status-edit rejection was directly probed, not
claimed as a hosted status-mutation test. Exact-size probes accepted a 1
MiB JSON file and detected a 1 MiB + 1 byte file as truncated before
parsing.
- **Earlier failed-agent and failed-completion paths:** [fork
run](https://github.com/kubaflo/maui/actions/runs/36945016403),
[generated
report](kubaflo#928 (comment)).
Real GPT-6.1 Sol inference emitted its safe output before a fork-only
hook deliberately failed the agent job with exit 23. Native safe outputs
successfully published the report, and the trusted completion step
actually minimized the answered command before another fork-only hook
failed completion with exit 24. GitHub confirmed the command's minimized
state and `resolved` reason. Conclusion succeeded with no failed-job
reporter step; complete before/after inventories contained the same 87
then-existing fork issue IDs. The run intentionally concludes failure;
its required failure-path outcomes passed. Both fault inputs default off
and exist only in the isolated fork harness.
- **Earlier missing-publication receipt validation:** the
[missing-snapshot
control](https://github.com/kubaflo/maui/actions/runs/36945019130)
failed the required download as expected. Both Copilot inference steps
and command completion were skipped; safe outputs succeeded but
published no report, and its command remained visible. This run
intentionally concludes failure; the required no-report outcome passed.
- **Earlier all-success hosted GPT-6.1 Sol execution:** [fork
run](https://github.com/kubaflo/maui/actions/runs/36934845495),
[generated
report](kubaflo#928 (comment)).
All eight jobs succeeded and exactly one report was published. The
collector ignored deliberately prepended fenced version examples and
resolved the real `9.0.100 SR10`/`10.0.40` fields. Actual
`agent_usage.json` identifies `gpt-6.1-sol`; the report preserved
divergent ancestry and incomplete source-history evidence without
claiming runtime confirmation. The completion log recorded the published
report ID before minimization, and GitHub confirmed only that run's
command became resolved.
- **Earlier required snapshot failure and visibility validation:** the
[queued fork run with a deliberately unavailable
artifact](https://github.com/kubaflo/maui/actions/runs/36934895797)
failed at the required download as expected. Both Copilot execution
steps and command minimization were skipped; no report was published and
its command stayed visible. Its collector artifact also recorded a
deliberately outdated captured issue marker as an explicit
comment-snapshot gap, with zero retained comments and
`commentsTruncated: true`.
- **Pending queue and negative-command validation:** the
[unrelated-command fork
run](https://github.com/kubaflo/maui/actions/runs/36934898946) arrived
after the missing-context request while the positive run was active.
Both subsequent runs remained pending, then both ran without
cancellation. The unrelated command skipped the entire PAT pool,
inference, publication, and minimization.
- A direct collector exercise also verified the exact 100-to-101
comment-count race and longer backtick fences with a shorter interior
fence. Real version fields were retained, and the race discarded
questionable comments with an explicit incomplete-history gap.
- The original collector and updated skill were used on the fork with
only dispatch, existing fork credential wiring, fixed fork publication
context, and documented controlled fault/mutation/bypass hooks adapted.
The upstream issue and fork default branch were unchanged by these
validation runs.
- **Not covered by fork dispatch:** production `issue_comment` webhook
delivery and upstream permission checks. The real fork command, PAT-pool
skip, queue preservation, scoped publication, and command minimization
were validated through the isolated dispatch adapter; this is not a
claim that the production webhook ran.
- On current commit `3683461f99`, [Skill
Validation](https://github.com/dotnet/maui/actions/runs/36961565300)
**passed**. [PowerShell Script
Tests](https://github.com/dotnet/maui/actions/runs/36961567642) passed
**2456/2459**, failing only the same three unrelated `/review tests`
contracts that still assert GPT-5.6. Their actual failure logs were
inspected, and those tests and referenced implementations remain
byte-identical to merged `main` at
`b9dc0cc2b2815a68dcbca3819a9898fc33f692db`; the local reviewer actually
uses `gpt-6-astra`, and the hosted reviewer uses `gpt-6.1-sol`. These
inherited assertions were left unchanged, so this is not an all-green CI
claim. No completed `main` runtime baseline was obtained. Current Azure
PR-build queries for all three canonical pipelines returned no builds.
- Runtime accounting caveat: the latest normal report-bearing run's
`agent_usage.json` identifies `gpt-6.1-sol` and reports 856,531
input/output tokens (including 783,723 cached input tokens) but zero AI
credits despite the pricing override being present. Zero must not be
interpreted as a free run.

#### Credential and dependency audit

No new secret configuration is required. The workflow reuses
`COPILOT_PAT_0` through `COPILOT_PAT_9` through the existing shared PAT
pool. The old and regenerated production lockfile manifests are
identical: no secret, action, or container was added or removed by the
model migration or latest failure-path/scope fixes. No redirect changes
are introduced. The shared pricing import matches the established
GPT-6.1 Sol configuration on `main`. The final minimum-body/count
hardening changes only the trusted helper and documentation; production
workflow configuration and lockfile are unchanged.

The agent has read-only **GitHub** permissions and a read-only evidence
mount; this is not a claim that its entire filesystem is immutable.
Trusted checkouts do not persist credentials. Pre-activation has only
issue-read permission; report publication is isolated in the safe-output
job with `target: triggering` plus independent pre-publication
validation. The trusted publisher now also has `contents: read` to check
out the validator; the pinned compiler propagates the same read grant to
conclusion. The separate completion job receives issue-write permission
to minimize the already answered original command only after verifying
the actual receipt's issue URL and rechecking authorization. The native
conclusion job still retains issue-write permission for its other
handlers; both agent-failure and failed-custom-job issue reporters are
explicitly disabled. These jobs have no PR write permission.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

N/A — adds a report-only maintainer command; it does not fix the issues
it investigates. #34057 was used as the hosted investigation example.

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
<!-- Please let the below note in for people that find this PR -->
> [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Description of Change

`.github/skills/issue-triage/scripts/query-issues.ps1` is the mandated
entry point for the `issue-triage` skill. It aborts partway through
every run on any host whose culture uses `dd/MM` date order (`en-GB`,
`en-PL`, `pl-PL`, `de-DE`, …):

```
Exception calling "Parse" with "1" argument(s):
"String '09/30/2026 21:39:41' was not recognized as a valid DateTime."
```

**Root cause.** `ConvertFrom-Json` already materializes an ISO-8601 JSON
value as a `[datetime]`. Calling `[datetime]::Parse($value)` on that
object therefore renders it *back* to a string using the **invariant**
culture (`MM/dd/yyyy HH:mm:ss`) and reads it back using the **current**
culture:

* when the day is **> 12**, the parse throws outright — this is the
crash above;
* when the day is **≤ 12**, it is worse: it silently transposes day and
month (`2026-07-01` → `2026-01-07`), so every age / staleness number is
wrong by months **with no error at all**. A 6-day-old issue reads as 181
days old, which silently corrupts the `-MinAge` / `-MaxAge` filters and
the `Age` column used to make triage decisions.

The round-trip also discards the offset, leaving `Kind = Unspecified`.

**Fix.** Route all four timestamp sites through a new
`ConvertFrom-GitHubTimestamp` helper that passes an already-typed
`[datetime]` straight through (no round-trip at all) and parses genuine
strings with `InvariantCulture` + `RoundtripKind` so the UTC marker
survives. This is the convention already used elsewhere in the repo —
`query-reviewable-prs.ps1`, `Get-PreviewReadiness.ps1`, and the detailed
note in `CiScanReconcile.Core.ps1`; `query-issues.ps1` was the one
outlier.

Sites changed:

| Line (old) | Site |
|---|---|
| 192 | milestone `DueOn` sort key (`TryParse`, current culture) |
| 270 | `-MinAge` filter |
| 275 | `-MaxAge` filter |
| 328 | per-issue `Age` calculation — **the line that actually threw** |

Also computes the `-MinAge` / `-MaxAge` cutoffs in UTC. They were built
from a local `Get-Date` and compared against UTC GitHub timestamps,
skewing the boundary by the host's offset (up to ±14h) and
misclassifying issues created near it.

### Validation

No new test project was added — this is a skill script, and the existing
`powershell-script-tests.yml` Pester gate does not cover
`.github/skills/issue-triage`. Verified empirically instead, on an
`en-PL` host (the culture that produced the original crash):

| Check | Command | Result |
|---|---|---|
| Full run that previously crashed | `pwsh
.github/skills/issue-triage/scripts/query-issues.ps1 -Limit 100
-OutputFormat json` | **Passed** — exit 0, `Found 94 issues`, all 94
processed (previously died at issue **26 of 94**) |
| No raw parses remain | `grep -n
"DateTime\]::Parse\|DateTime\]::TryParse" query-issues.ps1` | **Passed**
— no matches |
| Culture invariance (`2026-07-01`, a day ≤ 12 where transposition
hides) | helper evaluated under `en-PL`, `pl-PL`, `en-GB`, `de-DE`,
`en-US`, for both the `ConvertFrom-Json` `[datetime]` shape and the raw
ISO string shape | **Passed** — all 10 cases return `2026-07-01` |
| Null / empty / unparseable input | helper called with `$null`, `''`,
`'not-a-date'` | **Passed** — returns `$null`, no throw |

Ages in the output are now consistent with wall-clock (e.g. an issue
created `2026-09-25` reports `8 days`).

### Issues Fixed

Fixes the crash that currently blocks the `issue-triage` skill
end-to-end. No existing issue was filed for it; it was found while
auditing open-issue health.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Reset patterns:
- global.json
- NuGet.config
- eng/Version.Details.xml
- eng/Versions.props
- eng/common/*
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service dotnet-policy-service Bot 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.

Auto-approved automated inter-branch merge.

@kubaflo
kubaflo merged commit a171dde into net11.0 Oct 3, 2026
4 of 13 checks passed
@kubaflo
kubaflo deleted the merge/main-to-net11.0 branch October 3, 2026 17:10
@github-actions github-actions Bot added this to the .NET 11.0-rc2 milestone Oct 3, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 3, 2026
@github-actions github-actions Bot modified the milestones: .NET 11.0-rc2, .NET 11.0 GA Nov 8, 2026
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.

1 participant