Skip to content

Design: let the capture's key proxy hold a subscription or fallback token without it reaching the sandbox #16454

Closed as not planned

Description

@kyle-sexton

Problem

The pr-verify capture runs only on pr-verify's API key. When that key is out of credit, no capture runs: the other Claude lanes continue on the role's subscription token and then the central fallback token, but the capture cannot, so its pull requests get a blocked capture instead of a recorded drive.

What #16193 found

  • The capture's credential separation gives the API key to one process, the key proxy, run as its own OS user. The driver legs hold only a per-run client key and reach the API through the proxy's loopback port; the driven Claude Code runs in a sibling sandbox with no secret and reaches the API only through a bridge to the proxy's socket, which puts the key in place of the sandbox's dummy one (.github/workflows/pr-verify-capture.yml, header "Credential separation").
  • A subscription or fallback leg is an OAuth token, not an API key. Giving one to a driver leg would put a real credential in a process in the job that holds the pull request's head checkout, against the step "Check the driver legs hold no real key", and would still capture nothing: every drive starts a driven session, which only the proxy's API key can serve.
  • So the only design that lets a capture run while the key is out of credit is the proxy itself holding the subscription or fallback token and substituting it, with the token never reaching the driver legs or the sandbox. The owner did not choose that on 2026-11-14 and chose instead (2026-11-15, Give the capture the subscription and fallback legs the other Claude lanes have #16193) to keep both legs key-only and record why a capture could not run.

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.

Unverified

Whether the Messages API accepts a subscription or fallback OAuth token sent by a proxy on the client's behalf, and on what terms, has not been checked. A design must establish it from current official documentation before anything is built.

Decision needed

This is a design decision for the owner: whether the key proxy should hold a subscription or fallback token, and if so how the proxy, its credential probes and the capture's credential chain change.

Done when

  • A design for the key proxy holding a subscription or fallback token is written, citing current official documentation on whether the Messages API accepts such a token through a proxy.
  • The owner has decided the design.

Related

Activity

  1. added
    needs-owner-decision
    on Nov 15, 2026
  2. added
    needs-triage
    on Nov 15, 2026
  3. github-actions commented on Nov 15, 2026

    @github-actions
    Contributor

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

    I read this as a design request. When pr-verify's API key is out of credit, the capture cannot run. The only route you describe is for the key proxy itself to hold a subscription or fallback token and substitute it, with the token never reaching the driver legs or the sandbox. The issue asks for a written design, and then an owner decision on it. It builds nothing yet.

    This is related to #16193, which keeps the capture key-only. I found no merged pull request that already covers this request, and no duplicate among the open issues.

    Whether to move the credential boundary is the owner's call, and the issue text does not settle it. Reading current official documentation on whether the Messages API accepts such a token through a proxy would settle the Unverified section, but that is not an owner decision.

    1. Should the key proxy hold a subscription or fallback token at all, or should the capture stay key-only with a recorded blocked-capture reason, as Give the capture the subscription and fallback legs the other Claude lanes have #16193 chose on 2026-11-15?
      RECOMMENDED: write the design first and decide afterward. Basis: the issue's own Unverified section says nothing may be built until the documentation question is answered, and the constraint says no real credential may sit within reach of pull request code.
    2. If the documentation shows the API does not accept such a token from a proxy, is "stay key-only" the accepted final outcome and this issue closed?
      RECOMMENDED: yes. Basis: the issue says a design must establish acceptance from official documentation, and without it the only candidate design is not viable.

    To answer, post a comment that starts with this line:

    **Decision recorded.** <your answers to 1 and 2>
    

    Automated triage. A maintainer reviews it.

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

    @melodic-automation-lanes
    Contributor

    The triage verdict left this issue at needs-owner-decision:

    • flagged: intent
    • held by needs-owner-decision
    • no lanes App verdict comment shows whether an earlier verdict was flagged

    Reason: intent

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

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: A written design that either shows from current official documentation how a proxy-held subscription or fallback token could serve the capture without reaching the driver legs or sandbox, or records that the capture stays key-only because the documentation does not support it.

    Related work

    Open questions

    1. Should the key proxy hold a subscription or fallback token at all, or does the capture stay key-only with a recorded blocked-capture reason, as #​16193 chose on 2026-11-15?
      RECOMMENDED: Stay key-only unless the documentation question is answered in favor; write the design first, then decide. Basis: #​16193
    2. The documentation I read says a CLAUDE_CODE_OAUTH_TOKEN from claude setup-token is read by Claude Code and can only make model requests, and it lists ANTHROPIC_AUTH_TOKEN as the bearer path for gateways. It does not say the Messages API accepts a subscription token sent by a third-party proxy. Is that enough to close the issue as key-only, or does the owner want the terms of use for subscription tokens in non-Claude-Code clients checked first?
      RECOMMENDED: Treat the absence of any documented support as a no and close as key-only, unless the owner names a page that says otherwise. Basis: https:/​/code.claude.com/docs/en/authentication
    3. If a design is still wanted, may the proxy hold the token as a second credential held by the same OS user, with the existing check that the driver legs hold no real key extended to cover it, and a fallback-token leg limited to the proxy?
      RECOMMENDED: Yes, and only that shape, since the issue rules out any token within reach of pull request code. Basis: .github/workflows/pr-verify-capture.yml:890
    4. Is a documented, written finding that the design is not viable an acceptable way to satisfy the first done-when item, so the second item (owner decision) can then be a close?
      RECOMMENDED: Yes. Basis: judgment

    Sources read

    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/workflows/pr-verify-capture.yml:21: header opens the Credential separation section the issue cites
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/workflows/pr-verify-capture.yml:890: step named Check the driver legs hold no real key
    • https:/​/code.claude.com/docs/en/authentication: CLAUDE_CODE_OAUTH_TOKEN from claude setup-token authenticates with a subscription and can only make model requests; ANTHROPIC_AUTH_TOKEN is sent as a Bearer header for gateways; ANTHROPIC_API_KEY is sent as X-Api-Key; nothing states the Messages API accepts a subscription token from a third-party proxy

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  6. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Closing as not planned, on the owner's decision of 2026-11-17 (owner-decisions record, capture credential row, decision D63): the pr-verify capture stays key-only and never proxies a subscription or fallback token to code a pull request runs. #16679 was closed on the same decision. Reopen if that decision changes. 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

    needs-owner-decisionneeds-triage

    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