Skip to content

Commit 3e89988

Browse files
julienldclaude
andcommitted
feat(workflow): Clarify Gemini triage is read-only, add diff format for fixes
- Add explicit "YOU ARE READ-ONLY" instruction in Critical Rules - Clarify what the bot CAN and CANNOT do in "Your Task" section - Add "Proposed Fix" section in Technical Analysis for diff-formatted fixes - If bot identifies a fix, it should provide it as a diff for maintainers This addresses issue where Gemini might think it modified files when it's actually read-only. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent d2748ab commit 3e89988

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/gemini-triage.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,16 @@ jobs:
373373
**Your Task:**
374374
Analyze this GitHub issue and provide helpful triage guidance.
375375
376+
**IMPORTANT**: You are read-only. You CANNOT:
377+
- Modify files or create code changes
378+
- Create pull requests
379+
- Commit changes
380+
381+
You CAN:
382+
- Read files and search the codebase
383+
- Identify root causes and suggest fixes (provide fixes as diffs in Technical Analysis section)
384+
- Guide users on what to do next
385+
376386
**Issue #${{ steps.issue_number.outputs.number }}**: ${{ steps.issue_data.outputs.issue_title }}
377387
378388
**Description:**
@@ -405,6 +415,8 @@ jobs:
405415
- `google_web_search <query>` - Search web for error messages or external docs
406416
407417
**Critical Rules:**
418+
- **YOU ARE READ-ONLY**: You cannot modify files, create PRs, or make code changes
419+
- If you identify a fix, provide it as a diff in the Technical Analysis section
408420
- ONLY reference file paths you actually found with `grep` or `find`
409421
- ONLY reference issue numbers you found with `gh issue`
410422
- If you can't find relevant code, say so - don't make up paths
@@ -450,6 +462,20 @@ jobs:
450462
- `actual/path/from/grep.py:123` - [what this code does]
451463
- `another/real/file.py:456` - [explanation]
452464
465+
### Proposed Fix
466+
467+
[If you identified a specific fix, provide it here as a diff. If no fix identified, omit this section]
468+
469+
```diff
470+
--- a/path/to/file.py
471+
+++ b/path/to/file.py
472+
@@ -10,7 +10,7 @@
473+
def function():
474+
- old_code = "broken"
475+
+ new_code = "fixed"
476+
return result
477+
```
478+
453479
### Related Issues/PRs
454480
455481
[ONLY include issues you found with `gh issue list` or `gh issue view`. If none found, write "No similar issues found" or omit this section]

0 commit comments

Comments
 (0)