# Releases and Integration

---

# Component Releases

_Standards and Conventions / Releases and Integration_

> Qualifying component releases, immutable tags, and starting the next version.

Stabilize a component on its version branch. Release candidates can be tagged
`<component>/v<version>-rc.1`, `-rc.2`, and so on. Tag the qualified final
release as `<component>/v<version>`.

Published candidate and final tags are immutable. Further corrections receive
a new candidate or version; an existing tag must not be moved to different
code. The release records the source revision and declared build inputs used
to produce its package artifacts.

After release, start the next version branch from the final tag. The release
tag remains the selection point for monthly integration, even when subsequent
work has advanced a branch.

---

# Preparing a Monthly OS Release

_Standards and Conventions / Releases and Integration_

> Selecting and qualifying component releases for a monthly OS baseline.

A monthly OS release combines qualified component releases into one Peios
baseline. Prepare each monthly on a temporary `monthly/<os-version>` branch
created from `main`:

1. Select the component releases to include, respecting their dependencies.
2. Merge their exact release tags into the monthly branch using ordinary Git
   merges. Do not merge moving development tips or unfinished component work.
   Components without an update retain their existing versions.
3. Update the Peios edition package and release lock to identify the selected
   package artifacts, source revisions, and dependency closure. Include the
   exact kernel revision from the separate kernel repository.
4. Build and qualify the assembled OS. Passing component tests alone does not
   qualify the selected combination.
5. Advance `main` to the qualified monthly result and tag it
   `peios/v<os-version>`. Publish the qualified artifacts. If the candidate
   changes during integration, repeat the affected validation before
   promotion.
6. Merge the resulting `main` into active forward-development component
   branches and validate those integrations. This gives them the new monthly
   baseline while retaining their ongoing work.

Keep `main` at the previous qualified monthly until the candidate is ready.
Preserve merge ancestry when consolidating releases and feeding the baseline
back into development; do not squash or rebase those integrations.

The monthly source tree should agree with the selected component releases. If
integration requires a change to already released component code, make a
corrected component release and update the selection. Do not silently ship
modified component code under an existing version.

Use temporary integration branches to test prospective combinations throughout
the month. Finding incompatibilities should not wait until the release cut.

---

# Changes Spanning Components

_Standards and Conventions / Releases and Integration_

> Coordinating component changes and testing explicit dependency combinations.

A component branch might need a change from another component. Merging that
component's development branch also incorporates its history, potentially
including work that is not ready for release.

Agree the integration plan before doing this. Either coordinate the affected
component releases as a group, or keep their development branches separate and
test the proposed combination on a temporary integration branch with explicit
dependency inputs. A component release must not accidentally carry unrelated,
unfinished changes into the monthly.

Builds must use declared dependencies. An unreleased sibling component must
not be substituted merely because it happens to be present in the checkout.

---

# Maintenance and Emergency Fixes

_Standards and Conventions / Releases and Integration_

> Maintaining released versions and carrying fixes into supported lines.

Create a maintenance version branch from the release being fixed. For example,
create `authd/0.8.1` from `authd/v0.8.0`, apply and qualify the correction,
then tag `authd/v0.8.1`. Do not start an older-line maintenance fix from newer
development.

Carry applicable fixes into forward development and other supported versions,
adapting and testing them as necessary. An urgent fix can land on the older
line first; carrying it forward remains part of the work.

To update an older OS monthly, create a maintenance branch from its
`peios/v<os-version>` tag, integrate the appropriate component fixes, update
its package selection and lock, and qualify a new OS patch release. Do not
merge the latest `main` into older component or OS maintenance branches: that
would import newer development or release content.

Retain published release tags and their referenced source. The duration of
support for older versions is a separate release policy; this branching model
allows maintenance without promising indefinite support.

---

# Kernel Repository

_Standards and Conventions / Releases and Integration_

> Preserving Linux ancestry and selecting exact Peios kernel revisions.

The kernel remains a separate Git repository with upstream Linux ancestry.
Panorama selects an exact retained kernel commit for each OS release.

Keep Peios kernel versions distinct from their upstream Linux base. Preserve
upstream tags such as `v7.0.9`, and use `peios/v<version>` for Peios kernel
release tags. Kernel maintenance fixes must also be selected and qualified in
the appropriate Panorama release; publishing a kernel commit alone does not
update an OS release.
