Repository navigation
◕ 20/20 [Epic] Plugin system: manifest, handlers, commands and official plugins - #3563
propr-dev[bot] wants to merge 78 commits into
Conversation
…, a new `@propr/plugins` registry workspace with `example-pack`, `npm run plugins:check` wired into CI, tests and a docs page. As the issue asked, there are no tables, routes or UI. All 48 tests in the new files and the existing extension library tests pass. The CI workflow and classifier tests also pass, and so do `release:verify` and the typechecks for both packages. Schema (`packages/shared/src/plugins.ts`, exported from the shared index) - It covers every manifest field in the issue. The permission list is closed: `events.read`, `tasks.read`/`create`, `issues.read`/`create`/`comment`, `pull_requests.read`/`comment`, `repositories.read` and `notifications.send`. Commands may only use permissions the plugin requests, and event subscriptions require `events.read`. - Remote and package servers reuse the extension library's schemas rather than redefining them. On top of those, the manifest must record the `integrity` value itself, and each `secretEnv` entry maps a variable to a connection. Version ranges, tags, paths, images, commands and unknown fields are refused. - Cross-reference checks: a server or webhook must point at a declared connection of the right type, names must be unique in each list, and setting defaults must fit their own limits. - `publicPluginManifest()` is the public view. It leaves out the integrity value, launch arguments and environment values. Registry (`packages/plugins`) - `registry.json` lists plugins in order and marks development-only ones. `officialPlugins()` and `getOfficialPlugin()` return each manifest with its asset paths resolved. `example-pack` only appears when `PROPR_PLUGINS_DEVELOPMENT=1` is set. - `example-pack` has one remote OAuth server, one package server, one skill and one automation template. The package server points at the existing `[email protected]` test package. I computed its integrity value with the existing npm registry test helper, and two runs gave the same value. - The package is added to the root `test:prepare` build, and `package-lock.json` gains only the new workspace entries. `plugins:check` (`scripts/check-plugins.mjs`, runs through `tsx` so no build is needed) - It runs the schema, then checks that `registry.json` and the plugin folders match one-to-one, that ids match folder names, and that command names are unique across plugins. It also checks that each plugin has a README and its icon, that each skill folder has a `SKILL.md` with a matching name, and that each automation template passes the existing template checks. - It reports every problem in one run and exits 1 if there are any. - `--online [--registry <url>]` compares recorded integrity values with the npm registry. Run against public npm it reports `example-pack`'s package as not found, because the test package isn't published there. - CI: there is no standalone CI step for `automation-templates:check` (it only runs through the test suite). So I added a "Plugins: Manifest Check" section to the Run Checks step in `pr-build-check.yml` instead. It runs on every pull request. Tests - `packages/shared/test/plugins.test.ts` covers every invalid case in the acceptance criteria, plus settings rules and the public view. - `test/checkPlugins.test.mjs` runs 11 broken fixture manifests (in `test/fixtures/plugins-check/`), each expecting a specific message. It also tests missing files, registry mismatches, duplicate commands across plugins, the command-line exit codes, and `--online` against a fake registry. - `packages/plugins/test/registry.test.ts` covers the development flag and asset paths. Docs: `docs/docs/features/plugins.md` explains the concept, the folder layout, the manifest and the check, with a link from the agent extensions page. It isn't in the sidebar, which matches the existing agent extensions page. Two choices the issue left open: - Development flag: the development marking lives in `registry.json`, not in the manifest. - Folder references: skills and automation templates are referenced by folder path inside the plugin. Templates use the existing `template.json` + `prompt.md` layout. No previews were made, since nothing here is visible in the UI.
Epic progress: Plugin system: manifest, handlers, commands and official plugins21 out of 21 PRs merged ✅
Merged child PRs: #3562, #3564, #3565, #3567, #3569, #3571, #3572, #3573, #3578, #3579, #3580, #3581, #3584, #3585, #3586, #3588, #3626, #3636, #3639, #3645, #3655 This comment is updated automatically by ProPR as child PRs open, change and merge. |
|
CI failed: CodeQL Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 7691cf4 Summary of ChangesI fixed the CodeQL warning in For real npm package names the result is the same, since a scoped name like All 20 tests in 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…6`. When the script builds the npm registry URL for a package server, it now swaps every `/` in the package name for `%2f` (`replaceAll`), not just the first one. I fixed the CodeQL warning in `scripts/check-plugins.mjs:136`. When the script builds the npm registry URL for a package server, it now swaps every `/` in the package name for `%2f` (`replaceAll`), not just the first one. For real npm package names the result is the same, since a scoped name like `@scope/pkg` has only one `/`. The change makes the encoding correct for any input and stops CodeQL flagging it. All 20 tests in `test/checkPlugins.test.mjs` pass, and `npm run plugins:check` passes. This isn't a visible change, so there are no previews. PR: #3563 Comment by: @github-advanced-security[bot] (ID: 4571542316) Model: Claude Opus 5.5
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryI made no further changes because the fix is already on this branch. CodeQL flagged commit const url = `${registry.replace(/\/+$/, '')}/${server.package.replaceAll('/', '%2f')}/${encodeURIComponent(server.version)}`;The other All 20 tests in The CodeQL alert should close once CodeQL runs on There are no previews because nothing visible changed. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
… manage its state through `/api/instance/plugins/v1`, and MCP has read-only `list_plugins` and `get_plugin` tools. As the issue asked, nothing is applied to runs yet.
Tests: the new Core test (10 cases) and the API route test pass, run directly and through the suite runner. So do the affected existing suites: OpenAPI coverage and conformance, MCP observable surface, docs, input budget, operator surface and integration, route authorization, database export, extension OAuth routes and the plugin manifest tests. `gen:openapi:check`, the typechecks for shared, core, api, client and plugins, and zero-warning lint on core and api also pass. I didn't run the full repository suite.
What it does
- State: a new migration adds `plugin_installations`, `plugin_secrets` and an append-only `plugin_audit`. The store is `packages/core/src/plugins/pluginStore.ts`.
- A plugin installs disabled, with its default settings and the manifest's permissions granted.
- Disabling keeps settings and connections. Uninstalling deletes them, but the audit trail stays.
- Settings: checked against the manifest schema on save (unknown keys, types, limits, repository maps). Required settings can't be removed while the plugin is enabled.
- Connections: `token` and `signing_secret` values are sealed with the existing private-secret mechanism, tied to this instance, plugin and connection. Reads only say connected or not connected, who set it and when. Native exports erase them. `oauth` connections report `not_connected`.
- Enable refused: with a 409 and the reasons (also returned as `enableBlockers`) while a required setting, a required token connection or a package-server secret acknowledgement is missing.
- Upgrades: a newer manifest that adds a permission flags the plugin Needs approval, and it keeps its old grant until approved. Changing a package server's package, version or secret variable names also asks for the acknowledgement again. Install requires that acknowledgement up front.
- Access and audit: every route, reads included, needs `instance.manage_settings` and a current durable administrator. That is checked before the request body is read, and again inside each write. Every change is recorded in the audit trail.
- API wiring: routes are registered from a new `packages/api/pluginRouteRegistry.ts`, so `routeRegistry.ts` doesn't grow. OpenAPI schemas and route docs are added, and the spec and client types are regenerated.
- MCP: `list_plugins` returns compact rows and `get_plugin` the full read. Both are documented in `docs/mcp.md` and `docs/mcp-coverage.md`.
- Docs: `docs/docs/features/plugins.md` has a new "Installing a plugin" section covering the install flow, connections, permissions and upgrades.
Choices the issue left open
- Required token connection: a `token` connection counts as required when a contributed MCP server uses it (a bearer server's connection or a package server's secret variable). The manifest has no "required" flag for connections, so I needed a rule.
- Mutations: they need JSON plus an `X-ProPR-Plugins: 1` header, like the extension library. Clearing a connection is a `PUT` with `{ "value": null }`. Uninstalling is a `POST` that must repeat the plugin id as confirmation.
- Errors: routes return `{ error }` like the extension routes, not the newer error envelope. The shared permission guard already answers in that shape.
- Installed version: after an upgrade that needs no approval, the installed version moves to the new manifest on the next change.
Decision for you: the production Docker images don't include the `packages/plugins` folder, and I didn't add `@propr/plugins` as a declared dependency, to avoid lockfile churn. Core loads the registry at runtime instead, and where it's missing the list is empty with one warning. To ship real plugins, add `packages/plugins` to the images and declare the dependency; that can be this PR or the next issue.
No previews, since nothing here shows in the UI.
…d skill to the extension library as managed items, and its template to the template catalog. Its OAuth connection signs in through the extension OAuth module. Runs pick these items up through the normal library resolution.
Tests: I ran the new Core test (5 cases), the updated plugin store and plugin API route tests, and the extension, OAuth, automation, MCP, OpenAPI and settings-UI suites that touch this code; all pass. `gen:openapi:check`, `plugins:check`, the typechecks and zero-warning lint for core and api also pass. I didn't run the full repository suite. Most suites need `PROPR_DEMO_MODE=true` locally. `extensionServerMount`, `mcpObservableSurface` and `mcpOperatorSurface` fail under that setting and pass with a placeholder GitHub relay configured.
How it works
- Managed items: library items carry a `managedBy` marker (plugin id, manifest name, `active`). An item applies to runs only while its plugin is enabled and nothing awaits an acknowledgement. They default to automatic apply on, limited to the plugin's repository limit.
- Edit guard: a library save may change only enabled, the repository and agent limits, and automatic apply on a managed item. Changing anything else, removing it, adding a forged one or replacing its credential is refused. For a package server that covers package, version, integrity value, arguments and variables.
- Sync: every plugin change brings the library in line inside the same database transaction (new code in `packages/core/src/plugins/pluginContributions.ts`). Credentials come from the plugin's connections; nothing is written when nothing changed.
- Disabling deactivates the items and keeps their settings and connections, so re-enabling restores them.
- Uninstalling removes the items. It is refused while an automation adds one of them explicitly, and the message names the automation.
- A name clash with an existing library item gets the `<plugin id>-<name>` prefix.
- Package servers: they use the existing install path. The version and integrity value come from the manifest, the package is installed once without lifecycle scripts, verified at launch, mounted read-only and run through the stdio bridge. With its secret missing the server is skipped with `secret_not_configured` and the run continues. Without a current acknowledgement it is never installed or launched.
- OAuth: three new routes start, complete and disconnect an OAuth connection: `POST /api/instance/plugins/v1/<id>/connections/<name>/oauth/{start,complete,disconnect}`. The extension callback also completes the sign-in. A plugin read now reports `connected`, `not_connected` or `needs_sign_in`.
- Templates: `GET /api/automation-definitions/templates` and the `list_automation_templates` MCP tool include enabled plugins' templates, each with a `plugin` field naming it.
- Read model: a plugin read now includes `contributions`, which links each server and skill to its library item. The OpenAPI spec and client types are regenerated.
- UI: managed rows in Settings show a "Plugin: <id>" badge and an "Inactive" badge when they don't apply, and have no Remove button.
- Docs: `plugins.md` has a new "What an enabled plugin adds" section, and `agent-extensions.md` and `docs/mcp.md` are updated.
Choices the issue left open
- Created at install: managed items exist from install, inactive, so the OAuth connection can be signed in before enabling. They still apply only while the plugin is enabled.
- Repository limit: changing the plugin's limit resets its managed items' limit to it, overriding per-item edits.
- Shared OAuth connection: when several servers use one connection, it shows connected only when all of them are signed in.
- Changed skill files: after an upgrade, a changed skill becomes a new bundle. An automation that added the old bundle then reports it as not found.
- Template ids: a template keeps its id unless a shipped template or another plugin uses it; then it gets the `<plugin id>-` prefix.
Decision for you: the new-automation form in the web UI still uses the template list built into the app, so plugin templates show up only through the API and MCP. Making them appear in the form means having the UI fetch the catalog; I left that out to keep this change focused.
Two preview images of the Settings extension list with managed items are attached; they use mocked API data.
GitHub moved ubuntu-latest to Ubuntu 26.04. rpmbuild there fails the desktop RPM build (%install cannot find the staged usr/ directory), so rpm-maker.test.ts and rpm-signing.test.mjs fail in every full test suite run. Co-Authored-By: Claude Fable 5.2 <[email protected]>
CI: pin hosted Linux jobs to Ubuntu 24.04 (plugins epic branch)
… plugin goes through install, connect, limit to a repository, enable, disable and uninstall entirely from the page, and the state badge changes after each step. Tests: typecheck and zero-warning lint pass for `propr-ui`. The full UI suite passes (349 files, 3213 tests), and so does the new Playwright spec `e2e/plugins.pw.ts` (2 tests). The browser runs use a mocked plugin API that keeps state between steps, not a real server. No backend code changed. What's on the page (`/plugins` and `/plugins/<id>`) - Access: only administrators with `instance.manage_settings` see it. It's in the sidebar, under More on mobile, and there's an "Open Plugins" link above Skills & MCP servers in Settings. Anyone else who opens the address gets "Administrator access required". - Catalog: one card per plugin with icon, name, description, category and state badge, a category filter and search by name. The badges are Not installed, Off, Needs connection, Enabled, Needs approval and Degraded. - Detail: four steps in fixed order, each marked Done or To do: 1. Install lists what the plugin adds in plain words from the manifest and each permission with its explanation. When a package server gets secret variables, it shows the package, exact version and variable names, and Install stays disabled until that acknowledgement is ticked. After an upgrade that needs approval, this step shows what's new and an Approve button. 2. Connect has one row per connection with the manifest's help text and link. OAuth reuses the existing Connect / Reconnect / Disconnect component from Skills & MCP servers. Tokens and signing secrets have a write-only field; once saved, the page only says who stored it and when. 3. Configure only offers Limit to repositories for now, as the issue asked. 4. Enable is one checkbox. While something is missing it can't be ticked, and the step lists the API's reasons, for example the missing required connection. - What it added lists the managed servers and skill, linking to Skills & MCP servers, and the template. - Uninstall is a separate action. Its confirmation lists what will be removed, and if the API refuses, the page shows the API's message word for word. - Safety: manifest text is shown as plain text, only `https` links are clickable, and nothing supplied by the plugin runs in the browser. Code: the API client is `propr-ui/src/api/pluginsApi.ts`, typed from the generated OpenAPI types. The page is in `propr-ui/src/pages/PluginsPage/`, split into small components that stay under the line limit. Component tests cover the catalog, each step and the error states. `docs/docs/features/plugins.md` now has a Plugins page section with a walkthrough, and `docs/docs/features/web-ui.md` has a Plugins section. Changes outside the brief: - I put the `/mcp-logs` route on one line in `App.tsx`, written the same way as the new Plugins route, so the file stays under the 400-line limit. - The Enabled checkbox shows the new state while the request is in progress. Without that, a click looked like it did nothing until the API answered. Decision for you: - Plugin icons: the API doesn't serve a plugin's icon file, so each card shows an icon chosen by category instead. Showing the real icon needs an icon route on the API. Previews of the catalog, the install acknowledgement, the blocked Enable step, uninstall with the API refusal, and two phone-width views are attached; they use mocked API data.
…generated from the manifest, upgrades show what changed with an Approve action, and managed items are badged and read-only in Skills & MCP servers. Typecheck and zero-warning lint pass, the full UI suite passes (352 files, 3236 tests), and `e2e/plugins.pw.ts` passes (3 tests). The browser tests run against a mocked plugin API that keeps state between steps, not a real server. No backend code changed.
Configure step
- `PluginSettingsForm.tsx` and `PluginSettingFields.tsx` build one field per setting:
- text → text box
- choice list → select with Not set
- number → number box, with its range shown
- true/false → checkbox
- list → text area, one entry per line
- repository map → rows of repository and value, with this instance's repositories suggested
- The form starts from the saved settings. Save settings sends every setting at once, and an emptied field removes that setting. The client added `setPluginSettings` for the existing `PUT …/settings` route.
- Values are checked before sending with the API's own validation function from `@propr/shared`, so the messages are worded the same.
- The API returns one combined error string. The page splits it by setting name and shows each part under its field; anything that names no field appears above the button.
- Required settings are marked Required to enable. Configure counts as Done only once they all have values, and the Enable checkbox stays blocked with the API's reason, e.g. "Required setting Verbosity (verbosity) is missing".
Needs approval (`PluginApproval.tsx`)
- It shows the new permissions and, for each package server whose package, exact version or secret variables changed, the change compared with the last acknowledgement: "Version changes from 1.0.0 to 1.1.0", "Secret variables added: …", or that the server is new.
- Approve stays disabled until the acknowledgement checkbox is ticked. Approving clears the badge.
Managed items in Skills & MCP servers
- Rows show a From plugin: Example pack badge linking to the plugin page. The plugin's display name comes from the plugin list, and the plugin id is shown if that list can't be read.
- Managed rows have no Remove button, and their Edit button reads Edit limits. For servers it opens `ManagedServerForm`, which shows the definition read-only (endpoint and authentication, or registry, package, exact version, command, arguments, variables and secret variable names). Only the limits and automatic apply can be changed there; the enabled checkbox stays in the list.
- A managed skill's form now carries the same read-only note.
Activity: a placeholder section shown once the plugin is installed, saying there is no activity yet.
Changes outside the brief
- I replaced the example plugin's settings in the shared test fixture with the real manifest's six settings.
- `PluginInstallStep.tsx` was split into small modules (`PluginAcknowledgements.tsx`, `pluginApprovalUi.ts`) to stay within the lint rules.
- Besides `plugins.md`, I updated `web-ui.md` and the managed-items note in `agent-extensions.md` to match.
Limitations
- The browser test shows a client-side field error, not an API refusal: the page runs the same checks as the API first, so a bad value never reaches it. The API-error path is covered by component tests.
- The repository-map field only suggests this instance's repositories; you can still type any `owner/name`.
Previews of the form with a field error, the saved settings, Needs approval, the managed-item form and the phone view are attached; they use mocked API data.
Acceptance criteria
- AC1: met — `PluginSettingsForm.tsx`, `PluginSettingFields.tsx` and `pluginSettingsUi.ts` cover all five types; `PluginSettingsForm.test.tsx` tests rendering, an unchanged save returning the same values, edits and API errors by field; `PluginSettingsAndApproval.test.tsx` covers an API refusal on the page; `e2e/plugins.pw.ts` saves every type and checks them after a reload
- AC2: met — `PluginSettingsAndApproval.test.tsx` ("blocks the enabled checkbox while a required setting is missing") and `e2e/plugins.pw.ts` (empties Verbosity, Enable is blocked with the reason)
- AC3: met — `PluginApproval.tsx`, `pluginApprovalUi.ts`; `PluginSettingsAndApproval.test.tsx` and the e2e "shows what an upgrade asks for and approving it clears Needs approval"
- AC4: met — `ExtensionManagedItem.tsx` and `ExtensionItemRow.tsx`; `ExtensionManagedItem.test.tsx` (badge link, no Remove, read-only definition, save changes only limits and automatic apply) and the e2e managed-items steps
- AC5: met — `PluginSettingsForm.test.tsx`, `PluginSettingsAndApproval.test.tsx`, `ExtensionManagedItem.test.tsx`; `e2e/plugins.pw.ts` passes (3/3)
- AC6: met — `docs/docs/features/plugins.md` (new Settings form, Needs approval and Managed items in Skills & MCP servers sections, updated walkthrough and Activity)
… the issue lists records `queued`, `started` and one terminal event (`completed`, `failed` or `cancelled`), and a failed append doesn't change how the task ends. All the new tests and the related existing suites pass, along with lint (zero warnings), typecheck and the OpenAPI check. Where events are written. All task status changes already go through one state manager in core, so I added the appends there rather than in each job file. `queued` is written when the task is created; `started` and the terminal events are written right after the state change is saved to the task history. This covers issue tasks, pull request follow-ups, reviews, merge-conflict tasks and automation runs. The event-building code is in `packages/core/src/services/taskJournalEvents.ts`. Behaviour you might not assume: - Not journaled: goal tasks, task imports and agent runs with no repository. They don't fit the issue's five kinds. - Queue handoffs: when a job is requeued or rescheduled, the task is briefly marked `cancelled` but continues later. That appends no `cancelled` event, and resuming it appends no second `started`. - Retries: a retried task appends `started` and a new terminal event again, so one task can have several runs in the journal. - Failure category: this is a short code such as `timed_out`, `git_operation` or `worker`. Anything that looks like free text becomes `unknown`. - Pull request outcome: `opened` when the task opened a pull request (including a continuation one), `updated` when it pushed a commit to an existing one, otherwise empty. - Realtime: task events publish no extra activity update, because task state changes already send their own. Migration you should know about. The journal table only allowed the three existing domains, and SQLite can't change that rule in place. The new migration (`20261114120000_add_task_repository_event_domain.js`) rebuilds the table. It keeps every row, its sequence number and the sequence counter, so existing cursors stay valid and deleted numbers are never reused. Rolling it back deletes the `task` events. Readers. The API, MCP tools and CLI accept the new domain because they build their domain list from the shared one. I updated the MCP tool description and the API docs text, and regenerated the OpenAPI spec and client types. Automations have no event triggers built from the journal's domains, so I left them unchanged, as the issue says to. Acceptance criteria - AC1: met — `packages/core/test/taskJournalEvents.test.ts` checks `queued` → `started` → `completed` with the full payload for an implementation task and a pull request follow-up; `test/taskJournalFinalizers.test.ts` checks the same through the follow-up job completion path in `src/jobs`. - AC2: met — cancelled tasks (user-cancelled and pull-request-closed) append `cancelled`; failed tasks append `failed` with `git_operation`, `timed_out` or `worker` as the category, in both of those test files. - AC3: met — the sentinel test in `packages/core/test/taskJournalEvents.test.ts` puts marker strings into the task's prompt fields, reasons, tool output, results, error messages and logs, then checks no stored `task` event contains them and only the documented payload fields appear; `test/taskJournalFinalizers.test.ts` checks the same for follow-ups. - AC4: met — with the journal table removed, the task still finishes `completed` with its full history and the failure is logged (`packages/core/test/taskJournalEvents.test.ts`), and the follow-up finalizer still reports `finalized` (`test/taskJournalFinalizers.test.ts`). - AC5: met — `packages/api/test/repositoryEventTaskDomain.test.ts` covers list, filters, wait and 30-day retention; `packages/api/test/mcpRepositoryEvents.test.ts` covers the MCP tool and REST route; `packages/shared/test/repositoryEvents.test.ts` covers the domain list; docs are in `docs/docs/architecture/repository-event-journal.md` (domain, payloads, dedupe keys, retention) and `docs/docs/operations/api-reference.md`.
…it its time limit and was stopped, for the same reason. I won't restart it. The test results were already read straight from the suite log, so the implementation summary and acceptance criteria above still stand.
… each. To check the tests, I ran the new ones against the original source files: all 7 failed there, and all 48 plugin tests pass with the fix. Core typecheck and zero-warning lint on `src/plugins` pass too. I've fixed all four findings and added regression tests for each. To check the tests, I ran the new ones against the original source files: all 7 failed there, and all 48 plugin tests pass with the fix. Core typecheck and zero-warning lint on `src/plugins` pass too. **F1 – comment permission vs. target type.** GitHub's issue endpoints accept pull-request numbers too, so the method name alone didn't prove what a number was. The backend's `comment` now takes the target kind (`'issue'` or `'pull_request'`). It reads the number first and throws `not_found` without posting if the kind doesn't match. `commentOnIssue` and `commentOnPullRequest` each pass their own kind. - **Same defect elsewhere:** `getIssue` had the same gap, letting `issues.read` read a pull request, and now refuses one too. - **Tests:** both substitutions are covered, directly and through a handler, and nothing is posted in either case. One existing test changed: it now expects the extra lookup request before the comment is posted. **F2 – JSON-escaped credentials.** The list of credential spellings to scrub now includes the JSON-escaped form, plus a variant with `/` escaped as `\/`. A JSON body is also checked after decoding, so an upstream can't spell the credential back with `\uXXXX` or `\"`. If a decoded string held it, `text()` and `json()` return the body re-serialised with it replaced; a clean body is returned unchanged. A body nested too deeply to check is refused rather than returned. - **Tests:** a credential containing a quote, a backslash and a `/`, echoed four ways: `JSON.stringify`, all-`\u` escapes, `\/` escapes, and as an object key. A non-JSON page with the escaped credential embedded is covered too. **F3 – HTTP requests after timeout.** The handler's abort signal now reaches `ctx.http`. The DNS lookup, credential read and transport call all stop as soon as the run ends, and the signal is checked again before sending. The default transport cancels an in-flight request on abort. - **Same defect elsewhere:** the default `ctx.propr` backend had the same gap between fetching the GitHub App token and sending. It now gets the signal too and checks it after the token arrives and before queueing a task. - **Tests:** DNS held until after the timeout, the credential held until after the timeout, and an in-flight request getting the abort. In each case nothing is sent. **F4 – state recreated after uninstall.** Inside its transaction, a `ctx.state.set` now requires the installation to still exist with the same `installed_at` the run started with, so a reinstall under the same id doesn't count. Uninstall now deletes the installation row before the state rows. Either the write commits first and uninstall deletes its row, or the write finds the installation gone and throws `unavailable`. - On Postgres the write holds a `FOR SHARE` lock on that row until it commits. Our tests use SQLite, which runs one write transaction at a time, so the Postgres locking path itself hasn't been run. - **Tests:** a handler suspended mid-run resumes after uninstall, and after uninstall plus reinstall. Its write fails and no state row exists. - One existing test ran example-pack from a record that was never installed. It now inserts a matching installation row first. I updated `docs/docs/architecture/plugin-runtime.md` for each change. Nothing here is visible in the UI, so there are no previews. The new tests are in `packages/core/test/pluginHandlerLifecycle.test.ts`, plus additions to `pluginProprClient.test.ts`. Two things I noticed but didn't change, since they're outside these findings: - `createTask(repository, issueNumber)` doesn't check that the number is an issue rather than a pull request. It only needs one permission, so it can't be used to get around one. - A handler that is still running when its plugin is disabled, but not uninstalled, can still write state until it finishes or times out. PR: #3573 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
/merge |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryAll five conflicts are resolved and no conflict markers are left anywhere in the repo. Both YAML files parse, the core package typechecks, the edited TypeScript file passes lint with zero warnings, and
🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - .github/workflows/desktop-release-guard.yml - CHANGELOG.md - docs/mcp.md - docs/static/openapi/propr-api.yaml - packages/core/src/utils/workerStateManager.ts PR: #3563 Model: Claude Opus 5.5
|
CI failed: CodeQL Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 8c53262 Summary of ChangesI fixed the CodeQL alert. The plugin store no longer hashes the OAuth What changed
There is one small difference in behaviour: a Checks
I haven't run CodeQL, so it's not confirmed the alert closes. The store already hashes There's no visible change, so I made no previews. Review digestRisk-tiered paths
Validation evidence
Diff size: 2 files changed, +9/−4 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…sion test. When I ran the new tests against the original source files, all three failed; with the fix, the plugin test files pass. Core typecheck passes, and zero-warning lint passes on `src/plugins`. Lint only reported "file ignored" for the test files, because core lint covers `src/` only. I fixed all three findings (F5, F6, F7), each with a regression test. When I ran the new tests against the original source files, all three failed; with the fix, the plugin test files pass. Core typecheck passes, and zero-warning lint passes on `src/plugins`. Lint only reported "file ignored" for the test files, because core lint covers `src/` only. **F5: every state operation is now tied to the installation** (`pluginStateStore.ts`) - `get`, `set`, `delete` and `keys` now all run inside one transaction that first checks the installation is still the same one, by comparing `installed_at`. On Postgres it also holds a shared lock on the installation row until commit, so an uninstall can't overtake an operation in progress. - An old handler that resumes after an uninstall and reinstall now gets `unavailable` from all four methods. It can no longer read, list or delete the new installation's state. - Test: for each of `get`, `keys` and `delete`, a held handler resumes after uninstall plus reinstall, gets `unavailable`, and the new installation's value is still there. The `suspendThenSet` fixture handler gained an optional `op` input so this test could reuse it. **F7: state cancellation is checked again before and after each change** - `set` checks the signal again after the count/size query and before the insert. - Every operation also checks the signal just before its transaction commits. If the run ended during the insert or delete, the change is rolled back. - Test: I abort the signal at the moment the count/size query is sent, then do the same during the insert and during the delete. Each call is refused, and the stored value and key list stay as they were. **F6: no task is queued after cancellation** (`pluginProprBackend.ts`) - `createTask` now passes the run's signal to the enqueue function. - The default enqueue loads the queue, checks the signal, and only then calls `queue.add`. - To make the test possible, there is a new optional `issueQueue` setting so a test can supply the queue. A custom `enqueueIssueTask` now also receives the signal as a third argument. - Test: queue initialization is held until after the abort; no job is added and the call is refused with `unavailable`. A live run still queues its job. I checked the backend's other GitHub write calls for the same gap and found none: every request already rechecks the signal after the App token is fetched. I found nothing separate to report outside these three findings, and I made no previews because nothing here is visible to a user. PR: #3573 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
… the OAuth `state` itself. That alert is a false positive in substance: `state` is a random 256-bit single-use token created in `startSignIn`, not a password. A slow password hash would only make lookups slower without adding any protection. I fixed the CodeQL alert. The plugin store no longer hashes the OAuth `state` itself. That alert is a false positive in substance: `state` is a random 256-bit single-use token created in `startSignIn`, not a password. A slow password hash would only make lookups slower without adding any protection. **What changed** - I added `pendingSignInServer(state)` to the extension OAuth store (`packages/core/src/extensions/extensionOAuthStore.ts`). It returns the server a sign-in is pending for, without claiming the sign-in. Before looking anything up it checks that `state` has the 43-character base64url format, the same check `completeSignIn` already does. It uses the store's existing `sha256` helper. - In `packages/core/src/plugins/pluginStore.ts`, `completeOAuth` now calls that method. The `node:crypto` import and the hashing code that CodeQL flagged are gone. There is one small difference in behaviour: a `state` with the wrong format is now refused before the database is queried. The response is the same 400 "Unknown, used or expired sign-in request" as before. **Checks** - Zero-warning lint passes on both files, and the core typecheck passes. - `test/pluginContributions.test.ts` and `test/extensionOAuth.test.ts` pass (33 tests). They cover the plugin OAuth sign-in start to finish and the refusal of an unknown `state`. I haven't run CodeQL, so it's not confirmed the alert closes. The store already hashes `state` the same way elsewhere and that hasn't been flagged, which suggests it will. There's no visible change, so I made no previews. PR: #3563 Comment by: @github-advanced-security[bot] (ID: 4575640667) Model: Claude Opus 5.5
|
✅ Applied the requested follow-up changes in commit 6f3dc6d Summary of ChangesFixed all four findings and isolated the Notion staging fixture.
The affected tests, type checks, and plugin documentation checks passed. The browser preview shows Slack’s threshold validation. Notification rendering was verified through automated payload tests. Review digestRisk-tiered paths
Diff size: 27 files changed, +345/−195 lines Visual previewSlack review threshold validationThe Slack settings form shows the 1–10 range, explains the default of 8 for ordinary reviews, and rejects 11. Suggested agent tools
🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed all four findings and isolated the Notion staging fixture. - Native SQLite exports now remove plugin command write grants and extension run grants from the exported copy. The regression test verifies that both grants remain intact in the source database. - Slack, Discord, and Teams now use the 1–10 review scale. An explicit threshold takes precedence, followed by the Ultrafix goal or a default of 8 for ordinary reviews. The migration converts saved thresholds outside the new range and preserves in-range values. - Implementation completion events now carry both the source issue and the published PR in the envelope and payload. A persisted completion for issue 42 linked PR 77 in Linear, Jira, and Sentry. - Review and task failure messages now use catalog names or humanized historical IDs. Journal and wire IDs remain intact. - The Notion fixture uses a private staging directory and restores the process setting during teardown. All three cases passed with the inherited directory set to an unusable path. The affected tests, type checks, and plugin documentation checks passed. The browser preview shows Slack’s threshold validation. Notification rendering was verified through automated payload tests. PR: #3563 Comment by: @integry (ID: 7248611840) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved the OpenAPI conflict for PR #3563. The PR and I regenerated the spec from the merged route registry and annotations so the counts reflect the API the merged code serves. This preserved the PR’s plugin endpoints and incorporated The workspace scan found no remaining merge conflict markers. Git still lists the file as unmerged in its index because 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - docs/static/openapi/propr-api.yaml PR: #3563 Model: GPT-6.2 Sol
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved all 13 conflict hunks across the 11 listed files in PR #3563. A workspace-wide rescan found no remaining merge conflict markers in repository files.
All 10 resolved TypeScript and TSX files passed syntax parsing. The OpenAPI check validated 372 routes and confirmed the generated client types match. The UI run passed 488 tests, and the targeted server suites passed 110 of 111 tests after rerunning plugin intake with writable test storage. The remaining failure concerns seat accounting for a configured bot. Full type checks still report unresolved workspace package declarations and two undefined identifiers in the automatically merged webhook handler, outside the listed files. Git also still lists the 11 files as conflicted because it could not create 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - docs/static/openapi/propr-api.yaml - packages/api/openapi/registeredRoutes.ts - packages/core/src/daemon/issueDetection.ts - propr-ui/src/App.tsx - propr-ui/src/components/MobileBottomNavigation.tsx - propr-ui/src/components/SidebarNavigation.tsx - propr-ui/src/pages/SettingsPage/settingsPermissions.ts - src/daemon.ts - src/jobs/issueJobDispatcher.ts - src/jobs/prCommentPostExecution.ts - src/jobs/prCompletionComment.ts PR: #3563 Model: GPT-6.2 Sol
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved the only merge conflict in processPullRequestCommentJob.ts. Both branches changed the import block. The PR added helpers that build plugin command instructions and prepare run extensions. TypeScript transpilation and 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - src/jobs/processPullRequestCommentJob.ts PR: #3563 Model: GPT-6.2 Sol
|
CI failed: Full Test Suite Shard 4/4, Full Test Suite Shard 1/4, Full Test Suite Shard 3/4, Full Test Suite Shard 2/4, Full Test Suite Native Electron (hosted), Validate Docs Site, Run Full Test Suite, Connect Discovery and Darwin ACL (Node 22), Validate Changes, Windows Connect Discovery (ordinary user, Node 22), CLI and Connect Compatibility Guard Please investigate and fix these CI failures.
Failure evidence
Failure evidence
Failure evidence
Failure evidence
Failure evidence
Failure evidence
Depends on the failed job(s): Failure evidence
Failure evidence
Failure evidence
Failure evidence
Depends on the failed job(s): Failure evidence
|
Full Test Suite ResultsValidation failed during: Workspace build (docs job), Workspace build (shard 1), Workspace build (shard 2), Workspace build (shard 3), Workspace build (shard 4), Shard coverage verification, Hosted native Electron units.
View shard 1/4 outputView shard 2/4 outputView shard 3/4 outputView shard 4/4 output |
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
/merge |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved all 12 conflict blocks across the eight listed files for PR #3563. A worktree-wide scan found no remaining conflict markers. Git still reports the eight paths as unmerged because the worktree index is on a read-only filesystem.
All seven resolved TypeScript files passed syntax parsing. OpenAPI 3.1 validation, generated-file freshness, and client contract checks passed, as did 162 focused tests covering comment handling, startup, plugin webhooks, rate limits, and package pinning. Full typechecking and plugin tests still have blockers outside the eight files. The npm/PyPI schema split causes 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - docs/static/openapi/propr-api.yaml - packages/api/openapi/schemas.ts - packages/api/server.ts - packages/client/src/generated/apiTypes.ts - packages/core/src/extensions/extensionPackageLibrary.ts - packages/core/src/extensions/extensionProfileStore.ts - packages/core/src/webhook/commentEventHandler.ts - packages/shared/src/extensionLibrary.ts PR: #3563 Model: GPT-6.2 Sol
|
CI failed: Full Test Suite Shard 4/4, Validate Docs Site, Full Test Suite Shard 1/4, Full Test Suite Shard 2/4, Validate Changes, Full Test Suite Native Electron (hosted), Project options (Node 22), Project options (Node 24), CLI Agent Skill (Linux x64, glibc 2.31, Node 22), CLI Agent Skill (Node 22), Run Full Test Suite Please investigate and fix these CI failures.
Failure evidence
Failure evidence
Failure evidence
Failure evidence
Failure evidence
Failure evidence
Failure evidence
Failure evidence
Failure evidence
Failure evidence
Depends on the failed job(s): Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit 6fdaabe Summary of ChangesFixed two merge regressions that blocked the Shard 4/4 workspace build. The plugin manifest validates npm package fields again, and new issue comments reach the plugin command handler when intake is active.
A separate check of Shard 2/4’s Review digestRisk-tiered paths
Diff size: 2 files changed, +18/−11 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed two merge regressions that blocked the Shard 4/4 workspace build. The plugin manifest validates npm package fields again, and new issue comments reach the plugin command handler when intake is active. `npm run test:prepare` passed, along with 10 targeted Shard 4/4 test files and the plugin contract, docs, and OpenAPI checks. The full shard was not rerun. A separate check of Shard 2/4’s `pluginCommandIntake.test.ts` found one failing assertion about seat billing for a configured bot. PR: #3563 Comment by: @propr-dev[bot] (ID: 7324424780) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
ℹ️ Analyzed the follow-up request by @github-actions[bot] Analysis SummaryThe CLI packaging failure is already fixed on PR #3563 at
No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Validate unsigned linux-x64 package, Validate unsigned linux-arm64 package, Validate unsigned darwin-x64 package, Validate unsigned darwin-arm64 package, Finalize unsigned validation checksums Please investigate and fix these CI failures.
Failure evidence
Failure evidence
Failure evidence
Failure evidence
Depends on the failed job(s): Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 3238b17 Summary of ChangesFixed the dependency audit that stopped both unsigned Linux packaging jobs before the build. Updated Both audit gates, a clean install, and 115 focused tests passed locally. The x64 package built and passed inspection. The ARM64 package cross-built and passed architecture, icon, and Electron fuse checks. Full desktop launch validation remains pending in CI. Review digestRisk-tiered paths
Diff size: 3 files changed, +41/−59 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the dependency audit that stopped both unsigned Linux packaging jobs before the build. Updated `ws`, `minimatch`, `glob`, and the Socket.IO adapter to patched versions. [x64 job log](https://github.com/integry/propr/actions/runs/46737567357/job/142971784553) · [ARM64 job log](https://github.com/integry/propr/actions/runs/46737567357/job/142971784511) Both audit gates, a clean install, and 115 focused tests passed locally. The x64 package built and passed inspection. The ARM64 package cross-built and passed architecture, icon, and Electron fuse checks. Full desktop launch validation remains pending in CI. PR: #3563 Comment by: @propr-dev[bot] (ID: 7324942439) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit 89e9317 Processed 2 comments:
Summary of ChangesFixed the Validate Changes lint failure on PR #3563. The three flagged files now meet the existing ESLint limits for file length and complexity. Root and changed Core package lint passed with zero warnings, and both builds passed. Seven targeted test suites passed. The plugin command intake suite had one configured-bot seat-billing assertion failure, which I also reproduced at Review digestRisk-tiered paths
Diff size: 3 files changed, +69/−108 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the Validate Changes lint failure on PR #3563. The three flagged files now meet the existing ESLint limits for file length and complexity. Root and changed Core package lint passed with zero warnings, and both builds passed. Seven targeted test suites passed. The plugin command intake suite had one configured-bot seat-billing assertion failure, which I also reproduced at `3238b1719257`. PR: #3563 Comment by: @propr-dev[bot] (ID: 7325346144) Comment by: @github-actions[bot] (ID: 7325346901) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit ed5a2f0 Processed 2 comments:
Summary of ChangesFixed the sidebar clipping reported by Validate Changes. When Usage folds in short browser windows, tighter row spacing keeps Plugins and Access fully visible and clickable at 1280×720. The browser tests now check both links at 1280×720 and 1024×768 and verify that the scroll fade disappears at the bottom of the expanded Logs group. All 47 targeted Playwright tests and 22 unit tests passed locally, along with UI typecheck and lint on the changed files. Captured a focused Chromium preview. Review digestRisk-tiered paths
Diff size: 2 files changed, +10/−8 lines Visual previewAnalytics usage all metricsInline preview unavailable: GitHub size limits or upload failure. No preview files were committed. The GitHub inline attachment could not be published; the authenticated original remains available above. Analytics usage desktopInline preview unavailable: GitHub size limits or upload failure. No preview files were committed. The GitHub inline attachment could not be published; the authenticated original remains available above. Analytics usage mobileInline preview unavailable: GitHub size limits or upload failure. No preview files were committed. The GitHub inline attachment could not be published; the authenticated original remains available above. Sidebar navigation at 1280×720The compact administrator sidebar fits both Plugins and Access in view at the viewport size that failed CI. Inline preview unavailable: GitHub size limits or upload failure. No preview files were committed. The GitHub inline attachment could not be published; the authenticated original remains available above. Sidebar usage overlay desktopInline preview unavailable: GitHub size limits or upload failure. No preview files were committed. The GitHub inline attachment could not be published; the authenticated original remains available above. Sidebar usage overlay mobileInline preview unavailable: GitHub size limits or upload failure. No preview files were committed. The GitHub inline attachment could not be published; the authenticated original remains available above. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the sidebar clipping reported by Validate Changes. When Usage folds in short browser windows, tighter row spacing keeps Plugins and Access fully visible and clickable at 1280×720. The browser tests now check both links at 1280×720 and 1024×768 and verify that the scroll fade disappears at the bottom of the expanded Logs group. All 47 targeted Playwright tests and 22 unit tests passed locally, along with UI typecheck and lint on the changed files. Captured a focused Chromium preview. PR: #3563 Comment by: @github-actions[bot] (ID: 7326153575) Comment by: @propr-dev[bot] (ID: 7326154711) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol

ProPR 🔨 20 of 20 issues merged · Follow-up in progress · CI suspended until the follow-up finishes, re-running checks before then has no effect · runs cancelled by ProPR: 1 · checks: 34 passed, 1 failed, 10 skipped, 5 cancelled · updated Dec 1 21:23 UTC
Plugin system: manifest, handlers, commands and official plugins
This Epic PR aggregates all changes for the plan: Plugin system: manifest, handlers, commands and official plugins
Issues in this Epic
Auto-close
When this PR is merged, the following issues will be automatically closed:
Fixes #3542
Fixes #3543
Fixes #3544
Fixes #3545
Fixes #3546
Fixes #3547
Fixes #3548
Fixes #3549
Fixes #3550
Fixes #3551
Fixes #3552
Fixes #3553
Fixes #3554
Fixes #3555
Fixes #3556
Fixes #3557
Fixes #3558
Fixes #3559
Fixes #3560
Fixes #3561
Created automatically by ProPR