kimi-plugin-cc 2.6.2 → 2.6.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 (51) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +12 -2
  4. package/README.md +8 -8
  5. package/agents/kimi-swarm-write.md +4 -4
  6. package/agents/kimi-swarm.md +5 -5
  7. package/commands/swarm.md +3 -3
  8. package/dist/cli-client.js +1 -1
  9. package/dist/commands/setup.js +3 -3
  10. package/dist/commands/swarm.js +4 -4
  11. package/dist/hooks/approval-policy.js +1 -1
  12. package/dist/hooks/config-safety.js +5 -4
  13. package/dist/kimi-engine.js +2 -1
  14. package/dist/kimi-timeouts.js +1 -1
  15. package/dist/mcp/operations.js +1 -1
  16. package/dist/swarm-activation.js +8 -8
  17. package/dist/swarm-policy.js +2 -1
  18. package/dist/version.js +1 -1
  19. package/docs/migration.md +1 -1
  20. package/docs/registry-releases.md +3 -1
  21. package/docs/safety.md +15 -15
  22. package/docs/swarm-recovery.md +3 -3
  23. package/docs/upstream-2.6.2-certification.md +15 -3
  24. package/docs/upstream-2.6.3-certification.md +88 -0
  25. package/package.json +2 -1
  26. package/plugins/kimi-codex/.codex-plugin/plugin.json +1 -1
  27. package/plugins/kimi-codex/dist/cli-client.js +1 -1
  28. package/plugins/kimi-codex/dist/commands/setup.js +3 -3
  29. package/plugins/kimi-codex/dist/commands/swarm.js +4 -4
  30. package/plugins/kimi-codex/dist/hooks/approval-policy.js +1 -1
  31. package/plugins/kimi-codex/dist/hooks/config-safety.js +5 -4
  32. package/plugins/kimi-codex/dist/kimi-engine.js +2 -1
  33. package/plugins/kimi-codex/dist/kimi-timeouts.js +1 -1
  34. package/plugins/kimi-codex/dist/mcp/operations.js +1 -1
  35. package/plugins/kimi-codex/dist/swarm-activation.js +8 -8
  36. package/plugins/kimi-codex/dist/swarm-policy.js +2 -1
  37. package/plugins/kimi-codex/dist/version.js +1 -1
  38. package/plugins/kimi-codex/skills/kimi-swarm/SKILL.md +1 -1
  39. package/plugins/kimi-codex/skills/kimi-swarm-write/SKILL.md +1 -1
  40. package/plugins/kimi-dsh/dist/cli-client.js +1 -1
  41. package/plugins/kimi-dsh/dist/commands/setup.js +3 -3
  42. package/plugins/kimi-dsh/dist/commands/swarm.js +4 -4
  43. package/plugins/kimi-dsh/dist/hooks/approval-policy.js +1 -1
  44. package/plugins/kimi-dsh/dist/hooks/config-safety.js +5 -4
  45. package/plugins/kimi-dsh/dist/kimi-engine.js +2 -1
  46. package/plugins/kimi-dsh/dist/kimi-timeouts.js +1 -1
  47. package/plugins/kimi-dsh/dist/mcp/operations.js +1 -1
  48. package/plugins/kimi-dsh/dist/swarm-activation.js +8 -8
  49. package/plugins/kimi-dsh/dist/swarm-policy.js +2 -1
  50. package/plugins/kimi-dsh/dist/version.js +1 -1
  51. package/plugins/kimi-dsh/package.json +1 -1
package/docs/safety.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This guide describes the current checkout runtime. Read-only tasks deny file writes and shell commands. Rescue and pursue can edit your workspace. Write-swarm returns a patch from a temporary Git worktree.
4
4
 
5
- Native agent-core-v2 uses the no-plan construction on exact reviewed versions. The [runtime certification table](../runtime/kimi-engine.ts) controls routing and operation scope. Exact 2.6.0 remains limited to review, challenge, ask, rescue, review gate and pursue. Plugin 2.6.2 adds the bounded swarm construction described below for exact stock CLI 2.6.2; its [certification receipt](upstream-2.6.2-certification.md) records validation status. Older full-operation rows through 2.5.3 retain their known rate-limit-recovery limitation. The hook is not an operating-system sandbox.
5
+ Native agent-core-v2 uses the no-plan construction on exact reviewed versions. The [runtime certification table](../runtime/kimi-engine.ts) controls routing and operation scope. Exact 2.6.0 remains limited to review, challenge, ask, rescue, review gate and pursue. Plugin 2.6.2 adds the bounded swarm construction described below for exact stock CLI 2.6.2; its [certification receipt](upstream-2.6.2-certification.md) records validation status. Plugin 2.6.3 certifies exact CLI 2.6.3 under the same construction with a separate [release-candidate receipt](upstream-2.6.3-certification.md); release CI and publication remain pending. Older full-operation rows through 2.5.3 retain their known rate-limit-recovery limitation. The hook is not an operating-system sandbox.
6
6
 
7
7
  ## Why the safety story is hook-based
8
8
 
@@ -220,30 +220,30 @@ If another installed host still points to an older hook, that hook may veto thes
220
220
  - **Resume is intentionally not exposed yet.** In goal mode `goal.summary` emits a *goalId* distinct from the resume-hint *sessionId*; `kimi -r <sessionId>` re-enters the session but not necessarily the goal continuation. The plugin captures and surfaces the goalId but does not offer `--resume` for pursue until that split is reconciled upstream — exposing it now would be a silent-failure trap. **Re-verified against kimi-code 0.26.0 (2026-07-16):** the headless CLI still has no argv, prompt syntax, or session-resume path that calls `resumeGoal()`. `parseHeadlessGoalCreate` (`apps/kimi-code/src/cli/goal-prompt.ts`) accepts only the `/goal <objective>` *create* shape on both the v1 and experimental-v2 drivers, and upstream's own docs (`docs/en/guides/goals.md`, § "Use goal mode carefully") state that in non-interactive prompt mode *only goal creation is supported* — goal management is a TUI/kimi-web control. PR #552 makes a plain `-r <sessionId>` correctly *restore* the paused goal snapshot, but nothing in the headless path *acts* on it; the real `resumeGoal()` is wired only to the TUI (`/goal resume`) and kimi-web RPC (PR #1693, web-only). Implementing `--resume` would therefore require either prompt-injected model compliance (rejected — the plugin bounds autonomy with hard limits, not model goodwill) or abandoning the subprocess model for kimi-web's RPC. Re-check if upstream ever ships a headless `goal resume` verb.
221
221
  - **A model-invocable `kimi-pursue` agent (v1.3) wraps this command.** The main thread can dispatch autonomous goal mode, not just the human-typed `/kimi:pursue` — the same command↔agent mirror as rescue/review/swarm. Auto-dispatch does NOT widen the blast radius: pursue runs under `commandLabel: "rescue"`, so the managed PreToolUse hook + workspace allowlist gate every tool call on every continuation turn (no git mutation), and the mandatory `--budget` wall-clock ceiling bounds the autonomy regardless of who launched it. Because it is write-capable AND autonomous — the plugin's highest blast radius — the agent's description requires an explicit user request for hands-off multi-turn pursuit, steers single bounded tasks to `kimi-rescue`, and never auto-promotes a fix or a question into a goal loop. Like the command, it refuses without the hook and offers no `--resume`.
222
222
 
223
- ## Swarm activation on CLI 2.3.2, 2.3.3, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.5.2 and 2.5.3
223
+ ## Swarm activation on CLI 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 and 2.6.3
224
224
 
225
225
  For interrupted runs, see [durable recovery and its explicit limits](swarm-recovery.md).
226
226
 
227
227
  Upstream 2.3.2 removes model self-activation of `AgentSwarm` in fresh print sessions. A rejected call can therefore coexist with zero child journals and a successful exit; a tool-call record, aggregate denial, or coordinator-produced patch does not prove fan-out. The plugin does not use prompt workarounds or replace its print transport with general RPC.
228
228
 
229
- For parallel paths requiring activation (exact 2.3.2, 2.3.3, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.5.2, 2.5.3 and 2.6.2), both slash-command and MCP swarm operations use the same `runSwarm` implementation and one ordinary `kimi -p -r` prompt runner per job, bracketed by short-lived host-managed web lifecycles:
229
+ For parallel paths requiring activation (exact 2.3.2, 2.3.3, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.5.2, 2.5.3 and 2.6.2/2.6.3), both slash-command and MCP swarm operations use the same `runSwarm` implementation and one ordinary `kimi -p -r` prompt runner per job, bracketed by short-lived host-managed web lifecycles:
230
230
 
231
- 1. The exact planned CLI starts `web --no-open --host 127.0.0.1 --port 0 --log-level error`. The child environment sets `KIMI_CODE_SESSION_IDLE_RECLAIM_MS=0`, so ambient idle-session reclamation cannot disrupt the plugin-owned lifecycle. The plugin accepts only the expected loopback ready URL, uses a supplied token for authenticated REST requests, and keeps that token in memory, never writing it to logs. `/api/v1/meta` must confirm backend v2, the exact planned version, and no dangerous authentication bypass. The plugin uses the explicit model or environment-model alias, otherwise reading the default alias from `/api/v1/config`; creates a session in the job cwd; on exact 2.5.0/2.5.1/2.5.2/2.5.3 explicitly binds `environment_id:"local"` and the job cwd, then verifies that binding through authenticated `/environment` before either profile mutation; binds the selected model with `permission_mode:auto` and `swarm_mode:true`; verifies those settings and `plan_mode:false` through `/status` on earlier versions or protocol-v2 authenticated WebSocket main-agent state on 2.5.0/2.5.1/2.5.2/2.5.3, closing that channel before validating the latest frame; verifies clean shutdown; and requires the main journal's manual `swarm_mode.enter` record. Exact 2.6.2 instead uses authenticated direct-subscription state proof with exact request/session identity and the same local environment checks.
231
+ 1. The exact planned CLI starts `web --no-open --host 127.0.0.1 --port 0 --log-level error`. The child environment sets `KIMI_CODE_SESSION_IDLE_RECLAIM_MS=0`, so ambient idle-session reclamation cannot disrupt the plugin-owned lifecycle. The plugin accepts only the expected loopback ready URL, uses a supplied token for authenticated REST requests, and keeps that token in memory, never writing it to logs. `/api/v1/meta` must confirm backend v2, the exact planned version, and no dangerous authentication bypass. The plugin uses the explicit model or environment-model alias, otherwise reading the default alias from `/api/v1/config`; creates a session in the job cwd; on exact 2.5.0/2.5.1/2.5.2/2.5.3 explicitly binds `environment_id:"local"` and the job cwd, then verifies that binding through authenticated `/environment` before either profile mutation; binds the selected model with `permission_mode:auto` and `swarm_mode:true`; verifies those settings and `plan_mode:false` through `/status` on earlier versions or protocol-v2 authenticated WebSocket main-agent state on 2.5.0/2.5.1/2.5.2/2.5.3, closing that channel before validating the latest frame; verifies clean shutdown; and requires the main journal's manual `swarm_mode.enter` record. Exact 2.6.2/2.6.3 instead uses authenticated direct-subscription state proof with exact request/session identity and the same local environment checks.
232
232
  2. The ordinary stream-json print runner resumes that session with `kimi -p -r`. The job records `kimi_session_id_source:"preactivated"`, and the session returned by print must exactly match the preactivated id. Every coordinator and child tool call remains governed by the same managed PreToolUse hook and operation allowlist.
233
- 3. After the print run, a second web lifecycle rechecks the local binding on 2.5.0/2.5.1/2.5.2/2.5.3/2.6.2, sets `swarm_mode:false`, verifies the version-appropriate state proof, shuts down cleanly, and requires `swarm_mode.exit` in the main journal. Activation consumes part of the same finite job budget rather than extending it. `runSwarm` solely owns session 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, with exit codes and cleanup diagnostics preserved. Cancellation aborts the owned lifecycle and never starts a fresh cleanup server. Every post-mutation failure retains the session identity; process/group uncertainty is marked without inventing an ID; process groups are rechecked after teardown, unknown survivors are unverified, unproven groups are never signalled, and a same-PID/start-token process that changes PGID remains active but is not a validated signal target. Root loss requires a previously observed matching identity; first-missing roots and actual probe errors/timeouts remain unverified. Reparenting and PGID moves preserve the current verified child identity for revalidation rather than treating it as exited. Unverified cleanup prevents success and preserves raw output, structured diagnostics, and the write worktree for recovery.
233
+ 3. After the print run, a second web lifecycle rechecks the local binding on 2.5.0/2.5.1/2.5.2/2.5.3/2.6.0/2.6.2/2.6.3, sets `swarm_mode:false`, verifies the version-appropriate state proof, shuts down cleanly, and requires `swarm_mode.exit` in the main journal. Activation consumes part of the same finite job budget rather than extending it. `runSwarm` solely owns session 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, with exit codes and cleanup diagnostics preserved. Cancellation aborts the owned lifecycle and never starts a fresh cleanup server. Every post-mutation failure retains the session identity; process/group uncertainty is marked without inventing an ID; process groups are rechecked after teardown, unknown survivors are unverified, unproven groups are never signalled, and a same-PID/start-token process that changes PGID remains active but is not a validated signal target. Root loss requires a previously observed matching identity; first-missing roots and actual probe errors/timeouts remain unverified. Reparenting and PGID moves preserve the current verified child identity for revalidation rather than treating it as exited. Unverified cleanup prevents success and preserves raw output, structured diagnostics, and the write worktree for recovery.
234
234
 
235
235
  Older certified versions keep the direct `kimi -p` path. The web processes are narrow, planned lifecycle helpers, not a second model runner and not a general RPC transport.
236
236
 
237
- ## Bounded swarm on exact CLI 2.6.2
237
+ ## Bounded swarm on exact CLI 2.6.2/2.6.3
238
238
 
239
- `--max-concurrency` defaults to 4 for read-only work and 1 for write work. On exact native-v2 2.6.2, the runtime chooses one of two paths:
239
+ `--max-concurrency` defaults to 4 for read-only work and 1 for write work. On exact native-v2 2.6.2/2.6.3, the runtime chooses one of two paths:
240
240
 
241
241
  - **Two or more:** the canonical hook admits only waves whose fresh items plus resumed entries fit the requested concurrency. Forks, malformed requests and fresh singleton waves are denied. Group odd numbers of targets into at least two disjoint entries per fresh wave, or resume an existing child for the remaining work. The hard bound covers simultaneous Kimi child-agent turns, excluding their coordinator. Fresh children cannot activate another swarm; resumes stay within the new job's own session.
242
242
  - **One:** a single worker runs directly in fresh print, without activating native swarm or launching children. Both delegation tools are denied. It keeps the same read-only restrictions or confined worktree writes and patch output.
243
243
 
244
244
  The plugin forces `KIMI_CODE_SWARM_TIMEOUT_MS=2147483647` on bounded spawns, overriding saved or ambient short child timeouts. This value exceeds the plugin's maximum 24-hour job budget. A short native swarm-child timeout is unsafe here: it can return a wave result before a retry stops. A slow or stuck child therefore holds its wave until it completes or the finite whole-job budget or explicit cancellation stops the run. Environment value `0` is ignored upstream and is not used as a timeout override.
245
245
 
246
- For the parallel path, the plugin disables `TaskStop` in its fresh owned native session after the activation web process has shut down and before print starts. The managed hook already denies that tool; disabling it in native policy also removes the complete `TaskList`/`TaskOutput`/`TaskStop` set that stock 2.6.2 requires for Bash backgrounding. This closes both explicit backgrounding and automatic detachment after a foreground timeout, whose completion could otherwise wake a finished child. The hook separately denies explicit `Bash.run_in_background:true` on both bounded paths. The escape monitor receives the same trusted wave policy as the hook; a native mode-off rejection on the direct-worker path can still be a harmless mismatch diagnostic, not proof of execution.
246
+ For the parallel path, the plugin disables `TaskStop` in its fresh owned native session after the activation web process has shut down and before print starts. The managed hook already denies that tool; disabling it in native policy also removes the complete `TaskList`/`TaskOutput`/`TaskStop` set that stock 2.6.2/2.6.3 requires for Bash backgrounding. This closes both explicit backgrounding and automatic detachment after a foreground timeout, whose completion could otherwise wake a finished child. The hook separately denies explicit `Bash.run_in_background:true` on both bounded paths. The escape monitor receives the same trusted wave policy as the hook; a native mode-off rejection on the direct-worker path can still be a harmless mismatch diagnostic, not proof of execution.
247
247
 
248
248
  With parallel backgrounding disabled, native Bash uses a 60-second default foreground timeout and a 300-second maximum; commands that exceed their timeout are killed rather than detached. Use `--max-concurrency 1` for longer tests. That direct-worker path still permits native automatic timeout-to-background behavior, although explicit background requests are denied. Its root-agent turns remain sequential, and whole-job settlement still gates the result; the limit of one is an agent-turn bound, not a promise of one OS process.
249
249
 
@@ -255,17 +255,17 @@ Process-tree settlement applies on POSIX; Windows retains direct-child-only clea
255
255
 
256
256
  `--cap` stays a soft lifetime-total hint, separate from concurrency. Sequential waves can process more targets than the concurrency limit. The finite budget bounds duration, not dollars or total tokens. This construction does not change the existing trust boundary for test runners or other allowed commands that execute repository code.
257
257
 
258
- The construction is exact-version-specific. Older certified versions retain normal-launch limits and the inherited recovery overrun; exact 2.6.0 remains non-swarm-only. The upstream 2.6.2 binary is unmodified. Validation state and evidence are recorded in the [2.6.2 certification record](upstream-2.6.2-certification.md).
258
+ The construction is exact-version-specific. Older certified versions retain normal-launch limits and the inherited recovery overrun; exact 2.6.0 remains non-swarm-only. The upstream 2.6.2 and 2.6.3 binaries are unmodified. Validation state and evidence are recorded in the [2.6.2 certification record](upstream-2.6.2-certification.md) and [2.6.3 checkout record](upstream-2.6.3-certification.md).
259
259
 
260
260
  ## Read-only swarm (`/kimi:swarm`)
261
261
 
262
262
  `/kimi:swarm` (v1.2) fans a **read-only** review out across subagents using kimi-code's `AgentSwarm` tool (kimi-code 0.12.0+). The coordinator launches one subagent per target (file/module/question); each inspects the workspace with read tools and reports findings, which the coordinator consolidates into one markdown report. It opens **zero new write surface**.
263
263
 
