Skip to content

chore(runner-policy): retire ci-workflows contracts older than v0.38.2 - #730

Merged
kyle-sexton merged 1 commit into
mainfrom
chore/retire-pre-v0382-contracts
Oct 7, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
chore/retire-pre-v0382-contracts

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: retires superseded contracts after the v0.38.2 fleet repin

Summary

Every consumer outside claude-code-plugins now pins ci-workflows v0.38.2 (cf316d1), so the live runner policy drops the contracts of the three releases before it. Under the approved policy (standards#704, #705), policy.json holds only the current release's contracts; the historical entries the tests read already live in components/runner-policy/fixtures/historical-contracts.json.

Fix

  • components/runner-policy/policy.json: removed the 9 reusable-workflow keys at each of fb56986 (v0.36.0), 95732fd (v0.38.0) and 2531d56 (v0.38.1). The keys were spliced out as text, so every other entry is byte-identical (diff is 363 deletions, no additions).
  • components/runner-policy/runner-policy.test.mjs: LIVE_CI_WORKFLOWS_SHA now names cf316d12b4a14fbdb96a339b7ad00ce935a8cad4.
  • components/runner-policy/README.md: records the retirement and drops the "stays until every consumer repins" clause from the v0.38.0 note. The v0.38.1/v0.38.2 review notes citing 2531d56 stay as history.
  • components/managed-files-guard/README.md: the "today" action pin now names cf316d1 (v0.38.2), which both guard callers already carry. The 2531d56 mention in components/pr-convention-policy/README.md is admission evidence and stays.

Verification

Key counts in approvedReusableWorkflowContracts, before → after: fb56986 9 → 0, 95732fd 9 → 0, 2531d56 9 → 0, cf316d1 9 → 9 (36 → 9 total).

  • npm run test:runner-policy: 47 pass, 0 fail
  • npm run lint:runner-policy: Runner policy passed
  • npm run lint:dependabot-automerge-lockstep: PUBLISHER_ALLOWLIST at cf316d1 matches policy.json
  • npm run test:dependabot-policy: 297 pass, 0 fail
  • npx --yes @biomejs/biome check components/runner-policy/policy.json: clean
  • npm run lint:md: 0 issues in 126 files
  • gh search code --owner melodic-software <sha> for each retired SHA, with each workflow hit re-read from its default branch: every 2531d56 workflow hit is a stale index entry (0 live occurrences). Remaining hits are .github/standards/** synced policy copies, this component, and claude-code-plugins, which still pins fb56986 on main until claude-code-plugins#6447 merges.

Related

  • standards#704, standards#705 (live policy holds only the current release; historical contracts move to the fixture)
  • standards#716
  • claude-code-plugins#6447 must merge first: claude-code-plugins main still pins fb56986

🤖 Generated with Claude Code

Every consumer now pins ci-workflows v0.38.2 (cf316d1), so the nine
reusable contracts at each of fb56986 (v0.36.0), 95732fd (v0.38.0) and
2531d56 (v0.38.1) are retired. policy.json now admits ci-workflows only
at cf316d1; the keys were spliced out so no other entry is reformatted.

The live-policy test reads its successor names at cf316d1, the README
records the retirement, and the managed-files-guard README names the
v0.38.2 action pin both guard files already carry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 7, 2026 04:37
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 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-07T04:40:17.616560Z b2792d1 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.

@claude

claude Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

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


Claude Code Review

  • Gather context (PR diff, changed files, repo instructions)
  • Understand request (CI code-review lane via /review:code-review)
  • Review diff for correctness/maintainability findings
  • Post findings (none warranted inline)
  • Final summary

No findings. This is a clean, mechanical retirement:

  • policy.json: diff is a pure 363-line deletion of the 9×3 (fb56986, 95732fd, 2531d56) reusable-workflow contract keys; every remaining key is byte-identical and all 9 survivors are consistently pinned at cf316d1. Verified the file is still valid JSON with exactly 9 approvedReusableWorkflowContracts entries, all at cf316d12b4a14fbdb96a339b7ad00ce935a8cad4.
  • runner-policy.test.mjs: LIVE_CI_WORKFLOWS_SHA is the single source feeding assertLiveSuccessors, used by ~18 call sites across the suite — one-line update is sufficient, no stale references to the retired SHAs remain anywhere in the test file.
  • components/runner-policy/README.md: the new retirement paragraph (lines ~1121-1125) and the removed "stays until every consumer repins" clause (line ~1090) are consistent with the documented precedent for the earlier 7446b51/69e506b retirement. The fixtures/historical-contracts.json reference tracks pre-rename entries (older file names like checks.yml), not the retired fb56986/95732fd/2531d56 keys themselves — the wording matches the established template and isn't a new inaccuracy introduced here.
  • components/managed-files-guard/README.md: single pin-comment bump to cf316d1 (v0.38.2), consistent with the rest of that file's cascade description.
  • Repo-wide grep confirms only runner-policy/README.md and pr-convention-policy/README.md still mention the retired SHAs; the latter is explicitly frozen admission evidence (checkPinnedComposite at composite pins 2531d56, cf316d1 and fb56986), correctly left untouched.

Not independently verified: this sandbox's Bash tool required approval for npm/node invocations that wasn't available, so I could not re-run npm run test:runner-policy, lint:runner-policy, lint:dependabot-automerge-lockstep, or lint:md. The PR description's reported results (47 pass/0 fail, etc.) are author-claimed and unverified by me; everything above was confirmed via static reading of the diff and repo-wide grep instead.

@claude

claude Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 2m 13s —— View job


Security review — PR #730

  • Gather context (PR diff, body, repo instructions)
  • Invoke /review:security-review and follow its instructions
  • Post findings / summary

Scope reviewed (git diff origin/main...HEAD, head b2792d1):

No security findings.

This is a pure data/doc change with no logic touched. The one pattern worth checking under this lane's "instruction-surface deletion" lens was the README line removed from components/runner-policy/README.md: "... which stays until every consumer repins." I traced what enforces that rule to confirm removing the policy.json entries doesn't open a gap:

  • reusableWorkflowStatus() in runner-policy.mjs:904-917 fails closed: any job.uses with no matching approvedReusableWorkflowContracts entry is reported approved: false. Dropping the three retired SHA keys cannot cause an unreviewed/unapproved reusable-workflow call to be silently accepted — it only means a caller still pinned to one of the retired SHAs (per the PR body, claude-code-plugins main still pins fb56986) will start failing the audit until it repins, which is the intended/called-out consequence (gated on claude-code-plugins#6447), not a bypass.
  • resolveApprovedShas() in automerge-lockstep.mjs:26-36 also fails closed (throws if zero contracts match the path), so the dependabot-automerge publisher-allowlist lockstep check degrades safely to checking only the remaining cf316d1 entry, consistent with the PR's reported passing lint:dependabot-automerge-lockstep run.

So the removed sentence documented a sequencing/rollout convention, not a control that was itself providing the security guarantee — the fail-closed contract match is what provides it, and that's untouched. I could not fetch the org's instruction-exception-register (no WebFetch tool in this lane and the file isn't present in this checkout), so per the skill's fallback I'm noting that the protected-class list wasn't consulted directly; recognition here is by consequence, as above.

No GitHub Actions trigger/permission/pin changes in this diff (zizmor's lane), no secrets/token handling changed, no injection surfaces touched.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b2792d1dbf

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread components/runner-policy/README.md Resolved
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

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

@kyle-sexton
kyle-sexton enabled auto-merge (squash) October 7, 2026 04:42
@kyle-sexton
kyle-sexton merged commit ffcb2b1 into main Oct 7, 2026
24 checks passed
@kyle-sexton
kyle-sexton deleted the chore/retire-pre-v0382-contracts branch October 7, 2026 05:15
kyle-sexton added a commit that referenced this pull request Oct 9, 2026
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

- Precedent: #730 (same shape: remove
superseded contract entries, keep historical fixtures).
- claude-code-plugins#6646 (must merge first), cursor-plugins#98,
agent-plugins#83.

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

https://claude.ai/code/session_01T7GukBojtE99rLCPY7Cw3R

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