Skip to content

fix(ftw): preserve exact Core and bundle release identity - #7

Merged
frahlg merged 1 commit into
mainfrom
agent/ftw-image-tag-contract
Aug 17, 2026
Merged

frahlg merged 1 commit into
mainfrom
agent/ftw-image-tag-contract

Conversation

@frahlg

@frahlg frahlg commented Aug 17, 2026

Copy link
Copy Markdown
Member

What changed

  • Pass the pinned Core release tag to the running container as FTW_IMAGE_TAG.
  • Set FTW_BUNDLE_VERSION from the installed Home Assistant add-on version.
  • Accept Core's current OCI version contract without weakening tag, digest, or revision checks.
  • Keep the Optimizer label check exact.
  • Update sync, validation, release-gate, and smoke tests for beta and stable.

Why

Core now builds a beta once with the future stable package version, then promotes the exact tested digest. Without these mappings, a beta add-on could report the stable Core version and a promoted stable add-on could keep its baked beta bundle version.

The runtime values now stay truthful:

  • FTW_IMAGE_TAG remains the exact pinned Core tag, including -beta.N.
  • FTW_BUNDLE_VERSION follows the version installed by Home Assistant Supervisor.
  • Digest and source-revision checks remain exact.

This is the companion packaging fix for srcfl/ftw#701 and the exact beta-to-stable image contract in srcfl/ftw#929.

Checks

  • 135 unit tests
  • repository validation
  • Python compile check
  • Bash syntax check
  • local image build and full smoke test
  • real GHCR contract checks for current stable and beta Core images
  • independent review: no P0, P1, or P2 findings

ShellCheck and Home Assistant lint remain CI gates.

@frahlg

frahlg commented Aug 17, 2026

Copy link
Copy Markdown
Member Author

@codex review\n\nExact head: 863d88d. Please verify Core-only OCI label compatibility, exact tag/digest/revision binding, FTW_IMAGE_TAG, Supervisor FTW_BUNDLE_VERSION override, and beta-to-stable promotion without rebuild.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 863d88db12

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@frahlg
frahlg marked this pull request as ready for review August 17, 2026 07:17
@frahlg
frahlg merged commit 7ca2a37 into main Aug 17, 2026
5 checks passed
@frahlg
frahlg deleted the agent/ftw-image-tag-contract branch November 11, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant