Skip to content

finale: gh pr checks misinterpreted when checks await conflict resolution #291

Closed

Description

@jflowers

Summary

During /finale execution on PR unbound-force/gaze#169, the gh pr checks --watch command returned no checks reported. The agent incorrectly interpreted this as "no CI checks are configured" and fabricated a plausible but wrong explanation about fork security restrictions. In reality, the checks were configured and expected (4 required checks visible on the PR page), but GitHub was waiting for a merge conflict in CLAUDE.md to be resolved before queuing them.

Current behavior

  1. /finale step 6 runs gh pr checks <number> --watch
  2. The command returns no checks reported
  3. The agent accepts this at face value, reports "no CI checks configured," and proceeds to step 7 (return to main)
  4. A merge conflict silently blocks CI, and the user discovers it manually on the GitHub PR page

Expected behavior

When gh pr checks returns no checks reported, the agent should investigate why before concluding checks don't exist:

  1. Check PR mergeability: Run gh pr view <number> --json mergeable,mergeStateStatus to detect merge conflicts
  2. Cross-reference workflow files: The agent already read .github/workflows/test.yml during implementation (it derives CI commands from workflow files). If workflows exist with pull_request triggers, "no checks reported" is anomalous and should not be silently accepted
  3. Report the actual blocker: If a merge conflict is detected, report it and offer to rebase rather than skipping to the summary

Root cause

The /finale command instructions don't account for the case where checks exist but haven't started. The gh pr checks CLI conflates "no runs exist yet" with "no checks are configured," and the agent didn't have guidance to distinguish the two.

Suggested fix

Update /finale step 6 to add a conflict/mergeability check before or after gh pr checks:

# Check if PR has merge conflicts blocking checks
gh pr view <number> --json mergeable,mergeStateStatus

If mergeable is CONFLICTING, the agent should:

  • Report which files conflict
  • Offer to rebase the branch onto the target branch
  • Re-push and re-check

Context

Activity

  1. self-assigned this
    on Jul 1, 2026
  2. moved this from Ready 🚀 to In Progress 📋 in Unbound Force Planningon Jul 1, 2026
  3. moved this from In Progress 📋 to Done ✔️ in Unbound Force Planningon Jul 6, 2026
  4. moved this from Done ✔️ to In Progress 📋 in Unbound Force Planningon Jul 6, 2026
  5. added a commit that references this issue on Jul 7, 2026
    4bb0675
  6. moved this from In Progress 📋 to Done ✔️ in Unbound Force Planningon Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions