Overview
dsh-dsml-guard
Strips DSML markers leaked into assistant prose and resumes a turn only when it truly produced nothing; quota, rate-limit and context errors are never retried. / 抹掉漏进正文的 DSML 标记,并只对「真的什么都没产出」的轮次补发一条继续。
README / EN
Package documentation
Registry summary
Strips DSML markers leaked into assistant prose and resumes a turn only when it truly produced nothing; quota, rate-limit and context errors are never retried. / 抹掉漏进正文的 DSML 标记,并只对「真的什么都没产出」的轮次补发一条继续。
dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.
Read the full README on GitHubLIMITATIONS
Known limitations
- **只处理流式正文**。如果某个适配器把标记塞进 `reasoning-delta` 而不是 `text-delta` / `block-end`,这里看不到。 - **续跑的判据是启发式的**:`tailCloseMinChars` 这条阈值来自实测分布(完整答案是 755 字符量级, 空产出是 1 字符量级),80 字符是我在两者之间取的保守值,不是上游给的信号。 - 插件**不改请求**,所以上游该漏还是会漏;它只保证「漏了你也看不见墙,且这一轮不会白跑」。
