Repository navigation
feat: preview apps and built-in features before an image update - #571
Merged
Merged
Conversation
Publish rentnerproxy-app-requirements.json with each release: the target's app runtime environment and what it does with each built-in feature. The update dialog checks installed apps against that environment in the Rust core, reads built-in feature ownership from the handoff journal, and hides the verified image reference while the target cannot run the combination. Part of #457. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The preview server function now takes the tag the dialog shows and answers only while it is still the current target. A verified image is cached for an hour only once its app requirements verify too, the requirements upload finishes before readiness is uploaded, and a deployment without the native app runtime reports no installed apps instead of an unknown list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 18 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Pass the target check into lifecycle::check_target so it is testable without an installer, exercise the target-check route on the app UI socket, teach the readiness publisher test about the requirements generator and its separate upload, and format the generator, which autofix.ci leaves to contributors. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #457 (Beta 4). Before an operator changes the image, the update dialog now previews the configured built-in features, the app packages the target release requires for them, their active references, and the combinations the target cannot run.
What changes
New release asset
rentnerproxy-app-requirements.json(schema 1, ≤ 16 KiB)runtimeProfile,platformApi,appProtocol,uiBridge,engineCapabilities) and what it does with each of the six built-in features (built-inorretired, plus the official app IDs that provide the profile).rentnerproxy-update.json(release ID, tag, channel, publication time) and to its sourcerevision.rentnerproxy-update.jsonstays at schema 1 and unchanged. Readers match asset names exactly, so older platforms ignore the new asset.web/src/config/app-requirements.config.tsand the bundleddocker/production/apps/catalog/installer.json. Both joinPOLICY_SOURCE_PATHS, so the release fails if the trusted automation checkout and the tagged source disagree.generate-release-app-requirements.tsvalidates its output with the reader's own schema.publish-release-readiness.shruns it in both modes and uploads requirements in a separategh release uploadbefore readiness, so a reader that sees readiness also finds the requirements.publish-building-release.shclears it as a stale control asset.RUNTIME_PROFILE/PROTOCOL_VERSIONin the Rust core and to the web App API constants.Loader (
releases.service.ts): the readiness download is generalised into one bounded control-asset loader (exact-name match, size cap, redirect host allowlist). Requirements load only after readiness parsed, and a failure there never drops the verified image.ApplicationUpdategains anappRequirementsblock (verified | pending | invalid | unavailable). A result is cached for the full hour only when the image and the requirements are both verified; otherwise it is rechecked after five minutes, as for unverified images.Rust core (all checks stay in the core)
check_compatibilityis parameterised:check_environmenttakes anyManifestEnvironment; the current values are the newRUNTIME_PROFILE/PROTOCOL_VERSIONconsts.Installer::check_targetchecks each installed release against a suppliedTargetEnvironment. Manifests come from the accepted signed catalog checkpoint, matched by archive digest; nothing is downloaded and the staged tree is not trusted. Releases the catalog no longer lists areunknown.POST /v1/catalog/target-checkon the existing app UI socket (web UID peer only, 4 KiB body, bounded and validated environment, blocking work under the existing semaphore). It covers running, disabled and recovery-required installations.CatalogEntry.providersandInstallation.providers(nullable when the installed release is unlisted) are exposed in/v1/catalog; the strict web contract requires them.Preview (
getApplicationUpgradePreviewHandler, owner only,no-store)inspectLegacyFeaturesInTransactionwith the same source registry as the App API (read-only transaction). No source is registered yet, soconfiguredandreferencesshow as "not inspectable yet" instead of guessing.appProviderProfilesmoved tolib/AppUi/identifiers.tsbecause client code may not importserver/.server/AppRuntime/contract.tsre-exports it.Decisions
platformand not inspected as unconfigured with zero references, or a handoff still in progress.unknown), an unavailable app runtime, or missing or invalid requirements. These show as incomplete or unavailable with guidance, and the verified reference stays available.built-inwith no app IDs. A later extraction PR flips its feature toretiredand lists the official app.Verification
rust:1.99.1-bookworm):cargo clippy --all-targets --all-features -D warningsis clean. The new tests and existingapp_install,app_manager::{catalog,lifecycle,ui}tests pass (45 passed, 3 ignored). rustfmt is left to autofix.ci.bun run typecheckandbun run lint(including type-aware rules) are clean. New and updated unit tests cover:🤖 Generated with Claude Code