Repository navigation
Fix /issue triage activation hash after shared import changes - #39190
Conversation
Regenerate the triage lock with gh-aw v0.86.2 against merged shared imports. Document dependent lock recompilation without changing workflow behavior. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39190Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39190" |
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Updates the compiled issue triage workflow lock metadata to match the current shared import frontmatter hash, preventing activation failures (E009 CONFIG_HASH_MISMATCH) after shared import changes.
Changes:
- Regenerated
.github/workflows/issue-triage.lock.ymlmetadata (frontmatter_hash) without changing the compiled workflow body. - Documented that shared import frontmatter changes require recompiling dependent lock files to avoid stale-hash activation failures.
| File | Description |
|---|---|
| .github/workflows/issue-triage.lock.yml | Updates frontmatter_hash in gh-aw metadata to match runtime config hash computation. |
| .github/docs/issue-triage.md | Adds guidance about recompiling dependent locks when shared import frontmatter changes. |
| After source changes, regenerate only this workflow. Shared import frontmatter | ||
| changes (including `shared/pat_pool.md`) also require recompiling dependent locks | ||
| against the final merged imports, even when this workflow's source is unchanged. | ||
| Otherwise activation rejects the stale lock with `E009 CONFIG_HASH_MISMATCH` | ||
| before inference or publication. |
|
@dalexsoto stamp |
PureWeen
left a comment
There was a problem hiding this comment.
Adversarial review
Reviewed exact head d26dc7a50e38885685751d6cce54472e497adb60 with 3 independent reviewers and adversarial consensus. No actionable PR-caused defects found. Each independent reviewer assessed the actual delta and relevant source/import consumers rather than accepting the description as evidence.
Independent checks established that:
- Only
.github/docs/issue-triage.mdand.github/workflows/issue-triage.lock.ymlchange. Every byte after the lock's first metadata line is identical to the reviewed base; onlyfrontmatter_hashchanges within that line. Executable jobs, permissions, authorization, publication boundaries, and action/container pins remain unchanged. - The official pinned gh-aw v0.86.2
hash-frontmattercommand and a separate reproduction of the tagged activation hashing algorithm both produce the committedeb116514f337eb247c8767becceaefdd9cfb69da65044098b5cdc510e7c2d153. Substituting the older shared-import frontmatter reproduces the stale hash, supporting the stated cause. The unchanged body hash also matches. - The tagged runtime rejects a configuration-hash mismatch in activation before the dependent inference/publication path. The added deployment note describes that mechanism accurately.
Validation and limits: Isolated v0.86.2 compilation succeeded with zero warnings. Exact compiler-output byte reproduction was limited by setup-action resolution annotations; the complete base/head lock comparison and pinned activation/hash checks independently cover this metadata-only correction. No new regression tests were added, and no product tests or hosted workflows were executed. This does not establish a successful post-merge production run.
The title and description match the implementation. One existing unresolved bot thread requests clearer dependent-lock discovery guidance; this assessment does not duplicate that feedback or change its resolution state.
Scope: code review only. CI/check status and merge readiness were not evaluated; use the repository's CI-analysis workflow for that assessment.
<!-- 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 --> Expose `source.prose`, deterministically computed by the existing trusted `Get-Prose` routine, alongside each unmodified `source.body` before `Get-Snapshot` computes its context hash. Prepared/current hash and freshness checks consequently include the projection. Update the producer prompt, label-triage skill and directly related documentation to require contiguous verbatim quotations present in both raw and filtered strings with exact ordinal matching. Prefer short complete prose sentences that support the label; never strip markup, rewrite a quotation or cite across blanked spans. Withhold unsupported labels instead of emitting malformed evidence. The projection is a citation aid, not proof of authority or semantic support. The [reported command](#39263 (comment)) did trigger [run 37851541526](https://github.com/dotnet/maui/actions/runs/37851541526) on main `45bab995c8498ee77144404a4361d3cf86a4a054`. Detection returned one complete all-clear verdict, but trusted safe-output validation correctly rejected the `has-workaround` quotation because it included inline code. That quotation is verbatim in the issue, but does not survive prose filtering. The same real source contains the intact sentence: "It recovered 4 + More after the refold in 10/10 runs." `Assert-Evidence` is unchanged: it recomputes `Get-Prose` from freshly fetched original bodies and requires exact ordinal containment in both raw and filtered text, never trusting derived fields supplied by the agent. All authority/provenance/category/whole-paragraph contradiction gates, source/file limits, abort-on-incomplete handling, WTD3/native parsing, exact label intents, artifact-only reporting, publication counters/receipts/postconditions and command completion remain unchanged. No normalization, inline-code authority or partial-proposal salvage is introduced. Context grows by the additional source projection; the existing 1 MiB JSON ceiling is not raised. Developed independently, then compared with #39250 and #39190: this fixes producer citation selection, not detection formatting or an activation-import mismatch. Those prior fixes remain intact. Pinned gh-aw v0.86.2 compilation changes only `body_hash` in the lock's first metadata line; executable YAML, manifest, frontmatter/current-import hash, models, pins, imports and permissions are byte-identical. **Validation** - `gh aw compile issue-triage --strict --no-check-update` — passed with gh-aw v0.86.2, one workflow, zero warnings. Repeated compilation produced identical lock SHA256 `8fa12bacc9bb34c80d70bd71055eae51ad36acb57bd734f8b86c6931ca06f158`. - `gh aw hash-frontmatter .github/workflows/issue-triage.md` — passed; current source/import hash `7e9b10340abb100486ac8ee727d99e3669f19d5482b59c3c0b639fdd2ad30bf5` matches metadata. - `test "$(gh aw hash-frontmatter .github/workflows/issue-triage.md)" = "$(head -n 1 .github/workflows/issue-triage.lock.yml | sed 's/^# gh-aw-metadata: //' | jq -r .frontmatter_hash)"` — passed. - `cmp <(git show 45bab99:.github/workflows/issue-triage.lock.yml | tail -n +2) <(tail -n +2 .github/workflows/issue-triage.lock.yml)` — executable YAML and manifest unchanged; the equivalent comparison against pre-commit `HEAD` passed. - `pwsh -NoProfile -NonInteractive -Command '$tokens = $null; $errors = $null; $null = [Management.Automation.Language.Parser]::ParseFile((Join-Path $PWD ".github/scripts/IssueTriage.ps1"), [ref]$tokens, [ref]$errors); if ($errors.Count) { throw ($errors | Out-String) }; "Whole-script PowerShell AST: PASS"'` — passed for the entire script. - `actionlint .github/workflows/issue-triage.lock.yml` — reports only the existing `queue: max` compatibility diagnostic at its two occurrences with actionlint 1.7.12. - `actionlint -ignore '^unexpected key "queue" for "concurrency" section\. expected one of "cancel-in-progress", "group"$' .github/workflows/issue-triage.lock.yml` — passed; that exact anchored compatibility diagnostic is the sole exception. - `git diff --check` — passed. Read-only, one-off in-memory PowerShell analysis extracted the actual helper definitions and new snapshot projection from the script AST and exercised genuine archived issue/proposal evidence, without executing workflow stages or modifying archived files. Confirmed the raw agent-output SHA256 `d95b90380909eff2fcbcd45f7660457de43e284b9e5dcf5c18edaaa2ed07b237`; the original inline-code quotation remains rejected, while the intact sentence passes the citation gate only (not full label validation). Both source bodies/metadata, source count and text length/line/index shape are preserved. Inline code remains blanked; editing an in-memory derived projection changes its hash and cannot bypass the unchanged fresh-body citation check. The archived context would grow from 91,035 to 95,175 bytes, below the unchanged 1,048,576-byte ceiling. **Hosted CI at `bfb106adece5d825f96dc26edb079f2b85bb52ae`:** [Skill Validation 37918382469](https://github.com/dotnet/maui/actions/runs/37918382469) passed its static checks; LLM evaluation was skipped. [Queue validation 37918382485](https://github.com/dotnet/maui/actions/runs/37918382485) passed. [Pester scripts 37918382456](https://github.com/dotnet/maui/actions/runs/37918382456) completed with **2538 passed / 3 failed**, exactly matching the full failed test names and totals of [unchanged-main run 37549105032](https://github.com/dotnet/maui/actions/runs/37549105032), SHA `7d38fd06d059c4875bd81690c360a196aae26a26`. All three failing test files and the two referenced model inputs have identical Git blob SHAs at that baseline and this head. These are verified pre-existing GPT-model-pin assertions, not new failures introduced here. Azure Pipelines explicitly filtered `maui-pr` by trigger conditions; its neutral status is not a build or product-test pass. No pipeline/Pester/regex/snapshot/fixture tests were added. Product/device tests and the existing full Pester suite were not run locally. No live workflow/issue dispatches, command replays, issue comments/labels/minimization, access changes or new monitors during implementation. The configuration/helper checks and hosted CI results are not a new live end-to-end agent success or a guarantee of model compliance. This fix awaits merge and fresh production verification; the historical command was not replayed. ### 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. --> Addresses the `/issue triage` reliability report on #39263; does not close the underlying Shell product issue or replay its command. <!-- 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>

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
Regenerate only
issue-triage.lock.ymlusing gh-aw v0.86.2 against deployed main8c974ad7037c6e171e951883c752bbcea1514cc3, following #39065. Sharedpat_pool.mdfrontmatter changed before merge, leaving the triage lock stale. Actual production runs 37503999448 and 37503998307 failed before inference/publication withE009 CONFIG_HASH_MISMATCH.The compiler changes only
frontmatter_hashin the first metadata line:d2c371bf924eb254532ec722f31d817ebdb42fd4e5565b4952a40e09e465e0d1eb116514f337eb247c8767becceaefdd9cfb69da65044098b5cdc510e7c2d153The new value matches the actual activation runtime recomputation in run 37503999448. All bytes after that metadata line are unchanged: authorization, GPT-only inference, permission boundaries, publication, hash checks, action/container pins and job conditions are preserved. Add a deployment note requiring dependent lock recompilation after shared import frontmatter changes. No workflow source, shared import, script or C# changes.
Configuration validation:
git merge-base --is-ancestor 8c974ad7037c6e171e951883c752bbcea1514cc3 HEAD— passed before editing; initial HEAD was exactly that deployed squash merge.gh aw compile issue-triage --strict --no-check-update— passed; 1 workflow succeeded, 0 warnings, compiler v0.86.2.gh aw hash-frontmatter .github/workflows/issue-triage.md— passed; output equals regenerated metadata and actual runtime hash above.test "$(gh aw hash-frontmatter .github/workflows/issue-triage.md)" = "$(head -n 1 .github/workflows/issue-triage.lock.yml | sed 's/^# gh-aw-metadata: //' | jq -r .frontmatter_hash)"— passed.cmp <(git show HEAD:.github/workflows/issue-triage.lock.yml | tail -n +2) <(tail -n +2 .github/workflows/issue-triage.lock.yml)— passed before committing; compiled lock excluding metadata is byte-identical to deployed main.actionlint -ignore 'unexpected key "queue" for "concurrency" section' .github/workflows/issue-triage.lock.yml— passed with actionlint 1.7.12; only the existing narrow compiler-generated queue exception.git diff --check— passed.No pipeline/Pester/snapshot/synthetic fixture tests or product builds were added or run. No production commands, dispatches or issue-label mutations were performed for this correction. Post-merge production outcome audit remains separate; local validation does not claim hosted end-to-end success.
Issues Fixed
Follow-up to #39065. No issue is closed: the reproduced defect is the activation failure in the linked actual production runs, not the underlying product reports used as smoke-test targets.