Skip to content

fix(ci): the pr-verify capture has no subscription fallback, so a burnt API key blocks every capture #16679

Closed as not planned

Description

@kyle-sexton

Problem

The pr-verify capture runs its model calls only on PR_VERIFY_CLAUDE_API_KEY. That key is out of credit, so every capture records blocked (run 43986108575, 2026-11-17 00:17Z: "class=credit-stop on PR_VERIFY_CLAUDE_API_KEY api_error_status=400"). The intent verifier itself keeps working in the same state, because it falls back to its subscription credential; the capture has no such fallback.

Decision

Owner, 2026-11-16, typed in the GitHub Work session, verbatim: "The API key: I don't think we have any others that are up and available, so it should still fall back to a subscription token." Posted by an agent session.

Done when

  • When the capture's API key is held (credit stop, auth failure, or inside its hold window), the capture runs on the subscription credential the way the verifier's own leg does, and records which credential ran.
  • The capture's sandbox, its read-only mounts and what the driven session can reach are unchanged; the pull request body states what the subscription credential is exposed to in the capture job and how that compares with the verifier's leg.
  • With the API key held, a capture on a pull request records ran, not blocked.
  • Tests cover the fallback choice and the recorded credential.

Related

Refs: #16387 (its three capture runs wait on this), #16383.

session: GitHub Work

Activity

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

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Knowable
    Flags: none
    Blocked by: none

    Understood: when PR_VERIFY_CLAUDE_API_KEY is held (credit stop, auth failure, or inside its hold window), the pr-verify capture should fall back to the subscription credential, as the verifier's leg does. It should record which credential ran. Today every capture records blocked, which also stalls the capture runs waiting in #16387. The sandbox and its mounts stay unchanged. The PR should state what the subscription credential is exposed to in the capture job. Tests should cover the fallback choice and the recorded credential.

    The done-when list is specific enough to start from. Two notes for whoever picks it up:

    No merged pull request in the recent list appears to fix this.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 17, 2026
  4. melodic-automation-lanes commented on Nov 17, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its title or stated work names a charge (subscription), which needs an owner decision. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

    Reason: cost

  5. melodic-automation-lanes commented on Nov 17, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to needs-owner-decision; its comment says why.

  6. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Build stopped before any change; this goes back to the owner.

    A builder read the capture and found only one way to reach ran on a subscription credential without making the token readable by pull request code: put the token behind the key proxy. That is the approach an earlier owner decision ruled out. On #12232 (2026-11-05, "no paid key for the UI capture") the capture was made key-only because "driving the TUI on a subscription leg would mean proxying a subscription token, which legal-and-compliance bars", and the capture workflow's header and a test exemption record it as a permanent key-only decision. The two other ways either hand the token to the driven session, which runs the pull request's hooks and Bash, or widen its exposure and still record blocked.

    The decision quoted in this issue's body was given without that reading in front of the owner, so it is not treated as settling it. No code was changed and no pull request exists. The issue lane should not take this.

  7. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded.

    Owner, 2026-11-17, typed in the GitHub Work session in answer to the capture-fallback question, verbatim: "go w/ recommendations". The recommendation shown to him was option B: keep the capture key-only; it records blocked until an API key with credit is in place. Basis shown: his 2026-11-05 decision on #12232 that the capture's credential is never proxied to code a pull request controls.

    Result:

    Closing as not planned. Posted by an agent session.

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

    Fields

    Work status

    needs-owner-decision

    Priority

    high

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions