Skip to content

feat(marketplace): add local install, update and recovery management #456

Done

Description

@RentnerKev

Phase: 4 | Priority: P1

Expose the local app manager through an administrative Marketplace interface in platform.

Scope

  • Combine remote available versions with authoritative local inventory, state, compatibility and grants.

  • Provide install/update/activate/deactivate/remove and explicit compatible recovery controls through journaled operations.

  • Show new permissions, required engine/platform changes, data migration/recovery consequences and dependency blocks before changes.

  • Keep installed-app management available offline without any central Marketplace account.

  • Browse the independent public catalog directly and persist its last-verified metadata/display assets. Provide a bundled bootstrap snapshot so the local Marketplace interface remains informative before a first successful refresh.

  • Install/update exact approved digests directly from the controlled public GitHub Release distribution with no Marketplace account, account-service request, website proxy or shared GitHub token.

  • Keep optional ratings/statistics/account linking in the separately scoped RentnerProxy/platform#464; optional service failures cannot delay this interface or change trusted version selection.

Dependencies

These are implementation prerequisites; app-to-app delivery gates do not create runtime dependencies.

Acceptance criteria

  • An administrator can discover/install/update/remove the reference app and inspect accurate progress/failure/recovery state.
  • Unsupported versions, extra grants and blocked dependencies are explained before side effects; ordinary viewers cannot manage apps.
  • Concurrent actions/repeated clicks are idempotent and stale resource revisions are rejected.
  • Remote catalog failure preserves local inventory, recovery actions and already installed apps.
  • Package/backend/UI generations stay consistent and app-domain data is preserved by default on removal.
  • Public website accounts and the local platform session remain separate authentication domains.
  • With the Marketplace website, database and account APIs stopped, a clean administrator can list available apps and install/update from valid independent catalog/package sources without a central account.
  • Catalog, package-source and full-network outages are distinguished. Cached catalog/local inventory stays visible, required display assets remain available, and an uncached package is honestly shown as requiring its source.
  • No rating, statistics, reporting response or central login is awaited to render local management or commit an installation/update.

Planning baseline: Beta 4.
This issue schedules future work; backlog creation does not implement or deploy it.
Use focused project checks and short integration/recovery tests. Endurance runs belong to release preparation. Normal PRs need no additional documentation files or screenshot commits unless requested.

