Repository navigation
Retire the publish-on-merge release trigger - #1476
Conversation
The publish-release.yml interface contract in spec/files.json applied to releaseTrigger publish-on-merge and required the plan job to call publish-plan-task.yml, a task that implements two-phase semantics and has no publish-on-merge path: its push arm publishes only for ptr727-codegen[bot] or dependabot[bot] on main. A repository that genuinely published on merge could not satisfy the contract while its declared trigger stayed true, so satisfying it changed the repository into a different trigger. GOVERNANCE.md "Release Model" already states fleet-wide that a human merge never auto-publishes on its own, so the value contradicted the rule rather than naming a supported mode. aiopurpleair was its only holder and has since migrated, which leaves the value with no users, so retire it rather than give the plan task a mode governance forbids. Removes the token from the schema enum, spec/validate.py's vocabulary, the spec/scope-model.md selector table, and the publish-release.yml appliesTo list. Moves aiopurpleair to two-phase in the same change, since validate.py would otherwise reject the entry, and its publisher now calls publish-plan-task.yml. The merge-and-release skill's step 5 states the fleet fact directly rather than enumerating a retired value. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Four whole-unit review passes over the merge-and-release procedure found the rewritten sentence asserting operational facts the live fleet does not satisfy. Naming the release triggers re-armed the staleness that made the sentence wrong in the first place, and every attempt to characterize which publishers auto- publish was defeated by a repository: one gates a push in a job named setup rather than plan, and another filters its push trigger on shipped paths, so a promotion merge there may start no run at all. Cut the rationale rather than qualify it again. Step 5 keeps the instruction, read the trigger and dispatch explicitly unless it reads none, and the rule it rested on stays where it is already stated, in GOVERNANCE.md "Release Model", WORKFLOW.md D4.1, and the operational-vs-release-workflow skill this one already routes to. Records the review passes over the unit in reports/canonical-review.json. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (7)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe release configuration removes ChangesRelease trigger contract
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change retires the obsolete publish-on-merge release mode and moves aiopurpleair to two-phase releases. The release configuration and dispatch guidance are aligned, with no remaining merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
The retired trigger is removed consistently across schema, validation, selector docs, contract scoping, and the sole registry holder with no remaining references in code paths that enforce the vocabulary.
Pull request overview
Retires the publish-on-merge release-trigger mode from the fleet vocabulary and updates the registry/spec contracts so the remaining release trigger values match the workflows they can actually satisfy.
Changes:
- Remove
publish-on-mergefrom thereleaseTriggerenum and corresponding validation/selector documentation. - Narrow
spec/files.json'spublish-release.ymlinterface contract to apply only totwo-phaseanddispatch-only. - Migrate the remaining registry entry (
aiopurpleair) offpublish-on-mergeand update the merge-and-release skill text to stop enumerating the retired trigger.
File summaries
| File | Description |
|---|---|
| spec/validate.py | Drops publish-on-merge from the validated release-trigger vocabulary. |
| spec/scope-model.md | Updates the selector vocabulary table to match the retired trigger. |
| spec/files.json | Removes publish-on-merge from the publish-release.yml contract appliesTo list. |
| reports/canonical-review.json | Records a new canonical-review stamp for the merge-and-release skill unit. |
| registry/repos.schema.json | Removes publish-on-merge from the releaseTrigger enum. |
| registry/repos.json | Updates aiopurpleair to releaseTrigger: two-phase to match the reduced enum. |
| .github/skills/merge-and-release/SKILL.md | Regenerated distribution reflecting the updated merge-and-release procedure wording. |
| .claude-plugin/fleet-skills/skills/merge-and-release/SKILL.md | Regenerated plugin distribution reflecting the updated procedure wording. |
| .claude-plugin/fleet-skills/.source-digests/merge-and-release | Updates the source digest for the regenerated merge-and-release skill. |
| .agents/skills/merge-and-release/SKILL.md | Removes the retired-trigger enumeration from the canonical skill source. |
Review details
- Files reviewed: 10/10 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@coderabbitai review |
✅ Action performedReview finished.
|
Three surfaces describing the release caller stub said its merges publish. `publish-plan-task.yml` has said the opposite since it was written, in its own header comment and in the branch its `push` arm takes: a human merge that reaches the trigger still leaves the plan at `publish=false`, and every job the plan gates skips. The claim was already stale before #1476 retired the `publish-on-merge` release trigger, and that retirement leaves nothing behind it at all. Raised by CodeRabbit as an outside-diff finding on the `develop -> main` promotion PR #1489, where it cannot be fixed directly, so it lands here first. ## What changed - `docs/reusable-workflows.md` "Adopting the Release Chain" no longer says a NuGet or PyPI repo's merges should auto-publish. It says the push trigger is not the release gate, names the task that is, and routes the gate's own conditions to `WORKFLOW.md` D4.1 rather than paraphrasing them. The paragraph's first sentence already states the trigger policy, so the lead-in below it no longer restates one. - `catalog/snippets/workflows/publish-release.yml` and its embedded copy in the same document drop the descriptor entirely. The file's own `on:` block sits two lines under it and is the authority a reader wants. - `catalog/snippets/workflows/README.md`'s row for that stub does the same. ## Why nothing here states the gate's conditions in prose A first attempt did, and every one of the four findings the local review pass drew was against that paraphrase. It dropped the actor allowlist and the code-affecting filter that `WORKFLOW.md` D4.1 and `GOVERNANCE.md` both keep. It read as if a `workflow_dispatch` from any ref publishes, where the task exits non-zero off `main` and `develop`. It described the human-merge path without the warning the task deliberately raises on it. And the replacement trigger descriptor identified the shape by the one trigger that never publishes for a human, contradicting its own paragraph two clauses earlier. The rule has three correct statements already, so a fourth was the defect. The second round deleted the paraphrase rather than narrowing it. ## Verification `prose_lint.py`, `repo_gate.py` across eol, eol-coverage and sha-pin, `spec/validate.py`, `spec/audit.py --selftest`, `spec/workflow_reuse.py --selftest`, `build_dist.py --check`, `ruff format --check`, `ruff check`, `mypy`, the `unittest` suite at 1178 passed, and `docker_lint.py` over its seven linters. `canonical_review.py check` reports no carried canonical unit changed, and a `local_review.py` receipt covers this content. A tree-wide sweep for the same claim in any other wording found none outside these three surfaces. Every other statement of the rule already reads "a human merge never auto-publishes". The snippet and the document's embedded copy stay byte-identical, which an assertion in the edit checked rather than the eye, and the review pass re-checked programmatically afterwards. Two local strict-review passes ran, raising five findings. The four above shaped the result. The fifth is pre-existing and untouched by this diff, filed as #1497 rather than fixed here: the Docker delta list in the same section never says to remove the `push:` block, so a Docker repo following it keeps a trigger that section's own policy forbids. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01817rckKywjfoaEV5WF9TKs Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
…g, and the Release-Trigger Retirement (#1489) Promotes thirteen merged pull requests from `develop` to `main`. ## What this promotes - **#1486** State the `host-tools.json` carry rule and stop the empty-overlay warning. `spec/files.json` now requires the declaration unconditionally, and `host_gate.py` no longer warns on an empty one. - **#1484** Fan the validator's pytest leg out over a `python-versions` input, so a caller with more than one interpreter no longer silently loses its other legs to a pinned 3.13, with an entry guard that refuses a value `fromJson` would otherwise admit. - **#1476** Retire the publish-on-merge release trigger, which `spec/files.json` applied to an interface contract whose task has no publish-on-merge path. - **#1479** Ship the release caller snippet and retire the not-yet-released claim. - **#1474** Exclude `node_modules` from markdownlint and Docker lint discovery at any depth. - **#1468** Move the carried-surface cluster off decision, recording the measurements and what stays unmeasured on the issues that hold them. - **#1498** Correct the release-caller snippet's publish-on-merge claim, raised by CodeRabbit against this promotion and fixed on its own branch, since a promotion PR's head is `develop`. - **#1494** Settle the markdown lint exclusion seam as a nested config. - **#1492** Check declared deployment environments and fix the carried-payload rule. - **#1501** Move the session handoff to a chain of labeled issues. Two of its units are verbatim fidelity, `AGENTS.md` "Session Scope" and `GOVERNANCE.md` "Communicating with the User", so every fleet repo picks them up on its next resync. - **#1505** Refuse a bare handoff link rather than reading it as no successor, answering a finding raised against this promotion. - **#1504** Reject a deployment environment name or branch carrying surrounding whitespace, answering two more. - **#1506** Encode an environment name before it becomes a path segment, delete a branch that cannot fire, and dedupe a registry name by case, answering two more and declining one on a reproduction. ## Closing references A `develop`-targeted pull request registers no closing reference, so the issues those pull requests settled close with this promotion. #1470 is the one that needs a word. Two of its seven acceptance items are not met as literally written, and the maintainer's decision to close it here anyway, with the basis for both, is recorded on the issue itself. Closes #1483 Closes #1473 Closes #1487 Closes #1482 Closes #1475 Closes #1470 ## Left open deliberately - **#1499**, **#1500** follow-ups #1501 filed rather than fixed. - **#1503** the validator-looser-than-its-consumer class, filed from findings on this promotion and deliberately not closed by it. Five instances recorded, and the fix is a design decision rather than a check. - **#1497** the Docker delta list never says to remove the `push:` block. - **#1472** the fleet-level pin call, deliberately not pre-empted by #1479. - **#1321**, **#1464** carry #1468's decision record and remain in their own scope. ## Verification `origin/main..origin/develop` merges clean, no end-of-line conflict. Each promoted pull request ran the fleet gate set on its own branch before merging; this promotion adds no content of its own. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01817rckKywjfoaEV5WF9TKs
Settles #1467, which found that
spec/files.jsonapplies thepublish-release.ymlinterface contract toreleaseTrigger: publish-on-mergewhile the task that contract names,publish-plan-task.yml, has no publish-on-merge path at all. Its push arm publishes only when the ref ismainand the actor isptr727-codegen[bot]ordependabot[bot], so a repository that genuinely published on merge could not satisfy the contract while its declared trigger stayed true.Of the three resolutions the issue put up, this takes retirement, for two reasons the issue names and one it does not.
GOVERNANCE.md"Release Model" andWORKFLOW.mdD4.1 already state fleet-wide that a human merge never auto-publishes, so the value described an intent the fleet's own contract forbids rather than a supported mode, which is why giving the plan task a publish-on-merge path would have meant changing that rule first. aiopurpleair was the only registry holder and migrated in ptr727/aiopurpleair#92, so the value has no users. And dropping it from the oneappliesTolist while leaving it in the enum would have left a declared trigger with no publisher contract at all.What changes
registry/repos.schema.json,spec/validate.py, and thespec/scope-model.mdselector table drop the token from the release-trigger vocabulary.spec/files.json'spublish-release.ymlentry applies totwo-phaseanddispatch-only.registry/repos.jsonmoves aiopurpleair totwo-phase, whichspec/validate.pyrequires in the same change and which the live repository now satisfies: its publisher callspublish-plan-task.ymland its push trigger ismain-only..agents/skills/merge-and-release/SKILL.mdstep 5 no longer enumerates the vocabulary. Distributions regenerated.On the skill sentence
Four whole-unit review passes ran over that step. The first rewrite asserted the fleet rule as an operational fact, which the live fleet does not satisfy, and a second attempt to name the exception was defeated by the two repositories that carry it. The final text is the bare instruction, and the rule it rested on stays where it is already stated.
reports/canonical-review.jsonrecords the passes.Filed rather than fixed here
two-phaseand genuinely publishes on a human merge, with KiCadLibrary latently behind an unset repository variable. That is a repository to migrate rather than a value to keep, and the registry entry is false today either way.🤖 Generated with Claude Code
https://claude.ai/code/session_012vP1JrEcH7AGq3DWjMASFM
Summary by CodeRabbit
Release Process
publish-on-mergerelease trigger.two-phase,dispatch-only, ornoneas the supported trigger options.Configuration
aiopurpleairrepository to use thetwo-phaserelease model.