dsh-upgrade-audit
English | 简体中文
dsh-upgrade-audit
Audit every change observable by consumers outside the repository between two DSH versions, and produce the set of reports the user expects. The fixed form of this problem: relative to from, does to contain more changes or reverts? — "more changes" means externally visible breakage (removed exports, renamed wire error codes, data formats refused on read); "revert" means behavior present in from deliberately withdrawn by a revert within the interval. Both need evidence: commit messages and subagent summaries are claims — only conclusions drawn after reading both trees (source files or published packages) count as evidence.
External compatibility = everything observable by consumers outside the repository: the npm package public API (exports, types, signatures, dependency surface), the dsh CLI (commands, flags, profiles, config keys), the wire protocol (SDK JSON-RPC, remote gateway/BFF, ACP, hooks), session data on disk (JSONL logs, SQLite stores and their version guards), the model-visible surface (tool names/schemas, system-prompt output), and the Python SDK's expectations. Internal refactors are background, not findings — aggregate and count them.
Note: report language follows the user's language (see "Output contract" below); the existing sample report under examples/ is in English by historical convention.
Phase 0 — Parse input and choose a mode
Input: two version identifiers (accepts 0.1.2-alpha.2, dsh-v0.1.2-alpha.2, dist-tags alpha/latest/next). Choose the analysis mode by specificity, high to low:
- Context path — the user named a deepseek-harness checkout directory in the message. Verify: root
package.json+packages/+AGENTS.mdall present. DSH_SOURCE_PATHenvironment variable — verify the same way. (OptionalDSH_NPM_REGISTRYoverrides the npm registry.)- CWD heuristic — the current directory is itself a deepseek-harness checkout (marked the same way).
- npm mode — none of the above (the default path for third-party repos): download the published packages of the two versions for analysis.