Activity

  1. added this to the v1.0.0-beta.4 milestone on Nov 15, 2026
  2. added
    enhancement
    area: ui
    on Nov 15, 2026
  3. RentnerKev commented on Nov 26, 2026

    @RentnerKev
    MemberAuthor

    The acceptance criteria are covered by merged changes and tests. Deviations and limits are listed below the table.

    Where the tests run: ARR is the App Runtime Reference workflow, jobs "Native app runtime reference (amd64)" and "(arm64)". Rust is the CI job "Rust". Web Tests is the CI job "Web Tests".

    Criterion Covered by
    1. An administrator can discover, install, update and remove the reference app and see accurate progress, failure and recovery state privileged_published_greeting_lifecycle (#543, #544; ARR, Rust) lists the catalog and installs Greeting 1.0.0. Interrupted and corrupt update downloads report operationFailed and leave the app unchanged. The test then updates the app, rolls it back offline and restarts it. #584 adds uninstall with the data kept, a reinstall of 1.0.0 with the same UID and the saved greeting, and an offline purge. privileged_signed_lifecycle (#541) covers the recovery actions. UI tests (#534, #541; Web Tests): "installs the signed selection and opens it after authorized app discovery", "updates to the offered signed version and reflects the confirmed generation", "recovers a completed lifecycle action when its POST response is lost" and "manages a local app while the catalog is unavailable and confirms retained-data uninstall". Managing apps requires the Owner role.
    2. Unsupported versions, extra grants and blocked dependencies are explained before side effects; viewers cannot manage apps Owner only (#534): "rejects foreign origins before resolving the session or calling native code" and "rechecks owner access before admitting an installation" (Web Tests). Refusal before side effects: a release that needs a new grant is refused with 409 before staging and with no asset request (privileged_published_greeting_distribution_gates, ARR). Also accepts_only_listed_packages_and_coalesces_identical_requests (Rust). Explanations (#585): an installed app names the newest release it cannot offer and the reason ("explains newer releases that the appliance cannot offer for an installed app"). Dependency refusals get their own dependencyBlocked code ("reports a dependency that blocks an uninstall apart from a conflict", dependency_refusals_are_reported_apart_from_conflicts).
    3. Concurrent actions and repeated clicks are idempotent; stale revisions are rejected accepts_only_listed_packages_and_coalesces_identical_requests, offline_management_coalesces_retries_and_serializes_with_catalog_install and lifecycle_admission_checks_generation_release_state_and_rollback_identity (Rust). In privileged_signed_lifecycle, a wrong digest or a stale generation gets 409 through the socket. Calls to a replaced generation get 412 (gates step 7). After a click the UI disables the button and sends one POST (Web Tests). #584 adds a check on the published Greeting (ARR). Two identical update posts while the update is pending get the same operation. A deactivate and an install get 409, and the release host serves one archive.
    4. A remote catalog failure keeps local inventory, recovery actions and installed apps failed_refresh_keeps_the_last_verified_listing_and_allows_recovery and offline_management_coalesces_retries_and_serializes_with_catalog_install (Rust). privileged_signed_lifecycle runs recover after the catalog server stopped. privileged_published_greeting_lifecycle rolls back and restarts offline with the cached listing. Gates step 8 restarts without any network (ARR). #584 uninstalls and purges offline. UI: "manages a local app while the catalog is unavailable and confirms retained-data uninstall" and install-progress.test.ts (Web Tests).
    5. Package, backend and UI generations stay consistent; removal keeps app data by default In gates step 7 (#569, ARR), the new generation serves the UI of the newly staged package and the old generation gets 412. privileged_web_socket_serves_generation_scoped_ui (Rust) runs natively on both architectures since #583. In #584, the native presentation metadata switches with the generation. Uninstall keeps the data, and purge is a separate, confirmed action (privileged_signed_lifecycle; #584 on Greeting; the UI test in row 4).
    6. Website accounts and the local platform session stay separate By construction. The platform has no Marketplace account code, and catalog management uses only the local owner session. The install transport sends no credentials, and the gates assert that every distribution request is an anonymous GET (ARR).
    7. With the Marketplace stopped, a clean administrator lists apps and installs or updates from the catalog and package sources Gates steps 3 and 7 (#569, ARR). A fresh store lists ready, installs 1.0.0 and updates to 1.0.1. Meanwhile market.rentner.dev and api.github.com point at a stand-in that records zero connections. This is proven at the manager level; the web layer makes no outbound calls.
    8. Catalog, package-source and network outages are told apart; cached data stays visible; uncached packages are shown as needing their source #589 reports catalogUnavailable, packageSourceUnavailable and networkUnavailable. Tests: outages_name_the_source_that_did_not_answer, catalog_outages_keep_their_source_and_are_told_apart_from_network_outages, source_outages_are_reported_by_the_source_that_did_not_answer (Rust), and gates steps 2, 4 and 5 (ARR). Entries carry cached, and the page marks uncached packages ("shows uncached packages as requiring their source after a package source outage", "names the unreachable sources of a failed update and the verified app name", Web Tests). Installed rows carry the name from the verified manifest (installations_carry_the_display_name_of_their_verified_manifest). Row 4 covers the cached listing and inventory.
    9. No rating, statistics, reporting or central login is awaited By construction: that code does not exist. The catalog handler waits only on the local session and the local app manager socket. Install and update finish with all Marketplace hosts blocked (gates, ARR).

    Deviations and limits

    • Bundled bootstrap snapshot (scope): deliberately not implemented. A bundled snapshot goes stale and cannot authorize installs on its own; the appliance needs fresh signed metadata anyway. Until the first successful refresh, the page lists no available apps and names the unreachable source.
    • Icons (criterion 8): there is no icon pipeline, and no app ships icons yet. The display assets are the name, summary and publisher from the signed manifest.
    • Criterion 2: the notes name the reason (grants required, incompatible, dependency), not the individual grants or the blocking resource. A dependency block shows up when the action is submitted, and the refusal happens before any change.
    • Criterion 8: cached is computed when the listing refreshes, so it can lag by up to 60 s. A disabled or removed app whose release is no longer listed shows its app ID after a manager restart.

    Closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uienhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions