kimi-plugin-cc 2.7.2 → 2.7.3

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 (50) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +9 -1
  4. package/README.md +8 -8
  5. package/agents/kimi-pursue.md +1 -1
  6. package/agents/kimi-swarm-write.md +4 -4
  7. package/agents/kimi-swarm.md +5 -5
  8. package/commands/swarm.md +3 -3
  9. package/dist/cli-client.js +1 -1
  10. package/dist/commands/setup.js +2 -2
  11. package/dist/commands/swarm.js +4 -4
  12. package/dist/hooks/approval-policy.js +1 -1
  13. package/dist/hooks/config-safety.js +4 -3
  14. package/dist/kimi-engine.js +2 -1
  15. package/dist/kimi-timeouts.js +1 -1
  16. package/dist/mcp/operations.js +1 -1
  17. package/dist/swarm-activation.js +12 -12
  18. package/dist/swarm-policy.js +1 -1
  19. package/dist/version.js +1 -1
  20. package/docs/migration.md +4 -4
  21. package/docs/registry-releases.md +3 -1
  22. package/docs/safety.md +15 -15
  23. package/docs/swarm-recovery.md +3 -3
  24. package/docs/upstream-2.7.2-certification.md +16 -2
  25. package/docs/upstream-2.7.3-certification.md +83 -0
  26. package/package.json +2 -1
  27. package/plugins/kimi-codex/.codex-plugin/plugin.json +1 -1
  28. package/plugins/kimi-codex/dist/cli-client.js +1 -1
  29. package/plugins/kimi-codex/dist/commands/setup.js +2 -2
  30. package/plugins/kimi-codex/dist/commands/swarm.js +4 -4
  31. package/plugins/kimi-codex/dist/hooks/approval-policy.js +1 -1
  32. package/plugins/kimi-codex/dist/hooks/config-safety.js +4 -3
  33. package/plugins/kimi-codex/dist/kimi-engine.js +2 -1
  34. package/plugins/kimi-codex/dist/kimi-timeouts.js +1 -1
  35. package/plugins/kimi-codex/dist/mcp/operations.js +1 -1
  36. package/plugins/kimi-codex/dist/swarm-activation.js +12 -12
  37. package/plugins/kimi-codex/dist/swarm-policy.js +1 -1
  38. package/plugins/kimi-codex/dist/version.js +1 -1
  39. package/plugins/kimi-dsh/dist/cli-client.js +1 -1
  40. package/plugins/kimi-dsh/dist/commands/setup.js +2 -2
  41. package/plugins/kimi-dsh/dist/commands/swarm.js +4 -4
  42. package/plugins/kimi-dsh/dist/hooks/approval-policy.js +1 -1
  43. package/plugins/kimi-dsh/dist/hooks/config-safety.js +4 -3
  44. package/plugins/kimi-dsh/dist/kimi-engine.js +2 -1
  45. package/plugins/kimi-dsh/dist/kimi-timeouts.js +1 -1
  46. package/plugins/kimi-dsh/dist/mcp/operations.js +1 -1
  47. package/plugins/kimi-dsh/dist/swarm-activation.js +12 -12
  48. package/plugins/kimi-dsh/dist/swarm-policy.js +1 -1
  49. package/plugins/kimi-dsh/dist/version.js +1 -1
  50. package/plugins/kimi-dsh/package.json +1 -1
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "metadata": {
7
7
  "description": "Kimi for Claude Code: code questions, reviews, fixes, parallel tasks, and MCP tasks through the local Kimi Code CLI.",
8
- "version": "2.7.2"
8
+ "version": "2.7.3"
9
9
  },
10
10
  "plugins": [
11
11
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kimi",
3
3
  "description": "Kimi for Claude Code: code questions, independent reviews, bounded fixes, autonomous goals, parallel tasks, and MCP tasks through the local Kimi Code CLI, with PreToolUse safety hooks.",
4
- "version": "2.7.2",
4
+ "version": "2.7.3",
5
5
  "homepage": "https://github.com/linxule/kimi-plugin-cc",
6
6
  "repository": "https://github.com/linxule/kimi-plugin-cc",
7
7
  "license": "Apache-2.0",
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  > **Post-1.0 release history (v1.0.1 -> present) lives in [ROADMAP-TO-GA.md § Post-GA audit log](./ROADMAP-TO-GA.md#post-ga-audit-log)** and the "Version" / "Upstream compat" lines of [AGENTS.md](./AGENTS.md). Docs-only kimi-code compat checkups that don't bump the plugin version (e.g. the 0.14.2 / 0.14.3 patches) are recorded there, not here. Notable releases are summarized below; the GA entry and full pre-GA detail follow.
4
4
 
5
+ ## 2.7.3 — 2026-11-24
6
+
7
+ - Certify exact kimi-code 2.7.3 for all eight native-v2 operations under the no-plan and bounded-swarm/direct-worker construction. Exact source commit `a8f643ad2e7f197d6ec4409b7cdad8a544afad86` and bundle SHA-256 `747dbb1fd3ad0789194e0181cfaf036a795c8c6d6b3a9204c152aee8db10de16` are verified; exact 2.7.0, 2.7.1 and 2.7.4 remain excluded.
8
+ - Diagnose the monitor's zero-child/no-patch lanes as candidate-harness selector omissions, not an upstream scheduler regression. Extend exact-version preactivation, bounded-policy, direct-worker, schema and recovery coverage to 2.7.3 without inheriting a version range.
9
+ - Review the optional TurnEnded feedback attribution, authenticated host-only feedback routes and missing-model KAP behavior. Print, hook, plan, executor, tool, swarm and local-backend surfaces are unchanged; missing main-agent models remain fail-closed during activation.
10
+ - Pass the expanded source scan with **38 tests / 533 assertions and 159 pins**, plan ON/OFF, forced removed-tool and local/trust/resume controls, **23 deterministic stock-binary tests / 138 assertions**, and candidate plus production real-provider matrices each with **30 passes / 402 assertions** and only the two inapplicable narrowed-refusal skips. See the [2.7.3 record](docs/upstream-2.7.3-certification.md).
11
+
5
12
  ## 2.7.2 — 2026-11-20
6
13
 
7
14
  - Certify exact kimi-code 2.7.2 for all eight native-v2 operations under the no-plan and bounded-swarm/direct-worker construction. Exact source commit `56145f849caa305d42acd09b67fb65d11146f887` and bundle SHA-256 `dafef22f56c4c1fff755eb3af5e42a76d32d09a9dc858ebdc055a6d1a6008e67` are verified; exact 2.7.0, 2.7.1 and 2.7.3 remain excluded.
@@ -9,7 +16,8 @@
9
16
  - Adapt 2.7.2 activation to KAP `/meta` without `backend: "v2"`: use an ephemeral-token JSON ready line, strict loopback origin and `/api/v1/ws` validation, KAP 1.0.0 and WebSocket proof, exact server-version checks, and fresh explicit local selection. Older activation formats remain unchanged.
10
17
  - Expand source review from seven to nine scopes for the moved `packages/core` executor, loop, retry/settlement/recovery and structured error conversion, plus KAP, Klient and ACP host plan-entry routes. Final source scans pass **38 tests / 527 assertions on 2.7.2** and **38 / 404 on 2.6.3**, with 153 pins.
11
18
  - Pass plan ON/OFF, forced removed-tool and local/trust/resume controls, **23 deterministic stock-binary tests / 138 assertions**, and candidate plus production real-provider matrices each with **30 passes / 406 assertions** and only the two inapplicable narrowed-refusal skips. Real child journals, confined writes, child-authored patches, direct workers and bounded waves are required evidence. Both final independent reviews returned NO FINDINGS. See the [2.7.2 record](docs/upstream-2.7.2-certification.md).
12
- - Pass the plugin 2.7.2 frozen-install release gate with **1,848 tests / 83 expected opt-in or platform skips / 0 failures / 24,260 assertions in 611.46 seconds**, plus **342-file** package/DSH validation and isolated consumer security. The independent release-diff review's version-headline finding was corrected before the release commit. Publication receipts are recorded separately after CI and registry verification.
19
+ - Pass the plugin 2.7.2 frozen-install release gate with **1,848 tests / 83 expected opt-in or platform skips / 0 failures / 24,260 assertions in 611.46 seconds**, plus **342-file** package/DSH validation and isolated consumer security. The independent release-diff review's version-headline finding was corrected before the release commit.
20
+ - Publish release commit `e2bba0e2d4e1745e4155eb5c6ddf3f4dabaffb66` after CI run `44799772434`, then tag and release [v2.7.2](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.7.2). Initial OIDC run `44801159950` failed only at npm publication with `TLOG_CREATE_ENTRY_ERROR` and published nothing; documented manual-dispatch recovery run `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 Actions artifact and every tag file, with SHA-256 `0a0bcba76513adac3448776d4f8df9ec73b60987edac0ca5e6535db428b91f33`. Fresh registry setup/check, zero-advisory and signature checks pass, and SLSA/publish attestations match the package, recovery run and release commit. No installed-host update is implied.
13
21
 
14
22
  ## 2.6.3 — 2026-11-18
15
23
 
package/README.md CHANGED
@@ -40,7 +40,7 @@ You need:
40
40
  - macOS or Linux
41
41
  - Claude Code, Codex, or DSH with plugin support
42
42
  - Node.js 22.5 or newer (24.9 or newer for DSH)
43
- - Kimi Code CLI 2.7.2 with plugin 2.7.2 for bounded swarm and the six other operations. Exact CLI 2.6.2 and 2.6.3 remain supported under the same construction. See the [2.7.2 certification record](./docs/upstream-2.7.2-certification.md) and [runtime matrix](./docs/native-v2-certification-provenance.md) for exact scope. Older supported versions retain their documented limits.
43
+ - Kimi Code CLI 2.7.3 with plugin 2.7.3 for bounded swarm and the six other operations. Exact CLI 2.6.2, 2.6.3 and 2.7.2 remain supported under the same construction. See the [2.7.3 certification record](./docs/upstream-2.7.3-certification.md) and [runtime matrix](./docs/native-v2-certification-provenance.md) for exact scope. Older supported versions retain their documented limits.
44
44
 
45
45
  Windows is not currently supported. Contributors can help with the [no-model Windows diagnostics checks](./docs/windows-validation.md). Check your versions in a terminal:
46
46
 
@@ -248,7 +248,7 @@ All refusal codes and their remedies are listed in the [refusal-code catalog](./
248
248
 
249
249
  The tool rules for ask, review, challenge, and read-only swarm deny file writes and shell commands. Rescue and pursue can write files in your workspace. Swarm with `--write` works in a temporary Git worktree. It starts from your latest commit, so it does not include uncommitted changes. It returns a patch without applying it to your project.
250
250
 
251
- On exact CLI 2.6.2/2.6.3/2.7.2, `--max-concurrency 1` runs one worker directly; larger values use waves of at most that many children. Read mode defaults to 4, write mode to 1. `--cap` remains an advisory total count. Parallel runs use brief authenticated loopback processes to activate and deactivate the session; the direct-worker path needs neither. Activation counts against the finite job budget, tokens stay out of logs, and unverified cleanup prevents success. Older certified versions retain their documented activation and recovery limits.
251
+ On exact CLI 2.6.2/2.6.3/2.7.2/2.7.3, `--max-concurrency 1` runs one worker directly; larger values use waves of at most that many children. Read mode defaults to 4, write mode to 1. `--cap` remains an advisory total count. Parallel runs use brief authenticated loopback processes to activate and deactivate the session; the direct-worker path needs neither. Activation counts against the finite job budget, tokens stay out of logs, and unverified cleanup prevents success. Older certified versions retain their documented activation and recovery limits.
252
252
 
253
253
  A slow child holds its wave until completion or the finite job deadline. Fresh waves need at least two entries, so odd target counts may need regrouping. Kimi workers cannot explicitly background Bash, and parallel sessions disable automatic backgrounding. Normal exit and cancellation settle verified owned processes before results or patches are captured. Concurrency counts Kimi child-agent turns; allowed tests can start multiple OS processes, and an individual Bash timeout does not guarantee their settlement between waves.
254
254
 
@@ -288,7 +288,7 @@ Contributors need Bun to run `bun run check`. The detailed engineering documents
288
288
  - macOS 或 Linux
289
289
  - 支持插件的 Claude Code、Codex 或 DSH
290
290
  - Node.js 22.5 或更高版本(DSH 需要 24.9 或更高版本)
291
- - Kimi Code CLI 2.7.2,配合插件 2.7.2 使用有并发上限的 swarm 及其他六项操作。精确版本 CLI 2.6.2 和 2.6.3 仍按同一机制获得支持。精确范围见[2.7.2 认证记录](./docs/upstream-2.7.2-certification.md)和[运行时矩阵](./docs/native-v2-certification-provenance.md);旧版继续保留其已披露的限制。
291
+ - Kimi Code CLI 2.7.3,配合插件 2.7.3 使用有并发上限的 swarm 及其他六项操作。精确版本 CLI 2.6.2、2.6.3 和 2.7.2 仍按同一机制获得支持。精确范围见[2.7.3 认证记录](./docs/upstream-2.7.3-certification.md)和[运行时矩阵](./docs/native-v2-certification-provenance.md);旧版继续保留其已披露的限制。
292
292
 
293
293
  目前不支持 Windows。在终端检查版本:
294
294
 
@@ -469,7 +469,7 @@ codex plugin add kimi@kimi-marketplace
469
469
 
470
470
  Ask、review、challenge 和只读 swarm 的工具规则禁止写入文件和执行 shell 命令。Rescue 和 pursue 可以修改工作区内的文件。带 `--write` 的 swarm 在临时 Git 工作树中操作。它从最新提交开始,不包含尚未提交的修改。任务结束后返回补丁,不会自动应用到项目。
471
471
 
472
- 在精确版本 CLI 2.6.2/2.6.3/2.7.2 上,`--max-concurrency 1` 直接运行一个工作代理;更大的值将任务分成多批,每批子代理数不超过该值。只读模式默认 4,写入模式默认 1。`--cap` 仍只是总数建议。并行任务通过短暂的认证本地回环进程激活和停用会话;单代理路径无需这些进程。激活计入任务时限,令牌不写入日志,无法确认清理完成时不会报告成功。旧版继续保留其已披露的激活和恢复限制。
472
+ 在精确版本 CLI 2.6.2/2.6.3/2.7.2/2.7.3 上,`--max-concurrency 1` 直接运行一个工作代理;更大的值将任务分成多批,每批子代理数不超过该值。只读模式默认 4,写入模式默认 1。`--cap` 仍只是总数建议。并行任务通过短暂的认证本地回环进程激活和停用会话;单代理路径无需这些进程。激活计入任务时限,令牌不写入日志,无法确认清理完成时不会报告成功。旧版继续保留其已披露的激活和恢复限制。
473
473
 
474
474
  较慢的子代理会让当前批次等待,直到完成或整个任务达到时限。全新批次至少需要两个条目,因此奇数个目标可能需要重新分组。Kimi 工作代理不能显式将 Bash 放到后台,并行会话也禁用自动后台运行。正常退出和取消都必须确认所管理进程已停止,才会捕获结果或补丁。并发上限计算的是 Kimi 子代理轮次;获准的测试仍可启动多个系统进程,单次 Bash 超时也不保证这些进程在下一批开始前停止。
475
475
 
@@ -511,7 +511,7 @@ Il vous faut :
511
511
  - macOS ou Linux
512
512
  - une version de Claude Code, Codex ou DSH prenant en charge les plugins
513
513
  - Node.js 22.5 ou une version ultérieure (24.9 ou ultérieure pour DSH)
514
- - Kimi Code CLI 2.7.2 avec le plugin 2.7.2 pour swarm à concurrence limitée et les six autres opérations. Les CLI exacts 2.6.2 et 2.6.3 restent pris en charge selon la même construction. Consultez le [dossier de certification 2.7.2](./docs/upstream-2.7.2-certification.md) et la [matrice runtime](./docs/native-v2-certification-provenance.md) pour le périmètre exact ; les anciennes versions conservent leurs limites documentées.
514
+ - Kimi Code CLI 2.7.3 avec le plugin 2.7.3 pour swarm à concurrence limitée et les six autres opérations. Les CLI exacts 2.6.2, 2.6.3 et 2.7.2 restent pris en charge selon la même construction. Consultez le [dossier de certification 2.7.3](./docs/upstream-2.7.3-certification.md) et la [matrice runtime](./docs/native-v2-certification-provenance.md) pour le périmètre exact ; les anciennes versions conservent leurs limites documentées.
515
515
 
516
516
  Windows n'est pas pris en charge actuellement. Vérifiez les versions dans un terminal :
517
517
 
@@ -690,7 +690,7 @@ Tous les codes de refus et leurs remèdes sont répertoriés dans le [catalogue
690
690
 
691
691
  Les règles des modes ask, review, challenge et swarm en lecture seule interdisent les écritures et les commandes shell. Rescue et pursue peuvent modifier les fichiers de votre espace de travail. Swarm avec `--write` travaille dans un worktree Git temporaire. Il part du dernier commit et n'inclut donc pas les modifications non commitées. Il renvoie un patch sans l'appliquer à votre projet.
692
692
 
693
- Sur les CLI exacts 2.6.2/2.6.3/2.7.2, `--max-concurrency 1` lance directement un seul agent ; une valeur supérieure répartit le travail en vagues de cette taille au maximum. Les valeurs par défaut sont 4 en lecture et 1 en écriture. `--cap` reste un conseil sur le nombre total. Les vagues parallèles utilisent de brefs processus locaux authentifiés pour activer puis désactiver la session ; le chemin à un seul agent n’en a pas besoin. L’activation compte dans la durée du job, les jetons restent hors des journaux et un nettoyage non confirmé empêche de déclarer la réussite. Les anciennes versions gardent leurs limites documentées.
693
+ Sur les CLI exacts 2.6.2/2.6.3/2.7.2/2.7.3, `--max-concurrency 1` lance directement un seul agent ; une valeur supérieure répartit le travail en vagues de cette taille au maximum. Les valeurs par défaut sont 4 en lecture et 1 en écriture. `--cap` reste un conseil sur le nombre total. Les vagues parallèles utilisent de brefs processus locaux authentifiés pour activer puis désactiver la session ; le chemin à un seul agent n’en a pas besoin. L’activation compte dans la durée du job, les jetons restent hors des journaux et un nettoyage non confirmé empêche de déclarer la réussite. Les anciennes versions gardent leurs limites documentées.
694
694
 
695
695
  Un enfant lent retient sa vague jusqu’à sa fin ou à la limite de durée du job. Une vague de nouveaux enfants exige au moins deux entrées ; un nombre impair de cibles peut donc nécessiter un regroupement. Les agents Kimi ne peuvent pas lancer Bash explicitement en arrière-plan, et les sessions parallèles désactivent aussi le détachement automatique. La sortie normale et l’annulation attendent l’arrêt des processus gérés avant de capturer résultats ou patchs. La limite compte les tours des agents enfants Kimi ; un test autorisé peut lancer plusieurs processus système, dont l’arrêt entre deux vagues n’est pas garanti par le délai d’un appel Bash.
696
696
 
@@ -730,7 +730,7 @@ Les contributeurs ont besoin de Bun pour exécuter `bun run check`. La documenta
730
730
  - macOS または Linux
731
731
  - プラグインに対応した Claude Code、Codex、または DSH
732
732
  - Node.js 22.5 以降(DSH では 24.9 以降)
733
- - Kimi Code CLI 2.7.2 とプラグイン 2.7.2。並列数を制限した swarm とほかの 6 操作に対応します。正確な CLI 2.6.2 と 2.6.3 も同じ仕組みで引き続き対応します。正確な範囲は[2.7.2 認証記録](./docs/upstream-2.7.2-certification.md)と[ランタイムマトリックス](./docs/native-v2-certification-provenance.md)を参照してください。旧バージョンの制限は引き続き適用されます。
733
+ - Kimi Code CLI 2.7.3 とプラグイン 2.7.3。並列数を制限した swarm とほかの 6 操作に対応します。正確な CLI 2.6.2、2.6.3、2.7.2 も同じ仕組みで引き続き対応します。正確な範囲は[2.7.3 認証記録](./docs/upstream-2.7.3-certification.md)と[ランタイムマトリックス](./docs/native-v2-certification-provenance.md)を参照してください。旧バージョンの制限は引き続き適用されます。
734
734
 
735
735
  現在、Windows には対応していません。ターミナルでバージョンを確認します。
736
736
 
@@ -911,7 +911,7 @@ codex plugin add kimi@kimi-marketplace
911
911
 
912
912
  Ask、review、challenge、読み取り専用 swarm のツールルールでは、ファイルへの書き込みとシェルコマンドを禁止しています。Rescue と pursue はワークスペース内のファイルを変更できます。`--write` を指定した swarm は、一時的な Git ワークツリーで作業します。最新のコミットから開始するため、未コミットの変更は含まれません。パッチを返すだけで、プロジェクトには自動適用しません。
913
913
 
914
- 正確な CLI 2.6.2/2.6.3/2.7.2 では、`--max-concurrency 1` は 1 つのワーカーを直接実行します。2 以上では、その数以下の子エージェントを 1 組として順に実行します。既定値は読み取りが 4、書き込みが 1 です。`--cap` は総数の目安のままです。並列実行では、認証付きのローカルプロセスでセッションを有効化・無効化します。単一ワーカーでは不要です。有効化もジョブの制限時間に含まれ、トークンはログに出ず、後処理を確認できなければ成功とは報告しません。旧バージョンの制限は引き続き適用されます。
914
+ 正確な CLI 2.6.2/2.6.3/2.7.2/2.7.3 では、`--max-concurrency 1` は 1 つのワーカーを直接実行します。2 以上では、その数以下の子エージェントを 1 組として順に実行します。既定値は読み取りが 4、書き込みが 1 です。`--cap` は総数の目安のままです。並列実行では、認証付きのローカルプロセスでセッションを有効化・無効化します。単一ワーカーでは不要です。有効化もジョブの制限時間に含まれ、トークンはログに出ず、後処理を確認できなければ成功とは報告しません。旧バージョンの制限は引き続き適用されます。
915
915
 
916
916
  遅い子エージェントがある組は、完了またはジョブ全体の期限まで待機します。新規の組には最低 2 項目が必要なので、対象が奇数なら組み直す場合があります。Kimi ワーカーによる明示的な Bash のバックグラウンド実行は禁止され、並列セッションでは自動切り離しも無効です。通常終了とキャンセルのどちらも、管理対象プロセスの停止を確認してから結果やパッチを取得します。並列数は Kimi 子エージェントのターン数です。許可されたテストは複数の OS プロセスを起動でき、個々の Bash のタイムアウトは次の組の開始までにそれらが停止する保証にはなりません。
917
917
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: kimi-pursue
3
- description: Use this agent ONLY when the user has explicitly asked Kimi to pursue a stated objective AUTONOMOUSLY across multiple turns (experimental goal mode) — a multi-step task the user wants Kimi to drive to completion on its own, not a single bounded edit. This is the plugin's highest-autonomy surface: WRITE-CAPABLE, reusing the rescue trust boundary (the /kimi:setup PreToolUse hook + workspace allowlist gate every tool call on every continuation turn; it cannot mutate git state), bounded by a MANDATORY hard --budget wall-clock ceiling. Requires BOTH an explicit objective AND explicit intent for hands-off autonomous pursuit — do NOT auto-promote a single bounded fix into a goal loop (use kimi-rescue) or a read-only question into one (use kimi-ask / kimi-review / kimi-swarm). Refuses without the hook.
3
+ description: "Use this agent ONLY when the user has explicitly asked Kimi to pursue a stated objective AUTONOMOUSLY across multiple turns (experimental goal mode). Requires BOTH an explicit objective AND explicit intent for hands-off autonomous pursuit. WRITE-CAPABLE under the rescue trust boundary (the /kimi:setup PreToolUse hook gates every tool call; it cannot mutate git state), bounded by a MANDATORY hard --budget. Do NOT auto-promote a single bounded fix (use kimi-rescue) or a read-only question (use kimi-ask / kimi-review / kimi-swarm). Refuses without the hook."
4
4
  model: sonnet
5
5
  tools: Bash
6
6
  color: red
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: kimi-swarm-write
3
- description: "Use this agent ONLY when the user has explicitly asked Kimi to make EDITS across MANY disjoint targets IN PARALLEL (a write fan-out) — e.g. \"apply this same change to every handler, in parallel\" or \"fan out these independent edits across these N files.\" Requires BOTH signals: many independent WRITE targets AND explicit fan-out intent. WRITE-CAPABLE but PATCH-ONLY: edits happen in an ephemeral throwaway git worktree off HEAD and come back as a reviewable .patch — the plugin NEVER applies or commits, the user owns the merge, and the real working tree is never touched. Bounded by a MANDATORY hard --budget and version-specific --max-concurrency: exact CLI 2.6.2/2.6.3/2.7.2 uses one direct worker at 1 or hard bounded waves at 2 or more; older certified versions retain their normal-launch recovery limitation. Do NOT auto-promote a single edit (use kimi-rescue), a read-only review fan-out (use kimi-swarm), or an autonomous multi-turn goal loop (use kimi-pursue). Requires kimi-code >= 0.18.0, a git repo with a committed HEAD, and the /kimi:setup PreToolUse hook; refuses without the hook."
3
+ description: "Use this agent ONLY when the user has explicitly asked Kimi to make EDITS across MANY disjoint targets IN PARALLEL (a write fan-out). Requires BOTH signals: many independent WRITE targets AND explicit fan-out intent. WRITE-CAPABLE but PATCH-ONLY: edits happen in a throwaway git worktree off HEAD and come back as a reviewable .patch; the plugin NEVER applies or commits, and the real working tree is never touched. Bounded by a MANDATORY hard --budget and version-specific --max-concurrency. Do NOT auto-promote a single edit (use kimi-rescue), a read-only review fan-out (use kimi-swarm), or an autonomous goal loop (use kimi-pursue). Requires a git repo with a committed HEAD and the /kimi:setup PreToolUse hook; refuses without the hook."
4
4
  model: sonnet
5
5
  tools: Bash
6
6
  color: red
@@ -47,17 +47,17 @@ When invoked:
47
47
  - confirm BOTH signals are present before dispatching: (1) MANY disjoint WRITE targets and (2) an explicit request to fan the edits out in parallel. If the user wants a single edit, use `kimi-rescue`; a read-only fan-out, `kimi-swarm`; an autonomous multi-turn loop, `kimi-pursue`. When in doubt, prefer `kimi-rescue` — do not shard one task into a swarm
48
48
  - preserve the user's objective and the disjoint target list with minimal reframing; partition into NON-overlapping targets (the subagents edit in one shared worktree, so overlapping targets can clobber each other)
49
49
  - call the shared companion runtime with one Bash invocation after any model-discovery step: `${CLAUDE_PLUGIN_ROOT}/scripts/companion.sh task swarm --write <args>` (the `--write` flag is REQUIRED — this agent is the write path)
50
- - the companion accepts a **strict allowlist** of flags: `--thinking <off|low|medium|high>` (requested per run), `--budget <duration>` (HARD wall-clock ceiling; e.g. `30m`, `1h`, `90s`; bare number = minutes; default 30m, max 24h), `--cap <N>` (SOFT total-subagent-count hint injected into the coordinator prompt — advisory, the hook does not maintain a lifetime-total count), `--max-concurrency <N>` (**defaults to 1**; exact CLI 2.6.2/2.6.3/2.7.2 uses one direct worker at 1 and bounded waves at 2 or more; older certified versions retain normal-launch limits and the recovery overrun), and `-m`/`--model <name>`. Everything else is trailing objective text. Reasoning behavior follows the selected model and Kimi configuration unless `--thinking <effort>` requests one for this run (honoured by Kimi's own providers on models that can turn thinking off; other providers ignore it silently; the plugin cannot verify it). `--no-thinking` is rejected; use `--thinking off`
50
+ - the companion accepts a **strict allowlist** of flags: `--thinking <off|low|medium|high>` (requested per run), `--budget <duration>` (HARD wall-clock ceiling; e.g. `30m`, `1h`, `90s`; bare number = minutes; default 30m, max 24h), `--cap <N>` (SOFT total-subagent-count hint injected into the coordinator prompt — advisory, the hook does not maintain a lifetime-total count), `--max-concurrency <N>` (**defaults to 1**; exact CLI 2.6.2/2.6.3/2.7.2/2.7.3 uses one direct worker at 1 and bounded waves at 2 or more; older certified versions retain normal-launch limits and the recovery overrun), and `-m`/`--model <name>`. Everything else is trailing objective text. Reasoning behavior follows the selected model and Kimi configuration unless `--thinking <effort>` requests one for this run (honoured by Kimi's own providers on models that can turn thinking off; other providers ignore it silently; the plugin cannot verify it). `--no-thinking` is rejected; use `--thinking off`
51
51
  - do not invent flags. The runtime hard-fails with `INVALID_ARGS` on unknown flag-shaped tokens — pass `--` before flag-shaped objective text to forward it as objective text rather than a flag
52
52
  - **this is write-capable, but the blast radius is bounded by construction — and PATCH-ONLY is the load-bearing safety property.** Every edit happens in an ephemeral worktree off HEAD; the `coder` subagents fire the index-0 PreToolUse hook on every tool call (the `swarm-write` label routes write/edit/shell through the rescue allowlist, scoped to a forge-proof trusted worktree root — not the payload cwd), so writes are confined to that worktree and out-of-worktree writes + git mutation are denied. The result is a `.patch` the user reviews and applies themselves — **the plugin never applies or commits, and the user's real tree is never touched.** Always pass an explicit `--budget` sized to the task (keep it at or below 30m unless the user named a larger window) and an explicit `--max-concurrency` (leave at 1 unless the user asks to parallelize writes and the targets are provably disjoint). Never try to remove these bounds
53
53
  - swarm-write **bases the worktree on HEAD: uncommitted changes are NOT included.** If the user has a dirty tree the runtime warns; surface that and suggest committing or stashing first if the swarm needs those changes
54
- - Exact CLI 2.6.2/2.6.3/2.7.2 counts simultaneous Kimi child-agent turns, excluding the coordinator and OS subprocesses started by allowed tests. Fresh-only waves require at least two entries; group odd target counts into disjoint entries or resume an own-session child for remaining work. A stuck child holds its wave until completion or finite whole-job stop. Kimi workers cannot explicitly background Bash, and native automatic backgrounding is disabled for parallel sessions. Normal exit and cancellation settle verified owned processes before patch capture; individual Bash timeout does not prove descendant quiescence between waves.
54
+ - Exact CLI 2.6.2/2.6.3/2.7.2/2.7.3 counts simultaneous Kimi child-agent turns, excluding the coordinator and OS subprocesses started by allowed tests. Fresh-only waves require at least two entries; group odd target counts into disjoint entries or resume an own-session child for remaining work. A stuck child holds its wave until completion or finite whole-job stop. Kimi workers cannot explicitly background Bash, and native automatic backgrounding is disabled for parallel sessions. Normal exit and cancellation settle verified owned processes before patch capture; individual Bash timeout does not prove descendant quiescence between waves.
55
55
  - Parallel native Bash uses a 60-second default and 300-second maximum foreground timeout, killing commands on expiry. Choose `--max-concurrency 1` for longer tests: automatic timeout-to-background remains available there, while root-agent turns stay sequential and whole-job settlement still gates patch capture.
56
56
  - swarm-write is foreground-only **at the runtime level** — `--background`, `--wait`, `--fresh`, and `--resume` are rejected with `INVALID_ARGS`. The caller's host Bash launch is separate from the Kimi worker tools above: **default to `run_in_background: true`.** A fan-out routinely outlives a foreground shell timeout (Claude Code caps foreground Bash at 10 minutes; `--budget` defaults to 30m), and the run remains patch-only and worktree-confined. Keep `--budget` and `--max-concurrency` finite; never make a detached run open-ended
57
57
  - **the user should never have to type a job id** (it is a raw UUID), and you will not have one either — a detached run prints nothing at launch; the job id only reaches you with the final report. So cancel by omitting it: `${CLAUDE_PLUGIN_ROOT}/scripts/companion.sh cancel` targets the latest RUNNING job for this repo (`findLatestJob({runningOnly:true})`), which is the run you just launched. Pass an explicit id only if you already have one from a completed report. Note the ambiguity: with two runs in flight, the no-id form takes the most recent — if the user has more than one going, confirm which they mean before cancelling
58
58
  - **prefer `companion.sh cancel` over an Esc/interrupt, and say so if the user asks how to stop it.** A harness interrupt gives the companion only ~1.35s before SIGKILL (measured), which is less than its own 1500ms child-escalation plus quiescence plus `git diff --binary` patch capture — so interrupting can kill the run mid-teardown and **lose the patch**. The cancel command signals the job from a separate process that is not racing that deadline, so teardown completes and the partial patch survives
59
59
  - swarm-write **REFUSES without the `/kimi:setup` PreToolUse hook** (a write fan-out with no per-subagent enforcement is an N-fold blast radius). If the companion refuses, surface that and tell the user to run `/kimi:setup`; do not reach for `KIMI_PLUGIN_CC_SKIP_HOOK_CHECK`
60
- - requires an exact certified CLI, at least 0.18.0, and a Git repo with committed HEAD; exact 2.6.2/2.6.3/2.7.2 uses bounded waves or a direct worker, while older versions retain their recovery limitation. Surface `WRITE_SWARM_NOT_A_REPO` / `WRITE_SWARM_NO_HEAD` plainly
60
+ - requires an exact certified CLI, at least 0.18.0, and a Git repo with committed HEAD; exact 2.6.2/2.6.3/2.7.2/2.7.3 uses bounded waves or a direct worker, while older versions retain their recovery limitation. Surface `WRITE_SWARM_NOT_A_REPO` / `WRITE_SWARM_NO_HEAD` plainly
61
61
  - `/kimi:result <jobId> --json` returns a structured envelope with metadata plus the artifact body.
62
62
 
63
63
  When swarm-write completes:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: kimi-swarm
3
- description: "Use this agent ONLY when the user has explicitly asked for a READ-ONLY review fanned out in PARALLEL across many independent targets (files, modules, or questions) at once — a user-scoped whole-directory or repo-wide audit where one subagent per target is the point. Requires BOTH signals: many independent targets AND an explicit request for parallel fan-out. Do NOT auto-promote a single, unscoped, or diff-shaped review into a per-file swarm — use kimi-review for a single working-tree/branch diff or any review the user did not scope as a fan-out. Read-only (every subagent is hook-denied writes — zero write surface), bounded by a hard wall-clock --budget and version-specific concurrency control (hard bounded waves or one direct worker on exact CLI 2.6.2/2.6.3/2.7.2; normal-launch limits on older certified versions); requires the /kimi:setup PreToolUse hook and refuses without it. Not for writes (see kimi-rescue) or free-form Q&A (see kimi-ask)."
3
+ description: "Use this agent ONLY when the user has explicitly asked for a READ-ONLY review fanned out in PARALLEL across many independent targets (files, modules, or questions). Requires BOTH signals: many independent targets AND an explicit request for parallel fan-out. Do NOT auto-promote a single, unscoped, or diff-shaped review into a swarm (use kimi-review). Bounded by a hard --budget and version-specific --max-concurrency; requires the /kimi:setup PreToolUse hook and refuses without it. Not for writes (see kimi-rescue) or free-form Q&A (see kimi-ask)."
4
4
  model: sonnet
5
5
  tools: Bash
6
6
  color: green
@@ -42,13 +42,13 @@ When invoked:
42
42
  - decide whether the task is a BROAD read-only fan-out rather than a single-diff review (kimi-review), free-form ask (kimi-ask), or implementation (kimi-rescue); for one working-tree or branch diff, use kimi-review instead
43
43
  - preserve the user's review scope as the trailing focus text — what to review across the workspace — with minimal reframing
44
44
  - call the shared companion runtime with one Bash invocation after any model-discovery step: `${CLAUDE_PLUGIN_ROOT}/scripts/companion.sh task swarm <args>`
45
- - the companion accepts a **strict allowlist** of flags: `--thinking <off|low|medium|high>` (requested per run), `--budget <duration>` (HARD wall-clock ceiling; e.g. `30m`, `1h`, `90s`; bare number = minutes; default 30m), `--cap <N>` (SOFT total-subagent-count hint injected into the coordinator prompt — advisory, the hook does not maintain a lifetime-total count), `--max-concurrency <N>` (**defaults to 4**; exact CLI 2.6.2/2.6.3/2.7.2 uses one direct worker at 1 and bounded waves at 2 or more; older certified versions retain normal-launch limits and the recovery overrun), and `-m`/`--model <name>`. Everything else is trailing focus text. Reasoning behavior follows the selected model and Kimi configuration unless `--thinking <effort>` requests one for this run (honoured by Kimi's own providers on models that can turn thinking off; other providers ignore it silently; the plugin cannot verify it). `--no-thinking` is rejected; use `--thinking off`
45
+ - the companion accepts a **strict allowlist** of flags: `--thinking <off|low|medium|high>` (requested per run), `--budget <duration>` (HARD wall-clock ceiling; e.g. `30m`, `1h`, `90s`; bare number = minutes; default 30m), `--cap <N>` (SOFT total-subagent-count hint injected into the coordinator prompt — advisory, the hook does not maintain a lifetime-total count), `--max-concurrency <N>` (**defaults to 4**; exact CLI 2.6.2/2.6.3/2.7.2/2.7.3 uses one direct worker at 1 and bounded waves at 2 or more; older certified versions retain normal-launch limits and the recovery overrun), and `-m`/`--model <name>`. Everything else is trailing focus text. Reasoning behavior follows the selected model and Kimi configuration unless `--thinking <effort>` requests one for this run (honoured by Kimi's own providers on models that can turn thinking off; other providers ignore it silently; the plugin cannot verify it). `--no-thinking` is rejected; use `--thinking off`
46
46
  - do not invent flags. The runtime hard-fails with `INVALID_ARGS` on unknown flag-shaped tokens — pass `--` before flag-shaped objective text to forward it as scope text rather than a flag
47
- - **Keep the finite runtime bounds.** Read-only workers deny writes and shell through the managed hook. `--max-concurrency` defaults to 4 and `--budget` to 30m. Exact CLI 2.6.2/2.6.3/2.7.2 enforces bounded waves, or a direct worker at 1; older certified versions retain the disclosed recovery overrun. Pass an explicit concurrency sized to the targets (raise only when the user asks) and keep the budget at or below 30m unless the user requests more. Neither a time budget nor concurrency is a dollar or lifetime-token cap.
48
- - Exact CLI 2.6.2/2.6.3/2.7.2 counts simultaneous Kimi child-agent turns, excluding the coordinator and OS subprocesses. Fresh-only waves require at least two entries; group odd target counts into disjoint entries or resume an own-session child for remaining work. A stuck child holds its wave until completion or finite whole-job stop. Normal exit and cancellation require verified owned-process settlement before returning artifacts.
47
+ - **Keep the finite runtime bounds.** Read-only workers deny writes and shell through the managed hook. `--max-concurrency` defaults to 4 and `--budget` to 30m. Exact CLI 2.6.2/2.6.3/2.7.2/2.7.3 enforces bounded waves, or a direct worker at 1; older certified versions retain the disclosed recovery overrun. Pass an explicit concurrency sized to the targets (raise only when the user asks) and keep the budget at or below 30m unless the user requests more. Neither a time budget nor concurrency is a dollar or lifetime-token cap.
48
+ - Exact CLI 2.6.2/2.6.3/2.7.2/2.7.3 counts simultaneous Kimi child-agent turns, excluding the coordinator and OS subprocesses. Fresh-only waves require at least two entries; group odd target counts into disjoint entries or resume an own-session child for remaining work. A stuck child holds its wave until completion or finite whole-job stop. Normal exit and cancellation require verified owned-process settlement before returning artifacts.
49
49
  - swarm is **foreground-only** — do not pass `--background`, `--wait`, `--fresh`, or `--resume` (the parser rejects them with `INVALID_ARGS`). Default to foreground so the run stays watchable. Detach the Bash call with `run_in_background: true` ONLY when the user explicitly asks for fire-and-forget, and only with a finite `--max-concurrency` and a reduced `--budget` (a backgrounded fan-out has no human watching it to Ctrl+C); after launching, tell the user to check `/kimi:status` for progress
50
50
  - swarm **REFUSES without the `/kimi:setup` PreToolUse hook**, matching every model-spawning command. If the companion refuses, surface that and tell the user to run `/kimi:setup`; do not reach for `KIMI_PLUGIN_CC_SKIP_HOOK_CHECK`
51
- - requires an exact certified CLI (legacy minimum 0.12.0); older versions gain normal-launch concurrency support at 0.18.0, while exact 2.6.2/2.6.3/2.7.2 uses the bounded-wave/direct-worker construction
51
+ - requires an exact certified CLI (legacy minimum 0.12.0); older versions gain normal-launch concurrency support at 0.18.0, while exact 2.6.2/2.6.3/2.7.2/2.7.3 uses the bounded-wave/direct-worker construction
52
52
  - `/kimi:result <jobId> --json` returns a structured envelope with metadata plus the artifact body.
53
53
 
54
54
  When swarm completes:
package/commands/swarm.md CHANGED
@@ -19,15 +19,15 @@ Supported flags:
19
19
  - `--write` — fan out EDITS (not just review). Requires kimi-code **>= 0.18.0**, a git repo with a committed HEAD, and the PreToolUse hook. Bases the worktree on HEAD: **uncommitted changes are NOT included** (you'll get a warning) — commit or stash first if the swarm needs them. `--write` is also reachable via the model-invocable `kimi-swarm-write` subagent, with strict triggering (many disjoint write targets AND explicit fan-out intent); auto-dispatch widens no write surface and keeps every bound, and the slash command itself stays human-only.
20
20
  - `--budget <duration>` — HARD wall-clock ceiling (e.g. `30m`, `1h`, `90s`; bare number = minutes). Default 30m. The always-on bound on cost/runaway.
21
21
  - `--cap <N>` — SOFT cap on TOTAL subagent count: injected into the prompt as a model instruction. Advisory, not hook-enforced (the hook does not maintain a lifetime-total count), so the model may exceed it. Bounds lifetime total, not peak parallelism.
22
- - `--max-concurrency <N>` — defaults to **4 for read, 1 for `--write`**. On exact CLI 2.6.2/2.6.3/2.7.2, 1 selects a direct worker with delegation denied; 2 or more bounds simultaneous Kimi child-agent turns, counting fresh plus resumed entries per wave. Fresh-only waves need at least two entries: group multiple targets into disjoint entries or resume an own-session child for an odd remainder. OS subprocesses started by allowed tests are outside this count. Older certified versions use normal-launch limits on CLI 0.18.0+ and retain their rate-limit-recovery overrun. Distinct from `--cap`: simultaneous concurrency is not a lifetime-total count.
22
+ - `--max-concurrency <N>` — defaults to **4 for read, 1 for `--write`**. On exact CLI 2.6.2/2.6.3/2.7.2/2.7.3, 1 selects a direct worker with delegation denied; 2 or more bounds simultaneous Kimi child-agent turns, counting fresh plus resumed entries per wave. Fresh-only waves need at least two entries: group multiple targets into disjoint entries or resume an own-session child for an odd remainder. OS subprocesses started by allowed tests are outside this count. Older certified versions use normal-launch limits on CLI 0.18.0+ and retain their rate-limit-recovery overrun. Distinct from `--cap`: simultaneous concurrency is not a lifetime-total count.
23
23
  - `-m`, `--model <name>`
24
24
 
25
25
  Prototype limitations:
26
26
 
27
- - On exact CLI 2.6.2/2.6.3/2.7.2, a stuck child holds its wave until completion or finite whole-job stop. Native Bash backgrounding is disabled in parallel sessions, and explicit background Bash is denied for Kimi workers. Normal exit and cancellation settle verified owned processes before artifact or patch capture; an individual Bash timeout is not a descendant barrier between waves. This restriction concerns tools inside Kimi, separately from the caller's shell launch below.
27
+ - On exact CLI 2.6.2/2.6.3/2.7.2/2.7.3, a stuck child holds its wave until completion or finite whole-job stop. Native Bash backgrounding is disabled in parallel sessions, and explicit background Bash is denied for Kimi workers. Normal exit and cancellation settle verified owned processes before artifact or patch capture; an individual Bash timeout is not a descendant barrier between waves. This restriction concerns tools inside Kimi, separately from the caller's shell launch below.
28
28
  - Parallel Bash has a 60-second default and 300-second maximum foreground timeout; it kills commands on expiry. Use `--max-concurrency 1` for longer tests. Native automatic timeout-to-background remains available at 1, with sequential root-agent turns and whole-job settlement before result capture.
29
29
  - **No `--background` flag** — the runtime has no detached-worker mode for swarm. That is separate from how the *caller* runs the shell command: for `--write` (30m default budget vs a 10-minute foreground Bash cap) detaching the call is expected; for a read-only fan-out the default stays foreground and detaching is a per-request choice. `--budget` and `--max-concurrency` stay finite either way, and budget expiry still captures the patch/report. To stop a run, just say so — the stop path is `companion.sh cancel` with no id (it targets the latest running job for this repo). For `--write`, prefer that over Esc: an interrupt can kill the run mid-teardown and lose the captured patch.
30
- - Read-only swarm requires an exact certified CLI (legacy minimum 0.12.0); `--write` additionally requires at least 0.18.0 and committed HEAD. Both refuse without the managed PreToolUse hook. Exact 2.6.2/2.6.3/2.7.2 has the bounded-wave/direct-worker paths; older certified versions retain their documented concurrency limits.
30
+ - Read-only swarm requires an exact certified CLI (legacy minimum 0.12.0); `--write` additionally requires at least 0.18.0 and committed HEAD. Both refuse without the managed PreToolUse hook. Exact 2.6.2/2.6.3/2.7.2/2.7.3 has the bounded-wave/direct-worker paths; older certified versions retain their documented concurrency limits.
31
31
 
32
32
  Return the companion stdout verbatim.
33
33
 
@@ -966,7 +966,7 @@ function buildArgs(opts) {
966
966
  ? opts.env.KIMI_PLUGIN_CC_SMOKE_V2_CANDIDATE
967
967
  : undefined;
968
968
  if (opts.resumeSessionId === undefined &&
969
- ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2"].includes(opts.executionPlan.kimiVersion ?? smokeCandidate ?? "")) {
969
+ ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2", "2.7.3"].includes(opts.executionPlan.kimiVersion ?? smokeCandidate ?? "")) {
970
970
  args.push("--environment", "local");
971
971
  }
972
972
  if (opts.resumeSessionId !== undefined) {
@@ -977,12 +977,12 @@ async function collectKimiVersionWarnings(env, warnings) {
977
977
  warnings.push(formatVersionOutOfRangeWarning(probe, KIMI_PLUGIN_CC_VERSION, NATIVE_V2_ANY_OPERATION_VERSIONS));
978
978
  return;
979
979
  }
980
- if (probe.version === "2.6.2" || probe.version === "2.6.3" || probe.version === "2.7.2") {
980
+ if (probe.version === "2.6.2" || probe.version === "2.6.3" || probe.version === "2.7.2" || probe.version === "2.7.3") {
981
981
  warnings.push(`NOTE: kimi-code ${probe.version} is certified for all operations. Swarm uses bounded waves with concurrency 2 or more, and one direct worker at concurrency 1. The finite job budget stops the whole run.`);
982
982
  return;
983
983
  }
984
984
  if (NATIVE_V2_NON_SWARM_VERSIONS.includes(probe.version)) {
985
- warnings.push(`NOTE: kimi-code ${probe.version} is certified for review, challenge, ask, rescue, review gate, and pursue only. Read-only swarm and write swarm refuse before model spawn on this exact release. Select exact kimi-code 2.6.2, 2.6.3 or 2.7.2 for this plugin's certified bounded waves and single-worker path.`);
985
+ warnings.push(`NOTE: kimi-code ${probe.version} is certified for review, challenge, ask, rescue, review gate, and pursue only. Read-only swarm and write swarm refuse before model spawn on this exact release. Select exact kimi-code 2.6.2, 2.6.3, 2.7.2 or 2.7.3 for this plugin's certified bounded waves and single-worker path.`);
986
986
  }
987
987
  }
