Skip to content

chore(runner-policy): retire the v0.38.2 and v0.39.0 contracts - #746

Merged
kyle-sexton merged 1 commit into
mainfrom
chore/retire-v0.38.2-v0.39.0-runner-contracts
Oct 9, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
chore/retire-v0.38.2-v0.39.0-runner-contracts

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: routine retirement of superseded ci-workflows contracts after the v0.39.3 repin wave.

Summary

Retires the v0.38.2 (cf316d12) and v0.39.0 (6ba73b97) reusable workflow contracts from the runner policy. policy.json now admits ci-workflows only at ab83b01 (v0.39.3).

Merge order: this merges only after claude-code-plugins#6646, which moves the three synced -hosted callers off 6ba73b97.

Fix

  • components/runner-policy/policy.json: remove the 18 cf316d12 and 6ba73b97 contract entries (9 each); the 9 ab83b01 entries stay.
  • components/runner-policy/runner-policy.test.mjs: LIVE_CI_WORKFLOWS_SHA moves to ab83b01, the revision whose successors the live policy admits.
  • components/managed-files-guard/README.md: the action pin now reads ab83b01 (v0.39.3), matching the workflows in that component.
  • components/runner-policy/README.md: records the retirement. The review notes stay as the record the terms were copied from.
  • fixtures/historical-contracts.json is unchanged.

Verification

Fleet pin survey, fresh read of the default branch of all 19 non-archived org repos (.github/ tree and any runner-policy*.json, grepped for cf316d1, 6ba73b9, c586acc; no gh search code):

  • cf316d12: no live pins left after cursor-plugins#98 and agent-plugins#83.
  • c586acc8: no hits.
  • 6ba73b97: only the three synced callers in claude-code-plugins (pr-check-managed-files-hosted.yml:106, pr-review-hosted.yml:83, pr-review-security-hosted.yml:84), which claude-code-plugins#6646 brings to v0.39.3.
  • Hits in .github/standards/runner-policy/policy.json copies were ignored, since the sync replaces them.

Checks, run in the worktree:

  • npm run test:runner-policy: 297 pass, 0 fail
  • npm run test:concurrency-policy: 31 pass, 0 fail
  • npm run test:pr-convention-lockstep: 85 pass, 0 fail
  • npm run lint:runner-policy, lint:dependabot-automerge-lockstep, lint:concurrency-policy, lint:pr-convention-copies: clean
  • lefthook pre-commit on the touched files (editorconfig, typos, markdownlint, gitleaks, biome): clean

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01T7GukBojtE99rLCPY7Cw3R

Remove the cf316d12 (v0.38.2) and 6ba73b97 (v0.39.0) reusable workflow
contracts from policy.json; it now admits ci-workflows only at ab83b01
(v0.39.3). Move the runner-policy test's live-successor SHA and the
managed-files-guard README pin to ab83b01, and record the retirement in the
runner-policy README. Historical fixtures are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01T7GukBojtE99rLCPY7Cw3R
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T04:30:44.144896Z 1d14cbf PR opened
ℹ️ 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.

@claude

claude Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 47s —— View job


Claude's security review

  • Gather context (PR diff, files, custom instructions)
  • Invoke /review:security-review
  • Post findings

Skip gate: no security-relevant surface.

This PR only removes superseded entries from the approvedReusableWorkflowContracts
allowlist in
components/runner-policy/policy.json,
retiring the cf316d12 (v0.38.2) and 6ba73b97 (v0.39.0) contract entries while
keeping the ab83b01 (v0.39.3) entries intact. The companion changes
(runner-policy.test.mjs,
runner-policy/README.md,
managed-files-guard/README.md)
update test fixtures and docs/pin references to match.

