Require explicit safe-output completion in Code Simplifier workflow#37489
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Debug Code Simplifier workflow failure
Require explicit safe-output completion in Code Simplifier workflow
Jun 7, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR tightens the Code Simplifier agent’s completion contract to ensure every successful run emits an explicit safe-output signal (instead of sometimes ending with plain text and producing “no output generated”).
Changes:
- Replaced ambiguous “exit with …” terminal instructions with explicit
noopsafe-output tool calls for the two “no action” paths. - Added a strict output requirement: the agent must finish by calling exactly one safe-output tool (
noop,create_pull_request, orreport_incompletedepending on outcome). - Regenerated the compiled workflow artifact (
code-simplifier.lock.yml) to reflect the updated prompt body.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/code-simplifier.md | Updates terminal-path instructions to require explicit safe-output tool completion (noop/create_pull_request/report_incomplete). |
| .github/workflows/code-simplifier.lock.yml | Updates compiled metadata (body hash) to match the prompt changes. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 0
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.
Code Simplifier can complete with a successful agent job but no safe outputs, which leaves runs in a non-actionable “no output generated” state. This change tightens the workflow prompt so terminal paths always emit an explicit safe-output signal.
Prompt completion contract
nooptool calls for both:Terminal action matrix
noop(no recent code changes)noop(no simplifications needed)create_pull_request(validated meaningful simplifications)report_incomplete(infrastructure/tooling blockers)Compiled workflow artifact update
code-simplifier.lock.ymlmetadata to reflect the updated prompt body.