Repository navigation
Fix investigation comments failing due to extra-quoted item_number - #66298
Merged
Merged
Conversation
The agent sometimes wraps string parameters in extra quote characters (e.g., '"aw_blazwasm"' instead of 'aw_blazwasm'), which causes the safe_outputs handler to reject the value. Add explicit guidance to pass item_number and temporary_id as plain strings without extra quoting, and clarify how to use temporary IDs with add_comment. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the agentic workflow instructions for the daily test quarantine automation to prevent add_comment failures caused by passing item_number values that contain embedded quote characters (which the safe-outputs handler rejects).
Changes:
- Add a general rule to pass safe-output string parameters as plain strings without embedded quotes.
- Clarify Step 3.1 investigation comment instructions to reuse the
temporary_idfromcreate_issueforadd_comment.item_number.
…ew one The prompt told the agent to 'reopen' the original issue for re-quarantines, but there is no reopen_issue safe output tool. The agent was creating new issues instead (e.g., #66292 instead of reusing #66035). Split Step 3.1 into Case A (new quarantine) and Case B (re-quarantine) with distinct flows: - Case A: create_issue with temporary_id, then add_comment with that temporary_id, then create_pull_request - Case B: add_comment on existing issue with numeric issue number, then create_pull_request referencing existing issue directly Also update budget planning and atomicity rules to reflect that Case B consumes 1 PR + 1 comment (no new issue). Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Daily Test Quarantine Management agentic workflow instructions to prevent investigation comment failures caused by passing item_number with embedded quote characters, and clarifies handling of re-quarantine vs new-quarantine actions.
Changes:
- Clarifies that
item_number/temporary_idstring parameters to safe-output tools must be passed as plain strings (no embedded quote characters). - Splits Step 3.1 instructions into Case A (new quarantine) vs Case B (re-quarantine) and updates budget/atomicity guidance accordingly.
- Adjusts Case B guidance to reuse the original quarantine issue rather than creating a new one.
Comment on lines
318
to
+324
| ### Step 3.1 — Quarantine and re-quarantine (highest priority) | ||
|
|
||
| For each quarantine/re-quarantine candidate, in priority order: | ||
|
|
||
| 1. **Create a test-failure issue** (or **reopen** the original issue for Case B re-quarantines) with this exact structure: | ||
| #### Case A — New quarantine | ||
|
|
||
| 1. **Create a test-failure issue** via `create_issue` with a `temporary_id` (e.g., `aw_http2ign`). Use this exact structure: |
| 2. **Create a PR** that: | ||
| - Adds `[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/{EXISTING_ISSUE_NUMBER}")]` to the test method (or class), using the **existing issue's numeric URL** directly — not a temporary ID. | ||
| - Adds `using Microsoft.AspNetCore.InternalTesting;` if not already present in the file | ||
| - References the existing issue in the PR body with `Associated issue: #{EXISTING_ISSUE_NUMBER}`. |
- Move Case B before Case A in Step 3.1 to match the priority order
(re-quarantines first, then new quarantines)
- Replace ambiguous #{EXISTING_ISSUE_NUMBER} placeholders with
concrete examples (e.g., #66035) to avoid confusion with the
temporary ID syntax
Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
In workflow run 24338805833, investigation comments on #66292 and #66293 failed because the agent passed
item_numberwith embedded quote characters ("aw_blazwasm"instead ofaw_blazwasm), causing the safe_outputs handler to reject the value.This is agent non-determinism — a defensive fix in gh-aw is also being requested upstream (github/gh-aw#26057), but in the meantime we can mitigate by being explicit in the prompt.
Changes
item_numberwhen callingadd_commentfor investigation comments (use the sametemporary_idfromcreate_issue, as a plain string)