Skip to content

Distinguish pre-agent startup failures from missing terminal outputs - #68467

Merged
pelikhan merged 7 commits into
mainfrom
pelikhan-gateway-timeout-verification
Oct 13, 2026
Merged

pelikhan merged 7 commits into
mainfrom
pelikhan-gateway-timeout-verification

Conversation

@pelikhan

@pelikhan pelikhan commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Distinguish real setup failures from agent omission, and keep unapproved zero-job workflow runs silent. Classify compiler-owned agent_execution.json / usage/agent/execution.json markers with state: not_started as agent_startup_failure, rather than claiming the agent finished without a terminal safe output. Preserve the existing omission classification when startup evidence is absent, invalid, symlinked, mismatched, or contradicted by observed agent execution.

Propagate the new collector-owned cause through failure issue titles, deduplication, category filters, schema, and documentation. Include the first failed Actions startup step using metadata only, without downloading or publishing raw logs or agent-authored error text.

Before creating or updating any failure issue or parent report, check the Actions jobs metadata. A confirmed empty job list suppresses reporting for every failure category: the run may not have been approved, and no agent job ran. API errors, malformed responses, or a nonempty job list without an agent job do not establish this condition. Genuine startup failures within started jobs remain reportable.

Evidence

Reports #68440 (run 38401428490) and #68388 (run 38386214820) both show Start MCP Gateway failing before agent execution; downloaded execution artifacts record not_started. Gateway v0.4.30 rejects /gateway/toolTimeout: got string, want integer. Missing API report detection output is downstream.

The timeout type fix already merged in #68410 at 3335daddf6fa89cf4524484a46cc6a98b211d8d0 on 2026-10-13 14:22:51 UTC and is present on current main. This PR does not duplicate it or change models/workflows. Neither named workflow has a subsequent run among its latest ten. Sampled newer runs were activation-gated/skipped before the gateway, so hosted post-fix startup remains unverified. No runs were dispatched.

Existing run 38419024904 is completed with action_required and an empty jobs response (total_count: 0). This is distinct from the in-job gateway failures above and must not produce an agent failure issue.

Validation

  • make agent-report-progress: build, changed-file lint/type checks, schema freshness, and 762 diagnostic/collector/failure-report/loader tests passed. Three pre-existing Date validation lint warnings remain unchanged.
  • Targeted failure reporting, daily AI-credit guardrail, and empty-output suites: 635 tests passed; TypeScript checks passed.
  • Timeout and gateway startup suites: 95 tests passed (physical TMPDIR used to avoid macOS /var symlink fixture rejection).
  • Zero-job regressions cover generic, collector-owned, and agent-reported failures with grouped reporting enabled; no issue creation, update, comment, or parent report occurs. Denied/invalid metadata and nonempty activation-only runs remain reportable.
  • New category inclusion/exclusion schema assertions passed.
  • Both actual downloaded startup artifacts replay as agent_startup_failure without engine, budget, or agent-omission claims.
  • Read-only security reviews: no findings; no workflow source or lock changes.

@pelikhan
pelikhan marked this pull request as ready for review October 13, 2026 15:29
Copilot AI balanced review requested due to automatic review settings October 13, 2026 15:29

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

Startup reports can retain incorrect engine claims, select the wrong failed step, and several fixtures are unstable in GitHub Actions.

5 open findings
What changed in this PR

Distinguishes pre-agent startup failures from missing terminal outputs and suppresses reports for confirmed zero-job runs.

Changes:

  • Adds agent_startup_failure classification and reporting.
  • Uses Actions job metadata for startup-step diagnostics and zero-job suppression.
  • Expands documentation, schema, and regression coverage.
File Description
pkg/​parser/​schemas/​main_workflow_schema.json Allows the new failure category.
docs/​src/​content/​docs/​reference/​safe-outputs.md Documents startup failures and zero-job behavior.
actions/​setup/​js/​load_agent_output.test.cjs Tests collector metadata preservation.
actions/​setup/​js/​handle_agent_failure.test.cjs Tests reporting and suppression behavior.
actions/​setup/​js/​handle_agent_failure.cjs Adds job metadata checks and startup diagnostics.
actions/​setup/​js/​empty_output_outcome.test.cjs Tests execution-marker classification.
actions/​setup/​js/​empty_output_outcome.cjs Implements startup-failure classification.
actions/​setup/​js/​collect_ndjson_output.test.cjs Tests collector propagation.

🧠 Review effort: Balanced

pelikhan and others added 2 commits October 13, 2026 08:42
Stub and restore run ID and attempt in startup diagnostic tests so CI and reruns validate matching compiler-owned markers deterministically.

Co-authored-by: Copilot App <[email protected]>
@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot address the following outstanding work in one pass:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Fix failing check JS Tests (shard 4/4) (FAILURE): https://github.com/github/gh-aw/actions/runs/38425761469/job/115394835283.

Push the necessary fixes, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved. Use the pr-finisher skill and stop when only human review or CI remains; do not trigger CI.

Sous-chef head: d9cb6db
Sous-chef work: 31f7e812d45f0792093269b7b90445aa9803225a204ec130694b9ceb0227d7cc
Sous-chef state: 1a19de9736dbce8afb9d917d859fa22e308c21066c82b64e209185f17ab82c01

Generated by 👨‍🍳 PR Sous Chef · pi · haiku45 · 4.01 AIC · ⌖ 11.1 AIC · ⊞ 1.1K · ◷
Comment /souschef to run again

Copilot AI commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

@copilot address the following outstanding work in one pass:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes....

Merged latest main with make merge-main and fixed the replay fixture to return a failed agent job instead of an empty job list. The exact JS Tests shard 4/4 passes locally (4,985 passed, 26 skipped); final local validation passed. Fix commit: 235412a. All five review threads were already resolved with replies. CI was not triggered and needs a maintainer re-run.

Copilot AI requested a review from gh-aw-bot October 13, 2026 16:50
@pelikhan
pelikhan merged commit b8881a6 into main Oct 13, 2026
6 checks passed
@pelikhan
pelikhan deleted the pelikhan-gateway-timeout-verification branch October 13, 2026 17:09
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.91.11

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.

4 participants