Skip to content

[3542 by Claude Opus 5.5] Plugins: manifest schema, in-repo registry package and plugins:check - #3562

Merged
propr-dev[bot] merged 1 commit into
3542-epic-plugin-system-xu8from
3542/claude-opus-5-5-plugins-manifest-schema-i-20261114-0323-zox
Nov 14, 2026
Merged

propr-dev[bot] merged 1 commit into
3542-epic-plugin-system-xu8from
3542/claude-opus-5-5-plugins-manifest-schema-i-20261114-0323-zox

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3542

Branch: 3542/claude-opus-5-5-plugins-manifest-schema-i-20261114-0323-zox
Commits: ✅ Changes committed (404aece)


AI Processing Completed

Execution Details:

Summary:
I've implemented #3542: the plugin manifest schema in @propr/shared, 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.

Detailed Logs:

  • Conversation: 195 messages
  • Session: d4d4f00c-cd6b-46e7-b58c-73a9933a09c0

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3542-2026-11-14T03-37-24-749Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3542-2026-11-14T03-37-24-749Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: I've implemented #3542: the plugin manifest schema in `@propr/shared`, a new `@propr/plugins` registry workspace with `example-pack`, `npm run plugins:check` wired into CI, tests and a docs page. As t...


This PR was created automatically by ProPR after processing issue #3542.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…, 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.
@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=10
Triggered automatically by the requested execution settings.

@propr-dev propr-dev Bot added the ultrafix label Nov 14, 2026
@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR delivers the manifest schema, official registry, validation command, CI integration, fixtures, and documentation within the stated scope. No merge-blocking defect was verified from the supplied diff and surrounding context. It is ready to merge within scope, conditional on the pending checks completing successfully.

✅ Cross-reference validation — Connections must exist and match their consumers’ credential types; commands cannot request undeclared permissions.

✅ Explicit public projection — Package servers expose selected metadata while excluding integrity values, launch arguments, and plain environment values.

✅ Targeted negative coverage — Tests exercise invalid manifests, missing assets, registry mismatches, duplicate commands, and online integrity mismatches.

This was a static review; no commands or tests were run. The supplied current-head status reports no failures and five pending checks.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Parse skill front matter consistently

scripts/check-plugins.mjs, in skillName(), extracts front matter using regular expressions rather than validating YAML. Reusing the existing skill front-matter parser would improve consistency and handle quoted values, comments, and malformed YAML more reliably. This is optional for this PR’s limited asset check; no plugin installation or skill execution path is introduced here.

S2: 🟢 Consolidate registry index validation

packages/plugins/src/index.ts, in readPluginRegistryIndex(), and scripts/check-plugins.mjs, in readIndex(), independently validate the same document. The checker rejects duplicate IDs while the exported reader accepts them. Sharing validation would prevent future drift and give direct callers consistent diagnostics. This is optional because the new CI checker already rejects duplicate entries in the shipped registry.

Score

The implementation is cohesive, appropriately scoped, and supported by targeted tests. Static review found no actionable blocker; merge readiness remains conditional on the outstanding checks.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 24s
  • Tokens: 74,419 (73,888 in / 531 out)
  • Cost: $0.66

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1 S2

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 14, 2026
@propr-dev

propr-dev Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ GitHub auto-merge is turned off for this repository, so ProPR merges this PR itself once it is ready (checks passed or no CI configured, and the review goal met).

To let GitHub merge it the moment required checks pass, enable Settings → General → Pull Requests → Allow auto-merge.

@propr-dev
propr-dev Bot merged commit da8dbdc into 3542-epic-plugin-system-xu8 Nov 14, 2026
59 checks passed
@propr-dev
propr-dev Bot deleted the 3542/claude-opus-5-5-plugins-manifest-schema-i-20261114-0323-zox branch November 14, 2026 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants