Repository navigation
Define Copilot host mapping and skill discovery - #192
Open
peaceful-weapon wants to merge 1 commit into
Open
peaceful-weapon wants to merge 1 commit into
peaceful-weapon wants to merge 1 commit into
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 09c87812-17e2-4a02-99a5-f8661a013238
Member
|
Hey @peaceful-weapon thanks for this contribution, and apologies for the slow response! I appreciate how you’ve split the packaging work in #191 from the host mapping and skill discovery changes here, and clearly documented what you tested and the remaining limitations. I’m picking up the maintainer review and will work with you on getting this ready to land. I’ll follow up here with any concrete findings. I’d also be interested to hear what you’re building with OpenProse and Copilot, if you’d like to share. |
This branch has not been deployed
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
taskwithagent_type: "general-purpose", same-turn concurrency, and SDK questions toonUserInputRequest. Define blocked headless input without waiving thedurable envelope for inline fallbacks.
Markdown rules and language spec, with deterministic precedence and
fail-closed unresolved declarations, backed by 14 conformance assertions.
registry, without executing declared CLIs or contacting MCP servers.
bindings/from responsibilityworld-model/plus receiptsin the SKILL.md
copy_bindingrow, aligning publication with prose.md'scommit_world_modelinstead of treating both kinds as file copies.check_toolrows to the SKILL.md adapter and spec/01-Language.mdProse Complete tables, making existing presence-only preflight requirements
explicit in both host-capability summaries.
Refs #190
Use Case / Run Evidence
A caller has a
document-skills:pdfskill installed where Copilot expects it,but OpenProse rejects the declaration. In an isolated home,
copilot skill listsees~\.copilot\skills\pdf, while the unmodifieddeclared-skillsexample producesskill_unresolvedbecause OpenProse'senumerated search roots omit that location.
Baseline: OpenProse
0ab7237, skill 0.18.1, runtime contract 2; Windows,Copilot CLI 1.0.99-2 and
@github/copilot-sdk1.0.25 explicitly connected tothat same runtime. Twelve baseline model-backed probes cover a called
function, a Forme fan-in, skills, CLI/MCP tools, missing input, SDK callbacks
and prompt-mode autopilot. Two post-patch runs verify the discovery fix.
Each probe used a separate temporary project and home, without installing
anything into the user's personal configuration.
Representative observations:
taskcalls start 2 ms apart, overlap, and feed one join;all three canonical world-model hashes and receipt digest attestations verify.
ask_userreachesonUserInputRequest, resumes with a supplied value,starts a real
task, and writes the required basic function envelope.skill and emits valid function-only IR.
The verdict remains partial conformance, not a claim that plugin loading
makes every Copilot surface Prose Complete. A default-model SDK run omitted
required activation/source artifacts, and a separate CLI run omitted its
completion marker despite a correct answer. The patch documents existing
obligations rather than claiming those execution-adherence problems are solved.
Design Boundary
The skill and interpreter documents are the executable language surface in
this repository. Host spellings belong in the Host Primitive Adapter; declared
skill resolution belongs in the pinned compiler and Contract Markdown rules.
This changes discovery semantics, not only installation documentation; the
umbrella issue records that boundary.
The root order is project
skills,.github/skills,.agents/skills,.claude/skills, then personal.claude/skills,.codex/skills,.copilot/skills,.agents/skills. The old roots retain their relative order;project roots precede personal roots. Within each root, flat layout precedes
namespaced layout, and the first matching directory wins. Existing additive
scope,
skill_unresolved, and the no-install invariant remain unchanged.For declarations that already resolved, configurations without duplicate skill
names select the same copy as before. Newly searched roots can resolve
previously missing declarations. With duplicate names, a matching copy in a
new project
.github/skills,.agents/skillsor.claude/skillsroot takesprecedence over any personal copy;
~/.copilot/skillsalso takes precedenceover
~/.agents/skills. Existing declarations can therefore select a differentcopy when a duplicate exists in one of those newly searched, earlier roots.
MCP checks use exact advertised server registration for the active session,
including plugin and session-scoped configuration when advertised. Merely
finding a name in a configuration file is insufficient. Preflight does not
connect to servers or execute CLI tools.
No new VM, SDK dependency, wrapper binary, installer, plugin envelope, CI job,
served harness, or provider connector is added. Plugin delivery and install
documentation belong to the sibling contribution, Add native Copilot plugin
packaging.
Examples
The existing declaration is unchanged:
Before, a skill present only in
~\.copilot\skills\pdfwas visible to Copilotbut produced
skill_unresolved. After, the same isolated setup compiles theunmodified example. Removing the skill still produces
skill_unresolvedandwrites no manifest.
Supply required inputs for prompt mode:
An SDK host can collect an omitted input without changing the OpenProse source:
approveAllis the probe's isolated-workspace permission policy, not arecommended default for arbitrary SDK applications. Production hosts choose
their own permission handler and enable the required tools.
Testing
branch.
pnpm install --frozen-lockfilesucceeds, thenpnpm testpassesall 318 tests in 20 suites, including all 14 new host-adapter assertions.
npx -y [email protected] install --frozen-lockfilesucceeds on Windows;no dependency or lockfile changes.
npx -y [email protected] exec vitest run tests/open-prose/host-adapter/copilot.test.ts:14 passed. Before the interpreter changes, 12 of these assertions failed;
the two existing-invariant checks already passed.
npx -y [email protected] test: baseline 293 passed / 11 failed;patched 307 passed / the same 11 failed. The existing Windows failures are
seven CRLF-sensitive facet lookups and four path-separator checks.
All of those tests pass on the LF Linux clone.
thirteenth concrete candidate, and the compiler emits a 419-byte IR v2
manifest with no diagnostics.
the compiler reports
skill_unresolvedand emits no manifest.git diff --checkpasses. Document/compiler assertions normalize CRLFlocally rather than changing the existing corpus or unrelated tests.
No complete interactive UI certification is claimed.
Residual Risk / Follow-ups
source isolation, portable IR paths and completion markers need separate
deterministic enforcement or eval coverage.
copilot -pexits 0 even when the embodied VM reports blockedinput or failed compilation. Automation must inspect the semantic result
and required artifacts; this patch does not change Copilot process status.
guidance, not exercised conformance claims. VS Code
runSubagent, cloudexecution and desktop UI interactions were not tested or added here.
model-backed regression exercises the personal root. The deterministic
suite prevents root-order drift across the three language surfaces.
Duplicate names can now select project
.github/skills,.agents/skillsor
.claude/skillsbefore any personal root, or~/.copilot/skillsbefore~/.agents/skills; review those duplicates before adopting the new roots.below
Unreleased; whichever lands second needs a trivial changelog rebase.skillDirectories, provider-only skills, custom plugin skilllocations, disabled/missing MCP servers, repeated activations and alternate
state backends remain outside the measured coverage.
host's final usage export includes per-agent metrics. No telemetry bridge
is introduced.
Prepared with GitHub Copilot agent sessions; publication approved by @peaceful-weapon.