Skip to content

Commit abe12b3

Browse files
authored
Merge pull request #16 from JackTreble/copilot/debug-workflow-failure
fix(researcher): always emit a safe output when no opportunities found
2 parents e3cc3c5 + 6c93b9c commit abe12b3

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/researcher.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ From the shortlist, keep only candidates that are:
7070
- Simple enough to explain and scope quickly
7171

7272
Select an **appropriate number** of issue-worthy opportunities using this rule:
73-
- Create **0 issues** if no candidates survive validation
73+
- Create **0 issues** if no candidates survive validation — but you **must** still call `noop` (see Step 6)
7474
- Create **1 issue** if only one candidate is high-confidence
7575
- Create **2 issues** if two strong, clearly distinct opportunities survive
7676
- Create **3 issues** if three strong, clearly distinct opportunities survive
@@ -103,6 +103,17 @@ Use the `create-issue` safe-output only after discovery filtering and `/speckit.
103103
Create one issue per validated opportunity.
104104
Only create issues for candidates that are not already represented in `/specs/**`, open issues, or closed issues.
105105

106+
### Step 6 — Always produce a safe output
107+
You **must** always call at least one safe-output tool before finishing.
108+
109+
- If you created **1 or more issues**, no additional action is needed — the `create-issue` calls are your safe outputs.
110+
- If you created **0 issues**, you **must** call `noop` with a brief explanation that covers:
111+
- How many candidates you discovered
112+
- Why each was rejected (already exists in specs, already proposed in issues, not browser-viable, etc.)
113+
- A one-sentence summary of the current state (e.g., "All viable opportunities from this pass are already tracked")
114+
115+
This ensures every run produces visible output even when no new opportunities are found.
116+
106117
## Proposal Requirements
107118
- **Title:** [PROPOSAL] - [Tool Name]
108119
- **Body:**

0 commit comments

Comments
 (0)