create-agdf 0.13.8 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +14 -10
  2. package/generated/plugins/agdf/.claude-plugin/plugin.json +1 -1
  3. package/generated/plugins/agdf/.codex-plugin/plugin.json +2 -4
  4. package/generated/plugins/agdf/meta/agdf-plugin.definition.json +26 -2
  5. package/generated/plugins/agdf/meta/copilot-payload-baseline.json +7 -0
  6. package/generated/plugins/agdf/runtime/agdf-local.js +1 -1
  7. package/generated/plugins/agdf/runtime/agdf-session-check.js +10 -5
  8. package/generated/plugins/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +26 -2
  9. package/generated/plugins/agdf/runtime/create-agdf/lib/cli/command-registry.js +6 -7
  10. package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/local-validator.js +29 -17
  11. package/generated/plugins/agdf/runtime/create-agdf/lib/runtime/plugin-provenance.js +50 -1
  12. package/generated/plugins/agdf/runtime/create-agdf/lib/runtime-check-consent/contract.js +3 -1
  13. package/generated/plugins/agdf/runtime/create-agdf/package.json +1 -1
  14. package/generated/plugins/agdf/runtime/runtime-manifest.json +2 -2
  15. package/generated/plugins/agdf/scripts/check-runtime-integrity.mjs +32 -3
  16. package/generated/plugins/agdf/submission/openai/availability.md +1 -1
  17. package/generated/plugins/agdf/submission/openai/capability-matrix.json +1 -1
  18. package/generated/plugins/agdf/submission/openai/release-notes.md +1 -1
  19. package/generated/plugins/agdf/submission/openai/reviewer-cases.json +1 -1
  20. package/generated/plugins/copilot/agdf/.agdf-payload-inventory.json +771 -0
  21. package/generated/plugins/copilot/agdf/LICENSE +201 -0
  22. package/generated/plugins/copilot/agdf/hooks/copilot-hooks.json +15 -0
  23. package/generated/{AGENTS.md → plugins/copilot/agdf/meta/agdf-agent-router.md} +49 -33
  24. package/generated/plugins/copilot/agdf/meta/agdf-constitution.md +329 -0
  25. package/generated/plugins/copilot/agdf/meta/agdf-plugin.definition.json +331 -0
  26. package/generated/plugins/copilot/agdf/meta/agdf-runtime-contract.md +16 -0
  27. package/generated/plugins/copilot/agdf/plugin.json +22 -0
  28. package/generated/plugins/copilot/agdf/runtime/agdf-local.js +18 -0
  29. package/generated/plugins/copilot/agdf/runtime/agdf-session-check.js +97 -0
  30. package/generated/plugins/copilot/agdf/runtime/create-agdf/NOTICE +10 -0
  31. package/generated/plugins/copilot/agdf/runtime/create-agdf/bin/agdf-validator.js +11 -0
  32. package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-interaction-locales.json +512 -0
  33. package/generated/plugins/copilot/agdf/runtime/create-agdf/generated/plugins/agdf/meta/agdf-plugin.definition.json +331 -0
  34. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/command-registry.js +144 -0
  35. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/delivery-path-search-command.js +139 -0
  36. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/parse-args.js +173 -0
  37. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/runtime-context.js +83 -0
  38. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/cli/validation-handlers.js +46 -0
  39. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/delivery-map.js +301 -0
  40. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/doctor.js +272 -0
  41. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/gate-check.js +455 -0
  42. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/gate-policy.js +305 -0
  43. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/parent-reconciliation.js +284 -0
  44. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/required-files.js +9 -0
  45. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/run-state.js +217 -0
  46. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/shared.js +345 -0
  47. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-evaluation/verified-change.js +156 -0
  48. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/aggregate.js +18 -0
  49. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/gate-approval-validator.js +49 -0
  50. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/index.js +7 -0
  51. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/legacy-migration.js +95 -0
  52. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-parser.js +265 -0
  53. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-repository.js +68 -0
  54. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-resolver.js +45 -0
  55. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/control-state/run-state-writer.js +97 -0
  56. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/candidate-policy.js +99 -0
  57. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/contracts.js +237 -0
  58. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/claude.js +35 -0
  59. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/codex.js +44 -0
  60. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/opencode.js +234 -0
  61. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/prompt.js +13 -0
  62. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/evaluators/protocol.js +13 -0
  63. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/generators/claude.js +40 -0
  64. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/generators/codex.js +38 -0
  65. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/generators/protocol.js +12 -0
  66. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/persistence.js +39 -0
  67. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/scoring.js +21 -0
  68. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/search-engine.js +155 -0
  69. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/state-adapter.js +161 -0
  70. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/surfaces/capabilities.js +27 -0
  71. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/delivery-path-search/transports/read-only-guard.js +43 -0
  72. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/interaction-presentation.js +842 -0
  73. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/local-validator.js +239 -0
  74. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/plugin-provenance.js +255 -0
  75. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime/validator-application.js +40 -0
  76. package/generated/plugins/copilot/agdf/runtime/create-agdf/lib/runtime-check-consent/contract.js +73 -0
  77. package/generated/plugins/copilot/agdf/runtime/create-agdf/package.json +6 -0
  78. package/generated/plugins/copilot/agdf/runtime/runtime-manifest.json +8 -0
  79. package/generated/submissions/openai/agdf/.codex-plugin/plugin.json +1 -2
  80. package/generated/submissions/openai/agdf/meta/agdf-plugin.definition.json +26 -2
  81. package/generated/submissions/openai/agdf/meta/copilot-payload-baseline.json +7 -0
  82. package/generated/submissions/openai/agdf/submission/openai/availability.md +1 -1
  83. package/generated/submissions/openai/agdf/submission/openai/capability-matrix.json +1 -1
  84. package/generated/submissions/openai/agdf/submission/openai/inventory.json +13 -9
  85. package/generated/submissions/openai/agdf/submission/openai/listing.json +1 -1
  86. package/generated/submissions/openai/agdf/submission/openai/readiness.json +2 -2
  87. package/generated/submissions/openai/agdf/submission/openai/readiness.md +2 -2
  88. package/generated/submissions/openai/agdf/submission/openai/release-notes.md +1 -1
  89. package/generated/submissions/openai/agdf/submission/openai/reviewer-cases.json +1 -1
  90. package/lib/cli/application.js +64 -8
  91. package/lib/cli/command-registry.js +6 -7
  92. package/lib/installers/copilot-precedence.js +34 -0
  93. package/lib/installers/copilot-settings.js +84 -0
  94. package/lib/installers/local-marketplace.js +112 -30
  95. package/lib/installers/plugin-installers.js +184 -5
  96. package/lib/lifecycle/operations.js +3 -0
  97. package/lib/lifecycle/result.js +1 -0
  98. package/lib/lifecycle/status.js +3 -3
  99. package/lib/public-plugin/copilot-profile.js +126 -0
  100. package/lib/public-plugin/manifest.js +34 -2
  101. package/lib/public-plugin/validator.js +1 -1
  102. package/lib/release/version-coherence.js +4 -0
  103. package/lib/runtime/local-validator.js +29 -17
  104. package/lib/runtime/plugin-provenance.js +50 -1
  105. package/lib/runtime-check-consent/contract.js +3 -1
  106. package/lib/runtime-check-consent/coordinator.js +1 -0
  107. package/lib/runtime-check-consent/service.js +1 -1
  108. package/lib/runtime-check-consent/state.js +3 -3
  109. package/lib/scaffold/plan.js +3 -89
  110. package/lib/scaffold/presentation.js +3 -22
  111. package/package.json +6 -3
  112. package/generated/.github/copilot-instructions.md +0 -16
  113. package/generated/.github/instructions/agdf-governance.instructions.md +0 -14
  114. package/generated/.github/skills/README.md +0 -20
  115. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/agdf-brownfield-analysis/SKILL.md +0 -0
  116. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/agdf-clean-implementation-review/SKILL.md +0 -0
  117. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/agdf-code-review/SKILL.md +0 -0
  118. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/agdf-delivery-closeout/SKILL.md +0 -0
  119. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/agdf-delivery-path-search/SKILL.md +0 -0
  120. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/agdf-gate-check/SKILL.md +0 -0
  121. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/agdf-interaction-locales.json +0 -0
  122. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/agdf-qa-gate/SKILL.md +0 -0
  123. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/agdf-release-or/SKILL.md +0 -0
  124. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/agdf-runtime-contract.md +0 -0
  125. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/agdf-task-plan-review/SKILL.md +0 -0
  126. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/agdf-ux-intent-definition/SKILL.md +0 -0
  127. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/contracts/closeout.md +0 -0
  128. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/contracts/context-graph.md +0 -0
  129. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/contracts/control-scaffold.md +0 -0
  130. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/contracts/gate-transition.md +0 -0
  131. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/contracts/interaction.md +0 -0
  132. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/contracts/modes.md +0 -0
  133. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/contracts/quality.md +0 -0
  134. /package/generated/{.github/skills → plugins/copilot/agdf/copilot-skills}/contracts/task-target-resolution.md +0 -0
