Files
deepseek-harness/packages/spill
Tianyi Cui 9d385cd0d9 Merge master into persistent PTC
Preserve the persistent runtime package description with master's alpha.2 version and locale exports. Refresh the two PTC prompt snapshots for the current plan-tool result type.

Validation: full build, 434 focused tests (one skipped), two built-runtime tests, two selected snapshots, package metadata, and all 43 doc-sync checks passed.
2026-10-10 21:55:44 +08:00
..
2026-10-09 15:13:40 +08:00

description, kind
description kind
Package map for the text spill capability family: what the storage service, the local backend, and the result policy each provide. package-group

spill/ — text spill capability family

English | 中文

Summary

The spill/ group stores full text outside the model's context and returns a locator with retrieval guidance. The family splits into the storage service in spill/, the local filesystem backend in spill-local/, and the tool-result policy in spill-policy/. Tool-result spilling is opt-in through maxInlineTokens and keeps the original result on storage failure. Session references also consume storage directly for truncated captured transcripts, with their own preview and failure notices; they do not require the tool-result policy.

Table of Contents


Packages

Three packages play the spill roles; the subsystem reference owns the exhaustive vocabulary and contracts.

Package Role ctx key
spill/ Storage service: saves oversized text and returns a locator plus retrieval guidance ctx.spillStore
spill-local/ Saves spilled text to private session-scoped files on this machine registers on ctx.spillStore
spill-policy/ Replaces oversized plain-text tool results with a preview and locator listens on ctx.tools

Start with the subsystem reference for the shared vocabulary, then the design decision.

  • Spill subsystem — the SaveTextSpill/SpillRef vocabulary, ownership, and backend relationships.
  • Tool output spill decision — the capability boundary between storage, retention, and tool-owned output handling.

Dev Note

Working context for maintainers — click to expand

None.