Skip to content

refactor(ci): run the shared lane actions from ci-workflows - #18300

Merged
kyle-sexton merged 3 commits into
mainfrom
refactor/lane-actions-single-source
Nov 23, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
refactor/lane-actions-single-source

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

No related issue: ADR 0085 Migration step 5, moving the shared lane actions to ci-workflows

Summary

This repository and ci-workflows each kept their own setup-pinned-node, scan-upload and upload-lane-transcript under the same names, and the two copies had drifted apart. melodic-software/ci-workflows#1187 made the ci-workflows copies serve both repositories. This PR switches every call site here to the ci-workflows copies and deletes the local ones (ADR 0085, Migration step 5).

Fix

  • Every ./.base/, ./.lane-trusted/ and $/ use of the three actions now points at melodic-software/ci-workflows/.github/actions/<name>@8972ed0d6815585dbbead0532c4ea65b4088375e # v0.81.0, the one ci-workflows pin. In the same change, scripts/repin-ci-workflows.sh apply moves every other pin to that release.
  • scan-upload and upload-lane-transcript pass gate-path: this repository's lib/publish-gate.mjs, from the same trusted checkout the step already used. upload-lane-transcript also passes hide-trace-ids: "true", keeping the trace-id handling its telemetry scan had here.
  • The read and write runners now stage only the gate in RUNNER_TEMP and scan through the action with that gate, instead of copying in the scanner script and running it directly.
  • check-wip-cap no longer installs Node through its neighboring action's script. Its one caller, work-resolve-issue.yml pick-slot, sets up the pinned Node first and passes its outcome to the check, which fails before any read unless the setup succeeded, so the unknown-cap hold holds the run as before.
  • The local copies, scripts/setup-pinned-node.test.sh and their package-list entries are deleted. Sparse checkouts, workflow tests, the artifact-retention checker, the editorconfig exclude for the keyring and the landscape map no longer list the deleted paths.

Verification

  • node --test --test-concurrency=4 on 20 affected test files (callers, model-job permissions, api-budget coverage, check-wip-cap, the pr-merge, pr-verify, pr-unblock, upstream-apply-changelog, pr-review-main, plugin-eval and pr-merge-risk workflow suites, lane-transcripts pull, check-kill-switch and log-api-budget): 1256 of 1256 pass.
  • Shell suites: check-artifact-retention 52/52, ci-rerun-ci-status 324/324, repin-ci-workflows 43/43, check-comment-hygiene 20/20, check-docs-only-gate 91/91, check-read-caller-keys 76/76, ci-hold-human-gated 81/81, ci-hold-lifted-by 79/79, plus SHELL_REST.
  • Parity: this repository's own scan-upload.test.mjs (17 tests), run against ci-workflows' scan.cjs with this repository's lib/publish-gate.mjs as the gate, passed 16. The one failure is wording: ci-workflows' warning reads "a password or secret assignment", while the local copy omitted the "a". Nothing reads that text.
  • Left out: the full .github suite (host limit), which CI runs.

Related

Deferred

  • check-kill-switch stays here for now. It depends on log-api-budget (rate-guard.mjs, rate-limits.json) and moves together with it at ADR 0085 step 5.
  • melodic-software/pr-pipeline-sandbox still holds its own copies of these actions.

Switch every setup-pinned-node, scan-upload and upload-lane-transcript
call site to the ci-workflows copies at v0.81.0, delete the local
copies, and move every other ci-workflows pin to the same release.

The read and write runners now stage only the publish gate in
RUNNER_TEMP, from the default branch tip, before the head checkout
replaces .base; a failed stage leaves no gate and the scan withholds
its upload. work-resolve-issue sets up the base's pinned Node before
the WIP cap check, so a failed setup skips the check and the run holds
as when the check fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton force-pushed the refactor/lane-actions-single-source branch from 97b6666 to f2639e0 Compare November 23, 2026 02:59
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 02:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T03:02:12.104667Z f2639e0 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs

Run 45103317965, attempt 1

Field Value
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 45103317965

Failed GitHub API calls

No failed call recorded by the run job's scripts.

