Skip to content

docs: ADR-0059 (Proposed) — publish image-only packages in a separate APT component - #162

Merged
bketelsen merged 4 commits into
mainfrom
lucilla/adr-0059-image-component
Oct 24, 2026
Merged

bketelsen merged 4 commits into
mainfrom
lucilla/adr-0059-image-component

Conversation

@frostyard-machines

Copy link
Copy Markdown
Contributor

Summary

Adds core ADR-0059 (Proposed): every codename under repository.frostyard.org/debian/ publishes a second component, image, for packages built for Frostyard images that replace a Debian package (bootc, libostree-1-1, incus* with the 1: epoch). Only snosi's build sandbox enables it, so a plain Debian 13 host never receives them and the frostyard.org APT page no longer needs its pin.

The ADR covers the component name, the rule and the 7 packages (82 files, about 2.8 GB) that move, routing through a component column in apt-publisher's producers.tsv, how snosi enables it (Components: main image in the existing frostyard.sources), migration for hosts and images, the published key location (debian/frostyard.gpg, written and read back by apt-publisher), and the order of changes (apt-publisher → empty image → snosi → move → frostyard.org docs).

Why core: the decision spans apt-publisher (publication and routing), snosi (sources), the frostyard.org docs and the org-wide client contract in design/debian-publication.md. Repogen does not change: its ADR-0003 (single main component) governs its own generator, which no longer writes Frostyard's Debian metadata (ADR-0055).

Design only. No code, workflow or bucket change. Implementation follows in apt-publisher, snosi and frostyard-org after acceptance.

Evidence used:

  • Live trixie Packages (2026-10-24): 82 files of the 7 packages, 2,830,701,680 bytes, amd64 only.
  • Debian (madison, 2026-10-24): libostree-1-1 2025.2-1 in trixie; incus* 6.0.4-2+deb13u11 in trixie-security, 7.0.1-5~bpo13+1 in backports; no bootc; gpu-screen-recorder only in forky/sid.
  • aptly 1.6.3, local filesystem test: publish source replace -component=main,image + publish update adds image to an existing publication in one update; files land in pool/image/…, the pool/main/… copies stay with -skip-cleanup; later publish switch -component=main,image switches both; a fresh publication with an empty image snapshot works.
  • A running snow image (IMAGE_VERSION=20261023083815) has only trixie.sources and debian-backports.sources: installed images carry no Frostyard source.
  • /public.key dearmors to the same bytes as apt-publisher keys/frostyard.gpg and snosi's keyring (SHA256 7c270b81…557f); last modified 2026-01-14; no repository writes it.

Written by Lucilla (apt-publisher owner). Snosi is Murbella's: step 4 needs her review of the sandbox change.

Risk tier

Risk tier: 1 — docs only (a Proposed ADR, an index line, one design-doc reference).

Docs housekeeping

  • New docs started from their category's TEMPLATE.md
  • Every new doc indexed in docs/README.md
  • Cross-links added in both directions (ADR ↔ design)
  • New significant decision recorded as an ADR first, in this PR
  • New/edited ADRs are fact-only (ADR-0051)

Verification

  • make verify green locally (check:docs: 81 docs, 761 links; organization; scripts; 68 tests)

@frostyard-machines

Copy link
Copy Markdown
Contributor Author

Cross-review (reviewer openai/gpt-6.1-sol, coder Claude opus-5.5), base d55b259.

  • Review 1 at 9df19f7: Not ready, 3 blocking findings (host migration of bootc/incus-ui-canonical, the claim about apt upgrade, the separate-codename rationale). All 3 accepted and fixed in ca7a5d6.
  • Re-review at ca7a5d6: findings 1 and 2 resolved, 3 partly resolved: a separate prefix needs an extra URI in deb822, not a second stanza. Accepted and fixed in 90e8877 (one phrase).
  • The review budget is used up, so the fix in 90e8877 has not been reviewed. Not labelled ready-for-human: Brian must either accept the one-phrase fix or authorize one more re-review.
    CI is green at 90e8877. make verify passes locally.

@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Oct 24, 2026
@frostyard-machines

Copy link
Copy Markdown
Contributor Author

Re-review 2 (budget raised by Brian, 2026-10-24) at 90e8877 by openai/gpt-6.1-sol: Ready, Blocking: none. All findings of review 1 and re-review 1 are resolved. CI is green at 90e8877. Label ready-for-human added. ADR acceptance stays with Brian.

bketelsen
bketelsen previously approved these changes Oct 24, 2026
@bsherman

Copy link
Copy Markdown
Contributor

The component split looks sound. The migration requirement should focus on Frostyard's intended consumers: Snosi images snow, sundog and floe, plus the relevant sysext builds. Ordinary Debian hosts were not the intended use of this repository; guidance for users who chose to enable it is advisory, not a requirement for a supported migration path.

Before acceptance, please make the validation criteria explicit:

  • Cover snow, sundog and floe, plus relevant sysext builds, rather than only requiring an unspecified Snosi build to pass.
  • Confirm installed images need no APT-source changes and existing installations can update normally to a post-move image.
  • Retain the proposed rollout order: publish an empty image component, enable it in the build sandbox, then move the packages without changing their versions.

For incidental Debian-host users, a short caveat is enough. Please remove or qualify the blanket Incus downgrade recommendation: successfully downgrading the packages does not establish database compatibility. Upstream warns that an older daemon may reject a database whose schema was upgraded: https://linuxcontainers.org/incus/docs/main/installing/#upgrade-incus. No detailed host migration runbook is needed.

The report-only Debian-name audit and producer-level component routing are non-blocking limitations under this scope. The ADR should frame protection of ordinary Debian hosts as a useful consequence of separating image-build dependencies, rather than a commitment to support those installations.

Recommendation: retain the design, make the Snosi migration checks explicit, and avoid prescribing an unsafe generic Incus downgrade.

@bsherman bsherman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my other comment.

@frostyard-machines frostyard-machines removed the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Oct 24, 2026
…ct, no Incus downgrade advice (review by bsherman)
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Oct 24, 2026
@frostyard-machines

Copy link
Copy Markdown
Contributor Author

Applied @bsherman's review in a087df3: explicit validation (snow, snowfield, sundog, floe builds and the incus sysext; same package versions in the manifests; installed images update to a post-move image with no APT-source change), the rollout order kept, plain Debian hosts framed as a side effect with a short caveat only, and no Incus downgrade advice (with the upstream database warning). snowfield is added because it includes the same bootc packages. Re-review 3 by openai/gpt-6.1-sol at a087df3: Ready, Blocking: none. CI is green at a087df3. Label ready-for-human added again.

@bsherman bsherman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bketelsen
bketelsen requested a review from KyleGospo October 24, 2026 18:59
@bketelsen
bketelsen merged commit 4220e6e into main Oct 24, 2026
3 checks passed
@bketelsen
bketelsen deleted the lucilla/adr-0059-image-component branch October 24, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants