argszero/cordis-plugin-inbox-input-guard

Stops one malformed inbox entry — a bare string passed to agent.followup() — from killing the turn it lands in.

Closes a specific crash with a specific cause, documented in DSH discussion #7363. agent.followup(), agent.steer() and agent.inject() put a message into the agent's durable inbox, and nothing on that path checks what was passed: the inbox appends an agent/inbox/spliced record and the value travels on unchanged, while the one structural check at that boundary reads message.id — which is undefined for a string, a number, or anything that is not a message. So a lone 'some string' walks through, the next turn claims it, and the first agent/pre-step listener that reads message.source.kind throws Cannot read properties of undefined (reading 'kind'), ending the turn about a millisecond after turn/start and filing the report against an innocent module. The guard validates at the pending lists as well as on the committed batch, names the defect where it is committed, and never turns a value it cannot render unambiguously into content — so the failure becomes legible instead of arriving as an unrelated module's exception.

Development & Runtime ★ 0 updated 2026-10-25
View on GitHub ↗

Install

dsh plugin add @argszero/cordis-plugin-inbox-input-guard

The README's line, and note it carries no --profile flag — it installs into the default profile, so add --profile web yourself if that is the profile you run. This is a consumer-side guard for a producer-side defect, and the README is explicit that it cannot fix the cause: a value in the inbox does not carry a caller, so the guard cannot name the plugin that wrote the string.

Compatibility

Peer ranges are stated precisely rather than as a floor: @deepseek-ai/dsh-agent and @deepseek-ai/dsh-llm at >=0.1.5-rc.1 <0.2.0 || >=0.1.6-alpha.1 <0.2.0 || >=0.2.1-rc.1 <0.2.1. The 0.2.1 alphas are published and deliberately refused, because they were not run. It is a Host plugin with no browser half and no configuration to speak of.

Details

Alternatives

ayahunter/dsh-plugin-clinic · SaiSenBox/dsh-boot-guard · Tang-mm95/dsh-single-instance-guard

More plugins in Development & Runtime

Browse more in Development & Runtime

Guides for Development & Runtime plugins