Skip to content

Deduplicate incomplete workflow reports across changing diagnostics - #75987

Merged
pelikhan merged 5 commits into
mainfrom
copilot/aw-top-10-stop-workflows-ending-without-terminal-s
Nov 8, 2026
Merged

pelikhan merged 5 commits into
mainfrom
copilot/aw-top-10-stop-workflows-ending-without-terminal-s

Conversation

Copilot AI commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Clean driver exits can leave workflows without terminal safe outputs. Explicit incomplete reports can also create duplicate failure issues when supplemental diagnostics vary between runs.

  • Deduplication: Ignore missing_tool and missing_data when matching report_incomplete issues. Preserve workflow boundaries, classified runtime causes, and other failure categories.
  • Reporting: Retain each run’s reason, diagnostics, and full category set for reporting filters.
  • Regression coverage: Cover exit code 0 with diagnostic-only output and repeated incomplete runs producing one issue plus a follow-up comment.

Copilot AI changed the title [WIP] Fix workflows exiting without terminal safe output Deduplicate incomplete workflow reports across changing diagnostics Nov 8, 2026
Copilot AI requested a review from gh-aw-bot November 8, 2026 21:57
@pelikhan
pelikhan marked this pull request as ready for review November 8, 2026 22:01
Copilot AI adaptive review requested due to automatic review settings November 8, 2026 22:01
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · routed: gpt61 medium · ~4 AIC · ⌖ ~1 AIC · ◇ ~1 AIC · ⊞ 181 · ◷

Generated by Ponytail Reviewer for #75987

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 8.6K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ◇ ~1 AIC · ⊞ 7.2K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

❌ PR Specification Reviewer failed to deliver outputs. Please review the logs for details.

Generated by PR Specification Reviewer for #75987

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

Review complete: no actionable correctness, performance, or maintainability issues found in the changed lines. The specialist pass produced one category-metadata concern, but it does not apply because reporting filters use current run categories and daily caps only gate new issue creation; the existing issue marker need not be mutated.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~4 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again

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 incomplete-run issue deduplication changes.

No open issues 🎉

What changed in this PR

This PR reduces duplicate failure issues for incomplete gh-aw runs when supplemental diagnostics change, addressing the deduplication portion of #75852.

Changes:

  • Ignore missing_tool and missing_data when matching report_incomplete issues, while preserving workflow boundaries, runtime-cause matching, and other failure categories.
  • Add regression coverage for clean exits with diagnostic-only output and repeated incomplete runs reusing one issue.
  • Document reuse behavior and preservation of per-run diagnostics and reporting filters.
File Description
docs/​src/​content/​docs/​reference/​safe-outputs.md Documents incomplete-report matching and retained diagnostics.
actions/​setup/​js/​handle_agent_failure.test.cjs Tests matching boundaries and issue reuse across changing diagnostics.
actions/​setup/​js/​handle_agent_failure.cjs Normalizes incomplete-report categories for issue matching.
actions/​setup/​js/​collect_ndjson_output.test.cjs Covers diagnostic-only output after a successful driver exit.
.github/​skills/​agentic-workflows/​SKILL.md Adds the index-search reference to the guidance list.

Review effort: Balanced (auto)

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

Reviewed PR head 0748521.

Applicable contract: docs/src/content/docs/specs/safe-outputs-specification.md, report_incomplete operational semantics, synchronized as version 1.29.21 (2026-11-08). The implementation and added tests intentionally establish reuse of open, unexpired same-workflow incomplete issues while ignoring only supplemental missing_tool/missing_data categories; other categories, per-run reasons, diagnostics, and full reporting categories remain preserved.

Queued specification update: commit 785fa17 was submitted for publication to the PR branch. No blocking contract violations found. Static review did not execute tests or independently cover every category-order, expiration-boundary, or sanitization-failure permutation.

Generated by PR Specification Reviewer for #75987 · copilot · gpt50 · ~5 AIC · ⌖ ~2 AIC · ⊞ 1.7K
Comment /review-specs to run again

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

Skills-Based Review 🧠

Applied /tdd and /diagnosing-bugs. The reuse logic is sound: missing_tool/missing_data are normalized only when report_incomplete is present, and other categories still split issues. Leaving a COMMENT review because two tests overstate their coverage. Vitest could not run here (npm registry TLS error in this sandbox), so the suite is unverified.

📋 Key Themes & Highlights

Key Themes

  • Clean-exit test coverage: the missing_terminal_safe_output variant takes the classified failureCause path and never reaches the new category code
  • One-directional reuse test: existing markers always carry missing_tool, so the reverse normalization is untested

