Skip to content

qa: verdict lands as NEEDS_VERIFICATION with 'CI pending' as the only gap because /qa runs before the PR's checks finish #1630

Open

Description

@admarble

What happens

/qa runs as soon as exec finishes, while the PR's CI checks are still queued or in progress. When every acceptance criterion is met locally, the verdict still lands as NEEDS_VERIFICATION with "CI pending" as the only gap, and the issue gets the needs-verification label. The coordinator then has to read the verdict to learn there is no code gap, wait for CI by hand, and either re-run /qa (another phase, about $1 to $2 and 2 to 3 minutes) or merge on the earlier review.

Where it was seen (sequant 2.20.0, admarble/matcha-maps, concurrency 1, --phases exec,qa)

Issue PR QA finished Verdict Only AC gap
#943 #1186 2026-10-16 NEEDS_VERIFICATION browser check + CI
#929 #1220 2026-11-02, 3 m 9 s after exec NEEDS_VERIFICATION "Run Tests and Lint & Type Check ... still pending"
#1101 #1221 2026-11-02, 70 s after exec NEEDS_VERIFICATION "Run Tests and Lint & Type Check were still running"
#928 #1222 2026-11-02, 2 m after exec NEEDS_VERIFICATION "Lint & Type Check and Run Tests IN_PROGRESS"

In the last three the QA gap JSON carried {"category":"execution_gap","evidence":"gh pr checks ...: ... IN_PROGRESS","recommendedAction":"pause_for_human"}. All three PRs went CLEAN within 15 to 30 minutes and merged without a code change.

Ask

One of:

  1. The qa phase waits for the PR's checks before emitting the verdict, bounded by --auto-wait or a phases.qa.waitForChecks setting, so the verdict reflects CI.
  2. Or the verdict distinguishes "CI pending, no code gap" from "needs a human", for example a CI_PENDING status or an execution_gap that the orchestrator resolves itself by polling mergeStateStatus and then upgrading the verdict without a second QA run.

Either saves a QA re-run per issue and keeps needs-verification for cases that need a person.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions