dsh-a-hallucination

Runtime evidence discipline for DeepSeek Harness that does not rely on the model agreeing with itself. A bounded anti-hallucination contract is injected as one short system-prompt section, and four checks run outside the model: a ledger written only by real tool dispatches, so an entry cannot be fabricated; a provenance gate that records (and in the strict profile refuses) a call whose path, URL, id, account, or amount has no origin in the session; a risk gate that holds destructive, outward-facing, or paid tools, plus shell commands that delete, publish, or send, for confirmation; and an injection shield that marks web, file, MCP, and A2A output as data rather than instructions, counting instruction-like fragments it finds. Before sending an answer the model calls answer_verify with one claim per assertion, each citing a ledger id and the exact quoted excerpt; the verifier compares quotes against the stored result, so a fabricated number fails even when a tool call did happen. Time-sensitive claims (price, incumbent, version, current) must cite evidence inside an age limit. Every verdict reports the verification level it applied (light, standard, strict) and the output form the answer should take (direct, annotate, or abstain with what is missing), plus running metrics such as verification counts, pass rate and quote rate, and the Settings panel shows those same counts in plain language. Three profiles cover the tradeoff: observe only records, inspect also blocks and annotates, adjudicate additionally refuses untraceable targets, and the Settings panel labels the three of them 静观 (observe), 明察 (inspect) and 断案 (adjudicate). Ships a plain-language Settings panel with a collapsible technical section, durable profile selection, and a read-only ledger_view tool. No embeddi

Overview

Runtime evidence discipline for DeepSeek Harness that does not rely on the model agreeing with itself. A bounded anti-hallucination contract is injected as one short system-prompt section, and four checks run outside the model: a ledger written only by real tool dispatches, so an entry cannot be fabricated; a provenance gate that records (and in the strict profile refuses) a call whose path, URL, id, account, or amount has no origin in the session; a risk gate that holds destructive, outward-facing, or paid tools, plus shell commands that delete, publish, or send, for confirmation; and an injection shield that marks web, file, MCP, and A2A output as data rather than instructions, counting instruction-like fragments it finds. Before sending an answer the model calls answer_verify with one claim per assertion, each citing a ledger id and the exact quoted excerpt; the verifier compares quotes against the stored result, so a fabricated number fails even when a tool call did happen. Time-sensitive claims (price, incumbent, version, current) must cite evidence inside an age limit. Every verdict reports the verification level it applied (light, standard, strict) and the output form the answer should take (direct, annotate, or abstain with what is missing), plus running metrics such as verification counts, pass rate and quote rate, and the Settings panel shows those same counts in plain language. Three profiles cover the tradeoff: observe only records, inspect also blocks and annotates, adjudicate additionally refuses untraceable targets, and the Settings panel labels the three of them 静观 (observe), 明察 (inspect) and 断案 (adjudicate). Ships a plain-language Settings panel with a collapsible technical section, durable profile selection, and a read-only ledger_view tool. No embeddi

Installation

Install from npm

dsh plugin --profile web add @jasper_alaric/dsh-a-hallucination

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:Jasper-Alaric/dsh-a-hallucination

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May run terminal commands