package/README.md CHANGED
@@ -24,10 +24,12 @@ Use a different target when Codex is not your agent surface:
24
24
  | Surface or goal | Start with | What it gives you |
25
25
  |---|---|---|
26
26
  | Claude Code | `npx --yes @agdf/cli@latest claude` | The AGDF plugin for Claude Code. |
27
+ | GitHub Copilot | `npx --yes @agdf/cli@latest copilot` | The AGDF plugin with prefixed skills and a consent-bound session hook. |
27
28
  | OpenCode, user-wide discovery | `npx --yes @agdf/cli@latest opencode` | The npm plugin and global native skills; repository governance remains opt-in. |
28
29
  | OpenCode, one repository | `npx --yes @agdf/cli@latest opencode-repo` | Durable control configuration that activates the once-installed global runtime. |
30
+ | Durable control state in an existing setup | `npx --yes @agdf/cli@latest init` | Live `.agdf/control/` state when the repository explicitly needs it. |
29
31
 
30
- The runtime-bearing `codex`, `claude` and `opencode` installers ask before enabling narrow automatic
32
+ The runtime-bearing `codex`, `claude`, `copilot` and `opencode` installers ask before enabling narrow automatic
31
33
  local checks on an interactive terminal. The choices are `enable`, `manual` and `cancel`; enablement
32
34
  is never preselected. Every interactive installation or update asks again. A previous choice is
33
35
  shown only as intent, never as proof of effective host permission. The prompt shows the target AGDF
@@ -51,8 +53,6 @@ from AGDF gate approval. A receipt alone never proves effective host permission.
51
53
  Claude deny/ask precedence and all explicit OpenCode permissions remain authoritative. The public
52
54
  Skills-only OpenAI candidate has no runtime or hooks and therefore remains manual/external for this
53
55
  capability.
54
- | GitHub Copilot | `npx --yes @agdf/cli@latest copilot` | Repository instructions, visible skills and control templates. |
55
- | Durable control state in an existing setup | `npx --yes @agdf/cli@latest init` | Live `.agdf/control/` state when the repository explicitly needs it. |
56
56
 
57
57
  For prerequisites, all surface-specific flows and operational boundaries, use the authoritative [installation guide](../INSTALL.md). Do not run `init` merely to ask a fresh question: an agent can first clarify the request and ask for `Approval: UR` when durable control state is needed.
58
58
 
@@ -66,6 +66,7 @@ Installation, activation and explicit lifecycle changes:
66
66
  npx --yes @agdf/cli@latest codex
67
67
  npx --yes @agdf/cli@latest codex-repo
68
68
  npx --yes @agdf/cli@latest claude
69
+ npx --yes @agdf/cli@latest copilot
69
70
  npx --yes @agdf/cli@latest opencode
70
71
  npx --yes @agdf/cli@latest opencode-status
71
72
  npx --yes @agdf/cli@latest opencode-repo
@@ -104,11 +105,9 @@ Backward-compatible scaffold usage:
104
105
  npm create agdf@latest -- codex
105
106
  npm create agdf@latest -- codex-repo
106
107
  npm create agdf@latest -- claude
107
- npm create agdf@latest -- copilot
108
108
  npm create agdf@latest -- opencode
109
109
  npm create agdf@latest -- opencode-status
110
110
  npm create agdf@latest -- opencode-repo
111
- npm create agdf@latest -- both
112
111
  npm create agdf@latest -- init
113
112
  npm create agdf@latest -- config --language en
114
113
  npm create agdf@latest -- doctor
@@ -138,7 +137,7 @@ it does not localize the CLI lifecycle card.
138
137
  - `codex` installs the AGDF plugin globally for Codex
139
138
  - `codex-repo` writes a repository-local Codex marketplace under `.agents/plugins/` and a local AGDF plugin copy under `plugins/agdf/`
140
139
  - `claude` installs the AGDF plugin globally for Claude Code
141
- - `copilot` writes `AGENTS.md`, Copilot custom instructions under `.github/`, visible repository skills under `.github/skills/`, and AGDF control templates under `.agdf/control/`
140
+ - `copilot` registers the AGDF-owned local Marketplace and installs `agdf@agdf` through Copilot CLI; when `copilot` is not on `PATH`, it runs the pinned official `@github/copilot` CLI package through npm, then verifies AGDF in Copilot's own plugin list
142
141
  - `opencode` installs the AGDF npm plugin and ten native skills as a user-wide OpenCode surface
143
142
  - `opencode-status` reports OpenCode global config, package loadability, global native-skill completeness, installed host/plugin-SDK versions, declaration-level support for AGDF's two experimental hooks, durable repository activation, legacy compatibility and observable session signals
144
143
  - `status` reports installation, repository activation and delivery separately without mutating state
@@ -146,11 +145,12 @@ it does not localize the CLI lifecycle card.
146
145
  - `disable` writes a supported repository-local opt-out while retaining global capability and durable control state
147
146
  - `uninstall` previews and, only with `--confirm`, applies a selected global removal through supported native/owned operations
148
147
  - `opencode-repo` writes durable AGDF control configuration and templates under `.agdf/control/`; it does not copy a second OpenCode runtime surface
149
- - `both` writes the Codex repository-local marketplace plus the Copilot-facing repository files
150
148
  - `config` writes or updates only `.agdf/control/config.json` for an already installed plugin or an existing repository
151
149
 
152
- The `codex` and `claude` commands install from the complete plugin built into the released
153
- `create-agdf` package. They atomically stage it under an AGDF-owned user-data marketplace, register
150
+ The `codex` and `claude` commands install the complete shared plugin built into the released
151
+ `create-agdf` package. The `copilot` command installs a dedicated generated profile containing only
152
+ the Copilot manifest, prefixed skills, hook, required contracts and exact-version runtime. Every profile
153
+ is rendered from the same canonical sources. The installers atomically stage their profile under an AGDF-owned user-data marketplace, register
154
154
  that stable local path through the host CLI and verify the exposed version. Source `plugin/` therefore
155
155
  contains no generated runtime bytes and the source checkout exposes no installable root marketplace.
156
156
  The staged plugin contains one installation-provenance marker and the shared exact-version runtime;
@@ -159,7 +159,11 @@ checkout, npm cache, PATH or registry. Rerunning either command performs the exp
159
159
  migrates only the exact known legacy AGDF GitHub marketplace; foreign same-name registrations fail
160
160
  closed and failed host operations restore the prior owned stage.
161
161
 
162
- If the target repository already has an `AGENTS.md`, `create-agdf` preserves it and writes `AGENTS.agdf.md` instead of replacing your existing instructions. Merge the AGDF fragment into your current `AGENTS.md` when you want Copilot to load both instruction sets. The generated `.github/copilot-instructions.md` keeps Copilot pointed at `AGENTS.md`, `.github/skills/` and `.agdf/control/` without duplicating the full AGDF rule model. Use `--force` only when you explicitly want to overwrite generated files.
162
+ Copilot staging uses the independent path `<AGDF data directory>/marketplaces/agdf-copilot`. This
163
+ prevents Copilot updates and rollbacks from replacing the shared Codex and Claude payload while the
164
+ host-facing Marketplace identity remains `agdf` and the install identity remains `agdf@agdf`.
165
+
166
+ The Copilot installer does not create, rewrite or remove repository files. Existing `AGENTS.md`, `.github/` and `.agdf/control/` content remains untouched. Use `init` separately when a repository should own surface-neutral durable AGDF control state.
163
167
 
164
168
  Use the `codex-repo` target when AGDF should be available only inside one repository instead of being installed as a personal/global Codex plugin.
165
169
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agdf",
3
- "version": "0.13.8",
3
+ "version": "0.14.2",
4
4
  "description": "AI Governance & Delivery Framework (AGDF) is a governance framework for agentic work. Its first implementation provides a control layer for governed AI-assisted software delivery. It combines workflow skills, explicit gates, control templates and machine-readable repository checks to keep work aligned with approved scope and make evidence a prerequisite for consequential gate transitions. Supported workflows include brownfield analysis, task-plan review, QA decisions, durable run state and auditable delivery closeout. AGDF is an independent open-source project, not a security sandbox, compliance certification or autonomous release system.",
5
5
  "keywords": [
6
6
  "agentic",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agdf",
3
- "version": "0.13.8",
3
+ "version": "0.14.2",
4
4
  "description": "Control layer for governed AI-assisted delivery.",
5
5
  "author": {
6
6
  "name": "Arndt Gold",
@@ -30,7 +30,6 @@
30
30
  "websiteURL": "https://agdf.iself.eu",
31
31
  "privacyPolicyURL": "https://agdf.iself.eu/privacy",
32
32
  "termsOfServiceURL": "https://agdf.iself.eu/terms",
33
- "supportURL": "https://agdf.iself.eu/support",
34
33
  "composerIcon": "./assets/agdf-icon.svg",
35
34
  "logo": "./assets/agdf-logo.svg",
36
35
  "defaultPrompt": [
@@ -39,6 +38,5 @@
39
38
  "Close this delivery run with an auditable AGDF report."
40
39
  ],
41
40
  "brandColor": "#14B8A6"
42
- },
43
- "hooks": "./hooks/hooks.json"
41
+ }
44
42
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "id": "agdf",
4
- "version": "0.13.8",
4
+ "version": "0.14.2",
5
5
  "displayName": "AI Governance & Delivery Framework",
