Repository navigation
Description
Phase: 5 | Priority: P0
Prove the complete Marketplace-to-appliance path before moving the first production feature.
Scope
-
Consume two independently built reference versions through the real trusted catalog/SDK/package path.
-
Exercise backend/UI, scoped calls, providers/events, lifecycle, data migration, offline operation and package-aware restore together.
-
Add short reproducible interruption and rejection cases using isolated fixtures on native AMD64/ARM64.
-
Keep the reference app internal; this gate adds no public seventh app.
-
Exercise source submission -> isolated candidate build/validation -> exact admin approval -> controlled Release asset publication -> signed catalog promotion -> direct platform verification/install. Test changed/rejected/unapproved candidates without allowing them into the installable catalog.
-
Block Marketplace web/database/accounts/review/ratings/statistics endpoints while independent catalog/package delivery remains reachable, then separately block distribution and all network access. Use native architectures and short isolated fixtures.
Dependencies
- RentnerProxy/platform#454
- RentnerProxy/platform#456
- RentnerProxy/platform#457
- RentnerProxy/marketplace#4
These are implementation prerequisites; app-to-app delivery gates do not create runtime dependencies.
Acceptance criteria
- A fresh platform discovers, installs and activates the signed reference app without a Marketplace account.
- Updating backend and UI needs no platform rebuild/restart; frontend/generation mixing and duplicate jobs are rejected.
- Bad signatures/archives, unsupported capabilities and permission/context escalation are rejected without damaging the active app.
- Interrupted download/staging/migration/cutover, compatible rollback, incompatible-data recovery and event cursor expiry have deterministic outcomes.
- Restore works from captured packages/data without remote hosting; base proxy and local administration remain operational during optional app failure.
- Both architectures pass bounded integration/Docker/recovery checks; normal PRs do not start or wait for endurance runs.
- A fresh platform installs and updates a newly approved reference version while all Marketplace services are stopped; no central login, package proxy, common GitHub token or per-download ticket is used.
- Cached listing/display assets and installed backend/UI survive full network loss. New uncached downloads require a reachable package source, and expired trust metadata cannot authorize new network installations.
- Source tag movement, changed bytes/evidence after approval, forged publication results, revoked pending approval and unreviewed next versions cannot become installable; retry/interruption never substitutes or duplicates a release.
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
test(apps): compare Greeting grants with the last grant publication
feat(apps): run declared SQL data migrations during activation (#568)
test(apps): gate published Greeting distribution outages and trust ex…
test(catalog): cover publication guards and run PostgreSQL tests in CI (
ci(apps): report the native app runtime reference on every pull reque…
feat(apps): tell catalog, package-source and network outages apart (#589
test(apps): prove UI updates, coalesced retries and removal of the pu…
RentnerKev commentedon Nov 26, 2026
The reference gate runs in the App Runtime Reference workflow, jobs "Native app runtime reference (amd64)" and "(arm64)" (ARR below), on native runners. It uses the published Greeting 1.0.0 and 1.0.1. Rust and Web Tests are the CI jobs of those names; they run on AMD64 only. Deviations and follow-ups are listed below the table.
app-offline-restore.ts(#573) starts a fresh production appliance built from the revision. It reads the live signed catalog with the shipped root and installs the newest Greeting until it reachesrunning. Gates step 3 (#569) installs with the Marketplace blocked.privileged_published_greeting_lifecycle(#543) installs from an empty store. All of these run in ARR.deactivateand an install get 409, and the release host serves one archive. Since #583, the generation-scoped UI fixtures (app_manager::ui::tests::,privileged_web_socket_serves_generation_scoped_ui) run natively on both architectures (step "Verify privileged app IPC and UI boundaries natively"). Browser bridge mixing:app-ui-frame.test.tsx(Web Tests).privileged_published_greeting_lifecycle, ARR).privileged_signed_greeting_package(ARR) refuses bytes that differ from the signed identity. Malicious archive entries:unsafe_archive_entries_are_refused_before_publication(#588, Rust). Bad signatures:flipped_role_signatures_leave_the_accepted_catalog_unchanged(#588, Rust). Permission escalation: a 1.0.2 release that asks for a new grant is refused with 409, with the active app unchanged and no asset requested (gates, ARR). Unsupported engine capabilities:engine_capability_changes_are_preflighted_for_engine_providers(Rust). Context escalation:app_ipc::tests::privileged_,root_ui_,root_provider_andapp_manager::ui::tests::run natively on both architectures since #583. Alsoauthority.test.tsandgateway.test.ts(Web Tests).privileged_published_greeting_lifecycle(#544). Staging, claim and cutover:privileged_signed_lifecycleboots from interrupted journal states. #587 adds an update interrupted after the next generation was reserved, and uncertain grants. Migration: #586,privileged_published_greeting_data_migrations, repackages Greeting as four releases and drives them through the real catalog and manager. It checks a fresh migration, a failing migration that restarts 1.1.0 with the data unchanged, a migrated update, a rollback refused withincompatibleData, and a committed migration plus a failed start that ends inrecoveryRequired.recoverthen finishes without migrating again. Migration runner:privileged_app_data_migrations(#568). Compatible rollback: the offline rollback inprivileged_published_greeting_lifecycleandprivileged_restore_published_greeting. All of these run in ARR. Event cursor expiry:authority.test.tsandauthority.db.test.ts(Web Tests only).privileged_restore_published_greeting(#545) runs on a fresh volume with--network none. It rejects a corrupt bundle, resumes an interrupted replay, repeats idempotently, rolls back offline and replaces in place.app-offline-restore.ts(#573) restores an operator backup into an appliance without network. Both run in ARR. App crash:production-app-runtime.tschecks readiness and the proxy listener (Production Smokes on AMD64, "Native ARM64 appliance" on ARM64). Manager exit: "a stopped app manager leaves the proxy and administration running, another owned child does not" (#574, Web Tests).--profile short). The long profile runs only through a manual Runtime Reliability dispatch. The required-check setting is still open (see below).--network none. Signed metadata and release assets come from separate direct hosts.market.rentner.devandapi.github.compoint at a stand-in that records zero connections. Every request is an anonymous GET without query, authorization, cookie, token, ticket or API key header. The gates re-sign the official Greeting catalog under a test root; the shipped production root is exercised byapp-offline-restore.ts.stale), the UI bytes are served and the data is intact. In steps 2, 4 and 5, unreachable assets or metadata now reportpackageSourceUnavailableornetworkUnavailable(#589), andcachedmarks packages that need their source. In steps 1 and 6, expired metadata cannot authorize, and the checkpoint stays unchanged.Criterion 9. The publication side runs in RentnerProxy/marketplace CI: jobs TypeScript, Rust and PostgreSQL, all on AMD64.
--no-tags.publisher-auth.test.ts). test(catalog): cover publication guards and run PostgreSQL tests in CI marketplace#92 adds "defers queued work when the Marketplace returns $name".approvalRevoked, and the row stays failed.submittedandawaitingReviewrows are not publication work. On the platform, an unapproved next version never reaches the download (privileged_signed_greeting_package, ARR).publisher_plan_reconciles_prior_runs_and_refuses_a_conflicting_signed_release. test(catalog): cover publication guards and run PostgreSQL tests in CI marketplace#92 adds "rejects duplicate catalog releases and unexpected or repeated assets without writing". It also runs "persists the app submission lifecycle through concurrent PostgreSQL connections" in the new PostgreSQL job. On the platform, a retried download commits exactly the signed archive (privileged_published_greeting_lifecycle).Deviations and follow-ups
api/openapi.jsonandapp.config.jsondiffer. test(apps): prove UI updates, coalesced retries and removal of the published reference app #584 therefore asserts the generation switch through the native presentation metadata that 1.0.1 adds, and asserts thatuiEntryChangedisfalse.Closing as completed.