mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-01 12:34:55 +00:00
spine_trim: model-driven tool-response trimming as a pure derivation over the message stream. Tool results over 10 KiB (non-spine, text-only) carry a byte-stable TRIM_ID tag; the model can snip or slice (head/tail/anchor) the immediately preceding tool-result batch. Host validation shares the single eligibility derivation with rendering; consumed, out-of-window, or unknown ids reject with do-not-retry. Gated on KIMI_CODE_SPINE + KIMI_CODE_SPINE_TRIM. spine_spawn: fission the current node into >=2 concurrent forked branches (lifecycle.fork plus trailing tool-call batch trim) and join their terminal memories as closed child nodes synthesized from the structured spine.spawn.result.v1 receipt in the message stream. All-or-nothing capacity admission (default 4 threads including main, override via KIMI_CODE_SPINE_SPAWN_MAX_THREADS), whole-batch abort on start failure, guaranteed branch release. Gated on KIMI_CODE_SPINE + KIMI_CODE_SPINE_SPAWN. Also adds legacyReplay regression coverage: five sanitized real old-session wire logs restore with zero unknown-op skips, pinning op-replay vs pure-derivation equivalence and the documented historical divergences (receipt anchors, assembled memory bodies, undo witness erasure). |
||
|---|---|---|
| .. | ||
| acp-adapter | ||
| agent-core | ||
| agent-core-v2 | ||
| kaos | ||
| kap-server | ||
| klient | ||
| kosong | ||
| migration-legacy | ||
| minidb | ||
| node-sdk | ||
| oauth | ||
| pi-tui | ||
| protocol | ||
| telemetry | ||
| transcript | ||