kimi-plugin-cc 2.5.6 → 2.5.8
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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +17 -0
- package/README.md +8 -8
- package/agents/kimi-swarm-write.md +3 -3
- package/agents/kimi-swarm.md +3 -3
- package/commands/swarm.md +2 -2
- package/dist/cli-client.js +3 -3
- package/dist/commands/recover-swarm.js +2 -1
- package/dist/commands/setup.js +7 -7
- package/dist/commands/swarm.js +40 -33
- package/dist/hooks/config-safety.js +7 -4
- package/dist/kimi-engine.js +46 -12
- package/dist/mcp/operations.js +1 -1
- package/dist/session-recovery.js +3 -1
- package/dist/stream-json.js +2 -2
- package/dist/swarm-activation.js +73 -32
- package/dist/version.js +1 -1
- package/docs/migration.md +6 -6
- package/docs/registry-releases.md +3 -1
- package/docs/safety.md +19 -16
- package/docs/swarm-recovery.md +4 -2
- package/docs/upstream-2.5.3-certification.md +73 -0
- package/docs/upstream-2.6.0-certification.md +52 -0
- package/package.json +3 -1
- package/plugins/kimi-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/kimi-codex/dist/cli-client.js +3 -3
- package/plugins/kimi-codex/dist/commands/recover-swarm.js +2 -1
- package/plugins/kimi-codex/dist/commands/setup.js +7 -7
- package/plugins/kimi-codex/dist/commands/swarm.js +40 -33
- package/plugins/kimi-codex/dist/hooks/config-safety.js +7 -4
- package/plugins/kimi-codex/dist/kimi-engine.js +46 -12
- package/plugins/kimi-codex/dist/mcp/operations.js +1 -1
- package/plugins/kimi-codex/dist/session-recovery.js +3 -1
- package/plugins/kimi-codex/dist/stream-json.js +2 -2
- package/plugins/kimi-codex/dist/swarm-activation.js +73 -32
- package/plugins/kimi-codex/dist/version.js +1 -1
- package/plugins/kimi-dsh/dist/cli-client.js +3 -3
- package/plugins/kimi-dsh/dist/commands/recover-swarm.js +2 -1
- package/plugins/kimi-dsh/dist/commands/setup.js +7 -7
- package/plugins/kimi-dsh/dist/commands/swarm.js +40 -33
- package/plugins/kimi-dsh/dist/hooks/config-safety.js +7 -4
- package/plugins/kimi-dsh/dist/kimi-engine.js +46 -12
- package/plugins/kimi-dsh/dist/mcp/operations.js +1 -1
- package/plugins/kimi-dsh/dist/session-recovery.js +3 -1
- package/plugins/kimi-dsh/dist/stream-json.js +2 -2
- package/plugins/kimi-dsh/dist/swarm-activation.js +73 -32
- package/plugins/kimi-dsh/dist/version.js +1 -1
- package/plugins/kimi-dsh/package.json +1 -1
package/dist/swarm-activation.js
CHANGED
|
@@ -10,7 +10,8 @@ import { assertExecutionPlanMatchesSpawn, assertNoUnsafeExperimentalSelector, }
|
|
|
10
10
|
import { resolveKimiHome } from "./kimi-home.js";
|
|
11
11
|
import { assertNativeV2Preflight } from "./native-v2-preflight.js";
|
|
12
12
|
import { collectDescendantIdentities, collectProcessGroupsIdentities, probeProcessIdentity, revalidateProcessIdentities, waitForProcessTreeExit, } from "./process-tree.js";
|
|
13
|
-
|
|
13
|
+
// Exact 2.6.0 is an integration candidate, not a production-certified version.
|
|
14
|
+
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"];
|
|
14
15
|
const READY_TIMEOUT_MS = 10_000;
|
|
15
16
|
const REST_TIMEOUT_MS = 5_000;
|
|
16
17
|
// Exact 2.4.0 can take longer than 5s to drain session/workspace lifecycle work.
|
|
@@ -337,7 +338,7 @@ async function resolveProfileModel(web, options, failureCode) {
|
|
|
337
338
|
}
|
|
338
339
|
async function createSession(web, options, expectedVersion, failureCode) {
|
|
339
340
|
const request = { metadata: { cwd: options.cwd } };
|
|
340
|
-
if (["2.5.0", "2.5.1", "2.5.2"].includes(expectedVersion)) {
|
|
341
|
+
if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0"].includes(expectedVersion)) {
|
|
341
342
|
request.environment_id = "local";
|
|
342
343
|
request.environment_cwd = options.cwd;
|
|
343
344
|
}
|
|
@@ -348,7 +349,7 @@ async function createSession(web, options, expectedVersion, failureCode) {
|
|
|
348
349
|
return { sessionId: data.id, workspaceId: data.workspace_id };
|
|
349
350
|
}
|
|
350
351
|
async function verifyLocalEnvironment(web, identity, expectedCwd, expectedVersion, signal, failureCode) {
|
|
351
|
-
if (!["2.5.0", "2.5.1", "2.5.2"].includes(expectedVersion))
|
|
352
|
+
if (!["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0"].includes(expectedVersion))
|
|
352
353
|
return;
|
|
353
354
|
const data = await restData(web, "GET", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/environment`, undefined, signal, failureCode);
|
|
354
355
|
if (!isRecord(data)) {
|
|
@@ -368,10 +369,10 @@ async function postSwarmProfile(web, identity, active, model, signal, failureCod
|
|
|
368
369
|
await restData(web, "POST", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/profile`, { agent_config: agentConfig }, signal, failureCode);
|
|
369
370
|
}
|
|
370
371
|
async function verifySwarmStatus(web, identity, active, model, expectedVersion, signal, failureCode) {
|
|
371
|
-
const data = ["2.5.0", "2.5.1", "2.5.2"].includes(expectedVersion)
|
|
372
|
-
? await readWebSocketAgentState(web, identity.sessionId, signal, failureCode)
|
|
372
|
+
const data = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0"].includes(expectedVersion)
|
|
373
|
+
? await readWebSocketAgentState(web, identity.sessionId, expectedVersion, signal, failureCode)
|
|
373
374
|
: await restData(web, "GET", `/api/v1/sessions/${encodeURIComponent(identity.sessionId)}/status`, undefined, signal, failureCode);
|
|
374
|
-
const source = ["2.5.0", "2.5.1", "2.5.2"].includes(expectedVersion) ? "agent state" : "/status";
|
|
375
|
+
const source = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0"].includes(expectedVersion) ? "agent state" : "/status";
|
|
375
376
|
if (!isRecord(data)) {
|
|
376
377
|
throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} returned an invalid payload.`);
|
|
377
378
|
}
|
|
@@ -381,10 +382,10 @@ async function verifySwarmStatus(web, identity, active, model, expectedVersion,
|
|
|
381
382
|
if (data.plan_mode !== false) {
|
|
382
383
|
throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} did not confirm plan mode is off.`);
|
|
383
384
|
}
|
|
384
|
-
if (["2.5.0", "2.5.1", "2.5.2"].includes(expectedVersion) && data.tower_mode !== false) {
|
|
385
|
+
if (["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0"].includes(expectedVersion) && data.tower_mode !== false) {
|
|
385
386
|
throw failure(failureCode, "swarm-activation.status", "Kimi web agent state did not confirm tower mode is off.");
|
|
386
387
|
}
|
|
387
|
-
const permission = ["2.5.0", "2.5.1", "2.5.2"].includes(expectedVersion) ? data.permission_mode : data.permission;
|
|
388
|
+
const permission = ["2.5.0", "2.5.1", "2.5.2", "2.5.3", "2.6.0"].includes(expectedVersion) ? data.permission_mode : data.permission;
|
|
388
389
|
if (permission !== "auto") {
|
|
389
390
|
throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} did not confirm auto permission mode.`);
|
|
390
391
|
}
|
|
@@ -392,7 +393,7 @@ async function verifySwarmStatus(web, identity, active, model, expectedVersion,
|
|
|
392
393
|
throw failure(failureCode, "swarm-activation.status", `Kimi web ${source} did not confirm the selected model alias.`);
|
|
393
394
|
}
|
|
394
395
|
}
|
|
395
|
-
async function readWebSocketAgentState(web, sessionId, signal, failureCode) {
|
|
396
|
+
async function readWebSocketAgentState(web, sessionId, expectedVersion, signal, failureCode) {
|
|
396
397
|
throwIfAborted(signal, failureCode, "swarm-activation.status");
|
|
397
398
|
await refreshOwnedDescendants(web);
|
|
398
399
|
throwIfAborted(signal, failureCode, "swarm-activation.status");
|
|
@@ -400,6 +401,7 @@ async function readWebSocketAgentState(web, sessionId, signal, failureCode) {
|
|
|
400
401
|
return await new Promise((resolve, reject) => {
|
|
401
402
|
let socket;
|
|
402
403
|
const bearerProtocol = `kimi-code.bearer.${web.token}`;
|
|
404
|
+
const legacyControl = expectedVersion !== "2.6.0";
|
|
403
405
|
const helloId = `swarm-activation-hello-${randomUUID()}`;
|
|
404
406
|
const subscribeId = `swarm-activation-subscribe-${randomUUID()}`;
|
|
405
407
|
try {
|
|
@@ -418,6 +420,7 @@ async function readWebSocketAgentState(web, sessionId, signal, failureCode) {
|
|
|
418
420
|
let subscribeSent = false;
|
|
419
421
|
let subscriptionAcknowledged = false;
|
|
420
422
|
let closeRequested = false;
|
|
423
|
+
let closeTimer;
|
|
421
424
|
let latestState;
|
|
422
425
|
let frames = 0;
|
|
423
426
|
let receivedChars = 0;
|
|
@@ -426,6 +429,8 @@ async function readWebSocketAgentState(web, sessionId, signal, failureCode) {
|
|
|
426
429
|
}, REST_TIMEOUT_MS);
|
|
427
430
|
const cleanup = () => {
|
|
428
431
|
clearTimeout(timer);
|
|
432
|
+
if (closeTimer !== undefined)
|
|
433
|
+
clearTimeout(closeTimer);
|
|
429
434
|
signal?.removeEventListener("abort", onAbort);
|
|
430
435
|
socket.removeEventListener("open", onOpen);
|
|
431
436
|
socket.removeEventListener("message", onMessage);
|
|
@@ -460,30 +465,46 @@ async function readWebSocketAgentState(web, sessionId, signal, failureCode) {
|
|
|
460
465
|
return false;
|
|
461
466
|
}
|
|
462
467
|
};
|
|
468
|
+
const handshakeComplete = () => !legacyControl || (serverHello && clientHelloAcknowledged);
|
|
469
|
+
const closeForValidation = () => {
|
|
470
|
+
closeRequested = true;
|
|
471
|
+
try {
|
|
472
|
+
socket.close();
|
|
473
|
+
}
|
|
474
|
+
catch {
|
|
475
|
+
rejectState("Could not close the Kimi web agent-state channel for final validation.");
|
|
476
|
+
}
|
|
477
|
+
};
|
|
463
478
|
const completeIfReady = () => {
|
|
464
|
-
if (
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
closeRequested = true;
|
|
470
|
-
try {
|
|
471
|
-
socket.close();
|
|
472
|
-
}
|
|
473
|
-
catch {
|
|
474
|
-
rejectState("Could not close the Kimi web agent-state channel for final validation.");
|
|
475
|
-
}
|
|
479
|
+
if (!handshakeComplete() || !subscriptionAcknowledged || latestState === undefined || closeRequested)
|
|
480
|
+
return;
|
|
481
|
+
if (legacyControl) {
|
|
482
|
+
closeForValidation();
|
|
483
|
+
return;
|
|
476
484
|
}
|
|
485
|
+
closeTimer ??= setTimeout(() => {
|
|
486
|
+
closeTimer = undefined;
|
|
487
|
+
closeForValidation();
|
|
488
|
+
}, 0);
|
|
477
489
|
};
|
|
478
490
|
const onOpen = () => {
|
|
479
491
|
if (socket.protocol !== bearerProtocol) {
|
|
480
492
|
rejectState("Kimi web did not authenticate the agent-state channel with the expected subprotocol.");
|
|
481
493
|
return;
|
|
482
494
|
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
495
|
+
if (legacyControl) {
|
|
496
|
+
send({
|
|
497
|
+
type: "client_hello",
|
|
498
|
+
id: helloId,
|
|
499
|
+
payload: { client_id: "kimi-plugin-cc-swarm-activation" },
|
|
500
|
+
});
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
subscribeSent = send({
|
|
504
|
+
type: "subscribe",
|
|
505
|
+
request_id: subscribeId,
|
|
506
|
+
session_id: sessionId,
|
|
507
|
+
agent_ids: ["main"],
|
|
487
508
|
});
|
|
488
509
|
};
|
|
489
510
|
const onMessage = (event) => {
|
|
@@ -511,7 +532,7 @@ async function readWebSocketAgentState(web, sessionId, signal, failureCode) {
|
|
|
511
532
|
rejectState("Kimi web agent-state channel returned an invalid frame.");
|
|
512
533
|
return;
|
|
513
534
|
}
|
|
514
|
-
if (frame.type === "server_hello") {
|
|
535
|
+
if (legacyControl && frame.type === "server_hello") {
|
|
515
536
|
if (serverHello || !isRecord(frame.payload) ||
|
|
516
537
|
frame.payload.protocol_version !== 2 ||
|
|
517
538
|
typeof frame.payload.ws_connection_id !== "string" ||
|
|
@@ -524,11 +545,11 @@ async function readWebSocketAgentState(web, sessionId, signal, failureCode) {
|
|
|
524
545
|
serverHello = true;
|
|
525
546
|
return;
|
|
526
547
|
}
|
|
527
|
-
if (!serverHello) {
|
|
548
|
+
if (legacyControl && !serverHello) {
|
|
528
549
|
rejectState("Kimi web agent-state channel sent data before its protocol hello.");
|
|
529
550
|
return;
|
|
530
551
|
}
|
|
531
|
-
if (frame.type === "ack") {
|
|
552
|
+
if (legacyControl && frame.type === "ack") {
|
|
532
553
|
if (typeof frame.id !== "string" || typeof frame.code !== "number" || !isRecord(frame.payload)) {
|
|
533
554
|
rejectState("Kimi web agent-state channel returned an invalid acknowledgement.");
|
|
534
555
|
return;
|
|
@@ -563,8 +584,26 @@ async function readWebSocketAgentState(web, sessionId, signal, failureCode) {
|
|
|
563
584
|
rejectState("Kimi web agent-state channel returned an unexpected acknowledgement.");
|
|
564
585
|
return;
|
|
565
586
|
}
|
|
587
|
+
if (!legacyControl && frame.type === "response") {
|
|
588
|
+
if (typeof frame.request_id !== "string" || !Number.isInteger(frame.code)) {
|
|
589
|
+
rejectState("Kimi web agent-state channel returned an invalid subscription response.");
|
|
590
|
+
return;
|
|
591
|
+
}
|
|
592
|
+
if (frame.request_id !== subscribeId) {
|
|
593
|
+
rejectState("Kimi web agent-state channel returned an unexpected subscription response.");
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
if (subscriptionAcknowledged || !subscribeSent || frame.code !== 0) {
|
|
597
|
+
rejectState("Kimi web agent-state channel did not accept the exact main-session subscription.");
|
|
598
|
+
return;
|
|
599
|
+
}
|
|
600
|
+
subscriptionAcknowledged = true;
|
|
601
|
+
completeIfReady();
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
566
604
|
if (frame.type === "agent") {
|
|
567
|
-
if (!subscribeSent || !
|
|
605
|
+
if (!subscribeSent || (!legacyControl && !subscriptionAcknowledged) ||
|
|
606
|
+
!isAgentStateFrame(frame, sessionId)) {
|
|
568
607
|
rejectState("Kimi web agent-state channel returned invalid or misbound main-agent state.");
|
|
569
608
|
return;
|
|
570
609
|
}
|
|
@@ -573,9 +612,12 @@ async function readWebSocketAgentState(web, sessionId, signal, failureCode) {
|
|
|
573
612
|
return;
|
|
574
613
|
}
|
|
575
614
|
if (frame.type === "ping") {
|
|
576
|
-
if (isRecord(frame.payload) && typeof frame.payload.nonce === "string") {
|
|
615
|
+
if (legacyControl && isRecord(frame.payload) && typeof frame.payload.nonce === "string") {
|
|
577
616
|
send({ type: "pong", payload: { nonce: frame.payload.nonce } });
|
|
578
617
|
}
|
|
618
|
+
else if (!legacyControl) {
|
|
619
|
+
send({ type: "pong" });
|
|
620
|
+
}
|
|
579
621
|
}
|
|
580
622
|
};
|
|
581
623
|
const onAbort = () => {
|
|
@@ -586,8 +628,7 @@ async function readWebSocketAgentState(web, sessionId, signal, failureCode) {
|
|
|
586
628
|
};
|
|
587
629
|
const onClose = () => {
|
|
588
630
|
if (closeRequested &&
|
|
589
|
-
|
|
590
|
-
clientHelloAcknowledged &&
|
|
631
|
+
handshakeComplete() &&
|
|
591
632
|
subscriptionAcknowledged &&
|
|
592
633
|
latestState !== undefined) {
|
|
593
634
|
settle(latestState);
|
package/dist/version.js
CHANGED
package/docs/migration.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Compatibility and upgrades
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The runtime certifies exact CLI releases per operation. Exact 2.6.0 is certified for review, challenge, ask, rescue, review gate and pursue only; both swarm modes refuse before model spawn. Full eight-operation certification ends at 2.5.3, with the inherited rate-limit limitation disclosed, and earlier exact rows remain unchanged. `NATIVE_V2_CERTIFIED_VERSIONS` remains the all-operation export, so automatic full-swarm pin selection does not move to 2.6.0; `NATIVE_V2_ANY_OPERATION_VERSIONS` is the separate scoped union used by setup and engine selection. Choose 2.6.0 explicitly for non-swarm use. Later patches and minor releases, including 2.6.1, are not accepted automatically. The npm distribution adds an installation channel; it does not change this compatibility table.
|
|
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
|
|
|
@@ -10,15 +10,15 @@ Use the [README installation and update steps](../README.md) for Claude Code or
|
|
|
10
10
|
|
|
11
11
|
## Plugin versions and upgrades
|
|
12
12
|
|
|
13
|
-
Plugin versions advance independently using ordinary SemVer and may deliberately align with a certified CLI release.
|
|
13
|
+
Plugin versions advance independently using ordinary SemVer and may deliberately align with a certified CLI release. Nearby version numbers do not imply compatibility or operation scope; the exact per-operation matrix is authoritative. Published versions and tags are never reused. Every upstream patch requires its own certification. The native-v2 no-plan profile, plugin/marketplace IDs and existing job store are preserved.
|
|
14
14
|
|
|
15
|
-
## CLI 2.3.2, 2.3.3, 2.4.0, 2.4.1 and 2.5.0/2.5.1/2.5.2 swarm activation
|
|
15
|
+
## 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 activation
|
|
16
16
|
|
|
17
|
-
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, swarm commands and MCP calls use the same `runSwarm` lifecycle:
|
|
17
|
+
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, swarm commands and MCP calls use the same `runSwarm` lifecycle:
|
|
18
18
|
|
|
19
|
-
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. On exact 2.5.0/2.5.1/2.5.2, creation explicitly selects the local environment and an authenticated `/environment` read proves its cwd before profile mutation; state verification uses protocol-v2 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.
|
|
19
|
+
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. On exact 2.5.0/2.5.1/2.5.2/2.5.3, creation explicitly selects the local environment and an authenticated `/environment` read proves its cwd before profile mutation; state verification uses protocol-v2 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.
|
|
20
20
|
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.
|
|
21
|
-
3. A second short-lived web lifecycle rechecks the local binding on 2.5.0/2.5.1/2.5.2, disables swarm mode, verifies the version-appropriate state proof and the `swarm_mode.exit` journal record, and shuts down.
|
|
21
|
+
3. A second short-lived web lifecycle rechecks the local binding on 2.5.0/2.5.1/2.5.2/2.5.3, disables swarm mode, verifies the version-appropriate state proof and the `swarm_mode.exit` journal record, and shuts down.
|
|
22
22
|
|
|
23
23
|
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.
|
|
24
24
|
|
|
@@ -8,7 +8,9 @@ no separate CLI.
|
|
|
8
8
|
|
|
9
9
|
## Publishing status
|
|
10
10
|
|
|
11
|
-
Plugin **2.5.
|
|
11
|
+
Plugin **2.5.7** certifies exact Kimi Code **2.5.3** for all eight operations, alongside 2.5.0, 2.5.1 and 2.5.2; see the [2.5.3 certification record](./upstream-2.5.3-certification.md). Candidate and production matrices each passed 24 tests with 201 assertions and no skips. The corrected-tree full check passed 1,437 tests with 18,980 assertions in 396.30 seconds, package validation passed 332 files across all three distributions, and isolated consumer security passed. Codex returned APPROVE with no findings; Claude returned READY-TO-TAG with no blocker or major findings, and its two chronology corrections are included. Publication does not update installed hosts or operator pins. [Release v2.5.7](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.7) is anchored at `b203b6fd0db865935bf47241ee4ea8cf3931b9a5`. [Release-commit CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/43045729840) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/43046887763) passed. The 332-file registry tarball has SHA-1 `adfee8da730dc14349d26125bc5add44fe204aa5`, matches the validated workflow artifact byte-for-byte, and carries signed provenance (sigstore log index `3812668747`). A fresh registry npm installation has zero production advisories; isolated Claude Code, Codex, and DSH setup/checks and unsupported-version refusal pass, and all compiled runtime mirrors match the release tag. The Discover timestamp records npm publication at `2026-11-11T15:25:33.059Z`.
|
|
12
|
+
|
|
13
|
+
Plugin **2.5.6** certifies exact Kimi Code **2.5.2** for all eight operations, alongside 2.5.0 and 2.5.1; see the [2.5.2 certification record](./upstream-2.5.2-certification.md). Candidate and production matrices each passed 24 tests with 167 assertions and no skips. The full check passed 1,429 tests with 18,662 assertions, package validation passed 331 files across all three distributions, and isolated consumer security passed. Publication does not update installed hosts or operator pins. [Release v2.5.6](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.6) is anchored at `a9585a1cd4177b17e422b63305d390aa1f1b9c81`. [Release-commit CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/42376507143) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/42381804227) passed; the first three publication attempts failed with `TLOG_CREATE_ENTRY_ERROR` during a Sigstore Rekor database upgrade and published nothing, and attempt 4 succeeded unchanged. The 331-file registry tarball has SHA-1 `32c712a00186c1b0a334bf39d03cc397a2012b05`, matches the validated workflow artifact byte-for-byte, and carries provenance (sigstore log index `3739983164`). A fresh registry npm installation has zero production advisories and all compiled runtime mirrors match. The Discover timestamp records npm publication at `2026-11-07T14:56:36.462Z`.
|
|
12
14
|
|
|
13
15
|
Plugin **2.5.5** keeps every host's managed hook block contiguous in the shared `~/.kimi-code/config.toml`, so a comment-preserving third-party writer that regroups tables cannot strip a block's BEGIN marker, and scopes orphan-marker verification per host: another host's orphan warns, own and legacy orphans still fail closed, and the remedy is plain setup. Exact CLI certification remains 2.5.0 and 2.5.1; publication does not update installed hosts or operator pins. The [v2.5.5 release](https://github.com/linxule/kimi-plugin-cc/releases/tag/v2.5.5) is anchored at `ba0bb8f293839d8658f9486da2feb32908eab4d4`. [Release-commit CI](https://github.com/linxule/kimi-plugin-cc/actions/runs/42372824792) and [OIDC publication](https://github.com/linxule/kimi-plugin-cc/actions/runs/42373304448) passed. The 330-file registry tarball has SHA-1 `b035ab57aa7902538c13bee384b2dead48c2a57c`, matches the validated workflow artifact byte-for-byte, and carries provenance (sigstore log index `3738319436`). A fresh registry npm installation has zero production advisories and all compiled runtime mirrors match. The Discover timestamp records npm publication at `2026-11-07T12:44:10.489Z`.
|
|
14
16
|
|
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 is certified at exact CLI versions `0.42.0`, `0.43.0`, `0.43.1`, `2.0.0`, `2.0.1`, `2.0.2`, `2.1.0`, `2.1.1`, `2.2.0`, `2.3.0`, `2.3.1`, `2.3.2`, `2.3.3`, `2.4.0`, `2.4.1`, `2.5.0`, `2.5.1`, and `2.5.
|
|
5
|
+
Native agent-core-v2 is certified at exact CLI versions `0.42.0`, `0.43.0`, `0.43.1`, `2.0.0`, `2.0.1`, `2.0.2`, `2.1.0`, `2.1.1`, `2.2.0`, `2.3.0`, `2.3.1`, `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`, with plan mode disabled. Exact 2.6.0 has a narrowed certification for review, challenge, ask, rescue, review gate and pursue only; both swarm modes refuse before model spawn because upstream rate-limit recovery can exceed the configured concurrency limit. The [runtime certification table](../runtime/kimi-engine.ts) controls routing and operation scope. The hook is not an operating-system sandbox.
|
|
6
6
|
|
|
7
7
|
## Why the safety story is hook-based
|
|
8
8
|
|
|
@@ -220,17 +220,17 @@ 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 and 2.5.
|
|
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
|
|
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 versions requiring activation (currently exact 2.3.2, 2.3.3, 2.4.0, 2.4.1, 2.5.0, 2.5.1 and 2.5.
|
|
229
|
+
For versions requiring activation (currently exact 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), 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 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, closing that channel before validating the latest frame; verifies clean shutdown; and requires the main journal's manual `swarm_mode.enter` record.
|
|
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.
|
|
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, 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, 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
|
|
|
@@ -239,11 +239,11 @@ Older certified versions keep the direct `kimi -p` path. The web processes are n
|
|
|
239
239
|
`/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**.
|
|
240
240
|
|
|
241
241
|
- **The hook label is `swarm`, and it allows the read-only tool set PLUS `AgentSwarm`.** The coordinator must be allowed to call `AgentSwarm` (else the swarm never launches), but no write/edit/shell tool is allowed. 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.
|
|
242
|
-
- **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 final 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 and 2.5.
|
|
242
|
+
- **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 final 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.
|
|
243
243
|
- **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.
|
|
244
244
|
- **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.
|
|
245
|
-
- **The only new risk is COST, and the plugin bounds it.** Read-only swarm writes nothing, so the new risk is runaway cost from N parallel model runs (and possible nested `AgentSwarm`). `/kimi:swarm` enforces a **mandatory finite wall-clock ceiling** via its AbortController (`--budget`, default 30m); the SIGTERM→SIGKILL descendant-reaping cancellation reaps the whole subagent process tree. Two **distinct** subagent bounds: `--cap N` is a *soft* prompt-injected hint on TOTAL subagent count (the hook is stateless and cannot enforce a count, so the model may exceed it), and `--max-concurrency N`
|
|
246
|
-
- **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
|
|
245
|
+
- **The only new risk is COST, and the plugin bounds it.** Read-only swarm writes nothing, so the new risk is runaway cost from N parallel model runs (and possible nested `AgentSwarm`). `/kimi:swarm` enforces a **mandatory finite wall-clock ceiling** via its AbortController (`--budget`, default 30m); the SIGTERM→SIGKILL descendant-reaping cancellation reaps the whole subagent process tree. Two **distinct** subagent bounds: `--cap N` is a *soft* prompt-injected hint on TOTAL subagent count (the hook is stateless and cannot enforce a count, so the model may exceed it), and `--max-concurrency N` caps normal launches of kimi-code's `SubagentBatch` — exported as `KIMI_CODE_AGENT_SWARM_MAX_CONCURRENCY` (PR #888) on **kimi-code 0.18.0+** (older binaries ignore the unknown env var, so on < 0.18 only the soft hint applies). It **defaults to 4** when the user passes none (`resolveSwarmMaxConcurrency` in swarm.ts), so every swarm run — agent-dispatched or human-typed — carries a normal-launch peak-parallelism ceiling on 0.18.0+; pass an explicit value to widen or throttle. **Never merge them into one flag:** concurrency ≠ total count — the normal-launch cap of N still permits more than N subagents over the life of the run, and rate-limit recovery can also exceed its at-once peak as detailed below. The `--budget` bounds elapsed time, not a dollar amount or total token count; `--max-concurrency` bounds *peak* parallelism (the spike in simultaneous model spend), and `--cap` is only an advisory total-count nudge. Folding both onto one flag would create the "cap-as-total-count illusion" — a user reading `--cap N` would expect a total bound but receive only a peak-parallelism one. **Known upstream limitation:** normal launches enforce the configured maximum, but deterministic controls against exact 2.6.0 show rate-limit recovery exceeding it (cap 1 reaching two active attempts; cap 4 reaching five). Source inspection shows the same inherited defect in 2.5.3. Until a released upstream fix is certified, `--max-concurrency` is a requested peak with normal-launch enforcement, not an unconditional hard ceiling. This limitation is disclosed for existing rows rather than silently rewriting their certification history; 2.6.0 remains uncertified for either swarm operation, and its narrowed non-swarm certification does not waive the limitation.
|
|
246
|
+
- **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 normal-launch `--max-concurrency` that the runtime defaults to 4 for every swarm run (with the recovery qualification above) — 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`.
|
|
247
247
|
|
|
248
248
|
## Write-capable swarm (`/kimi:swarm --write`)
|
|
249
249
|
|
|
@@ -254,9 +254,9 @@ Older certified versions keep the direct `kimi -p` path. The web processes are n
|
|
|
254
254
|
- **`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.
|
|
255
255
|
- **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.
|
|
256
256
|
- **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.
|
|
257
|
-
- **Gated tightly.** Requires kimi-code **≥ 0.18.0** (below it `KIMI_CODE_AGENT_SWARM_MAX_CONCURRENCY` is ignored, so a write fan-out would have no
|
|
257
|
+
- **Gated tightly.** Requires kimi-code **≥ 0.18.0** (below it `KIMI_CODE_AGENT_SWARM_MAX_CONCURRENCY` is ignored, so a write fan-out would have no normal-launch peak bound); because that support cannot be confirmed without a version probe, the write-mode version gate **fails closed** on an unconfirmable `kimi --version` probe (the shared execution-plan gate also refuses unverified or uncertified binaries for read-only swarm; older certified legacy versions may lack normal-launch concurrency support). The rate-limit recovery qualification above applies to every supported version reviewed here. Also requires a git repo with a **committed HEAD**, and the PreToolUse hook (**refuses** without it, like read swarm). Bases the worktree on HEAD, so a **loud warning** fires when the working tree is dirty (uncommitted work is not visible to the swarm). Default `--max-concurrency` is **1** for normal-launch serialization since disjoint-target partitioning is prompt-only and unenforceable by the stateless hook; the rate-limit recovery qualification above applies; the coordinator prompt also forbids git mutation and nested `AgentSwarm`.
|
|
258
258
|
- **Required for final certification evidence.** `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.
|
|
259
|
-
- **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
|
|
259
|
+
- **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.
|
|
260
260
|
|
|
261
261
|
## MCP transport and long-running jobs
|
|
262
262
|
|
|
@@ -298,7 +298,7 @@ worktree. A directory the operator trusted interactively in the Kimi TUI still
|
|
|
298
298
|
has that property; that persisted-trust route is a documented residual, not
|
|
299
299
|
something the plugin can close.
|
|
300
300
|
|
|
301
|
-
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 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.
|
|
301
|
+
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 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.
|
|
302
302
|
|
|
303
303
|
## Running a newer Kimi than the plugin certifies
|
|
304
304
|
|
|
@@ -310,16 +310,19 @@ at it (the runtime resolves that path instead of `kimi` on `PATH`; every spawn
|
|
|
310
310
|
still exports `KIMI_CODE_NO_AUTO_UPDATE=1`, so the pinned copy never drifts).
|
|
311
311
|
|
|
312
312
|
```sh
|
|
313
|
-
PIN=~/.local/share/kimi-plugin-cc/kimi-bin/2.5.
|
|
313
|
+
PIN=~/.local/share/kimi-plugin-cc/kimi-bin/2.5.3
|
|
314
314
|
mkdir -p "$PIN" && cd "$PIN" && printf '{"name":"kimi-plugin-cc-pin","private":true}\n' > package.json
|
|
315
|
-
npm install @moonshot-ai/kimi-code@2.5.
|
|
315
|
+
npm install @moonshot-ai/kimi-code@2.5.3
|
|
316
316
|
export KIMI_PLUGIN_CC_KIMI_BIN="$PIN/node_modules/.bin/kimi" # e.g. in ~/.zshenv
|
|
317
317
|
```
|
|
318
318
|
|
|
319
319
|
Both binaries share `~/.kimi-code` (login, config, hook), so nothing else
|
|
320
|
-
changes. The certified maximum can be read from the installed
|
|
321
|
-
(`NATIVE_V2_CERTIFIED_VERSIONS` in `dist/kimi-engine.js`), which lets an
|
|
322
|
-
script bump the pin automatically after each
|
|
320
|
+
changes. The full-operation certified maximum can be read from the installed
|
|
321
|
+
plugin (`NATIVE_V2_CERTIFIED_VERSIONS` in `dist/kimi-engine.js`), which lets an
|
|
322
|
+
upgrade script bump the full-swarm pin automatically after each full-operation
|
|
323
|
+
certification. That export deliberately excludes narrowed releases such as
|
|
324
|
+
2.6.0; `NATIVE_V2_ANY_OPERATION_VERSIONS` is the separate scoped union, so an
|
|
325
|
+
automatic full-swarm pin does not silently become a non-swarm-only pin.
|
|
323
326
|
|
|
324
327
|
## The setup probe
|
|
325
328
|
|
package/docs/swarm-recovery.md
CHANGED
|
@@ -2,7 +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 swarm runs created by this runtime, 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 the web authentication token, credentials, prompt or config contents. Session identity is committed before the request enabling swarm mode.
|
|
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 created by this runtime, 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 the web authentication token, credentials, prompt or config contents. Session identity is committed before the request enabling swarm mode.
|
|
6
|
+
|
|
7
|
+
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.
|
|
6
8
|
|
|
7
9
|
## Preview, then recover
|
|
8
10
|
|
|
@@ -17,7 +19,7 @@ Preview does not signal processes, modify sessions, or capture patches. Apply:
|
|
|
17
19
|
|
|
18
20
|
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.
|
|
19
21
|
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.
|
|
20
|
-
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 this includes the local environment binding and protocol-v2 WebSocket main-agent state rather than `/status`. It does not resume a prompt, generate model output, install hooks or retry failed cleanup automatically. New recovery web launches are themselves journaled.
|
|
22
|
+
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`. 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.
|
|
21
23
|
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.
|
|
22
24
|
|
|
23
25
|
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.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Kimi Code 2.5.3 certification evidence — 2026-11-11
|
|
2
|
+
|
|
3
|
+
## Status and exact source
|
|
4
|
+
|
|
5
|
+
**Exact CLI 2.5.3 is certified for all eight operations by plugin 2.5.7.** The exact-source audit, non-vacuous plan/environment/swarm controls, candidate matrix, production-table matrix, frozen install, full repository check, package validation and isolated consumer-security audit passed. Codex's closing review returned **APPROVE with no findings**; Claude's closing review returned **READY-TO-TAG with no blocker or major findings**, and its two chronology corrections are included. Publication does not update installed hosts or operator pins.
|
|
6
|
+
|
|
7
|
+
Candidate: `@moonshot-ai/kimi-code@2.5.3`, release commit `5af9942e9fb789b6a1530830575b3768499932e9`, compared with certified 2.5.2 (`1c142a007c10e881602690def96057c23a2baa12`). npm publication: 2026-11-10T13:12:36.201Z. An isolated npm installation and its executable both report 2.5.3; its `dist/main.mjs` SHA-256 is `07019fce6f568b642d4422e1daa81f975de6a21c578c82a924925c2e667aa11a`. The seven scoped 2.5.2→2.5.3 diffs and out-of-scope diffs are retained under `.claude/kimi-code-research/daily-monitor/2026-11-11-2.5.3-diffs/`.
|
|
8
|
+
|
|
9
|
+
## Source and integration review
|
|
10
|
+
|
|
11
|
+
Four independent source lanes returned COMPAT-PRESERVED for hooks/plan, stream/steering, swarm web lifecycle, and adversarial subprocess/out-of-scope review. Scopes 01–06 are unchanged: print/CLI, before-execute/permissions, external hooks, plan/restore, bootstrap/config/workspace, and tools/fan-out/SDK. Scope 07, the swarm-web activation scope, changes `kap-server/src/routes/prompts.ts` steering and `transcriptService.ts` presentation/transcript healing. Out-of-scope production changes cover the agent loop/human turn machinery, MCP stdio startup diagnostics, Windows process spawning, and one TUI interruption display condition. `_base/di` is unchanged.
|
|
12
|
+
|
|
13
|
+
- The sole before-execute emitter and active-plan-gated final allow remain. Every real execution remains downstream of managed PreToolUse. Managed hooks pass `shell:true` and retain Node spawn; only Windows no-explicit-shell launches select locked `cross-spawn@7.0.6`. MCP startup changes affect bounded diagnostics and preserve close/escalation behavior.
|
|
14
|
+
- Background-shell/tool-result/cron steering can be reachable and may split salvaged partial text into additional ordinary assistant records. It introduces no new role or metadata type and does not skip acting-state tool execution. Existing prose reassembly concatenates fragments without separators, including fragmented review-gate JSON. No dedicated delayed-stream steering control was run; timing remains a stated limitation.
|
|
15
|
+
- Transcript healing emits presentation operations/resets and does not write wire journals, mutate modes, or invoke tools. Steering interrupts only text-only model streaming or retry, not the acting/tool-execution state.
|
|
16
|
+
- All 40 load-bearing files are byte-identical to 2.5.2. The exact-tag scan passes **18 tests with 153 assertions** on 2.5.3, with print/environment/WebSocket cases executing; the same scan passes on the 2.5.2 regression tree.
|
|
17
|
+
- Candidate prerequisites cover fresh `--environment local`, reviewed additive-hook schemas, preactivation/local binding, and protocol-v2 agent state. The initial focused production run after the table addition passed **319 tests with 4,307 assertions**, but its raw log was not retained. A later release-tree rerun reproduced those counts in **164.47 seconds** (`focused-production-tests.log`).
|
|
18
|
+
|
|
19
|
+
## Exact-binary controls
|
|
20
|
+
|
|
21
|
+
Controls ran sequentially after the user's explicit "keep going" authorization, using the dedicated Kimi API key and fresh isolated homes. No personal config or OAuth store was read, copied, or symlinked. Evidence-tree key scan: **0 matches**.
|
|
22
|
+
|
|
23
|
+
- **Plan OFF Write:** exact 2.5.3 marker first. Write reached the deny hook and was denied on the same call; no target file or plan state.
|
|
24
|
+
- **Plan ON:** an armed plan journal let Glob reach the deny hook, and a **1,417-byte** plan file was written without a plan-Write hook. The no-plan closures remain load-bearing; workspace stayed empty.
|
|
25
|
+
- **Removed EnterPlanMode:** absent from offered tools. A forced call was rejected on the same call ID before any hook and returned to the scripted provider. No plan state or files appeared.
|
|
26
|
+
- **Environment:** real activation/deactivation passed with explicit local binding. A remote default, disabled workspace trust, and resumed remote binding each refused before spawn.
|
|
27
|
+
- **Swarm OFF:** a real AgentSwarm call returned inactive-mode result with zero child journals and no probe files.
|
|
28
|
+
- **Swarm ON:** preactivation produced `agent-0` and `agent-1`. Each child's assigned Write matched a managed denial on the same toolCallId, no probes landed, and deactivation was verified with ambient idle reclamation set to 1 ms.
|
|
29
|
+
- **Out-of-root:** two real children received rescue denials on their assigned absolute Write calls; no coordinator writes or target files; deactivation verified.
|
|
30
|
+
|
|
31
|
+
Raw evidence and the per-control table are in `.claude/kimi-code-research/cert-2.5.3-live/controls-summary.md` and the retained summaries/journals.
|
|
32
|
+
|
|
33
|
+
## Candidate matrix
|
|
34
|
+
|
|
35
|
+
The retained evidence includes four red matrices before the passing candidate run; this was not a first-attempt pass:
|
|
36
|
+
|
|
37
|
+
- `candidate-initial-matrix-failure.log`: **23 pass / 1 fail / 163 assertions**; the model did not produce the required resumed Write denial.
|
|
38
|
+
- `candidate-second-matrix-failure.log`: **23 pass / 1 fail / 158 assertions** after a prompt-only change; this time the fresh Write-denial precondition failed.
|
|
39
|
+
- `candidate-final-harness-goal-precondition-failure.log` (started 12:47Z): **23 pass / 1 fail / 183 assertions**; the real-model goal control produced no correlated denials, so its required precondition failed rather than being treated as a pass.
|
|
40
|
+
- `candidate-default-goal-session-missing.log` (started 13:31Z): **23 pass / 1 fail / 190 assertions**; the budget-aborted goal run using the deterministic provider yielded no captured session ID and no `goal.summary`, so the lane could not select its per-turn journal evidence. The raw log does not show a store-recovery attempt or a digest mismatch.
|
|
41
|
+
|
|
42
|
+
Separate real-model diagnostics proved fresh/resumed managed denials and unchanged taint refusal. The deterministic controls then removed model-choice variance without weakening the assertions. The smoke harness added bounded store recovery after the missing-session failure. Narrative notes record that its first attempt used the wrapped-prompt digest and returned `digest_mismatch:1`; no raw log of that particular attempt was retained. The control then used the unwrapped objective digest that native goal print actually stores. No hook bypass was found in the preserved evidence; the original model-choice variance remains unexplained rather than being presented as an upstream defect.
|
|
43
|
+
|
|
44
|
+
- **Resume:** the loopback provider forces Write with exact fresh/resumed call IDs, requires managed denials on those exact calls, and verifies provider-received denial content, zero exit/non-abort/final assistant text, received/completed request accounting, and no provider request after taint. The isolated lane passed **30 assertions** with all Kimi credential variables removed and an unrelated dummy credential present (`credential-free-resume.log`).
|
|
45
|
+
- **Goal:** `call_goal_*` cycles all three targets with managed denials, real start-record turn IDs, request/rejection/completion accounting, actual compaction handling, and objective-digest store recovery in the smoke harness. The isolated goal passed **21 assertions** with `budgetMs=10000`: `startedTurnCount=258`, `deniedTurnCount=257`, `denialCount=258`, `turnsUsed=259`, 519/519 exchanges, zero rejected requests, one compaction, all three targets, paused status, and empty workspace (`goal-scripted-control.log`). These are distinct metrics; `turnsUsed` is not the started-turn count.
|
|
46
|
+
- **Full candidate:** **24 tests with zero failures and 201 assertions in 349.07 seconds** (`candidate-final-green.log`). Goal used default `budgetMs=120000` and harness-only `source=store_recovery`, with 2,021 started turns, 2,020 denied turns and 12 compactions. Write-swarm captured a **278-byte** child-authored patch with a clean user tree and removed worktree, and denied the out-of-root write.
|
|
47
|
+
- Candidate diff SHA-256: `e134ab0e3d0922efe04db3de59557fdc6636aa9224de50eab9c2f7fa7ade8766`. Candidate log key scan: **0 matches**.
|
|
48
|
+
|
|
49
|
+
The matrix's resume and goal lanes are deterministic, not sustained real-model coverage. Separate real-model fresh/resume diagnostics support the same managed denial behavior, but are not presented as continuing real-model coverage. The matrices ran on base `00c3e91` plus their recorded hashed diffs, not on the final release commit. Current runtime/test files match the production diff except for the subsequent `runtime/session-recovery.ts` comment correction and the `runtime/version.ts` plugin-version bump; the candidate harness predates the production run's additional `denialCount`/`minimumDenialCount` logging. Later changes are comments, release metadata, documentation and workflow wording, with regenerated mirrors. The final repository and package gates below cover the corrected release tree.
|
|
50
|
+
|
|
51
|
+
## Production matrix
|
|
52
|
+
|
|
53
|
+
Exact 2.5.3 was appended to `NATIVE_V2_CERTIFIED_VERSIONS` after candidate success. The initial focused production run passed **319 tests with 4,307 assertions** without a retained raw log; the later rerun documented above reproduced those counts. The production-table matrix passed **24 tests with zero failures and 201 assertions in 406.19 seconds** (`production-final-green.log`).
|
|
54
|
+
|
|
55
|
+
Goal again used default `budgetMs=120000` and harness-only `source=store_recovery`: 2,034 started turns, 2,033 denied turns and 12 compactions. `denialCount=2034`, `minimumDenialCount=2033`. Write-swarm again captured a **278-byte** child-authored patch with a clean user tree and removed worktree, and denied the out-of-root write. Production diff SHA-256: `aa9974c4f2bcc6406079b4c0fda4bf542e07b545f8f7bdc9e581da74cd4b9cf6`. Production log key scan: **0 matches**.
|
|
56
|
+
|
|
57
|
+
## Repository and package gates
|
|
58
|
+
|
|
59
|
+
Frozen dependency installation made no changes. The corrected-tree `bun run check` passed **1,437 tests with 33 expected opt-in skips, zero failures and 18,980 assertions across 82 files in 396.30 seconds**, including generated-distribution drift, with pipeline exit status 0 (`check-release-final.log`). The final package/consumer rerun on that tree passed **332 files**, all three compiled distributions, isolated hook setup/check/version refusal, a patched DSH host/profile with seven live providers/tools and Web boot, and isolated npm consumer security, with exit status 0 (`package-and-consumer-final.log`). The pre-correction release-tree check also passed 1,437 tests and 18,980 assertions in 384.80 seconds (`check-release.log`), with 332-file package validation (`package-and-consumer-release.log`); those earlier results did not substitute for the final gate.
|
|
60
|
+
|
|
61
|
+
Three earlier candidate full checks were red. `check-candidate.log` records **1,436 pass / 1 fail / 18,942 assertions** because a vendored runtime mirror was missing. `check-candidate-rerun.log` then had **1,437 pass / 0 fail / 18,943 assertions**, but the generated-distribution drift gate correctly refused unstaged generated changes. Later, `check-final-candidate.log` recorded **1,436 pass / 1 fail / 18,521 assertions** because the production table and its expected list were edited during that run. After regeneration/staging and letting the tree settle, candidate full validation passed **1,437 tests with 33 expected opt-in skips, zero failures and 18,945 assertions across 82 files in 407.82 seconds**, including generated-distribution drift. Package validation passed **331 files**, all three compiled distributions, isolated setup/check/version refusal, patched DSH host/profile with seven providers/tools and Web boot, and isolated npm consumer security. Those earlier results did not substitute for the final 2.5.7 release-tree checks above.
|
|
62
|
+
|
|
63
|
+
Latest corrected-tree full-check counts: **1,437 tests / 33 expected skips / 0 failures / 18,980 assertions; 332 package files.**
|
|
64
|
+
|
|
65
|
+
## Reviews and residual limits
|
|
66
|
+
|
|
67
|
+
Codex candidate review returned no findings. Claude found no blockers; its two majors (spawn-boundary refusal and a passing full check) and redaction/provenance/wording notes were fixed and verified. Codex and Claude goal/resume reviews found no remaining correctness defects; correlation, credential-isolation, request-accounting, compaction and cleanup findings were addressed and rechecked.
|
|
68
|
+
|
|
69
|
+
Review corrections covered exact-version documentation, focused-test evidence, failed-matrix/check history, goal-session causality and chronology, matrix provenance, scope 07, migration/workflow version lists, operator-local wrapper wording, and smoke-only store recovery. Codex's closing review returned **APPROVE — no findings** (`closing-codex-review.md`). Claude's closing review returned **READY-TO-TAG — no blocker or major findings** (`closing-claude-review.md`); its two remaining chronology corrections, red-matrix ordering and focused-log wording in the release notes, are included. The DSH timestamp deliberately remains at the prior release's value until publication produces a real timestamp.
|
|
70
|
+
|
|
71
|
+
Real Windows `.cmd`/`npx` quoting/PID topology/taskkill and delayed-stream steering timing were not exercised on this macOS host. The manual Actions workflow does not export the uncertified-candidate selector; it accepts certified versions, while a candidate requires the local certification playbook's explicit seam. **Production pursue does not perform store recovery:** it persists the full-prompt digest, but only review, ask and rescue call the timeout-recovery path. `source=store_recovery` in the goal logs is harness-only evidence; a budget-aborted production pursue without a resume hint records no session ID. The fresh JobStore has no job rows, so its ID-exclusion path is not independently exercised; cwd/digest/time/uniqueness still bind recovery. Publication does not update installed hosts or operator pins.
|
|
72
|
+
|
|
73
|
+
**Limit discovered on 2026-11-13:** upstream `AgentRunBatch` does not apply `maxConcurrency` during rate-limit recovery. Deterministic controls on exact 2.6.0 reach two active attempts with cap 1 and five with cap 4 while retries remain unresolved; the same scheduling defect is present in this release's source. The plugin's previous hard-peak and write-serialization wording was therefore too broad. This disclosure does not rewrite the existing certification rows; new swarm-capable certification remains blocked until an exact released upstream correction passes the cap controls and candidate matrix. The later [2.6.0 narrowed non-swarm certification](upstream-2.6.0-certification.md) explicitly excludes both swarm modes and does not alter this 2.5.3 row.
|