Positive Highlights

  • ✅ Preserves mcp_policy_error and timed_out as distinct causes
  • ✅ Doc update in safe-outputs.md matches the code; follow-ups render the current run's report_incomplete_context and diagnostics
  • ✅ Exit-code assertions in the collector test are a useful regression guard

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 6.3K
Comment /matt to run again

}
});

it.each(["missing_terminal_safe_output", "report_incomplete"])("creates one failure issue across clean-exit runs with %s and changing diagnostics", async cause => {

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.

[/tdd] The missing_terminal_safe_output variant does not exercise the category-matching change. Its classified failureCause reaches isReusableFailureIssue and returns on cause equality before matchCategories runs, so this case passes with or without the fix despite the test title.

💡 Suggested fix

Limit the diagnostic-variance check to the uncategorised report_incomplete path, which is the only one that reaches the new normalization. Either drop missing_terminal_safe_output from this it.each or rename the test to say it covers the classified-cause path.

@copilot please address this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed the missing_terminal_safe_output case from this category-normalization regression because its classified cause short-circuits category matching. The remaining report_incomplete case exercises category matching directly. Addressed in fca3578.

});

it.each([["report_incomplete"], ["missing_data", "report_incomplete"], ["missing_tool", "report_incomplete"], ["missing_data", "missing_tool", "report_incomplete"]])(
"reuses incomplete reports with different diagnostic categories: %j",

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.

[/tdd] The cases always use a fixed existing marker of ["missing_tool","report_incomplete"]. That checks only one direction of normalization: an existing marker without diagnostics, matched by a new run carrying missing_tool or missing_data, is never exercised.

💡 Suggested test

Parameterize the existing marker categories as well as the incoming ones, for example [["report_incomplete"], ["missing_tool","report_incomplete"]] crossed with the candidate set. Keep the mcp_policy_error and workflow-id negatives.

@copilot please address this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added both normalization directions, including an existing report_incomplete marker with no supplemental diagnostics matching new missing_tool and missing_data categories. Addressed in fca3578.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (actions/setup/js/handle_agent_failure.test.cjs:2392): [/tdd] The missing_terminal_safe_output variant does not exercise the category-matching change. Its classified failureCause reaches isReusableFailureIssue and returns on cause equality before matchCategories runs, so this case passes with or without the fix despite the test title. - Deduplicate incomplete workflow reports across changing diagnostics #75987 (comment)
  3. Review (actions/setup/js/handle_agent_failure.test.cjs:1568): [/tdd] The cases always use a fixed existing marker of [\"missing_tool\",\"report_incomplete\"]. That checks only one direction of normalization: an existing marker without diagnostics, matched by a new run carrying missing_tool or missing_data, is never exercised. - Deduplicate incomplete workflow reports across changing diagnostics #75987 (comment)
  4. Fix failing check JS Tests (shard 7/8) (FAILURE): https://github.com/github/gh-aw/actions/runs/42528146141/job/128876308722.
  5. Fix failing check JS Tests (shard 7/8) (FAILURE): https://github.com/github/gh-aw/actions/runs/42527753928/job/128875125555.
  6. Fix failing check safe_outputs (FAILURE): https://github.com/github/gh-aw/actions/runs/42528146499/job/128878379405.

Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI.

Sous-chef requested-head: 0748521
Sous-chef requested-work: 32e3e3ccb313efe036e4c42c7b519dd488f5215653151fde095dd8a6a313cac7 47f188a12b316525c2202f4f75b82185d76be0a140c0f99eae185cf2b7d8acb1 c7cf93e497befdd5e698d00101b0703e4101fe4133d86d433f7c170d07402b7e f5235fb475b1d0fea84c18a4a65b0f11fad23eb69e21a9e8e74274e90be05f22
Sous-chef requested-state: cad4c1f91e76a69511476ee435c8491a38ceef8e1e546b60a00558a723391115

Generated by 👨🍳 PR Sous Chef · pi · haiku45 · ~11 AIC · ⌖ ~12 AIC · ⊞ 1.2K · ◷
Comment /souschef to run again

Copilot AI and others added 2 commits November 8, 2026 22:45
@pelikhan
pelikhan merged commit 38e8321 into main Nov 8, 2026
51 of 52 checks passed
@pelikhan
pelikhan deleted the copilot/aw-top-10-stop-workflows-ending-without-terminal-s branch November 8, 2026 22:57
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.2

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AW Top 10] 05 Stop workflows ending without a terminal safe output

4 participants