Repository navigation
docs(spec): schedule a minor before its breaking work lands (AST-017 FR46-FR50, DEC-15) - #6888
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis ReportView Storybook for this PR · View Sandbox for this PR
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
Thanks for recording this as an extension of the existing release-compatibility spec rather than a new record. The proposal is clear and well scoped: derive the release target from the fixed group's shared version and the pending Changesets, refuse incompatible work while that target is a patch, and point contributors to replacement-first deprecation or an owner-approved minor plan. I found no contradiction with the current cleanup, deprecation, or minor-planning rules, and no unrelated change bundled in.
Approval needs one maintainer decision first. The new admission rules are not settled by the current spec, and the decision is recorded as pending, so a spec owner needs to approve this exact proposal to establish those rules as governing authority, or say what should change. Once that decision is made, the follow-up implementation and its tests can be reviewed against the approved text.
[Automated review]
c27d817 to
a58e8dd
Compare
|
/approve-spec a58e8dd |
The publishable packages are a fixed group, so one `[breaking]` Changeset moves every package to a new minor. FR31 and FR37 already require an owner-approved plan before a removal ships, but both are evaluated by the release owner at freeze — nothing evaluated them when such a Changeset merged into main. The release changed shape, and the owner found out at cut time. FR46-FR50 close that with the smallest rule that works: - FR46 — main targets a patch by default. No file, no ceremony, no per-change approval; it is simply what main is for. - FR47 — a minor is scheduled explicitly by an owner, naming the version and the day, BEFORE its breaking work lands. Pending Changesets must not switch the mode: the entry being judged cannot be its own authorization. - FR48 — while main targets a patch, `[breaking]`, `planned-removal`, and `incompatible-fix` are refused, and FR28's replacement-first deprecation is the admissible route. - FR49 — the schedule fails closed: malformed, carrying extra fields, a version that is not the minor successor of the published version, a day that has passed, or published versions that disagree. Main stays on its patch default rather than inheriting a mode from an untrustworthy input. - FR50 — returning to the patch default is ordinary post-release cleanup, needing no approval of its own, and the refusal names the target and both ways forward. Deliberately small. The statement carries a version and a date and nothing else — no Changeset list, no lifecycle ids, no per-change manifest, no second approval path. This gate answers one question, patch or scheduled minor, and leaves every other requirement where it already lives: FR28's deprecation lifecycle, FR31's cleanup mapping, FR37's release planning, and ordinary spec and code review all continue on their own terms, neither restated nor enforced here. DEC-15 records the three rejected alternatives: deriving the mode from the pending Changesets, which is circular; a per-change authorization record with cleanup and lifecycle ids, which buys accuracy at the cost of bureaucracy on every breaking change; and an open-ended schedule, which would outlive its release and quietly hold main in minor mode. Replaces the earlier derived-target draft of this record, which computed the target from the pending bumps and carried a frozen-plan schema. Both are gone: the mode is now set before the work, not inferred from it. Specification change only. No published package changes, so no Changeset. Test plan: - `pnpm check:knowledge` — templates and records aligned - `pnpm check:repo` — passes
a58e8dd to
c3929a3
Compare
|
/approve-spec c3929a3 |
There was a problem hiding this comment.
Thanks for extending the existing release-compatibility spec rather than adding a new record. The proposal is clear and well scoped: main targets a patch by default, a minor becomes available only when an owner schedules it, and incompatible work follows replacement-first deprecation until then. I found no unrelated change bundled in, and the refused categories line up with the classifications the current spec already defines.
The owner decision this needed is now recorded for this revision, so I am happy for this to proceed as the governing text. Enforcement and its tests can then be reviewed against the approved rules in the follow-up work, including keeping the existing narrow emergency path intact.
[Automated review]
Exact decision needed
May an incompatible change enter
mainwhen the release it ships in is a patch, and what decides that?Today nothing answers it at merge time.
spec:AST-017FR31 and FR37 require an owner-approved plan before a removal ships, but both are evaluated by the release owner at freeze. When a[breaking]Changeset merged, no check consulted them.That matters because the publishable packages are a
fixedgroup: one[breaking]Changeset moves all ten packages to a new minor. So a single merge could change the shape of the release, and the owner would find out at cut time. That is exactly what happened before #6887.Existing authority searched
spec:AST-017(authority: current, this record) — the canonical owner of "compatibility classification, lifecycle state, release-pair delta classes, and the evidence that admits them". An admission gate is that, so this extends the existing owner rather than creating a record, per AGENTS.md.spec:AST-042,architecture:cli-surface,spec:AST-030— own CLI admission and CI lane routing; untouched.scripts/release/active-release.mjs— I checked whether an authoritative release-intent mechanism already existed before proposing one. It keeps.release/active.jsonand.release/plan.json, but those are written at cut time and exist only on arelease/v*branch;.release/is untracked onmain. There is no existing main-resident release-intent mechanism.release target,minor target,breaking change,deprecation lifecycle: nothing covers this, and no other open PR edits AST-017.Decision
FR46–FR50, plus DEC-15. Two states:
[breaking]entry waiting to merge is the work the mode governs, never evidence for it. Schedule first, then land.[breaking],planned-removal, andincompatible-fixare refused; FR28's replacement-first deprecation is the route. Explicitly scoped: "This gate decides patch-versus-minor admission and nothing else."Rejected alternatives
Recorded in DEC-15:
Claim scope and non-goals
Governs only whether main is on a patch or a scheduled minor, and what that admits.
Out of scope and unchanged: the authoring vocabulary (no new Changeset tag; FR7's tiering stands), every lifecycle condition (FR28, FR31, FR32, FR37 apply on their own terms), whether any particular surface should be deprecated, CI job topology, and CLI command admission (
spec:AST-042). The gate adds no per-change record, manifest, cleanup id, or second approval path.The public Release Process wiki remains the operational authority and gets a concise update once this is accepted — not before, per this record's existing rule that operational projections link here and cannot create competing rules.
Evidence and implementation relationship
The failure this prevents, measured on real trees with
npx changeset status:mainbefore #6887 — one[breaking]among 22 Changesetsmain@ebd939bafter #6887One contributor's Changeset moved the whole release by a minor, with no plan and no owner decision. That is the gap FR46–FR50 close.
#6889 implements it. This record is valid without it — until it lands, maintainers apply these requirements in review, exactly as this record's Current-state impact already says for the rest of the lifecycle.
Scope
Validation
pnpm check:knowledge— templates and records alignedpnpm check:repo— passesgit diff --check— cleanOne file changed, +105 lines (down from +144 in the earlier revision).