Skip to content

feat(linux): pinned home AppImage installer and box ensure recovery - #16

Merged
karlorz merged 2 commits into
fork-mainfrom
karlorz/home-installer-appimage
Oct 10, 2026
Merged

karlorz merged 2 commits into
fork-mainfrom
karlorz/home-installer-appimage

Conversation

@karlorz

@karlorz karlorz commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

ELI5

Orca can now live in the box user's home directory, so Update Bot's Computer keeps the executable alongside its settings. The ensure script remembers the selected fork release and can download that exact version again.

What Changed

  • Add a checksum-verified Linux x86_64 AppImage installer at ~/.local/opt/orca/, the ~/bin/orca-ide-newbie launcher, a saved release pin, one verified previous image, and light install/restore contracts.
  • Add the home-aware orca-box-ensure.sh entry point. The existing box-specific script is preserved as orca-box-ensure-deb.sh for profile recovery and attended deb fallback. Document the outer ensure predicate change.
  • Add a Linux home-AppImage updater opt-in: the managed launcher leaves checks, downloads, and restarts to the ensure installer. In-app checks provide guidance without a package-install recovery card. Ordinary AppImages and system deb/rpm keep existing behavior.
  • Document the published-artifact smoke and the future-release boundary. The currently installed v1.4.222-1 predates the opt-in; full updater suppression requires a new fork release containing this change.

On the attended box, installed v1.4.222-1 side-by-side, installed the persistent scripts, changed only the Orca block of outer ensure, and retained the current /opt process and Fork-5 profile. Box-local files are documented here; they are outside the git diff.

Why

A user-owned AppImage survives the box's preserved-home restore and supports non-root update classification. The fork already publishes this artifact, so this uses the existing package format and recovery logic. A saved pin makes ensure repair predictable and keeps version changes attended. The installer touches no system package files or AppArmor policy.

Linked Issue

Attended fork maintenance request; no linked issue.

Visual Proof

N/A — installer/restore work has no layout changes. Isolated Xvfb + Playwright CDP readback of the published AppImage returned version 1.4.222-1, updater status idle, and No package install recovery is available. A temporary renderer screenshot was captured and removed with smoke data. The new in-app guidance is covered by a CI test; a packaged build containing it remains to be validated.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Light local checks passed:

  • Bash syntax for the four shell scripts and edited box ensure script; git diff --check; README links; JavaScript test syntax; pinned oxfmt check on changed code/metadata.
  • Network-free shell contracts: release selection, pin re-download, offline repeat, paths with spaces, checksum/marker/download failures, interrupted switch repair, verified rollback preservation, CLI/profile forwarding, and installer lock.
  • Direct Node execution of the actual TypeScript policy: 15 boundary assertions; launcher CLI catalog parity.
  • Real fork AppImage download + SHA256 and AppImage package marker verification; CLI --version.
  • Isolated Xvfb/background AppImage startup with temporary HOME/config/cache/profile; Playwright CDP updater readback and cleanup. Live /opt PID/start time preserved.
  • Installed persistence helpers: offline --ensure, --installed, and status check passed.

Added Vitest coverage for installer contracts, policy boundaries, and the managed updater's check/download/install guards. This worktree has no dependencies installed. Full lint/typecheck/Vitest/build are delegated to GitHub CI per the task's light-local constraint; local pre-commit dependency hook is unavailable. No end-to-end download replacement or actual platform Update was performed.

AI Disclosure

Implemented with the OpenAI API assistant, with advisory read-only subagent review. Parent inspected the code and ran the local checks above.

Review

Parent reviewed installer/updater paths. Advisory review led to a shared fallback CLI dispatch list, explicit home-install failure exit, an interrupted-switch marker, and preservation of verified previous bytes. The AppImage marker-to-non-root mapping was checked directly in existing code.

Agent skill upstream boundary

  • Not applicable; no agent skill installer source is changed.

Notes

  • Coolify HOLD; no production deployment, release tag, global network/Tailscale changes, or live GUI restart.
  • Launcher is box-specific and defaults to --no-sandbox and extract-and-run. Documented sandbox opt-out and FUSE mode; /opt AppArmor/SUID package remains intact.
  • Installer runs on Linux x86_64 only; updater opt-in is gated to a Linux home AppImage. SSH install/ensure runs on the execution host. No mobile or remote wire changes.
  • Karl owns merge approval. Keep the feature inventory planned until it lands on fork-main.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • Visual proof / N/A reason provided
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path impact considered
  • Full lint, typecheck, tests, and build pass — CI verification pending. GitHub reported no PR checks at handoff; the workflow and Actions setting are active.

Install fork AppImages under HOME with checksum and package marker validation,
preserve the Fork-5 launcher and explicit /opt fallback, and document box
persistence integration and isolated smoke evidence.

Opt identified ensure-managed home AppImages out of in-app update checks,
downloads, and installs so the saved release pin owns restoration.
@karlorz
karlorz merged commit d8481b1 into fork-main Oct 10, 2026
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