Skip to content

Add native Copilot plugin packaging - #191

Open
peaceful-weapon wants to merge 1 commit into
openprose:mainfrom
peaceful-weapon:peaceful-weapon-openprose-copilot-envelope
Open

peaceful-weapon wants to merge 1 commit into
openprose:mainfrom
peaceful-weapon:peaceful-weapon-openprose-copilot-envelope

Conversation

@peaceful-weapon

Copy link
Copy Markdown

Refs #190

Summary

  • Add .github/plugin/plugin.json and an openprose marketplace containing
    open-prose, both tied to the existing skill release and copy-sync metadata.
  • Validate the native manifests and exercise release-version writes in a
    disposable tree.
  • Add a keyless install/discovery smoke pinned to stable
    @github/[email protected] that proves native manifest precedence with the
    Claude fallback present.
  • Document Copilot installation and select github-copilot in the existing
    scheduled skills-CLI smoke.

Use Case / Run Evidence

The baseline documents Claude Code and Codex but has no Copilot envelope or
Copilot installation guidance. Copilot CLI can already install OpenProse
through its Claude marketplace fallback; this contribution makes the intended
Copilot packaging explicit without changing execution semantics.

On Windows, Copilot CLI 1.0.99-2 registered the candidate checkout, browsed
openprose, installed open-prose@openprose at 0.18.1, reported it enabled
with source: live, and discovered the open-prose plugin skill. All
installation probes used disposable configuration/cache homes.

The CI fixture changes the staged native manifest's version, removes the
staged marketplace entry's optional version, and renames only the staged Claude
marketplace. Observing openprose and the native sentinel version proves
selection of .github/plugin/ rather than a successful fallback installation.
The scenario requires no inference request or model key.

The install script also passed verbatim in WSL Ubuntu with Linux Node
v22.23.4 and stable Copilot 1.0.102 installed into a temporary npm prefix.
WSL had no default Copilot home; GH_TOKEN, GITHUB_TOKEN, and
COPILOT_GITHUB_TOKEN were unset, and configuration/cache homes were isolated.
Downloaded runtimes and temporary directories were removed.

Design Boundary

This is one distribution responsibility: manifests, release/copy tracking,
installation checks and documentation. Claude/Codex manifests and marketplaces,
AGENTS.md, and the skill's authoritative SKILL.md router are unchanged.
The initial envelope uses the existing skill version 0.18.1; this is not a
release and does not change runtime_contract: 2.

The trigger covers skills/open-prose/** because the smoke stages the whole
skill tree.

The Copilot marketplace exposes plugins[0].version. The existing bump script
read nested fields but wrote only literal top-level field names, so its
line-preserving writer now uses a unique leaf key while checks keep the full
pointer. A disposable-tree test exercises the writer across all five skill
version surfaces.

Copy sync remains configuration-driven: .plugin-meta.json adds the native
destinations to the existing scripts/sync-copy.sh mechanism without changing
that script.

The additive legacy Copilot manifest avoids changing root-manifest selection in
existing clients. A root Agent Plugins migration remains separately reviewable;
current Codex supports retaining its presentation overlay, but that behavior
should be checked across supported clients and versions before migration.

Host primitive mappings and additional ### Skills/### Tools resolution
belong to the sibling contribution, Define Copilot host mapping and skill
discovery
. A Copilot SDK bounded-activation runner belongs in
openprose/reactor, not this repository. The umbrella is tracked in #190.

Examples

Install through the repository's native Copilot marketplace:

copilot plugin marketplace add openprose/prose
copilot plugin install open-prose@openprose
copilot skill list

Then start a new Copilot session and enter prose run <file.prose.md> in chat.
The command is interpreted inside the agent session, not by a prose shell
binary. App users can also manage installation through Customize > Plugins.

For a skill-only installation:

npx skills add openprose/prose --skill open-prose --agent github-copilot

Testing

Check Result
Linux: pnpm install --frozen-lockfile with pnpm 10.34.5 Passed on an LF clone in WSL Ubuntu with Node v22.23.4; lockfile unchanged
Linux: full pnpm test 304 passed, 0 failed; all 19 test files passed
Windows: full pnpm test 293 passed / 11 failed, exactly the pre-existing Windows baseline
./scripts/bump-version.sh --check Passed unmodified on an LF clone in WSL Ubuntu
./scripts/sync-copy.sh --check Passed unmodified in WSL Ubuntu
All plugin-manifest.yml validation steps Passed in WSL with native Linux tools, including existing Claude/Codex checks, assets, native manifests and the disposable version-bump step
Verbatim copilot-install smoke script Passed without credentials using Linux Node v22.23.4 and stable Copilot 1.0.102 from a temporary npm prefix
Disposable bump to 0.18.2 All five surfaces advanced, with only their version line changed
Candidate checkout marketplace/install/list/skill-list sequence Passed at 0.18.1; live-source plugin enabled and skill discovered
Isolated [email protected] --agent github-copilot install Passed; core skill resources match source hashes in .agents/skills/open-prose
Root Agent Plugins fixture through [email protected] Same observed Copilot skill installation and resource hashes
Combined --agent codex --agent github-copilot --agent claude-code selection Passed in a disposable home; both .agents/skills and .claude/skills match source
Qualified and bare copilot plugin update Both returned 0 under stable 1.0.102 and correctly reported a live-source plugin needs no update; RELEASE syntax retained
git diff --check and existing-envelope diff Passed; no changes to Claude/Codex manifests, marketplaces, AGENTS.md or SKILL.md

The 11 Windows baseline failures are seven CRLF-sensitive facet assertions plus
four path-separator/harness-surface assertions. None fails on Linux.

No Claude runtime install/run was attempted. Existing Claude/Codex manifest
validators pass and their envelope files are unchanged.

Residual Risk / Follow-ups

The install smoke depends on downloading stable @github/[email protected] and
does not prove model execution, isolated renders, question/resume behavior,
publication correctness, or continuous operation.

Baseline VM conformance is PARTIAL across 12 CLI/SDK runs. task-based
isolated renders executed an overlapping DAG with verified hashes and receipts,
and the SDK onUserInputRequest path worked. Envelope persistence depended on
the model, ~/.copilot/skills was not resolved, and CLI processes returned
exit 0 on semantic failure. VS Code and cloud execution were untested.
Full transcripts available on request.

The new workflow steps were replayed locally; GitHub-hosted execution remains
subject to this pull request's CI results.

VS Code can continue discovering the existing Claude envelope. App, VS Code,
cloud and SDK discovery paths are documented from current host references;
the baseline SDK execution evidence above is partial, and app UI, VS Code and
cloud execution remain untested. AGENTS.md's Codex-only framing and host-catalog
skill resolution remain explicit follow-ups.

Prepared with GitHub Copilot agent sessions; publication approved by @peaceful-weapon.

Add a Copilot-specific plugin and marketplace while preserving the Claude and Codex envelopes. Keep release versions and copy synchronized, exercise version writes, and verify native discovery with a keyless install smoke.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: f1ac36f8-62a1-4628-be68-8e78815bd49e
@josemontesdeoca

Copy link
Copy Markdown
Member

Thanks @peaceful-weapon ! I’m picking up this review too. I’ll start with the packaging changes here, then work through the host mapping and skill discovery changes proposed in #192

This branch has not been deployed

No deployments
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.

2 participants