[BUG] Workspace appliances package stale component revisions #144

Closed
opened 2026-10-16 20:40:02 +02:00 by erikinkinen · 2 comments
Owner

Summary

Workspace-mode appliance packaging can include an old resolved-revisions.json
that does not describe the components used for the image. The package script
copies the existing Integration output file without checking it against the
selected catalog and component checkouts.

Reproduction

  1. Leave a revision snapshot from an earlier build in out/resolved-revisions.json.
  2. Select newer component revisions and build an appliance in workspace mode.
  3. Compare the packaged snapshot with the selected component revisions.

run-scenario.sh refreshes the shared snapshot only in monorepo mode;
package-appliance.sh copies it whenever it exists.

Expected and actual behavior

Every package should record the actual selected component revisions. A missing,
dirty or mismatched checkout should fail before a new receipt is published.

The completed exit-status guest instead packages a snapshot naming Launchd
74b71882, while the selected and compiled Launchd is 25efde7a. Independent
source and ELF checks establish the latter; the stale snapshot cannot establish
the image's source identity. This finding concerns incorrect build metadata.

Environment and identity

  • Integration executor: b950621d428ca39ded2443678738b3a6d7462c27.
  • Launchd: 25efde7aab9ddd6b1bc324ee7a2c3ed1a2fe2d8e.
  • Workspace source selection, local x86_64 appliance build.
  • The runtime Integration checkout is selected separately from the executor.

Evidence and prior checks

The stale source file and its packaged copy are identical. The selected raw
Launchd ELF matches the authenticated build output; its maintained capacity and
strip transformations match the packaged executable and image manifest.
The original nested-script guest completes successfully.

Tracking

Appliance build work,
Launchd resolver repair,
phase completion.

  • Generate the receipt from every selected checkout at the packaging boundary.
  • Preserve workspace/monorepo selection and executor/runtime separation.
  • Cover stale and missing snapshots, late checkout failures and atomic publication.
  • Update the build documentation and remove the obsolete snapshot entry point.
## Summary Workspace-mode appliance packaging can include an old `resolved-revisions.json` that does not describe the components used for the image. The package script copies the existing Integration output file without checking it against the selected catalog and component checkouts. ## Reproduction 1. Leave a revision snapshot from an earlier build in `out/resolved-revisions.json`. 2. Select newer component revisions and build an appliance in workspace mode. 3. Compare the packaged snapshot with the selected component revisions. `run-scenario.sh` refreshes the shared snapshot only in monorepo mode; `package-appliance.sh` copies it whenever it exists. ## Expected and actual behavior Every package should record the actual selected component revisions. A missing, dirty or mismatched checkout should fail before a new receipt is published. The completed exit-status guest instead packages a snapshot naming Launchd `74b71882`, while the selected and compiled Launchd is `25efde7a`. Independent source and ELF checks establish the latter; the stale snapshot cannot establish the image's source identity. This finding concerns incorrect build metadata. ## Environment and identity - Integration executor: `b950621d428ca39ded2443678738b3a6d7462c27`. - Launchd: `25efde7aab9ddd6b1bc324ee7a2c3ed1a2fe2d8e`. - Workspace source selection, local x86_64 appliance build. - The runtime Integration checkout is selected separately from the executor. ## Evidence and prior checks The stale source file and its packaged copy are identical. The selected raw Launchd ELF matches the authenticated build output; its maintained capacity and strip transformations match the packaged executable and image manifest. The original nested-script guest completes successfully. ## Tracking [Appliance build work](https://git.erikinkinen.fi/erix/integration/pulls/12), [Launchd resolver repair](https://git.erikinkinen.fi/erix/launchd/issues/21), [phase completion](https://git.erikinkinen.fi/erix/integration/issues/65). - [x] Generate the receipt from every selected checkout at the packaging boundary. - [x] Preserve workspace/monorepo selection and executor/runtime separation. - [x] Cover stale and missing snapshots, late checkout failures and atomic publication. - [x] Update the build documentation and remove the obsolete snapshot entry point.
Author
Owner

44328857 derives each appliance receipt from the selected clean checkouts and publishes complete rows atomically. The old snapshot entry point is removed; the runtime checkout remains separate from the executor. The build manual update will follow.

[44328857](https://git.erikinkinen.fi/erix/integration/commit/443288573aff8cc378b581ab1bb186bb34b74144) derives each appliance receipt from the selected clean checkouts and publishes complete rows atomically. The old snapshot entry point is removed; the runtime checkout remains separate from the executor. The build manual update will follow.
Author
Owner

The packaging repair is published in 44328857, and the manual update is published in Docs 8e2af9b9. The obsolete snapshot entry point has been removed. All four acceptance items are complete.

The packaging repair is published in [44328857](https://git.erikinkinen.fi/erix/integration/commit/443288573aff8cc378b581ab1bb186bb34b74144), and the manual update is published in [Docs 8e2af9b9](https://git.erikinkinen.fi/erix/docs/commit/8e2af9b913a06c31c108e4da6e8654ab90b6d52f). The obsolete snapshot entry point has been removed. All four acceptance items are complete.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:18 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/integration#144
No description provided.