dsh-selftest: Deriving Self-Tests from Changes to Close the Feedback Loop for AI Coding Sessions
dsh-selftest is a DSH workflow plugin released by Tirpitz-39 that performs inference-based self-testing on changed files within agent sessions. It collects modifications by combining `git status` and file `mtime`, runs syntax checks (PowerShell, JS, JSON, etc.) based on file extension, and walks up the directory tree to locate associated plugin or project tests. If plugin source code is modified but no tests are found, it fails by default. It provides a selftest tool with CLI support, on-disk evidence logging, an end-of-round whistleblower mechanism, and optional `audit` and `hardGate` features. Requires Node.js 18+. Installable via `npm` or `dsh plugin add dsh-selftest`.
Read More