Repository navigation
fix(fixer-skill): crash-resume reconciliation runs I8's post-merge CI check - #2416
Merged
Merged
Conversation
… check The sub-agent dispatch validation/reconciliation block handled a sub-agent that crashed between gh pr merge (2f) and state.json's write (2g) by reconciling state.json directly with no retry, but never ran I8's post-merge CI check on the way there. A crash landing in exactly that window silently skipped I8 on resume: the run advanced to the next issue's branch without ever confirming main's post-merge CI run for that merge came back green. Adapts 2f-bis's check inline (rather than referencing it the way Phase: Drain Parked PRs does) since this whole reconciliation must stay one continuous bash invocation to keep every value in scope across the decision — 2f-bis's own two-block split doesn't apply here. docs check acknowledged: skill-procedure fix only, no src/ language or architecture change. Closes #2249
Contributor
Greptile SummaryThe PR closes the crash-resume gap that previously allowed a merged issue to advance without verifying the merge commit’s push-triggered CI run.
Confidence Score: 5/5The PR appears safe to merge, with the resumed merged-PR path now enforcing the same post-merge CI requirement as the normal and parked-PR flows. The added branch identifies CI by the reconciled PR’s merge SHA, blocks reconciliation until CI succeeds or a failed-job rerun succeeds, exits before setting the merged verdict on unresolved failure, and cleans its temporary PR state. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Resume after sub-agent failure] --> B{Existing PR state}
B -->|MERGED| C[Read merge commit SHA]
C --> D[Find matching CI run on main]
D --> E[Watch run to completion]
E --> F{Conclusion}
F -->|success| G[Record issue as merged]
F -->|failure| H[Rerun failed jobs]
H --> I{Rerun succeeds?}
I -->|yes| G
I -->|no| J[Stop without advancing queue]
Reviews (1): Last reviewed commit: "fix(fixer-skill): crash-resume reconcili..." | Re-trigger Greptile |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
.claude/skills/fixer/SKILL.mdhandled a sub-agent that crashed betweengh pr merge(2f) andstate.json's write (2g) by reconcilingstate.jsondirectly with no retry, but never ran I8's post-merge CI check on the way there.main's post-merge CI run for that merge came back green.Test plan
bash -nsyntax-checked the full expanded reconciliation blockmergedafter the check passes or a rerun confirms transient; a hard failureexit 1s before RECONCILE is ever set, so the queue never advances past an unverified/red post-merge state)This is a skill-procedure fix (
.claude/skills/fixer/SKILL.md), not application code — no build/lint/test suite applies.Closes #2249