6
6
  "developerName": "Arndt Gold",
7
7
  "description": "Control layer for governed AI-assisted delivery.",
@@ -50,7 +50,10 @@
50
50
  },
51
51
  "copilot": {
52
52
  "skillPrefix": "agdf-",
53
- "runtimeContractFileName": "agdf-runtime-contract.md"
53
+ "runtimeContractFileName": "agdf-runtime-contract.md",
54
+ "pluginManifest": "plugin.json",
55
+ "skills": "copilot-skills/",
56
+ "hooks": "hooks/copilot-hooks.json"
54
57
  },
55
58
  "opencode": {
56
59
  "skillPrefix": "agdf-",
@@ -87,6 +90,7 @@
87
90
  "surfaces": {
88
91
  "codex": "native-hook-review",
89
92
  "claude": "exact-command-rule",
93
+ "copilot": "plugin-hook-review",
90
94
  "opencode": "plugin-internal",
91
95
  "portable-skills": "manual-external-required"
92
96
  }
@@ -143,6 +147,21 @@
143
147
  "authorizationPath": "exact_text",
144
148
  "technicalPermissionOwner": "claude_host"
145
149
  },
150
+ "copilot": {
151
+ "questionAdapter": "exact_text",
152
+ "availability": "always",
153
+ "gateSafety": "wait_for_deliberate_user_input",
154
+ "explicitOutcomes": [
155
+ "approve",
156
+ "revise",
157
+ "decline",
158
+ "cancel"
159
+ ],
160
+ "approvalValueTransport": "exact_option_value",
161
+ "waitSafety": "deliberate_no_auto_resolution",
162
+ "authorizationPath": "exact_text",
163
+ "technicalPermissionOwner": "copilot_host"
164
+ },
146
165
  "opencode": {
147
166
  "questionAdapter": "question",
148
167
  "availability": "when_permission_question_allows",
@@ -292,6 +311,11 @@
292
311
  "installable": true,
293
312
  "machineValidation": "local_exact_version_digest"
294
313
  },
314
+ "copilot-runtime-plugin": {
315
+ "runtime": "required",
316
+ "installable": true,
317
+ "machineValidation": "local_exact_version_digest_inventory"
318
+ },
295
319
  "opencode-config-local": {
296
320
  "runtime": "config_local_package",
297
321
  "installable": true,
@@ -0,0 +1,7 @@
1
+ {
2
+ "schema_version": 1,
3
+ "profile_id": "copilot-runtime-plugin",
4
+ "max_files": 78,
5
+ "max_bytes": 539607,
6
+ "rationale": "Reviewed Copilot-only manifest, ten prefixed skills, required contracts, exact-version runtime and evidence-plane separation. Any further increase requires review."
7
+ }
@@ -12,7 +12,7 @@ const manifest = JSON.parse(readFileSync(new URL("./runtime-manifest.json", impo
12
12
  process.exitCode = runLocalValidator({
13
13
  runtimeRoot,
14
14
  pluginRoot,
15
- expectedPluginRoot: process.env.CLAUDE_PLUGIN_ROOT || undefined,
15
+ expectedPluginRoot: process.env.CLAUDE_PLUGIN_ROOT || process.env.PLUGIN_ROOT || undefined,
16
16
  expectedVersion: manifest.version,
17
17
  surface: process.env.AGDF_SURFACE || "plugin",
18
18
  }, process.argv.slice(2));
@@ -15,7 +15,7 @@ if (process.argv.length !== 2) {
15
15
  process.exitCode = 2;
16
16
  } else {
17
17
  const surface = process.env.AGDF_SURFACE
18
- || (process.env.CLAUDE_PLUGIN_ROOT ? "claude" : process.env.PLUGIN_ROOT ? "codex" : "");
18
+ || (process.env.CLAUDE_PLUGIN_ROOT ? "claude" : process.env.COPILOT_PLUGIN_DATA ? "copilot" : process.env.PLUGIN_ROOT ? "codex" : "");
19
19
  const dataRoot = process.env.AGDF_DATA_DIR
20
20
  || (process.platform === "darwin"
21
21
  ? join(homedir(), "Library", "Application Support", "agdf")
@@ -23,7 +23,7 @@ if (process.argv.length !== 2) {
23
23
  ? join(process.env.LOCALAPPDATA || process.env.APPDATA || join(homedir(), "AppData", "Local"), "agdf")
24
24
  : join(process.env.XDG_DATA_HOME || join(homedir(), ".local", "share"), "agdf"));
25
25
  let consentEnabled = false;
26
- if (["codex", "claude", "opencode"].includes(surface)) {
26
+ if (["codex", "claude", "copilot", "opencode"].includes(surface)) {
27
27
  try {
28
28
  const receipt = JSON.parse(readFileSync(join(dataRoot, "runtime-checks", `${surface}.json`), "utf8"));
29
29
  consentEnabled = receipt?.schema_version === 1
@@ -31,7 +31,7 @@ if (process.argv.length !== 2) {
31
31
  && receipt?.capability_id === "automatic-runtime-checks"
32
32
  && receipt?.surface === surface
33
33
  && receipt?.requested_state === "enabled";
34
- if (consentEnabled && ["codex", "claude"].includes(surface)) {
34
+ if (consentEnabled && ["codex", "claude", "copilot"].includes(surface)) {
35
35
  const pluginRoot = fileURLToPath(new URL("../", import.meta.url));
36
36
  const manifest = JSON.parse(readFileSync(new URL("./runtime-manifest.json", import.meta.url), "utf8"));
37
37
  const definition = JSON.parse(readFileSync(new URL("../meta/agdf-plugin.definition.json", import.meta.url), "utf8"));
@@ -74,7 +74,7 @@ if (process.argv.length !== 2) {
74
74
  configHint = "Project config: .agdf/control/config.json is invalid. Run the surface-local doctor command manually.";
75
75
  }
76
76
  }
77
- console.log([
77
+ const additionalContext = [
78
78
  "AGDF active.",
79
79
  "",
80
80
  message,
@@ -87,6 +87,11 @@ if (process.argv.length !== 2) {
87
87
  `- ${join(pluginRoot, "meta", "agdf-agent-router.md")}`,
88
88
  `- ${join(pluginRoot, "meta", "agdf-constitution.md")}`,
89
89
  `- ${join(pluginRoot, "meta", "agdf-runtime-contract.md")}`,
90
- ].join("\n"));
90
+ ].join("\n");
91
+ if (surface === "copilot") {
92
+ console.log(JSON.stringify({ additionalContext }));
93
+ } else {
94
+ console.log(additionalContext);
95
+ }
91
96
  process.exitCode = 0;
92
97
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "id": "agdf",
4
- "version": "0.13.8",
4
+ "version": "0.14.2",
5
5
  "displayName": "AI Governance & Delivery Framework",
6
6
  "developerName": "Arndt Gold",
7
7
  "description": "Control layer for governed AI-assisted delivery.",
@@ -50,7 +50,10 @@
50
50
  },
51
51
  "copilot": {
52
52
  "skillPrefix": "agdf-",
53
- "runtimeContractFileName": "agdf-runtime-contract.md"
53
+ "runtimeContractFileName": "agdf-runtime-contract.md",
54
+ "pluginManifest": "plugin.json",
55
+ "skills": "copilot-skills/",
56
+ "hooks": "hooks/copilot-hooks.json"
54
57
  },
55
58
  "opencode": {
56
59
  "skillPrefix": "agdf-",
@@ -87,6 +90,7 @@
87
90
  "surfaces": {
88
91
  "codex": "native-hook-review",
89
92
  "claude": "exact-command-rule",
93
+ "copilot": "plugin-hook-review",
90
94
  "opencode": "plugin-internal",
91
95
  "portable-skills": "manual-external-required"
92
96
  }
@@ -143,6 +147,21 @@
143
147
  "authorizationPath": "exact_text",
144
148
  "technicalPermissionOwner": "claude_host"
145
149
  },
150
+ "copilot": {
151
+ "questionAdapter": "exact_text",
152
+ "availability": "always",
153
+ "gateSafety": "wait_for_deliberate_user_input",
154
+ "explicitOutcomes": [
155
+ "approve",
156
+ "revise",
157
+ "decline",
158
+ "cancel"
159
+ ],
160
+ "approvalValueTransport": "exact_option_value",
161
+ "waitSafety": "deliberate_no_auto_resolution",
162
+ "authorizationPath": "exact_text",
163
+ "technicalPermissionOwner": "copilot_host"
164
+ },
146
165
  "opencode": {
147
166
  "questionAdapter": "question",
148
167
  "availability": "when_permission_question_allows",
@@ -292,6 +311,11 @@
292
311
  "installable": true,
293
312
  "machineValidation": "local_exact_version_digest"
294
313
  },
314
+ "copilot-runtime-plugin": {
315
+ "runtime": "required",
316
+ "installable": true,
317
+ "machineValidation": "local_exact_version_digest_inventory"
318
+ },
295
319
  "opencode-config-local": {
296
320
  "runtime": "config_local_package",
297
321
  "installable": true,
@@ -13,15 +13,14 @@ export const commandRegistry = Object.freeze([
13
13
  command("codex", { preferred: [""], scaffold: [""] }),
14
14
  command("codex-repo", { preferred: [""], scaffold: [""] }),
15
15
  command("claude", { preferred: [""], scaffold: [""] }),
16
- command("copilot", { preferred: [""], scaffold: [""] }),
16
+ command("copilot", { preferred: [""] }),
17
17
  command("opencode", { preferred: [""], scaffold: [""] }),
18
18
  command("opencode-status", { preferred: [""], scaffold: [""] }),
19
19
  command("status", { preferred: [" [--surface <surface>] [--run <run_id>] [--json]"] }),
20
- command("runtime-checks", { preferred: [" <status|enable|manual> --surface <codex|claude|opencode> [--json]"] }),
20
+ command("runtime-checks", { preferred: [" <status|enable|manual> --surface <codex|claude|copilot|opencode> [--json]"] }),
21
21
  command("disable", { preferred: [" --surface <surface> [--scope repository] [--dir <path>]"] }),
22
22
  command("uninstall", { preferred: [" --surface <surface> --scope global [--confirm]"] }),
23
23
  command("opencode-repo", { preferred: [""], scaffold: [""] }),
24
- command("both", { scaffold: [""] }),
25
24
  command("init", { preferred: [""], scaffold: [""] }),
26
25
  command("config", { scaffold: [" --language de"] }),
27
26
  command("doctor", { local: [""], scaffold: [""], legacy: [" --json"] }),
@@ -66,11 +65,11 @@ export function validateCommandOptions(options) {
66
65
  throw new Error("uninstall requires explicit --scope global");
67
66
  }
68
67
  if (options.confirm && options.target !== "uninstall") throw new Error("--confirm is supported only by uninstall");
69
- if (options.runtimeChecksDecision && !["codex", "claude", "opencode"].includes(options.target)) {
70
- throw new Error("--runtime-checks is supported only by codex, claude and opencode installation commands");
68
+ if (options.runtimeChecksDecision && !["codex", "claude", "copilot", "opencode"].includes(options.target)) {
69
+ throw new Error("--runtime-checks is supported only by codex, claude, copilot and opencode installation commands");
71
70
  }
72
- if (options.target === "runtime-checks" && !["codex", "claude", "opencode"].includes(options.surface)) {
73
- throw new Error("runtime-checks requires --surface codex, claude or opencode");
71
+ if (options.target === "runtime-checks" && !["codex", "claude", "copilot", "opencode"].includes(options.surface)) {
72
+ throw new Error("runtime-checks requires --surface codex, claude, copilot or opencode");
74
73
  }
75
74
  if (options.approvalEnvelope && options.target !== "gate-check") throw new Error("--approval-envelope is supported only by gate-check");
76
75
  if (options.approvalEnvelope && (options.json || options.statusCard || options.allActive)) {
@@ -5,6 +5,7 @@ import process from "node:process";
5
5
  import {
6
6
  INSTALLATION_PROVENANCE_FILE,
7
7
  digestDirectory,
8
+ inspectCopilotPayloadInventory,
8
9
  inspectGeneratedRepositoryMarketplace,
9
10
  inspectInstallationProvenance,
10
11
  validateDistributionProfiles,
@@ -83,41 +84,52 @@ export function resolveLocalValidator(options) {
83
84
  }
84
85
  const codexManifest = readJson(join(pluginRoot, ".codex-plugin", "plugin.json"));
85
86
  const claudeManifest = readJson(join(pluginRoot, ".claude-plugin", "plugin.json"));
86
- const pluginVersion = codexManifest?.version ?? null;
87
- if (!codexManifest || !claudeManifest || claudeManifest.version !== definition.version) {
88
- return { envelope: envelope("version_mismatch", options, { source: "plugin_bundle", pluginRoot, pluginVersion, canonicalVersion: definition.version, distributionProfile: "runtime-plugin", provenanceStatus: "invalid", reason: "manifest_invalid" }) };
87
+ const copilotManifest = readJson(join(pluginRoot, "plugin.json"));
88
+ const copilotProfile = Boolean(copilotManifest && !codexManifest && !claudeManifest);
89
+ const distributionProfile = copilotProfile ? "copilot-runtime-plugin" : "runtime-plugin";
90
+ const pluginVersion = copilotProfile ? copilotManifest?.version ?? null : codexManifest?.version ?? null;
91
+ if (copilotProfile
92
+ ? copilotManifest.version !== definition.version
93
+ : (!codexManifest || !claudeManifest || claudeManifest.version !== definition.version)) {
94
+ return { envelope: envelope("version_mismatch", options, { source: "plugin_bundle", pluginRoot, pluginVersion, canonicalVersion: definition.version, distributionProfile, provenanceStatus: "invalid", reason: "manifest_invalid" }) };
95
+ }
96
+ const copilotInventory = copilotProfile ? inspectCopilotPayloadInventory(pluginRoot, definition.version) : null;
97
+ if (copilotProfile && copilotInventory.status !== "matched") {
98
+ return { envelope: envelope("version_mismatch", options, { source: "plugin_bundle", pluginRoot, pluginVersion, canonicalVersion: definition.version, distributionProfile, provenanceStatus: "invalid", reason: copilotInventory.reason }) };
89
99
  }
90
100
  const packageRoot = join(options.runtimeRoot, "create-agdf");
91
101
  if (!existsSync(packageRoot)) {
92
- return { envelope: envelope("unavailable", options, { source: "plugin_bundle", pluginRoot, pluginVersion, distributionProfile: "runtime-plugin", reason: "runtime_missing" }) };
102
+ return { envelope: envelope("unavailable", options, { source: "plugin_bundle", pluginRoot, pluginVersion, distributionProfile, reason: "runtime_missing" }) };
93
103
  }
94
104
  const packageManifest = readJson(join(packageRoot, "package.json"));
95
105
  const observedVersion = packageManifest?.version ?? manifest.version ?? null;
96
106
  if (observedVersion !== options.expectedVersion || manifest.version !== options.expectedVersion) {
97
- return { envelope: envelope("version_mismatch", options, { observedVersion, source: "plugin_bundle", pluginRoot, pluginVersion, canonicalVersion: definition.version, distributionProfile: "runtime-plugin" }) };
107
+ return { envelope: envelope("version_mismatch", options, { observedVersion, source: "plugin_bundle", pluginRoot, pluginVersion, canonicalVersion: definition.version, distributionProfile }) };
98
108
  }
99
109
  let observedDigest = null;
100
110
  try { observedDigest = digestDirectory(packageRoot); } catch {}
101
111
  if (!observedDigest || manifest.digest !== observedDigest) {
102
- return { envelope: envelope("version_mismatch", options, { observedVersion, source: "plugin_bundle", pluginRoot, pluginVersion, canonicalVersion: definition.version, runtimeDigest: observedDigest, distributionProfile: "runtime-plugin", reason: "runtime_digest_mismatch" }) };
112
+ return { envelope: envelope("version_mismatch", options, { observedVersion, source: "plugin_bundle", pluginRoot, pluginVersion, canonicalVersion: definition.version, runtimeDigest: observedDigest, distributionProfile, reason: "runtime_digest_mismatch" }) };
103
113
  }
104
114
  const entrypoint = resolve(options.runtimeRoot, manifest.entrypoint ?? "");
105
115
  const entrypointRelative = relative(options.runtimeRoot, entrypoint);
106
116
  if (!manifest.entrypoint || entrypointRelative === ".." || entrypointRelative.startsWith(`..${sep}`) || isAbsolute(entrypointRelative)) {
107
- return { envelope: envelope("version_mismatch", options, { observedVersion, source: "plugin_bundle", pluginRoot, pluginVersion, canonicalVersion: definition.version, runtimeDigest: observedDigest, distributionProfile: "runtime-plugin", reason: "invalid_entrypoint" }) };
117
+ return { envelope: envelope("version_mismatch", options, { observedVersion, source: "plugin_bundle", pluginRoot, pluginVersion, canonicalVersion: definition.version, runtimeDigest: observedDigest, distributionProfile, reason: "invalid_entrypoint" }) };
108
118
  }
109
119
  if (!existsSync(entrypoint)) {
110
- return { envelope: envelope("unavailable", options, { observedVersion, source: "plugin_bundle", pluginRoot, pluginVersion, canonicalVersion: definition.version, runtimeDigest: observedDigest, distributionProfile: "runtime-plugin", reason: "entrypoint_missing" }) };
120
+ return { envelope: envelope("unavailable", options, { observedVersion, source: "plugin_bundle", pluginRoot, pluginVersion, canonicalVersion: definition.version, runtimeDigest: observedDigest, distributionProfile, reason: "entrypoint_missing" }) };
111
121
  }
112
122
  const installed = existsSync(join(pluginRoot, INSTALLATION_PROVENANCE_FILE));
113
123
  let provenanceStatus = "not_applicable";
114
124
  let sourceDigest = null;
115
- let evidencePlane = "loaded_session";
125
+ let evidencePlane = options.expectedPluginRoot ? "loaded_session" : "installed_plugin_root";
116
126
  if (installed) {
117
127
  const provenance = inspectInstallationProvenance(pluginRoot, {
118
128
  definition,
119
129
  runtimeManifest: manifest,
120
130
  pluginVersion,
131
+ profileId: distributionProfile,
132
+ inventoryDigest: copilotInventory?.inventoryDigest ?? null,
121
133
  });
122
134
  provenanceStatus = provenance.status;
123
135
  sourceDigest = provenance.marker?.source_digest ?? null;
@@ -130,8 +142,8 @@ export function resolveLocalValidator(options) {
130
142
  canonicalVersion: definition.version,
131
143
  runtimeDigest: observedDigest,
132
144
  sourceDigest,
133
- distributionProfile: "runtime-plugin",
134
- evidencePlane: "loaded_session",
145
+ distributionProfile,
146
+ evidencePlane,
135
147
  provenanceStatus,
136
148
  reason: provenance.reason,
137
149
  }) };
@@ -144,16 +156,16 @@ export function resolveLocalValidator(options) {
144
156
  pluginVersion,
145
157
  canonicalVersion: definition.version,
146
158
  runtimeDigest: observedDigest,
147
- distributionProfile: "runtime-plugin",
159
+ distributionProfile,
148
160
  evidencePlane: "loaded_session",
149
161
  provenanceStatus: "missing",
150
162
  reason: "installation_provenance_missing",
151
163
  }) };
152
164
  } else {
153
- const generatedRepository = inspectGeneratedRepositoryMarketplace(resolve(pluginRoot, "..", ".."));
165
+ const generatedRepository = copilotProfile ? null : inspectGeneratedRepositoryMarketplace(resolve(pluginRoot, "..", ".."));
154
166
  if (pluginVersion !== definition.version
155
- || generatedRepository.status !== "matched"
156
- || canonicalPath(generatedRepository.pluginRoot) !== pluginRoot) {
167
+ || (!copilotProfile && (generatedRepository.status !== "matched"
168
+ || canonicalPath(generatedRepository.pluginRoot) !== pluginRoot))) {
157
169
  return { envelope: envelope("unavailable", options, {
158
170
  observedVersion,
159
171
  source: "plugin_bundle",
@@ -161,7 +173,7 @@ export function resolveLocalValidator(options) {
161
173
  pluginVersion,
162
174
  canonicalVersion: definition.version,
163
175
  runtimeDigest: observedDigest,
164
- distributionProfile: "runtime-plugin",
176
+ distributionProfile,
165
177
  evidencePlane: "installed_plugin_root",
166
178
  provenanceStatus: "missing",
167
179
  reason: "installation_provenance_missing",
@@ -178,7 +190,7 @@ export function resolveLocalValidator(options) {
178
190
  canonicalVersion: definition.version,
179
191
  runtimeDigest: observedDigest,
180
192
  sourceDigest,
181
- distributionProfile: "runtime-plugin",
193
+ distributionProfile,
182
194
  evidencePlane,
183
195
  provenanceStatus,
184
196
  }),
@@ -4,10 +4,12 @@ import { isAbsolute, join, relative, resolve, sep } from "node:path";
4
4
 
5
5
  export const INSTALLATION_PROVENANCE_FILE = ".agdf-installation.json";
6
6
  export const LEGACY_LOCAL_INSTALL_FILE = ".agdf-local-install.json";
7
+ export const COPILOT_PAYLOAD_INVENTORY_FILE = ".agdf-payload-inventory.json";
7
8
 
8
9
  const EXPECTED_PROFILES = Object.freeze({
9
10
  "source-development": Object.freeze({ runtime: "absent", installable: false, machineValidation: "unavailable" }),
10
11
  "runtime-plugin": Object.freeze({ runtime: "required", installable: true, machineValidation: "local_exact_version_digest" }),
12
+ "copilot-runtime-plugin": Object.freeze({ runtime: "required", installable: true, machineValidation: "local_exact_version_digest_inventory" }),
11
13
  "opencode-config-local": Object.freeze({ runtime: "config_local_package", installable: true, machineValidation: "local_exact_version" }),
12
14
  "portable-skills": Object.freeze({ runtime: "absent", installable: true, machineValidation: "unavailable_or_external_required" }),
13
15
  });
@@ -41,6 +43,50 @@ export function digestDirectory(root) {
41
43
  return hash.digest("hex");
42
44
  }
43
45
 
46
+ export function digestFile(path) {
47
+ return createHash("sha256").update(readFileSync(path)).digest("hex");
48
+ }
49
+
50
+ export function inspectCopilotPayloadInventory(pluginRoot, expectedVersion) {
51
+ const inventoryPath = join(pluginRoot, COPILOT_PAYLOAD_INVENTORY_FILE);
52
+ const inventory = readJson(inventoryPath);
53
+ if (!inventory || inventory.schema_version !== 1 || inventory.profile_id !== "copilot-runtime-plugin"
54
+ || inventory.version !== expectedVersion || !Array.isArray(inventory.entries)) {
55
+ return { status: "invalid", reason: "copilot_payload_inventory_invalid" };
56
+ }
57
+ const destinations = inventory.entries.map((entry) => entry.destination);
58
+ if (new Set(destinations).size !== destinations.length) {
59
+ return { status: "invalid", reason: "copilot_payload_inventory_duplicate" };
60
+ }
61
+ const actual = [];
62
+ function visit(directory) {
63
+ for (const name of readdirSync(directory).sort()) {
64
+ const path = join(directory, name);
65
+ const stats = statSync(path);
66
+ if (stats.isDirectory()) visit(path);
67
+ else if (stats.isFile()) {
68
+ const normalized = relative(pluginRoot, path).replaceAll("\\", "/");
69
+ if (![COPILOT_PAYLOAD_INVENTORY_FILE, INSTALLATION_PROVENANCE_FILE, LEGACY_LOCAL_INSTALL_FILE].includes(normalized)) actual.push(normalized);
70
+ }
71
+ }
72
+ }
73
+ try { visit(pluginRoot); } catch { return { status: "invalid", reason: "copilot_payload_incomplete" }; }
74
+ if (JSON.stringify(actual.sort()) !== JSON.stringify([...destinations].sort())) {
75
+ return { status: "invalid", reason: "copilot_payload_inventory_mismatch" };
76
+ }
77
+ for (const entry of inventory.entries) {
78
+ const path = join(pluginRoot, entry.destination);
79
+ if (!existsSync(path) || digestFile(path) !== entry.digest || statSync(path).size !== entry.bytes) {
80
+ return { status: "invalid", reason: "copilot_payload_digest_mismatch", entry: entry.destination };
81
+ }
82
+ }
83
+ const excluded = actual.some((path) => path.startsWith("skills/") || path.startsWith(".codex-plugin/")
84
+ || path.startsWith(".claude-plugin/") || path.startsWith("submission/")
85
+ || path === "hooks/hooks.json" || path === "hooks/session-start.sh");
86
+ if (excluded) return { status: "invalid", reason: "copilot_payload_excluded_surface" };
87
+ return { status: "matched", inventory, inventoryDigest: digestFile(inventoryPath) };
88
+ }
89
+
44
90
  export function digestNormalizedPluginSource(root, canonicalVersion) {
45
91
  const files = [];
46
92
  function visit(directory) {
@@ -148,6 +194,8 @@ export function inspectInstallationProvenance(pluginRoot, {
148
194
  runtimeManifest,
149
195
  pluginVersion,
150
196
  allowLegacy = false,
197
+ profileId = "runtime-plugin",
198
+ inventoryDigest = null,
151
199
  } = {}) {
152
200
  const markerPath = join(pluginRoot, INSTALLATION_PROVENANCE_FILE);
153
201
  const legacyPath = join(pluginRoot, LEGACY_LOCAL_INSTALL_FILE);
@@ -181,11 +229,12 @@ export function inspectInstallationProvenance(pluginRoot, {
181
229
  if (!marker
182
230
  || marker.schema_version !== 1
183
231
  || marker.owner !== "create-agdf"
184
- || marker.profile_id !== "runtime-plugin"
232
+ || marker.profile_id !== profileId
185
233
  || marker.marketplace_id !== profile.contract.marketplaceIdentities.durable
186
234
  || marker.canonical_version !== definition.version
187
235
  || marker.codex_install_version !== pluginVersion
188
236
  || marker.runtime_digest !== runtimeManifest?.digest
237
+ || (profileId === "copilot-runtime-plugin" && marker.inventory_digest !== inventoryDigest)
189
238
  || !/^[a-f0-9]{64}$/.test(marker.source_digest ?? "")) {
190
239
  return { status: "invalid", reason: "installation_provenance_invalid", marker };
191
240
  }
@@ -32,6 +32,7 @@ export function validateRuntimeCheckCapability(capability) {
32
32
  }
33
33
  const surfaces = capability.surfaces ?? {};
34
34
  if (surfaces.codex !== "native-hook-review" || surfaces.claude !== "exact-command-rule"
35
+ || surfaces.copilot !== "plugin-hook-review"
35
36
  || surfaces.opencode !== "plugin-internal"
36
37
  || surfaces["portable-skills"] !== "manual-external-required") {
37
38
  throw new Error("AGDF_RUNTIME_CHECK_CAPABILITY_INVALID: surface contract");
@@ -41,7 +42,7 @@ export function validateRuntimeCheckCapability(capability) {
41
42
 
42
43
  export function runtimeCheckCapabilityIdentity({ capability, surface, runtimeDigest, sourceDigest, command }) {
43
44
  validateRuntimeCheckCapability(capability);
44
- if (!["codex", "claude", "opencode"].includes(surface)) throw new Error("AGDF_RUNTIME_CHECK_SURFACE_INVALID");
45
+ if (!["codex", "claude", "copilot", "opencode"].includes(surface)) throw new Error("AGDF_RUNTIME_CHECK_SURFACE_INVALID");
45
46
  for (const [name, value] of Object.entries({ runtimeDigest, sourceDigest })) {
46
47
  if (typeof value !== "string" || !/^[a-f0-9]{64}$/.test(value)) throw new Error(`AGDF_RUNTIME_CHECK_IDENTITY_INVALID: ${name}`);
47
48
  }
@@ -59,6 +60,7 @@ export function runtimeCheckCapabilityIdentity({ capability, surface, runtimeDig
59
60
 
60
61
  export function fixedRuntimeCheckCommand(surface, pluginRoot, platform = process.platform) {
61
62
  if (surface === "opencode") return "plugin:agdf:automatic-runtime-checks";
63
+ if (surface === "copilot") return 'node "${PLUGIN_ROOT}/runtime/agdf-session-check.js"';
62
64
  if (surface === "codex" || surface === "claude") {
63
65
  return platform === "win32"
64
66
  ? "node \"$([Environment]::GetEnvironmentVariable('PLUGIN_ROOT') + [Environment]::GetEnvironmentVariable('CLAUDE_PLUGIN_ROOT'))\\runtime\\agdf-session-check.js\""
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agdf/local-validator-runtime",
3
- "version": "0.13.8",
3
+ "version": "0.14.2",
4
4
  "private": true,
5
5
  "type": "module"
6
6
  }
@@ -2,7 +2,7 @@
2
2
  "schema_version": "1",
3
3
  "generated": true,
4
4
  "source": "create-agdf/cli",
5
- "version": "0.13.8",
5
+ "version": "0.14.2",
6
6
  "entrypoint": "create-agdf/bin/agdf-validator.js",
7
- "digest": "bd47fd63c45977fe2dfa4ab6d25e003d930ebf4b68c76836d478869c5bcc13da"
7
+ "digest": "51035c8735d47aa727980d82709326071b372464ae077a1d269aadc0d30f2624"
8
8
  }