Repository navigation
Description
Adopt the Agent Plugins open standard as the portable target contract
Spec pin: Agent Plugins 1.0.0 — https://agent-plugins.org/specification, repository agentplugins/agent-plugins-spec @ ff8ab5e392cc87bd88d87c060815a87490e51003 (2026-08-19). Vendored schema hashes (sha256):
plugin.schema.json:0a4aad95ce337878ad38802ebf0daa3fde76abe3f65400c86bcbb1ec0b3ab883mcp.schema.json:6539175bfcdf43085855183e86da40ea94b166547a72b47ae9a0a390516d3acb
Decision
The portable target IS the Agent Plugins adapter (adapterRevision 1.3.0). It emits root plugin.json (canonical $schema), skills/, and mcp.json, validates against the pinned schemas at build time, and declares rules/commands/hooks/events/marketplace honestly unavailable (the v1 standard packages only skills and MCP servers).
Native proof status
- Repeatable CI-safe proof: installer + isolated-Cursor-home filesystem + pinned-schema conformance (
runPortableHostInstallProof). - IDE dogfood (2026-09-02, Cursor 3.18.25 stable
280eca2911f1, isolated instance): plugin discovered with Local badge, skill discovered with exact SKILL.md description, MCP config discovered and spawned, stdio handshake completed with a launchable config. Audit:docs/audits/2026-09-02-agent-plugins-cursor-ide-proof.md.
Upstream interop gaps observed in Cursor 3.18.25 (all violate spec 7.2.1/9.2 MUSTs)
${PLUGIN_ROOT}not expanded incwd— literal cwd →spawn <cmd> ENOENT(the spec's own stdio example uses"cwd": "${PLUGIN_ROOT}").${PLUGIN_ROOT}not expanded inargs— server starts, gets the literal path, exitsMODULE_NOT_FOUND.- Omitted
cwddefaults to$HOME, not the plugin root.
Cursor's proprietary ${CURSOR_PLUGIN_ROOT} expands and connects (verified, stable heartbeat), so the loader pipeline works — it is not wired to the standard's placeholders for this format. Consequence: spec-conformant portable stdio MCP servers currently cannot launch on Cursor, though discovery/skills work fully.
Follow-ups
- Report the three expansion gaps to Cursor (product feedback) with the audit evidence.
- Re-run the IDE dogfood when a Cursor release notes Agent Plugins placeholder expansion; upgrade capability evidence when servers launch spec-conformantly.
- Watch the spec repository for post-1.0.0 revisions (subtree/chore cadence as with the Effect RC re-pin).
Activity
feat(portable): complete Agent Plugins 1.0.0 adoption — manifest meta…
feat(portable): complete Agent Plugins 1.0.0 adoption — manifest meta…
feat(portable): complete Agent Plugins 1.0.0 adoption — manifest meta…
fix(portable): fail closed on Agent Plugins normative MCP rules in or…
fix(portable): fail closed on Agent Plugins normative MCP rules in or…
ScriptedAlchemy commentedon Sep 3, 2026
Close-out: Agent Plugins 1.0.0 is the portable target contract
Delivered in two PRs, both squash-merged to
mainwith green CI:65c05a617— manifest metadata + extensions, pinned byte lane (AB6035–AB6038),doctorAB7320, capability rows, docs, changeset, adapterRevision 1.5.0 → 1.6.0.98751df4a— review follow-ups: normative MCP rules fail closed at plan time and in ordinarybuild/validate --artifact, platform-independent containment, RFC 9110 header values, drive-relative Windows commands, symlink-safe byte lane, built-in-adapter identity check. (Main CI on98751df4awent green after a rerun of one unrelated Node 24 flake inplayground-service.test.ts; the commit does not touch that file.)Per-item evidence
agentplugins/agent-plugins-spec@ff8ab5e392cc87bd88d87c060815a87490e51003(2026-08-19).packages/agent-bundle/src/adapters/schemas/portable/{plugin,mcp}.schema.jsonwith datedPROVENANCE.json(retrieved 2026-09-01, re-verified 2026-09-02 against the live 1.0.0 schema URLs; sha2560a4aad95…3ab883/6539175b…6d3acb, identical to the hashes in this issue's body).src/adapters/portable.tsemits rootplugin.json(canonical$schema, §5.4author/homepage/repository/license/keywords, §5.6 reverse-domainextensions),skills/<name>/SKILL.md, andmcp.json. Omitted metadata leaves the manifest byte-identical to the previous contract; malformed values fail closed withportable.manifest.<field>.invalid.capabilities/portable-1.0.0.jsonrecords datedunavailablerows for commands, agents, hooks, rules, event routes, marketplace, notice delivery, extension directories, legacy SSE (27 unavailable / 4 supported rows), each citing the spec section.portable.mcp.{command,cwd,env,url,headers}.standarderrors (src/adapters/portable-mcp-rules.ts, shared with the byte lane). Artifact:AB6035(schema/JSON),AB6036(normative text the schemas cannot express),AB6037(symlink containment) run over every built-inportable/tree inbuildandvalidate --artifact(src/build/validate-artifact.ts→validatePortableTargets);--host-validationadds the host report +AB6038provenance note. All codes documented indocs/diagnostics.md("Agent Plugins portable validation (AB6035–AB6038)").doctorstatic findings (#340 pattern)src/install/doctor.tsAB7320validates installed rootplugin.jsonthat declares the Agent Plugins$schemaagainst the pinned 1.0.0 contract;tests/doctor.test.ts"validates root plugin.json installs that declare an Agent Plugins schema against the pinned 1.0.0 contract".tests/portable-adapter.test.ts(plan-time rules incl.bin/server, escaping cwd, plain HTTP off loopback, duplicate headers, control chars,C:\…,C:server,./../anchor/server),tests/portable-plugin-validation.test.ts(schema conformance + every normative rule + full forbidden-header-byte sweep),tests/artifact-validator.test.ts(ordinary-build fail-closed, symlink not followed, custom adapter namedportableleft alone,--host-validationdoes not duplicate diagnostics),tests/adapter-metadata.test.tspins (adapterRevision1.6.0, both schema sha256s),tests/host-install-proof.test.tsrunPortableHostInstallProof(installer + isolated Cursor home + pinned-schema conformance, fixturetests/fixtures/host-install-portable/).portablesection,docs/framework-mode.mdportable target,docs/diagnostics.md(AB6035–AB6038,AB7320,portable.mcp.*.standard),docs/audits/2026-09-02-agent-plugins-cursor-ide-proof.mdevidence/source matrix..changeset/portable-agent-plugins-contract.md,.changeset/portable-agent-plugins-evidence.md,.changeset/portable-normative-rules-fail-closed.md(allagent-bundle: minor).1.5.0 → 1.6.0;capabilities/portable-1.0.0.json+tests/adapter-metadata.test.tspinned to the new revision and schema hashes.plugin.json/skills//mcp.jsonlayout is preserved and new manifest fields are opt-in. Behavioural tightening is documented in.changeset/portable-normative-rules-fail-closed.md: bundles whose MCP servers already satisfy the standard emit byte-identical output; servers relying on path-bearing / whitespace-bearingcommand, escapingcwd, plain-HTTP remote URLs, or placeholders in headers now fail the build with a field-scoped diagnostic instead of being published. Contract matrix visibility: adapterRevision bump in the #218 metadata pins.Review-thread inventory (maintainer rule)
--host-validation; P2 header control chars)33e5b0cdf: "Didn't find any major issues"; the final push was a content-identical rebase ontomainFollow-ups
The three unchecked items in this issue's body (Cursor product feedback for the placeholder-expansion gaps, IDE dogfood re-run on a fixed Cursor release, post-1.0.0 spec watch) are external / time-gated and cannot be completed from this repository. They are carried over verbatim to #426 so this issue can close on the engineering deliverable.
ScriptedAlchemy commentedon Sep 3, 2026
Closing: engineering deliverable complete (#373 65c05a6, #406 98751df); external follow-ups tracked in #426.