Skip to content

plugins: reserve future extension points, freeze worker API v0, author guide - #33025

Closed
nwparker wants to merge 6 commits into
nwparker/plugins-v2-14-organizefrom
nwparker/plugins-v2-15-extension-base
Closed

nwparker wants to merge 6 commits into
nwparker/plugins-v2-14-organizefrom
nwparker/plugins-v2-15-extension-base

Conversation

@nwparker

@nwparker nwparker commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​158 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​154
Prod 23 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​755 $\color{#cf222e}{\Huge{\mathbf{−}}}$​37 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​718

ELI5

This PR gets the plugin system's base ready before plugins are published publicly. It reserves names for features we plan to add, writes down which parts of the plugin API we promise not to break, closes one gap in when Orca asks the user for permission again, and gives plugin authors one guide from writing a plugin to publishing it.

What Changed

  1. Reserved contribution names. contributes.skills, mcpServers, taskSources, connections and settings are now known keys that must stay empty, the same way agents already was. Before, Orca said "unknown key" for them. Now it says "is reserved for agent skills and must be empty for now". When each feature ships it becomes an optional addition, so we never need a new manifest format for it. The JSON Schema and manifest reference are regenerated (maxItems: 0).
  2. Host API frozen as v0. A new generated page, docs/reference/plugin-host-api.md, is built from the method table that already drives the permission check. It lists each method with its signature, required capability, whether panels may call it, and the error codes, and it states the rule: within pluginApi 1 the API only grows, deprecated methods keep working until the next major, and a breaking change ships as a new major. Before, a manifest with "pluginApi": 2 failed with "must be 1". Now it fails with "targets host API 2, but this Orca supports only 1; update Orca".
  3. Catalog and approval safety.
    • validate:plugin names the bad release and the reason, for example plugins[2].releases[0]: commit: must be a full lowercase SHA-1 commit. Before, it only said "1 release(s) are unreadable". The schema already required a full 40-character SHA, and Orca already skips such releases when reading a catalog. A test now pins both.
    • Fixed: a data plugin, which installs in one click, could update to instructional with only alias commands and keep its approval, because nothing in the approval fingerprint changed. The fingerprint now includes the declared execution profile whenever it is not data, so any profile change asks again. Data packs keep their approval across updates, as before.
    • New tests show that adding a capability always asks again, that every change between two profiles asks again, and that a project repository cannot load or approve a plugin it contains. Plugins come only from the user's plugin folder and development folders the user added, and approvals live only in the user's settings.
  4. Author path.
    • docs/reference/plugin-authoring.md covers four steps: write, load a development folder, validate, publish to a catalog.
    • docs/reference/plugin-theme-tokens.md is generated from the public theme token list and shows what each omitted token falls back to. plugin-themes.md links to it.
    • examples/plugins/hello-orca and hostile-panel now use manifest format 2.
    • pnpm validate:plugin <plugin repo root> now prints the catalog release entry to paste for HEAD: version, commit, contentHash, execution, minimum Orca, types, contribution summary, capabilities and file types. It writes out the committed files with the same code the installer uses, so the hash matches what install computes. It warns when there are uncommitted changes.

Why

  • Reserving the keys now costs nothing. Without it, a plugin that wrote skills: [] would mean different things in different Orca versions.
  • We want the host API documented and frozen before third parties build on it, and the generated page cannot drift from the code.
  • The approval fix keeps the promise that "one click" only ever covers plugins that cannot run anything. Adding the execution profile to the existing fingerprint was the smallest change. Data packs are left out so theme and syntax updates do not prompt.
  • For the release entry, I reused the installer's own git-tree and hashing code instead of hashing the working folder. The working folder can include ignored or untracked files, and Windows line-ending conversion could change file contents, so its hash would not match.

Manifest format 2 has not shipped yet, so the one-time re-approval of existing format 2 instructional, panel and worker installs only affects development builds.

Linked Issue

N/A (maintainer change; follows the plugin system review).

Visual Proof

N/A. No UI changes. Only schemas, validation messages, generated docs and a command-line script changed.

Testing

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • pnpm tc passes.

  • pnpm test on the plugin suites (shared, main, renderer plugin components, settings IPC, plugin RPC): 909 passed. The release-tag test now passes (manifest v2 is gated on 1.4.240, set in feat(plugins): one documented schema for manifests and catalogs, with actionable errors #31087).

  • The schema and doc drift test passes, including the two new generated pages.

  • pnpm run check:code-quality:changed and oxlint on the changed files pass.

  • Manual run: pnpm validate:plugin on a fresh Git copy of the Gleam example printed a release entry that pluginCatalogReleaseError accepts (a unit test covers the same thing). The in-repo examples print a note instead, because they are not repository roots.

  • Tested on macOS. The script runs Git through Orca's existing Git runner and uses path utilities, so it is not specific to one platform. Nothing here runs on SSH hosts.

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Security: this tightens approval (an execution profile change now asks again). No new path can grant approval.
  • Backwards compatibility: format 1 manifests are unchanged. Reserved keys accept only empty lists, so nothing that used to load stops loading.
  • Remote/SSH and mobile: no wire changes.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@nwparker
nwparker force-pushed the nwparker/plugins-v2-14-organize branch from 2e49029 to 13a94d9 Compare October 24, 2026 11:55
@nwparker
nwparker force-pushed the nwparker/plugins-v2-15-extension-base branch from 1e67b57 to 83c3d6f Compare October 24, 2026 11:56
@nwparker
nwparker force-pushed the nwparker/plugins-v2-14-organize branch from 13a94d9 to e64e005 Compare October 24, 2026 13:43
@nwparker
nwparker force-pushed the nwparker/plugins-v2-15-extension-base branch 2 times, most recently from 9e00b8c to f13d06c Compare October 25, 2026 05:23
@nwparker
nwparker force-pushed the nwparker/plugins-v2-14-organize branch from 1b392fc to 83b42a5 Compare October 26, 2026 08:16
@nwparker
nwparker force-pushed the nwparker/plugins-v2-15-extension-base branch from f13d06c to 3adb64b Compare October 26, 2026 08:17
@nwparker
nwparker force-pushed the nwparker/plugins-v2-14-organize branch from 83b42a5 to e20721a Compare October 26, 2026 12:04
@nwparker
nwparker force-pushed the nwparker/plugins-v2-15-extension-base branch 2 times, most recently from 22f0f85 to f22dea6 Compare October 26, 2026 12:32
@nwparker
nwparker force-pushed the nwparker/plugins-v2-14-organize branch 2 times, most recently from ea19ce9 to 915b844 Compare October 28, 2026 04:59
@nwparker
nwparker force-pushed the nwparker/plugins-v2-15-extension-base branch from f22dea6 to 6c98339 Compare October 28, 2026 04:59
@nwparker
nwparker force-pushed the nwparker/plugins-v2-14-organize branch from 915b844 to 23246ae Compare October 28, 2026 05:31
@nwparker
nwparker force-pushed the nwparker/plugins-v2-15-extension-base branch from 6c98339 to 07b68ee Compare October 28, 2026 05:31
@nwparker
nwparker force-pushed the nwparker/plugins-v2-14-organize branch from 23246ae to 359d6ff Compare October 28, 2026 05:46
@nwparker
nwparker force-pushed the nwparker/plugins-v2-15-extension-base branch from 07b68ee to 324702c Compare October 28, 2026 05:46
…tings contribution keys

Format 2 accepts each key only as an empty list, so the points can ship later as additive
minors without a new manifest format.
…nown pluginApi majors

The method table now carries a summary and an optional deprecatedSince, and renders
docs/reference/plugin-host-api.md with the stability and deprecation policy. A manifest
naming a newer host API major fails with "update Orca" instead of "must be 1".
… execution profile change

validate:plugin now reports each unreadable release with its reason (for example a tag
instead of a full commit SHA) rather than a count. The consent fingerprint includes a
declared non-data execution profile, so a data pack that becomes instructional no longer
keeps its one-click approval. Tests pin that catalogs drop non-SHA releases, that a
repository cannot load or approve a plugin it carries, and that added capabilities or a
changed profile always need re-approval.
…inted catalog release entry

docs/reference/plugin-authoring.md walks write, load a development folder, validate and
publish. The theme token table is generated from the public token set and its fallbacks.
hello-orca and hostile-panel move to manifest format 2. validate:plugin on a plugin
repository root materializes HEAD the way install does and prints the release entry to
paste into orca-catalog.json.
@nwparker
nwparker force-pushed the nwparker/plugins-v2-14-organize branch from 359d6ff to efa4d4d Compare October 28, 2026 10:53
@nwparker
nwparker force-pushed the nwparker/plugins-v2-15-extension-base branch from 324702c to 44a18a2 Compare October 28, 2026 10:53
@nwparker nwparker mentioned this pull request Oct 28, 2026
7 of 9 tasks
@nwparker

Copy link
Copy Markdown
Contributor Author

Folded into #35470 (Plugin Alpha), which lands the rest of the plugin stack in one PR.

@nwparker nwparker closed this Oct 28, 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