264
- - **The hook label is `swarm`, and it allows the read-only tool set PLUS `AgentSwarm`.** On parallel paths the coordinator may call an admitted `AgentSwarm`, but no write/edit/shell tool is allowed; the exact-2.6.2 direct-worker path denies delegation too. The exact allowed tool name is `AgentSwarm` (verified at 0.42.0 against `packages/agent-core-v2/src/features/swarm/tools/agent-swarm/agentSwarmTool.ts`: `'AgentSwarm'`, strict schema). The singular `Agent` tool is deliberately *not* allowed — swarm is the fan-out surface, not arbitrary delegation.
264
+ - **The hook label is `swarm`, and it allows the read-only tool set PLUS `AgentSwarm`.** On parallel paths the coordinator may call an admitted `AgentSwarm`, but no write/edit/shell tool is allowed; the exact-2.6.2/2.6.3 direct-worker path denies delegation too. The exact allowed tool name is `AgentSwarm` (verified at 0.42.0 against `packages/agent-core-v2/src/features/swarm/tools/agent-swarm/agentSwarmTool.ts`: `'AgentSwarm'`, strict schema). The singular `Agent` tool is deliberately *not* allowed — swarm is the fan-out surface, not arbitrary delegation.
265
265
  - **Every subagent inherits the `swarm` label and fires the same hook.** On native v2 (0.42.0) `AgentSwarm` children run in-process in a child DI scope with their OWN eager external-hooks service, so every child tool call passes the same before-execute channel and the same managed hook — there is no sub-vs-main branch and no deny-all shortcut on the swarm route. So a subagent's `Write`/`Edit`/`Bash` is denied exactly like a single-turn review's. The swarm listener in that channel is non-terminal and nothing auto-approves `AgentSwarm` ahead of the hook. (Legacy-v1 ≤ 0.41 reached the same result by placing the hook policy at index 0 of every agent's permission stack.) **Required for parallel-path certification evidence** (`tests/runtime/real-binary-smoke.test.ts`, run via `bun run smoke:real`): distinct child journals must exist, and each assigned Write/Edit `path` must be correlated through its `toolCallId` with the managed denial in that exact tool result; unrelated denials and coordinator-only reports are insufficient. On 2.3.2, 2.3.3, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.5.2 and 2.5.3, targeted controls also prove that direct OFF produces no children while the preactivated ON path produces the real child journals and denials.
266
266
  - **The managed hook is the read-only boundary; no `explore`-profile second layer is assumed.** Production deliberately omits `subagent_type` for read-only swarm rather than selecting kimi-code's `explore` profile. Every coordinator and subagent tool call is enforced by the same managed hook.
267
267
  - **Swarm refuses without the hook, like every model-spawning command.** A swarm makes the reason especially acute: it asks for up to `--cap` subagents, but this total-count hint is advisory, so a missing hook would remove enforcement from all of them at once. `KIMI_PLUGIN_CC_SKIP_HOOK_CHECK=1` remains an explicit tests/diagnostics escape hatch, not a recovery path.
268
- - **Concurrency and total count are separate.** Every swarm has a finite `--budget` (default 30m). Exact 2.6.2 follows the bounded-wave/direct-worker construction above; `--max-concurrency` defaults to 4 for read-only work. Older certified binaries use `KIMI_CODE_AGENT_SWARM_MAX_CONCURRENCY` for normal launches on 0.18.0+ and can exceed it during rate-limit recovery. `--cap` is only a soft lifetime-total hint: a stateless per-wave guard does not make it a total-count limit. A time budget is not a dollar or token cap. Keep all three controls distinct.
268
+ - **Concurrency and total count are separate.** Every swarm has a finite `--budget` (default 30m). Exact 2.6.2/2.6.3 follows the bounded-wave/direct-worker construction above; `--max-concurrency` defaults to 4 for read-only work. Older certified binaries use `KIMI_CODE_AGENT_SWARM_MAX_CONCURRENCY` for normal launches on 0.18.0+ and can exceed it during rate-limit recovery. `--cap` is only a soft lifetime-total hint: a stateless per-wave guard does not make it a total-count limit. A time budget is not a dollar or token cap. Keep all three controls distinct.
269
269
  - **A model-invocable `kimi-swarm` agent (v1.3) wraps this command.** The `/kimi:swarm` slash command is human-only (`disable-model-invocation: true`, the blanket convention for *all* commands), but the `kimi-swarm` subagent lets the main thread *dispatch* a read-only fan-out on its own judgement — the same human-command + model-invocable-agent split that `kimi-review`/`kimi-challenge`/`kimi-ask`/`kimi-rescue` already use. Swarm is a safe candidate for an agent precisely because it is **read-only (zero write surface)**: the only thing auto-dispatch adds is COST exposure, already bounded by the finite `--budget` and the version-specific `--max-concurrency` bound that defaults to 4 for read-only work — so an auto-dispatched fan-out is bounded by construction, not by ignorable agent prose (the agent additionally restricts backgrounding to explicit user requests). `/kimi:pursue` ALSO gains a model-invocable agent (`kimi-pursue`, v1.3 — see the Autonomous goal mode section above): it is write-capable, but auto-dispatch widens no write surface (the rescue workspace allowlist + the managed PreToolUse hook gate every tool call on every continuation turn, and it cannot mutate git state) and removes no bound (the mandatory `--budget` ceiling holds), so its agent path is exactly as confined as its command path. Because it is the plugin's highest-autonomy surface, its agent description demands an explicit hands-off-autonomy request and steers single bounded tasks to `kimi-rescue`.
270
270
 
271
271
  ## Write-capable swarm (`/kimi:swarm --write`)
@@ -277,9 +277,9 @@ The construction is exact-version-specific. Older certified versions retain norm
277
277
  - **`coder` subagents really can write, and the hook is the sole boundary.** Verified at kimi-code 0.42.0: swarm subagents get their own eager external-hooks service under the standard before-execute channel — there is no deny-all path on the swarm route (the `btw` side-question path is separate). Write-swarm's `coder` subagents DO have edit tools, and the managed PreToolUse hook is the **only** write boundary — which is why the trusted-root confinement above is load-bearing and gated tightly.
278
278
  - **The plugin never touches git; the main thread owns the merge.** Subagents cannot run git (allowlist denies mutation). The plugin captures the change set with `git add -N` (intent-to-add, so new files appear in the diff WITHOUT writing loose objects into the shared object DB) + `git diff --binary` (untruncated, applyable), writes it to a `swarm-write-<jobId>.patch` artifact, and prints the path. It does **not** `git apply`, commit, or move any ref — the user/main thread reviews the patch and applies it (`git apply <path>`). The worktree shares the main repo's object DB and refs, but no ref/HEAD is ever moved, so the user's repository state is untouched.
279
279
  - **The patch is captured on every terminal path, before cleanup.** Success, cancel, budget-expiry, and failure all capture the (possibly partial) patch BEFORE `git worktree remove --force` discards the tree, so a cancelled run never silently loses the work the subagents already did. If capture itself fails, the job fails instead of completing and the worktree is retained with its path in the error details for recovery. That guarantee covers the plugin's own terminal paths, including `companion.sh cancel`. It does **not** cover a harness interrupt: Esc/TaskStop delivers SIGTERM then SIGKILL after ~1.35s (measured, process-group-wide), which is shorter than the 1500ms child escalation plus quiescence plus patch capture — so a hard interrupt can kill the companion mid-teardown and lose the patch. `companion.sh cancel` signals from a separate process not racing that deadline and is the work-preserving stop. Abandoned worktrees are retained, never age-deleted. Use the preview/apply recovery procedure in [swarm-recovery.md](swarm-recovery.md); uncertain ownership refuses automatic cleanup.
280
- - **Gated tightly.** Requires an exact certified CLI (write mode additionally requires at least 0.18.0), a Git repository with committed HEAD, and a verified managed hook. A dirty-tree warning explains that the worktree starts from HEAD and does not contain uncommitted edits. Default concurrency 1 uses a direct worker on exact 2.6.2; larger values use bounded waves. Older certified versions retain normal-launch serialization with the disclosed recovery limitation. Disjoint targets remain prompt guidance, and Git mutation stays denied.
280
+ - **Gated tightly.** Requires an exact certified CLI (write mode additionally requires at least 0.18.0), a Git repository with committed HEAD, and a verified managed hook. A dirty-tree warning explains that the worktree starts from HEAD and does not contain uncommitted edits. Default concurrency 1 uses a direct worker on exact 2.6.2/2.6.3; larger values use bounded waves. Older certified versions retain normal-launch serialization with the disclosed recovery limitation. Disjoint targets remain prompt guidance, and Git mutation stays denied.
281
281
  - **Required for final certification evidence on parallel paths.** `tests/runtime/real-binary-smoke.test.ts` runs the real `runSwarm --write` and requires the POSITIVE end-to-end: distinct child journals contain their assigned edits with `Write`/`Replaced` results on the same `toolCallId`, those child-authored changes land in the worktree and captured patch, the user's real tree is byte-identical + git-clean, and the worktree is cleaned up. A patch without per-call child provenance is not accepted as fan-out evidence. The NEGATIVE lane correlates each absolute out-of-root `path` and `toolCallId` with its managed denial. It is the check that catches `tool_input` field-name drift — `Write`/`Edit` carry `path`, not `file_path`, and reading the wrong key denies every real write silently.
282
- - **The single-worker path needs separate evidence.** At concurrency 1 on exact 2.6.2, require fresh print with no web activation or child journals, managed delegation denials, a confined main-agent write captured in the patch, unchanged user tree, and cancellation/budget settlement. Coordinator-only patches are valid for this explicit path, never substitutes for parallel child evidence.
282
+ - **The single-worker path needs separate evidence.** At concurrency 1 on exact 2.6.2/2.6.3, require fresh print with no web activation or child journals, managed delegation denials, a confined main-agent write captured in the patch, unchanged user tree, and cancellation/budget settlement. Coordinator-only patches are valid for this explicit path, never substitutes for parallel child evidence.
283
283
  - **Model-invocable agent (v1.5), patch-only by construction.** Following the field-proof above, `--write` now has a `kimi-swarm-write` subagent so the main thread can dispatch a write fan-out on its own judgement — the same human-command + model-invocable-agent split the rest of the suite uses. Auto-dispatch is a safe extension here because it widens **no** write surface and retains the documented bounds: the agent path runs the identical `runSwarm --write` code, so edits still land only in the throwaway worktree, the managed hook still gates every `coder` subagent, the patch is still handed back for the user to apply (**the plugin never applies or commits**), and `--budget` + default `--max-concurrency` 1 + the hook requirement still apply, with the rate-limit-recovery qualification above. In fact write-swarm is a *less* dangerous agent than the `kimi-pursue` agent already shipped: pursue writes directly into the workspace, whereas write-swarm's output is a patch the human reviews before anything reaches a real tree. Because it is still a write surface, the agent description demands BOTH signals — many disjoint write targets AND explicit fan-out intent — and steers single edits to `kimi-rescue`, read-only fan-outs to `kimi-swarm`, and autonomous loops to `kimi-pursue`. Default `--max-concurrency` stays **1**; raising it (concurrent writers) remains a deliberate, human-or-explicitly-requested choice.
284
284
 
285
285
  ## MCP transport and long-running jobs
@@ -322,7 +322,7 @@ worktree. A directory the operator trusted interactively in the Kimi TUI still
322
322
  has that property; that persisted-trust route is a documented residual, not
323
323
  something the plugin can close.
324
324
 
325
- Plugin-managed execution must remain local. Unused remote declarations can remain in operator config, but a configured remote default refuses before spawn. Disabling workspace trust through `[workspace] require_trust = false` also refuses, because it would enable project MCP outside the managed hook. Launcher environment selectors are reserved. Fresh exact 2.5.0/2.5.1/2.5.2/2.5.3/2.6.0/2.6.2 print selects `--environment local`; resume instead inspects persisted metadata and every agent journal and refuses nonlocal or wrong-root records against the expected execution root (the isolated worktree for swarm-write); older sessions without environment records do not fail this check merely for lacking them.
325
+ Plugin-managed execution must remain local. Unused remote declarations can remain in operator config, but a configured remote default refuses before spawn. Disabling workspace trust through `[workspace] require_trust = false` also refuses, because it would enable project MCP outside the managed hook. Launcher environment selectors are reserved. Fresh exact 2.5.0/2.5.1/2.5.2/2.5.3/2.6.0/2.6.2/2.6.3 print selects `--environment local`; resume instead inspects persisted metadata and every agent journal and refuses nonlocal or wrong-root records against the expected execution root (the isolated worktree for swarm-write); older sessions without environment records do not fail this check merely for lacking them.
326
326
 
327
327
  ## Running a newer Kimi than the plugin certifies
328
328
 
@@ -344,7 +344,7 @@ Both binaries share `~/.kimi-code` (login, config, hook), so nothing else
344
344
  changes. The full-operation certified maximum can be read from the installed
345
345
  plugin (`NATIVE_V2_CERTIFIED_VERSIONS` in `dist/kimi-engine.js`), which lets an
346
346
  upgrade script bump the full-swarm pin automatically after each full-operation
347
- certification. That export excludes narrowed releases such as 2.6.0 and includes exact 2.6.2
347
+ certification. That export excludes narrowed releases such as 2.6.0 and includes exact 2.6.2/2.6.3
348
348
  under its certified bounded-swarm construction. `NATIVE_V2_ANY_OPERATION_VERSIONS`
349
349
  is the separate scoped union, so an automatic full-swarm pin does not silently
350
350
  become a non-swarm-only pin.
@@ -2,9 +2,9 @@
2
2
 
3
3
  Normal stop: use `scripts/companion.sh cancel` for a shell-owned run, or the MCP job cancel tool for an MCP-owned run. A hard kill cannot execute cleanup. Cancellation still starts no fresh cleanup server.
4
4
 
5
- For exact CLI 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 swarm runs, plus exact-2.6.2 parallel runs, status includes a durable `swarm_recovery` record. It contains the resolved home/workspace, companion identity, launch intent, verified process identities and session identity. It never contains web authentication tokens, credentials, prompts or config contents. Session identity is committed before enabling swarm mode. The exact-2.6.2 concurrency-1 path starts a direct worker without a mutable swarm session, so it does not create an activation-recovery record; normal cancellation and patch capture still apply.
5
+ For exact CLI 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 swarm runs, plus exact-2.6.2/2.6.3 parallel runs, status includes a durable `swarm_recovery` record. It contains the resolved home/workspace, companion identity, launch intent, verified process identities and session identity. It never contains web authentication tokens, credentials, prompts or config contents. Session identity is committed before enabling swarm mode. The exact-2.6.2/2.6.3 concurrency-1 path starts a direct worker without a mutable swarm session, so it does not create an activation-recovery record; normal cancellation and patch capture still apply.
6
6
 
7
- Exact-2.6.2 parallel sessions retain their native `TaskStop`-disabled policy after normal deactivation or recovery. Recovery does not remove it. The bounded construction covers the managed job; resuming that historical session interactively through another client is outside its certification.
7
+ Exact-2.6.2/2.6.3 parallel sessions retain their native `TaskStop`-disabled policy after normal deactivation or recovery. Recovery does not remove it. The bounded construction covers the managed job; resuming that historical session interactively through another client is outside its certification.
8
8
 
9
9
  The exact 2.6.0 swarm integration is candidate-only: the narrowed 2.6.0 non-swarm certification excludes both swarm operations and does not certify this recovery path. Recovery canonicalizes `record.cwd` only for session deactivation through symlinked execution parents. Ownership, workspace, and patch checks continue to use the original recorded alias.
10
10
 
@@ -21,7 +21,7 @@ Preview does not signal processes, modify sessions, or capture patches. Apply:
21
21
 
22
22
  1. Requires the original companion to be gone and acquires an identity-checked recovery claim. A second recovery cannot race the first; a dead recovery owner can be reclaimed by compare-and-swap.
23
23
  2. Revalidates recorded processes and groups. It stops only verified individual identities, never a guessed PID or unproven group. An unknown surviving group member, changed group, incomplete probe or unrecorded launch refuses recovery.
24
- 3. If session cleanup is pending, requires the selected exact certified CLI and valid managed hook. It starts one bounded authenticated web lifecycle, disables the recorded session's swarm mode, verifies the version-appropriate state proof and exit journal, then verifies process quiescence. On 2.5.0/2.5.1/2.5.2/2.5.3 this includes the local environment binding and protocol-v2 WebSocket main-agent state rather than `/status`. On exact 2.6.2 parallel sessions it uses authenticated direct-subscription state proof and the same local binding checks. It does not resume a prompt, generate model output, install hooks or retry failed cleanup automatically. New recovery web launches are themselves journaled. Deactivation uses the realpath of `record.cwd`; the original recorded alias remains the ownership, workspace, and patch-check boundary.
24
+ 3. If session cleanup is pending, requires the selected exact certified CLI and valid managed hook. It starts one bounded authenticated web lifecycle, disables the recorded session's swarm mode, verifies the version-appropriate state proof and exit journal, then verifies process quiescence. On 2.5.0/2.5.1/2.5.2/2.5.3 this includes the local environment binding and protocol-v2 WebSocket main-agent state rather than `/status`. On exact 2.6.2/2.6.3 parallel sessions it uses authenticated direct-subscription state proof and the same local binding checks. It does not resume a prompt, generate model output, install hooks or retry failed cleanup automatically. New recovery web launches are themselves journaled. Deactivation uses the realpath of `record.cwd`; the original recorded alias remains the ownership, workspace, and patch-check boundary.
25
25
  4. Captures a binary patch from a retained write worktree. It does not apply the patch or delete the tree. The result names both paths for inspection.
26
26
 
27
27
  The recovery attempt has a 30-second cancellation signal, with bounded identity probes and normal teardown. Interrupting recovery retains its journal. An already-recovered record is an idempotent no-op. Failed/cancelled/completed job outcomes are immutable; a previously running abandoned job becomes failed, never completed. Recovery status is separate from task success.
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Bounded swarm certification — 2026-11-14
4
4
 
5
- **Status: certified for all eight operations.** Final source, stock-binary, live-provider, repository, package, Linux-host and independent-review gates passed on runtime `b69a416d8588ed12239148ccc9f120e3dbfe0dcb`. Release CI, tagging and publication remain pending; no installed-host update is implied.
5
+ **Status: certified for all eight operations.** Final source, stock-binary, live-provider, repository, package, Linux-host and independent-review gates passed on runtime `b69a416d8588ed12239148ccc9f120e3dbfe0dcb`. Release CI passed and the immutable GitHub release is published; npm 2.6.2 is published with verified fresh installs and cryptographic signatures; no installed-host update is implied.
6
6
 
7
7
  The corrected runtime is frozen at `b69a416d8588ed12239148ccc9f120e3dbfe0dcb`. Linux snapshots stay on `/proc`. Proven `PF_KTHREAD` rows with PGID 0 are excluded; valid non-kernel PGID 0/-1 rows remain available for ancestry and cause refusal only when the requested owned subtree depends on them. Genuinely unreadable or malformed rows still make the snapshot incomplete, and targeted nonpositive-group probes remain incomplete. Persisted `ps` identities still validate through their matching reader. On the legacy cancellation path, snapshot failure still stops the owned root, then returns `CLI_CANCELLATION_TEARDOWN_FAILED` with `process_cleanup_unverified` and the original cause; a wrapped budget error carries no partial prose. Test helpers now clean up early failures and bound pipe draining.
8
8
 
@@ -39,7 +39,9 @@ Final gates use immutable runtime commit `b69a416d8588ed12239148ccc9f120e3dbfe0d
39
39
  | Kernel-visible Linux host | PASS: `linux-host-focused-final.log`, 130 pass / 1 macOS-specific skip / 0 failures / 832 assertions in 104.70s; Linux 7.0.14-linuxkit arm64, with 206 PF_KTHREAD PGID-0 rows and 8 non-kernel PGID≤0 rows |
40
40
  | Package and isolated consumer security | PASS: `certified-package.log` verifies 340 files, all three distributions, isolated setup/check, version refusal and MCP checks; audited DSH host/profile, seven providers/tools and Web boot. `certified-consumer-security.log` passes isolated npm consumer security |
41
41
  | Independent reviews | PASS: Codex reports no actionable findings. Fable's final `FABLE-LINUX-CLOSURE.md` closes all three source findings with no new defect; runtime tests and emitted-artifact verification are established separately by the final gates above |
42
- | Release CI, tagging and publication | PENDING. No tag, publication or installed-host result is claimed |
42
+ | Release CI and GitHub release | PASS: CI run `43610889478`; immutable tag and GitHub release `v2.6.2` published at commit `0f78ade6840dc7eab27da0790c5163082b103e6d` on 2026-11-14T15:43:08Z |
43
+ | npm publication | PASS: OIDC run `43611675167`; npm `latest` is 2.6.2, published at 2026-11-14T15:54:45.985Z. The 340-file registry archive is byte-identical to the workflow artifact |
44
+ | Fresh install and cryptographic signatures | PASS at 2026-11-14T15:55:59Z: all 340 files match the tag, all three runtime capability maps pass, and isolated Claude/Codex/DSH setup plus setup-check pass against stock CLI. Zero production advisories; `npm audit signatures` exits 0 with no invalid or missing signatures |
43
45
 
44
46
  The 23 stock-binary controls use the untouched 2.6.2 executable with a scripted test provider. They exercise new/resumed waves, odd target grouping, both nested profiles, invalid resumes, read/write cancellation, active HTTP/tool budget expiry, and 429/context recovery beyond the native 180-second interval. Their deterministic responses prove enforcement and settlement; the separate passing real-provider matrix proves useful model behavior through the production operation paths.
45
47
 
@@ -56,6 +58,16 @@ The uncoached live five-target control at width four grouped the targets into tw
56
58
  | `certified-consumer-security.log` | `3dea92a3793941ba29017dec7b3e7a7a254eb45473130349fa4502b70a817221` |
57
59
  | `linux-host-focused-final.log` | `f309adc00fdebdbf5878e34871dca4e3846822b1a4f92293c52c7e09164302ed` |
58
60
  | `FABLE-LINUX-CLOSURE.md` | `2dd16b010bd44581891a3f367c7b19b7ee08a1157dd885e1bb085e8f8a4ae81e` |
61
+ | `registry-verification.json` | `febd5bc20fac5c25e6832ef4879ec51ee8ebca2b040c5142cb3f02f92ab0b6c4` |
62
+ | `registry-consumer/verification.json` | `0ef48d66228ea913aeb980de210a0e24be1422a9724bb503e07f1944b4da69e7` |
63
+
64
+ ### Release status
65
+
66
+ The immutable [v2.6.2 tag and GitHub release](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.6.2) is anchored at `0f78ade6840dc7eab27da0790c5163082b103e6d`, published at `2026-11-14T15:43:08Z` after [release CI 43610889478](https://github.com/linxule/kimi-plugin-cc/actions/runs/43610889478) passed. [OIDC publication run 43611675167](https://github.com/linxule/kimi-plugin-cc/actions/runs/43611675167) passed; npm `latest` is 2.6.2, published at `2026-11-14T15:54:45.985Z`.
67
+
68
+ The 340-file registry archive is byte-identical to the workflow artifact, with SHA-1 `6eecaf4803b8ebbed5f114c3b17e7f2b4f017fca` and SHA-256 `be9362451456278812c9678c208fde56357c47e147a39103ee11a610e9655f3d`. SLSA provenance log index `3881457879` and publish-attestation log index `3881517151` match the tag and workflow. The local receipt is `registry-verification.json` under the evidence root above.
69
+
70
+ Fresh-install verification completed at `2026-11-14T15:55:59Z`: all 340 published files match the tag, all three compiled capability maps pass, and isolated Claude Code, Codex and DSH setup/check pass against the actual stock CLI. There are zero production advisories. Cryptographic verification with `npm audit signatures` exits 0 with `invalid:[]` and `missing:[]`; the receipt is `registry-consumer/verification.json`. These installation checks made no model calls and changed no installed host or operator CLI pin.
59
71
 
60
72
  ### Counterexamples that determined the construction
61
73
 
@@ -90,7 +102,7 @@ Exact source: `@moonshot-ai/kimi-code@2.6.2`, commit `6a8493df3e1d796a63f7c7ca0d
90
102
  - Exact-binary controls passed with fresh isolated homes. Plan OFF denied an ordinary Write on the same call and created no file. Deliberately armed plan mode wrote a **1,304-byte** plan file without a plan-Write hook, while Glob reached the deny hook; this proves the no-plan closures remain load-bearing. A scripted `call_enter_forced` returned `Tool "EnterPlanMode" not found` on the same call ID before any hook, with no plan state. Real activation/deactivation passed with an explicit local binding; a remote default, disabled workspace trust and resumed remote binding all refused before launcher/spawn.
91
103
  - The scheduler file `features/swarm/session/agentRunBatch.ts` is byte-identical to 2.6.0, SHA-256 `339dbd7962c3b9bac145aff83aee06d6e5f3c6b9e8c472d4f4f94d7fb26390fc`.
92
104
  - Fresh deterministic controls against an untouched exact 2.6.2 worktree fail both cap tests (`unpatched-cap-controls.log`): cap 1 has three cumulative attempts after the initial retry, rather than two, and cap 4 reaches five active attempts. The settle-and-continue control is part of the same suite. The local reference correction at `52e21c7bf25d102efb0b8b7af28f575519b38d3b`, based on upstream `8d939f7dc76adde3d68a1d489eea3e8ea57e2b9a`, passes all **56 focused upstream swarm tests** (`patched-focused-swarm.log`). The unpatched base differs from exact 2.6.2 only in its `TokenUsage` import and otherwise has the same scheduler logic. The correction intentionally changes that logic; it is not byte-identical to 2.6.2, a released fix, or certification evidence.
93
- - [Upstream issue #4926](https://github.com/MoonshotAI/kimi-code/issues/4926) remains open without maintainer approval or a released fix. No upstream PR has been opened before the project's required approval. The local correction is not certification evidence or a shipped plugin patch.
105
+ - [Upstream issue #4926](https://github.com/MoonshotAI/kimi-code/issues/4926) remains open without a released fix. Upstream [PR #4934](https://github.com/MoonshotAI/kimi-code/pull/4934), authored by `kimi-agent-bot`, opened on 2026-11-14; as rechecked on 2026-11-16 it is unmerged and blocked on the required human review. Its 16 completed checks pass, with `test-windows` skipped, and the automated Codex review reports no major findings; neither result is maintainer approval or certification evidence. The local correction is not certification evidence or a shipped plugin patch.
94
106
 
95
107
  ## Candidate and production evidence
96
108
 
@@ -0,0 +1,88 @@
1
+ # Exact CLI 2.6.3 certification — plugin 2.6.3
2
+
3
+ ## Scope and decision
4
+
5
+ **Status: certified for all eight operations; plugin 2.6.3 release candidate.** Exact `@moonshot-ai/kimi-code@2.6.3` passed the source, exact-binary, real-provider candidate, deterministic stock-binary, production-table operation, full repository, package, consumer-security and post-edit review gates on the final implementation. The production operation table contains 2.6.3 for review, challenge, ask, rescue, review_gate, pursue, swarm and swarm-write. Release CI, tagging and npm publication remain pending.
6
+
7
+ This release candidate does not change an installed host cache or move an operator CLI pin. Plugin 2.6.2 remains the latest published plugin release until plugin 2.6.3 publication completes.
8
+
9
+ Exact source: `@moonshot-ai/kimi-code@2.6.3`, commit `b0de2fbd2de04d87689225aafd3912e5d193b62d` (annotated tag object `a9df46689649824abfdfff1528d7708a23fd3cf3`). The isolated npm binary reports 2.6.3; `dist/main.mjs` SHA-256 is `a360023b6814ffdf05bc87e40925df5e0442ae3076ad9e7b6ea6f771e2a1857c`.
10
+
11
+ ## Monitor correction and candidate-harness diagnosis
12
+
13
+ The November 18 monitor correctly held certification after its candidate smoke failed three swarm lanes. The failure was not positive evidence of an upstream swarm regression:
14
+
15
+ - Candidate admission added 2.6.3 to the in-memory operation map, but `requiresSwarmPreactivation()` and `usesBoundedSwarmPolicy()` still recognized only 2.6.2.
16
+ - A deterministic retained control reproduced zero child journals. Its main journal showed every `AgentSwarm` call receiving the same-call `Swarm mode is off` result, so the engine was never asked to start children.
17
+ - Adding exact candidate activation/policy integration without adding the production certification row made the same read control pass with six children, peak four at width four. The write control passed with four children and a 600-byte patch.
18
+ - The real candidate matrix then passed all three originally failed lanes, including distinct child journals, child-authored work and out-of-root denials.
19
+
20
+ The monitor's seven scoped diffs also omitted changed loop, subagent, shell-command, tool-selection and agent-lifecycle files outside those filters. The full exact-tag diff was reviewed for this certification; those omissions are corrected in the evidence rather than treated as upstream defects.
21
+
22
+ The pre-diagnosis monitor log is retained as `.claude/kimi-code-research/cert-2.6.3-live/monitor-candidate-initial.log`. The corrected candidate log is `daily-monitor/smoke/2026-11-18-2.6.3-candidate.log`.
23
+
24
+ ## Source audit
25
+
26
+ The pristine exact-tag clone has no uncommitted files or sync-conflict copies. The exact 2.6.3 scan passed **31 tests / 404 assertions / no skips**; the exact 2.6.2 regression scan passed **31 tests / 393 assertions / no skips**.
27
+
28
+ The 2.6.3 pin row inherits the reviewed 2.6.2 pins and replaces all 15 changed pinned file hashes. The scan proves:
29
+
30
+ - the plan-file guard remains the sole final `allow()` in the engine, CLI and SDK;
31
+ - the before-execute subscriber set, 2.6 executor ordering and managed veto path remain intact;
32
+ - restore still folds only the same two views of the wire journal, with no second durable plan source;
33
+ - fresh print cancels the default plan and EnterPlanMode remains absent;
34
+ - the external-hooks agent service remains eager in every agent scope and hook aggregation remains first-block-wins;
35
+ - tool schemas retain `path`, `command` and `cwd` where the managed policy reads them;
36
+ - fresh children remain swarm-off, owned resumes retain their session boundary, and native TaskStop disablement still closes Bash backgrounding.
37
+
38
+ `features/swarm/session/agentRunBatch.ts` is byte-identical to 2.6.2, SHA-256 `339dbd7962c3b9bac145aff83aee06d6e5f3c6b9e8c472d4f4f94d7fb26390fc`. No swarm scheduler, swarm web endpoint, DI child-scope or OS backend diff exists between exact 2.6.2 and 2.6.3. The upstream scheduler is not represented as fixed.
39
+
40
+ The additional lifecycle changes add tool origins, queued Stop hooks and task reconciliation. In 2.6.3, child fresh/retry completion shares `awaitRunCompletion`; `awaitQuiescent` waits for loop settlement and active tasks, while cancellation stops child tasks and suppresses their notifications. The tag scan asserts this implementation separately from 2.6.2 rather than merely accepting new hashes.
41
+
42
+ ## Exact-binary controls
43
+
44
+ All controls ran sequentially against the isolated exact binary. Real-model controls used the dedicated Agent Keys environment-model route and empty temporary homes; personal config and credential stores were neither read nor linked.
45
+
46
+ - **Plan OFF:** ordinary Write reached the deny hook, returned `cert-control: denied` on the same call, created no file and recorded no plan state.
47
+ - **Deliberately armed plan ON:** Glob reached the deny hook; Write created a 1,678-byte plan file without a plan-Write hook. No workspace file was created. This proves the no-plan closures remain load-bearing; plugin execution never arms this path.
48
+ - **Forced EnterPlanMode:** the scripted call was absent from offered tools, returned `Tool "EnterPlanMode" not found` on `call_enter_forced` before any hook, returned that result to the provider, and created no plan journal/file.
49
+ - **Local execution:** real activation/deactivation passed. A configured remote default refused before its launcher ran, disabled workspace trust refused, and a resumed nonlocal binding refused.
50
+
51
+ Receipts are `write-off/summary.json`, `plan-on/summary.json`, `enter-off-forced/summary.json` and `environment-controls/summary.json` under the evidence root.
52
+
53
+ ## Candidate operation and bounded-swarm evidence
54
+
55
+ The corrected real-provider candidate matrix passed **30 tests / 2 intentional narrowed-refusal skips / 0 failures / 390 assertions in 564.04 seconds**, terminal exit 0 at `2026-11-18T18:53:07Z`. The two skipped tests assert narrowed non-swarm production refusals that do not apply to a full-scope candidate; no execution lane skipped.
56
+
57
+ Evidence includes:
58
+
59
+ - same-call managed Write denials for review, challenge, ask and review_gate;
60
+ - real confined rescue writing and separate absolute out-of-root `Bash.cwd` denial;
61
+ - unsafe experimental, default-plan and plan-tainted resume refusals;
62
+ - 2,534 started goal turns, 2,533 turns with managed denials and no target file, plus both pursue terminal controls;
63
+ - real read-only child denials and write-swarm child edits with a 306-byte patch, clean user tree and cleaned worktree;
64
+ - real out-of-worktree child Write denials;
65
+ - direct single-worker read/write with no children or activation, including a 348-byte write patch;
66
+ - directed recovery from an oversized wave, then two bounded waves with four children and a 596-byte patch;
67
+ - uncoached five-target production work at width four: two accepted waves, five children, peak three, zero coordinator-authored targets and a 759-byte patch.
68
+
69
+ The deterministic untouched-binary suite passed **23 tests / 0 failures / 138 assertions in 616.19 seconds**. It covers new/resumed waves, odd target grouping, both nested profiles, invalid resumes, read/write cancellation, active HTTP/tool budget expiry, native background-policy closure, direct-worker background behavior and 429/context recovery beyond the native 180-second interval. Every case runs in an isolated process with a scripted local provider and verifies process/provider quiescence before teardown.
70
+
71
+ The expanded activation fixture initially timed out all new 2.6.3 cases because the mock still routed 2.6.3 to the older hello/`subscribe_v2` protocol. Updating the fixture to the reviewed direct-subscription protocol passed all **24 focused 2.6.3 tests / 76 assertions**. This was a test-fixture correction, not a runtime workaround.
72
+
73
+ ## Production and release validation
74
+
75
+ The production-table matrix passed **30 tests / 2 intentional narrowed-refusal skips / 0 failures / 390 assertions in 529.18 seconds**, terminal exit 0 at `2026-11-18T19:31:03Z`. It ran with `candidate=(production table)` and no `KIMI_PLUGIN_CC_SMOKE_V2_CANDIDATE` override. Real evidence includes a 278-byte child-authored patch, out-of-root child denials, direct-worker read/write, two directed bounded waves, and an uncoached five-target run with two grouped children, peak two, no coordinator-authored targets and an 899-byte patch. Grouping multiple targets into one child is valid; it is not a requirement that each target have a separate child. The log is `daily-monitor/smoke/2026-11-18-2.6.3-production.log`.
76
+
77
+ Final validation receipts:
78
+
79
+ - **Frozen install and full repository gate:** PASS. `bun install --frozen-lockfile` exited 0. The definitive `bun run check` passed **1,797 tests / 76 expected opt-in or platform skips / 0 failures / 23,469 assertions**, covering 1,873 tests across 96 files in 623.26 seconds, including emitted-JavaScript and generated-drift gates. The first workspace attempt stopped on 23 ignored iCloud-style ` 3.js`/`LICENSE 3` generated-output conflict copies; they were reversibly quarantined under the evidence root and the same standard gate rerun. No assertion was removed or skipped to obtain the final result.
80
+ - **Package and DSH:** PASS. The 341-file package contains the new certification record, all three compiled distributions, isolated setup/check, unsupported-version refusal and MCP checks. Patched DSH host/profile auditing, seven providers/tools and Web boot passed.
81
+ - **Consumer security:** PASS. `bun run check:consumer-security` verified an isolated npm consumer installation without host credentials or model calls.
82
+ - **Post-edit review:** PASS. The independent runtime/test reviewer returned NO FINDINGS. The documentation reviewer returned two major and three minor findings; all were verified and corrected, and narrow re-review found all five resolved with no new must-fix. Final source/docs diff review preserved the pre-existing user edit in the 2.6.2 historical record.
83
+
84
+ The release commit must pass CI and the exact-release-commit production matrix before tagging. No installed-host setup or operator pin change is implied by certification or publication.
85
+
86
+ ## Residual boundaries
87
+
88
+ The bound covers simultaneous Kimi child-agent turns, excluding the coordinator and OS subprocess counts. `--cap` remains a soft lifetime-total hint and a finite time budget is not a spend cap. Parallel sessions retain the native TaskStop restriction after deactivation; later external interactive resume is outside the managed-job certification. Stream-json still lacks a general execution-outcome field, so hook-escape findings remain detection evidence rather than a failure signal.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kimi-plugin-cc",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "Kimi for Claude Code, Codex, and DeepSeek Harness: code questions, independent reviews, bounded fixes, autonomous goals, parallel tasks, and MCP tools through the local Kimi Code CLI.",
5
5
  "type": "module",
6
6
  "main": "dist/dsh/index.js",
@@ -140,6 +140,7 @@
140
140
  "docs/upstream-2.5.3-certification.md",
141
141
  "docs/upstream-2.6.0-certification.md",
142
142
  "docs/upstream-2.6.2-certification.md",
143
+ "docs/upstream-2.6.3-certification.md",
143
144
  "README.md",
144
145
  "LICENSE",
145
146
  "CHANGELOG.md",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kimi",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "Kimi for Codex: code questions, independent reviews, bounded fixes, autonomous goals, parallel tasks, and MCP job controls through the local Kimi Code CLI.",
5
5
  "author": {
6
6
  "name": "linxule"
@@ -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"].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"].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") {
981
- warnings.push("NOTE: kimi-code 2.6.2 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.");
980
+ if (probe.version === "2.6.2" || probe.version === "2.6.3") {
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 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 or 2.6.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 bounds admitted waves and prevents native
27
+ // prompt hint. Exact native-v2 2.6.2/2.6.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
@@ -33,7 +33,7 @@ import { usesBoundedSwarmPolicy } from "../swarm-policy.js";
33
33
  // confinement on the coordinator and every subagent. Write mode requires
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
- // web lifecycle, then resume it through the normal print path. 2.6.2 parallel
36
+ // web lifecycle, then resume it through the normal print path. 2.6.2/2.6.3 parallel
37
37
  // 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;
@@ -41,7 +41,7 @@ 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 also enforces this as the admitted wave size. The plugin exports
44
+ * Exact native-v2 2.6.2/2.6.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
60
+ * Default concurrency for WRITE mode — 1 vs read's 4. Exact native-v2 2.6.2/2.6.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 waves
149
+ // configuration and can execute configured helpers. Exact 2.6.2/2.6.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) {
@@ -596,9 +596,9 @@ function validateVersionSensitiveEvents(events, version) {
596
596
  // 2.0.2 (9d07f634), 2.1.0 (52437299), 2.1.1 (f67e6398), 2.2.0 (472192c3),
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
- // 2.5.2 (1c142a00), 2.5.3 (5af9942e), 2.6.0 (740d6c0b), and 2.6.2
600
- // (6a8493df): the additive events and HookDefSchema are unchanged. Exact 2.6.x
601
- // schema acceptance does not certify swarm operations.
599
+ // 2.5.2 (1c142a00), 2.5.3 (5af9942e), 2.6.0 (740d6c0b), 2.6.2
600
+ // (6a8493df), and 2.6.3 (b0de2fbd): the additive events and HookDefSchema are
601
+ // unchanged. Exact 2.6.x schema acceptance does not certify swarm 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) ||
@@ -617,7 +617,8 @@ function validateVersionSensitiveEvents(events, version) {
617
617
  (version.version === "2.5.2" && version.patch === 2) ||
618
618
  (version.version === "2.5.3" && version.patch === 3))) ||
619
619
  (version.minor === 6 && ((version.version === "2.6.0" && version.patch === 0) ||
620
- (version.version === "2.6.2" && version.patch === 2))))) {
620
+ (version.version === "2.6.2" && version.patch === 2) ||
621
+ (version.version === "2.6.3" && version.patch === 3))))) {
621
622
  return { valid: true };
622
623
  }
