kimi-plugin-cc 2.7.3 → 3.1.0

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 (317) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +3 -16
  3. package/README.md +428 -515
  4. package/assets/logo.svg +6 -0
  5. package/cordis.patch.yml +18 -0
  6. package/dist/background-spawn.js +14 -19
  7. package/dist/cli-client.js +163 -105
  8. package/dist/commands/ask.js +44 -96
  9. package/dist/commands/cancel.js +11 -59
  10. package/dist/commands/cli-helpers.js +102 -1
  11. package/dist/commands/models.js +2 -3
  12. package/dist/commands/pursue.js +8 -21
  13. package/dist/commands/registry.js +7 -26
  14. package/dist/commands/repair-sessions.js +121 -12
  15. package/dist/commands/replay.js +4 -3
  16. package/dist/commands/rescue.js +29 -87
  17. package/dist/commands/result.js +7 -1
  18. package/dist/commands/review.js +28 -18
  19. package/dist/commands/setup.js +813 -462
  20. package/dist/commands/status.js +2 -2
  21. package/dist/commands/swarm.js +112 -125
  22. package/dist/commands/worker.js +1 -2
  23. package/dist/companion.js +145 -19
  24. package/dist/git.js +1 -9
  25. package/dist/help.js +13 -9
  26. package/dist/hook-escape.js +7 -16
  27. package/dist/hooks/approval-hook.js +1766 -87
  28. package/dist/hooks/approval-policy.js +86 -19
  29. package/dist/hooks/config-safety.js +31 -64
  30. package/dist/hooks/hook-timing.js +48 -0
  31. package/dist/hooks/install-paths.js +179 -107
  32. package/dist/hooks/install.js +126 -53
  33. package/dist/hooks/managed-block.js +121 -127
  34. package/dist/job-store.js +206 -166
  35. package/dist/jobs.js +66 -19
  36. package/dist/kimi-command.js +74 -1
  37. package/dist/kimi-engine.js +198 -127
  38. package/dist/kimi-errors.js +15 -70
  39. package/dist/kimi-home.js +6 -0
  40. package/dist/kimi-journal.js +42 -0
  41. package/dist/kimi-releases.js +123 -0
  42. package/dist/kimi-timeouts.js +2 -16
  43. package/dist/kimi-version-probe.js +24 -108
  44. package/dist/logging.js +12 -7
  45. package/dist/mcp/binding.js +13 -4
  46. package/dist/mcp/job-control.js +390 -95
  47. package/dist/mcp/launcher.js +13 -7
  48. package/dist/mcp/operations.js +405 -179
  49. package/dist/mcp/protocol.js +124 -33
  50. package/dist/mcp/skills.js +130 -0
  51. package/dist/mcp/stdio.js +18 -4
  52. package/dist/model-command.js +5 -3
  53. package/dist/native-v2-preflight.js +243 -80
  54. package/dist/parsing.js +211 -243
  55. package/dist/paths.js +28 -10
  56. package/dist/plugin-data.js +28 -83
  57. package/dist/process-tree.js +35 -24
  58. package/dist/read-scope.js +435 -0
  59. package/dist/render.js +58 -46
  60. package/dist/rescue-approval.js +461 -84
  61. package/dist/session-references.js +216 -0
  62. package/dist/session-title.js +26 -6
  63. package/dist/stream-json.js +1 -3
  64. package/dist/surface-routing.js +108 -0
  65. package/dist/swarm-activation.js +74 -188
  66. package/dist/swarm-policy.js +2 -1
  67. package/dist/swarm-recovery.js +2 -1
  68. package/dist/util.js +28 -0
  69. package/dist/version.js +1 -1
  70. package/docs/migration.md +45 -206
  71. package/docs/models.md +24 -66
  72. package/docs/safety.md +198 -353
  73. package/docs/session-visibility.md +25 -13
  74. package/docs/swarm-recovery.md +26 -20
  75. package/dsh/index.json +54 -0
  76. package/mcp_config.json +10 -0
  77. package/package.json +23 -82
  78. package/plugin.json +19 -0
  79. package/plugins/kimi-codex/.codex-plugin/plugin.json +7 -7
  80. package/plugins/kimi-codex/.mcp.json +3 -3
  81. package/plugins/kimi-codex/dist/background-spawn.js +14 -19
  82. package/plugins/kimi-codex/dist/cli-client.js +163 -105
  83. package/plugins/kimi-codex/dist/commands/ask.js +44 -96
  84. package/plugins/kimi-codex/dist/commands/cancel.js +11 -59
  85. package/plugins/kimi-codex/dist/commands/cli-helpers.js +102 -1
  86. package/plugins/kimi-codex/dist/commands/models.js +2 -3
  87. package/plugins/kimi-codex/dist/commands/pursue.js +8 -21
  88. package/plugins/kimi-codex/dist/commands/registry.js +7 -26
  89. package/plugins/kimi-codex/dist/commands/repair-sessions.js +121 -12
  90. package/plugins/kimi-codex/dist/commands/replay.js +4 -3
  91. package/plugins/kimi-codex/dist/commands/rescue.js +29 -87
  92. package/plugins/kimi-codex/dist/commands/result.js +7 -1
  93. package/plugins/kimi-codex/dist/commands/review.js +28 -18
  94. package/plugins/kimi-codex/dist/commands/setup.js +813 -462
  95. package/plugins/kimi-codex/dist/commands/status.js +2 -2
  96. package/plugins/kimi-codex/dist/commands/swarm.js +112 -125
  97. package/plugins/kimi-codex/dist/commands/worker.js +1 -2
  98. package/plugins/kimi-codex/dist/companion.js +145 -19
  99. package/plugins/kimi-codex/dist/git.js +1 -9
  100. package/plugins/kimi-codex/dist/help.js +13 -9
  101. package/plugins/kimi-codex/dist/hook-escape.js +7 -16
  102. package/plugins/kimi-codex/dist/hooks/approval-hook.js +1766 -87
  103. package/plugins/kimi-codex/dist/hooks/approval-policy.js +86 -19
  104. package/plugins/kimi-codex/dist/hooks/config-safety.js +31 -64
  105. package/plugins/kimi-codex/dist/hooks/hook-timing.js +48 -0
  106. package/plugins/kimi-codex/dist/hooks/install-paths.js +179 -107
  107. package/plugins/kimi-codex/dist/hooks/install.js +126 -53
  108. package/plugins/kimi-codex/dist/hooks/managed-block.js +121 -127
  109. package/plugins/kimi-codex/dist/job-store.js +206 -166
  110. package/plugins/kimi-codex/dist/jobs.js +66 -19
  111. package/plugins/kimi-codex/dist/kimi-command.js +74 -1
  112. package/plugins/kimi-codex/dist/kimi-engine.js +198 -127
  113. package/plugins/kimi-codex/dist/kimi-errors.js +15 -70
  114. package/plugins/kimi-codex/dist/kimi-home.js +6 -0
  115. package/plugins/kimi-codex/dist/kimi-journal.js +42 -0
  116. package/plugins/kimi-codex/dist/kimi-releases.js +123 -0
  117. package/plugins/kimi-codex/dist/kimi-timeouts.js +2 -16
  118. package/plugins/kimi-codex/dist/kimi-version-probe.js +24 -108
  119. package/plugins/kimi-codex/dist/logging.js +12 -7
  120. package/plugins/kimi-codex/dist/mcp/binding.js +13 -4
  121. package/plugins/kimi-codex/dist/mcp/job-control.js +390 -95
  122. package/plugins/kimi-codex/dist/mcp/launcher.js +13 -7
  123. package/plugins/kimi-codex/dist/mcp/operations.js +405 -179
  124. package/plugins/kimi-codex/dist/mcp/protocol.js +124 -33
  125. package/plugins/kimi-codex/dist/mcp/skills.js +130 -0
  126. package/plugins/kimi-codex/dist/mcp/stdio.js +18 -4
  127. package/plugins/kimi-codex/dist/model-command.js +5 -3
  128. package/plugins/kimi-codex/dist/native-v2-preflight.js +243 -80
  129. package/plugins/kimi-codex/dist/parsing.js +211 -243
  130. package/plugins/kimi-codex/dist/paths.js +28 -10
  131. package/plugins/kimi-codex/dist/plugin-data.js +28 -83
  132. package/plugins/kimi-codex/dist/process-tree.js +35 -24
  133. package/plugins/kimi-codex/dist/read-scope.js +435 -0
  134. package/plugins/kimi-codex/dist/render.js +58 -46
  135. package/plugins/kimi-codex/dist/rescue-approval.js +461 -84
  136. package/plugins/kimi-codex/dist/session-references.js +216 -0
  137. package/plugins/kimi-codex/dist/session-title.js +26 -6
  138. package/plugins/kimi-codex/dist/stream-json.js +1 -3
  139. package/plugins/kimi-codex/dist/surface-routing.js +108 -0
  140. package/plugins/kimi-codex/dist/swarm-activation.js +74 -188
  141. package/plugins/kimi-codex/dist/swarm-policy.js +2 -1
  142. package/plugins/kimi-codex/dist/swarm-recovery.js +2 -1
  143. package/plugins/kimi-codex/dist/util.js +28 -0
  144. package/plugins/kimi-codex/dist/version.js +1 -1
  145. package/plugins/kimi-codex/scripts/companion.sh +4 -15
  146. package/plugins/kimi-codex/skills/kimi/SKILL.md +77 -0
  147. package/plugins/kimi-codex/skills/kimi/agents/openai.yaml +6 -0
  148. package/scripts/companion.sh +4 -15
  149. package/skills/kimi/SKILL.md +77 -0
  150. package/skills/kimi/agents/openai.yaml +6 -0
  151. package/CHANGELOG.md +0 -1333
  152. package/agents/kimi-ask.md +0 -89
  153. package/agents/kimi-challenge.md +0 -86
  154. package/agents/kimi-pursue.md +0 -93
  155. package/agents/kimi-rescue.md +0 -92
  156. package/agents/kimi-review.md +0 -86
  157. package/agents/kimi-swarm-write.md +0 -96
  158. package/agents/kimi-swarm.md +0 -86
  159. package/commands/README.md +0 -16
  160. package/commands/ask.md +0 -38
  161. package/commands/cancel.md +0 -17
  162. package/commands/challenge.md +0 -35
  163. package/commands/pursue.md +0 -41
  164. package/commands/replay.md +0 -13
  165. package/commands/rescue.md +0 -38
  166. package/commands/result.md +0 -13
  167. package/commands/review.md +0 -35
  168. package/commands/setup.md +0 -23
  169. package/commands/status.md +0 -13
  170. package/commands/swarm.md +0 -44
  171. package/dist/commands/not-implemented.js +0 -4
  172. package/dist/commands/review-gate.js +0 -390
  173. package/dist/config.js +0 -22
  174. package/dist/dsh/companion.js +0 -177
  175. package/dist/dsh/index.js +0 -169
  176. package/dist/hooks/review-gate-stop.js +0 -19
  177. package/dist/schemas/review-gate-output.js +0 -43
  178. package/docs/registry-releases.md +0 -228
  179. package/docs/upstream-2.4.1-certification.md +0 -54
  180. package/docs/upstream-2.5.0-certification.md +0 -52
  181. package/docs/upstream-2.5.1-certification.md +0 -47
  182. package/docs/upstream-2.5.2-certification.md +0 -40
  183. package/docs/upstream-2.5.3-certification.md +0 -73
  184. package/docs/upstream-2.6.0-certification.md +0 -65
  185. package/docs/upstream-2.6.2-certification.md +0 -144
  186. package/docs/upstream-2.6.3-certification.md +0 -100
  187. package/docs/upstream-2.7.2-certification.md +0 -113
  188. package/docs/upstream-2.7.3-certification.md +0 -83
  189. package/docs/windows-validation.md +0 -39
  190. package/hooks/README.md +0 -9
  191. package/hooks/hooks.json +0 -16
  192. package/plugins/kimi-codex/dist/commands/not-implemented.js +0 -4
  193. package/plugins/kimi-codex/dist/commands/review-gate.js +0 -390
  194. package/plugins/kimi-codex/dist/config.js +0 -22
  195. package/plugins/kimi-codex/dist/dsh/companion.js +0 -177
  196. package/plugins/kimi-codex/dist/dsh/index.js +0 -169
  197. package/plugins/kimi-codex/dist/hooks/review-gate-stop.js +0 -19
  198. package/plugins/kimi-codex/dist/schemas/review-gate-output.js +0 -43
  199. package/plugins/kimi-codex/scripts/review-gate-hook.sh +0 -32
  200. package/plugins/kimi-codex/skills/kimi-ask/SKILL.md +0 -35
  201. package/plugins/kimi-codex/skills/kimi-ask/agents/openai.yaml +0 -6
  202. package/plugins/kimi-codex/skills/kimi-cancel/SKILL.md +0 -25
  203. package/plugins/kimi-codex/skills/kimi-cancel/agents/openai.yaml +0 -6
  204. package/plugins/kimi-codex/skills/kimi-challenge/SKILL.md +0 -34
  205. package/plugins/kimi-codex/skills/kimi-challenge/agents/openai.yaml +0 -6
  206. package/plugins/kimi-codex/skills/kimi-pursue/SKILL.md +0 -32
  207. package/plugins/kimi-codex/skills/kimi-pursue/agents/openai.yaml +0 -6
  208. package/plugins/kimi-codex/skills/kimi-replay/SKILL.md +0 -25
  209. package/plugins/kimi-codex/skills/kimi-replay/agents/openai.yaml +0 -6
  210. package/plugins/kimi-codex/skills/kimi-rescue/SKILL.md +0 -34
  211. package/plugins/kimi-codex/skills/kimi-rescue/agents/openai.yaml +0 -6
  212. package/plugins/kimi-codex/skills/kimi-result/SKILL.md +0 -25
  213. package/plugins/kimi-codex/skills/kimi-result/agents/openai.yaml +0 -6
  214. package/plugins/kimi-codex/skills/kimi-review/SKILL.md +0 -34
  215. package/plugins/kimi-codex/skills/kimi-review/agents/openai.yaml +0 -6
  216. package/plugins/kimi-codex/skills/kimi-setup/SKILL.md +0 -34
  217. package/plugins/kimi-codex/skills/kimi-setup/agents/openai.yaml +0 -6
  218. package/plugins/kimi-codex/skills/kimi-status/SKILL.md +0 -25
  219. package/plugins/kimi-codex/skills/kimi-status/agents/openai.yaml +0 -6
  220. package/plugins/kimi-codex/skills/kimi-swarm/SKILL.md +0 -35
  221. package/plugins/kimi-codex/skills/kimi-swarm/agents/openai.yaml +0 -6
  222. package/plugins/kimi-codex/skills/kimi-swarm-write/SKILL.md +0 -36
  223. package/plugins/kimi-codex/skills/kimi-swarm-write/agents/openai.yaml +0 -6
  224. package/plugins/kimi-dsh/LICENSE +0 -201
  225. package/plugins/kimi-dsh/README.md +0 -83
  226. package/plugins/kimi-dsh/cordis.patch.yml +0 -45
  227. package/plugins/kimi-dsh/dist/background-spawn.js +0 -216
  228. package/plugins/kimi-dsh/dist/cli-cancellation.js +0 -43
  229. package/plugins/kimi-dsh/dist/cli-client.js +0 -1078
  230. package/plugins/kimi-dsh/dist/commands/ask.js +0 -336
  231. package/plugins/kimi-dsh/dist/commands/cancel.js +0 -216
  232. package/plugins/kimi-dsh/dist/commands/cli-helpers.js +0 -201
  233. package/plugins/kimi-dsh/dist/commands/models.js +0 -140
  234. package/plugins/kimi-dsh/dist/commands/not-implemented.js +0 -4
  235. package/plugins/kimi-dsh/dist/commands/pursue.js +0 -307
  236. package/plugins/kimi-dsh/dist/commands/recover-swarm.js +0 -140
  237. package/plugins/kimi-dsh/dist/commands/registry.js +0 -74
  238. package/plugins/kimi-dsh/dist/commands/repair-sessions.js +0 -160
  239. package/plugins/kimi-dsh/dist/commands/replay.js +0 -124
  240. package/plugins/kimi-dsh/dist/commands/rescue.js +0 -347
  241. package/plugins/kimi-dsh/dist/commands/result.js +0 -66
  242. package/plugins/kimi-dsh/dist/commands/review-gate.js +0 -390
  243. package/plugins/kimi-dsh/dist/commands/review.js +0 -220
  244. package/plugins/kimi-dsh/dist/commands/setup.js +0 -1129
  245. package/plugins/kimi-dsh/dist/commands/status.js +0 -27
  246. package/plugins/kimi-dsh/dist/commands/swarm.js +0 -849
  247. package/plugins/kimi-dsh/dist/commands/worker.js +0 -25
  248. package/plugins/kimi-dsh/dist/companion.js +0 -97
  249. package/plugins/kimi-dsh/dist/config.js +0 -22
  250. package/plugins/kimi-dsh/dist/dsh/companion.js +0 -177
  251. package/plugins/kimi-dsh/dist/dsh/index.js +0 -169
  252. package/plugins/kimi-dsh/dist/errors.js +0 -40
  253. package/plugins/kimi-dsh/dist/git.js +0 -224
  254. package/plugins/kimi-dsh/dist/help.js +0 -43
  255. package/plugins/kimi-dsh/dist/hook-escape.js +0 -71
  256. package/plugins/kimi-dsh/dist/hooks/approval-hook.js +0 -104
  257. package/plugins/kimi-dsh/dist/hooks/approval-policy.js +0 -233
  258. package/plugins/kimi-dsh/dist/hooks/config-safety.js +0 -665
  259. package/plugins/kimi-dsh/dist/hooks/install-paths.js +0 -428
  260. package/plugins/kimi-dsh/dist/hooks/install.js +0 -210
  261. package/plugins/kimi-dsh/dist/hooks/managed-block.js +0 -684
  262. package/plugins/kimi-dsh/dist/hooks/review-gate-stop.js +0 -19
  263. package/plugins/kimi-dsh/dist/job-id.js +0 -12
  264. package/plugins/kimi-dsh/dist/job-store.js +0 -659
  265. package/plugins/kimi-dsh/dist/jobs.js +0 -217
  266. package/plugins/kimi-dsh/dist/kimi-command.js +0 -71
  267. package/plugins/kimi-dsh/dist/kimi-engine.js +0 -675
  268. package/plugins/kimi-dsh/dist/kimi-errors.js +0 -260
  269. package/plugins/kimi-dsh/dist/kimi-home.js +0 -9
  270. package/plugins/kimi-dsh/dist/kimi-timeouts.js +0 -52
  271. package/plugins/kimi-dsh/dist/kimi-version-probe.js +0 -234
  272. package/plugins/kimi-dsh/dist/logging.js +0 -22
  273. package/plugins/kimi-dsh/dist/mcp/binding.js +0 -58
  274. package/plugins/kimi-dsh/dist/mcp/job-control.js +0 -345
  275. package/plugins/kimi-dsh/dist/mcp/launcher.js +0 -257
  276. package/plugins/kimi-dsh/dist/mcp/operations.js +0 -301
  277. package/plugins/kimi-dsh/dist/mcp/protocol.js +0 -275
  278. package/plugins/kimi-dsh/dist/mcp/server.js +0 -8
  279. package/plugins/kimi-dsh/dist/mcp/stdio.js +0 -78
  280. package/plugins/kimi-dsh/dist/mcp/supervised-child.js +0 -15
  281. package/plugins/kimi-dsh/dist/mcp/tool-result.js +0 -7
  282. package/plugins/kimi-dsh/dist/mcp/workspace.js +0 -34
  283. package/plugins/kimi-dsh/dist/model-command.js +0 -32
  284. package/plugins/kimi-dsh/dist/native-v2-preflight.js +0 -525
  285. package/plugins/kimi-dsh/dist/package.json +0 -1
  286. package/plugins/kimi-dsh/dist/parsing.js +0 -620
  287. package/plugins/kimi-dsh/dist/paths.js +0 -27
  288. package/plugins/kimi-dsh/dist/plugin-data.js +0 -98
  289. package/plugins/kimi-dsh/dist/process-tree.js +0 -586
  290. package/plugins/kimi-dsh/dist/prompt-size.js +0 -18
  291. package/plugins/kimi-dsh/dist/render.js +0 -177
  292. package/plugins/kimi-dsh/dist/rescue-approval.js +0 -865
  293. package/plugins/kimi-dsh/dist/schemas/review-gate-output.js +0 -43
  294. package/plugins/kimi-dsh/dist/session-recovery.js +0 -202
  295. package/plugins/kimi-dsh/dist/session-title.js +0 -293
  296. package/plugins/kimi-dsh/dist/stream-json.js +0 -346
  297. package/plugins/kimi-dsh/dist/swarm-activation.js +0 -1197
  298. package/plugins/kimi-dsh/dist/swarm-policy.js +0 -73
  299. package/plugins/kimi-dsh/dist/swarm-recovery.js +0 -165
  300. package/plugins/kimi-dsh/dist/swarm-tool-policy.js +0 -146
  301. package/plugins/kimi-dsh/dist/types.js +0 -1
  302. package/plugins/kimi-dsh/dist/vendor/shell-quote/LICENSE +0 -24
  303. package/plugins/kimi-dsh/dist/vendor/shell-quote/index.js +0 -1
  304. package/plugins/kimi-dsh/dist/vendor/shell-quote/parse.js +0 -229
  305. package/plugins/kimi-dsh/dist/vendor/smol-toml/LICENSE +0 -24
  306. package/plugins/kimi-dsh/dist/vendor/smol-toml/date.js +0 -156
  307. package/plugins/kimi-dsh/dist/vendor/smol-toml/error.js +0 -67
  308. package/plugins/kimi-dsh/dist/vendor/smol-toml/extract.js +0 -293
  309. package/plugins/kimi-dsh/dist/vendor/smol-toml/parse.js +0 -164
  310. package/plugins/kimi-dsh/dist/vendor/smol-toml/primitive.js +0 -151
  311. package/plugins/kimi-dsh/dist/vendor/smol-toml/struct.js +0 -156
  312. package/plugins/kimi-dsh/dist/vendor/smol-toml/util.js +0 -57
  313. package/plugins/kimi-dsh/dist/version.js +0 -7
  314. package/plugins/kimi-dsh/package.json +0 -78
  315. package/plugins/kimi-dsh/scripts/companion.sh +0 -37
  316. package/plugins/kimi-dsh/scripts/review-gate-hook.sh +0 -32
  317. package/scripts/review-gate-hook.sh +0 -32
