Release-Track Bootstrap and Repair Lifecycle
- Issue: #319
- Researched by: GitHub Copilot CLI
- Date: 2026-06-03
- Status: Completed
Research Question
Determine the canonical lifecycle for standing release-track artifacts in a new PLATE repository:
- when and where
release-major,release-minor,release-patch, and legacyreleaseshould be created; - whether standing release targets should exist as one
Next Releaseissue, separate default Major/Minor/Patch release issues, or some other model; - how to distinguish a never-initialized repository from corrupted or drifted release state; and
- what recovery flow should recreate missing issues/branches safely without duplicating release state.
Sources
- Epic #306: release-ceremony refinement scope and acceptance criteria
- Question #319: required answer signal and current repository state
src/plate_core/bootstrap.pysrc/plate_core/release.pysrc/plate_core/cli.py.github/ISSUE_TEMPLATE/release.ymlAGENTS.md
Findings
Current implementation already implies a split ownership model
The repository now treats standing release-track branches and standing release-track issues as separate lifecycle concerns:
gh plate bootstrap --applycreatesrelease-major,release-minor,release-patch, and legacyreleasewhen they are absent.gh plate release statusinspects openReleaseissues, activeNext Releasetargeting, and on-hold Epics, but it does not create release issues.gh plate release finalizeis explicitly documented as the place that should ensure the next standingNext Releaseissue after packaging/tagging, but that automation is still a stub.
That split is useful: bootstrap owns repository skeleton state, while finalize owns ceremony rollover after a concrete version is cut.
One standing `Next Release` issue is the right source of truth
PLATE should use one open Release issue titled Next Release as the standing planning target for upcoming release negotiation.
Separate standing Major Release, Minor Release, and Patch Release issues would duplicate existing routing metadata:
- track intent already lives on work items through
Major/Minor/Patchlabels; - integration flow already has corresponding branches (
release-major,release-minor,release-patch); gh plate release statusalready models “targeted to active Next Release” versus “on hold”.
Adding three standing release issues would create a second planning taxonomy without adding a new decision point. The release question is not “which issue bucket exists?” but “which work should target the one upcoming release?”
Healthy, never-initialized, and drifted state are distinguishable
Healthy standing state
A healthy repository in the refined model has:
release-major,release-minor,release-patch, and legacyreleasebranches present.- Exactly one open
Releaseissue representing the standing target (Next Releasebefore packaging, renamed to a concrete version at packaging time). - No duplicate open
Next Releaseissues. Major,Minor, andPatchlabels available for work routing.- After packaging, a newly spawned
Next Releaseissue for subsequent work.
Never-initialized state
A repository should be treated as never initialized when all of the following are true:
- None of the standing release-track branches exist.
- There is no open or closed
Releaseissue history. - There is no versioned release history (for example, no prior tags or versioned
.agentic/releases/vX.Y.Z/directories). - There is no work already using the refined release-track labels and targeting model.
This is the “fresh repo bootstrap” case.
Drifted or corrupted state
A repository should be treated as drifted when only part of the standing state exists, or when release history proves the system has already been initialized. Examples:
- one or more release-track branches are missing but others exist;
- more than one open
Next Releaseissue exists; - a concrete release issue was created during packaging, but no fresh
Next Releaseissue was spawned afterward; - release tags/history exist but no standing release issue remains open;
- track labels or targeted Epics exist, but the standing release issue is missing.
This is not a bootstrap case; it is a repair case.
Recommendation
Canonical lifecycle
- Initial creation is owned by
gh plate bootstrap --apply.- It should ensure standing release-track branches and labels exist for a new repository.
- It should also evolve to ensure a single open
Next Releaseissue exists when the repository is first initialized.
- Packaging/finalization is owned by
gh plate release finalize.- It should rename or replace the active
Next Releaseissue with the concrete versioned release issue as part of packaging. - It should immediately create the next standing
Next Releaseissue so negotiation can continue without a gap.
- It should rename or replace the active
- Repair is owned by a dedicated idempotent command rather than ad hoc manual recreation.
- The repository currently lacks this automation.
- A follow-up command should detect missing branches/issues, distinguish bootstrap from repair, and recreate only the missing artifacts without duplicating healthy state.
Artifact model
- Branches:
release-major,release-minor,release-patch, and legacyrelease. - Labels:
Major,Minor,Patchon change-driving issues. - Standing release issue: exactly one open
Releaseissue titledNext Release. - No separate default Major/Minor/Patch release issues.
Recovery flow until dedicated automation exists
Until init/repair automation lands, the safe manual recovery flow is:
- Run
gh plate bootstrap --applyto recreate missing release-track branches and labels. - Inspect current state with
gh plate release status. - If no active
Next Releaseissue exists, create exactly one from.github/ISSUE_TEMPLATE/release.ymlwith titleNext Release. - If duplicate open
Next Releaseissues exist, consolidate manually and leave only one canonical target. - Re-run
gh plate release statusand verify that Epics now appear as targeted or on-hold against a single active release target.
Follow-up implementation work
The repository still needs a dedicated automation slice for standing release artifact creation and repair. That work is now tracked as follow-up Feature issue #320 under Epic #306.