Files
deepseek-harness/packages/context
_Kerman af3311e1f6 test: close per-file coverage gaps opened by the message-machine refactor
Downstream packages lost the tests that exercised their agent-loop-facing
edges when the loop was rewritten. Restore 100% per-file coverage with
behavior tests through public seams: llm-retry config validation and
cancellation races, goal replay drift/staleness/teardown edges, plan-mode
disposed-flush, workspace-context empty-change commits, api-proxy
synchronous send failures, acp-snapshot spill-path extraction and refresh
write-back, ACP injection-triggered turns, cli-demo and tui inbox
lifecycle edges, and agent-loop retry/settlement/lifecycle branches.
The only source changes are narrowly-justified v8 ignore annotations on
invariant guards and one redundant-guard removal (workspace-context).
2026-07-26 11:49:19 +08:00
..

context/ — request-context extensions

Product plugins that add model-visible request context without defining a tool. workspace-context is included by the default dsh-agent-spine-demo bundle and can be disabled through bundle config; time-context is opt-in, while the standard TUI and ACP bundles compose session-reference explicitly.

Package Role ctx key
session-reference/ Bounded current-surface snapshots of other sessions ctx.sessionReferences
time-context/ Durable per-step current time and elapsed-time context (none)
workspace-context/ AGENTS.md/CLAUDE.md workspace context loader (listens on agent/step + tools/post-execute)

The workspace-context decision record explains its per-agent/session isolation and lifecycle split.