Repository navigation
feat(plugins): deliver the third-party plugin program - #19
Merged
Merged
Conversation
Map each served and reserved shared-data route to its grant, projection and non-shareable exclusions, and add a public list-to-watch handoff test with a persisted source-to-recipient policy and a consumer without the publish capability. [skip ci]
Keep the compatibility verdict shown in update and rollback review while the reviewed package is validated for supported permission scopes; the active-version check now lives with the activation worker. [skip ci]
Reconcile the extension update path with the network-origin activation worker: extension updates keep their readiness-based activation while ordinary packages use the worker that revokes network approvals and restores the previous version on re-trust failure. Review keeps the compatibility verdict and the selected-game choices, and the update screen keeps its per-operation state so unrelated controls stay usable. [skip ci]
Add a status note, based on the code on the integration branch, to the pending runtime and data tasks that had none, and add task 1.21 for the two session tests that still fail. Mark 1.19 as unblocked by 1.18. [skip ci]
Replace the single shared Cargo target with one external target per worktree on this workstation and allow concurrent builds, because a shared target reused another worktree's stale artifacts. Keep the shared target as an option for constrained machines such as the Raspberry Pi. The source packager now only requires an absolute target outside the repository, and the sharing test script accepts an explicit CARGO_TARGET_DIR. [skip ci]
…request Existing installations run builds of main, whose schema versions 10 to 16 differ from the integration branch's versions 10 to 18, so a main database would skip migrations on update. Add design decision 21, two delta requirements with scenarios, tasks 20.1 to 20.4 and a pull request gate to the delivery split. [skip ci]
GamesProposeCustomLaunch and GamesRequestCustomLaunch compared the request against the library entry revision, while the request_action fence that follows compares the host-issued session target revision. An extension cannot satisfy both when they differ, so every Dolphin launch failed with "library entry changed". Resolve the expected revision with the same rule as request_action: target_game.revision for extension sessions, entry.revision otherwise. Add focused tests for the extension/entry revision split and for a runtime recipe with no detected target omitting the base-target plan resource. Full app (1088) and core (685) suites pass. [skip ci]
The host account cache keys the user's chosen match by installation entry key. Removing and re-adding a provider drops only the live rows; the same stable entry key restores the association on the next scan. This regression pins that behavior for the Dolphin uninstall/reinstall flow. [skip ci]
The settings list read approvals under the bundle entry's id, so the extension component's approved folder was never shown. Runtime program approvals had no settings surface at all. List each bundle component's folder and runtime approvals with the component id and the bundle publisher, and add host commands and a settings panel to list and revoke runtime program approvals. Revoking marks the approval unusable and the next Play asks for a new program.
The custom-launch helper and direct launcher clear the environment and copy only an allowlist. XAUTHORITY and Qt variables were missing, so a Qt runtime such as Dolphin aborted in QGuiApplicationPrivate::createPlatformIntegration as soon as it started. Preserve XAUTHORITY and QT_* alongside DISPLAY, WAYLAND_DISPLAY, XDG_*, DBUS_SESSION_BUS_ADDRESS and the locale/path keys. The helper test pins the desktop session keys and still rejects session tokens. Dolphin now receives DISPLAY=:0, WAYLAND_DISPLAY=wayland-1, XAUTHORITY=/run/user/1000/xauth_*, XDG_RUNTIME_DIR and the DBus address. [skip ci]
The launch-method selector printed the reverse-DNS plugin id and the opaque recipe id, and listed every historical proposal from failed attempts. Show one human label per plugin (Dolphin for the Dolphin launch extension, a readable fallback otherwise), keep the selected recipe when it still exists, and never expose recipe ids. The selected status now reads Custom launch method: <label>. [skip ci]
Show the runtime, version and concrete launch arguments in the launch method selector (for example Dolphin 2609 — -b -e Pikmin.rvz) instead of opaque recipe ids. The host resolves the plugin-owned runtime template and the entry's ROM name; the UI falls back to the plugin label when no summary exists. Accept a recipe selection on an entry without a detected target: the store previously required target_json, so selecting the Dolphin method failed even though the runtime recipe is valid at revision zero. Clear and save now agree on that case. Tests cover the selection and the summary. [skip ci]
Record the deferred change for plugin-declared, bounded launch options: plugin-wide defaults and per-game overrides, a host editor, merge and review invalidation, and the resulting command summary. Raw argv, shell, arbitrary executables/URIs and a recipe marketplace stay out of scope. Status is explicitly deferred; no implementation is included. [skip ci]
Archive the completed actions and configuration follow-up (10/10) and merge its three added requirements into the desktop-external-plugins spec: host-issued user intent for plugin actions, host-approved filesystem scope and isolated plugin configuration. [skip ci]
Every advertised plugin route now has a row in docs/plugin-endpoint-acceptance.md with its status, consumer and evidence. The page states the homologation procedure and the cold paths that still have no real bundle, and the Dolphin fixes are mapped to the shared host paths they closed. Add an acceptance check to the conformance script: an advertised route that is missing from the page, or a deferral that is not documented there, fails instead of passing silently. The check found thirteen unclassified routes (Locations, Saves profiles and JobsCancel), which the page now covers. Record the deferred endpoint-probe change with its design and six tasks. It is not implemented. [skip ci]
|
Important Review skippedToo many files! This PR contains 511 files, which is 411 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. Usage-priced reviews support at most 500 files.
|
The integration tip carried [skip ci] for the intermediate pushes, which also suppresses the pull_request workflow. The program is ready for final validation, so this commit resumes normal CI on the pull request.
The program is ready for final validation. Run the full workflow on the pull request: formatting, boundaries, conformance, workspace tests, clippy and the Windows cross-check.
Python 3.13 validates a nargs="*" argparse default against choices as a single value, so the list default aborted the script with exit 2 before any check ran. Keep argparse for explicit selections and apply the all-checks default after parsing. Verified with no arguments and with an explicit check; the scripts unit suite passes (82 tests).
plugin-package.py signs with Ed25519 from the cryptography package, and the scripts unit suite imports it, so discovery failed with ModuleNotFoundError on a bare setup-python. Install the pinned requirements file the packaging docs already use. The workflow previously stopped at the conformance step, so this import was never reached.
The Linux external-use test asserted Active immediately after spawn. The child is listed in /proc only after it execs, so a loaded CI runner lost that race while the local machine did not. Poll for the Active state with the same bounded wait the Idle transition already uses; the behavior under test is unchanged.
The Linux external-use test still does not observe the spawned child on the CI runner. Print the child pid, the approved path and any process the scan reports for it, so the next failure names the actual /proc view instead of only the assertion.
Remove examples/plugins/go-grpc and examples/go with the Go-only conformance checks (binding freshness, Go module boundaries and Go version/identity matching). Keeping them required Go and protoc on every CI run only to verify generated bindings, while the Rust SDK examples and the host service tests, which compare SDK helpers with raw calls, already cover the wire contract. Clients in other languages still generate bindings from plugin.proto. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The workflow installed Go, protoc-gen-go, protoc-gen-go-grpc and a system protoc only for the Go binding check, which no longer exists. The Rust build uses its vendored protoc. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove the direct gRPC Go reference plugin from desktop-plugin-development and phrase the cross-client scenarios as SDK helper versus raw generated client. Record the amendment in the add-third-party-plugins design and mark the Go tasks as superseded, keeping their evidence as history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove the [skip ci] push gate for the plugin worktrees, the mandatory per-workstation CARGO_TARGET_DIR with its hardcoded mount, and the rule assigning native Windows acceptance to a named person. The development guide now leaves build output to each developer's Cargo config, suggests sccache to share build work between worktrees, and states plainly that cross-compiled checks are not native Windows acceptance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use Cargo's configured target in the plugin guides and example READMEs instead of a path that exists on one machine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It only ran against a pinned historical base commit and a hardcoded mount on one machine, and nothing references it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Build under windows-hmr inside the target directory reported by cargo metadata instead of a hard-coded target/windows-hmr that overrode CARGO_TARGET_DIR, and drop the guide's warning against running it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Rewrite task evidence, proposals, estimates and the pending-decisions log so they describe the Rust examples only; Go-specific tasks carry a dated note that the Go examples were removed. - Drop workstation-specific CARGO_TARGET_DIR paths and 'external target' remarks from verification records. - Rename person-assigned Windows handoffs to native Windows acceptance tasks that stay open until a native run is recorded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…leases The packager no longer demands an absolute CARGO_TARGET_DIR outside the repository. It reads the repository's target directory from cargo metadata, stages clean bundles in the system temporary directory and builds them under target/plugin-source-bundles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove the Cargo build output sections from AGENTS.md and the development guide, the CARGO_NET_OFFLINE/CARGO_INCREMENTAL prefixes on plugin test commands and the /var/tmp paths in Steam integration evidence. Cargo's default target/ is the expected setup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
This is the third-party plugin program and its follow-ups, integrated on
integration/third-party-plugins. It replaces the bundled-only plugin model with signed, externally supplied packages that the host installs, reviews, grants, supervises and can update or remove while the desktop keeps running.What ships
.gnpluginand.gnbundleimport with publisher pinning, integrity/manifest validation, per-component consent and a reviewed permission grant. A two-component bundle (provider + extension) is one inventory entry.RuntimesRequestAccessvalidates and approves an executable with volume/node identity, size and digest; the plugin receives a runtime record, never a path.PackageKitdiscovery as a bundled provider, so installed Linux packages join the library.Follow-up changes included:
add-plugin-bundles,third-party-plugin-actions-and-configuration(archived),third-party-plugin-custom-launch-runtimes,third-party-plugin-data-and-persistence,add-platform-aware-match-filter,add-approved-runtime-picker,add-linux-package-manager-plugin,add-linux-epic-games-store-plugin, plus the settings/dialogs/library redesigns the program depends on.Acceptance state
add-third-party-pluginsis at 78/83; the follow-ups are also tracked in OpenSpec. Open items and owners:Other Windows handoffs carried by the follow-ups (all Lamarck): runtime picker registry/Start Menu suggestions (
add-approved-runtime-picker1.8), Job Object supervisor acceptance (third-party-plugin-custom-launch-runtimes1.14-win), shared-emulator-resource scope (third-party-plugin-data-and-persistence1.8), bundle acceptance (add-plugin-bundles7.2-win) and achievement import/export privacy (add-achievement-tracking8.2/8.3).Native Windows acceptance is not requested from the reporter. Cross-build compilation is covered by CI (
cargo xwin check), and the Windows items above stay with Lamarck.Validation
cargo test --locked --workspace— exit 0, 2766 passed, 0 failedcargo fmt --all --checkandpython3 scripts/check-plugin-boundaries.py— cleanpython3 scripts/check-plugin-conformance.py— 85 routes advertised, 2 deferred, acceptance page classifiedpnpm --dir ui test --run— 1364 passed (on the stacked ports branch; the integration tip is its parent)cargo clippy --workspace --all-targets -- -D warnings— run by CIcargo xwin check --workspace --all-targets --target x86_64-pc-windows-msvc— run by CI; not installed on the authoring machineThe new
.githubcheckacceptancefails when an advertised plugin route has no row ondocs/plugin-endpoint-acceptance.md, so a new endpoint cannot land unclassified.Merge notes
[skip ci]; this PR is the final validation point and CI runs on it.openspec validate --strictpasses for the active changes;add-third-party-pluginsstays open until 18.2/18.4/18.11 are recorded and the two Windows handoffs return.