plateprocess.dev · PLATE release v0.12.0

Release Track Bootstrap And Repair

Release-Track Bootstrap and Repair Lifecycle

Research Question

Determine the canonical lifecycle for standing release-track artifacts in a new PLATE repository:

Sources

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:

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:

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:

  1. release-major, release-minor, release-patch, and legacy release branches present.
  2. Exactly one open Release issue representing the standing target (Next Release before packaging, renamed to a concrete version at packaging time).
  3. No duplicate open Next Release issues.
  4. Major, Minor, and Patch labels available for work routing.
  5. After packaging, a newly spawned Next Release issue for subsequent work.

Never-initialized state

A repository should be treated as never initialized when all of the following are true:

  1. None of the standing release-track branches exist.
  2. There is no open or closed Release issue history.
  3. There is no versioned release history (for example, no prior tags or versioned .agentic/releases/vX.Y.Z/ directories).
  4. 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:

This is not a bootstrap case; it is a repair case.

Recommendation

Canonical lifecycle

  1. 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 Release issue exists when the repository is first initialized.
  2. Packaging/finalization is owned by gh plate release finalize.
    • It should rename or replace the active Next Release issue with the concrete versioned release issue as part of packaging.
    • It should immediately create the next standing Next Release issue so negotiation can continue without a gap.
  3. 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

Recovery flow until dedicated automation exists

Until init/repair automation lands, the safe manual recovery flow is:

  1. Run gh plate bootstrap --apply to recreate missing release-track branches and labels.
  2. Inspect current state with gh plate release status.
  3. If no active Next Release issue exists, create exactly one from .github/ISSUE_TEMPLATE/release.yml with title Next Release.
  4. If duplicate open Next Release issues exist, consolidate manually and leave only one canonical target.
  5. Re-run gh plate release status and 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.