fix: persist pre_fix_sha, add agent output limit, fix crash bugs#75
Merged
fix: persist pre_fix_sha, add agent output limit, fix crash bugs#75
Conversation
- Issue #23: Persist pre_fix_sha to DB for crash recovery (schema v7) - Issue #22: Add max_output_bytes config to cap agent output capture - Issue #73: Fix 5 high-severity crash bugs at system boundaries - config.py: handle malformed JSON config files - github_api.py: handle JSON parse errors in get_issue/get_pr_description - cli.py: catch GitHubAPIError in cmd_start --issue - cli.py: catch PermissionError when reading prompt files Closes #22, Closes #23, Closes #73
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.
Summary
Addresses three issues in one PR: crash-resilient SHA persistence (#23), agent output OOM prevention (#22), and five high-severity crash bugs at system boundaries (#73).
Changes
Issue #23 — Persist pre_fix_sha for crash recovery
Before: If orchestrator crashed between FIX and VERIFY_PUSH, pre_fix_sha was lost. On resume, new_sha != None was always True — incorrectly passing verification.
Issue #22 — Agent output size limit (max_output_bytes)
Before: A runaway agent printing large output could fill RAM with no cap on the StringIO buffer.
Issue #73 — High-severity crash bug fixes
Tests Added (12 new)
Verification
Closes #22, Closes #23, Closes #73
🤖 autopilot-loop