623
624
  if (version.major !== 0) {
@@ -50,6 +50,7 @@ export const NATIVE_V2_CERTIFIED_VERSIONS = Object.freeze([
50
50
  "2.5.2",
51
51
  "2.5.3",
52
52
  "2.6.2",
53
+ "2.6.3",
53
54
  ]);
54
55
  /**
55
56
  * Exact releases certified only for review, challenge, ask, rescue, review_gate
@@ -569,7 +570,7 @@ function nativeV2NotCertified(operationKind, version) {
569
570
  if (normalized !== undefined &&
570
571
  NATIVE_V2_NON_SWARM_VERSIONS.includes(normalized) &&
571
572
  (operationKind === "swarm" || operationKind === "swarm-write")) {
572
- 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 for this plugin's certified bounded waves and single-worker path, or use a non-swarm operation on ${normalized}.`, "kimi-engine.capability", {
573
+ 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 or 2.6.3 for this plugin's certified bounded waves and single-worker path, or use a non-swarm operation on ${normalized}.`, "kimi-engine.capability", {
573
574
  details: {
574
575
  refusal_kind: "v2-swarm-not-certified",
575
576
  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 also
26
+ * the whole job; `--cap` remains a soft lifetime-count hint. Exact 2.6.2/2.6.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: 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: 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,7 +13,7 @@ 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 2.6.x 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"];
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"];
17
17
  const READY_TIMEOUT_MS = 10_000;
18
18
  const REST_TIMEOUT_MS = 5_000;
19
19
  // Exact 2.4.0 can take longer than 5s to drain session/workspace lifecycle work.
@@ -343,7 +343,7 @@ async function resolveProfileModel(web, options, failureCode) {
343
343
  }
344
344
  async function createSession(web, options, expectedVersion, failureCode) {
345
345
  const request = { metadata: { cwd: options.cwd } };
346
- if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion)) {
346
+ if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion)) {
347
347
  request.environment_id = "local";
348
348
  request.environment_cwd = options.cwd;
349
349
  }
@@ -354,7 +354,7 @@ async function createSession(web, options, expectedVersion, failureCode) {
354
354
  return { sessionId: data.id, workspaceId: data.workspace_id };
355
355
  }
356
356
  async function verifyLocalEnvironment(web, identity, expectedCwd, expectedVersion, signal, failureCode) {
357
- if (!["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion))
357
+ if (!["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion))
358
358
  return;
359
359
  const data = await restData(web, "GET", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/environment`, undefined, signal, failureCode);
360
360
  if (!isRecord(data)) {
@@ -374,10 +374,10 @@ async function postSwarmProfile(web, identity, active, model, signal, failureCod
374
374
  await restData(web, "POST", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/profile`, { agent_config: agentConfig }, signal, failureCode);
375
375
  }
376
376
  async function verifySwarmStatus(web, identity, active, model, expectedVersion, signal, failureCode) {
377
- const data = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion)
377
+ const data = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion)
378
378
  ? await readWebSocketAgentState(web, identity.sessionId, expectedVersion, signal, failureCode)
379
379
  : await restData(web, "GET", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/status`, undefined, signal, failureCode);
380
- const source = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion) ? "agent state" : "/status";
380
+ const source = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion) ? "agent state" : "/status";
381
381
  if (!isRecord(data)) {
382
382
  throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} returned an invalid payload.`);
383
383
  }
@@ -387,10 +387,10 @@ async function verifySwarmStatus(web, identity, active, model, expectedVersion,
387
387
  if (data.plan_mode !== false) {
388
388
  throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} did not confirm plan mode is off.`);
389
389
  }
390
- if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion) && data.tower_mode !== false) {
390
+ if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion) && data.tower_mode !== false) {
391
391
  throw failure(failureCode, "swarm-activation.status", "Kimi web agent state did not confirm tower mode is off.");
392
392
  }
393
- const permission = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2"].includes(expectedVersion) ? data.permission_mode : data.permission;
393
+ const permission = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion) ? data.permission_mode : data.permission;
394
394
  if (permission !== "auto") {
395
395
  throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} did not confirm auto permission mode.`);
396
396
  }
@@ -406,7 +406,7 @@ async function readWebSocketAgentState(web, sessionId, expectedVersion, signal,
406
406
  return await new Promise((resolve, reject) => {
407
407
  let socket;
408
408
  const bearerProtocol = `kimi-code.bearer.${web.token}`;
409
- const legacyControl = !["2.6.0", "2.6.2"].includes(expectedVersion);
409
+ const legacyControl = !["2.6.0", "2.6.2", "2.6.3"].includes(expectedVersion);
410
410
  const helloId = `swarm-activation-hello-${randomUUID()}`;
411
411
  const subscribeId = `swarm-activation-subscribe-${randomUUID()}`;
412
412
  try {
@@ -6,7 +6,8 @@ export const BOUNDED_SWARM_POLICY = "bounded-waves/1";
6
6
  // terminal whole-job cancellation can interrupt a wave. Environment 0 is ignored.
7
7
  export const SWARM_CHILD_TIMEOUT_MS = 2_147_483_647;
8
8
  export function usesBoundedSwarmPolicy(plan) {
9
- return plan.intendedEngine === "native-v2" && plan.kimiVersion === "2.6.2" &&
9
+ return plan.intendedEngine === "native-v2" &&
10
+ (plan.kimiVersion === "2.6.2" || plan.kimiVersion === "2.6.3") &&
10
11
  (plan.operationKind === "swarm" || plan.operationKind === "swarm-write");
11
12
  }
12
13
  function plainObject(value) {
@@ -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.6.2";
7
+ export const KIMI_PLUGIN_CC_VERSION = "2.6.3";
@@ -29,7 +29,7 @@ Pass through: `[--budget <30m|1h>] [--cap <N>] [--max-concurrency <N>] [-m <mode
29
29
  - For subscription auth, guide native Kimi `/login`; for API keys or other providers, guide native `/provider` and have the user enter secrets there. Only an explicit saved-default request calls for native `/model`. Re-list after setup; use `setup --check` for hook readiness. Swarm `-m` selects the coordinator; `[secondary_model]` can select different child models.
30
30
  - Require many independent review targets plus explicit fan-out intent.
31
31
  - Pass finite budget and concurrency bounds; default to foreground unless the user explicitly asks to detach.
32
- - On exact Kimi Code 2.6.2, concurrency 1 runs one direct worker; larger values use bounded sequential waves. Older certified versions retain their normal-launch limit and recovery limitation.
32
+ - On exact Kimi Code 2.6.2/2.6.3, concurrency 1 runs one direct worker; larger values use bounded sequential waves. Older certified versions retain their normal-launch limit and recovery limitation.
33
33
  - The bound counts simultaneous Kimi child-agent turns, not OS subprocesses. Fresh-only waves need at least two entries; group odd target counts into disjoint worker assignments.
34
34
  - If the companion reports SWARM_HOOK_NOT_INSTALLED, tell the user to run Claude Code /kimi:setup or Codex $kimi-setup, then retry.
35
35
  - Return the consolidated companion report verbatim.