Skip to content

chore(runner-policy): approve ci-workflows v0.36.0 contracts - #697

Merged
kyle-sexton merged 4 commits into
mainfrom
chore/contracts-v0.36.0
Oct 4, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
chore/contracts-v0.36.0

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

No related issue: Phase 8 of the org GitHub Actions naming migration (one-version convergence).

Summary

Adds runner-policy contracts at ci-workflows fb56986 (v0.36.0) for all 9 reusable workflows consumers pin, so the runner-policy-enrolled repos can move to one ci-workflows release. Each new entry is a verbatim copy of its already-approved basis contract.

Fix

components/runner-policy/policy.json, approvedReusableWorkflowContracts: 9 entries added, spliced as text after the existing entries.

reusable basis evidence
intake-triage, pr-review, pr-review-security, intake-label-needs-triage, pr-scan-dependencies, pr-audit-workflows 7446b51 lockstep laneSecuritySurfacesMatch reports unchanged (surface plus $/ object trees); workflow blob byte-identical
pr-automerge-dependabot 69e506b lockstep reports unchanged; workflow blob byte-identical; no commit-relative references
maintenance-sync-standards 7446b51 lockstep declines (a routing field references needs); workflow blob byte-identical (118cc8a) and it reaches no commit-relative objects; secret-capable, so the owner signed off on the copy
pr-run-checks 7446b51 owner hand-reviewed: the only workflow diff renames its two $/ composite references (machine-specific-paths to check-machine-paths, comment-hygiene to check-comment-markers); the directory trees are identical (b3f4f15, ea4e6e9); inputs, secrets and permissions unchanged

components/dependabot-policy/automerge-lockstep.mjs: the lockstep required exactly one pr-automerge-dependabot.yml contract, so adding the fb56986 entry beside 69e506b failed test-dependabot-policy. A repin always keeps both until every consumer moves, so the check now fetches the reusable at every approved SHA and fails on a mismatch at any of them (zero contracts still fails). README and THREAT-MODEL updated to match.

Verification

  • npm run test:dependabot-policy: 47 pass, 0 fail.

  • npm run lint:dependabot-automerge-lockstep: PUBLISHER_ALLOWLIST matches policy.json at 69e506b and fb56986.

  • npm run test:runner-policy: 296 pass, 0 fail.

  • node --test components/claude-lanes/repin-policy-lockstep.test.mjs: 23 pass, 0 fail.

  • npm run lint:runner-policy: Runner policy passed.

  • Each new entry deep-equals its basis entry.

Related

  • Contracts at 7446b51 (renamed reusables) and 69e506b (auto-merge reusable) are the bases copied here.
  • Next: sync out, then repin consumers to v0.36.0.

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 4, 2026 15:06
Copy forward eight approvedReusableWorkflowContracts entries to
ci-workflows fb56986 (v0.36.0), each a verbatim copy of its approved
basis:

- intake-triage, pr-review, pr-review-security,
  intake-label-needs-triage, pr-scan-dependencies, pr-audit-workflows
  (basis 7446b51): the lockstep tool's surface-and-object comparison
  reports them unchanged, and each workflow blob is byte-identical.
- maintenance-sync-standards (basis 7446b51): the tool declines it
  because a routing field references needs; the workflow blob is
  byte-identical and reaches no commit-relative objects.
- pr-automerge-dependabot (basis 69e506b): the tool reports it
  unchanged and the workflow blob is byte-identical.

pr-run-checks is left out: it now references renamed composite paths
and needs a hand-reviewed contract.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Its only change since 7446b51 renames two $/ composite references whose
trees are identical; inputs, secrets and permissions are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton enabled auto-merge (squash) October 4, 2026 19:49
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 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-04T19:51:36.664510Z f503783 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 4, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 6m 49s —— View job


Code review in progress

  • Gather context (PR diff, policy.json, REVIEW.md, CLAUDE.md)
  • Review changed file for correctness and maintainability
  • Verify basis-contract claims (deep-equal, byte-identical claims)
  • Adversarially verify candidate finding
  • Post findings

@claude

claude Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 37s —— View job


Security review complete ✅

  • Gather context (PR diff, changed files)
  • Apply skip-gate check
  • Review changed content for security-relevant findings
  • Post results

Scope: components/runner-policy/policy.json — the only file this PR touches. It adds 9 new entries to approvedReusableWorkflowContracts, each pinning a melodic-software/ci-workflows reusable workflow at fb56986 (v0.36.0) with its allowed inputs, secrets, and caller permissions.

No security issues found.

