Skip to content

Bootstrap the official FTW Home Assistant app - #1

Merged
frahlg merged 6 commits into
mainfrom
agent/bootstrap-ftw-addon
Jul 22, 2026
Merged

frahlg merged 6 commits into
mainfrom
agent/bootstrap-ftw-addon

Conversation

@frahlg

@frahlg frahlg commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

  • add the FTW app manifest, image wrapper, docs, assets, and compatibility record
  • run Core as the main process and restart Optimizer with capped backoff
  • keep self-update off and let Home Assistant Supervisor own update and rollback
  • add native amd64 and aarch64 build, smoke, signing, SBOM, beta, and stable-promotion checks
  • preserve and credit useful work from Erik Arenhill's add-on and feat(ha): first-party Home Assistant add-on (deploy/homeassistant) ftw#620

Runtime contract

Core and Optimizer use separate version and digest pins. Optimizer uses only protocol 1 over /run/ftw-optimizer/optimizer.sock. Optimizer faults do not affect Core readiness. /data/drivers stays under user control; managed drivers use /data/driver-repository.

The release pins remain placeholders. This pull request does not publish an image or claim production readiness.

Checks run

  • repository and compatibility validation for bootstrap, beta, and stable gate fixtures
  • YAML parse, Python compile, Bash syntax, ShellCheck, actionlint, and Hadolint
  • native local image build
  • setup and Core-only health
  • Optimizer handshake and restart without a Core health failure
  • clean stop, Core exit propagation, no updater process, and /data/drivers retention
  • the same smoke test with the published Optimizer v1.3.2-beta.1 index digest

Stable gate

Stable stays blocked until a real Home Assistant OS and Supervisor pilot passes install, boot, persistence, update, rollback, and fallback against the exact beta manifest digest.

@frahlg
frahlg marked this pull request as ready for review July 22, 2026 06:29
@frahlg
frahlg merged commit a8496f4 into main Jul 22, 2026
5 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 881e6c4576

ℹ️ 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".

Comment thread scripts/smoke.sh
Comment on lines +68 to +70
if docker exec "${name}" bash -ceu \
'for process in /proc/[0-9]*/cmdline; do tr "\0" " " <"${process}"; printf "\n"; done' \
| grep -q ftw-updater; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Detect updater processes reliably

Because this script runs with pipefail, this grep -q pipeline can evaluate false even when a matching ftw-updater process is present: grep -q exits as soon as it sees the match, and if docker exec is still writing process cmdlines it can receive SIGPIPE/non-zero, making the whole if false. In containers with enough processes or long cmdlines, the smoke test can miss the self-updater it is supposed to reject; capture the process list first or avoid -q under pipefail.

Useful? React with 👍 / 👎.

@frahlg
frahlg deleted the agent/bootstrap-ftw-addon branch August 7, 2026 13:07
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