Skip to content

chore(distribution): arm sync automerge for agent-plugins, cursor-plugins and claude-code-proxy - #524

Merged
kyle-sexton merged 2 commits into
mainfrom
chore/arm-ci-gate-targets
Sep 4, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
chore/arm-ci-gate-targets

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: melodic-software/github-iac#367
No related issue: follow-up recorded on each disarmed target's own comment in sync-manifest.yml; its removal trigger has fired.

Summary

Drops automerge: false from the three Phase 4 sync targets that were disarmed only because their default branches carried no required status checks: agent-plugins, cursor-plugins and claude-code-proxy. Each now emits the four ci-gate contexts, and github-iac#367 makes them required.

Fix

  • Remove the three automerge: false keys and replace each "Disarmed" comment with the dated evidence that armed it.
  • Reword the codex-plugins note, which described it as the lone covered marketplace target.

Merge order: after github-iac#367 is merged and deployed, so the first armed sync PR into each repository is gated by the four required contexts from the start.

Verification

  • bash distribution/sync-manifest.test.sh: 312 PASS, 0 FAIL, with the edited manifest.
  • Probe PRs agent-plugins#12, cursor-plugins#25 and claude-code-proxy#215 each showed pr-title / pr-title, do-not-merge / do-not-merge, pr-issue-linkage / pr-issue-linkage and ci-status SUCCESS after the callers landed on main.
  • After github-iac#367 deploys, gh api repos/melodic-software/<repo>/rules/branches/main lists the four contexts under required_status_checks for all three.

Related

  • melodic-software/github-iac#367 and fix(typos): allow DUM as scansion vocalization #349: the ruleset extension.
  • agent-plugins#11, cursor-plugins#24, claude-code-proxy#214: the caller workflows.
  • agent-plugins#12, cursor-plugins#25, claude-code-proxy#215: the closed probe PRs.

…gins and claude-code-proxy

All three now carry the four ci-gate contexts on main (agent-plugins#11,
cursor-plugins#24, claude-code-proxy#214), each verified by an
empty-commit probe PR showing pr-title, do-not-merge, pr-issue-linkage
and ci-status SUCCESS, and github-iac#367 extends the org ci-gate
ruleset to them. The removal trigger recorded on each `automerge: false`
key has fired, so the keys go and the codex-plugins note no longer
describes lone coverage.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 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-09-04T06:39:16.793909Z 769c695 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.

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Sep 4, 2026
@claude

claude Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

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


Code review complete

  • Gather context (PR body, diff, changed files)
  • Read distribution/sync-manifest.yml diff in full
  • Check for correctness / maintainability issues
  • Check for inline-comment-anchorable findings
  • Post summary comment

The three per-target rewrites (agent-plugins, claude-code-proxy, cursor-plugins) and the codex-plugins note reword are internally consistent, well-dated, and match the stated verification evidence. automerge is confirmed absent fleet-wide now (grep automerge distribution/sync-manifest.yml only matches the doc-comment prose at line 320), consistent with "absent key = armed default."

Finding (not anchorable to a changed line — see contract note)

Stale preamble now contradicts the file it introduces. distribution/sync-manifest.yml#L322-L328, just above targets:, still reads:

The three surviving opt-outs are NOT roster vintage. Each names a live per-target blocker at its own key, with its own removal trigger; all three share one root cause — their default branches sit outside the org ci-gate ruleset... codex-plugins entered in the same Phase 4 window and IS armed, because it carries ci-gate.

This block wasn't touched by this PR, but the PR removes the last three automerge: false keys in the file (confirmed via grep -n automerge above returns zero target-level hits). So the manifest now asserts "three surviving opt-outs" directly above a targets: block that contains none — a self-contradiction in the exact kind of decision-rationale prose this PR exists to keep accurate. Since this predates the diff and no changed line carries it, I can't anchor it inline per the review contract; flagging it here instead. Recommend folding it into this PR (or a fast super-tiny follow-up) before merge, e.g. replacing the "three surviving opt-outs" paragraph with a short note that the fleet is now fully armed, keeping the general "absent key = armed default" framing.

No other issues found in the diff itself — the mechanical edits (comment removal + automerge: false removal + comment rewrite) are correct and match the PR's verification section.

@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: 769c695f71

ℹ️ 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 distribution/sync-manifest.yml Resolved
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count.

@kyle-sexton

Copy link
Copy Markdown
Member Author

Held with do-not-merge until github-iac#367 is merged and deploy.yml has applied requires-ci=true to the three repositories. Merge order matters: this change arms automerge, so the first armed sync PR into each repository must already be gated by the four required contexts. Verification before merging: gh api repos/melodic-software/<repo>/rules/branches/main lists ci-status, pr-title / pr-title, do-not-merge / do-not-merge and pr-issue-linkage / pr-issue-linkage for agent-plugins, cursor-plugins and claude-code-proxy.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Sep 4, 2026
@kyle-sexton
kyle-sexton merged commit 313c35c into main Sep 4, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the chore/arm-ci-gate-targets branch September 4, 2026 14:44
kyle-sexton added a commit that referenced this pull request Sep 22, 2026
…ion (#593)

Refs: melodic-software/github-iac#528
No related issue: follow-up recorded on the disarmed target's own
comment in sync-manifest.yml; its removal trigger has fired. Same shape
as #524, which armed the previous three.

**Draft, and deliberately so: this depends on
melodic-software/github-iac#528 being merged AND applied (`pulumi up`,
dispatched by a human as `github-iac-production-deploy-v1` from `main`).
Merging this first would arm sync pull requests into a repository the
org `ci-gate` ruleset does not yet cover, which is exactly the defect
the `automerge: false` key existed to prevent.**

Before marking this ready: set the `Armed as of` date in the target
comment to the date github-iac#528 is applied. The sibling targets date
that line by their apply day (2026-09-04, when github-iac#367 applied);
the 2026-09-22 written here is the day the emitter landed and this
branch was cut.

## Summary

`melodic-software/claude-code-account-rotation` was the last sync target
carrying `automerge: false`. The key was there for one stated reason:
the repository sat outside the org `ci-gate` ruleset until github-iac
flipped its `requires-ci`, so an armed sync pull request would have
merged with nothing gating it. The stated removal trigger was that flip,
in the change that lands the `ci.yml` emitting `ci-status`.

Both halves have now happened. claude-code-account-rotation#95 landed
the `ci.yml` whose `ci-status` job aggregates every lane and carries the
pull-request contract as steps of that one check, and github-iac#528
flips `RequiresCi: true` so the property-gated `ci-gate` ruleset makes
`ci-status` required there.

## Fix

- Remove the `automerge: false` key and its disarm rationale from the
`melodic-software/claude-code-account-rotation` target. Removal rather
than `automerge: true`: the manifest documents absent-means-true as
opt-out policy-as-data (`distribution/sync-manifest.mjs`, "Absent means
true"; `distribution/README.md` "Ownership model"), so the target
inherits the fleet default arming.
- Replace it with the dated arming evidence each sibling target carries,
which is the shape the file's own header comment requires ("their keys
were dropped with the dated evidence recorded at each target").

No other key changes. The file header's "No per-target opt-out remains"
line becomes true again with this removal, so it needs no edit.

## Verification

- `bash distribution/sync-manifest.sh validate` — `Manifest valid: 35
components, 13 targets`, exit 0, with the edited manifest staged.
- `bash distribution/sync-manifest.test.sh` — 308 PASS. The 7 failures
are pre-existing on unmodified `main` in this Windows checkout (symlink
rejection, Git index-inspection failure injection, and the two
call-batching instrumentation assertions); `main` fails the same 7 plus
4 more that a `npm ci --prefix distribution` in this branch's worktree
resolves. No failure is attributable to this change.
- `bash harness/shell/run-tests.sh
distribution/check-claude-settings-targets.test.sh` — one failure, case
[5], byte-identical on unmodified `main`.
- `grep -c "automerge: false" distribution/sync-manifest.yml` — 0, the
post-restore check #299 pre-registered for this shape.
- lefthook `pre-commit` (editorconfig, typos, gitleaks) clean.

## Related

- melodic-software/github-iac#528 and #527 — the `requires-ci` flip this
waits on. Do not mark this ready before that apply lands.
- melodic-software/claude-code-account-rotation#95 (issue #93) — the
`ci.yml` that emits `ci-status`.
- #524 — the same change for `agent-plugins`, `cursor-plugins` and
`claude-code-proxy`, and the precedent for the arming-evidence comment.
- `runner-policy` enrollment for this target is deliberately NOT in this
PR. The entry's own comment names the requires-ci flip as the moment to
take it up, and it is warranted: `distribution/README.md` "Runner-policy
consumer handoff" makes the enrolled set an adoption list rather than a
visibility class, `claude-code-plugins` is the public precedent, and the
hosted-only shape (`selfHostedCi: false`, `exceptions: {}`, a fixed
`ubuntu-24.04` gate job) is explicitly supported. It stays out because
the README requires the repo-local `.github/runner-policy.json` and the
gate job to land in the target's own integration PR in the same change
that adds the component here; today that repository's `.github/`
contains only `workflows/`.

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

Co-authored-by: Claude Opus 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