claude exits rc=1 at finalization on igor#334 — work abandoned on two consecutive ticks #342
Labels
No labels
Agent
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
1 participant
Notifications
Total time spent: 58 seconds
Due date
igor
58 seconds
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor#342
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Diagnosis
The claude subprocess crashed with
rc=1on two back-to-back ticks working issuejoshtronic/igor#334, each after ~10 minutes of apparently-complete work (edits done,make test/check-syncgreen, lint skipped,/security-reviewrun). Both crashes land at the finalization phase (just before/at PR-body write), so ship-safety correctly refuses to commit the dirty worktree and re-queues — but the net effect is repeated wasted full-length runs with no PR shipped. A third attempt on the same issue (MVP variant) was still in flight at window close (00:59:44→), so this is not self-healed within the hour.This is a real crash, not a timeout (elapsed 598s/607s « 30m cap) and not an auth/usage backoff. The
fix(observability): preserve claude's stream on a nonzero exitcommit explains thestream preservedline but does not address the rc=1 exit itself; crash-logs at.../crash-logs/20260704T002440-rc1-tier-1-issueand...T003940-rc1-tier-1-issueare the post-mortem artifacts.Evidence
Fixed looks like
Inspect the two preserved crash streams to identify what fails at finalization (PR-body write / security-review skill teardown). Either the underlying rc=1 stops recurring, or #334 ships a PR on retry instead of repeatedly re-queuing. A
blocked (repeated noop)on the same issue across consecutive ticks should not silently keep burning full-length runs.service: agent.service
severity: medium
window: 2026-07-04 00:00-01:00 (filed by the hourly logwatch pass)
Closing as superseded noise (CoS cleanup). This auto-filed report describes the 50-turn cap discarding completed work — the exact failure now fixed by the hardcoded
--max-turns 100in #344, and #334 itself shipped as MVP #341 (merged). Root cause owned by #344; no separate action here.