Skip to content

Retire the publish-on-merge release trigger - #1476

Merged
ptr727 merged 2 commits into
developfrom
feature/retire-publish-on-merge
Sep 9, 2026
Merged

ptr727 merged 2 commits into
developfrom
feature/retire-publish-on-merge

Conversation

@ptr727

@ptr727 ptr727 commented Sep 9, 2026 •

Copy link
Copy Markdown
Owner

Settles #1467, which found that spec/files.json applies the publish-release.yml interface contract to releaseTrigger: publish-on-merge while 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 is main and the actor is ptr727-codegen[bot] or dependabot[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" and WORKFLOW.md D4.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 one appliesTo list 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 the spec/scope-model.md selector table drop the token from the release-trigger vocabulary.
  • spec/files.json's publish-release.yml entry applies to two-phase and dispatch-only.
  • registry/repos.json moves aiopurpleair to two-phase, which spec/validate.py requires in the same change and which the live repository now satisfies: its publisher calls publish-plan-task.yml and its push trigger is main-only.
  • .agents/skills/merge-and-release/SKILL.md step 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.json records the passes.

Filed rather than fixed here

  • The 33 pre-existing findings those passes raised against that same unit, none introduced by this change.
  • MediaTools, which is registered two-phase and 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

    • Removed support for the publish-on-merge release trigger.
    • Releases now use two-phase, dispatch-only, or none as the supported trigger options.
    • Updated release guidance to use explicit dispatching when automatic publishing does not apply.
  • Configuration

    • Updated the aiopurpleair repository to use the two-phase release model.
    • Adjusted validation and workflow coverage to reflect the supported release options.

ptr727 and others added 2 commits September 9, 2026 08:20
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]>
Copilot AI lite review requested due to automatic review settings September 9, 2026 16:33
@coderabbitai

coderabbitai Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: a355a089-f5c1-4f6f-8d90-7db04f0f095e

📥 Commits

Reviewing files that changed from the base of the PR and between cf7be2b and 8607a44.

⛔ Files ignored due to path filters (3)
  • .claude-plugin/fleet-skills/.source-digests/merge-and-release is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/merge-and-release/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .github/skills/merge-and-release/SKILL.md is excluded by !.github/skills/**
📒 Files selected for processing (7)
  • .agents/skills/merge-and-release/SKILL.md
  • registry/repos.json
  • registry/repos.schema.json
  • reports/canonical-review.json
  • spec/files.json
  • spec/scope-model.md
  • spec/validate.py

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The release configuration removes publish-on-merge from supported values, validation, scope documentation, and workflow applicability. The aiopurpleair repository changes to two-phase, and the release procedure removes mode-specific dispatch guidance.

Changes

Release trigger contract

Layer / File(s) Summary
Supported trigger definitions and validation
registry/repos.schema.json, spec/validate.py, spec/scope-model.md, spec/files.json
The schema, validator, scope model, and workflow specification now support two-phase, dispatch-only, and none without publish-on-merge.
Repository migration and release procedure
registry/repos.json, .agents/skills/merge-and-release/SKILL.md, reports/canonical-review.json
aiopurpleair changes to two-phase. The release procedure uses generic explicit dispatch instructions. The canonical review report records a new pass.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 8607a

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)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: retiring the publish-on-merge release trigger.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/retire-publish-on-merge

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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-merge from the releaseTrigger enum and corresponding validation/selector documentation.
  • Narrow spec/files.json's publish-release.yml interface contract to apply only to two-phase and dispatch-only.
  • Migrate the remaining registry entry (aiopurpleair) off publish-on-merge and 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.

@ptr727

ptr727 commented Sep 9, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727
ptr727 merged commit c23a4b8 into develop Sep 9, 2026
9 checks passed
@ptr727
ptr727 deleted the feature/retire-publish-on-merge branch September 9, 2026 17:03
ptr727 added a commit that referenced this pull request Sep 9, 2026
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]>
ptr727 added a commit that referenced this pull request Sep 10, 2026
…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
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.

2 participants