kimi-code
kimi-code copied to clipboard
[agent-core-v2] Question: computeCompactCount / reduceCompactOnOverflow have no production callers in v2
Two CompactionStrategy methods — computeCompactCount and reduceCompactOnOverflow — have no production callers in v2: they appear only inside src/agent/fullCompaction/strategy.ts (interface, delegate, implementation) and in tests that instantiate DefaultCompactionStrategy directly. The other interface members (shouldCompact, shouldBlock, …) are all called from fullCompactionService.ts.
Since v2's keep-policy lives in src/agent/contextMemory/compactionHandoff.ts, these look like v1 window-compaction remnants.
Are these kept intentionally, or can the interface be narrowed? Happy to send a PR.