feat(cursor): validate bundles against pinned schemas and loader contract with honest devtools evidence (#133) - #327
Merged
Conversation
🦋 Changeset detectedLatest commit: 54311ea The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Sep 2, 2026
15 tasks
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
Cursor ecosystem validator for #133, mirroring the Claude devtools precedent (#193) under the issue's honesty rules — with the key difference pinned honestly: Cursor publishes no plugin-validate devtools verb (fresh dated evidence: 2026-09-02, cursor-agent
2026.08.31-4057e58,--help/plugin --helpexpose marketplace management only).validateCursorPlugin(newhost-contracts/cursor-plugin-validation.ts): boundedcursor-agent --versionprobe for version evidence (ENOENT is an honest info that never gates local checks), plus local bytes-at-rest validation of the built Cursor bundle against the VENDORED pinned schemas (cursor/plugins@0701892per PROVENANCE): strict.cursor-plugin/plugin.json,mcp.json,hooks/hooks.json,.cursor-plugin/marketplace.json— each with malformed negative fixtures so a permissive schema cannot pass vacuously..cursor-plugin/plugin.jsonfirst), symlink realpath containment inside the bundle (mirrors the loader's realpath rejection), and${CURSOR_PLUGIN_ROOT}allowed only where the pinned evidence says the loader substitutes it (MCPcommand/args/env/cwd/url/headersand hook commands). Symlink findings emit in deterministic path order.AB6026–AB6029registered indocs/diagnostics.md; exported viaapi.ts(wired intovalidate({ hostValidation })for thecursortarget, union type now spans Claude/Codex/Cursor) andtest/index.ts; frozen reports; injectable command-runner proof seam.Changeset: minor,
agent-bundle.Test plan (all local, on the rebase over #326's merge)
pnpm buildpnpm typecheckpnpm lint— 0 errors, 0 warnings (1015 files)pnpm test:unit— 2607 passed, 0 failed, 5 skippedTracking