Skip to content

source-control: non-author verifier workflow and pr-merge verdict reader #7702

Description

@kyle-sexton

Parent

Refs #7570 (thread: Merge authority and verifier), epic #7555. Source: PLAN Phase 9, slice
verifier-and-merge-lane. Design: Q607, Q617-Q620 (GUIDE 130). Prerequisite #7696 merged.

Outcome

A non-author agent judges each PR head that passes PR Require Checks and leaves a verdict that only
a run of the main-branch verifier workflow can produce; pr-merge reads it and refuses a merge
without a passing verdict at the head it merges. The verdict stays out of ci-status and required
checks (github-iac ADR 0011), so a human merge needs ci-status only. report-only stays true.

Scope

  • New .github/workflows/pr-verify.yml: workflow_run (completed, success) of PR Require Checks
    only; no workflow_dispatch; scripts from the default-branch tip only; PR content read at the
    pinned workflow_run.head_sha and never executed in this slice. Concurrency group
    pr-verify-<pr>-<head_sha> with no cancelling (a cancel could erase a FAIL), never shared with pr-merge; pr-merge.yml gains no
    workflow_run trigger (fix(pr-pipeline): stop pr-merge's workflow_run wake-ups from overflowing its queue #7634).
  • The job uploads an artifact named pr-verify-<pr>-<headsha>-<pass|pass-notes|fail>, the head SHA
    taken from the workflow_run payload, never the PR's live head; the base SHA is recorded inside.
  • pr-merge verdict reader in the --authority pr-merge path, tests first: accepts only an artifact
    whose run is .github/workflows/pr-verify.yml, event workflow_run, branch main, conclusion
    success, run head on main, and whose named SHA equals the PR's current head. FAIL blocks; a
    verdict for another SHA does not count; a FAIL on any earlier head routes to a human; Dependabot
    ignores the verdict. Queued entries are re-checked each run and dequeued on mismatch.

Out of scope

Done when

  • The verdict reader's tests pass and cover a fail verdict, a stale SHA, an earlier-head FAIL
    and Dependabot.
  • pr-verify.yml passes actionlint and the repo's workflow checks; it has no workflow_dispatch.
  • A recorded pr-verify run on a real PR uploads a correctly named artifact, and a pr-merge
    report-only run reads it.

Related

Activity

  1. added
    needs-triage
    on Oct 17, 2026
  2. github-actions commented on Oct 17, 2026

    @github-actions
    Contributor

    Thanks for the report. Automated triage handed this issue to a maintainer.

    Proposed work class: work-class: structural
    Basis: automated intake triage; a maintainer confirms or changes it.

    Automated triage. A maintainer reviews it.

  3. added
    needs-human
    and removed
    needs-triage
    on Oct 17, 2026
  4. kyle-sexton commented on Oct 17, 2026

    @kyle-sexton
    MemberAuthor

    Live check, first half: after #7704 merged (48c6365), pr-verify run 39005254003 judged PR 7698 at da3ad38 and uploaded pr-verify-7698-da3ad3854241e14d57e615f28a70b194007011dd-fail. The verdict records base 48c6365 and head_ref feat/review-dependency-activity. The FAIL follows the rule: that PR links no issue, so it has no trusted spec. Earlier run 39004989169 skipped a draft PR as designed. Still open: a report-only pr-merge run reading a verdict. pr-merge considers only lane-authored PRs, so this waits for the next lane PR.

  5. kyle-sexton commented on Oct 17, 2026

    @kyle-sexton
    MemberAuthor

    Done-when 3 met: pr-merge merged a lane-authored PR unattended on its pr-verify verdict. #7798 (issue-lane build for #7761) was merged by melodic-automation-lanes[bot] at 2026-10-17T23:22:17Z (merge commit c3ad6c7), with merge.report-only: false (#7773) and the verdict criterion (#7725).

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

    needs-human

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions