Skip to content

Commit 31bb757

Browse files
joseph-isaacsclaude
andcommitted
feat(workflows): include all code inline in fuzzer fix comments
Update the fuzzer fix automation prompt to ensure Claude includes ALL relevant code inline in issue comments: - After analysis: Include the problematic code section - After fix: Include the COMPLETE changed code (entire function) - After tests: Include the COMPLETE test code inline - For unfixable issues: Include problematic code with suggestions This makes the automated fix work fully reviewable directly from the GitHub issue without needing to check out the code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent fd66164 commit 31bb757

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

.github/workflows/fuzzer-fix-automation.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,11 @@ jobs:
277277
## Important - Progressive Updates
278278
279279
- **Post comments frequently** as you make progress using `gh issue comment`
280-
- After analyzing the crash, post what you found before starting the fix
281-
- After implementing the fix, post what files were changed before testing
282-
- After writing tests, post the final summary
283-
- This ensures your work is visible even if you hit the turn limit
280+
- **CRITICAL**: Include ALL relevant code inline in your comments in code blocks
281+
- After analyzing the crash, post what you found WITH the problematic code section
282+
- After implementing the fix, post the COMPLETE changed code (entire function/section)
283+
- After writing tests, post the COMPLETE test code inline
284+
- This ensures your work is visible and reviewable even if you hit the turn limit
284285
- Keep fixes minimal - only fix the specific bug
285286
- Follow CLAUDE.md code style guidelines
286287
- **Use `--dev` flag** for faster builds: `cargo +nightly fuzz run --dev --sanitizer=none`
@@ -305,6 +306,11 @@ jobs:
305306
306307
**Crash Location**: `file.rs:function_name`
307308
309+
**Relevant Code** (from crash location):
310+
\`\`\`rust
311+
[Include the problematic code section from the crash location - show enough context]
312+
\`\`\`
313+
308314
**Next Step**: [Attempting fix | Needs human review because...]
309315
```
310316
@@ -316,6 +322,11 @@ jobs:
316322
317323
**Changes**: [Brief description of what was changed]
318324
325+
**Complete Code Changes**:
326+
\`\`\`rust
327+
[Include ALL the changed code - the entire function or section that was modified]
328+
\`\`\`
329+
319330
**Next Step**: Writing regression test...
320331
```
321332
@@ -328,7 +339,17 @@ jobs:
328339
**Files Modified**:
329340
- `path/to/file.rs`
330341
331-
**Test**: `test_name` - [Pass/Fail status]
342+
**Complete Fix**:
343+
\`\`\`rust
344+
[Include the complete fixed code again for easy review]
345+
\`\`\`
346+
347+
**Regression Test**:
348+
\`\`\`rust
349+
[Include the complete test code inline]
350+
\`\`\`
351+
352+
**Test Result**: [Pass/Fail status with output]
332353
333354
**Note**: This is an automated fix - please review carefully before merging.
334355
```
@@ -339,9 +360,14 @@ jobs:
339360
340361
**Root Cause**: [Analysis]
341362
363+
**Problematic Code**:
364+
\`\`\`rust
365+
[Show the problematic code section]
366+
\`\`\`
367+
342368
**Why Manual Fix Required**: [Reason]
343369
344-
**Suggested Approach**: [Recommendation]
370+
**Suggested Approach**: [Recommendation with code snippets if possible]
345371
```
346372
claude_args: |
347373
--model claude-opus-4-20250514

0 commit comments

Comments
 (0)