The WIP cap check keeps its kill-switch-only condition, so the sweep's
kill-switch reading still holds; without Node the check fails and the
unknown-cap hold names it, as for any failed check. Adds the
pr-pipeline changelog fragment for the pin in pr-run-activity.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed c71215423644dd5988b282a130d9ac734719da69: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Security review: incremental (PR #18300, head c712154)

No security issues found. This lane already reviewed an earlier head, so this review covered blocking findings only. It read all three files in the incremental scope.

What changed

  • .github/actions/check-wip-cap/action.yml adds a required node-setup input and a first step, "Require the pinned Node". That step exits 1 unless $NODE_SETUP == success. The value goes through env:, not straight into the script text, and it is only ever a step outcome from the caller. Before this change, a failed continue-on-error Node setup let the check run on whatever Node the runner had. Now it fails the check. The failure then lands on the existing unknown-cap hold in work-resolve-issue.yml pick-slot. This makes the check stricter.
  • .github/workflows/work-resolve-issue.yml gives the Node setup step id: node and passes node-setup: ${{ steps.node.outcome }} to the cap check. The step's if: (kill switch), continue-on-error, pin and permissions: are all unchanged. The cap action still loads from the trusted ./.base/ checkout, as the new test assertion confirms.
  • .github/actions/resolve-config/callers.test.mjs finds the Node step by id and adds assertions for the new input wiring, the .base source and the fail-closed step body. These are test-only changes, and none of them loosens an existing assertion.

Trust controls

These changes don't touch the trusted-trigger check, the lane token request or broker, the kill switch, select-trusted-text, or any merge-hold script. Nothing new is trusted, and no token scope gets wider. No untrusted text reaches a lane by any new route. The WIP cap and its hold now fail closed in one more case.

No plugin manifest or standing instruction surface is in scope. The PR context carries no instructions aimed at this lane.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 2563dfced93d4050e81123af9f6395ac17f08064; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed c71215423644dd5988b282a130d9ac734719da69: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Code review: incremental, c712154 (3 files)

This lane already reviewed an earlier head, so this pass reported blocking findings only.

This push fixes the blocking finding from the last round: a failed pinned-Node setup no longer lets pick-slot read the WIP cap on the runner image's Node. That finding was posted twice, on callers.test.mjs and on work-resolve-issue.yml.

What changed:

  • Set up Node in work-resolve-issue.yml now has id: node.
  • Its outcome is passed to check-wip-cap as the new node-setup input.
  • The composite's new first step, Require the pinned Node, runs exit 1 unless that outcome is success.

Checked against the head files:

  • The step keeps continue-on-error: true, and steps.node.outcome is still failure when it fails, because outcome is recorded before continue-on-error applies. So a failed setup fails the composite before npm ci or check-wip-cap.mjs runs, and capped stays unset. That makes the Hold on an unknown WIP cap condition at work-resolve-issue.yml#L300 true, and the run holds green. A skipped setup (outcome skipped) can only happen when the kill switch is on, and then the check is skipped too.
  • The new input is required: true. GitHub does not enforce that for composite actions, so any caller that leaves it out would fail closed. pick-slot is the only caller, which check-wip-cap.test.mjs asserts at L903.
  • The new callers.test.mjs assertions find the Node step by id, check that node-setup is wired to steps.node.outcome, and pin the exact text of the guard step. The regex matches the head action.yml (lines 60-65) as written. I did not run the tests.

Prior findings: both threads are resolved by the owner with a fix in this push, and both are marked lines changed since resolution: no at this head. The fix meets the point they raised, so I raised neither again.

Other notes

  • Loosened checks. The wrapper sent no verdict or patterns, so I used fail with no consumer entries. There was no decision-record line either, so I did not check the citation requirement. Loosened checks would be marked: fail (bundled default); patterns: 0. Nothing in this push loosens a check: it adds a failing guard and more test assertions.
  • There is no closing issue, so there were no acceptance criteria to check.
  • No plugin manifests are in this push.
  • Security is left to the separate security lane.

Verifier dropped 0 of 0 candidates.

…cceed

pick-slot passes the Node setup outcome to check-wip-cap, which fails
before any read unless it is success, so capped stays unset and the
unknown-cap hold holds the run, as the composite's own install did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 675912b Nov 23, 2026
106 of 107 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/lane-actions-single-source branch November 23, 2026 04:17
kyle-sexton added a commit that referenced this pull request Nov 23, 2026
…upload

Main moved scan-upload to ci-workflows (#18300), so the CDN sync and
patch scans now use that action with the base publish gate, as the relock
scan does. cdn-paths.mjs decides what the cdn-pins class may write and
apply-patch imports it, so it joins the hold floor as an enforcement row
beside protected-paths.mjs; the generated copies and the floor pins move
with it. apply-patch.test.mjs copies apply-patch/ and lib/ into its
staged-layout test, so it declares both in its test-scope.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant