@unbrained/pm-cli 2026.11.10 → 2026.11.12

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 (190) hide show
  1. package/.agents/skills/pm-test-audit/SKILL.md +2 -1
  2. package/.agents/skills/pm-user/references/ECOSYSTEM_PLANNING.md +2 -1
  3. package/.claude-plugin/marketplace.json +1 -1
  4. package/AGENTS.md +2 -2
  5. package/CHANGELOG.md +31 -0
  6. package/CONTRIBUTING.md +1 -1
  7. package/README.md +1 -1
  8. package/dist/cli/commander-usage.js +2 -2
  9. package/dist/cli/error-guidance.js +3 -3
  10. package/dist/cli/help-json-payload.js +1 -1
  11. package/dist/cli/main.js +4 -4
  12. package/dist/cli/register-mutation.js +2 -2
  13. package/dist/cli/register-operations.js +1 -1
  14. package/dist/cli/runtime/refusal-credential-redaction.js +2 -0
  15. package/dist/cli-bundle/bundle-manifest.json +1 -1
  16. package/dist/cli-bundle/chunks/{chunk-BSJSGDA3.js → chunk-2DUUL53Z.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-YSWD2NXB.js → chunk-2K6GJUW7.js} +2 -2
  18. package/dist/cli-bundle/chunks/{chunk-TBBWPEF5.js → chunk-3DWEBVIK.js} +2 -2
  19. package/dist/cli-bundle/chunks/{chunk-L4WWG2H6.js → chunk-5NGGI7JC.js} +2 -2
  20. package/dist/cli-bundle/chunks/{chunk-U7LILCUN.js → chunk-5NY6EQSX.js} +2 -2
  21. package/dist/cli-bundle/chunks/{chunk-X7NM5HVQ.js → chunk-6ESY4Y2B.js} +2 -2
  22. package/dist/cli-bundle/chunks/{chunk-CZETQYKO.js → chunk-A7L5IEYV.js} +2 -2
  23. package/dist/cli-bundle/chunks/{chunk-5CAMQHEW.js → chunk-EALO2FPM.js} +2 -2
  24. package/dist/cli-bundle/chunks/{chunk-7NAAW5EX.js → chunk-FJNHTBJ2.js} +2 -2
  25. package/dist/cli-bundle/chunks/chunk-FOT5K5OM.js +124 -0
  26. package/dist/cli-bundle/chunks/{chunk-F7P2NZEG.js → chunk-GDS4DC5A.js} +47 -43
  27. package/dist/cli-bundle/chunks/{chunk-F6FBGLR7.js → chunk-GLPUIQDB.js} +2 -2
  28. package/dist/cli-bundle/chunks/{chunk-4FLAKTZW.js → chunk-KJL42AN5.js} +2 -2
  29. package/dist/cli-bundle/chunks/{chunk-FYD6LSJA.js → chunk-L3SA3354.js} +2 -2
  30. package/dist/cli-bundle/chunks/chunk-MR3CRLA7.js +2 -0
  31. package/dist/cli-bundle/chunks/{chunk-NZAFLDSH.js → chunk-OBTU2BHJ.js} +2 -2
  32. package/dist/cli-bundle/chunks/{chunk-4AASUCHO.js → chunk-OFIXSWJS.js} +2 -2
  33. package/dist/cli-bundle/chunks/chunk-PS2YAPXC.js +9 -0
  34. package/dist/cli-bundle/chunks/{chunk-WNEUWDUE.js → chunk-PZI6CR24.js} +46 -46
  35. package/dist/cli-bundle/chunks/{chunk-NNE63MSM.js → chunk-T4UC3ZKL.js} +2 -2
  36. package/dist/cli-bundle/chunks/{chunk-EHDGHFMJ.js → chunk-U7MZIX3D.js} +2 -2
  37. package/dist/cli-bundle/chunks/chunk-UTNPDAID.js +31 -0
  38. package/dist/cli-bundle/chunks/{chunk-OJ2KEDUX.js → chunk-UY7Z3ZHQ.js} +2 -2
  39. package/dist/cli-bundle/chunks/{item-revision-M7KXLQXF.js → item-revision-SYJT6TVZ.js} +2 -2
  40. package/dist/cli-bundle/chunks/item-transaction-YXZ27UC6.js +2 -0
  41. package/dist/cli-bundle/chunks/{mutation-admission-374UR7NI.js → mutation-admission-T57TAVWI.js} +2 -2
  42. package/dist/cli-bundle/chunks/{register-list-query-GSB7PP5P.js → register-list-query-5XZXTPNG.js} +2 -2
  43. package/dist/cli-bundle/chunks/register-mutation-V6WJFL77.js +20 -0
  44. package/dist/cli-bundle/chunks/register-operations-5RAWXY2F.js +2 -0
  45. package/dist/cli-bundle/chunks/{register-setup-QDZ2Y3CI.js → register-setup-HCKCSQWQ.js} +2 -2
  46. package/dist/cli-bundle/chunks/{stage-67WGPKPH.js → stage-VIDXGF3T.js} +2 -2
  47. package/dist/cli-bundle/focused-chunks/{chunk-PAGW6A2X.js → chunk-3FN4ON2Z.js} +2 -2
  48. package/dist/cli-bundle/focused-chunks/chunk-5OCUNAQN.js +2 -0
  49. package/dist/cli-bundle/focused-chunks/chunk-AIYJHVKV.js +44 -0
  50. package/dist/cli-bundle/focused-chunks/{chunk-QHGGO7SY.js → chunk-AXPRCCYM.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/chunk-BB2GMKRB.js +2 -0
  52. package/dist/cli-bundle/focused-chunks/{chunk-QCHCEFTO.js → chunk-BHYGUVAU.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/chunk-GAXO2UQX.js +2 -0
  54. package/dist/cli-bundle/focused-chunks/{chunk-3K2MYE7R.js → chunk-GB2N4OM7.js} +2 -2
  55. package/dist/cli-bundle/focused-chunks/{chunk-HTMQDNVC.js → chunk-GBW2EAAG.js} +2 -2
  56. package/dist/cli-bundle/focused-chunks/{chunk-ZBOCYFBE.js → chunk-HIKZYZ26.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/chunk-IPIFI4NT.js +3 -0
  58. package/dist/cli-bundle/focused-chunks/chunk-KN7RBRRH.js +26 -0
  59. package/dist/cli-bundle/focused-chunks/{chunk-3DWNH72D.js → chunk-LAIN47EJ.js} +2 -2
  60. package/dist/cli-bundle/focused-chunks/{chunk-2SQUWQP3.js → chunk-MK7UQEE5.js} +18 -18
  61. package/dist/cli-bundle/focused-chunks/{chunk-LY3JXL25.js → chunk-NP5C2TQM.js} +2 -2
  62. package/dist/cli-bundle/focused-chunks/{chunk-RFMKS7VD.js → chunk-NSOXVVQX.js} +2 -2
  63. package/dist/cli-bundle/focused-chunks/{chunk-WJHDUON5.js → chunk-NY65XTX7.js} +2 -2
  64. package/dist/cli-bundle/focused-chunks/{chunk-67M7E2Z3.js → chunk-P6KYUJD4.js} +2 -2
  65. package/dist/cli-bundle/focused-chunks/chunk-RXY6BFRW.js +2 -0
  66. package/dist/cli-bundle/focused-chunks/{chunk-2Y4H4LIX.js → chunk-SPAEZKVA.js} +2 -2
  67. package/dist/cli-bundle/focused-chunks/chunk-TZO6L523.js +2 -0
  68. package/dist/cli-bundle/focused-chunks/{chunk-BE2GK2G7.js → chunk-VUNX6NBR.js} +53 -53
  69. package/dist/cli-bundle/focused-chunks/{item-revision-XC4ZJ7MY.js → item-revision-PWJNBW3F.js} +2 -2
  70. package/dist/cli-bundle/focused-chunks/{item-transaction-CVGK4RJP.js → item-transaction-T6HXC3NS.js} +2 -2
  71. package/dist/cli-bundle/focused-chunks/{mutation-admission-N27D5H64.js → mutation-admission-CLPOLSXZ.js} +2 -2
  72. package/dist/cli-bundle/focused-chunks/{stage-KPK2UHVO.js → stage-EKYWEU2Y.js} +2 -2
  73. package/dist/cli-bundle/main.js +32 -32
  74. package/dist/cli-bundle/sdk-authoring.js +1 -1
  75. package/dist/cli-bundle/sdk-contracts.js +2 -2
  76. package/dist/cli-bundle/sdk-core.js +1 -1
  77. package/dist/cli-bundle/sdk-governance.js +1 -1
  78. package/dist/cli-bundle/sdk-graph.js +1 -1
  79. package/dist/cli-bundle/sdk-merge.js +57 -57
  80. package/dist/cli-bundle/sdk-query.js +1 -1
  81. package/dist/cli-bundle/sdk-runtime.js +1 -1
  82. package/dist/cli-bundle/sdk-testing.js +1 -1
  83. package/dist/cli-bundle/sdk.js +12 -12
  84. package/dist/core/item/parse.d.ts +13 -1
  85. package/dist/core/item/parse.js +4 -4
  86. package/dist/core/sentry/instrument.js +1 -1
  87. package/dist/core/shared/secret-rules.d.ts +18 -2
  88. package/dist/core/shared/secret-rules.js +4 -2
  89. package/dist/core/shared/url-credentials.d.ts +37 -0
  90. package/dist/core/shared/url-credentials.js +2 -0
  91. package/dist/core/telemetry/runtime.js +2 -2
  92. package/dist/sdk/agent/command-recovery.js +1 -1
  93. package/dist/sdk/cli-contracts/commander-mutation-options.js +1 -1
  94. package/dist/sdk/cli-contracts/completeness.js +1 -1
  95. package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
  96. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +1 -1
  97. package/dist/sdk/cli-contracts/tool-schema.d.ts +1 -1
  98. package/dist/sdk/cli-contracts/tool-schema.js +1 -1
  99. package/dist/sdk/command-line.d.ts +1 -1
  100. package/dist/sdk/command-line.js +1 -1
  101. package/dist/sdk/completion/bash.js +1 -1
  102. package/dist/sdk/completion/fish.js +3 -1
  103. package/dist/sdk/completion/zsh.js +3 -1
  104. package/dist/sdk/docs.d.ts +14 -2
  105. package/dist/sdk/docs.js +1 -1
  106. package/dist/sdk/files.d.ts +14 -2
  107. package/dist/sdk/files.js +1 -1
  108. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
  109. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
  110. package/dist/sdk/governance/boundary-fixtures.d.ts +25 -0
  111. package/dist/sdk/governance/boundary-fixtures.js +1 -1
  112. package/dist/sdk/governance/defect-recurrence.d.ts +8 -1
  113. package/dist/sdk/governance/defect-recurrence.js +2 -2
  114. package/dist/sdk/guide-topics.js +1 -1
  115. package/dist/sdk/index.d.ts +1 -1
  116. package/dist/sdk/index.js +1 -1
  117. package/dist/sdk/lifecycle/dependency-removal.js +2 -0
  118. package/dist/sdk/lifecycle/item-revision.js +1 -1
  119. package/dist/sdk/lifecycle/start-blockers.d.ts +9 -0
  120. package/dist/sdk/lifecycle/start-blockers.js +1 -1
  121. package/dist/sdk/lifecycle/update.d.ts +10 -4
  122. package/dist/sdk/lifecycle/update.js +2 -2
  123. package/dist/sdk/linked-artifacts.d.ts +73 -3
  124. package/dist/sdk/linked-artifacts.js +2 -2
  125. package/dist/sdk/public-surface.json +1 -1
  126. package/dist/sdk/runtime/actions.js +1 -1
  127. package/dist/sdk/test/command-args.js +1 -1
  128. package/dist/sdk/test/execution.d.ts +15 -3
  129. package/dist/sdk/test/execution.js +2 -2
  130. package/docs/AGENT_GUIDE.md +2 -2
  131. package/docs/AGENT_UX_CONTRACTS.md +7 -1
  132. package/docs/BUILD_AND_RELEASE_ACCEPTANCE.md +1 -1
  133. package/docs/CODEX_PLUGIN.md +2 -1
  134. package/docs/COMMANDS.md +16 -9
  135. package/docs/CONFIGURATION.md +16 -0
  136. package/docs/CORPUS_SHAPES.md +1 -1
  137. package/docs/DEFECT_RECURRENCE.md +20 -1
  138. package/docs/MUTATION_INTEGRITY.md +65 -0
  139. package/docs/ONBOARDING.md +1 -1
  140. package/docs/README.md +8 -8
  141. package/docs/SDK.md +46 -0
  142. package/docs/SDK_CONTEXT_INTEGRITY.md +2 -0
  143. package/docs/TESTING.md +1 -1
  144. package/docs/generated/FLAG_LEXICON_BUDGETS.md +6 -6
  145. package/marketplace.json +1 -1
  146. package/package.json +9 -1
  147. package/packages/pm-beads/package.json +1 -1
  148. package/packages/pm-calendar/package.json +1 -1
  149. package/packages/pm-command-kit/package.json +1 -1
  150. package/packages/pm-digital-twin/package.json +1 -1
  151. package/packages/pm-governance-audit/package.json +1 -1
  152. package/packages/pm-guide-shell/package.json +1 -1
  153. package/packages/pm-kanban/package.json +1 -1
  154. package/packages/pm-lifecycle-hooks/package.json +1 -1
  155. package/packages/pm-linked-test-adapters/package.json +1 -1
  156. package/packages/pm-search-advanced/package.json +1 -1
  157. package/packages/pm-templates/package.json +1 -1
  158. package/packages/pm-todos/package.json +1 -1
  159. package/packages/pm-vcs/package.json +1 -1
  160. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  161. package/plugins/pm-claude/package.json +1 -1
  162. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  163. package/plugins/pm-codex/package.json +1 -1
  164. package/plugins/pm-codex/plugin.json +1 -1
  165. package/runtime-dependencies.json +1 -1
  166. package/dist/cli-bundle/chunks/chunk-D727C4RO.js +0 -122
  167. package/dist/cli-bundle/chunks/chunk-T2MNRM3S.js +0 -9
  168. package/dist/cli-bundle/chunks/chunk-UFPLZ6LZ.js +0 -2
  169. package/dist/cli-bundle/chunks/chunk-UL64P6MR.js +0 -31
  170. package/dist/cli-bundle/chunks/item-transaction-4N5P34GO.js +0 -2
  171. package/dist/cli-bundle/chunks/register-mutation-ZBF6ITYK.js +0 -20
  172. package/dist/cli-bundle/chunks/register-operations-PWF6GOHE.js +0 -2
  173. package/dist/cli-bundle/focused-chunks/chunk-56MIAFEN.js +0 -24
  174. package/dist/cli-bundle/focused-chunks/chunk-ALLOWZSH.js +0 -2
  175. package/dist/cli-bundle/focused-chunks/chunk-LWMPQRJT.js +0 -2
  176. package/dist/cli-bundle/focused-chunks/chunk-NZQYHPUN.js +0 -3
  177. package/dist/cli-bundle/focused-chunks/chunk-QK7FX4O5.js +0 -44
  178. package/dist/cli-bundle/focused-chunks/chunk-U7HWWEJ2.js +0 -2
  179. package/dist/cli-bundle/focused-chunks/chunk-UIZVD36C.js +0 -2
  180. package/dist/cli-bundle/focused-chunks/chunk-WK773UVA.js +0 -2
  181. package/docs/CHATGPT_CODEX_PLUGIN_IMPLEMENTATION.md +0 -776
  182. package/docs/CONTEXT_ALGORITHM_PORTFOLIO.md +0 -167
  183. package/docs/DEVELOPMENT_DEPENDENCY_SECURITY.md +0 -246
  184. package/docs/PR_REVIEW_LOOP.md +0 -96
  185. package/docs/RELEASE_LEDGER_RECONCILIATION.md +0 -148
  186. package/docs/RELEASE_RELIABILITY.md +0 -147
  187. package/docs/RELEASING.md +0 -805
  188. package/docs/performance/corpus-shape-comparison.json +0 -1
  189. package/docs/performance/latest-scale-report.json +0 -1
  190. package/docs/performance/scale-100k-report.json +0 -1
@@ -1,776 +0,0 @@
1
- # Native ChatGPT and Codex Plugin Implementation Plan
2
-
3
- Tracked research: [pm-n28t](../.agents/pm/tasks/pm-n28t.toon). Future implementation:
4
- [pm-95d7](../.agents/pm/features/pm-95d7.toon).
5
-
6
- Research date: **2026-07-11**. This page is a research and implementation plan. It does not record a completed
7
- plugin remediation, ChatGPT app deployment, or public plugin submission.
8
-
9
- Update for [pm-95d7](../.agents/pm/features/pm-95d7.toon): the Claude and Codex cached launchers now resolve a runtime pinned to the plugin version and reuse it offline after first installation. The remaining sections preserve the July research baseline and the separate ChatGPT app/public distribution plan; historical `@latest` findings below describe the pre-remediation state.
10
-
11
- ## Executive Conclusion
12
-
13
- The current `plugins/pm-codex` package is an actual native Codex plugin, but it is not yet a complete,
14
- self-contained, validation-clean ChatGPT/Codex distribution.
15
-
16
- - It has the required `.codex-plugin/plugin.json`, a repo marketplace entry, skills, and bundled MCP
17
- configuration. An isolated Codex CLI 0.144.1 install accepted it, enabled it, and registered `pm-mcp`.
18
- - It is not self-contained after marketplace installation. The installed cache does not contain `dist/` or
19
- dependencies, so the launcher falls through to `npx -y --package=@unbrained/pm-cli@latest pm-mcp`.
20
- - It currently fails the built-in `@plugin-creator` validator because every bundled skill points at icon files
21
- that do not exist relative to that skill.
22
- - Its `commands/` directory is not a documented Codex plugin component and is not referenced from the manifest.
23
- Those files must be treated as unverified payload, not advertised functionality.
24
- - It is not a ChatGPT app. It has no `.app.json`, developer-mode app mapping, reachable HTTPS or tunnel-backed
25
- MCP endpoint, Apps SDK tool metadata, or app submission evidence.
26
- - Its MCP descriptors expose input schemas, but not the output schemas or required safety annotations expected
27
- for a submitted MCP-backed plugin.
28
-
29
- The correct strategy is therefore two explicit tracks:
30
-
31
- 1. Make the local Codex and ChatGPT desktop-hosted plugin self-contained, validation-clean, and truthful.
32
- 2. Decide separately whether to build an MCP-backed ChatGPT app. If that track is selected, choose how a web
33
- client will reach the git-native repository before writing app code.
34
-
35
- Do not describe these tracks as one interchangeable artifact. A native plugin package and a ChatGPT app are
36
- related, but they are not the same thing.
37
-
38
- ## Verdict Matrix
39
-
40
- | Question | Verified answer on 2026-07-11 | Consequence |
41
- |---|---|---|
42
- | Is `pm-codex` a native Codex plugin? | Yes. Codex installs the marketplace entry and registers its skills/MCP server. | Keep the plugin lineage; do not replace it with an unrelated format. |
43
- | Is the installed plugin self-contained? | No. Its cached launcher uses `npx ...@latest` when no repo `dist/` is reachable. | Bundle or package a version-matched runtime inside the installed artifact. |
44
- | Does the official validator pass? | No. Six skill icon checks fail. | Fix per-skill assets or remove invalid skill icon declarations. |
45
- | Is it a ChatGPT app? | No. There is no app mapping or ChatGPT-reachable MCP endpoint. | Build and test an app only after choosing a repository-access architecture. |
46
- | Is it ready for public plugin submission? | No. App transport, annotations, schemas, legal metadata, tests, and review materials are incomplete. | Treat submission as a later gated phase. |
47
- | Is the current `mcpServers` wrapper proven invalid? | No. Codex 0.144.1, OpenAI-curated plugins, and the current `@plugin-creator` scaffold accept it. | Do not make a speculative casing-only edit. Add compatibility validation instead. |
48
- | Are files under `commands/` proven Codex plugin commands? | No. Current plugin docs list skills, apps, MCP config, hooks, and assets, not a `commands/` component. | Migrate useful prompts into skills or remove the unsupported claim. |
49
-
50
- ## Source Currency and Research Method
51
-
52
- The sources below were opened live on 2026-07-11. The Codex documentation URLs on
53
- `developers.openai.com` currently redirect to official pages on `learn.chatgpt.com`; both are OpenAI-owned
54
- documentation surfaces. The current pages, not older remembered terminology, are the source of truth for this
55
- plan.
56
-
57
- Primary official sources:
58
-
59
- - [Plugins](https://developers.openai.com/codex/plugins) — supported clients, install behavior, plugin parts,
60
- and permission boundaries.
61
- - [Build plugins](https://developers.openai.com/codex/plugins/build) — scaffold, marketplace, manifest,
62
- distribution, MCP configuration, hooks, and packaging.
63
- - [Build an app](https://learn.chatgpt.com/docs/build-app) — distinction between the plugin package and its
64
- optional MCP-backed app.
65
- - [Submit plugins](https://learn.chatgpt.com/docs/submit-plugins) — portal fields, review, tool annotations,
66
- tests, identity, verification, and publishing.
67
- - [Apps SDK overview](https://developers.openai.com/apps-sdk) and
68
- [MCP server guide](https://developers.openai.com/apps-sdk/build/mcp-server) — ChatGPT app runtime model.
69
- - [Define tools](https://developers.openai.com/apps-sdk/plan/tools) and
70
- [Apps SDK reference](https://developers.openai.com/apps-sdk/reference) — focused tools, schemas,
71
- `structuredContent`, and annotations.
72
- - [Deploy your app](https://developers.openai.com/apps-sdk/deploy) and
73
- [Connect from ChatGPT](https://developers.openai.com/apps-sdk/deploy/connect-chatgpt) — stable HTTPS `/mcp`,
74
- developer mode, refresh, and client testing.
75
- - [Authentication](https://developers.openai.com/apps-sdk/build/auth) and
76
- [Security and privacy](https://developers.openai.com/apps-sdk/guides/security-privacy) — OAuth 2.1,
77
- authorization, scopes, consent, prompt injection, logging, and data handling.
78
- - [Test your integration](https://developers.openai.com/apps-sdk/deploy/testing) — handler tests, MCP
79
- Inspector, developer mode, API Playground, golden prompts, and regression checks.
80
- - [MCP Apps compatibility](https://developers.openai.com/apps-sdk/mcp-apps-in-chatgpt) — portable iframe UI
81
- bridge and ChatGPT extensions.
82
- - [Secure MCP Tunnel](https://developers.openai.com/api/docs/guides/secure-mcp-tunnels) — outbound-only access
83
- from ChatGPT/Codex to a private or local MCP server.
84
- - [Apps SDK changelog](https://developers.openai.com/apps-sdk/changelog) and
85
- [Codex changelog](https://developers.openai.com/codex/changelog) — recent behavior and plugin rollout
86
- changes.
87
-
88
- Live implementation evidence was also collected from:
89
-
90
- - Codex CLI 0.144.1 contracts and an isolated temporary `CODEX_HOME`.
91
- - The current OpenAI-curated plugin cache installed with Codex.
92
- - The built-in `@plugin-creator` scaffold and validator.
93
- - The repository manifest, marketplace, launcher, tool definitions, smokes, and docs.
94
-
95
- The official build page currently describes a companion `.mcp.json` as a direct server map or a wrapped
96
- `mcp_servers` object. In contrast, the current OpenAI-curated plugins, `@plugin-creator` scaffold, validator,
97
- and Codex 0.144.1 use or accept a wrapped `mcpServers` object. This is a documentation/runtime discrepancy.
98
- The working runtime contract wins for this checkout, and a future change must be driven by executable
99
- validation across supported Codex versions rather than by casing speculation.
100
-
101
- ## The Current OpenAI Product Model
102
-
103
- ### Plugin
104
-
105
- A plugin is the package a user discovers, installs, shares, submits, and publishes. It may contain:
106
-
107
- - one or more skills;
108
- - an MCP-backed app;
109
- - bundled MCP server configuration for a Codex host;
110
- - lifecycle hooks;
111
- - visual assets; or
112
- - a combination of those parts.
113
-
114
- Every plugin has a `.codex-plugin/plugin.json` entry point. Skills, `.app.json`, `.mcp.json`, hooks, and assets
115
- belong at the plugin root, not inside `.codex-plugin/`.
116
-
117
- ### App
118
-
119
- An app is an MCP-backed capability inside a plugin. Its server defines tools, authentication, data handling,
120
- and real behavior. A custom UI is optional. When UI is useful, the app registers MCP UI resources and uses the
121
- MCP Apps bridge; ChatGPT-specific `window.openai` APIs are extensions, not the default portable foundation.
122
-
123
- An app is needed when a plugin must expose live tools to ChatGPT, connect to a service, authenticate a user, or
124
- perform actions through MCP. A skill-only plugin remains valid, but it does not turn a local CLI into a remotely
125
- reachable ChatGPT tool service.
126
-
127
- ### Marketplace
128
-
129
- A marketplace is an ordered catalog, not the plugin itself. The current documented locations are:
130
-
131
- - repo: `$REPO_ROOT/.agents/plugins/marketplace.json`;
132
- - personal: `~/.agents/plugins/marketplace.json`; and
133
- - legacy repo compatibility: `$REPO_ROOT/.claude-plugin/marketplace.json`.
134
-
135
- Marketplace sources may be local, Git-backed, or npm-backed. Codex copies an installed plugin into
136
- `~/.codex/plugins/cache/<marketplace>/<plugin>/<version>/` and loads the cached copy. A relative path that only
137
- works because the source repository has files above the plugin directory is therefore not a portable runtime
138
- dependency.
139
-
140
- ### Supported surfaces are not identical execution environments
141
-
142
- Plugins can be browsed from ChatGPT Work, the ChatGPT desktop app, Codex CLI, and the Codex IDE extension.
143
- That shared directory does not make a local stdio process reachable from a web conversation. ChatGPT app tools
144
- need a reachable HTTPS `/mcp` endpoint or a supported tunnel to a private MCP server. Local Codex MCP servers
145
- continue to execute under the Codex host sandbox and approval policy.
146
-
147
- ## Current Repository Audit
148
-
149
- ### Shipped layout
150
-
151
- ```text
152
- plugins/pm-codex/
153
- ├── .codex-plugin/plugin.json
154
- ├── .mcp.json
155
- ├── README.md
156
- ├── assets/pm-cli-small.svg
157
- ├── commands/
158
- │ ├── pm-audit.md
159
- │ ├── pm-close-task.md
160
- │ └── pm-start-task.md
161
- ├── scripts/pm-mcp-server.mjs
162
- └── skills/
163
- ├── pm-auditor/
164
- ├── pm-native/
165
- └── pm-release/
166
- ```
167
-
168
- The manifest declares `skills` and `mcpServers`. It does not declare `apps` or `hooks`. That is a valid
169
- plugin class: a plugin does not need an app or hook merely to be a plugin.
170
-
171
- ### Isolated install proof
172
-
173
- The repository install instructions were replayed with a new temporary Codex home:
174
-
175
- ```bash
176
- CODEX_HOME=<temporary-directory> codex plugin marketplace add .
177
- CODEX_HOME=<temporary-directory> codex plugin add pm-codex@pm-local --json
178
- CODEX_HOME=<temporary-directory> codex plugin list
179
- CODEX_HOME=<temporary-directory> codex mcp list
180
- ```
181
-
182
- Observed results:
183
-
184
- - marketplace `pm-local` resolved from the repository;
185
- - `pm-codex@pm-local` version `2026.7.11` installed and became enabled;
186
- - Codex copied the plugin to its versioned cache;
187
- - `pm-mcp` appeared as an enabled stdio MCP server; and
188
- - the current camel-case `.mcp.json` wrapper was accepted.
189
-
190
- This disproves the broad claim that the repository has no real native Codex plugin.
191
-
192
- ### Installed runtime defect
193
-
194
- The cached archive contains the plugin files listed above, but no repository `dist/`, dependency tree, or
195
- plugin-local package runtime. The generated launcher tries, in order:
196
-
197
- 1. `PM_CLI_MCP_SERVER`;
198
- 2. a readable `dist/mcp/server.js` found by walking ancestors of the launcher; then
199
- 3. `npx -y --package=@unbrained/pm-cli@latest pm-mcp`.
200
-
201
- The versioned cache is outside the source checkout, so normal external installs cannot find the repository
202
- `dist/mcp/server.js`. They therefore use the third branch. This has four consequences:
203
-
204
- - startup requires network and npm availability;
205
- - the running server version can differ from the installed plugin version;
206
- - `@latest` makes behavior change independently of installed skills and documentation; and
207
- - the current “native” description implies a more self-contained artifact than users receive.
208
-
209
- The current Codex smoke starts the repository `dist/mcp/server.js` directly. It proves the MCP implementation,
210
- but it does not exercise the installed cache, launcher fallback, offline startup, or plugin/runtime version
211
- coherence.
212
-
213
- ### Validator defect
214
-
215
- The official built-in validation path was run as follows:
216
-
217
- ```bash
218
- uv run --with pyyaml python \
219
- /path/to/plugin-creator/scripts/validate_plugin.py \
220
- plugins/pm-codex
221
- ```
222
-
223
- It fails six checks. Each of `pm-auditor`, `pm-native`, and `pm-release` declares both `icon_small` and
224
- `icon_large` as `./assets/pm-cli-small.svg` in its own `agents/openai.yaml`, but none of those skill directories
225
- contains `assets/pm-cli-small.svg`. The one existing asset is at the plugin root. Skill metadata paths are
226
- resolved relative to the skill, so install tolerance does not make those references valid.
227
-
228
- ### Unsupported or unproven command payload
229
-
230
- The official plugin structure documents skills, hooks, app mappings, MCP configuration, and assets. It does not
231
- document a Codex plugin `commands/` loader or a manifest `commands` field. The current manifest does not point at
232
- the directory, and the built-in validator ignores it.
233
-
234
- The three command Markdown files may be useful prompt content, but the repository has no current-head proof
235
- that Codex exposes them as slash commands. They should be migrated into supported skills when they add unique
236
- value, or removed. Until then, docs must not count them as a working native capability.
237
-
238
- ### MCP descriptor gap for a ChatGPT app
239
-
240
- `src/mcp/tool-definitions.ts` currently defines each tool with:
241
-
242
- - `name`;
243
- - `description`; and
244
- - `inputSchema`.
245
-
246
- The `tools/list` response returns those definitions directly. It does not provide `outputSchema` or Apps SDK
247
- annotations such as `readOnlyHint`, `openWorldHint`, and `destructiveHint`.
248
-
249
- That is sufficient for the current local MCP smoke, but not for a review-ready ChatGPT app. OpenAI requires the
250
- three safety hints for every submitted MCP tool, recommends output schemas for structured results, and expects
251
- tool names, descriptions, schemas, output structure, and actual behavior to agree.
252
-
253
- The broad `pm_run` tool and combined list/add/remove/run tools also conflict with the Apps SDK recommendation of
254
- one focused job per tool and separate read/write actions. A public app surface must not simply expose the entire
255
- local escape hatch.
256
-
257
- ### Public listing and legal gap
258
-
259
- The manifest currently uses `SECURITY.md` as its privacy policy and `LICENSE` as its terms of service. Those are
260
- useful project documents, but they are not a privacy policy or service terms describing an MCP app, user data,
261
- retention, authentication, support, or hosted processing. Public submission also requires matching publisher
262
- identity, support information, production branding, a public MCP URL, domain verification, and policy
263
- attestations.
264
-
265
- ### Identity and authorization gap
266
-
267
- The local MCP runtime derives agent provenance from its initialize handshake
268
- and bounded runtime signals. That local observation is not end-user identity
269
- or authorization. A hosted multi-user app must derive the actor from
270
- authenticated server context, authorize the selected repository and operation
271
- on every request, and prevent callers from spoofing another history author
272
- through tool arguments.
273
-
274
- ## Target Architecture
275
-
276
- ```text
277
- Local Codex or desktop-hosted workflow
278
-
279
- repo/Git/npm marketplace
280
- │
281
- ▼
282
- versioned cached plugin
283
- │
284
- ├── bundled skills
285
- └── bundled stdio pm MCP runtime
286
- │
287
- ▼
288
- selected local repo
289
- │
290
- ▼
291
- .agents/pm
292
-
293
- ChatGPT web or public plugin workflow
294
-
295
- published/shared plugin
296
- │
297
- ▼
298
- app/connector mapping
299
- │
300
- ▼
301
- HTTPS /mcp or Secure MCP Tunnel
302
- │
303
- ▼
304
- authorized backend or customer-controlled host
305
- │
306
- ▼
307
- explicitly selected repository and .agents/pm
308
- ```
309
-
310
- These flows may share action handlers, schemas, and tests. They should not share assumptions about filesystem
311
- access, process lifetime, authentication, or network reachability.
312
-
313
- ## Track A: Correct Local Codex Plugin
314
-
315
- ### Target package layout
316
-
317
- ```text
318
- plugins/pm-codex/
319
- ├── .codex-plugin/plugin.json
320
- ├── .mcp.json
321
- ├── README.md
322
- ├── assets/
323
- │ ├── composer-icon.svg
324
- │ ├── logo.png
325
- │ └── logo-dark.png
326
- ├── runtime/
327
- │ └── pm-mcp-server.mjs
328
- └── skills/
329
- ├── pm-auditor/
330
- │ ├── SKILL.md
331
- │ ├── agents/openai.yaml
332
- │ └── assets/...
333
- ├── pm-native/...
334
- └── pm-release/...
335
- ```
336
-
337
- The exact runtime filename is not important. The invariant is: every file needed after installation exists
338
- inside the copied plugin archive, uses an archive-relative path, and is versioned with the plugin.
339
-
340
- ### Runtime packaging requirements
341
-
342
- Preferred implementation:
343
-
344
- 1. Produce a single bundled Node entry point for the stdio MCP server during the normal build/release pipeline.
345
- 2. Put that bundle and every required runtime dependency inside `plugins/pm-codex` before packaging.
346
- 3. Point `.mcp.json` directly at the bundled entry point.
347
- 4. Remove the `@latest` startup fallback from the installed path. An explicit development override may remain,
348
- but production startup must not silently change versions.
349
- 5. Stamp plugin, marketplace, and runtime metadata from the same package-owned version source.
350
- 6. Make the release gate install the copied plugin in an isolated Codex home with no ancestor repo `dist/`.
351
- 7. Prove the server starts with npm network access unavailable and with `npx` absent from `PATH`.
352
-
353
- An alternative is a dedicated npm plugin package. The marketplace supports `source: "npm"`, but Codex downloads
354
- that package without running lifecycle scripts. The published tarball must therefore already contain the plugin
355
- manifest and runnable bundled server; a post-install build is not a valid design.
356
-
357
- Pinning the fallback to the plugin version is an acceptable short-term risk reduction, but it is not the target:
358
- it remains network-dependent and does not provide an offline, self-contained plugin.
359
-
360
- ### Manifest and MCP rules
361
-
362
- - Keep the stable kebab-case plugin name.
363
- - Keep paths relative to the plugin root and `./`-prefixed.
364
- - Include only component fields whose target files exist.
365
- - Keep real publisher, repository, homepage, license, and install-surface metadata.
366
- - Use production-ready logo assets for distribution; keep per-skill icons inside each skill archive when declared.
367
- - Keep `mcpServers: "./.mcp.json"` while the supported runtime and canonical scaffold require it.
368
- - Do not add `apps` until a real `.app.json` has been generated for a real developer-mode app or connector.
369
- - Do not add hooks merely to appear more native. Hooks are optional and require separate trust review.
370
- - Treat `commands/` as unsupported until an official contract and executable test prove otherwise.
371
-
372
- The current canonical scaffold emits:
373
-
374
- ```json
375
- {
376
- "mcpServers": "./.mcp.json"
377
- }
378
- ```
379
-
380
- with a companion:
381
-
382
- ```json
383
- {
384
- "mcpServers": {
385
- "pm-mcp": {
386
- "command": "node",
387
- "args": ["./runtime/pm-mcp-server.mjs"]
388
- }
389
- }
390
- }
391
- ```
392
-
393
- Before changing this shape, generate a fresh temporary scaffold with the then-installed `@plugin-creator`, run
394
- its validator, install the result with the minimum supported Codex version and current Codex version, and record
395
- the compatibility result.
396
-
397
- ### Marketplace rules
398
-
399
- The existing repo marketplace location and source path are correct. Preserve:
400
-
401
- ```json
402
- {
403
- "name": "pm-local",
404
- "interface": {
405
- "displayName": "pm CLI Local"
406
- },
407
- "plugins": [
408
- {
409
- "name": "pm-codex",
410
- "source": {
411
- "source": "local",
412
- "path": "./plugins/pm-codex"
413
- },
414
- "policy": {
415
- "installation": "AVAILABLE",
416
- "authentication": "ON_INSTALL"
417
- },
418
- "category": "Developer Tools"
419
- }
420
- ]
421
- }
422
- ```
423
-
424
- For external distribution, choose one explicit source:
425
-
426
- - `git-subdir` with a pinned tag or commit for the plugin subdirectory; or
427
- - `npm` with a dedicated, already-built plugin package.
428
-
429
- Do not use a moving branch plus a frozen plugin version, and do not rely on files outside the source archive.
430
- Use `codex plugin marketplace add`, `list`, and `upgrade`; do not tell users to hand-edit `config.toml`.
431
-
432
- ### Skill and prompt migration
433
-
434
- For each current command Markdown file:
435
-
436
- 1. Compare it with the existing `pm-native`, `pm-auditor`, and `pm-release` skills.
437
- 2. Delete it when it duplicates a skill.
438
- 3. Otherwise create a properly named skill directory with a complete `SKILL.md`, trigger conditions, and any
439
- referenced assets/scripts.
440
- 4. Keep instructions scoped. Do not claim unavailable tools or bypass repository `AGENTS.md` rules.
441
- 5. Validate every skill and start a new Codex session before testing discovery.
442
-
443
- ## Track B: Decide the ChatGPT Repository-Access Model
444
-
445
- The current pm value proposition is local, git-native project management. A ChatGPT web app cannot infer or
446
- mount a user laptop repository. Before building an Apps SDK server, accept one of these architectures in an ADR.
447
-
448
- ### Option 1: Secure MCP Tunnel to a customer-controlled host
449
-
450
- Best fit for private development, teams, and enterprise workspaces that want ChatGPT to act on an existing local
451
- or private repository without publishing the pm server.
452
-
453
- - Run the pm MCP server on the host that can access the repository.
454
- - Run OpenAI `tunnel-client` in the same trust boundary.
455
- - Use an outbound-only OpenAI-hosted tunnel endpoint.
456
- - Associate the correct Platform organization and ChatGPT workspace.
457
- - Create a developer-mode app with the Tunnel connection option.
458
- - Keep the customer-controlled host online while tools are in use.
459
-
460
- This preserves local filesystem semantics and avoids a new pm storage service. It adds host operations,
461
- workspace/tunnel permissions, availability, and identity-mapping requirements. It is a strong first ChatGPT
462
- proof, but it is not by itself a universal public plugin architecture.
463
-
464
- ### Option 2: Hosted multi-tenant MCP service
465
-
466
- Required if the intended outcome is a universal public plugin whose tools work without a customer-run host.
467
-
468
- The service needs an explicit repository substrate, for example a GitHub App plus isolated server-side
469
- workspaces. That is a new product surface, not a packaging tweak. It must define:
470
-
471
- - repository selection and authorization;
472
- - checkout, branch, commit, push, and conflict behavior;
473
- - tenant isolation and path containment;
474
- - concurrent mutation and locking semantics;
475
- - storage lifetime and deletion;
476
- - secret management and OAuth scopes;
477
- - authenticated audit identity and mapping to pm's asserted-author contract;
478
- - job limits, process execution, sandboxing, and egress;
479
- - reconciliation when remote Git changes during a session; and
480
- - observability, incident response, support, privacy, and data residency.
481
-
482
- Do not host arbitrary `pm test --run` or package installation in the first public version. Those operations can
483
- spawn processes or load third-party code and require a substantially stronger sandbox.
484
-
485
- ### Option 3: Skills-only public plugin
486
-
487
- This can publish pm planning and workflow guidance without a hosted tool backend. It is the smallest public
488
- artifact, but users would not receive live pm tools in ChatGPT web. The listing must state that limitation
489
- plainly.
490
-
491
- ### Recommendation
492
-
493
- 1. Finish Track A.
494
- 2. Prove a private ChatGPT developer-mode app through Secure MCP Tunnel.
495
- 3. Use that proof to decide whether a hosted public service creates enough value to justify its security and
496
- operations scope.
497
- 4. Submit publicly only after the chosen architecture is production-ready.
498
-
499
- ## Track C: Build the MCP-Backed ChatGPT App
500
-
501
- This track starts only after the ADR above is accepted.
502
-
503
- ### Transport and deployment
504
-
505
- - Expose MCP on a stable HTTPS `/mcp` endpoint, or through an approved Secure MCP Tunnel.
506
- - Support low-latency streaming responses, dependable TLS, timeouts, structured logs, metrics, and request IDs.
507
- - Separate the reusable pm action layer from stdio and HTTP transport adapters.
508
- - Keep the HTTP adapter stateless where possible; bind repository/user context explicitly per request.
509
- - Return MCP protocol errors without leaking stack traces, filesystem paths, tokens, or private data.
510
- - Provide a health/readiness probe outside the MCP tool surface.
511
-
512
- ### Developer-mode app wiring
513
-
514
- For local app development:
515
-
516
- 1. Enable Developer mode in ChatGPT under Settings → Security and login.
517
- 2. Create a developer-mode app under Settings → Plugins using the reachable `/mcp` endpoint or Tunnel.
518
- 3. Copy the generated ID beginning with `plugin_asdk_app`.
519
- 4. Use the built-in `@plugin-creator` to add `.app.json` and the `apps: "./.app.json"` manifest field.
520
- 5. Install the local marketplace plugin, start a new task, and test both skills and tools.
521
-
522
- Do not invent an app ID or commit a personal placeholder. For public submission, the portal takes the production
523
- MCP server URL and scans it directly; it does not accept an existing published ChatGPT app ID as a substitute.
524
-
525
- ### App tool contract
526
-
527
- Do not expose `pm_run` as the primary public app tool. Start with a small, focused surface.
528
-
529
- | Tool class | Examples | Required annotation posture |
530
- |---|---|---|
531
- | Read-only | context, next, search, list, get, contracts, check-only health/validate | `readOnlyHint: true`, `openWorldHint: false`, `destructiveHint: false` |
532
- | Reversible private writes | create item, update metadata, add comment, claim, release | `readOnlyHint: false`, normally `openWorldHint: false`, `destructiveHint: false` |
533
- | Consequential lifecycle writes | close, cancel, dependency changes, bulk changes | write annotations plus explicit confirmation; set `destructiveHint` from the actual reversibility contract |
534
- | Dangerous or code-executing operations | delete, history redaction, linked-test execution, package install, arbitrary config/schema mutation | exclude from v1 or isolate behind dedicated tools, strict auth, approval, and sandboxing |
535
-
536
- For every exposed tool:
537
-
538
- - one user-visible job per tool;
539
- - precise name and description;
540
- - closed, typed `inputSchema` where possible;
541
- - exact `outputSchema` for `structuredContent`;
542
- - stable machine identifiers in outputs;
543
- - `readOnlyHint`, `openWorldHint`, and `destructiveHint` that match every possible invocation;
544
- - `idempotentHint` where true;
545
- - server-side authorization regardless of hints;
546
- - compact model-visible content with sensitive/private data kept out; and
547
- - deterministic errors for missing repositories, stale item versions, ownership conflicts, and invalid state.
548
-
549
- Split mixed tools. For example, one tool that lists, adds, removes, and runs tests cannot honestly have one set of
550
- safety annotations. Use separate read and mutation tools or keep that operation out of the app.
551
-
552
- ### UI decision
553
-
554
- Start tool-only unless a UI materially improves review, comparison, editing, confirmation, or navigation. If a UI
555
- is justified:
556
-
557
- - use the MCP Apps standard `_meta.ui.resourceUri` and `ui/*` JSON-RPC bridge by default;
558
- - serve the component through an MCP resource;
559
- - return data as `structuredContent` independently of rendering;
560
- - use `window.openai` only for ChatGPT-specific extensions;
561
- - declare a minimal CSP and dedicated component origin; and
562
- - test inline, fullscreen/modal where used, mobile, dark mode, keyboard, and accessibility behavior.
563
-
564
- ## Authentication, Authorization, and Data Protection
565
-
566
- Anything that exposes customer-specific repository data or write actions should authenticate the user. The
567
- official Apps SDK flow expects OAuth 2.1 conforming to the MCP authorization specification.
568
-
569
- Required controls for a hosted app:
570
-
571
- - publish protected-resource and authorization-server discovery metadata;
572
- - support authorization-code flow with PKCE `S256`;
573
- - use Client ID Metadata Documents where supported, with DCR only when needed;
574
- - include the MCP resource/audience in issued tokens;
575
- - validate signature, issuer, audience/resource, time bounds, scopes, and app policy on every request;
576
- - return standards-compliant `401` and `WWW-Authenticate` challenges;
577
- - request least-privilege scopes and separate read from write scopes;
578
- - bind repository access to authenticated identity and tenant;
579
- - reject user-supplied author spoofing;
580
- - redact tokens, secrets, PII, raw prompts, internal IDs, and debug payloads from responses and logs; and
581
- - document retention, deletion, support, subprocess, Git, and third-party data behavior.
582
-
583
- Treat prompt injection as expected input. Validate all paths and arguments server-side, contain repository roots,
584
- enforce state transitions in pm, and require confirmation for consequential actions. Tool annotations influence
585
- ChatGPT confirmation UX; they do not replace server authorization.
586
-
587
- For a tunnel-backed internal app, document the separate Platform tunnel permissions, ChatGPT developer-mode
588
- permissions, workspace association, host availability, and customer responsibility for the repository host.
589
-
590
- ## Listing, Legal, and Submission Requirements
591
-
592
- Before public submission, prepare:
593
-
594
- - verified developer or business identity in the submitting Platform organization;
595
- - Apps Management write access for the submitter;
596
- - customer-facing plugin name and descriptions;
597
- - production logo, category, website, and support URL;
598
- - an actual privacy policy and terms of service for the shipped service;
599
- - public production MCP URL and exact authentication details;
600
- - domain verification at `/.well-known/openai-apps-challenge` when requested;
601
- - exact content security policy for any UI/network domains;
602
- - reviewer credentials that do not require MFA, email, SMS, or private-network access;
603
- - starter prompts;
604
- - exactly five positive and three negative review test cases;
605
- - country/region availability; and
606
- - release notes and accurate policy attestations.
607
-
608
- The portal scans the production MCP server and tool metadata. Fix every scan result and rescan before submission.
609
- Approval does not publish automatically; after review, the publisher chooses when to publish. Published
610
- skills-only, app-only, and app-plus-skills packages appear in the same universal plugin directory.
611
-
612
- ## Verification Matrix
613
-
614
- ### Track A: local plugin gates
615
-
616
- | Gate | Evidence required |
617
- |---|---|
618
- | Manifest/skills | Current built-in `@plugin-creator` validator passes with no missing asset or placeholder errors. |
619
- | Marketplace | Repo, Git, and/or npm source resolves to the intended plugin root with version and policy metadata. |
620
- | Cache install | Fresh isolated `CODEX_HOME`; marketplace add; plugin add; installed/enabled status. |
621
- | Runtime | `codex mcp list` shows the plugin-scoped server; initialize and `tools/list` pass from the cached copy. |
622
- | Offline | Cached server starts with no repo ancestor, no npm network, and no `npx` fallback. |
623
- | Version | Manifest, marketplace, bundled runtime, server info, and package release identify the same version. |
624
- | Skills | Fresh session discovers each skill; explicit and implicit triggers behave as documented. |
625
- | Unsupported payload | No advertised command or agent asset lacks an ingestion contract and runtime proof. |
626
- | Platforms | Linux, macOS, and Windows path/process behavior is covered proportionally to supported Codex clients. |
627
- | Regression | Existing pm MCP calls mutate only a sandbox tracker during automated tests. |
628
-
629
- ### Track C: ChatGPT app gates
630
-
631
- | Gate | Evidence required |
632
- |---|---|
633
- | Handler unit tests | Representative inputs, schema failures, empty results, conflicts, auth failures, and edge cases. |
634
- | MCP Inspector | List and call every tool; inspect raw requests, responses, components, and errors. |
635
- | HTTPS/tunnel | Reachable `/mcp`, TLS, streaming, timeouts, health, logs, metrics, and reconnect behavior. |
636
- | Developer mode | New ChatGPT task selects correct tools for direct, indirect, and negative golden prompts. |
637
- | API Playground | Raw MCP exchanges and auth challenges match declared schemas. |
638
- | Permissions | Read/write/destructive confirmations match annotations and workspace policy. |
639
- | Security | Cross-tenant, path traversal, prompt injection, token, scope, replay, secret, and PII tests. |
640
- | Output | Every structured result matches `outputSchema`; no private-only payload leaks to model-visible content. |
641
- | UI, if any | MCP Apps bridge, CSP, origin, accessibility, themes, resizing, state restore, and mobile layouts. |
642
- | Submission | Portal scan clean; five positive and three negative cases reproducible with reviewer credentials. |
643
-
644
- ### Repository checks for each implementation item
645
-
646
- At minimum, link and run the checks appropriate to the changed files:
647
-
648
- ```bash
649
- pnpm build
650
- node scripts/run-tests.mjs test -- <focused-tests>
651
- pnpm quality:docs-skills
652
- pnpm quality:static
653
- pm validate --check-resolution --check-history-drift
654
- pm health --check-only
655
- ```
656
-
657
- Broader runtime, packaging, security, coverage, and release gates are required before distribution or submission.
658
-
659
- ## File-by-File Implementation Sequence
660
-
661
- No files in this section were changed by the research task.
662
-
663
- ### Phase 0 — architecture decision
664
-
665
- - Add a `Decision` child under [pm-95d7](../.agents/pm/features/pm-95d7.toon).
666
- - Select local-only, tunnel-backed private app, hosted public app, or an ordered combination.
667
- - Define repository identity, storage, authorization, subprocess, Git, and data-retention boundaries.
668
- - Record explicit non-goals and public-surface claims.
669
-
670
- ### Phase 1 — self-contained Codex runtime
671
-
672
- Likely files:
673
-
674
- - `scripts/gen-plugin-mcp-wrappers.mjs` or a replacement bundle generator;
675
- - build/release scripts that create the plugin runtime;
676
- - `plugins/pm-codex/.mcp.json`;
677
- - `plugins/pm-codex/scripts/pm-mcp-server.mjs`;
678
- - a new plugin-local runtime artifact;
679
- - cache-layout smoke tests; and
680
- - package/version synchronization tests.
681
-
682
- Coordinate shared launcher work with the existing Claude plugin distribution issue rather than duplicating
683
- fallback logic.
684
-
685
- ### Phase 2 — plugin contract cleanup
686
-
687
- Likely files:
688
-
689
- - each `plugins/pm-codex/skills/*/agents/openai.yaml` and its assets;
690
- - `plugins/pm-codex/commands/*` migrated or removed;
691
- - `.codex-plugin/plugin.json` metadata and production assets;
692
- - `plugins/pm-codex/README.md` and `docs/CODEX_PLUGIN.md`; and
693
- - a dedicated Codex plugin contract test using the built-in validator.
694
-
695
- ### Phase 3 — app-safe tool contract
696
-
697
- Likely files:
698
-
699
- - `src/mcp/tool-definitions.ts` or a separate app descriptor projection;
700
- - shared tool result schemas;
701
- - a transport-neutral handler layer;
702
- - focused app-only tools that exclude `pm_run` and unsafe mixed operations; and
703
- - descriptor/output/annotation contract snapshots.
704
-
705
- Preserve local MCP compatibility. Do not force the public app surface to expose every local operator command.
706
-
707
- ### Phase 4 — ChatGPT app transport
708
-
709
- Only after Phase 0 approval:
710
-
711
- - add an HTTP/tunnel adapter around the shared handler layer;
712
- - add authenticated repository context resolution;
713
- - add OAuth/resource metadata when required;
714
- - add developer-mode app wiring through `@plugin-creator`;
715
- - add optional MCP UI resources only when justified; and
716
- - add deploy, observability, security, and incident runbooks appropriate to the chosen architecture.
717
-
718
- ### Phase 5 — distribution and submission
719
-
720
- - choose pinned Git or prebuilt npm plugin distribution;
721
- - verify cache installation on supported clients;
722
- - finalize listing, support, privacy, terms, branding, prompts, and regions;
723
- - prepare reviewer accounts and eight required cases;
724
- - scan, remediate, and submit through the Platform portal; and
725
- - publish only after approval and a final production-head verification.
726
-
727
- ## pm Execution Model
728
-
729
- The research task created only the parent feature and this documentation child. Create future children only when
730
- implementation is approved; search all statuses before each creation.
731
-
732
- Recommended future child types:
733
-
734
- 1. `Decision` — choose local, tunnel, hosted, and public-distribution scope.
735
- 2. `Issue` — make cached Codex installs self-contained and version-coherent.
736
- 3. `Chore` — repair skill assets and migrate unsupported command payload.
737
- 4. `Feature` — add app-safe schemas, annotations, and focused tools.
738
- 5. `Feature` — add the approved ChatGPT MCP transport and authentication model.
739
- 6. `Task` — developer-mode, security, cross-client, and submission verification.
740
-
741
- For every child:
742
-
743
- ```bash
744
- pm context --limit 10
745
- pm search "<exact scope>" --status all --limit 20
746
- pm create --create-mode progressive --parent pm-95d7 ...
747
- pm claim <id>
748
- pm update <id> --status in_progress --message "Start approved implementation"
749
- pm files <id> --add path=<path>,scope=project,note="<why>"
750
- pm docs <id> --add path=<path>,scope=project,note="<why>"
751
- pm test <id> --add command="<sandbox-safe command>",scope=project,timeout_seconds=<n>
752
- pm comments <id> "Evidence: <exact current-head proof>"
753
- pm close <id> "<acceptance and verification summary>" --validate-close warn
754
- pm release <id>
755
- ```
756
-
757
- Only claim the children actively being edited. Keep the parent open until every accepted track is complete or an
758
- ADR explicitly removes it from scope.
759
-
760
- ## Definition of Done
761
-
762
- Do not call the work “fully native ChatGPT/Codex” until all selected claims have matching proof:
763
-
764
- - **Native Codex plugin:** official validator passes; cached plugin starts its own version-matched server without
765
- `@latest`; skills and tools load in a fresh session; cross-platform cache tests pass.
766
- - **ChatGPT-compatible app:** ChatGPT reaches the selected repository through approved HTTPS/tunnel transport;
767
- auth, schemas, annotations, outputs, permissions, security, and golden prompts pass.
768
- - **Public plugin:** identity, legal/listing metadata, domain, reviewer tests, portal scan, review, and publication
769
- are complete on the production artifact.
770
- - **Documentation:** every supported surface, prerequisite, limitation, install/update path, data boundary, and
771
- version is described without conflating plugin, app, MCP server, skill, or marketplace.
772
-
773
- Until then, the accurate short description is:
774
-
775
- > pm-cli ships a working repo-marketplace Codex plugin whose installed runtime and optional ChatGPT app/public
776
- > distribution tracks still require the remediation planned in pm-95d7.