This narrows the allowlist (fewer SHAs accepted), so it tightens — not loosens —
what the policy admits; it does not match the instruction-surface deletion pattern
(a guardrail removed, widening what's permitted). No new inputs, secrets, or
caller permissions are introduced; allowedSecrets/allowedCallerPermissions for
the retained ab83b01 entries are unchanged from before this PR. No injection,
authorization, or trust-boundary surface is touched.

No security issues found.

@claude

claude Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 3m 21s —— View job


Code review (/review:code-review)

  • Gather context (PR diff, changed files)
  • Understand request (CI code-review lane via /review:code-review)
  • Review changed files against CLAUDE.md / REVIEW.md criteria
  • Post findings (inline + summary)

Scope: components/managed-files-guard/README.md, components/runner-policy/README.md, components/runner-policy/policy.json, components/runner-policy/runner-policy.test.mjs (diff against origin/main).

No blocking or important findings. This is a clean, mechanical contract retirement that matches its own component's documented procedure.

What I checked:

  • Counted the removed entries: all 9 cf316d12… and all 9 6ba73b97… approvedReusableWorkflowContracts entries are gone from policy.json; the 9 ab83b01… entries remain, and no stray references to either retired SHA remain anywhere in the repo (components/runner-policy/README.md's two historical-record sentences aside, which the PR body explains are meant to stay as the record of what was copied).
  • Confirmed LIVE_CI_WORKFLOWS_SHA in runner-policy.test.mjs:85 is the only place that constant is used (via assertLiveSuccessors, called from ~15 sites) and that no test asserts on the retired SHAs directly, so the one-line bump is sufficient.
  • Checked fixtures/historical-contracts.json: it holds an older, differently-named workflow set (claude-review.yml, checks.yml, etc. from pre-rename history) and never contained cf316d12/6ba73b97 entries for the current workflow names, so "unchanged" is accurate and the new retirement note in the README correctly drops the (inapplicable) "the tests read them from fixtures" clause the earlier v0.38.2-era note carries.
  • The stated merge-order dependency (this PR must land after claude-code-plugins#6646) matches step 4 of the component's own "Contract revision lockstep" (components/runner-policy/README.md:1377): retire a superseded entry only once every consumer has migrated off it. That dependency is explicit in the PR body for the human merger to sequence; nothing in-repo enforces it automatically, which is consistent with how step 4 already works today (no new gap introduced).
  • managed-files-guard/README.md's "today" pin text now matches the actual pin in managed-files-guard.yml/managed-files-guard-fleet.yml (both already at ab83b01… / v0.39.3, unchanged by this PR).

One purely cosmetic nit, below the bar to block on: in the new note at components/runner-policy/README.md:1153, "every v0.38.2 (cf316d1) and v0.39.0 key" parenthesizes the short SHA for v0.38.2 but not for v0.39.0 (6ba73b9), unlike the fully-parenthesized precedent note two paragraphs above it.

Not independently verified: I could not execute npm run test:runner-policy, the other listed test:/lint: commands, or node --test/node -e in this sandbox (all required approval that wasn't available), so the PR's test/lint results are author-claimed and unverified by me. Everything above was verified by reading and grepping the diff and surrounding files directly.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

claude-security-review has reviewed this pull request through 1d14cbf; a later push is reviewed from there.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

claude-review has reviewed this pull request through 1d14cbf; a later push is reviewed from there.

@kyle-sexton
kyle-sexton merged commit 2eb82e9 into main Oct 9, 2026
22 checks passed
@kyle-sexton
kyle-sexton deleted the chore/retire-v0.38.2-v0.39.0-runner-contracts branch October 9, 2026 12:40
kyle-sexton added a commit that referenced this pull request Oct 10, 2026
## Related

Refs: melodic-software/ci-workflows#726
Refs: #748

Precedents: #742 (v0.39.3 contracts), #746 (retirement).

## Fix

Registers the nine ci-workflows reusables at the v0.39.8 tag
`594987abe8657a40bccc13d301f1f0d5cccb5348` in
`components/runner-policy/policy.json`. This unblocks the claude-lanes
repin in #748, whose policy lockstep declined, and the ci-runner repin,
whose pin tests need one SHA across every ci-workflows reference. The
v0.39.3 (`ab83b01`) entries stay until every consumer has repinned.

- `policy.json`: nine new keys, each spliced in as text after its
`ab83b01` entry (121 insertions, 0 deletions). No `workflow_call` input,
secret, workflow or job permission, or `runs-on` routing changed between
v0.39.3 and v0.39.8, so each contract equals its v0.39.3 entry.
- `README.md`: rollout note for v0.39.8.
- `runner-policy.test.mjs`: `REPINE_LANE_SHA_V0_39_8` and a copy-forward
assertion that each v0.39.8 entry equals its v0.39.3 entry and that
exactly nine v0.39.8 keys exist.

| Reusable | Change since v0.39.3 | Lockstep result |
| --- | --- | --- |
| `intake-label-needs-triage.yml` | none, blob identical | unchanged |
| `pr-scan-dependencies.yml` | none, blob identical | unchanged |
| `pr-audit-workflows.yml` | none, blob identical | unchanged |
| `pr-automerge-dependabot.yml` | none, blob identical | unchanged |
| `intake-triage.yml` | `claude-code-action` v1.0.241 to v1.0.245
(`6fed3ca`) | declined: `credentialReferences` |
| `pr-review.yml` | same bump, plus rate-limit summary wording |
declined: `credentialReferences` |
| `pr-review-security.yml` | same bump, plus rate-limit summary wording
| declined: `credentialReferences` |
| `maintenance-sync-standards.yml` | `setup-node` v7.0.0 to v7.1.0
(`949feb2`) | declined: `sync` job routes through `needs` |
| `pr-run-checks.yml` | blob identical; `$/markdownlint` takes the
`setup-node` bump | declined: commit-relative reference changed |

"unchanged" means the comparison found the surface unchanged. Because
any decline suppresses every lockstep write, all nine entries were
registered by hand, and the five declined ones were reviewed against the
v0.39.8 file content. `$/report-lane-outcome`, which the claude lanes
reach, changes only its rate-limit error message.

## Verification

- `laneSecuritySurfacesMatch` from `repin-policy-lockstep.mjs`, run
without writes for all nine paths from `ab83b01` to `594987a`, gave the
results in the table.
- Each v0.39.8 file's `workflow_call` surface (inputs, secrets, workflow
and job permissions, `runs-on`) was parsed and compared with v0.39.3:
unchanged for all nine.
- `npm run test:runner-policy` (298/298), `npm run lint:runner-policy`,
biome, markdownlint and the lefthook pre-commit all pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01TRhsMPSTMFo99ik7gkdgQt

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[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