package/dist/dsh/index.js DELETED
@@ -1,169 +0,0 @@
1
- import { homedir } from "node:os";
2
- import path from "node:path";
3
- import { fileURLToPath } from "node:url";
4
- import { CommandDefinitionId } from "@deepseek-ai/dsh-commands/brand";
5
- import z from "@deepseek-ai/schemastery";
6
- import { NO_START_CAPABILITIES, } from "@deepseek-ai/dsh-subagent";
7
- import { DSH_COMPANION_OPERATIONS, runCompanionCommand, startCompanionRun, } from "./companion.js";
8
- import { parseDurationMs } from "../parsing.js";
9
- export const name = "kimi-plugin-cc";
10
- export const inject = ["subagents", "subprocess"];
11
- export const DSH_TOOL_GUIDANCE = [
12
- "Kimi delegation tools have different write boundaries:",
13
- "kimi_ask, kimi_review, and kimi_challenge are read-only; kimi_swarm is a read-only parallel review.",
14
- "kimi_rescue and kimi_pursue can edit the selected workspace; kimi_pursue continues toward a bounded goal.",
15
- "kimi_swarm_write edits a temporary worktree and returns a patch without applying it.",
16
- ].join(" ");
17
- const DEFAULT_DISPOSE_GRACE_MS = 6_000;
18
- const DEFAULT_MAX_OUTPUT_BYTES = 16 * 1024 * 1024;
19
- const MAX_TIMER_DELAY_MS = 2_147_483_647;
20
- const COMPANION_PATH = fileURLToPath(new URL("../../dist/companion.js", import.meta.url));
21
- export const Config = z.object({
22
- dataRoot: z.string().min(1),
23
- env: z.dict(z.string()).default({}),
24
- disposeGraceMs: z.number().default(DEFAULT_DISPOSE_GRACE_MS),
25
- maxOutputBytes: z.number().default(DEFAULT_MAX_OUTPUT_BYTES),
26
- model: z.string().min(1),
27
- thinkingEffort: z.string().min(1),
28
- budget: z.string().min(1),
29
- reviewBase: z.string().min(1),
30
- });
31
- export function defaultDshDataRoot(env = process.env) {
32
- const explicit = env.KIMI_PLUGIN_CC_DATA;
33
- if (explicit !== undefined) {
34
- if (!path.isAbsolute(explicit)) {
35
- throw new Error("kimi-plugin-cc: KIMI_PLUGIN_CC_DATA must be absolute");
36
- }
37
- return path.normalize(explicit);
38
- }
39
- const dshHome = env.DSH_HOME ?? path.join(env.HOME || homedir(), ".dsh");
40
- if (!path.isAbsolute(dshHome)) {
41
- throw new Error("kimi-plugin-cc: DSH_HOME must be absolute");
42
- }
43
- return path.join(dshHome, "plugin-data", "kimi-plugin-cc");
44
- }
45
- function resolveConfig(config) {
46
- const resolved = {
47
- dataRoot: config.dataRoot ?? defaultDshDataRoot(),
48
- env: config.env ?? {},
49
- disposeGraceMs: config.disposeGraceMs ?? DEFAULT_DISPOSE_GRACE_MS,
50
- maxOutputBytes: config.maxOutputBytes ?? DEFAULT_MAX_OUTPUT_BYTES,
51
- model: config.model,
52
- thinkingEffort: config.thinkingEffort,
53
- budget: config.budget,
54
- reviewBase: config.reviewBase,
55
- };
56
- if (!path.isAbsolute(resolved.dataRoot)) {
57
- throw new Error("kimi-plugin-cc: dataRoot must be absolute");
58
- }
59
- if (!Number.isFinite(resolved.disposeGraceMs) || resolved.disposeGraceMs < DEFAULT_DISPOSE_GRACE_MS || resolved.disposeGraceMs > MAX_TIMER_DELAY_MS) {
60
- throw new Error(`kimi-plugin-cc: disposeGraceMs must be at least ${DEFAULT_DISPOSE_GRACE_MS} and no greater than ${MAX_TIMER_DELAY_MS}`);
61
- }
62
- if (!Number.isSafeInteger(resolved.maxOutputBytes) || resolved.maxOutputBytes <= 0) {
63
- throw new Error("kimi-plugin-cc: maxOutputBytes must be a positive safe integer");
64
- }
65
- for (const [field, value] of [["model", resolved.model], ["thinkingEffort", resolved.thinkingEffort], ["reviewBase", resolved.reviewBase]]) {
66
- if (value?.startsWith("-"))
67
- throw new Error(`kimi-plugin-cc: ${field} must not start with '-'`);
68
- }
69
- if (resolved.budget !== undefined)
70
- parseDurationMs(resolved.budget, "--budget", "dsh.config", "safety");
71
- return resolved;
72
- }
73
- class KimiCompanionProvider {
74
- name;
75
- operation;
76
- spec;
77
- capabilities = NO_START_CAPABILITIES;
78
- inheritsParentContext = false;
79
- constructor(name, operation, spec) {
80
- this.name = name;
81
- this.operation = operation;
82
- this.spec = spec;
83
- }
84
- start(request) {
85
- return startCompanionRun(request, this.operation, this.spec);
86
- }
87
- }
88
- function commandArguments(rawInput) {
89
- const trimmed = rawInput.trim();
90
- return trimmed.length === 0 ? [] : trimmed.split(/\s+/);
91
- }
92
- function commandText(result) {
93
- return [result.stdout.trimEnd(), result.stderr.trimEnd()]
94
- .filter((text) => text.length > 0)
95
- .join("\n");
96
- }
97
- export function apply(ctx, config) {
98
- const resolved = resolveConfig(config);
99
- const spec = {
100
- companionPath: COMPANION_PATH,
101
- dataRoot: resolved.dataRoot,
102
- env: resolved.env,
103
- disposeGraceMs: resolved.disposeGraceMs,
104
- maxOutputBytes: resolved.maxOutputBytes,
105
- model: resolved.model,
106
- thinkingEffort: resolved.thinkingEffort,
107
- budget: resolved.budget,
108
- reviewBase: resolved.reviewBase,
109
- spawn: (spawnSpec) => ctx.subprocess.spawn(spawnSpec),
110
- };
111
- for (const operation of DSH_COMPANION_OPERATIONS) {
112
- ctx.subagents.registerProvider(new KimiCompanionProvider(`kimi-${operation}`, operation, spec));
113
- }
114
- ctx.inject(["systemPrompt"], (promptCtx) => {
115
- promptCtx.systemPrompt.section({
116
- name: "kimi-plugin-cc:tool-boundaries",
117
- order: promptCtx.systemPrompt.getSectionOrder("TOOL_SUBAGENT"),
118
- text: () => DSH_TOOL_GUIDANCE,
119
- });
120
- });
121
- ctx.inject(["commands"], (commandCtx) => {
122
- const execute = async (invocation, argv) => {
123
- const directories = commandCtx.get("workingDirectory");
124
- if (directories === undefined) {
125
- return { kind: "error", text: "Kimi commands require the DSH working-directory service." };
126
- }
127
- const cwd = await directories.ensure(invocation.agent, invocation.signal);
128
- const result = await runCompanionCommand(argv, cwd, spec, invocation.signal);
129
- const text = commandText(result);
130
- if (result.truncated) {
131
- return { kind: "error", text: `${text}\nKimi command output exceeded the configured byte limit.`.trim() };
132
- }
133
- if (result.exitCode !== 0) {
134
- return {
135
- kind: "error",
136
- text: `${text}\nKimi command failed (exit code: ${result.exitCode ?? "none"}; signal: ${result.signal ?? "none"}).`.trim(),
137
- };
138
- }
139
- return { kind: "success", text: text.length > 0 ? text : "Kimi command completed." };
140
- };
141
- commandCtx.commands.register({
142
- definitionId: CommandDefinitionId("kimi-plugin-cc/dsh/setup"),
143
- name: "kimi-setup",
144
- description: "Install, check, or remove the DSH-owned Kimi PreToolUse hook; list configured models",
145
- input: { hint: "[--check|--uninstall|--models [--json]]" },
146
- recordInput: false,
147
- handler: (invocation) => {
148
- const args = commandArguments(invocation.rawInput);
149
- const valid = args.length === 0
150
- || (args.length === 1 && ["--check", "--uninstall", "--models"].includes(args[0]))
151
- || (args.length === 2 && args[0] === "--models" && args[1] === "--json");
152
- if (!valid) {
153
- return { kind: "error", text: "Usage: /kimi-setup [--check|--uninstall|--models [--json]]" };
154
- }
155
- return execute(invocation, ["setup", ...args]);
156
- },
157
- });
158
- for (const command of ["status", "result", "cancel"]) {
159
- commandCtx.commands.register({
160
- definitionId: CommandDefinitionId(`kimi-plugin-cc/dsh/${command}`),
161
- name: `kimi-${command}`,
162
- description: `${command === "cancel" ? "Cancel" : command === "status" ? "Inspect" : "Return"} a companion Kimi job`,
163
- input: { hint: "[job-id]" },
164
- recordInput: false,
165
- handler: (invocation) => execute(invocation, [command, ...commandArguments(invocation.rawInput)]),
166
- });
167
- }
168
- });
169
- }
@@ -1,19 +0,0 @@
1
- import { readFileSync } from "node:fs";
2
- import { runReviewGateStopHook } from "../commands/review-gate.js";
3
- import { formatError } from "../errors.js";
4
- async function main() {
5
- const raw = readFileSync(0, "utf8");
6
- const input = JSON.parse(raw);
7
- const context = {
8
- cwd: process.env.KIMI_PLUGIN_CC_WORKSPACE_CWD || process.cwd(),
9
- env: process.env,
10
- stdout: process.stdout,
11
- stderr: process.stderr,
12
- };
13
- const output = await runReviewGateStopHook(input, context);
14
- process.stdout.write(`${JSON.stringify(output)}\n`);
15
- }
16
- main().catch((error) => {
17
- process.stderr.write(`${formatError(error)}\n`);
18
- process.exitCode = 1;
19
- });
@@ -1,43 +0,0 @@
1
- import { RuntimeError } from "../errors.js";
2
- const ALLOWED_DECISIONS = new Set(["ALLOW", "BLOCK"]);
3
- const ALLOWED_SEVERITIES = new Set(["low", "medium", "high"]);
4
- const ALLOWED_CONFIDENCE = new Set(["low", "medium", "high"]);
5
- export function parseReviewGateOutput(text) {
6
- let parsed;
7
- try {
8
- parsed = JSON.parse(text);
9
- }
10
- catch (error) {
11
- throw new RuntimeError("REVIEW_GATE_PARSE_FAILED", `Review gate output is not valid JSON: ${error.message}`, "review_gate.parse", { cause: error });
12
- }
13
- if (!isObject(parsed)) {
14
- throw new RuntimeError("REVIEW_GATE_PARSE_FAILED", "Review gate output must be a JSON object.", "review_gate.parse");
15
- }
16
- const { decision, confidence, summary, issues } = parsed;
17
- if (!ALLOWED_DECISIONS.has(String(decision)) ||
18
- !ALLOWED_CONFIDENCE.has(String(confidence)) ||
19
- typeof summary !== "string" ||
20
- !Array.isArray(issues)) {
21
- throw new RuntimeError("REVIEW_GATE_PARSE_FAILED", "Review gate output must contain decision, confidence, summary, and issues.", "review_gate.parse");
22
- }
23
- return {
24
- decision: decision,
25
- confidence: confidence,
26
- summary,
27
- issues: issues.map((issue, index) => normalizeIssue(issue, index)),
28
- };
29
- }
30
- function normalizeIssue(issue, index) {
31
- if (!isObject(issue)) {
32
- throw new RuntimeError("REVIEW_GATE_PARSE_FAILED", `Review gate issue ${index + 1} must be an object.`, "review_gate.parse");
33
- }
34
- if (typeof issue.title !== "string" ||
35
- typeof issue.body !== "string" ||
36
- !ALLOWED_SEVERITIES.has(String(issue.severity))) {
37
- throw new RuntimeError("REVIEW_GATE_PARSE_FAILED", `Review gate issue ${index + 1} is missing a required field.`, "review_gate.parse");
38
- }
39
- return issue;
40
- }
41
- function isObject(value) {
42
- return typeof value === "object" && value !== null && !Array.isArray(value);
43
- }
@@ -1,228 +0,0 @@
1
- # Registry releases
2
-
3
- The npm package `kimi-plugin-cc` ships the Claude plugin at its root and the
4
- self-contained Codex and DSH plugins under `plugins/`. DSH users install that
5
- same root package with `dsh plugin --profile <name> add kimi-plugin-cc`.
6
- GitHub marketplaces remain available. The package has no install scripts and
7
- no separate CLI.
8
-
9
- ## Publishing status
10
-
11
- Plugin **2.7.3** has complete operation evidence for exact Kimi Code **2.7.3** with separate [certification evidence](upstream-2.7.3-certification.md). Source, exact-binary, deterministic, candidate and production operation gates pass, as do the **343-file** package/DSH and isolated consumer-security checks. The local full repository gate passes with 1,878 tests passed and 83 skipped. Release-commit CI, GitHub publication, npm OIDC and registry verification have not run. Certification and publication do not update installed hosts or operator pins.
12
-
13
- Plugin **2.7.2** certifies exact Kimi Code **2.7.2** for all eight operations with separate [certification evidence](upstream-2.7.2-certification.md). Release commit `e2bba0e2d4e1745e4155eb5c6ddf3f4dabaffb66` passed the frozen-install full gate (**1,848 passes / 24,260 assertions**), **342-file** package/DSH and consumer-security gates, plus [release CI 44799772434](https://github.com/linxule/kimi-plugin-cc/actions/runs/44799772434). The immutable [v2.7.2 release](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.7.2) is published. Initial OIDC run `44801159950` passed build but npm rejected publication with `TLOG_CREATE_ENTRY_ERROR`; it published nothing. The documented manual-dispatch recovery [run 44803040496](https://github.com/linxule/kimi-plugin-cc/actions/runs/44803040496) validated the same tag and published npm `latest` 2.7.2 at `2026-11-20T19:44:23.172Z`. The 342-file registry tarball matches the successful Actions artifact and every release-tag file, with SHA-1 `c78a89fa5ea199c6605c7453ca50b2c23ee3cb3f`, SHA-256 `0a0bcba76513adac3448776d4f8df9ec73b60987edac0ca5e6535db428b91f33` and SHA-512 `2e7dfe8043c2c05447a28dbfc17c6124c6b08444efb864c5b5f5f3f586f338ff4b77d35e3b769168b570a32c08bec48e8f78aa6e11b958e9f22257cda29616f1`. SLSA provenance log index `4028226284` and publish attestation log index `4028244850` match the package subject, SHA-512, recovery run and release commit; their workflow ref is `refs/heads/main` because recovery used manual dispatch, while the package bytes independently match the immutable tag. A fresh registry installation has zero production advisories and no invalid or missing signatures; isolated Claude Code, Codex and DSH setup/checks and all three capability maps pass. The post-publication Discover timestamp is `1795203863`, recording actual npm publication. Publication does not update installed hosts or operator pins.
14
-
15
- Plugin **2.6.3** certifies exact Kimi Code **2.6.3** for all eight operations under the no-plan and bounded-swarm/direct-worker construction. Release commit `597210fe888e045c15577dbfc112188075bf1ac5` passed the exact-commit full gate (1,797 passes / 23,469 assertions), 30-test production matrix, 341-file package/DSH and consumer-security gates. [Release CI 44406363750](https://github.com/linxule/kimi-plugin-cc/actions/runs/44406363750) passed, and the immutable [v2.6.3 release](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.6.3) is published. [OIDC run 44407749059](https://github.com/linxule/kimi-plugin-cc/actions/runs/44407749059) published npm `latest` 2.6.3 at `2026-11-18T22:14:06.914Z`. The 341-file registry tarball matches the Actions artifact and every release-tag file, with SHA-1 `63047ceab5c0b84da362788609e6f644b56a3414`, SHA-256 `a64386f3cebf0f77d40f8d767f5533652f2fa91ba647b816876d8935bb2b1721` and SHA-512 `37f68e1e0f53fe658a9801418d748067eb84849be76e53988231e2b81efdac18cc4a9eea0496677e9f6af584a1e5709ca6aeba7a1198135d1b12910245017e90`. SLSA provenance log index `3979478928` and publish attestation log index `3979539697` match the package subject, tag, commit, run and tarball. A fresh registry installation has zero production advisories and no invalid or missing signatures; isolated Claude Code, Codex and DSH setup/checks and all three capability maps pass. The Discover timestamp is `1795040046`, recording actual npm publication. See the [2.6.3 certification record](./upstream-2.6.3-certification.md). Publication does not update installed hosts or operator pins.
16
-
17
- Plugin **2.6.2** certifies unmodified exact Kimi Code **2.6.2** for all eight operations. Parallel swarm uses bounded waves and a native timeout override; concurrency one uses a direct worker. Final runtime commit `b69a416d8588ed12239148ccc9f120e3dbfe0dcb` passed 1,767 repository tests with 23,008 assertions, 30 live production tests with 386 assertions, all 23 stock-runtime swarm controls, and 130 Linux controls with kernel threads visible. The 340-file package, all three compiled distributions, DSH host installation and isolated consumer security passed. Independent Codex and Fable reviews closed all findings. The first CI run exposed a Linux identity mismatch; its correction passed CI, and the final runtime also handles unrelated nonsignalable ancestry and reports uncertain cancellation cleanup. See the [certification record](./upstream-2.6.2-certification.md) for boundaries and evidence. [Release v2.6.2](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.6.2) is anchored at `0f78ade6840dc7eab27da0790c5163082b103e6d`. [Final CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/43610889478) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/43611675167) passed. The 340-file registry tarball has SHA-1 `6eecaf4803b8ebbed5f114c3b17e7f2b4f017fca` and SHA-256 `be9362451456278812c9678c208fde56357c47e147a39103ee11a610e9655f3d`, matches the validated workflow artifact byte-for-byte, and carries signed SLSA provenance (log index `3881457879`) and publish attestation (log index `3881517151`). A fresh registry npm installation matches all 340 release-tag files, has zero production advisories and no invalid or missing signatures, and passes isolated Claude Code, Codex and DSH setup/checks with the stock binary. All three installed distributions enforce exact 2.6.2 full-operation and 2.6.0 non-swarm-only certification. The Discover timestamp records npm publication at `2026-11-14T15:54:45.985Z`. Publication does not update installed hosts or operator pins.
18
-
19
- Plugin **2.5.9** certifies exact Kimi Code **2.6.2** for review, challenge, ask, rescue, review_gate and pursue only; both swarm modes refuse before model spawn, and exact 2.6.1 and 2.6.3 are excluded. The release-commit production matrix passed 23 tests with 171 assertions in 225.87 seconds, the definitive full gate passed 1,503 tests with 20,086 assertions in 433.07 seconds, and package validation passed 334 files with isolated consumer security. Codex and Claude both returned NO FINDINGS / APPROVE. `NATIVE_V2_CERTIFIED_VERSIONS` remains the all-operation export through 2.5.3, so automatic full-swarm pins do not silently select either narrowed 2.6.x release. [Release v2.5.9](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.9) is anchored at `6f9eaa6e145d62e7f35e5ff38d317bd7e3a673c5`. [Final CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/43585425445) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/43585933931) passed. The 334-file registry tarball has SHA-1 `2158551b73d3408af14e2061c29e40dc60622947` and SHA-256 `d5c43b95c708468393f357c353c180488ae83edb56cae93e840d08ee2b3dc520`, matches the validated workflow artifact byte-for-byte, and carries signed SLSA provenance (log index `3876002731`) and publish attestation (log index `3876057720`). A fresh registry npm installation has zero production advisories and no invalid or missing signatures; setup/check passes with the explicit non-swarm warning, and the installed runtime enforces the scoped refusals. The Discover timestamp records npm publication at `2026-11-14T10:43:34.167Z`. Publication does not update installed hosts or operator pins.
20
-
21
- Plugin **2.5.8** certifies exact Kimi Code **2.6.0** for review, challenge, ask, rescue, review_gate and pursue only; both swarm modes refuse before model spawn, and exact 2.6.1 is excluded. The narrowed production matrix passed 23 tests with 170 assertions, the definitive full gate passed 1,472 tests with 19,530 assertions in 402.26 seconds, and package validation passed 333 files with isolated consumer security. Codex and Claude both approved with no blocker or major findings. `NATIVE_V2_CERTIFIED_VERSIONS` remains the all-operation export through 2.5.3, so automatic full-swarm pins do not silently select non-swarm-only 2.6.0. [Release v2.5.8](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.8) is anchored at `887958d7de39cf388ebc3faaffd31cabe76c5a99`. [Release-commit CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/43452771909) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/43453807099) passed. The 333-file registry tarball has SHA-1 `65145489591e6873556f85a06506d0d276880441` and SHA-256 `6fc5f44aacafa92671f5aea8e2343e6323116f81d4456dee47181481050af5f4`, matches the validated workflow artifact byte-for-byte, and carries signed SLSA provenance (log index `3857088726`) and publish attestation (log index `3857133123`). A fresh registry npm installation has zero production advisories and no invalid or missing signatures; setup/check passes with the explicit non-swarm warning, and the installed runtime enforces the scoped refusals. The Discover timestamp records npm publication at `2026-11-13T15:41:45.145Z`. Publication does not update installed hosts or operator pins.
22
-
23
- Plugin **2.5.7** certifies exact Kimi Code **2.5.3** for all eight operations, alongside 2.5.0, 2.5.1 and 2.5.2; see the [2.5.3 certification record](./upstream-2.5.3-certification.md). Candidate and production matrices each passed 24 tests with 201 assertions and no skips. The corrected-tree full check passed 1,437 tests with 18,980 assertions in 396.30 seconds, package validation passed 332 files across all three distributions, and isolated consumer security passed. Codex returned APPROVE with no findings; Claude returned READY-TO-TAG with no blocker or major findings, and its two chronology corrections are included. Publication does not update installed hosts or operator pins. [Release v2.5.7](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.7) is anchored at `b203b6fd0db865935bf47241ee4ea8cf3931b9a5`. [Release-commit CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/43045729840) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/43046887763) passed. The 332-file registry tarball has SHA-1 `adfee8da730dc14349d26125bc5add44fe204aa5`, matches the validated workflow artifact byte-for-byte, and carries signed provenance (sigstore log index `3812668747`). A fresh registry npm installation has zero production advisories; isolated Claude Code, Codex, and DSH setup/checks and unsupported-version refusal pass, and all compiled runtime mirrors match the release tag. The Discover timestamp records npm publication at `2026-11-11T15:25:33.059Z`.
24
-
25
- Plugin **2.5.6** certifies exact Kimi Code **2.5.2** for all eight operations, alongside 2.5.0 and 2.5.1; see the [2.5.2 certification record](./upstream-2.5.2-certification.md). Candidate and production matrices each passed 24 tests with 167 assertions and no skips. The full check passed 1,429 tests with 18,662 assertions, package validation passed 331 files across all three distributions, and isolated consumer security passed. Publication does not update installed hosts or operator pins. [Release v2.5.6](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.6) is anchored at `a9585a1cd4177b17e422b63305d390aa1f1b9c81`. [Release-commit CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/42376507143) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/42381804227) passed; the first three publication attempts failed with `TLOG_CREATE_ENTRY_ERROR` during a Sigstore Rekor database upgrade and published nothing, and attempt 4 succeeded unchanged. The 331-file registry tarball has SHA-1 `32c712a00186c1b0a334bf39d03cc397a2012b05`, matches the validated workflow artifact byte-for-byte, and carries provenance (sigstore log index `3739983164`). A fresh registry npm installation has zero production advisories and all compiled runtime mirrors match. The Discover timestamp records npm publication at `2026-11-07T14:56:36.462Z`.
26
-
27
- Plugin **2.5.5** keeps every host's managed hook block contiguous in the shared `~/.kimi-code/config.toml`, so a comment-preserving third-party writer that regroups tables cannot strip a block's BEGIN marker, and scopes orphan-marker verification per host: another host's orphan warns, own and legacy orphans still fail closed, and the remedy is plain setup. Exact CLI certification remains 2.5.0 and 2.5.1; publication does not update installed hosts or operator pins. The [v2.5.5 release](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.5) is anchored at `ba0bb8f293839d8658f9486da2feb32908eab4d4`. [Release-commit CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/42372824792) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/42373304448) passed. The 330-file registry tarball has SHA-1 `b035ab57aa7902538c13bee384b2dead48c2a57c`, matches the validated workflow artifact byte-for-byte, and carries provenance (sigstore log index `3738319436`). A fresh registry npm installation has zero production advisories and all compiled runtime mirrors match. The Discover timestamp records npm publication at `2026-11-07T12:44:10.489Z`.
28
-
29
- Plugin **2.5.4** restores the original platform-neutral bounded-close settlement for swarm agent-state verification after follow-up CI showed that `wasClean` can both accept an early close and reject a valid one. The immutable 2.5.3 artifact contains that trial condition; 2.5.4 carries its revert with deterministic no-close-event coverage and a protocol-correct mock handshake, without changing exact CLI certification through 2.5.1. Activation validation passed 71 tests with 244 assertions, the full repository check passed 1,412 tests with 18,282 assertions, and 330-file package and consumer-security validation passed. [Release v2.5.4](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.4) is anchored at `836da262ae303f51c9049b2711c9d957d7692ed2`. [Release-commit CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/42249517714) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/42251575637) passed. The 330-file registry tarball has SHA-1 `b9e23fe6b1ceb54fdc5ee26447da050653526b7f`, matches the validated workflow artifact byte-for-byte, and carries provenance (sigstore log index `3721306580`). A fresh registry npm installation has zero production advisories; isolated Claude Code, Codex, and DSH setup/checks pass, and all compiled runtime mirrors match. The Discover timestamp records npm publication at `2026-11-06T16:29:28.637Z`.
30
-
31
- Plugin **2.5.3** certifies exact Kimi Code **2.5.0 and 2.5.1** for all eight operations, adding local-execution/workspace-trust closures and authenticated WebSocket swarm activation with deterministic close-timeout coverage while preserving the no-plan construction and legacy-v1 0.41.x boundary. See the [2.5.0](./upstream-2.5.0-certification.md) and [2.5.1](./upstream-2.5.1-certification.md) certification records. The 2.5.1 source scan passed 18 tests with 153 assertions; candidate and production matrices each passed 24 tests with 167 assertions and no skips. The full check passed 1,412 tests with 18,282 assertions, package validation passed 330 files across all three distributions, isolated consumer security passed, and independent read-only `claude -p` review returned APPROVE. [Release v2.5.3](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.3) is anchored at `11d862a3fd9dae006c6888bfa221ea73101fb171`. [Final release-commit CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/42237176295) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/42238045923) passed. The 330-file registry tarball has SHA-1 `6aa5ab4a2c862347e14354698b2ba6f7f8b1defd`, matches the validated workflow artifact byte-for-byte, and carries provenance (sigstore log index `3719667960`). A fresh registry npm installation has zero production advisories; isolated Claude Code, Codex, and DSH setup/checks pass, and all compiled runtime mirrors match. The Discover timestamp records npm publication at `2026-11-06T15:01:13.468Z`. Follow-up CI showed that `wasClean` is inconsistent and has been reverted on `main`; the published 2.5.3 artifact contains the trial condition. [Plugin 2.5.4](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.4) carries the correction.
32
-
33
- Plugin **2.5.2** hardens setup recovery and DSH dependency ownership. Its real Kimi Code **2.4.1** smoke passed **24 tests and 167 assertions with no skips**; the exact-source audit passed **16 tests and 97 assertions**. Normal npm installation keeps DSH host services optional. DSH use requires explicitly patched host/profile dependencies and both installation audits described below. Exact CLI certification remains unchanged. [Release v2.5.2](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.2) is anchored at `8b303bb6e49c581ad96c72bd031e8fd1643c9121`. [Release-commit CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/41361753223) and [npm publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/41362262009) passed. The 328-file registry tarball has SHA-1 `e620040dd35986a6929be7ad677642729a3126e7`, matches the validated workflow artifact byte-for-byte, and carries provenance (sigstore log index `3636981979`). A fresh registry npm installation has zero production advisories; isolated Claude Code, Codex, and DSH setup/checks pass, and all compiled runtime mirrors match. The Discover timestamp records npm publication at `2026-11-01T23:35:04.270Z`.
34
-
35
- Plugin **2.5.1** adds DeepSeek Harness through the existing root npm package and its established OIDC workflow. [Release v2.5.1](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.1) is anchored at `afe68ee2f0e7744e1fc97eb0f1e4007585d969d0`; its [CI check](https://github.com/linxule/kimi-plugin-cc/actions/runs/41335810767) and [release-event publishing run](https://github.com/linxule/kimi-plugin-cc/actions/runs/41336273042) passed. The registry tarball has SHA-1 `f0e42febcb14082be6a654b9b0830885242fd92a`, contains 328 files, matches the CI artifact, and carries signed provenance (sigstore log index `3635166158`). A fresh registry installation into an isolated DSH profile composed all seven providers and booted the Web host. DSH users install with `dsh plugin --profile <name> add kimi-plugin-cc`; no second npm package or Trusted Publishing binding is required.
36
-
37
- Plugin **2.4.5** certifies exact CLI **2.4.1** for all eight operations with host-preactivated swarm sessions. [Release v2.4.5](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.4.5) is anchored at `de8c195c2986443a088b674717133b164d2e4ef2`; its [CI check](https://github.com/linxule/kimi-plugin-cc/actions/runs/41226096281) and [release-event publishing run](https://github.com/linxule/kimi-plugin-cc/actions/runs/41226438326) passed. The registry tarball has SHA-1 `39f97a6de4b26ad51ac77305054682fcd5cd0164`, contains 233 files, and matches the CI artifact byte-for-byte. Fresh registry installs passed setup/check and unsupported-version refusal for both Claude Code and Codex, and both compiled mirrors are byte-identical to the release checkout. See the [certification record](./upstream-2.4.1-certification.md) and structured verification at `.claude/kimi-code-research/release-2.4.5/registry-verification.json`.
38
-
39
- Plugin **2.4.2** adds durable interrupted-swarm recovery and Windows spawn diagnostics.
40
- Exact CLI certification remains unchanged through **2.3.2**; this is not a new
41
- Windows-support or large-prompt-transport claim. See the [release](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.4.2),
42
- [recovery guide](./swarm-recovery.md), and [Windows community controls](./windows-validation.md).
43
- Publication uses the same validated-tarball OIDC workflow below; release execution
44
- and registry verification are recorded in the release notes.
45
-
46
- Plugin **2.4.1** certifies exact CLI **2.3.2** for all eight operations with host-preactivated swarm sessions. [Release v2.4.1](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.4.1) is anchored at `06a0a47f2b34dffb8dd71e7ce93646212e74ed19`; its [CI check](https://github.com/linxule/kimi-plugin-cc/actions/runs/40236704464) and [release-event publishing run](https://github.com/linxule/kimi-plugin-cc/actions/runs/40237085945) passed. The registry tarball has SHA-1 `77fe6daaa0f23750cc9b5d857bdbdd5107a7d4ce`, contains 224 files, and matches the CI artifact byte-for-byte. Fresh installs from the CI artifact and npm registry both passed isolated setup/check for Claude Code and Codex. The earlier CI attempt 40231073897 exposed an intermittent root-exit cleanup issue; the root-continuity fix and independent review landed before tagging. Final closeout CI run 40238295139 passed.
47
-
48
- Plugin **2.4.0** preserves exact CLI **2.3.1** certification and adds the shared MCP transport. [Release v2.4.0](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.4.0) is anchored at `9232d1ec98465454d8d9328e439d3f31bfc53e04`; its [CI check](https://github.com/linxule/kimi-plugin-cc/actions/runs/40040084944) and [release-event publishing run](https://github.com/linxule/kimi-plugin-cc/actions/runs/40040442610) passed. The registry tarball has SHA-1 `8243616529aa9f03f26bf4fef68c36d90e2304ae`, contains 222 files, and matches the CI artifact byte-for-byte. A fresh npm install passed isolated setup/check for both hosts.
49
- The previous verified publication was **2.3.1**:
50
- [Release v2.3.1](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.3.1) is anchored at `20011ff0554c611afe0a426b30a68c2473175568`; its [CI check](https://github.com/linxule/kimi-plugin-cc/actions/runs/39977037533) and [release-event publishing run](https://github.com/linxule/kimi-plugin-cc/actions/runs/39977818482) passed. The registry tarball has SHA-1 `e309448480a2ce841b49840cdaeeed37acc6c50b`, contains 196 files, and matches the CI artifact byte-for-byte. See the [certification evidence](./upstream-2.3.1-certification.md).
51
- Earlier verified publication was **2.2.2**:
52
- [Release v2.2.2](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.2.2)
53
- is anchored at `256e78ff7cbf302fb19e8e523d8e3f943f7cb366`; its
54
- [CI check](https://github.com/linxule/kimi-plugin-cc/actions/runs/39755724024)
55
- and [release-event publishing run](https://github.com/linxule/kimi-plugin-cc/actions/runs/39755982507)
56
- passed. npm accepted the OIDC publication with signed provenance (sigstore log
57
- index `3383319298`) and tarball shasum
58
- `31aa9752bf05dc4e9c818d5eef5f99e604968613`. The registry tarball matches the
59
- validated Actions artifact byte-for-byte. A fresh npm install passed isolated
60
- setup/check for both hosts, and both runtime mirrors match the release checkout.
61
- Metadata and tarball availability propagated separately; the tarball endpoint
62
- briefly served a cached 404 (300-second TTL). No publication retry was needed.
63
- Publication does not update installed
64
- hosts, re-pin their hooks, or change the operator's CLI binary.
65
-
66
- ### Previous publications
67
-
68
- As of October 15, 2026, [2.2.1 is live on npm](https://www.npmjs.com/package/kimi-plugin-cc/v/2.2.1), published by
69
- the release-event run of `publish.yml` (run 38720071707) through GitHub Actions OIDC with a signed
70
- provenance statement (sigstore log index 3263398504; tarball shasum
71
- `03907c66d440155763a860ab52b5107c0233938b`, registry propagation took a few minutes this time).
72
- 2.2.0 (same day, run 38658918855, log index 3256863983) was the first release where the tag-triggered
73
- path worked end to end without a manual dispatch; 2.0.8 (same day, run 38650044033) was the first
74
- OIDC publication; 2.0.7 (September 26) was the hand-published bootstrap.
75
- The first upload used the validated GitHub Actions artifact and interactive npm
76
- authentication. Its public tarball matched that artifact byte-for-byte, and a
77
- fresh registry install passed isolated setup/check for both hosts.
78
-
79
- The trusted publisher is configured for `linxule/kimi-plugin-cc`, workflow
80
- `publish.yml`, environment `npm`, with direct publishing allowed.
81
- `NPM_TRUSTED_PUBLISHING=true` is enabled in GitHub Actions. Future GitHub releases
82
- use short-lived OIDC credentials, without a stored npm token or interactive 2FA.
83
- OIDC publication is established; never republish an existing version.
84
-
85
- **2026-10-15 status.** The `v2.0.8` release triggered the first OIDC attempt. It
86
- failed twice on the publish step for reasons unrelated to the package: current
87
- npm parses a bare `package/<file>.tgz` argument as the GitHub shorthand
88
- `github:package/<file>` (fixed in `publish.yml`, which now locates the tarball
89
- and publishes an anchored `./` path), and the manual re-dispatch then received
90
- `404 Not Found - PUT https://registry.npmjs.org/kimi-plugin-cc`, the response
91
- npm gives when the OIDC token exchange is refused. The GitHub Actions side
92
- checks out (environment `npm` exists with no protection rules;
93
- `NPM_TRUSTED_PUBLISHING=true`), so the cause was on npmjs.com: the trusted-publisher binding created on
94
- September 26 had **expired unused** (npm expires a binding that never publishes).
95
- Deleting it and creating a new one (GitHub Actions, `linxule` / `kimi-plugin-cc` /
96
- `publish.yml` / environment `npm`, with *Allow npm publish* ticked) and
97
- dispatching `publish.yml` with `tag=v2.0.8` published 2.0.8 with provenance. A new
98
- binding shows *Pending validation* until its first publish, which must happen
99
- within about a day; publish promptly after creating one, and expect to recreate it
100
- after a long gap between releases. Note that a `release` event runs the workflow
101
- file at the tag, so fixes to `publish.yml` reach an existing tag only through
102
- `workflow_dispatch`.
103
-
104
- ## Validation
105
-
106
- Use the repository's normal version bump and generated-surface procedure in
107
- AGENTS.md. Keep plugin and npm versions identical, and update
108
- `DSH_PUBLISH_TIMESTAMP` with the actual publication time so the generated DSH
109
- Discover index stays current. Certification for new Kimi Code versions still
110
- requires the source audit and real-binary controls; adding a registry channel
111
- does not certify another CLI version.
112
-
113
- ```sh
114
- bun install --frozen-lockfile
115
- bun run build
116
- bun run generate:surfaces
117
- # Review and stage generated distributions before the drift gate.
118
- bun run check
119
- bun run check:consumer-security
120
- node scripts/check-package.mjs .tmp/npm
121
- node scripts/check-dsh-package.mjs .tmp/dsh-npm
122
- ```
123
-
124
- The root package check inspects the actual tarball, rejects sync-conflict copies in
125
- any path component, verifies runtime copies and vendored licenses, and
126
- installs/checks the safety hook in isolated homes for all three hosts. It also
127
- exercises unsupported-version refusal using a fake CLI and modern MCP discovery
128
- plus legacy initialization on the extracted compiled distributions. The DSH
129
- check installs that same root tarball into an isolated DSH home, verifies all
130
- seven tools, and boots the Web host. Neither check invokes a model or reads the
131
- maintainer's Kimi configuration.
132
-
133
- The consumer-security gate installs the packed package into a fresh npm project
134
- and audits the resolved production dependency graph. DSH services and its tool
135
- adapter are optional peers supplied by the DSH host; ordinary npm installation
136
- for Claude Code or Codex does not install the harness. Optional peers still
137
- carry compatibility ranges when present. The gate runs in CI and release
138
- validation and refuses high/critical advisories, failed audits, and incomplete
139
- reports. The checkout's overrides do not constrain downstream npm resolution.
140
-
141
- ### Patched DSH host and profiles
142
-
143
- DSH 0.2.1-rc.5 and 0.2.2-alpha.2 still pin vulnerable `zod` and `undici`
144
- versions. See the [upstream dependency report](https://github.com/deepseek-ai/deepseek-harness/discussions/10847).
145
- Use a patched DSH host installation with `zod >=4.6.6` and `undici >=8.12.2`.
146
- This is an explicit installation requirement; the plugin does not rewrite the
147
- host or profiles automatically. A profile override alone does not patch copies
148
- inside a separately installed DSH CLI.
149
-
150
- For example, create a dedicated npm host project (Node >=24.9), then use its
151
- DSH binary for plugin installation and launch:
152
-
153
- ```sh
154
- mkdir -p ~/.local/share/kimi-dsh-host
155
- cd ~/.local/share/kimi-dsh-host
156
- npm init -y
157
- npm pkg set 'overrides.zod=^4.6.6' 'overrides.undici=^8.12.2'
158
- npm install @deepseek-ai/dsh@0.2.1-rc.5
159
- npm audit --omit=dev --audit-level=high
160
- ./node_modules/.bin/dsh plugin --profile web add kimi-plugin-cc
161
- ./node_modules/.bin/dsh plugin --profile web audit --prod --audit-level high
162
- ./node_modules/.bin/dsh web --no-open
163
- ```
164
-
165
- The host project is separate from `$DSH_HOME/profiles/web`. Keep using that
166
- project's DSH binary so the audited host is the one that runs. The commands
167
- above install the published plugin; use a validated local tarball when testing
168
- an unpublished change.
169
-
170
- If an existing profile separately installs DSH packages, its owner must also
171
- patch and audit that profile:
172
-
173
- ```sh
174
- dsh plugin --profile web pkg set 'pnpm.overrides.zod=^4.6.6' 'pnpm.overrides.undici=^8.12.2'
175
- dsh plugin --profile web install
176
- dsh plugin --profile web audit --prod --audit-level high
177
- ```
178
-
179
- Replace `web` with the intended profile, and run these commands with the patched
180
- host binary. Overrides affect dependency resolution and require application
181
- checks. The DSH package gate creates a fresh host with the declared overrides,
182
- audits both that host and the installed profile for high/critical advisories,
183
- then verifies all seven tool compositions and Web boot using that same host.
184
- These checks do not claim that every moderate/low advisory is fixed or that
185
- upstream has published a patched release.
186
-
187
- ## First publication (completed bootstrap reference)
188
-
189
- The package must first exist on npm before its package settings can be configured.
190
- After the release commit passes CI, create its immutable version tag and GitHub
191
- release using the normal AGENTS.md procedure. The workflow builds and uploads a
192
- validated tarball; publishing stays disabled until the repository variable
193
- `NPM_TRUSTED_PUBLISHING` is `true`. Download the `npm-package` workflow artifact,
194
- authenticate to npm interactively, then publish that validated artifact:
195
-
196
- ```sh
197
- npm login
198
- npm publish kimi-plugin-cc-X.Y.Z.tgz --access public
199
- ```
200
-
201
- Do not publish a placeholder or reuse a version. Inspect registry metadata and
202
- install the published version into a temporary directory before announcing it.
203
-
204
- Configure npm Trusted Publishing for this package:
205
-
206
- - GitHub owner: `linxule`
207
- - Repository: `kimi-plugin-cc`
208
- - Workflow: `publish.yml`
209
- - Environment: `npm`
210
- - Allow direct publishing for this release workflow
211
-
212
- After configuring trust, set the GitHub Actions repository variable
213
- `NPM_TRUSTED_PUBLISHING=true` to enable future publications.
214
-
215
- No npm token is stored in GitHub. The npm CLI is used only for registry
216
- operations; Bun remains the development toolchain.
217
-
218
- ## Subsequent releases
219
-
220
- Push the reviewed release commit, wait for CI, tag it, and publish its GitHub
221
- release. `.github/workflows/publish.yml` runs on `release.published`; it checks
222
- the tag against `package.json`, runs the full gate and both package smokes, then
223
- publishes the root tarball through OIDC with provenance. The DSH smoke installs
224
- that same tarball directly into an isolated DSH profile, so no second npm
225
- package or Trusted Publishing binding is needed. The publish job has no source
226
- checkout or build scripts. A manual dispatch with an existing release tag is
227
- available for recovery after a verified publication failure. Check npm before
228
- retrying; released versions are immutable.
@@ -1,54 +0,0 @@
1
- # Kimi Code 2.4.1 certification evidence — 2026-10-31
2
-
3
- ## Status and exact source
4
-
5
- **Exact CLI 2.4.1 is certified for all eight operations by plugin 2.4.5.** The exact-source gate, non-vacuous plan and swarm controls, expanded candidate and production matrices, literal standard `bun run check`, final edited-byte package, and independent Codex/Kimi reviews all passed. CI, commit, push, tag, publication, installed-host rollout, and operator CLI pin changes are not performed in this certification slice.
6
-
7
- Candidate: `@moonshot-ai/kimi-code@2.4.1`, release commit `2c73f3f50af4fa7f2540ca0d2e33b07a1408e3a7`, compared with certified 2.4.0 (`f26e4d91ef8d5d233f6c20b42a150f96924d4f5e`). npm published the candidate at 2026-10-30T09:55:26.630Z; its npm tarball SHA-1 is `660debae9ff145564c670fcc32444aed5cc7ab79`. A temporary isolated npm installation and its executable both report 2.4.1. The clean exact source checkout is `.claude/kimi-code-research/kimi-code-2.4.1-audit`.
8
-
9
- ## Source review
10
-
11
- Codex's 2026-10-31 monitor supplied seven scoped diffs as leads. The main-thread certification review also covered every changed production TypeScript file, the complete release delta, Read's token helpers, profile composition, goal injection, DI and OS backends, wire reload/migrations, KAP activation dependencies, alternate final-allow spellings, and indirect plan entry. The synthesis is retained at `.claude/kimi-code-research/reports/2026-10-31-2.4.1-source-synthesis.md`.
12
-
13
- - The exact-tag scan passed **15 tests and 96 assertions**. All 15 load-bearing files are byte-identical to 2.4.0. The plan-file guard remains the sole production final allow; executor/subscriber order, hook schema/aggregation, eager child hooks, Write/Edit `path`, Bash `command`/`cwd`, stream shapes, CLI argv, and AgentSwarm behavior remain compatible.
14
- - Plan changes are reminder/profile prompts only. `EnterPlanMode` remains removed, fresh print still cancels configured default plan, and resumed plan sessions remain possible. The plugin retains its config preflight, Enter/ExitPlanMode deny policy, and every-agent journal-taint refusal.
15
- - Goal injection adds full/sparse reminder selection using context history, not another goal tool, executor route, terminal exit, or budget mechanism. Read lowers the default maximum to 100,000 characters and adds estimated-token-aware pagination. Write/Edit success notes and Bash rendered guidance do not change their input schemas or execution gates.
16
- - DI scope creation, OS backends, wire reload/migrations, KAP source, and the CLI/web activation surfaces are unchanged. No early session announcement or tool execution outcome was added; existing recovery and detection ambiguity remain.
17
-
18
- ## Exact-binary controls
19
-
20
- Controls used a task-authorized dedicated Agent Key in process memory/environment and empty isolated homes, except the forced removed-tool control, which used a loopback scripted provider and a dummy key. No personal config or OAuth store was read, copied, or symlinked. All live controls ran sequentially. The plan and removed-tool controls install a custom deny-all control hook; the plugin's managed hook is separately installed and proved by the operation smoke. Raw evidence is under `.claude/kimi-code-research/cert-2.4.1-live/`.
21
-
22
- - **Plan OFF Write:** the exact 2.4.1 marker was first; Write reached the custom deny-all control hook and was denied on the same call ID. No target file or plan state was created.
23
- - **Plan ON:** an authenticated loopback session was explicitly placed in plan mode, shut down cleanly in 5.638 seconds, and resumed with a deny-all hook. The exact marker and `plan_mode.enter` were present. Glob and ExitPlanMode reached the deny hook; a **1,831-byte** plan file was written without a plan-Write hook invocation. The workspace remained empty.
24
- - **Removed EnterPlanMode:** the offered tools included Write but not EnterPlanMode. A scripted provider forced `call_enter_forced`; the exact binary returned `Tool "EnterPlanMode" not found` on that ID before any hook call and returned the rejection to the provider. No plan state or files appeared.
25
- - **Swarm OFF:** a real AgentSwarm call returned the inactive-mode result with zero child journals and no probe files.
26
- - **Swarm ON:** after adding the reviewed exact 2.4.1 activation selector and rebuilding, compiled activation produced `agent-0` and `agent-1`; each child attempted its assigned Write with a matching managed-denial result under the same toolCallId. The coordinator did not substitute writes, no probes landed, and deactivation verified `swarm_mode.exit`. Parent `KIMI_CODE_SESSION_IDLE_RECLAIM_MS=1` confirmed the child environment's `0` override remains effective.
27
- - Focused activation passed **36 tests and 130 assertions**. The focused setup/engine/activation set after the production row passed **142 tests and 2,282 assertions**.
28
-
29
- ### Invalid setup attempts, not accepted as evidence
30
-
31
- - The first forced removed-tool run passed every safety assertion but failed `noWorkspaceFiles` because a relative artifact root made the child create its relative Kimi home beneath the workspace. A fresh run with an absolute artifact root passed all checks; the fixture failure is not counted.
32
- - The first combined swarm control passed OFF, then ON refused before any model call because `PREACTIVATION_VERSIONS` did not yet include 2.4.1. The unchanged KAP source justified adding only that exact activation selector. The focused activation suite and fresh ON control then passed. The refused attempt is not ON evidence.
33
-
34
- ## Candidate and final gates
35
-
36
- - Expanded candidate matrix (`candidate-smoke.log`): **21 pass, 0 fail, 154 assertions, no skips**, 410.84 seconds. Real `runRescue` landed the confined sentinel and persisted operation/version/engine/session/artifact evidence. The absolute out-of-root Bash.cwd call received its exact same-call denial and created no file. Eight goal turns produced none of the three named goal files. Write-swarm produced a 278-byte child-authored patch, left the user tree clean, removed its worktree, and denied the out-of-root write.
37
- - Frozen dependency installation made no changes; `bun audit` found no vulnerabilities. Typecheck, contract-size, and generated-surface checks passed before the production matrix.
38
- - Compiled acceptance/refusal controls passed under Node and Bun against both root and Codex distributions: every operation accepts exact 2.4.1 and normalized `v2.4.1`; 2.4.2, prereleases, build metadata, and mismatched hook-schema components refuse.
39
- - Expanded production-table matrix (`production-smoke.log`) with the candidate override explicitly unset: **21 pass, 0 fail, 154 assertions, no skips**, 453.88 seconds. Real rescue and deterministic Bash.cwd passed the same confinement and provenance assertions. Twelve goal turns produced none of the three named goal files. Write-swarm captured a 278-byte child-authored patch, left the user tree clean, and removed its worktree.
40
- - Initial full repository check passed **1,315 tests with 30 expected opt-in skips, 0 failures and 17,073 assertions across 79 files** in 320.46 seconds. Initial package validation passed **232 files**. Subsequent iCloud-style `* 2` duplicates in root `dist/vendor` were verified byte-identical to canonical generated files and quarantined; the runtime mirrors match again.
41
- - Earlier review iterations (`production-review-smoke.log` and `goal-final-smoke.log`) passed **23 tests and 163 assertions** and a goal-only test respectively, but their Bash-inclusive goal evidence is **not accepted for certification**. The final edge-hardened matrix below supersedes those goal claims. Other operation evidence from those runs remains useful.
42
- - Clean full repository check (`check-review-final.log`) after review fixes: **1,317 pass, 30 expected opt-in skips, 0 fail, 17,314 assertions across 79 files**, 321.00 seconds. Clean package validation (`package-review-final.log`) passed **233 files**, both compiled distributions, isolated hook setup/check, version refusal, and modern/legacy MCP controls. `docs/upstream-2.4.1-certification.md` is confirmed in the archive.
43
- - Codex's targeted re-review requested genuine error results, legacy-compatible turn starts, and a whole-workspace settlement assertion. A subsequent review added marker-prefix, call-derived turn-ID, and directory-entry requirements. The final production matrix (`production-prefix-smoke.log`) passed **24 tests and 167 assertions with no skips in 440.66 seconds**. All seven call-derived turn IDs had same-call Write denials with `isError: true` and the managed-message prefix, and the entire workspace was empty at settlement.
44
- - Literal standard `bun run check` (`check-standard-final.log`): **1,318 pass, 30 expected opt-in skips, 0 fail, 17,319 assertions across 79 files**, 358.83 seconds. Earlier parallel attempts hit timing-sensitive lifecycle failures; the focused suites and a complete serial run passed before the literal standard gate also passed. Codex's final targeted re-review returned **APPROVE**, closing all original and subsequent findings. Final edited-byte package validation (`package-standard-final.log`) passed **233 files** and includes this record.
45
-
46
- ## Release and publication
47
-
48
- Plugin 2.4.5 was committed as `de8c195c2986443a088b674717133b164d2e4ef2` and pushed to `main`. [Release-commit CI 41226096281](https://github.com/linxule/kimi-plugin-cc/actions/runs/41226096281) passed the full check/package and Windows spawn jobs. Annotated tag `v2.4.5` and [GitHub release](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.4.5) were created. [Publish workflow 41226438326](https://github.com/linxule/kimi-plugin-cc/actions/runs/41226438326) passed its build and npm publish jobs.
49
-
50
- The registry tarball has SHA-1 `39f97a6de4b26ad51ac77305054682fcd5cd0164`, contains 233 files, and matches the CI artifact byte-for-byte. Fresh npm registry installations passed isolated setup/check and unsupported-version refusal for both hosts, and the compiled mirrors are byte-identical to the release checkout. Structured proof is retained at `.claude/kimi-code-research/release-2.4.5/registry-verification.json`. Installed hosts and operator CLI pins remain unchanged.
51
-
52
- ## Preserved boundaries
53
-
54
- Certification remains exact and per-operation. Legacy-v1 ends at 0.41.x. Plan mode and unsafe experimental selectors remain refused. Hook verification, trusted-root confinement, concurrency/defaults, one print runner, memory-only web tokens, finite budgets, process/session identity checks, deactivation, and recovery ownership are unchanged. Existing Git trust and hook-process failure residuals remain documented; this release does not make the hook an OS sandbox. Publication does not install or re-pin either host.
@@ -1,52 +0,0 @@
1
- # Kimi Code 2.5.0 certification evidence — 2026-11-05
2
-
3
- ## Status and exact source
4
-
5
- **Exact CLI 2.5.0 is certified for all eight operations by the plugin 2.5.2 working tree.** The exact-source audit, non-vacuous plan and swarm controls, local-environment controls, candidate matrix, and production-table matrix passed. Repository and package validation results are recorded below as they complete. Commit, push, tag, publication, installed-host rollout, and operator CLI pin changes are outside this certification slice and were not performed.
6
-
7
- Candidate: `@moonshot-ai/kimi-code@2.5.0`, release commit `41c341434ae24e45bfe0f2232ec11b80531ac717`, compared with certified 2.4.1 (`2c73f3f50af4fa7f2540ca0d2e33b07a1408e3a7`). The monitor recorded npm publication at 2026-11-04T11:59:13.163Z. A temporary isolated npm installation and its executable both report 2.5.0. The clean exact source checkout was verified at that commit; the seven scoped 2.4.1→2.5.0 diffs are retained under `.claude/kimi-code-research/daily-monitor/2026-11-05-2.5.0-diffs/`.
8
-
9
- ## Source and integration review
10
-
11
- Four independent source lanes reviewed hooks/plan, CLI/bootstrap, tools/fan-out, and activation adversarially. The hook/plan lane returned COMPAT-PRESERVED. Other lanes identified the removed status route, remote execution defaults/bindings, and the workspace-trust bypass; those findings drove fail-closed repairs rather than certification by assertion. A separate runtime diff review returned APPROVE with no correctness defects.
12
-
13
- - The expanded exact-tag scan passed **18 tests and 153 assertions across 40 pinned files**, including the SDK, remote-environment implementation, workspace trust/MCP, upgrade authentication, and WebSocket state surfaces. The sole final allow remains active-plan-gated, every model tool execution retains the managed before-execute path, and EnterPlanMode remains removed.
14
- - Exact 2.5.0 activation uses authenticated protocol-v2 WebSocket main-agent state with unique request IDs, an accepted subscription, and the latest frame through intentional bounded close. Earlier certified versions retain `/status`. Focused activation passed **67 tests with 228 assertions**, including wrong identities, request IDs, optional fields, malformed/oversized frames, contradictory state, timeouts, and local-binding failures.
15
- - Fresh 2.5.0 print selects `--environment local`; resume never receives that flag. Launcher environment selectors are refused. Remote defaults and disabled workspace trust refuse before spawn. Resume inspection covers persisted metadata and every agent journal, requiring local execution and the expected root, including omitted-metadata-`environmentId` and swarm-write worktrees. Activation and deactivation independently re-read the authenticated local binding before either profile mutation.
16
-
17
- ## Exact-binary controls
18
-
19
- Controls used a task-authorized Agent Key in process memory/environment and empty isolated homes, except the forced removed-tool control, which used a loopback scripted provider and a dummy key. No personal config or OAuth store was read, copied, or symlinked. Controls ran sequentially; completed evidence homes had credential-bearing config removed afterward. Raw evidence is under `.claude/kimi-code-research/cert-2.5.0-live/`.
20
-
21
- - **Plan OFF Write:** the exact 2.5.0 marker was first; Write reached the custom deny-all control hook and was denied on the same call ID. No target file or plan state was created.
22
- - **Plan ON:** authenticated agent state independently proved `plan_mode:true`, auto permission, and the env-model alias before resume. Glob reached the deny hook; a **1,459-byte** plan file was written without a plan-Write hook invocation. The workspace remained empty.
23
- - **Removed EnterPlanMode:** the offered tools included Write but not EnterPlanMode. A scripted provider forced `call_enter_forced`; the exact binary returned `Tool "EnterPlanMode" not found` on that ID before any hook call and returned the rejection to the provider. No plan state or files appeared.
24
- - **Environment:** real activation and deactivation passed with the explicit local binding. A configured remote default refused before its command launcher ran, disabled workspace trust refused before spawn, and a resumed remote binding refused before spawn. The implementation also passes focused omitted-id and wrong-root checks.
25
- - **Swarm OFF:** a real AgentSwarm call returned the inactive-mode result with zero child journals and no probe files.
26
- - **Swarm ON:** preactivation produced `agent-0` and `agent-1`; each child attempted its assigned Write with a matching managed-denial result under the same toolCallId. No probes landed, and deactivation verified `swarm_mode.exit` with the idle-reclaimer override.
27
- - **Out-of-root control:** an evidence-preserving run correlated two distinct child Writes with rescue denials on their assigned call IDs, created no files, and verified deactivation.
28
-
29
- ## Candidate and production matrices
30
-
31
- - Expanded candidate matrix (`candidate-smoke-final.log`): **24 pass, 0 fail, 167 assertions, no skips**, 396.89 seconds. Real `runRescue` landed the confined sentinel and persisted operation/version/engine/session/artifact evidence. The absolute out-of-root Bash.cwd call received its exact same-call denial and created no file. Write-swarm produced a 278-byte child-authored patch, left the user tree clean, removed its worktree, and denied the out-of-root write.
32
- - Expanded production-table matrix (`production-smoke.log`) with the candidate override explicitly unset: **24 pass, 0 fail, 167 assertions, no skips**, 326.30 seconds. The same confinement, provenance, resume, pursuit, fan-out, patch, and negative-write checks passed.
33
- - Candidate and production goal controls produced same-call managed denials across distinct turns and left the workspace empty at settlement.
34
- - The earlier candidate attempt passed 23 of 24 lanes but was rejected as incomplete. The fresh final candidate run above supersedes it. Invalid diagnostic fixtures using relative or symlink-alias cwd were also rejected as control evidence, not counted as product failures.
35
-
36
- ## Repository and package gates
37
-
38
- Frozen dependency installation made no changes. The literal standard `bun run check` passed **1,404 tests with 33 expected opt-in skips, 0 failures, and 17,999 assertions across 82 files in 336.44 seconds**, including the generated-distribution drift gate. Package validation passed **329 files**, all three compiled distributions, isolated hook setup/check and version refusal, a patched DSH host/profile with seven live providers/tools, and Web boot. An isolated npm consumer-security audit also passed. The certification record is included in the archive. Independent documentation fidelity review identified nine documentation corrections and, after verifying the corrected files, returned **APPROVE** with no remaining must-fix findings. The fresh tag-scan log is retained at `.claude/kimi-code-research/cert-2.5.0-live/tag-scan-final.log`.
39
-
40
- ## Preserved boundaries
41
-
42
- Certification remains exact and per-operation. Legacy-v1 ends at 0.41.x. Plan mode and unsafe experimental selectors remain refused. Local execution and workspace trust are mandatory, and resumed nonlocal or wrong-root bindings fail closed. Hook verification, trusted-root confinement, concurrency/defaults, one print runner, memory-only web tokens, finite budgets, process/session identity checks, deactivation, and recovery ownership are preserved. Existing Git trust and hook-process failure residuals remain documented; this release does not make the hook an OS sandbox. Publication does not install or re-pin either host.
43
-
44
- ## Release clean-close hardening
45
-
46
- After the original certification, Linux release CI exposed a platform-specific early WebSocket close event that could be accepted as valid final agent state. The final runtime now requires `CloseEvent.wasClean` before accepting that state, and the mock performs a protocol-correct close handshake while retaining the timeout case. Focused activation validation passed **71 tests with 244 assertions**. On the exact 2.5.0 binary, direct OFF again produced no children, preactivated ON produced two children with correlated managed denials and verified deactivation, and the out-of-root control passed. The final full repository check passed **1,412 tests with 18,282 assertions and zero failures in 360.79 seconds**; 330-file package validation and isolated consumer security also passed. These results supplement the original certification evidence and cover the final release behavior.
47
-
48
- A subsequent CI attempt showed that native WebSocket close scheduling and `wasClean` semantics vary by platform and cannot supply a deterministic no-close-event precondition. That timeout case now uses a controlled socket which completes the protocol exchange but never emits `close`, and asserts the exact `Kimi web agent-state verification timed out.` message. The refusal is therefore tested without relying on incidental host close timing; production behavior is unchanged by this test-only follow-up.
49
-
50
- **Follow-up correction:** a later normal activation/deactivation fixture showed that `wasClean` can also reject a valid close. The production condition has been reverted on `main`, restoring the original certified bounded-close settlement; the controlled no-close-event test and protocol-correct mock handshake remain. The immutable 2.5.3 artifact contains the trial condition, so carrying this revert requires a new patch artifact rather than a re-tag or republish.
51
-
52
- The correction ships as plugin 2.5.4 ([release](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.4)), with registry artifact and fresh-install verification recorded in [registry releases](registry-releases.md).