988
988
  /**
@@ -24,7 +24,7 @@ import { buildKimiSessionTitle, syncKimiSessionTitle } from "../session-title.js
24
24
  import { usesBoundedSwarmPolicy } from "../swarm-policy.js";
25
25
  // /kimi:swarm — parallel fan-out, read-only by default and runtime-foreground-only.
26
26
  // A finite wall-clock budget bounds the whole run. --cap is a SOFT total-count
27
- // prompt hint. Exact native-v2 2.6.2/2.6.3/2.7.2 bounds admitted waves and prevents native
27
+ // prompt hint. Exact native-v2 2.6.2/2.6.3/2.7.2/2.7.3 bounds admitted waves and prevents native
28
28
  // child timeouts from returning a continuing coordinator before children stop.
29
29
  // Concurrency 1 uses a direct worker without native fan-out. Older versions keep
30
30
  // their normal-launch setting and inherited recovery limitation. Read/write
@@ -34,14 +34,14 @@ import { usesBoundedSwarmPolicy } from "../swarm-policy.js";
34
34
  // kimi-code 0.18.0+. Exact 2.3.2, 2.3.3, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.5.2,
35
35
  // and certified 2.5.3 activate a same-job session through a bounded loopback
36
36
  // web lifecycle, then resume it through the normal print path. 2.6.2/2.6.3 parallel
37
- // waves, 2.7.2 JSON-authenticated waves, and candidate-only 2.6.0 use that lifecycle too. The per-operation certification
37
+ // waves, 2.7.2/2.7.3 JSON-authenticated waves, and candidate-only 2.6.0 use that lifecycle too. The per-operation certification
38
38
  // table controls whether each exact version is reachable in production.
39
39
  const SWARM_SUMMARY_MAX = 120;
40
40
  const SWARM_AGENT_PROFILE = "<swarm>";
41
41
  const SWARM_WRITE_AGENT_PROFILE = "<swarm-write>";
42
42
  /**
43
43
  * Default concurrency setting when the user passes no `--max-concurrency`.
44
- * Exact native-v2 2.6.2/2.6.3/2.7.2 also enforces this as the admitted wave size. The plugin exports
44
+ * Exact native-v2 2.6.2/2.6.3/2.7.2/2.7.3 also enforces this as the admitted wave size. The plugin exports
45
45
  * KIMI_CODE_AGENT_SWARM_MAX_CONCURRENCY; older read-only swarms ignore it and
46
46
  * retain only the wall-clock hard bound. Rate-limit recovery can exceed it on
47
47
  * older reviewed sources; their setting is not an unconditional peak guarantee.
@@ -57,7 +57,7 @@ export function resolveSwarmMaxConcurrency(requested) {
57
57
  return requested ?? SWARM_DEFAULT_MAX_CONCURRENCY;
58
58
  }
59
59
  /**
60
- * Default concurrency for WRITE mode — 1 vs read's 4. Exact native-v2 2.6.2/2.6.3/2.7.2
60
+ * Default concurrency for WRITE mode — 1 vs read's 4. Exact native-v2 2.6.2/2.6.3/2.7.2/2.7.3
61
61
  * runs one direct worker; older versions serialize normal child launches but
62
62
  * retain the rate-limit recovery overrun. Disjoint-target partitioning remains
63
63
  * prompt-only when parallel workers are explicitly requested.
@@ -146,7 +146,7 @@ export function decideHookOutcomePure(input, ctx) {
146
146
  // AgentSwarm are allowed and the singular Agent stays denied. This adds
147
147
  // no direct tool-write permission within the repository/Git trust
148
148
  // boundary: read-only Git context commands still trust repository Git
149
- // configuration and can execute configured helpers. Exact 2.6.2/2.6.3/2.7.2 waves
149
+ // configuration and can execute configured helpers. Exact 2.6.2/2.6.3/2.7.2/2.7.3 waves
150
150
  // pass the admission guard above; fresh children cannot activate swarm
151
151
  // mode. Older paths retain their inherited scheduler limitations.
152
152
  if (READ_ONLY_TOOLS.has(toolName) || toolName === AGENT_SWARM_TOOL) {
@@ -597,8 +597,8 @@ function validateVersionSensitiveEvents(events, version) {
597
597
  // 2.3.0 (b5e28fd6), 2.3.1 (684bae9e), 2.3.2 (b8dd3a13), 2.3.3 (ec495f0c),
598
598
  // 2.4.0 (f26e4d91), 2.4.1 (2c73f3f5), 2.5.0 (41c34143), 2.5.1 (1b02030d),
599
599
  // 2.5.2 (1c142a00), 2.5.3 (5af9942e), 2.6.0 (740d6c0b), 2.6.2
600
- // (6a8493df), 2.6.3 (b0de2fbd), and 2.7.2 (56145f84): the additive events
601
- // and HookDefSchema are unchanged. Schema acceptance does not certify operations.
600
+ // (6a8493df), 2.6.3 (b0de2fbd), 2.7.2 (56145f84), and 2.7.3 (a8f643ad):
601
+ // the additive events and HookDefSchema are unchanged. Schema acceptance does not certify operations.
602
602
  // Require the full version string AND matching components; no inferred 2.x compatibility.
603
603
  if (version.major === 2 && ((version.minor === 0 && ((version.version === "2.0.0" && version.patch === 0) ||
604
604
  (version.version === "2.0.1" && version.patch === 1) ||
@@ -619,7 +619,8 @@ function validateVersionSensitiveEvents(events, version) {
619
619
  (version.minor === 6 && ((version.version === "2.6.0" && version.patch === 0) ||
620
620
  (version.version === "2.6.2" && version.patch === 2) ||
621
621
  (version.version === "2.6.3" && version.patch === 3))) ||
622
- (version.minor === 7 && version.version === "2.7.2" && version.patch === 2))) {
622
+ (version.minor === 7 && ((version.version === "2.7.2" && version.patch === 2) ||
623
+ (version.version === "2.7.3" && version.patch === 3))))) {
623
624
  return { valid: true };
624
625
  }
625
626
  if (version.major !== 0) {
@@ -52,6 +52,7 @@ export const NATIVE_V2_CERTIFIED_VERSIONS = Object.freeze([
52
52
  "2.6.2",
53
53
  "2.6.3",
54
54
  "2.7.2",
55
+ "2.7.3",
55
56
  ]);
56
57
  /**
57
58
  * Exact releases certified only for review, challenge, ask, rescue, review_gate
@@ -571,7 +572,7 @@ function nativeV2NotCertified(operationKind, version) {
571
572
  if (normalized !== undefined &&
572
573
  NATIVE_V2_NON_SWARM_VERSIONS.includes(normalized) &&
573
574
  (operationKind === "swarm" || operationKind === "swarm-write")) {
574
- return new RuntimeError("KIMI_CAPABILITY_NOT_CERTIFIED", `Refusing ${operationKind}: kimi-code ${normalized} is certified only for non-swarm operations (review, challenge, ask, rescue, review_gate, pursue). Its native rate-limit recovery can exceed AgentSwarm's configured maximum, so this exact release refuses swarm before model spawn. Select exact kimi-code 2.6.2, 2.6.3 or 2.7.2 for this plugin's certified bounded waves and single-worker path, or use a non-swarm operation on ${normalized}.`, "kimi-engine.capability", {
575
+ return new RuntimeError("KIMI_CAPABILITY_NOT_CERTIFIED", `Refusing ${operationKind}: kimi-code ${normalized} is certified only for non-swarm operations (review, challenge, ask, rescue, review_gate, pursue). Its native rate-limit recovery can exceed AgentSwarm's configured maximum, so this exact release refuses swarm before model spawn. Select exact kimi-code 2.6.2, 2.6.3, 2.7.2 or 2.7.3 for this plugin's certified bounded waves and single-worker path, or use a non-swarm operation on ${normalized}.`, "kimi-engine.capability", {
575
576
  details: {
576
577
  refusal_kind: "v2-swarm-not-certified",
577
578
  certification_scope: "non-swarm",
@@ -23,7 +23,7 @@ export const KIMI_PURSUE_DEFAULT_BUDGET_MS = 2_700_000; // 45 minutes
23
23
  * Swarm (read-only parallel fan-out) DEFAULT wall-clock ceiling when the user
24
24
  * passes no `--budget`. Read-only swarm opens no write surface, so the only new
25
25
  * risk is cost/runaway from repeated model work. This AbortController bounds
26
- * the whole job; `--cap` remains a soft lifetime-count hint. Exact 2.6.2/2.6.3/2.7.2 also
26
+ * the whole job; `--cap` remains a soft lifetime-count hint. Exact 2.6.2/2.6.3/2.7.2/2.7.3 also
27
27
  * bounds wave cardinality and prevents child timeouts from overlapping waves;
28
28
  * a requested concurrency of one runs a direct worker. Sized like the single-turn
29
29
  * review budget — a swarm fans review work out in parallel within one process,
@@ -65,7 +65,7 @@ const CAP_PROPERTY = {
65
65
  const MAX_CONCURRENCY_PROPERTY = {
66
66
  type: "integer",
67
67
  minimum: 1,
68
- description: "Concurrent worker limit on exact Kimi Code 2.6.2/2.6.3/2.7.2: one runs directly; larger values bound each native swarm wave. Older certified versions limit normal launches only and recovery can exceed it. Distinct from the soft total cap.",
68
+ description: "Concurrent worker limit on exact Kimi Code 2.6.2/2.6.3/2.7.2/2.7.3: one runs directly; larger values bound each native swarm wave. Older certified versions limit normal launches only and recovery can exceed it. Distinct from the soft total cap.",
69
69
  };
70
70
  const START_RESULT_GUIDANCE = "Task-capable clients receive an MCP task. Other clients receive a job ID immediately after launch; use kimi_job_status and kimi_job_result until terminal, and kimi_job_cancel to stop. Do not present a launch handle as the finished answer.";
71
71
  function schema(properties, required = []) {
@@ -13,8 +13,8 @@ import { usesBoundedSwarmPolicy } from "./swarm-policy.js";
13
13
  import { installBoundedSwarmToolPolicy } from "./swarm-tool-policy.js";
14
14
  import { collectDescendantIdentities, collectProcessGroupsIdentities, probeProcessIdentity, revalidateProcessIdentities, waitForProcessTreeExit, } from "./process-tree.js";
15
15
  // These exact activation entries support candidate integration; production scope is per operation.
16
- const PREACTIVATION_VERSIONS = ["2.3.2", "2.3.3", "2.4.0", "2.4.1", "2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2"];
17
- const JSON_READY_VERSION = "2.7.2";
16
+ const PREACTIVATION_VERSIONS = ["2.3.2", "2.3.3", "2.4.0", "2.4.1", "2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2", "2.7.3"];
17
+ const JSON_READY_VERSIONS = ["2.7.2", "2.7.3"];
18
18
  const KIMI_AGENT_PROTOCOL_VERSION = "1.0.0";
19
19
  const READY_TIMEOUT_MS = 10_000;
20
20
  const REST_TIMEOUT_MS = 5_000;
@@ -152,7 +152,7 @@ async function startWebChild(options, env, expectedVersion, failureCode) {
152
152
  const args = [
153
153
  ...(options.prefixArgs ?? []),
154
154
  "web",
155
- expectedVersion === JSON_READY_VERSION ? "--json" : "--no-open",
155
+ JSON_READY_VERSIONS.includes(expectedVersion) ? "--json" : "--no-open",
156
156
  "--host",
157
157
  "127.0.0.1",
158
158
  "--port",
@@ -274,7 +274,7 @@ async function waitForReadyLine(owned, expectedVersion, signal, failureCode) {
274
274
  const newline = buffered.indexOf("\n");
275
275
  const line = buffered.slice(0, newline).replace(/\r$/, "");
276
276
  buffered = buffered.slice(newline + 1);
277
- if (expectedVersion === JSON_READY_VERSION) {
277
+ if (JSON_READY_VERSIONS.includes(expectedVersion)) {
278
278
  if (line.trim().length === 0)
279
279
  continue;
280
280
  try {
@@ -364,7 +364,7 @@ async function verifyMeta(web, expectedVersion, signal, failureCode) {
364
364
  if (!isRecord(data)) {
365
365
  throw failure(failureCode, "swarm-activation.meta", "Kimi web /meta returned an invalid payload.");
366
366
  }
367
- if (expectedVersion === JSON_READY_VERSION) {
367
+ if (JSON_READY_VERSIONS.includes(expectedVersion)) {
368
368
  if (data.kimi_agent_protocol_version !== KIMI_AGENT_PROTOCOL_VERSION ||
369
369
  !isRecord(data.capabilities) ||
370
370
  data.capabilities.websocket !== true ||
@@ -399,7 +399,7 @@ async function resolveProfileModel(web, options, failureCode) {
399
399
  }
400
400
  async function createSession(web, options, expectedVersion, failureCode) {
401
401
  const request = { metadata: { cwd: options.cwd } };
402
- if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2"].includes(expectedVersion)) {
402
+ if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2", "2.7.3"].includes(expectedVersion)) {
403
403
  request.environment_id = "local";
404
404
  request.environment_cwd = options.cwd;
405
405
  }
@@ -410,7 +410,7 @@ async function createSession(web, options, expectedVersion, failureCode) {
410
410
  return { sessionId: data.id, workspaceId: data.workspace_id };
411
411
  }
412
412
  async function verifyLocalEnvironment(web, identity, expectedCwd, expectedVersion, signal, failureCode) {
413
- if (!["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2"].includes(expectedVersion))
413
+ if (!["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2", "2.7.3"].includes(expectedVersion))
414
414
  return;
415
415
  const data = await restData(web, "GET", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/environment`, undefined, signal, failureCode);
416
416
  if (!isRecord(data)) {
@@ -430,10 +430,10 @@ async function postSwarmProfile(web, identity, active, model, signal, failureCod
430
430
  await restData(web, "POST", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/profile`, { agent_config: agentConfig }, signal, failureCode);
431
431
  }
432
432
  async function verifySwarmStatus(web, identity, active, model, expectedVersion, signal, failureCode) {
433
- const data = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2"].includes(expectedVersion)
433
+ const data = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2", "2.7.3"].includes(expectedVersion)
434
434
  ? await readWebSocketAgentState(web, identity.sessionId, expectedVersion, signal, failureCode)
435
435
  : await restData(web, "GET", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/status`, undefined, signal, failureCode);
436
- const source = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2"].includes(expectedVersion) ? "agent state" : "/status";
436
+ const source = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2", "2.7.3"].includes(expectedVersion) ? "agent state" : "/status";
437
437
  if (!isRecord(data)) {
438
438
  throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} returned an invalid payload.`);
439
439
  }
@@ -443,10 +443,10 @@ async function verifySwarmStatus(web, identity, active, model, expectedVersion,
443
443
  if (data.plan_mode !== false) {
444
444
  throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} did not confirm plan mode is off.`);
445
445
  }
446
- if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2"].includes(expectedVersion) && data.tower_mode !== false) {
446
+ if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2", "2.7.3"].includes(expectedVersion) && data.tower_mode !== false) {
447
447
  throw failure(failureCode, "swarm-activation.status", "Kimi web agent state did not confirm tower mode is off.");
448
448
  }
449
- const permission = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2"].includes(expectedVersion) ? data.permission_mode : data.permission;
449
+ const permission = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3", "2.7.2", "2.7.3"].includes(expectedVersion) ? data.permission_mode : data.permission;
450
450
  if (permission !== "auto") {
451
451
  throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} did not confirm auto permission mode.`);
452
452
  }
@@ -462,7 +462,7 @@ async function readWebSocketAgentState(web, sessionId, expectedVersion, signal,
462
462
  return await new Promise((resolve, reject) => {
463
463
  let socket;
464
464
  const bearerProtocol = `kimi-code.bearer.${web.token}`;
465
- const legacyControl = !["2.6.0", "2.6.2", "2.6.3", "2.7.2"].includes(expectedVersion);
465
+ const legacyControl = !["2.6.0", "2.6.2", "2.6.3", "2.7.2", "2.7.3"].includes(expectedVersion);
466
466
  const helloId = `swarm-activation-hello-${randomUUID()}`;
467
467
  const subscribeId = `swarm-activation-subscribe-${randomUUID()}`;
468
468
  try {
@@ -7,7 +7,7 @@ export const BOUNDED_SWARM_POLICY = "bounded-waves/1";
7
7
  export const SWARM_CHILD_TIMEOUT_MS = 2_147_483_647;
8
8
  export function usesBoundedSwarmPolicy(plan) {
9
9
  return plan.intendedEngine === "native-v2" &&
10
- (plan.kimiVersion === "2.6.2" || plan.kimiVersion === "2.6.3" || plan.kimiVersion === "2.7.2") &&
10
+ (plan.kimiVersion === "2.6.2" || plan.kimiVersion === "2.6.3" || plan.kimiVersion === "2.7.2" || plan.kimiVersion === "2.7.3") &&
11
11
  (plan.operationKind === "swarm" || plan.operationKind === "swarm-write");
12
12
  }
13
13
  function plainObject(value) {
package/dist/version.js CHANGED
@@ -4,4 +4,4 @@
4
4
  // and AGENTS.md on every release. A future improvement would read this from
5
5
  // package.json at build time, but that adds a build-step dependency we
6
6
  // don't want yet.
7
- export const KIMI_PLUGIN_CC_VERSION = "2.7.2";
7
+ export const KIMI_PLUGIN_CC_VERSION = "2.7.3";
package/docs/migration.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Compatibility and upgrades
2
2
 
3
- The runtime certifies exact CLI releases per operation. Plugin 2.6.2 adds bounded swarm on exact stock CLI 2.6.2; see the [certification receipt](upstream-2.6.2-certification.md) for validation status. Plugin 2.6.3 additionally certifies exact CLI 2.6.3 with a separate [release receipt](upstream-2.6.3-certification.md); the immutable GitHub/npm release and fresh registry verification are complete. Plugin 2.7.2 certifies exact CLI 2.7.2 with separate [certification evidence](upstream-2.7.2-certification.md); publication does not change the compatibility matrix. Exact 2.6.0 remains non-swarm-only. Older full-operation rows through 2.5.3 keep their inherited recovery limitation. `NATIVE_V2_CERTIFIED_VERSIONS` is the all-operation export, and `NATIVE_V2_ANY_OPERATION_VERSIONS` is the scoped union. Other versions, including 2.6.1, 2.6.4, 2.7.0, 2.7.1 and 2.7.3, are not accepted automatically. The npm channel does not change the compatibility matrix.
3
+ The runtime certifies exact CLI releases per operation. Plugin 2.6.2 adds bounded swarm on exact stock CLI 2.6.2; see the [certification receipt](upstream-2.6.2-certification.md) for validation status. Plugin 2.6.3 additionally certifies exact CLI 2.6.3 with a separate [release receipt](upstream-2.6.3-certification.md); the immutable GitHub/npm release and fresh registry verification are complete. Plugin 2.7.2 certifies exact CLI 2.7.2 with separate [certification evidence](upstream-2.7.2-certification.md). Plugin 2.7.3 adds exact CLI 2.7.3 under the same construction with a separate [certification record](upstream-2.7.3-certification.md); publication does not change the compatibility matrix. Exact 2.6.0 remains non-swarm-only. Older full-operation rows through 2.5.3 keep their inherited recovery limitation. `NATIVE_V2_CERTIFIED_VERSIONS` is the all-operation export, and `NATIVE_V2_ANY_OPERATION_VERSIONS` is the scoped union. Other versions, including 2.6.1, 2.6.4, 2.7.0, 2.7.1 and 2.7.4, are not accepted automatically. The npm channel does not change the compatibility matrix.
4
4
 
5
5
  Plugin 2.5.1 also adds DeepSeek Harness as a third host with all seven operations and a DSH-specific bundle, data root, and managed hook id. Existing Claude Code and Codex certification, job stores, and host-scoped hooks are unchanged; no migration is required for those hosts. New DSH installations follow the [README DSH section](../README.md#install-in-deepseek-harness), including `/kimi-setup` on that host.
6
6
 
@@ -22,11 +22,11 @@ Parallel Bash commands use the native 60-second default foreground timeout, with
22
22
 
23
23
  ## Native parallel swarm activation
24
24
 
25
- Upstream 2.3.2 removes model self-activation of `AgentSwarm` in fresh print sessions. On exact 2.3.2, 2.3.3, 2.4.0, 2.4.1 and 2.5.0/2.5.1/2.5.2/2.5.3, plus the exact-2.6.2/2.6.3/2.7.2 parallel paths, swarm commands and MCP calls use the same `runSwarm` lifecycle. The direct single-worker path skips it:
25
+ Upstream 2.3.2 removes model self-activation of `AgentSwarm` in fresh print sessions. On exact 2.3.2, 2.3.3, 2.4.0, 2.4.1 and 2.5.0/2.5.1/2.5.2/2.5.3, plus the exact-2.6.2/2.6.3/2.7.2/2.7.3 parallel paths, swarm commands and MCP calls use the same `runSwarm` lifecycle. The direct single-worker path skips it:
26
26
 
27
- 1. A short-lived `web --no-open --host 127.0.0.1 --port 0 --log-level error` process uses authenticated loopback routes to verify the exact v2 server, choose the explicit or configured default model, create a session, bind the model and auto permission, enable and verify `swarm_mode`, and shut down. Exact 2.7.2 instead uses `web --json` with an in-memory ephemeral token, a validated loopback origin and `/api/v1/ws`, and KAP 1.0.0/WebSocket meta proof without a legacy backend field. On exact 2.5.0/2.5.1/2.5.2/2.5.3 and the bounded 2.6.2/2.6.3/2.7.2 paths, creation explicitly selects the local environment and an authenticated `/environment` read proves its cwd before profile mutation; state verification uses protocol-v2 or direct-subscription WebSocket main-agent frames because `/status` was removed. The child environment sets `KIMI_CODE_SESSION_IDLE_RECLAIM_MS=0` to disable ambient idle-session reclamation.
27
+ 1. A short-lived `web --no-open --host 127.0.0.1 --port 0 --log-level error` process uses authenticated loopback routes to verify the exact v2 server, choose the explicit or configured default model, create a session, bind the model and auto permission, enable and verify `swarm_mode`, and shut down. Exact 2.7.2/2.7.3 instead uses `web --json` with an in-memory ephemeral token, a validated loopback origin and `/api/v1/ws`, and KAP 1.0.0/WebSocket meta proof without a legacy backend field. On exact 2.5.0/2.5.1/2.5.2/2.5.3 and the bounded 2.6.2/2.6.3/2.7.2/2.7.3 paths, creation explicitly selects the local environment and an authenticated `/environment` read proves its cwd before profile mutation; state verification uses protocol-v2 or direct-subscription WebSocket main-agent frames because `/status` was removed. The child environment sets `KIMI_CODE_SESSION_IDLE_RECLAIM_MS=0` to disable ambient idle-session reclamation.
28
28
  2. One ordinary `kimi -p -r` prompt runner resumes that session. Its recorded session-id source is `preactivated`, and the returned print session must match it.
29
- 3. A second short-lived web lifecycle rechecks the local binding on 2.5.0/2.5.1/2.5.2/2.5.3/2.6.2/2.6.3/2.7.2, disables swarm mode, verifies the version-appropriate state proof and the `swarm_mode.exit` journal record, and shuts down.
29
+ 3. A second short-lived web lifecycle rechecks the local binding on 2.5.0/2.5.1/2.5.2/2.5.3/2.6.2/2.6.3/2.7.2/2.7.3, disables swarm mode, verifies the version-appropriate state proof and the `swarm_mode.exit` journal record, and shuts down.
30
30
 
31
31
  Activation is inside the job's finite budget. Graceful process close has a bounded 15-second allowance. `runSwarm` solely owns deactivation: normal cleanup uses the remaining budget, while failure recovery has a separate two-second cancellation-aware bound and is never retried. Print/session failures stay primary. The ready token stays in memory and out of logs, and success cannot complete if cleanup fails. Post-mutation identity or process/group uncertainty preserves diagnostics and, for write-swarm, the recovery worktree. Process groups are rechecked after teardown; unknown survivors are unverified and unproven groups are not signalled. Older certified versions still launch swarm directly with `kimi -p`. This narrow lifecycle is not a full RPC transport or a model-driven activation workaround; the managed hook and workspace boundaries still govern every tool call.
32
32
 
@@ -8,7 +8,9 @@ no separate CLI.
8
8
 
9
9
  ## Publishing status
10
10
 
11
- 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). Its frozen-install release gate passes **1,848 tests / 83 expected skips / 0 failures / 24,260 assertions in 611.46 seconds**, the **342-file** package/DSH checks and isolated consumer security. Release-commit CI, GitHub publication, npm OIDC and registry verification receipts are added after those steps complete. Certification and publication do not update installed hosts or operator pins.
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.
12
14
 
13
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.
14
16