@aviaratech/ai-delivery 0.3.35 → 0.3.37

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 (301) hide show
  1. package/CONTRIBUTING.md +12 -206
  2. package/README.md +56 -554
  3. package/dist/agent.d.ts +1 -3
  4. package/dist/agent.js +74 -16
  5. package/dist/agent.js.map +7 -1
  6. package/dist/agentReadiness.test.js +73 -67
  7. package/dist/agentReadiness.test.js.map +7 -1
  8. package/dist/boardReconcile.test.js +1651 -1590
  9. package/dist/boardReconcile.test.js.map +7 -1
  10. package/dist/build.test.js +130 -0
  11. package/dist/build.test.js.map +7 -0
  12. package/dist/callerErrors.test.js +91 -0
  13. package/dist/callerErrors.test.js.map +7 -0
  14. package/dist/cli.js +389 -517
  15. package/dist/cli.js.map +7 -1
  16. package/dist/cliResult.d.ts +2 -2
  17. package/dist/cliResult.js +42 -45
  18. package/dist/cliResult.js.map +7 -1
  19. package/dist/cliResult.test.js +424 -369
  20. package/dist/cliResult.test.js.map +7 -1
  21. package/dist/config/deliveryConfig.d.ts +288 -14
  22. package/dist/config/deliveryConfig.js +472 -390
  23. package/dist/config/deliveryConfig.js.map +7 -1
  24. package/dist/config/deliveryConfig.test.js +773 -649
  25. package/dist/config/deliveryConfig.test.js.map +7 -1
  26. package/dist/contributorChecks.test.js +1694 -916
  27. package/dist/contributorChecks.test.js.map +7 -1
  28. package/dist/currentConsumer.test.js +819 -737
  29. package/dist/currentConsumer.test.js.map +7 -1
  30. package/dist/currentTrackingScenario.test.js +499 -479
  31. package/dist/currentTrackingScenario.test.js.map +7 -1
  32. package/dist/delivery/common.js +160 -172
  33. package/dist/delivery/common.js.map +7 -1
  34. package/dist/delivery/delivery.test.js +509 -431
  35. package/dist/delivery/delivery.test.js.map +7 -1
  36. package/dist/delivery/evidence.d.ts +2 -2
  37. package/dist/delivery/evidence.js +133 -120
  38. package/dist/delivery/evidence.js.map +7 -1
  39. package/dist/delivery/index.js +7 -2
  40. package/dist/delivery/index.js.map +7 -1
  41. package/dist/delivery/legacy.js +65 -5
  42. package/dist/delivery/legacy.js.map +7 -1
  43. package/dist/delivery/policy.d.ts +10 -10
  44. package/dist/delivery/policy.js +211 -238
  45. package/dist/delivery/policy.js.map +7 -1
  46. package/dist/delivery/stage.d.ts +18 -18
  47. package/dist/delivery/stage.js +220 -235
  48. package/dist/delivery/stage.js.map +7 -1
  49. package/dist/deliveryBoard.d.ts +74 -0
  50. package/dist/deliveryBoard.js +644 -0
  51. package/dist/deliveryBoard.js.map +7 -0
  52. package/dist/deliveryBoard.test.js +649 -0
  53. package/dist/deliveryBoard.test.js.map +7 -0
  54. package/dist/deliveryHealth.test.js +179 -155
  55. package/dist/deliveryHealth.test.js.map +7 -1
  56. package/dist/dependencyCompatibility.test.js +154 -140
  57. package/dist/dependencyCompatibility.test.js.map +7 -1
  58. package/dist/directoryIndependent.test.js +417 -383
  59. package/dist/directoryIndependent.test.js.map +7 -1
  60. package/dist/dispatch.d.ts +16 -11
  61. package/dist/dispatch.js +316 -354
  62. package/dist/dispatch.js.map +7 -1
  63. package/dist/errors.d.ts +3 -3
  64. package/dist/errors.js +103 -96
  65. package/dist/errors.js.map +7 -1
  66. package/dist/fixtures/deliveryBoardReplay.d.ts +56 -0
  67. package/dist/fixtures/deliveryBoardReplay.js +617 -0
  68. package/dist/fixtures/deliveryBoardReplay.js.map +7 -0
  69. package/dist/fixtures/discovery.d.ts +63 -23
  70. package/dist/fixtures/discovery.js +96 -90
  71. package/dist/fixtures/discovery.js.map +7 -1
  72. package/dist/fixtures/inertEntrypointChild.js +57 -56
  73. package/dist/fixtures/inertEntrypointChild.js.map +7 -1
  74. package/dist/fixtures/inertEntrypoints.d.ts +1 -1
  75. package/dist/fixtures/inertEntrypoints.js +321 -276
  76. package/dist/fixtures/inertEntrypoints.js.map +7 -1
  77. package/dist/fixtures/inertTarget.d.ts +78 -7
  78. package/dist/fixtures/inertTarget.js +769 -691
  79. package/dist/fixtures/inertTarget.js.map +7 -1
  80. package/dist/fixtures/issue63.d.ts +4 -3
  81. package/dist/fixtures/issue63.js +260 -274
  82. package/dist/fixtures/issue63.js.map +7 -1
  83. package/dist/fixtures/issueProjectItems.d.ts +20 -0
  84. package/dist/fixtures/issueProjectItems.js +15 -0
  85. package/dist/fixtures/issueProjectItems.js.map +7 -0
  86. package/dist/fixtures/readView.d.ts +120 -0
  87. package/dist/fixtures/readView.js +172 -0
  88. package/dist/fixtures/readView.js.map +7 -0
  89. package/dist/fixtures/recordedGitHubFlows.d.ts +120 -0
  90. package/dist/fixtures/recordedGitHubFlows.js +109 -0
  91. package/dist/fixtures/recordedGitHubFlows.js.map +7 -0
  92. package/dist/genericCompatibility.test.js +64 -55
  93. package/dist/genericCompatibility.test.js.map +7 -1
  94. package/dist/git.d.ts +0 -3
  95. package/dist/git.js +59 -76
  96. package/dist/git.js.map +7 -1
  97. package/dist/gitProcess.d.ts +1 -1
  98. package/dist/gitProcess.js +58 -53
  99. package/dist/gitProcess.js.map +7 -1
  100. package/dist/github/client.d.ts +2 -2
  101. package/dist/github/client.js +484 -379
  102. package/dist/github/client.js.map +7 -1
  103. package/dist/github/commandIdentityPolicy.js +42 -52
  104. package/dist/github/commandIdentityPolicy.js.map +7 -1
  105. package/dist/github/discovery.d.ts +1 -0
  106. package/dist/github/discovery.js +197 -215
  107. package/dist/github/discovery.js.map +7 -1
  108. package/dist/github/discovery.test.js +223 -177
  109. package/dist/github/discovery.test.js.map +7 -1
  110. package/dist/github/issueHistory.d.ts +2 -2
  111. package/dist/github/issueHistory.js +117 -125
  112. package/dist/github/issueHistory.js.map +7 -1
  113. package/dist/github/machineAuth.d.ts +1 -1
  114. package/dist/github/machineAuth.js +126 -117
  115. package/dist/github/machineAuth.js.map +7 -1
  116. package/dist/github/machineAuth.test.js +755 -639
  117. package/dist/github/machineAuth.test.js.map +7 -1
  118. package/dist/github/nativeIssueMetadata.js +286 -273
  119. package/dist/github/nativeIssueMetadata.js.map +7 -1
  120. package/dist/github/projectDelivery.d.ts +18 -2
  121. package/dist/github/projectDelivery.js +615 -557
  122. package/dist/github/projectDelivery.js.map +7 -1
  123. package/dist/github/relationships.js +433 -389
  124. package/dist/github/relationships.js.map +7 -1
  125. package/dist/github/repo.d.ts +1 -0
  126. package/dist/github/repo.js +123 -96
  127. package/dist/github/repo.js.map +7 -1
  128. package/dist/index.js +3 -3
  129. package/dist/index.js.map +7 -1
  130. package/dist/issue.d.ts +40 -9
  131. package/dist/issue.js +2102 -1742
  132. package/dist/issue.js.map +7 -1
  133. package/dist/issue63History.test.js +40 -42
  134. package/dist/issue63History.test.js.map +7 -1
  135. package/dist/issue63Routes.test.js +154 -143
  136. package/dist/issue63Routes.test.js.map +7 -1
  137. package/dist/issueBatchUpdate.test.js +989 -885
  138. package/dist/issueBatchUpdate.test.js.map +7 -1
  139. package/dist/issueBlockerGuard.test.js +262 -226
  140. package/dist/issueBlockerGuard.test.js.map +7 -1
  141. package/dist/issueContract.d.ts +23 -4
  142. package/dist/issueContract.js +416 -395
  143. package/dist/issueContract.js.map +7 -1
  144. package/dist/issueContract.test.d.ts +4 -3
  145. package/dist/issueContract.test.js +358 -321
  146. package/dist/issueContract.test.js.map +7 -1
  147. package/dist/issueDates.test.js +235 -233
  148. package/dist/issueDates.test.js.map +7 -1
  149. package/dist/issueInfoReadback.test.js +304 -190
  150. package/dist/issueInfoReadback.test.js.map +7 -1
  151. package/dist/issueIntake.test.js +1938 -1732
  152. package/dist/issueIntake.test.js.map +7 -1
  153. package/dist/issueJournal.d.ts +40 -19
  154. package/dist/issueJournal.js +229 -138
  155. package/dist/issueJournal.js.map +7 -1
  156. package/dist/issueJournal.test.js +605 -422
  157. package/dist/issueJournal.test.js.map +7 -1
  158. package/dist/issueRollup.test.d.ts +1 -0
  159. package/dist/issueRollup.test.js +476 -0
  160. package/dist/issueRollup.test.js.map +7 -0
  161. package/dist/issueTracking.test.js +1059 -989
  162. package/dist/issueTracking.test.js.map +7 -1
  163. package/dist/issueWriteRecovery.test.d.ts +1 -0
  164. package/dist/issueWriteRecovery.test.js +260 -0
  165. package/dist/issueWriteRecovery.test.js.map +7 -0
  166. package/dist/lifecycle.test.js +112 -441
  167. package/dist/lifecycle.test.js.map +7 -1
  168. package/dist/logger.js +80 -74
  169. package/dist/logger.js.map +7 -1
  170. package/dist/mcp/index.js +116 -94
  171. package/dist/mcp/index.js.map +7 -1
  172. package/dist/mcp/tools.d.ts +252 -310
  173. package/dist/mcp/tools.js +235 -342
  174. package/dist/mcp/tools.js.map +7 -1
  175. package/dist/pluginAuthProbe.js +63 -52
  176. package/dist/pluginAuthProbe.js.map +7 -1
  177. package/dist/pluginAuthProbe.test.js +85 -62
  178. package/dist/pluginAuthProbe.test.js.map +7 -1
  179. package/dist/pluginCredentials.test.js +282 -259
  180. package/dist/pluginCredentials.test.js.map +7 -1
  181. package/dist/pluginDoctor.test.js +653 -588
  182. package/dist/pluginDoctor.test.js.map +7 -1
  183. package/dist/pluginInstaller.d.ts +7 -5
  184. package/dist/pluginInstaller.js +1173 -1229
  185. package/dist/pluginInstaller.js.map +7 -1
  186. package/dist/pluginInstaller.test.js +1842 -1423
  187. package/dist/pluginInstaller.test.js.map +7 -1
  188. package/dist/pluginPackaging.test.js +417 -413
  189. package/dist/pluginPackaging.test.js.map +7 -1
  190. package/dist/pr.d.ts +114 -131
  191. package/dist/pr.js +1314 -1327
  192. package/dist/pr.js.map +7 -1
  193. package/dist/pr.test.js +967 -653
  194. package/dist/pr.test.js.map +7 -1
  195. package/dist/prAssociation.test.js +2419 -1788
  196. package/dist/prAssociation.test.js.map +7 -1
  197. package/dist/prDispatch.test.js +123 -89
  198. package/dist/prDispatch.test.js.map +7 -1
  199. package/dist/readView.d.ts +184 -0
  200. package/dist/readView.js +218 -0
  201. package/dist/readView.js.map +7 -0
  202. package/dist/readView.test.d.ts +1 -0
  203. package/dist/readView.test.js +146 -0
  204. package/dist/readView.test.js.map +7 -0
  205. package/dist/releaseReconciliation.test.js +267 -288
  206. package/dist/releaseReconciliation.test.js.map +7 -1
  207. package/dist/releaseWorkflow.test.js +2493 -422
  208. package/dist/releaseWorkflow.test.js.map +7 -1
  209. package/dist/review.d.ts +738 -2
  210. package/dist/review.js +601 -348
  211. package/dist/review.js.map +7 -1
  212. package/dist/review.test.js +1218 -812
  213. package/dist/review.test.js.map +7 -1
  214. package/dist/reviewSubmit.test.d.ts +1 -0
  215. package/dist/reviewSubmit.test.js +747 -0
  216. package/dist/reviewSubmit.test.js.map +7 -0
  217. package/dist/services/agentReadinessService.js +42 -37
  218. package/dist/services/agentReadinessService.js.map +7 -1
  219. package/dist/services/blockerGuardService.js +188 -188
  220. package/dist/services/blockerGuardService.js.map +7 -1
  221. package/dist/services/boardReconcileService.d.ts +125 -125
  222. package/dist/services/boardReconcileService.js +1295 -1421
  223. package/dist/services/boardReconcileService.js.map +7 -1
  224. package/dist/services/deliveryHealthService.js +197 -199
  225. package/dist/services/deliveryHealthService.js.map +7 -1
  226. package/dist/services/legacyIssueMigration.js +263 -277
  227. package/dist/services/legacyIssueMigration.js.map +7 -1
  228. package/dist/stagedChecks.test.js +396 -194
  229. package/dist/stagedChecks.test.js.map +7 -1
  230. package/dist/start.test.js +99 -95
  231. package/dist/start.test.js.map +7 -1
  232. package/dist/stdoutRegression.test.js +321 -358
  233. package/dist/stdoutRegression.test.js.map +7 -1
  234. package/dist/targetPolicyDiscovery.test.js +141 -143
  235. package/dist/targetPolicyDiscovery.test.js.map +7 -1
  236. package/dist/targetPolicyEntrypoints.test.js +308 -269
  237. package/dist/targetPolicyEntrypoints.test.js.map +7 -1
  238. package/dist/targetPolicyLocal.test.js +580 -1051
  239. package/dist/targetPolicyLocal.test.js.map +7 -1
  240. package/dist/targetPolicyRoutes.test.js +274 -281
  241. package/dist/targetPolicyRoutes.test.js.map +7 -1
  242. package/dist/targetRepositoryExecution.test.d.ts +1 -0
  243. package/dist/targetRepositoryExecution.test.js +451 -0
  244. package/dist/targetRepositoryExecution.test.js.map +7 -0
  245. package/dist/terminalMessages.js +41 -35
  246. package/dist/terminalMessages.js.map +7 -1
  247. package/dist/toolOutput.d.ts +2 -0
  248. package/dist/toolOutput.js +36 -0
  249. package/dist/toolOutput.js.map +7 -0
  250. package/dist/toolOutput.test.d.ts +1 -0
  251. package/dist/toolOutput.test.js +240 -0
  252. package/dist/toolOutput.test.js.map +7 -0
  253. package/dist/utils/atomicJson.d.ts +0 -2
  254. package/dist/utils/atomicJson.js +81 -77
  255. package/dist/utils/atomicJson.js.map +7 -1
  256. package/dist/utils/filesystem.d.ts +0 -8
  257. package/dist/utils/filesystem.js +5 -19
  258. package/dist/utils/filesystem.js.map +7 -1
  259. package/dist/utils/lockfile.js +68 -71
  260. package/dist/utils/lockfile.js.map +7 -1
  261. package/dist/verification.d.ts +1 -54
  262. package/dist/verification.js +976 -1941
  263. package/dist/verification.js.map +7 -1
  264. package/dist/verificationGate.test.js +127 -117
  265. package/dist/verificationGate.test.js.map +7 -1
  266. package/dist/version.js +45 -24
  267. package/dist/version.js.map +7 -1
  268. package/package.json +9 -8
  269. package/plugins/ai-delivery/.claude-plugin/plugin.json +2 -2
  270. package/plugins/ai-delivery/README.md +47 -156
  271. package/plugins/ai-delivery/plugin.json +1 -1
  272. package/plugins/ai-delivery/runtime/dist/THIRD-PARTY-NOTICES.md +238 -44
  273. package/plugins/ai-delivery/runtime/dist/cli.js +351 -115
  274. package/plugins/ai-delivery/runtime/package.json +1 -1
  275. package/plugins/ai-delivery/skills/intake-create/SKILL.md +14 -78
  276. package/plugins/ai-delivery/skills/pr-handoff/SKILL.md +35 -36
  277. package/plugins/ai-delivery/skills/worktree-lifecycle/SKILL.md +14 -15
  278. package/dist/investigationCompletion.test.js +0 -728
  279. package/dist/investigationCompletion.test.js.map +0 -1
  280. package/dist/services/deliveryAdmission.d.ts +0 -49
  281. package/dist/services/deliveryAdmission.js +0 -165
  282. package/dist/services/deliveryAdmission.js.map +0 -1
  283. package/dist/services/worktreeRegistry.d.ts +0 -434
  284. package/dist/services/worktreeRegistry.js +0 -1248
  285. package/dist/services/worktreeRegistry.js.map +0 -1
  286. package/dist/setup.d.ts +0 -60
  287. package/dist/setup.js +0 -585
  288. package/dist/setup.js.map +0 -1
  289. package/dist/setup.test.js +0 -3329
  290. package/dist/setup.test.js.map +0 -1
  291. package/dist/worktree.d.ts +0 -28
  292. package/dist/worktree.js +0 -188
  293. package/dist/worktree.js.map +0 -1
  294. package/dist/worktreeTransition.d.ts +0 -211
  295. package/dist/worktreeTransition.js +0 -1037
  296. package/dist/worktreeTransition.js.map +0 -1
  297. package/dist/worktreeTransition.test.js +0 -1191
  298. package/dist/worktreeTransition.test.js.map +0 -1
  299. /package/dist/{investigationCompletion.test.d.ts → build.test.d.ts} +0 -0
  300. /package/dist/{setup.test.d.ts → callerErrors.test.d.ts} +0 -0
  301. /package/dist/{worktreeTransition.test.d.ts → deliveryBoard.test.d.ts} +0 -0
