Files
deepseek-harness/packages/compaction
creatixchu c530de9edc Merge origin/master: fold admitEncodedImages onto AttachmentStore.saveImages
master introduced AttachmentStore.saveImages as the batch admission
(count/aggregate-byte/media-type limits, validate-all-before-save,
ordered commit). admitEncodedImages narrows to the shared wire entry:
canonical-base64 enforcement plus delegation to saveImages, keeping one
home for batch policy while both wire endpoints (prompt RPC and the
command executor) still call one function. Test doubles gain saveImages;
batch-limit error texts follow saveImages' wording.
2026-08-17 19:59:53 +08:00
..
2026-08-17 18:47:02 +08:00
2026-08-17 18:47:02 +08:00

compaction/ — compaction capability family

English | 中文

A compaction capability family (see capability seams): a Service Definition, a summarizing provider, a model-free tool-result pruning companion, and a human command Consumer. All product packages.

Package Role ctx key
compaction/ Compaction seam and event vocabulary ctx.compaction
compaction-basic/ Token-pressure and summarization backend registers ctx.compaction
compaction-tool-result-pruner/ Optional model-free tool-result pruning ctx.toolResultPruner
command-compact/ Human compaction command registers on ctx.commands

The backend, optional pruner, and human command compose through the seam; token measurement remains a separate LLM-family service. The compaction capability-seam Agent Note owns the dependency rationale.

The subsystem reference — the compaction/* events, CompactionResult, the service, pruning outcomes — is docs/subsystems/compaction.md; the seam's deliberate dsh-session/dsh-llm dependency is recorded in the compaction capability-seam Agent Note.