Skip to content

Give the capture the subscription and fallback legs the other Claude lanes have #16193

Description

@kyle-sexton

Outcome

The pr-verify capture stays on pr-verify's API key for both its driver legs and its driven session. What changes: when the key cannot make a capture, the capture records the real cause (a credit stop, an empty key, or the probe leg handing off) instead of one fixed reason, the pull request's verdict shows that the capture was blocked and why, and a credit stop on the key raises an alert.

Owner decisions

  • 2026-11-14: the order for Claude in GitHub Actions is the role's API key, then the lane subscription token, then the fallback token.
  • 2026-11-15 (decision comment on this issue): option A. The capture stays key-only, because giving its driver legs a subscription or fallback token would loosen the capture's credential separation and would still capture nothing while the key is out of credit. This replaces the 2026-11-14 scope (driver legs on the shared chain). The design for the key proxy holding a subscription or fallback token is Design: let the capture's key proxy hold a subscription or fallback token without it reaching the sandbox #16454.

What exists today, at main 8229e58

  • .github/workflows/pr-verify-capture.yml gives the API key only to the key proxy; the driver legs hold a per-run client key and the driven session reaches the API only through the proxy (header "Credential separation").
  • When the key cannot capture, the step "Write the blocked capture" records the same reason in every case, "subscription token cannot go behind the proxy (R41)", whether the key was empty, out of credit, or its probe leg handed off.
  • A blocked capture fails no check, so nothing shows it on the pull request. In a sample of 21 driven runs on 2026-11-13 and 2026-11-14, 5 ended blocked.

Constraint

The credential separation is a security control: the pull request's code must never run beside a real credential. A design that puts a subscription or fallback token within reach of pull request code is not acceptable; the owner decides any change to that boundary.

Done when

  • A capture the key cannot make records its cause as one of credit stop, empty key, or probe handoff, each with its own reason text, and the fixed "subscription token cannot go behind the proxy" reason is gone.
  • The verdict on the pull request names a blocked capture and the cause the capture recorded.
  • A credit stop on the capture's key raises an alert that names the key's role and the run that hit it.
  • Both the driver legs and the driven session still run only on the key proxy's client key, and the existing credential probes still pass.

Related

Activity

  1. added
    needs-human
    on Nov 14, 2026
  2. kyle-sexton commented on Nov 14, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. Owner, 2026-11-14, to the question restated in full: "As far as question 40, go with recommendations."

    The capture's driver legs take the full shared chain (the role's API key, then its subscription token, then the central fallback token, through select-model-credential and run-claude-cli as the other lanes do). The driven session, which runs the pull request's own code, stays behind the key proxy and key-only until a design shows the proxy can hold a subscription token without it reaching the sandbox.

    Not chosen: extending the proxy to substitute subscription and fallback tokens now; leaving the capture as is.

    Open for the build: whether a driver leg on a subscription token can still drive a key-only sandboxed session, and what the capture records when the key is out of credit and only the driver can run. The existing credential probes must still pass.

  3. github-actions commented on Nov 14, 2026

    @github-actions
    Contributor

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

    Decision recorded (newest, option A):

    Decision recorded. Owner, 2026-11-15, in session: "go w/ recommendations", to this question restated in full:

    What should #16193 build, given the 2026-11-14 scope (driver legs on the shared chain, driven session key-only) cannot run a capture while the key is out of credit? A (recommended): keep both legs key-only; record the real cause when the key cannot capture (credit stop, empty key, probe handoff) and show a blocked capture on the pull request's verdict; rewrite done-when item 2; file the proxy-holds-a-subscription-token design as its own issue; add an alert on the key's credit stop. B: build the 2026-11-14 scope. C: the key proxy holds and substitutes the subscription or fallback token. D: a cost route alongside any option.

    Option A. It replaces the 2026-11-14 scope, which cannot be built without loosening the capture's credential separation.

    Link: #16193 (comment)

    That decision settles the open questions. The work is now key-only: record the real cause of a blocked capture (credit stop, empty key, probe handoff), show it on the pull request's verdict, and alert on a key credit stop. It adds no new charge, since the capture stays on the existing API key. The earlier cost hold came from the word "subscription" in the title, which no longer describes the work. The proxy-held subscription token design is tracked in #16454. I found no merged pull request that already covers this.

    Automated triage. A maintainer reviews it.

  4. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

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

    needs-owner-decision came off: this run's triage applied it with no intent, security or cost flag, and only a flag stops for a person: admission routes a capability limit (a host run, a paid eval), and the issue lane decides a choice of means.

  5. kyle-sexton commented on Nov 15, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. Owner, 2026-11-15, in session: "go w/ recommendations", to this question restated in full:

    What should #16193 build, given the 2026-11-14 scope (driver legs on the shared chain, driven session key-only) cannot run a capture while the key is out of credit? A (recommended): keep both legs key-only; record the real cause when the key cannot capture (credit stop, empty key, probe handoff) and show a blocked capture on the pull request's verdict; rewrite done-when item 2; file the proxy-holds-a-subscription-token design as its own issue; add an alert on the key's credit stop. B: build the 2026-11-14 scope. C: the key proxy holds and substitutes the subscription or fallback token. D: a cost route alongside any option.

    Option A. It replaces the 2026-11-14 scope, which cannot be built without loosening the capture's credential separation:

    • The driver legs are inside the separation: the capture job holds only pr-verify's API key, and the driver legs hold a per-run client key and reach the API only through the key proxy (.github/workflows/pr-verify-capture.yml:21-27). A subscription or fallback leg is an OAuth token, which would sit in a driver process in the job that holds the pull request's head checkout.
    • It would also capture nothing while the key is out of credit: every drive starts a driven session, the proxy substitutes only the one API key, and the workflow already records why "a subscription token cannot go behind the key proxy, so no second leg could capture" (.github/workflows/pr-verify-capture.yml:44-46).

    The body now states the decided scope and its done-when. The design for the key proxy holding a subscription or fallback token is a separate issue, linked from the body under Related.

  6. added
    host-run
    and removed
    needs-human
    on Nov 15, 2026
  7. github-actions commented on Nov 15, 2026

    @github-actions
    Contributor

    A listed human released the issue's Work status hold, so it goes back to intake triage.

  8. melodic-automation-lanes commented on Nov 15, 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; it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

    Reason: cost

  9. removed
    host-run
    on Nov 16, 2026
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

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions