Problem
Trunk-based orgs increasingly use GitHub merge queues. The merge_group event runs against the would-be-trunk commit immediately before it lands. cascade currently has no way to emit a lane that validates that prospective trunk state with its own logic, so the merge queue can only run whatever generic checks the user wires up by hand.
Proposal
Emit an optional merge_group-triggered lane that runs cascade's validate (and dry-run build) callbacks against the merge-queue candidate ref, so the commit about to become trunk is checked with the same logic that will orchestrate it post-merge.
This is trunk-integrity, not PR-CI: it gates the transition into trunk, which is squarely cascade's domain. It is read-only (no state writes, no releases, no deploys), opt-in, and self-contained.
Schema sketch
# manifest.yaml (top-level)
merge_queue:
enabled: true
Acceptance criteria
Related: the additional-triggers work (schedule / repository_dispatch / workflow_run) and the PR plan-preview / manifest-validation issues.
Problem
Trunk-based orgs increasingly use GitHub merge queues. The
merge_groupevent runs against the would-be-trunk commit immediately before it lands. cascade currently has no way to emit a lane that validates that prospective trunk state with its own logic, so the merge queue can only run whatever generic checks the user wires up by hand.Proposal
Emit an optional
merge_group-triggered lane that runs cascade's validate (and dry-run build) callbacks against the merge-queue candidate ref, so the commit about to become trunk is checked with the same logic that will orchestrate it post-merge.This is trunk-integrity, not PR-CI: it gates the transition into trunk, which is squarely cascade's domain. It is read-only (no state writes, no releases, no deploys), opt-in, and self-contained.
Schema sketch
Acceptance criteria
cascade generate-workflowemits amerge_grouplane when enabled (opt-in, non-breaking when omitted).merge_groupevent triggers the lane and reports pass/fail based on the dry-run callbacks.Related: the additional-triggers work (schedule / repository_dispatch / workflow_run) and the PR plan-preview / manifest-validation issues.