Skip to content

fix(fixer-skill): crash-resume reconciliation runs I8's post-merge CI check - #2416

Merged
carlos-alm merged 1 commit into
mainfrom
fix/issue-2249-fixer-crash-resume-i8
Aug 10, 2026
Merged

carlos-alm merged 1 commit into
mainfrom
fix/issue-2249-fixer-crash-resume-i8

Conversation

@carlos-alm

Copy link
Copy Markdown
Contributor

Summary

  • The sub-agent dispatch validation/reconciliation block in .claude/skills/fixer/SKILL.md 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.
  • Also updated I8's own definition and the closing "Rules" recap to name this third coverage site, so the doc stays internally consistent.

Test plan

  • bash -n syntax-checked the full expanded reconciliation block
  • Manually traced the control flow (RECONCILE only set to merged after the check passes or a rerun confirms transient; a hard failure exit 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

… 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
@greptile-apps

greptile-apps Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR closes the crash-resume gap that previously allowed a merged issue to advance without verifying the merge commit’s push-triggered CI run.

  • Adds the I8 post-merge CI lookup, watch, and transient-failure rerun flow to the reconciliation MERGED branch.
  • Cleans up reconciliation-specific current-pr state on both successful and failed verification.
  • Updates the I8 invariant and rules recap to document all three enforcement sites.

Confidence Score: 5/5

The 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

Filename Overview
.claude/skills/fixer/SKILL.md Adds the missing post-merge CI verification to merged-PR crash reconciliation while preserving queue advancement and scratch-state cleanup safeguards.

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]
Loading

Reviews (1): Last reviewed commit: "fix(fixer-skill): crash-resume reconcili..." | Re-trigger Greptile

@carlos-alm
carlos-alm merged commit aec74f5 into main Aug 10, 2026
27 checks passed
@carlos-alm
carlos-alm deleted the fix/issue-2249-fixer-crash-resume-i8 branch August 10, 2026 02:51
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fixer: crash-resume reconciliation path skips the I8 post-merge CI check

1 participant