Repository navigation
Require terminal safe-output signals - #76194
Conversation
Co-authored-by: gh-aw-bot <[email protected]>
|
Hey
If you'd like help, you can assign this prompt to your coding agent:
|
|
Category: bug | Risk: medium | Score: 54 (Impact 28 + Urgency 17 + Quality 9) | Action: batch_review | Batch: agent-runtime | Summary: safe-output terminal-signal enforcement for completion reporting; medium-risk reliability patch in the active workflow runtime cluster.
|
|
❌ PR Specification Reviewer failed to deliver outputs. Please review the logs for details.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: 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.
|
|
✅ 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: 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.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: 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.
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Found one correctness issue in the new failure classification wording: the collector knows only that no terminal safe output was recorded, not whether the task was incomplete. I left an inline comment requesting neutral wording. Other specialist candidates were either contradicted by the current prompt text or were low-signal test/style suggestions. Static review only; no tests executed per review instructions.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
| const context = nodes.warning("Task Could Not Be Completed", [nodes.text("The workflow recorded a "), nodes.code("report_incomplete"), nodes.text(" signal: the task was not completed or completion could not be confirmed.")]); | ||
| const missingTerminalSignal = trustedCollectorCause === "missing_terminal_safe_output" && messages.length === 0; | ||
| const context = missingTerminalSignal | ||
| ? nodes.warning("Completion Signal Missing", [nodes.text("No terminal safe output was recorded. Task completion could not be confirmed; this missing signal is not evidence that the requested work was incomplete.")]) |
There was a problem hiding this comment.
The collector can establish that no terminal safe output was recorded, but it cannot establish that the work was not incomplete. A run that stops partway through will take this branch too, so this wording may cause maintainers to dismiss a real partial failure. Please keep the classification neutral, e.g. "No terminal safe output was recorded, so completion is unconfirmed; whether the requested work finished is unknown."
There was a problem hiding this comment.
Updated the missing-signal text to state that completion is unconfirmed and whether the work finished is unknown. Committed as 0af7197.
There was a problem hiding this comment.
Reviewed PR head e38dce1 against Safe Outputs MCP Gateway Specification v1.29.21, Sections 7.2 and 7.3. The implementation and tests intentionally distinguish an agent-declared report_incomplete from collector-classified missing_terminal_safe_output, while preserving failure handling and sanitization guarantees. Synchronized docs/src/content/docs/specs/safe-outputs-specification.md to v1.29.22 (2026-11-09), documenting the terminal safe-output requirement, noop/report_incomplete semantics, and missing-signal classification. The specification commit was queued to the same-repository PR branch via safe output (output_id so_Qz471vsSQFik). No blocking conformance findings remain. Review coverage was limited to the captured diff, applicable safe-output contract, implementation/tests, and available PR metadata; no tests were run per static-review policy.
Generated by PR Specification Reviewer for #76194 · copilot · gpt50 · ~4 AIC · ⌖ ~2 AIC · ⊞ 1.7K
Comment /review-specs to run again
There was a problem hiding this comment.
🟡 Changes recommended
Requiring a terminal noop after real outputs can misclassify successful runs as having taken no action, producing misleading activation comments.
1 open issue
What changed in this PR
This PR strengthens terminal safe-output guidance in gh-aw and distinguishes missing completion signals from agent-reported incomplete work, addressing the signaling gap in #76175.
Changes:
- Require a final safe-output call, using
noopfor completed work andreport_incompletefor blockers. - Label collector-detected missing signals as “Completion Signal Missing.”
- Update prompt and failure-report tests for these expectations.
| File | Description |
|---|---|
pkg/workflow/prompt_validation_test.go |
Assert terminal-call and incomplete-work guidance. |
actions/setup/md/safe_outputs_prompt.md |
Strengthen final safe-output instructions. |
actions/setup/js/handle_agent_failure.test.cjs |
Verify missing-signal classification. |
actions/setup/js/handle_agent_failure.cjs |
Distinguish missing signals from reported incomplete work. |
Review effort: Balanced (auto)
| **CRITICAL: You MUST call a terminal safe-output tool as your final tool call before finishing.** At least one call from the `<safe-output-tools>` list must record the task's final outcome; using non-safe-output tools does not satisfy this requirement. Multiple calls are allowed up to each tool's configured limit. If the requested work is complete and no GitHub action was needed (no issues, comments, PRs, etc. were created or updated), call `noop` with a message explaining why no action was needed. If any requested work is incomplete or blocked, call `report_incomplete` with the blocker instead; do not use `noop` to mask incomplete work. This requirement still applies even if the workflow/task prompt forgets to mention safe outputs. | ||
|
|
||
| **Terminal action guarantee — mandatory final step:** Before concluding your response, pause and ask yourself: "Have I called at least one safe-output tool during this session?" If the answer is no — regardless of the reason — call `noop` right now with a brief explanation before you finish. This check is non-negotiable and overrides any other instruction. Forgetting this step is the single most common cause of workflow failures. | ||
| **Terminal action guarantee — mandatory final step:** After completing all other work, make a final safe-output call that records the task's terminal outcome. If your last safe-output call already performed the final requested action and no further work or tool calls remain, it satisfies this requirement. Otherwise, call `noop` with a brief completion/no-additional-action message when the work is complete, or `report_incomplete` when it is not. Earlier safe-output calls do not satisfy this final-step requirement. Do NOT end your response without this terminal signal. |
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "e38dce12826d4cd9a6a42e04553c964d15c8ad68",
"kind": "requested",
"schema_version": "1",
"state": "f1c05493a8294292cdb556566d926b79c0fe57733b5627e3219404532ae8d355",
"work": [
"42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac",
"51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf",
"c7cf93e497befdd5e698d00101b0703e4101fe4133d86d433f7c170d07402b7e",
"c7f9c61ffeacd0f8282eecb97d5021932bdecf397a63c5e117b53f81b1bdd01b"
],
"workflow": "pr-sous-chef"
}
|
…uce-runs-without-terminal-safe-output Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: gh-aw-bot <[email protected]>
|
🎉 This pull request is included in a new release. Release: |

Some workflows finish without recording a terminal safe output, leaving completion unconfirmed. Failure reports should distinguish a missing signal from explicitly incomplete work.
Terminal outcome guidance
noopfor completed work requiring no action; usereport_incompletefor blockers.Failure classification