Skip to content

Verify the claude-lanes lanes on merged runs before removing the organization Claude secrets #17538

Closed as not planned

Description

@kyle-sexton

Problem

#17516 puts every Claude-secret job in the main-only claude-lanes environment and moves PR Run Plugin Evals to workflow_run. Only merged runs can exercise those changes: a branch run of a changed lane is refused at the environment (probe run 44604030055), and work-resolve-issue.yml starts on issues from main. The pipeline convention's "Changing this config" section requires a tracked issue naming such a check and its owner.

Checks

Owner: the hub session that runs the secrets migration.

  1. After ci(security): read Claude secrets only from the main-only claude-lanes environment #17516 merges, before the environment holds secrets (organization path): one pr-unblock activity dispatched on main, one work-resolve-issue run, and one eval: run label on a same-repository PR each reach their model step and finish as before.
  2. After the 16 secrets are loaded into claude-lanes, before this repository loses the organization copies (environment path): repeat the three. The read runner callers pass PR_UNBLOCK_* and ISSUE_LANE_* under the read workflow's own names. That renamed pass-through is expected to work, because SCAN_CARRIER_PRIVATE_KEY already arrives that way from an environment (run 44613075678). This step confirms it for these secrets.
  3. Remove the organization copies only after Move the hosted review lanes to workflow_run so no Claude secret is read on a PR-branch copy #17537 and ci-workflows#1154 have landed and both rounds above are green.

Refs: #17516

Activity

  1. github-actions commented on Nov 20, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  2. github-actions commented on Nov 20, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: #17537
    Blast radius: Verification runs of the pr-unblock, work-resolve-issue and PR eval lanes, plus the gate on removing the organization Claude secrets; no code changes unless a run fails.
    Reversible: yes; the checks only read run results, and the secret removal they gate is a separate step.
    Open questions: none
    I understood this as a tracked verification issue for #17516. It asks for three lane runs on main to reach their model step, once on the organization path and once on the environment path. The organization copies are removed only after both rounds are green and #17537 and ci-workflows#1154 have landed. #17537 is still open, so I listed it as blocking the final removal step. The runs need main and the secrets migration, so they are for the named owner rather than this lane. I found no duplicate and no merged fix.

    Automated triage. A maintainer reviews it.

  3. melodic-automation-lanes commented on Nov 20, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  4. melodic-automation-lanes commented on Nov 20, 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: The owner's hub session verifies three lanes (pr-unblock, work-resolve-issue, PR eval) on main in two rounds, then removes the organization Claude secrets.

    Related work

    Open questions

    1. Can an unattended lane run do any part of this? Dispatching runs on main, loading 16 secrets into claude-lanes and deleting organization secrets are owner actions, so should the issue go to the owner as a manual checklist and not to the lane?
      RECOMMENDED: Yes: keep it owner-run and rewrite the body as a task list (round 1, round 2, removal) so completion is checkable by a person. Basis: judgment
    2. Which external step does the removal need: is loading the 16 secrets and deleting the organization copies done by hand (credential class) or through an IaC repository flow?
      RECOMMENDED: Manual, credential class, unless the secrets are managed in an IaC repository the issue does not name. Basis: judgment
    3. What counts as green for 'reach their model step and finish as before'? Should each run be named by run URL in the issue when recorded?
      RECOMMENDED: Each of the three runs per round concludes success and its log shows the model step started; the owner posts the run URLs per round. Basis: judgment
    4. Is ci-workflows#​1154 merged yet? It is outside this repository and cannot be checked here.
      RECOMMENDED: The owner confirms it is merged before step 3. Basis: judgment

    Sources read

    • .github/workflows/pr-run-activity-read.yml: references claude-lanes (grep count 2); full contents not read
    • .github/workflows/pr-run-plugin-evals.yml: references claude-lanes (grep count 4); full contents not read

    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.**.

  5. kyle-sexton commented on Nov 20, 2026

    @kyle-sexton
    MemberAuthor

    Round 1, interim: 02:20Z 2026-11-20

    #17516 merged as bcc9c54076 at 23:59:59Z. claude-lanes holds no secrets yet.

    pr-unblock: broken on main, fix open.

    work-resolve-issue: passed the environment; model leg still queued.

    • Run 44657788827 started naturally from an issues event on main, after the merge.
    • The read workflow's Run job, which is in claude-lanes, started and succeeded (job). Its API-key leg was skipped, and Resolve Issue Handoff, also in claude-lanes, succeeded (job).
    • The subscription leg is waiting on the broker's concurrency queue behind run 44657761570, not on the environment.
    • The model-step result will follow.

    Eval label: pending. No open same-repository PR needs eval: run now, so no paid eval was started for this check.

    Intake triage: not covered here. Its caller still has no environment, because the standards runner-policy contract does not allow the input yet (melodic-software/standards#1076). Its runs after the merge prove nothing about claude-lanes.

  6. kyle-sexton commented on Nov 20, 2026

    @kyle-sexton
    MemberAuthor

    Round 1 results: 02:48Z 2026-11-20

    Check Result
    pr-unblock Blocked by the size failure; fix pending. This is not a result about the claude-lanes secrets environment. Every run on main since #17516 fails with startup_failure ("Maximum object size exceeded"), the latest at 02:44Z (44662911409). No more pr-unblock dispatches from me.
    work-resolve-issue Passed. It reached its model step and finished. Run 44657788827 ran naturally on main from an issues event after the merge and concluded success. The API-key leg's Run job (in claude-lanes) ran with the model step skipped, then handed off. The subscription leg's Run job (in claude-lanes) ran Run the skill on the OAuth token, and Check the skill took a model turn succeeded. After it, Upload Transcript, Scan, Handoff, Apply Issue Patch, Run Checks and Report Outcome all succeeded. Its earlier 7-minute wait was the broker's concurrency queue, not the environment.
    Eval label Not run. No open PR needs eval: run, so no paid eval was started.

    About the size fix: #17572 (drops the workflow_call descriptions in pr-run-activity-read.yml) got past startup in a branch dispatch (44659406779). It now conflicts with #17552. Because another hub worker owns the shrink, I am leaving #17572 open as an alternative and not rebasing it. Once a fix merges, one natural pr-unblock run on main that reaches its model job closes this check.

  7. kyle-sexton commented on Nov 20, 2026

    @kyle-sexton
    MemberAuthor

    Round 1, pr-unblock: passed (03:2xZ 2026-11-20)

    Next: the owner loads the 16 values into claude-lanes with the hub's wizard (decision Q236/Q238, architecture#121), then round 2.

  8. kyle-sexton commented on Nov 20, 2026

    @kyle-sexton
    MemberAuthor

    Superseded: the owner backed out the claude-lanes environment move (hub Q242, 2026-11-20, owner: "Yeah, go with recommendations."). Why: branch-scoping protects only against one of our own branches rewriting a workflow to read the tokens. Lanes already can't push workflow files (GitHub refuses the push, protected-paths.mjs:79), and sessions hold the owner's broader token. Meanwhile the move duplicated the 16 secrets, forced the rotation tool to write two places, and caused the pr-unblock size outage. Round 1 passed and is recorded above; rounds 2-3 will not run. A back-out PR removes #17516's environment blocks and the check-claude-secrets-environment guard; the empty environment is deleted after it merges. Harden-later condition: this matters again if the lane token gains workflows permission, or if non-owned actors can push branches.

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