@@ -1,180 +1,71 @@
1
1
  # ai-delivery plugin
2
2
 
3
- Self-contained host plugin for `@aviaratech/ai-delivery`. Its built launcher starts the package's existing `mcp:serve` command in the adjacent `runtime` directory, which includes the built CLI and runtime dependencies. It can start from a native plugin root without a parent npm installation, source build or postinstall. The root contains portable `plugin.json` / `mcp.json` and the preserved Claude-compatible `.claude-plugin/plugin.json` / `.mcp.json`. Package, CLI, MCP server and native manifest versions agree; application and bundled dependency notices accompany the launcher. MCP schemas, GitHub operations, repository routing and delivery logic retain their package owners in the package.
3
+ This self-contained Codex and Claude Code plugin bundles the existing `@aviaratech/ai-delivery` CLI and MCP server. Its launcher starts `mcp:serve` from the adjacent `runtime` directory, so the plugin does not need a parent npm installation, source build, or postinstall. Portable `plugin.json` and `mcp.json` files support both hosts; Claude-compatible `.claude-plugin/plugin.json` and `.mcp.json` files remain included. Package, CLI, MCP server, and native manifest versions agree. Application and bundled dependency notices ship with the launcher; MCP schemas, GitHub operations, repository routing, and delivery logic remain owned by the package.
4
4
 