This is a security-relevant surface (it's literally the allowlist that grants secrets like CLAUDE_CODE_OAUTH_TOKEN, STANDARDS_SYNC_APP_CLIENT_ID/STANDARDS_SYNC_APP_PRIVATE_KEY, and caller permissions up to contents: write / pull-requests: write / issues: write / security-events: write to pinned external reusable workflows), so I verified the PR's "verbatim copy" claim directly rather than taking it on faith:

  • Diffed each new ...@fb56986... entry against its stated basis entry already present in the file (...@7446b51... for 6 entries, ...@69e506b... for pr-automerge-dependabot, ...@7446b51... for pr-run-checks).
  • All 9 new entries are byte-identical in allowedInputs, allowedSecrets, and allowedCallerPermissions/minimumCallerPermissions to their claimed basis — no secret, input, or permission was widened, narrowed, or substituted during the copy.
  • The change is purely additive (no existing entries edited or removed), so there's no instruction-surface deletion/softening to check against the exception register.
  • No injection, auth, or trust-boundary surface applies here: this is a static JSON allowlist with no new consumer logic in this diff.

One caveat worth noting for the record, not a finding: the "byte-identical workflow blob" and "owner hand-reviewed" claims for maintenance-sync-standards and pr-run-checks are attestations about the external ci-workflows repo at fb56986, which isn't present in this checkout, so I couldn't independently verify them — only that this file's new entries match the text already approved in this repo. That verification gap is inherent to the existing lockstep/owner-signoff process this PR follows, not something this diff introduces.

GitHub Actions trigger/permission hardening on actual workflow files is out of scope for this lane (zizmor's advisory lane); not applicable here regardless, since no workflow files changed.

@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

claude-security-review has reviewed this pull request through 50b75fa; 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: f5037835a8

ℹ️ 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/policy.json Resolved
@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

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

…ved SHA

A repin approves the new pr-automerge-dependabot SHA beside the old one
until every consumer moves, so the lockstep now verifies the allowlist at
each approved SHA instead of requiring exactly one contract.

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

claude Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 31s —— View job


Security review complete ✅

  • Gather context (incremental diff, skip gate)
  • Review changed content for security-relevant findings
  • Adversarially verify candidate findings
  • Post results

Scope: incremental review for this lane, which last reviewed f5037835a87342ee6ef3feaad284f026f54390b0. Reviewed only what changed since then, via .claude-lane/incremental.diff:

The rest of the PR (components/runner-policy/policy.json) is unchanged since f5037835a and was reviewed under that SHA; not re-reviewed here.

No security issues found.

This change makes automerge-lockstep.mjs check the PUBLISHER_ALLOWLIST lockstep against every runner-policy-approved SHA for pr-automerge-dependabot.yml instead of exactly one (resolveApprovedSha → resolveApprovedShas), so old and new approved contracts can coexist during a repin without the check going blind to either:

  • The previous "exactly one contract key, else fail" guard is relaxed to "at least one, else fail" (automerge-lockstep.mjs:26-33), and the two-key case that used to throw now iterates and checks the allowlist at each SHA (automerge-lockstep.mjs:96-109). This is strictly more verification, not less: every approved pin is still checked against policy.json's autoMerge.publisherAllowlist, and a mismatch at any SHA still throws LockstepError and exits non-zero. No path lets a drifted allowlist pass silently.
  • resolveApprovedShas still reads only from policy.json-local, already-trusted approvedReusableWorkflowContracts keys (no external/attacker-controlled input feeds the SHA list), so there's no new injection or trust-boundary surface here.
  • fetchText's GitHub token handling, retry logic, and checkLockstep/extractPublisherAllowlist parsing logic are unchanged by this diff.
  • README.md and THREAT-MODEL.md edits are prose-only updates that describe the new multi-SHA behavior accurately; neither removes or softens a standing control — the threat-model row still requires a fetch error, missing/repeated constant, or any difference to fail the check, now "at any of them" rather than at a single SHA. Checked this against the instruction-surface-deletion lens: these are descriptive documentation rows, not a guardrail instruction file (CLAUDE.md/AGENTS.md/rules/hooks), and the local instruction exception register (docs/conventions/instruction-exception-register/README.md) is not present in this checkout to consult directly, but no rule removal applies here regardless — the control described is unchanged in strength, only broadened in applicability.
  • Test changes (automerge-lockstep.test.mjs) match the new contract: the old "two contract keys fail" case is replaced with "every contract key is returned for checking," consistent with the intentional repin-tolerance behavior, not a coverage regression.

GitHub Actions trigger/permission hardening is out of scope for this lane (zizmor's advisory lane); not applicable here regardless, since no workflow files changed in this incremental diff.

@claude

claude Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 25s —— View job


Code review complete ✅

  • Gather context (incremental diff, changed files)
  • Review changed files for correctness and maintainability
  • Verify candidate findings
  • Post findings

Scope (incremental, per lane instructions): this lane last reviewed f5037835. Since then, only ed008df changed these files:

  • components/dependabot-policy/automerge-lockstep.mjs
  • components/dependabot-policy/automerge-lockstep.test.mjs
  • components/dependabot-policy/README.md
  • components/dependabot-policy/THREAT-MODEL.md

(components/runner-policy/policy.json and the other dependabot-policy files are unchanged since f5037835 and were reviewed then.)

No correctness or maintainability findings.

What this commit does: 3f26d26/f503783 added a second runner-policy contract for pr-automerge-dependabot.yml (old SHA 69e506b + new SHA fb56986, policy.json:1459 and :1550), which would have broken automerge-lockstep.mjs's prior "exactly one contract" invariant the moment both pins coexist during the repin window. ed008df fixes that ahead of time:

  • resolveApprovedSha → resolveApprovedShas (automerge-lockstep.mjs:26-36) now returns all matching contract SHAs instead of requiring/returning exactly one, and the CLI entrypoint loops over them, checking the allowlist at each (automerge-lockstep.mjs:100-117).
  • Verified the 0 case still throws (found 0), the 1 case still returns [SHA_A], and the former "2 contracts → error" case is correctly replaced with "2 contracts → both returned," matching the new repin-coexistence requirement — tests at automerge-lockstep.test.mjs:82-104 cover all three.
  • The let sha hoisted above the loop (reusing the loop variable rather than a const per-iteration) is deliberate, not a leftover: it lets the outer catch still report (checked at ${sha}) for whichever SHA was in flight when a fetch or drift error fired.
  • Confirmed no other reference to the old singular resolveApprovedSha name or its found 2/"expected exactly one" wording remains anywhere in the repo.
  • README.md and THREAT-MODEL.md prose updates ("every SHA ... approve" / "at least one; old and new coexist during a repin") accurately describe the new multi-SHA behavior and evidence.

I wasn't able to execute node --test or npm run lint:dependabot-automerge-lockstep myself in this sandbox (the command requires approval this lane doesn't have); I instead traced the test expectations against the implementation by hand. The PR body's reported npm run test:runner-policy: 296 pass, 0 fail and lockstep test results stand as the executed evidence.

Out of scope for this incremental review (unchanged since f5037835, already covered by the prior pass): Codex's P2 note that components/runner-policy/README.md's contract-revision log wasn't updated for the new v0.36.0 entries — that file isn't part of this diff.

@claude

claude Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 1m 41s —— View job


Code review complete ✅

  • Gather context (incremental diff, lane scope)
  • Review changed file (components/runner-policy/README.md) for correctness and maintainability
  • Adversarially verify candidate findings
  • Post findings

Scope (incremental, per lane instructions): this lane last reviewed ed008df0c573ca6f5566f9dff467bba23ed342b2. Since then, only 50b75fa changed:

(Every other file in this PR, including components/runner-policy/policy.json, is unchanged since ed008df and was reviewed then.)

No correctness or maintainability findings.

This commit adds the v0.36.0 contract-revision paragraph that Codex's earlier review requested (a record of the nine new fb56986-pinned entries, matching the README's existing per-version prose convention rather than a new heading/section — consistent with how v0.33.0–v0.35.0 are documented just above it). I checked its factual claims against policy.json rather than taking them at face value:

  • Counted the fb56986-pinned keys in policy.json directly: exactly 9, matching "All nine reusables consumers pin."
  • Diffed the pr-run-checks.yml@fb56986... entry (policy.json:1560-1589) against its @7446b51... basis (policy.json:1348-1377) — allowedInputs, allowedSecrets, and minimumCallerPermissions are byte-for-byte identical, supporting "no input, secret, caller permission or runs-on routing moved" even though the paragraph says the renamed composite paths live inside the external ci-workflows repo (not visible from this checkout, same verification gap noted on the earlier full-file pass).
  • Diffed maintenance-sync-standards.yml@fb56986... (policy.json:1531-1539) against its @7446b51... basis (policy.json:1440-1448) — identical, including the two secret mappings, supporting the "secret-capable, signed off by hand" sentence.
  • The "six workflow blobs are byte-identical" sentence covers the 7446b51-basis entries other than maintenance-sync-standards and pr-run-checks (both called out separately); pr-automerge-dependabot's own byte-identical/lockstep-unchanged status is already covered by the opening sentence's "each a verbatim copy," so the paragraph isn't double-counting or omitting an entry — all 9 are accounted for.

No subagent fan-out was needed given the diff is a single 10-line prose addition with no code/logic surface; I verified its claims directly against policy.json.

kyle-sexton added a commit to melodic-software/codex-plugins that referenced this pull request Oct 4, 2026
No related issue: Phase 8 step 3 of the org GitHub Actions conventions
migration (one ci-workflows version everywhere).

## Summary

Repins this repository's repo-owned ci-workflows references to v0.36.0
(`fb56986`), so every repo converges on one ci-workflows release.
Sync-managed callers move separately through the standards repin and
sync.

## Fix

Repo-owned `uses: melodic-software/ci-workflows/...` pins move from
v0.34.0 (`7446b51`) or v0.35.0 (`69e506b`) to
`fb56986808750d6856c27de78df15e150027b8dc # v0.36.0`. Composite paths
moved since v0.34.0 are mapped (`comment-hygiene` to
`check-comment-markers`, `machine-specific-paths` to
`check-machine-paths`) where pinned.

## Verification

- Every pinned path exists at `fb56986` in ci-workflows.
- `actionlint` on the changed workflows; the repo's own pin checks where
it has them.
- Runner-policy contracts for every reusable at `fb56986` merged in
melodic-software/standards#697.

## Related

- melodic-software/standards#697 (v0.36.0 contracts).

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

Co-authored-by: Claude Opus 5.5 <[email protected]>
kyle-sexton added a commit to melodic-software/agent-plugins that referenced this pull request Oct 4, 2026
No related issue: Phase 8 step 3 of the org GitHub Actions conventions
migration (one ci-workflows version everywhere).

## Summary

Repins this repository's repo-owned ci-workflows references to v0.36.0
(`fb56986`), so every repo converges on one ci-workflows release.
Sync-managed callers move separately through the standards repin and
sync.

## Fix

Repo-owned `uses: melodic-software/ci-workflows/...` pins move from
v0.34.0 (`7446b51`) or v0.35.0 (`69e506b`) to
`fb56986808750d6856c27de78df15e150027b8dc # v0.36.0`. Composite paths
moved since v0.34.0 are mapped (`comment-hygiene` to
`check-comment-markers`, `machine-specific-paths` to
`check-machine-paths`) where pinned.

## Verification

- Every pinned path exists at `fb56986` in ci-workflows.
- `actionlint` on the changed workflows; the repo's own pin checks where
it has them.
- Runner-policy contracts for every reusable at `fb56986` merged in
melodic-software/standards#697.

## Related

- melodic-software/standards#697 (v0.36.0 contracts).

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

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
kyle-sexton added a commit to melodic-software/.github that referenced this pull request Oct 4, 2026
No related issue: Phase 8 step 3 of the org GitHub Actions conventions
migration (one ci-workflows version everywhere).

## Summary

Repins this repository's repo-owned ci-workflows references to v0.36.0
(`fb56986`), so every repo converges on one ci-workflows release.
Sync-managed callers move separately through the standards repin and
sync.

## Fix

Repo-owned `uses: melodic-software/ci-workflows/...` pins move from
v0.34.0 (`7446b51`) or v0.35.0 (`69e506b`) to
`fb56986808750d6856c27de78df15e150027b8dc # v0.36.0`. Composite paths
moved since v0.34.0 are mapped (`comment-hygiene` to
`check-comment-markers`, `machine-specific-paths` to
`check-machine-paths`) where pinned.

## Verification

- Every pinned path exists at `fb56986` in ci-workflows.
- `actionlint` on the changed workflows; the repo's own pin checks where
it has them.
- Runner-policy contracts for every reusable at `fb56986` merged in
melodic-software/standards#697.

## Related

- melodic-software/standards#697 (v0.36.0 contracts).

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

Co-authored-by: Claude Opus 5.5 <[email protected]>
kyle-sexton added a commit to melodic-software/cursor-plugins that referenced this pull request Oct 4, 2026
No related issue: Phase 8 step 3 of the org GitHub Actions conventions
migration (one ci-workflows version everywhere).

## Summary

Repins this repository's repo-owned ci-workflows references to v0.36.0
(`fb56986`), so every repo converges on one ci-workflows release.
Sync-managed callers move separately through the standards repin and
sync.

## Fix

Repo-owned `uses: melodic-software/ci-workflows/...` pins move from
v0.34.0 (`7446b51`) or v0.35.0 (`69e506b`) to
`fb56986808750d6856c27de78df15e150027b8dc # v0.36.0`. Composite paths
moved since v0.34.0 are mapped (`comment-hygiene` to
`check-comment-markers`, `machine-specific-paths` to
`check-machine-paths`) where pinned.

## Verification

- Every pinned path exists at `fb56986` in ci-workflows.
- `actionlint` on the changed workflows; the repo's own pin checks where
it has them.
- Runner-policy contracts for every reusable at `fb56986` merged in
melodic-software/standards#697.

## Related

- melodic-software/standards#697 (v0.36.0 contracts).

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

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton merged commit ca9e96c into main Oct 4, 2026
50 checks passed
@kyle-sexton
kyle-sexton deleted the chore/contracts-v0.36.0 branch October 4, 2026 22:16
kyle-sexton added a commit to melodic-software/ci-workflows that referenced this pull request Oct 4, 2026
No related issue: Phase 8 step 3 of the org GitHub Actions conventions
migration (one ci-workflows version everywhere).

## Summary

Repins this repository's repo-owned ci-workflows references to v0.36.0
(`fb56986`), so every repo converges on one ci-workflows release.
Sync-managed callers move separately through the standards repin and
sync.

## Fix

Repo-owned `uses: melodic-software/ci-workflows/...` pins move from
v0.34.0 (`7446b51`) or v0.35.0 (`69e506b`) to
`fb56986808750d6856c27de78df15e150027b8dc # v0.36.0`. Composite paths
moved since v0.34.0 are mapped (`comment-hygiene` to
`check-comment-markers`, `machine-specific-paths` to
`check-machine-paths`) where pinned.

## Verification

- Every pinned path exists at `fb56986` in ci-workflows.
- `actionlint` on the changed workflows; the repo's own pin checks where
it has them.
- Runner-policy contracts for every reusable at `fb56986` merged in
melodic-software/standards#697.

## Related

- melodic-software/standards#697 (v0.36.0 contracts).

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

Co-authored-by: Claude Opus 5.5 <[email protected]>
kyle-sexton added a commit to melodic-software/ci-runner that referenced this pull request Oct 4, 2026
No related issue: Phase 8 step 3 of the org GitHub Actions conventions
migration (one ci-workflows version everywhere).

## Summary

Repins this repository's repo-owned ci-workflows references to v0.36.0
(`fb56986`), so every repo converges on one ci-workflows release.
Sync-managed callers move separately through the standards repin and
sync.

## Fix

Repo-owned `uses: melodic-software/ci-workflows/...` pins move from
v0.34.0 (`7446b51`) or v0.35.0 (`69e506b`) to
`fb56986808750d6856c27de78df15e150027b8dc # v0.36.0`. Composite paths
moved since v0.34.0 are mapped (`comment-hygiene` to
`check-comment-markers`, `machine-specific-paths` to
`check-machine-paths`) where pinned.

## Verification

- Every pinned path exists at `fb56986` in ci-workflows.
- `actionlint` on the changed workflows; the repo's own pin checks where
it has them.
- Runner-policy contracts for every reusable at `fb56986` merged in
melodic-software/standards#697.

## Related

- melodic-software/standards#697 (v0.36.0 contracts).

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

Co-authored-by: Claude Opus 5.5 <[email protected]>
kyle-sexton added a commit that referenced this pull request Oct 4, 2026
Keeps the v0.36.0 contract approvals from #697 and the consolidated
check-policies job name in the dependabot-policy threat model.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
kyle-sexton added a commit that referenced this pull request Oct 4, 2026
No related issue: Phase 8 step 3 of the org GitHub Actions conventions
migration (one ci-workflows version everywhere).

## Summary

Repins this repository's repo-owned ci-workflows references to v0.36.0
(`fb56986`), so every repo converges on one ci-workflows release.
Sync-managed callers move separately through the standards repin and
sync.

## Fix

Repo-owned `uses: melodic-software/ci-workflows/...` pins move from
v0.34.0 (`7446b51`) or v0.35.0 (`69e506b`) to
`fb56986808750d6856c27de78df15e150027b8dc # v0.36.0`. Composite paths
moved since v0.34.0 are mapped (`comment-hygiene` to
`check-comment-markers`, `machine-specific-paths` to
`check-machine-paths`) where pinned.

## Verification

- Every pinned path exists at `fb56986` in ci-workflows.
- `actionlint` on the changed workflows; the repo's own pin checks where
it has them.
- Runner-policy contracts for every reusable at `fb56986` merged in
#697.

## Related

- #697 (v0.36.0 contracts).

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

Co-authored-by: Claude Opus 5.5 <[email protected]>
kyle-sexton added a commit that referenced this pull request Oct 4, 2026
#699)

No related issue: runner-slot pressure under the org's 60-job
concurrency cap, measured in github-iac `.work/ci-perf/capture-20261004`

## Summary

`pr-require-checks` started 45 jobs per pull-request run, and 79% of
standards jobs finished in under a minute. Runner start, checkout and
setup cost more than the checks, and each job held one of the org's 60
runner slots. During the 2026-10-04 peak minutes standards held about 21
slots and claude-code-plugins held about 30.

## Fix

The 42 lane jobs (44 with the TypeScript matrix) become 16, one per
ecosystem or domain. `ci-status` still aggregates them all and is still
the only required context (`OrgRulesets.cs` `ci-gate`), so no ruleset
changes.

| Job | Holds the old lanes |
| --- | --- |
| `check-shell` | shellcheck, test-fixtures-shellcheck, test-harness,
test-local-lane-wrappers |
| `check-markdown-and-links` | markdownlint, test-fixtures-markdown,
lychee, test-fixtures-lychee |
| `check-repo-hygiene` | editorconfig-checker, gitleaks, typos,
check-exec-bit, check-machine-paths, check-line-endings,
check-comment-markers, check-code-review-rules |
| `check-powershell` | psscriptanalyzer, the PSScriptAnalyzer contract
test |
| `test-lefthook` | test-lefthook, the PowerShell staged-adapter
regression, the .NET staged-adapter unit test |
| `check-python` | ruff, pyright, test-fixtures-python |
| `check-typescript` | biome, the 3-entry `test-tsconfig` matrix (now
three steps), test-fixtures-typescript |
| `check-dotnet` | dotnet-build, dotnet-format, test-fixtures-dotnet |
| `check-go` | test-fixtures-go |
| `check-policies` | Runner policy (with package lifecycle),
concurrency, dependabot and pr-convention policy |
| `check-github-actions` | actionlint with the lane-caller tests,
check-pin-comment-convention, github-actions-conventions |
| `test-cloud-environment` | test-cloud-environment, test-mcp-launcher |
| `test-distribution` | unchanged |
| `verify-pr-convention-lockstep` | unchanged (kept apart per its
ADR-0008 comment: it fetches over the network) |
| `pr-audit-workflows`, `pr-scan-dependencies` | unchanged reusable
callers |

Every `run:` and `uses:` from the old lanes is still in the file
(checked by diffing the two sets of step lines). Every step after
checkout runs on `!cancelled()`, so one failing check does not hide the
ones after it. Ordering keeps each tool version what it was: lint
actions run before the inline fixture installs that must win on PATH,
and in `check-dotnet` the fixture tests (SDK 10.0.301) run before the
build and format actions install their pinned 10.0.400. The PowerShell
staged-adapter regression (about 70 s, the longest step) moves to
`test-lefthook`, so `check-powershell` does not become the sum of both.

Component docs that named the old jobs now name the new ones.

### Path gating in the slow jobs

`test-lefthook`, `check-python`, `check-dotnet` and `check-go` start
with ci-workflows `detect-changes` (v0.34.0, already pinned) and gate
every later step on their filter group. A pull request that touches none
of a job's inputs runs only the detection step, and the job succeeds, so
`ci-status` (`treat-skipped-as: fail`) never sees a skipped job. There
is no separate detection job and no `on.paths`. On push to main the
action reports every group changed, so main runs everything. Each of the
four jobs gains `pull-requests: read` for the action's file listing.

Checked locally by running the action's own `match.sh` on the filters
parsed from this workflow:

| Changed files | lefthook | python | dotnet | go |
| --- | --- | --- | --- | --- |
| `README.md`, `docs/x.md`, `components/markdownlint/README.md` | false
| false | false | false |
| `components/dotnet-analysis/dotnet.globalconfig` | false | false |
true | false |
| `components/go-analysis/fixtures/good/main.go` | false | false | false
| true |
| `distribution/tools/x.py` | false | true | false | false |
| `components/lefthook-python/lefthook.yml` | true | false | false |
false |
| `harness/shell/lib.sh` or this workflow | true | true | true | true |
| any file, `push` event | true | true | true | true |

### Expected effect

Baseline from `alljobs/standards.tsv` (56 full pull-request runs) and
run 37229647804:

| | Before (mean of 56 runs) | After (this PR's run 37238677305) |
| --- | --- | --- |
| Jobs per run | 45 | 17 |
| Jobs asking for a slot at once | 44 | 16 |
| Slot-seconds per run (job started to completed) | 580 | 417 |
| Longest job | 81 s (test-fixtures-powershell) | 74 s (test-lefthook) |
| Wall time | 96 s | 85 s |

The slot-seconds figure counts only job run time; the runner start
before each job's first step is not in it, so the real saving is larger
than 163 s per run. The after column is one run, measured before path
gating; the before column is a mean.

## Verification

- `actionlint` 1.7.12 with `.github/actionlint.yaml`: clean.
- `zizmor --offline` 1.30.0: no findings (5 ignored, the three
TypeScript installs plus the two existing ignores).
- `npm run lint:runner-policy`, `lint:concurrency-policy`,
`lint:dependabot-policy`: pass. `lint:github-actions-conventions`: 0
findings.
- `npm run test:runner-policy` (296), `test:concurrency-policy` (31),
`test:github-actions-conventions` (14), `test:pr-convention-lockstep`
(48), `test:pr-convention-policy` (11), `test:dependabot-policy` (47),
`test:packages` (14), `test:lefthook-dotnet` (12), `test:mcp-launcher`
(24): all pass.
- `harness/shell/run-tests.sh` on actionlint, code-review-rules,
pin-comment-convention and harness `lib.test.sh`: pass.
`.cursor/install.test.sh` assertion 12 (the first inline `ver=`/`sha=`
pair in the gate is still ShellCheck) passes; its node-link cases 3-5
fail on this Windows host for an unrelated symlink reason.
- `scan-workflow-files.sh`, markdownlint, typos, editorconfig-checker on
the changed files: clean.

## Related

- Evidence: `melodic-software/github-iac`
`.work/ci-perf/capture-20261004/` (`alljobs/standards.tsv`,
`peakholders.txt`, `snapshot/jobs-by-repo.tsv`).
- Main merged in after #697 (v0.36.0 contract approvals). The one
conflict, in `components/dependabot-policy/THREAT-MODEL.md`, keeps
#697's multi-SHA wording and this PR's `check-policies` job name.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
kyle-sexton added a commit to melodic-software/claude-code-account-rotation that referenced this pull request Oct 4, 2026
No related issue: Phase 8 step 3 of the org GitHub Actions conventions
migration (one ci-workflows version everywhere).

## Summary

Repins this repository's repo-owned ci-workflows references to v0.36.0
(`fb56986`), so every repo converges on one ci-workflows release.
Sync-managed callers move separately through the standards repin and
sync.

## Fix

Repo-owned `uses: melodic-software/ci-workflows/...` pins move from
v0.34.0 (`7446b51`) or v0.35.0 (`69e506b`) to
`fb56986808750d6856c27de78df15e150027b8dc # v0.36.0`. Composite paths
moved since v0.34.0 are mapped (`comment-hygiene` to
`check-comment-markers`, `machine-specific-paths` to
`check-machine-paths`) where pinned.

## Verification

- Every pinned path exists at `fb56986` in ci-workflows.
- `actionlint` on the changed workflows; the repo's own pin checks where
it has them.
- Runner-policy contracts for every reusable at `fb56986` merged in
melodic-software/standards#697.

## Related

- melodic-software/standards#697 (v0.36.0 contracts).

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

Co-authored-by: Claude Opus 5.5 <[email protected]>
kyle-sexton added a commit that referenced this pull request Oct 4, 2026
No related issue: Phase 8 step 4 of the org GitHub Actions conventions
migration (retire superseded runner-policy contracts).

## Summary

Every repository now pins ci-workflows v0.36.0 (`fb56986`) only, so
runner-policy contracts at older SHAs no longer admit any real caller;
they only widen what an old-SHA caller could get approved. This removes
the 47 superseded `melodic-software/ci-workflows/*` contracts that no
test reads.

## Fix

`components/runner-policy/policy.json`: 47
`approvedReusableWorkflowContracts` entries removed by text splice (the
eight renamed paths at `7446b51`, `pr-automerge-dependabot` at
`69e506b`, and pre-rename lane, sync, osv and zizmor revisions). No
entry at `fb56986` changes and nothing is added.

`components/runner-policy/README.md`: the v0.34.0 "old keys stay" line
now records their retirement, and a short paragraph says why the
remaining old entries stay.

73 older entries stay because `runner-policy.test.mjs` (and one
`repin-policy-lockstep.test.mjs` case) reads them from the real
`policy.json` as historical evidence; retiring them needs those tests
moved to fixture policies first, a separate change.

## Verification

- No consumer pins another SHA: `git grep` of every repo's `origin/main`
finds ci-workflows `uses:` at other SHAs only in fixtures and test
strings.
- `npm run test:runner-policy` 296 pass; `npm run lint:runner-policy`
passed; `repin-policy-lockstep.test.mjs` 23 pass; `npm run
test:dependabot-policy` 47 pass; `npm run
lint:dependabot-automerge-lockstep` matches at `fb56986`; biome and
markdownlint clean.

## Related

- #697 (v0.36.0 contracts), #701 and #702
(standards repins).

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

Co-authored-by: Claude Opus 5.5 <[email protected]>
kyle-sexton added a commit that referenced this pull request Oct 5, 2026
…re them (#705)

No related issue: Phase 8 step 4 of the org GitHub Actions conventions
migration (finish retiring superseded runner-policy contracts).

## Summary

After #704, 73 older `melodic-software/ci-workflows/*` contracts stayed
in the live `policy.json` only because tests read them as historical
evidence. This moves them to
`components/runner-policy/fixtures/historical-contracts.json` and points
those tests at the fixture, so the live policy admits only the nine
v0.36.0 (`fb56986`) contracts consumers can pin.

## Fix

- `policy.json`: 73 entries removed by text splice; nothing else
changes. Live entries plus the fixture equal the previous `policy.json`
key for key and value for value.
- `runner-policy.test.mjs` and `repin-policy-lockstep.test.mjs`: tests
that read those entries now read the fixture (or the live policy merged
with it); assertions are unchanged, and tests that state "the policy
contains X" also assert the renamed successor is live at `fb56986`. A
new test checks the live policy admits none of the historical contracts.
- READMEs: the runner-policy and claude-lanes notes point at the
fixture; `managed-files-guard/README.md` now names the `fb56986` pin the
guard actually uses.

## Verification

- `npm run test:runner-policy` 297 pass (was 296);
`test:dependabot-policy` 47; `repin-policy-lockstep` 23;
`lint:runner-policy` and `lint:dependabot-automerge-lockstep` pass;
biome and markdownlint clean.
- A fresh-context verifier checked the diff: no test deleted, no
assertion removed or loosened, fixture deep-equals the removed entries.

## Related

- #704 (first 47 retired), #697 (v0.36.0
contracts).

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
kyle-sexton added a commit that referenced this pull request Oct 6, 2026
No related issue: prerequisite contracts that unblock the automated
claude-lanes repin in #715.

## Summary

Registers the nine ci-workflows reusables at the v0.38.2 tag
`cf316d12b4a14fbdb96a339b7ad00ce935a8cad4` in
`components/runner-policy/policy.json`. Without these entries, the
automated repin
#715 fails `check-policies`. The sync job's routing reads `needs`, and
`pr-review`/`pr-review-security` carry reviewed
`allowedCallerPermissions`
grants, so their new SHA cannot be auto-approved.

## Fix

- `policy.json`: nine new keys. Each body is a verbatim copy of its
`2531d56`
(v0.38.1) entry, text-spliced (121 insertions, 0 deletions). A JSON
comparison
  confirms each copy equals its source.
- `README.md`: review note for v0.38.2.

v0.38.2 adds ci-workflows#696 and #697 on top of v0.38.1. Together they
touch only
`pr-require-checks.yml`, its `aggregate-results` action, a test and the
README.
All nine registered workflow blobs are byte-identical between `2531d56`
and
`cf316d1` (confirmed with `git rev-parse <sha>:<path>`). No input,
secret, caller
permission or `runs-on` routing moved. The `2531d56` entries stay until
every
consumer repins.

## Verification

- `git diff --stat 2531d56 cf316d1` in ci-workflows: only the six files
above.
  Blob comparison of the nine reusables: all identical.
- `npm run test:runner-policy`: 297/297 pass. `npm run
lint:runner-policy`: pass.
- With #715's patch applied on top locally, `npm run test:runner-policy`
passes
297/297 (previously 4 failures in CI), and
`CI_REPOSITORY_VISIBILITY=public
  npm run lint:runner-policy` passes.
- Pre-commit hooks pass: markdownlint, biome, typos, gitleaks,
editorconfig.

## Related

- #715 (repin this unblocks)
- #713 (same change for v0.38.1)

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

https://claude.ai/code/session_01S6P1ZfQhbydBZNKz2LUfnf

---
_Generated by [Claude
Code](https://claude.ai/code/session_01S6P1ZfQhbydBZNKz2LUfnf)_

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