Repository navigation
Description
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
/finalestep 6 runsgh pr checks <number> --watch- The command returns
no checks reported - The agent accepts this at face value, reports "no CI checks configured," and proceeds to step 7 (return to main)
- 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:
- Check PR mergeability: Run
gh pr view <number> --json mergeable,mergeStateStatusto detect merge conflicts - Cross-reference workflow files: The agent already read
.github/workflows/test.ymlduring implementation (it derives CI commands from workflow files). If workflows exist withpull_requesttriggers, "no checks reported" is anomalous and should not be silently accepted - 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,mergeStateStatusIf 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
- PR: fix: evaluate GazeCRAP in baseline new-function threshold (#164) gaze#169 (039-baseline-gazecrap-threshold)
- The conflict was in
CLAUDE.md, introduced by the/speckit.planagent context update step - Resolved by rebasing onto
upstream/mainand force-pushing
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone ✔️
Activity
fix(finale): add mergeability gate when CI checks are not reported