5
- The complete plugin is the canonical public installation for Codex and Claude Code. The bundled skills cover issue intake, host-owned worktree development, and pull request handoff. Use `ai-delivery plugin install --host codex --scope user --version <published-version>` or select `--host claude-code` with a native `user`, `project`, or `local` scope. The same command group provides `doctor`, no-write `preview`, explicit-version `update`, `rollback` to the recorded previous version, and `remove`, with `--dry-run` and `--json` on each. The [package guide](../../README.md) describes managed version retention, read-only diagnostics, and data preservation.
5
+ The complete plugin is the canonical public installation for Codex and Claude Code. Its skills cover issue intake, host-owned worktree development, and pull request handoff. Install a published version with:
6
6
 
7
- Standalone MCP registration is legacy; new consumers should install one complete plugin. CLI/SDK/MCP entrypoints remain available. Legacy support lasts at least two subsequent stable releases **and 90 days after a qualified migration path first ships**. Its actual release/date anchor is unknown: this diagnostics phase starts no clock and removes no legacy support.
7
+ ```sh
8
+ ai-delivery plugin install --host codex --scope user --version <published-version>
9
+ ```
10
+
11
+ Use `--host claude-code` for Claude Code, with its supported `user`, `project`, or `local` scope. The same command group provides `doctor`, no-write `preview`, explicit-version `update`, `rollback` to the recorded previous version, and `remove`; each accepts `--dry-run` and `--json`. See the [package guide's plugin installation](../../README.md#plugin-installation) for managed version retention, read-only diagnostics, and data preservation.
12
+
13
+ Standalone MCP registration is legacy; new consumers should install one complete plugin. CLI, SDK, and MCP entry points remain available. Legacy support lasts at least two subsequent stable releases and 90 days after a qualified migration path first ships. The actual release/date anchor is unknown: this diagnostics phase starts no clock and removes no legacy support.
14
+
15
+ Remote tools accept explicit `repo` outside a checkout; one server can switch repositories. Roles default from settings without `AI_DELIVERY_IDENTITY`. Hosts own worktrees, checks, commits, and pushes. Plugin installation does not adopt historical custody.
8
16
 
9
- Run `ai-delivery plugin preview --host codex --scope user --json` (or `--host claude-code`) for bounded configuration candidates. Preview invokes no native tool or server and creates no settings, backup, lock or checkpoint. Its migration status is refused, planned changes are empty, and unknown source/version or unavailable scope evidence remain unknown. Codex table-header observations are not a TOML/profile/managed resolver; Claude custom-profile configuration is unverified. Native doctor can observe external marketplace installations without adopting ownership or starting unknown launchers. Neither path restores or deletes per-plugin/per-tool preferences.
17
+ ## Preview, activation, and migration
10
18
 
11
- Installed artifacts, a separate doctor startup and the conversation's actual loaded version are different evidence. Follow [Claude's surface-specific activation guidance](https://code.claude.com/docs/en/discover-plugins) or [Codex's MCP guidance](https://learn.chatgpt.com/docs/extend/mcp); no blanket loaded-version or restart claim is made. Live migration/apply/retirement/settings rollback remain unavailable until exact authorized ownership, lossless settings preservation and native writer exclusion are proved. Manifest qualification and actual native migration/adoption remain under [#116](https://github.com/aviaratech/ai-delivery/issues/116). No automatic npm cleanup or mandatory hook is added; directory admission is separate from npm/local-catalog distribution.
19
+ Run `ai-delivery plugin preview --host codex --scope user --json` (or `--host claude-code`) to inspect bounded configuration candidates. Preview starts no native tool or server and creates no settings, backup, lock, or checkpoint. Its migration status is refused, planned changes are empty, and unknown source/version or unavailable scope evidence remain unknown. Codex table-header observations do not identify a TOML/profile/managed resolver; Claude custom-profile configuration remains unverified. Native doctor can observe an external marketplace installation without adopting ownership or starting an unknown launcher. Neither path restores or deletes per-plugin or per-tool preferences.
12
20
 
13
- Configure operator-owned JSON at `~/.config/aviaratech-ai/ai-delivery.json` and provide its selected author/reviewer credential references outside source control. A personal author naming `GH_TOKEN` can use the machine's existing active `gh` session when that variable is absent. Every remote tool accepts an explicit `repo` and works without a checkout or repository policy files; one launched MCP server can switch repositories. The launcher needs no `AI_DELIVERY_IDENTITY`: command roles default from user settings. `issue_pr_create` with `dryRun: true` reports configured actors and rule visibility. Hosts own worktrees, contributor checks, commits and pushes. Explicit `runtime:stage` / `runtime:admit` remain separate controller operations; installing the plugin does not activate or alter a private runtime or adopt historical custody.
21
+ Installed artifacts, a separate doctor startup, and the conversation's actual loaded version are distinct evidence. Follow [Claude's surface-specific activation guidance](https://code.claude.com/docs/en/discover-plugins) or [Codex's MCP guidance](https://learn.chatgpt.com/docs/extend/mcp); there is no blanket loaded-version or restart claim. Live migration, apply, retirement, and settings rollback remain unavailable until exact authorized ownership, lossless settings preservation, and native writer exclusion are proved. Manifest qualification and actual native migration/adoption remain under [#116](https://github.com/aviaratech/ai-delivery/issues/116). No automatic npm cleanup or mandatory hook is added; directory admission is separate from npm/local-catalog distribution.
14
22
 
15
- ## Ordinary issue reads and tool discovery
23
+ ## Issue reads and tool discovery
16
24
 
17
- Ask for the issue in ordinary language, for example “Use the ai-delivery MCP issue_info tool to read example/widget issue 17. Make no changes and don't use another GitHub tool.” The server supplies MCP initialization guidance before deferred tool discovery. The existing intake skill covers ordinary reading, listing and searching as well as authorized intake; no checkout or typed issue-creation fields are needed for a remote read with an explicit repository.
25
+ For a remote read, ask in ordinary language, for example: “Use the ai-delivery MCP issue_info tool to read example/widget issue 17. Make no changes and don't use another GitHub tool.” MCP initialization guidance precedes deferred tool discovery. The existing intake skill supports ordinary reading, listing, searching, and authorized intake. A remote read with an explicit repository needs no checkout or typed issue-creation fields.
18
26
 
19
- Agents should carry the named repository into `repo`, discover the intended installed provider and inspect its schema. In Claude Code, if a bare ai-delivery tool and the installed plugin's tool coexist, the observed plugin-qualified read is `mcp__plugin_ai-delivery_ai-delivery__issue_info`, called with `{"repo":"example/widget","issueNumber":17}`. This is a host-specific discovery example, not a tool name to hardcode for every client. A competing `issueNumber`/`cached`-only tool without `repo` is a different contract; adding an unsupported field cannot select the repository.
27
+ Carry the named repository into `repo`, discover the intended installed provider, and inspect its schema. In Claude Code, when a bare ai-delivery tool and the installed plugin's tool coexist, the observed plugin-qualified read is `mcp__plugin_ai-delivery_ai-delivery__issue_info` with `{"repo":"example/widget","issueNumber":17}`. This example is host-specific; do not hardcode the name for other clients. A competing `issueNumber`/`cached`-only tool without `repo` has a different contract, and an unsupported field cannot select the repository.
20
28
 
21
- Honor explicit provider, read-only and MCP-only restrictions. If the requested compatible provider is unavailable, report that fact instead of changing directories, using another GitHub provider/CLI or repairing a registration. Successful explicit-repo reads demonstrate that read path; installed files or guidance alone do not prove which provider an agent selected, a running server's version or host isolation. Native validation should retain the actual selected tool, schema, arguments and result, with model/skill context when shown.
29
+ Honor explicit provider, read-only, and MCP-only restrictions. If the requested compatible provider is unavailable, report that without changing directories, using another GitHub provider/CLI, or repairing registration. A successful explicit-repository read demonstrates that read path only; installed files or guidance do not prove provider selection, a running server's version, or host isolation. Native validation should retain the selected tool, schema, arguments, and result, with model/skill context when shown.
22
30
 
23
31
  ## Credentials and readiness
24
32
 
25
- User JSON names credential variables; it does not provide their values. For the
26
- fictional configuration in the [package guide](../../README.md#user-configuration),
27
- the selected personal author names `GH_TOKEN`. When it is absent, the existing
28
- active personal `github.com` session from `gh` is selected. A supplied value takes
29
- precedence; empty, malformed, expired or denied explicit credentials fail without
30
- switching actors. A custom reference such as `DELIVERY_AUTHOR_TOKEN` always
31
- requires its value and has no missing-variable fallback. Ambient `GITHUB_TOKEN`
32
- or unrelated credentials do not replace a configured reference. The reviewer App
33
- needs `DELIVERY_REVIEWER_APP_ID`, `DELIVERY_REVIEWER_INSTALLATION_ID`, and
34
- `DELIVERY_REVIEWER_KEY_PATH`; the last value names an absolute private-key file.
35
- An App author needs its own three references. Role identities, reference names,
36
- and authenticated actors must remain distinct. Never substitute an ambient token
37
- or the author's credential for the reviewer.
38
-
39
- The bundled launcher inherits the environment supplied by the native host. It
40
- does not automatically read a shell profile, `.env` file, repository configuration,
41
- or secret manager. A variable exported in a terminal may be absent from an
42
- already-running GUI application. Supplying variables to a separate CLI command
43
- does not change the native host's running MCP process.
44
-
45
- The author resolver finds `gh` on that actual process PATH, with no hardcoded
46
- installation path, shell-profile launch or current-directory search. It uses
47
- supported `gh auth status --hostname github.com --active --json hosts` and
48
- privately captures `gh auth token --hostname github.com --user <active-user>`.
49
- Status JSON can exit zero despite authentication errors: the selected active
50
- state and actual authenticated user must both pass and match. Inactive account
51
- errors do not invalidate a healthy selected user. Missing/ambiguous/expired
52
- sessions, identity mismatch or unavailable keyring refuse without another
53
- account, login/switch/refresh or a permission grant. Only necessary non-secret
54
- home/PATH/gh configuration selectors reach this child; credentials, debug flags,
55
- injection flags and unrelated environment variables are excluded. The token and
56
- raw stdout/stderr stay private to the selected auth client; no released files,
57
- logs, settings or native diagnostic output receive them.
58
-
59
- The package currently supports `github.com` only. An enterprise repository or
60
- conflicting `GH_HOST` fails safely instead of substituting `github.com`.
61
- `GH_CONFIG_DIR` / `XDG_CONFIG_HOME`, when supplied, retain their selected gh
62
- configuration location rather than falling back to another profile. The role's
63
- configured identity is a label; Git author metadata is not authentication.
64
- Actual user/repository readback remains required. Read access does not prove a
65
- future write is allowed or that a reviewer App approval will count.
66
-
67
- Shell `gh` availability and a healthy keyring session do not prove native GUI
68
- PATH/keyring visibility. After adopting the exact qualified package in each
69
- host, retain an actual read-only native selected-user/repository readback, or
70
- its actionable missing-gh/session refusal. A selected-runtime CLI pass does not
71
- establish Codex/Claude GUI propagation. Author fallback never substitutes for
72
- the reviewer App's configured credentials or identity.
73
-
74
- Use an operator-controlled, host-supported environment mechanism for the selected
75
- server and the configured reference names. [Codex's stdio configuration](https://developers.openai.com/codex/mcp)
76
- supports per-server `env` and allow-and-forward `env_vars`; forwarding requires
77
- the named input to exist in the selected local or remote environment.
78
- [Claude Code's MCP configuration](https://code.claude.com/docs/en/mcp#environment-variable-expansion-in-mcp-json)
79
- supports `${VAR}` expansion in server environment fields. Expansion also requires
80
- the input to exist; an unresolved placeholder is not a supplied credential.
81
- These mechanisms configure the host boundary, rather than importing consumer
82
- policy. OpenAI does not expand Claude's `${user_config.*}` plugin options, so
83
- those prompts are not a shared setup path for both hosts.
84
- [OpenAI's compatibility guide](https://developers.openai.com/plugins/guides/submit-claude-plugin#replace-claude-userconfig)
85
- describes this limitation.
86
-
87
- Keep values in the operator's protected credential storage and out of plugin
88
- manifests, released cache files, project settings, transcripts, and diagnostic
89
- output. Select only the configured delivery references; do not export a whole
90
- credential file or unrelated service variables. A scoped launcher may retain
91
- ordinary inherited process variables: that is different from proving the entire
92
- environment is sanitized. Restart the selected host after changing its launch
93
- environment, then verify from that host. Native per-server setup must retain the
94
- selected released plugin; do not patch its cache or add a competing server to
95
- hide a missing-variable failure.
96
-
97
- Treat each readiness layer separately:
98
-
99
- | Layer | Evidence | What remains unproved |
100
- | --------------------------------------- | ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
101
- | Installed bytes | Selected version and matching source integrity | Server startup and credentials |
102
- | Startup | Default `plugin doctor` initializes the bundled server and lists tools without credentials | Settings validity and GitHub use |
103
- | User settings | The operator JSON validates its schema, role identities, reference names, and paths | Reference availability and authentication |
104
- | Reference availability | Required variables are present; an absent conventional author reference may select the machine route | Token/key/session authentication remains separate |
105
- | Supplied-environment CLI authentication | Explicit `config:resolve` returns the selected repository, author, reviewer, and rule visibility | The native GUI/CLI host process received the same inputs |
106
- | Native authentication | A read-only tool call succeeds through the selected host's actual MCP process | Reviewer approval counts on a later exact PR head |
107
-
108
- Default doctor is credential-free and does not contact GitHub or read user
109
- settings, selected credential variables or keys. To opt in, run from the intended
110
- credential environment with an explicit repository (required even outside Git):
33
+ Configure operator-owned JSON at `~/.config/aviaratech-ai/ai-delivery.json` and keep credential values in protected storage, outside source control and plugin/project files. The [package guide](../../README.md#user-configuration) documents the schema and credential flow. For its conventional personal author reference, a missing `GH_TOKEN` may use the machine's active `gh` session; a supplied value takes precedence. A custom reference such as `DELIVERY_AUTHOR_TOKEN` has no fallback. Invalid or denied explicit credentials fail closed. The reviewer App requires `DELIVERY_REVIEWER_APP_ID`, `DELIVERY_REVIEWER_INSTALLATION_ID`, and `DELIVERY_REVIEWER_KEY_PATH`; App authors require their own references. Never substitute an ambient token or the author's credential for the reviewer. Role labels and Git author metadata are not authentication.
34
+
35
+ The key path must name an absolute private-key file. Missing, ambiguous or expired sessions, selected-user mismatches, or unavailable keyrings refuse without account switching, login/refresh, or added permissions. Unrelated `GITHUB_TOKEN` never replaces the configured reference.
36
+
37
+ The launcher inherits the native host's environment; it does not read shell profiles, `.env` files, repo config, or a secret manager. Terminal exports may be absent from an already-running GUI host, and configuring a separate CLI does not update that MCP process. Use the host's supported mechanism: [Codex MCP](https://developers.openai.com/codex/mcp) forwards configured `env`/`env_vars`; [Claude Code MCP](https://code.claude.com/docs/en/mcp#environment-variable-expansion-in-mcp-json) expands `${VAR}` only when supplied to the host. OpenAI does not expand Claude `${user_config.*}` plugin options; see [the compatibility guide](https://developers.openai.com/plugins/guides/submit-claude-plugin#replace-claude-userconfig). Do not patch plugin cache or add a competing server to mask missing variables. Restart after changing launch environment and verify from the selected host.
38
+
39
+ Only `github.com` is supported. Enterprise repositories or conflicting `GH_HOST` fail rather than switching hosts. Supplied `GH_CONFIG_DIR`/`XDG_CONFIG_HOME` remain selected; no alternate profile is tried. `gh` availability and a healthy keyring do not prove native GUI visibility. A selected-runtime CLI pass does not establish GUI propagation, write access, or future reviewer approval. After selecting the exact released plugin, retain a native read-only selected-user/repository result or its actionable missing-gh/session refusal. See the package guide's [reviewer setup](../../README.md#five-minute-reviewer-setup) for App credential and approval details.
40
+
41
+ Default `plugin doctor` is credential-free: it starts the bundled server and lists tools without contacting GitHub or reading settings, credential references, or keys. To opt in to auth diagnostics, use the intended environment and an explicit repository, even outside Git:
111
42
 
112
43
  ```sh
113
44
  ai-delivery --repo example/widget plugin doctor --host codex --scope user --check-auth --json
114
45
  ```
115
46
 
116
- Use `--host claude-code` for the corresponding managed native selection. The
117
- diagnostic refuses absent, disabled, modified or failed-startup selections. It
118
- then validates settings and reports required/missing variable names without
119
- values. Eligible absent `GH_TOKEN` is not reported as a required supplied token.
120
- Missing reviewer/custom references or invalid explicit inputs stop before key read or authentication
121
- request. Credential names must not overlap runtime selectors (`PATH`, `HOME`,
122
- host/configuration selectors or Node/npm/Git environment controls).
123
-
124
- The verified selected runtime's existing `config:resolve` owns the readback.
125
- Only configured references and necessary selectors are forwarded; an eligible
126
- machine route also retains the process's supported gh home/PATH/config selectors. Unrelated
127
- variables, legacy personal overrides and caller Node injection flags are excluded.
128
- Output separates settings, process references, authenticated author/reviewer,
129
- repository access and visible rules. Authentication/discovery failure can leave
130
- both identity and repository access unverified; a generic failure is not a
131
- permission diagnosis. Raw errors, upstream bodies/headers and private-key paths
132
- are withheld. Rule visibility or App permissions never imply counted approval.
133
- The authentication probe supervises the selected CLI and its children. Its
134
- 30-second timeout and host cancellation await owned-process cleanup while
135
- keeping captured output private. If cleanup cannot be confirmed, the result is
136
- `probe_cleanup_unverified` and authentication remains unverified.
137
- The machine author diagnostic includes its safe route/resolved executable. It
138
- does not expose a token or claim a missing variable became present.
139
- The invocation context is `selected_runtime_cli`, and native GUI propagation
140
- remains `unverified`. Dry-run does not validate settings or authenticate.
141
-
142
- For a direct package CLI readback, the existing command is:
47
+ Use `--host claude-code` for the managed native selection. Diagnostics refuse absent, disabled, modified, or failed-startup plugins, then validate settings and report missing variable names without values. Missing reviewer/custom references stop before key read or authentication. Credential names must not overlap runtime controls such as `PATH`, `HOME`, host config, or Node/npm/Git variables.
48
+
49
+ This opt-in probe supervises the selected CLI for 30 seconds and awaits owned cleanup on timeout/cancellation. Its output keeps raw errors, upstream bodies/headers, tokens, and key paths private. Unconfirmed cleanup (`probe_cleanup_unverified`) leaves authentication unverified; its `selected_runtime_cli` context does not prove GUI propagation. `--dry-run` neither validates settings nor authenticates.
50
+
51
+ For direct package CLI readback, run `config:resolve`:
143
52
 
144
53
  ```sh
145
54
  ai-delivery --repo example/widget config:resolve
146
55
  ```
147
56
 
148
- This command uses the existing configuration and GitHub clients to read routing,
149
- the authenticated author and reviewer App, and visible repository rules. It does
150
- not create an issue, branch, review, or PR. A failure such as a missing author
151
- variable must not be reported as authenticated readiness even if startup passed.
152
- Successful reviewer access also does not establish counted approval; that needs
153
- readback after an exact-head review is submitted.
154
-
155
- Inside Codex or Claude Code, request an actual read-only `issue_info` call with a
156
- known issue and explicit `repo: "example/widget"`. Label this native author-only
157
- readback accurately. For a full role preflight, `issue_pr_create` with
158
- `dryRun: true` also requires an existing open issue and a GitHub-linked branch
159
- in the selected repository with a readable valid head. Without `headBranch`,
160
- exactly one linked branch must be available; when several exist, pass
161
- `headBranch` naming one of those linked branches. The base must be the repository
162
- default branch, and any matching existing PR must have compatible state and
163
- readable issue association. Check the configured author, reviewer and rule
164
- visibility only after the dry-run succeeds.
165
-
166
- A branch or issue/PR-state refusal can occur before reviewer preflight; it does
167
- not establish that credentials are invalid. If the prerequisites or successful
168
- dry-run result are unavailable, leave native full-role readiness unverified.
169
- Keep any author-only native readback or separate CLI preflight labelled with its
170
- own evidence context. Do not create a branch or PR to force this diagnostic.
171
- Repeat for another explicitly selected repository when cross-repository access
172
- is required; an outside-Git launch and repository switching require no consumer
173
- policy files.
174
-
175
- Record the host, selected version, repository, check, outcome, missing variable
176
- names, and safe actor identifiers. Keep native GUI results, native CLI results,
177
- supplied-environment package CLI results, and synthetic fixtures in separate
178
- evidence categories. A fictional fixture validates a contract, not a real
179
- credential or native installation. Do not include environment values, private
180
- keys, private-key paths, headers, or raw authentication errors in shared reports.
57
+ It reads routing, authenticated author/reviewer App, and visible repository rules without creating an issue, branch, review, or PR. Discovery/auth failure can leave identity/access unknown; it is not a permission diagnosis. Synthetic fixtures validate contracts, not real credentials or native installation. Keep GUI, CLI, and fixture evidence separate; never share values, keys/paths, headers, or raw auth errors.
58
+
59
+ Inside either host, request actual read-only `issue_info` with a known issue and explicit `repo: "example/widget"`; label it author-only. Full-role `issue_pr_create` with `dryRun: true` requires an existing open issue, a linked branch with readable valid head, default base, and compatible existing PR/issue association. If multiple linked branches exist, name one with `headBranch`; without it, exactly one must be linked. A branch/state refusal may occur before reviewer preflight, so it does not prove credentials invalid. Leave full-role readiness unverified unless the prerequisites and successful dry-run result are available. Do not create a branch or PR to force this diagnostic. See the package guide's [GitHub-gated lifecycle](../../README.md#github-gated-lifecycle).
60
+
61
+ ## Independent reviewer command
62
+
63
+ See the [package guide's five-minute reviewer setup](../../README.md#five-minute-reviewer-setup) for a consumer-named App profile, explicit provider and actor, and credential source. `ai-delivery review doctor --identity <profile>` checks only that selected App without posting. A fresh independent reviewer writes the strict verdict, then submits it with:
64
+
65
+ ```sh
66
+ ai-delivery review submit --pr <number> --head <sha> --identity <profile> --verdict ./verdict.json --repo <owner/name>
67
+ ```
68
+
69
+ Approval and request-changes retain their own events and readback states; inspect live required-review status after submission.
70
+
71
+ The runtime needs no dotenvx or host launcher fork. It reads one selected key in memory, fails closed without fallback, and redacts source errors. Command sources reuse the bounded POSIX supervisor; native Windows commands are deferred, and Windows protected-file permission equivalence is unqualified. Plugin installation does not migrate host credentials or install the optional Claude permission pattern `Bash(ai-delivery review submit *)`. Existing native policies and refusals remain binding.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "ai-delivery",
4
- "version": "0.3.35",
4
+ "version": "0.3.37",
5
5
  "description": "GitHub issue and pull request delivery tools for prepared worktrees and evidence-based handoff.",
6
6
  "author": { "name": "AviaraTech", "url": "https://github.com/aviaratech" },
7
7
  "homepage": "https://github.com/aviaratech/ai-delivery#readme",