Repository navigation
fix(finale): add mergeability gate when CI checks are not reported - #320
Merged
em-redhat merged 3 commits intoJul 7, 2026
Merged
Conversation
- Add step 6a: query PR mergeability via gh pr view when gh pr checks returns "no checks reported" - Add step 6b: conflict recovery options (rebase, manual resolve, continue with warning) - Add step 6c: workflow file cross-reference to distinguish "no CI" from "checks blocked" - Update step 8 summary to warn when CI was skipped - Sync scaffold asset to match source - Add OpenSpec change artifacts (proposal, design, specs, tasks) Fixes unbound-force#291 Assisted-by: claude-opus Generated with AI assistance (claude-opus)
em-redhat
requested review from
marcusburghardt,
trevor-vaughan and
yvonnedevlinrh
July 1, 2026 11:09
trevor-vaughan
requested changes
Jul 1, 2026
…r-vaughan - Use dynamic target branch resolution instead of hardcoded origin/main (respects fork detection and PR baseRefName) - Add merge-based conflict resolution option that avoids force push for restricted environments - Require explicit user confirmation before executing rebase or merge operations - Replace gh pr checks --watch with bash poll loop after conflict resolution to avoid wasting tokens - Move force-push and rebase mandates to Guardrails section for stronger instruction adherence - Update FR-002 spec to reflect 4-option recovery flow and dynamic branch resolution Assisted-by: claude-opus Generated with AI assistance (claude-opus)
em-redhat
added a commit
that referenced
this pull request
Jul 6, 2026
- Add option 5 to step 6b conflict recovery menu: spawn cobalt-crush-dev sub-agent for AI-assisted resolution - Include mergeability gate (6a), conflict recovery (6b), and workflow cross-reference (6c) from PR #320 baseline - Add user approval gate, failure handling with merge abort, and post-resolution CI polling - Add guardrails for force push safety and sub-agent approval - Sync embedded scaffold asset - Create OpenSpec change artifacts (proposal, design, specs, tasks) Closes #325 Assisted-by: claude-opus-4 Generated with AI assistance (claude-opus-4)
…ergeability # Conflicts: # .opencode/commands/finale.md # internal/scaffold/assets/opencode/commands/finale.md
jflowers
added a commit
to jflowers/unbound-force
that referenced
this pull request
Oct 24, 2026
…sync docs record Council iteration 2 advisories: add the missing uf_finale_base_state terminal-write hygiene test (ninth tool in the Requirement 1 suite), record the DE-007 layer-3 round-trip N/A on task 3.2, correct the D8 cross-reference enumeration to twelve sibling changes (grep widened to pre-rename `/finale` spellings and step-count phrasings), state the absent-sync-base-checkpoint fallback in step 4, and sync the user-facing record (usage.md, CHANGELOG, gate issues unbound-force#810/unbound-force#320) to the both-codes base-state soft gate. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
jflowers
added a commit
that referenced
this pull request
Oct 24, 2026
…sync docs record Council iteration 2 advisories: add the missing uf_finale_base_state terminal-write hygiene test (ninth tool in the Requirement 1 suite), record the DE-007 layer-3 round-trip N/A on task 3.2, correct the D8 cross-reference enumeration to twelve sibling changes (grep widened to pre-rename `/finale` spellings and step-count phrasings), state the absent-sync-base-checkpoint fallback in step 4, and sync the user-facing record (usage.md, CHANGELOG, gate issues #810/#320) to the both-codes base-state soft gate. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
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
When
/finalerunsgh pr checks --watchand gets "no checksreported," it currently accepts this at face value and proceeds
to the summary step. This is incorrect when a merge conflict is
blocking CI from starting -- the agent fabricates a plausible
but wrong explanation instead of surfacing the actual blocker.
This change adds a mergeability gate to
/finalestep 6 thatinvestigates why no checks were reported before drawing
conclusions:
gh pr view --json mergeable,mergeStateStatusto detect merge conflicts,unknown state, or confirmed mergeability
offers three options: rebase and re-push, stop for manual
resolution, or continue with explicit warning
checks ran, cross-references
.github/workflows/todistinguish "no CI configured" from "checks blocked by
other causes"
conflict
Fixes #291
How to Test
.opencode/commands/finale.mdand verify steps6a/6b/6c exist with the documented behavior
go test -race -count=1 ./...-- all packages pass,including scaffold drift detection
/finale-- the agent should detect the conflict and offer recovery
options
How to Demo
conflicts with
main(e.g., edit the same line in a sharedfile on both branches)
/finalepresents three recovery options instead of silently
proceeding
Key Files Changed
.opencode/commands/finale.md-- Added steps 6a/6b/6c(mergeability gate, conflict recovery, workflow
cross-reference) and step 8 conflict warning
internal/scaffold/assets/opencode/commands/finale.md--Synced scaffold asset
openspec/changes/finale-check-mergeability/-- Changeartifacts (proposal, design, specs, tasks)
This PR was generated by /finale (AI-assisted).