Prevent empty issue creation in Smoke OTEL Backends#32607
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Hardens the Smoke OTEL Backends workflow prompt to prevent creating an effectively empty GitHub issue when only a single create_issue safe output is allowed.
Changes:
- Adds explicit instructions to draft the full issue body before emitting any
create_issuesafe output. - Forbids placeholder/empty issue bodies and forbids retrying
create_issuewithin the workflow.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/smoke-otel-backends.md | Tightens the Output instructions to ensure the single allowed issue creation contains the complete failure report. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 0
|
@copilot Recompile workflow |
I recompiled this workflow locally on |
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnose — this is a targeted bug fix to prevent the agent from wasting its single create_issue budget on a placeholder body before the analysis is complete.
What the fix does
The three new lines in the ## Output section directly address the root cause: the agent was allowed to call create_issue at any point during execution, so it used the call early with a stub body (-), exhausting the create-issue.max: 1 budget and leaving operators without the intended failure report.
The prompt now:
- Requires the body to be drafted locally first before emitting the safe output.
- Explicitly forbids placeholder / empty / partial bodies.
- Explicitly forbids retrying
create_issue.
Positive Highlights
- ✅ Root cause addressed, not just the symptom — the constraint is placed at the call site (the output instruction block) rather than wrapping it in a workaround elsewhere.
- ✅ Minimal, surgical diff — 3 lines, no unrelated churn.
- ✅ Good placement — the new rules appear at the top of the
## Outputsection, so the agent reads them before encountering thecreate_issueinvocation details. - ✅ Well-documented PR — the body clearly explains the failure mode, the offending run ID, and the operational impact.
One observation
Per the /diagnose post-fix checklist: "what would have prevented this bug?" — the underlying architectural pattern (prompt-level budget enforcement with no structural barrier to early calls) will recur in other workflows. A short note in the workflow authoring docs (e.g. DEVGUIDE.md or scratchpad/) about the "draft-locally-first" pattern for single-budget safe outputs could prevent the same class of failure in future workflows.
This is not a blocker — the fix is correct and ready to merge.
Verdict
✅ Approve — the fix is correct, targeted, and well-explained.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · ● 2.7M
The Smoke OTEL workflow produced actionable failure analysis for run
25959980159, but issue#32604was left effectively empty because the agent spent its single allowedcreate_issuecall on a placeholder body. This change tightens the workflow prompt so the report is emitted once, only after the full analysis is assembled.Problem
-), which exhausted thecreate-issue.max: 1budget.Prompt hardening
create_issuesafe output after the report is complete.create_issuewithin this workflow.Operational impact