为什么
DCP v6 treats legal host reference markers as unknown content and skips pruning for the entire request. A 100-read reproduction folds 76 old results normally and zero after adding only a text-file, directory, or agent marker, even though OpenCode produces identical model messages. Already-compacted tools retaining hidden attachments trigger the same failure.
范围
Correct interpretation of verified host parts in the request-local estimator. Preserve every original message, part, identifier, tool input, attachment and instruction. No host session mutations or control of execution state.
做法
Add regression tests at the public projection/hook interfaces. Count only verified non-wire user markers as zero and respect the host's compacted-output rendering before considering hidden attachments. Keep unknown live media fail-open and keep all existing pruning protections. Publish a patch release after review and CI.
验收
- Text-file, directory and agent references no longer disable pruning.
- Hidden attachments on already-compacted successful tool results do not block subsequent pruning.
- Live media and unknown host parts remain unchanged on uncertain estimates.
- Only eligible old successful tool outputs receive request-local compacted markers; persistent history remains unchanged.
- Node regressions, typecheck, format, package verification and real-host integration pass.
为什么
DCP v6 treats legal host reference markers as unknown content and skips pruning for the entire request. A 100-read reproduction folds 76 old results normally and zero after adding only a text-file, directory, or agent marker, even though OpenCode produces identical model messages. Already-compacted tools retaining hidden attachments trigger the same failure.
范围
Correct interpretation of verified host parts in the request-local estimator. Preserve every original message, part, identifier, tool input, attachment and instruction. No host session mutations or control of execution state.
做法
Add regression tests at the public projection/hook interfaces. Count only verified non-wire user markers as zero and respect the host's compacted-output rendering before considering hidden attachments. Keep unknown live media fail-open and keep all existing pruning protections. Publish a patch release after review and CI.
验收