Repository navigation
Distinguish pre-agent startup failures from missing terminal outputs - #68467
Conversation
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🟡 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
Align fixture run identity with CI environment variables · New Use environment-matching run identity in startup classification test · New Use matching run identity when rebuilding diagnostics · New Suppress engine error extraction when agent startup failed · New Report the first failed startup step in forward order · New
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_failureclassification 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
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]>
Co-authored-by: Copilot App <[email protected]>
|
@copilot address the following outstanding work in one pass:
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
|
Co-authored-by: gh-aw-bot <[email protected]>
…out-verification Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
Merged latest |
|
🎉 This pull request is included in a new release. Release: |


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.jsonmarkers withstate: not_startedasagent_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 Gatewayfailing before agent execution; downloaded execution artifacts recordnot_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
3335daddf6fa89cf4524484a46cc6a98b211d8d0on 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_requiredand 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.TMPDIRused to avoid macOS/varsymlink fixture rejection).agent_startup_failurewithout engine, budget, or agent-omission claims.