DON738110198/dsh-session-integrity

DON738110198★ 0JavaScript最后同步: 2026-08-20

在 GitHub 打开

Diagnose poisoned DeepSeek Harness sessions and continue from provider-safe recovery boundaries

README 摘要

dsh-session-integrity English 简体中文 Session integrity diagnosis and non-destructive recovery for DeepSeek Harness. A single internal scheduler exception can turn an ordinary tool failure into a durable transcript defect that makes every later model request fail before the model can answer. The problem The provider invariant When an assistant message requests tools, every provider-visible tool call id must be followed by its matching tool result. A normal tool failure is safe for the conversation because Harness serializes the failure as that result and the model can decide what to do next. The broken case is different: Harness persists the assistant request and the execution start, but no result reaches the model-visible Session surface. The next request replays the assistant tool call without a result. DeepSeek rejects the request before inference with a protocol error such as: This is why sending another user message does not recover the Session. The invalid history is durable and is sent again on every turn. Why one error becomes permanent There are three separate layers: 1. Trigger: prepare() or another internal scheduler boundary throws. A duplicated runtime package and mismatc…

在 GitHub 查看完整 README →
工具/开发agent-infrastructuredeepseek-harnessdsh-pluginsession-integrity

分类