Preface¶
When using Agents for feature development, a common wrap-up is to “run it once, merge it if it feels fine.” Requirements are often a piece of natural language, while acceptance evidence is scattered across conversations, terminal outputs, and temporary screenshots. It is difficult to answer事后 (afterwards): whether a specific original requirement was supported by evidence, which version of the code the evidence corresponds to, or how many rounds of repair were required. The DSH ecosystem already has capabilities like test execution and code review, but their outputs are process or conclusion fragments that are not necessarily organized by “Task Contract + Itemized Acceptance Criteria + Addressable Evidence.”
Below is an introduction to dsh-acceptance maintained by PolinniZhong (GitHub: PolinniZhong/dsh-acceptance). It is a full-page plugin for DeepSeek Harness (DSH)’s conversation.view. Once installed, an “Acceptance Console” (验收台) tab appears above the conversation. Its product positioning is a task-level evidence workbench—managing task contracts, acceptance items, execution evidence, repair rounds, and the user’s final decision. It is not a code reviewer, nor is it a fully automated testing platform. The current version is 0.2.0, with contract schemaVersion = 1, designed to work with the DSH 0.2.x desktop client (starting from 0.2.1-alpha.2).
What is this¶
In one sentence: Turn AI Coding delivery acceptance into an exportable, auditable chain of evidence—mapping original requirements to evidence item by item, binding evidence to code versions (frankly labeling it “Version Unknown” if a snapshot cannot be obtained), and avoiding aggregate scoring.
The plugin uses pure functions on the host side for state derivation and validity checks; the client only renders and submits operations. The repository constrains the above product promises with 100 behavior assertions and 11 guards (G1–G11 in npm run verify), for example: no passing judgment without evidence, every piece of evidence must be addressable, and no aggregate scoring like score / passRate is performed.
Five States and Three Matters¶
Acceptance items and evidence conclusions are presented side-by-side in five states (not converted into a pass rate):
| Key | UI Display | Meaning |
|---|---|---|
pending |
Pending | Not yet verified, or verified but no conclusion given |
pass |
Pass | Passed with evidence support in this round |
fail |
Fail | Evidence proves non-compliance |
unknown |
Unknown | Evidence is insufficient to judge—not a pass |
blocked |
Blocked | Environment/dependencies blocked evidence collection; not a code issue |
“Evidence Collection Status,” “Acceptance Item Judgment,” and “Task Final Decision” are separated in the model, and are not mixed into a single state in the UI or export.
Core Functions¶
Tasks and Acceptance Items¶
- Create Acceptance Task: Paste the original requirement initially given to the development Agent (optional task name).
- Add Acceptance Items: Item by item: Title + Pass Condition; if no pass condition is written, it only reminds you and does not force a block.
- Confirm Acceptance Criteria: After confirmation, the plugin will not automatically fill in unconfirmed items.
In the credentials, origin distinguishes between original (original requirement) and suggested (suggested addition); acceptance item IDs increase monotonically, and deleted IDs are not reused.
Two Forensics Methods¶
| Mode A: Delegated Evidence Collection | Mode B: Acceptance Package Import | |
|---|---|---|
| Executor | Host calls ctx.subagents.start(), pinning acceptance item IDs with outputSchema |
Complete checks externally and paste back structured JSON |
| Failure Handling | Failure before commitment point ⇒ 4xx and no round written; after ⇒ write a round of blocked (HTTP still 200) |
Any non-compliant item ⇒ reject the entire round |
| Commonality | Evidence and conclusion are stored in the same batch; passing without evidence is always rejected | Same as left |
On the UI, the main flow corresponds to “Let an independent Agent help me verify” and “I already have check results.” The plugin does not call a model to auto-generate acceptance items; “Copy Acceptance Item Organization Prompt” is just copyable text.
Decision and Export¶
The bottom provides single-location guidance based on current results (e.g., next steps when there are still unknown, blocked, or fail items). “Generate Repair Notes” lists unpassed, undetermined, and environment-blocked items in four categories; “Export Acceptance Record” exports current credentials and will not trigger new verification.
Final Decision: Accept Delivery / Request Repair / Postpone Acceptance. As long as there is one item that is not “Pass,” “Accept Delivery” cannot be clicked, and remaining items are listed; after all pass, explicit confirmation is still required.
Installation and Activation¶
The plugin is a local link: package. You need to modify the profile dependencies and bundles list simultaneously, and create a symbolic link in node_modules—missing any one will cause a silent skip (tab does not appear or route 404).
1. Edit the profile’s package.json
Path: ~/.dsh/profiles/<current profile>/package.json
// ~/.dsh/profiles/<current profile>/package.json
"dependencies": {
"dsh-acceptance": "link:/absolute/path/to/acceptance-console"
},
"dsh": { "profile": { "bundles": [ /* … */ "dsh-acceptance" ] } }
2. Create Symbolic Link
cd ~/.dsh/profiles/<current profile>
ln -sfn "/absolute/path/to/acceptance-console" node_modules/dsh-acceptance
<current profile> varies with DSH version: 0.2.1-alpha.2 desktop client commonly uses desktop, while earlier versions may use tauri. You can locate the profile by checking the running process arguments:
ps -Ao command= | grep -E "dsh-desktop-host|dsh web"
3. Restart DSH
New bundles are not hot-loaded; the App must be restarted after installation.
4. Health Check
curl -s "http://127.0.0.1:<port>/api/acceptance.health?sessionId=probe"
Typical Usage (Minimal Closed Loop)¶
Just follow the text on the Acceptance Console interface; no need to learn internal mode names first.
- Start — Open “Acceptance Console.” If no task exists, the home page shows “Start a delivery acceptance”; if tasks exist but none is selected, it prompts “Select a task to continue.”
- Write Requirements — Click “New Acceptance Task,” paste the original requirement, and click “Create and Set Acceptance Items.” Failures will display the host’s actual error.
- Confirm Acceptance Items — Fill in the title and pass condition item by item, then click “Confirm Acceptance Criteria.”
- Get Evidence — Delegate to an independent Agent for verification, or import an Acceptance Package JSON after performing checks externally.
- View Results — Check status, observation results, and evidence locations item by item; decide whether to supplement verification based on bottom guidance.
- Repair or Decide — Generate repair notes and return to the development Agent if necessary; export the record and then choose to accept, request repair, or postpone.
“Version Unknown” indicates that a reliable code version snapshot has not been obtained; the plugin will not fake a fingerprint using the changed file list.
Applicable Scenarios and Notes¶
Who it is for: Teams or individuals who need to turn Agent delivery from a “verbal OK” into item-by-item verifiable credentials; those who already have external test or manual check results and want to store them structurally by acceptance item ID and bind them to task decisions.
Explicitly Not Doing: Aggregate scores, progress bars, pass rates; replacing existing DSH test execution, code review, or task boards—only importing their evidence; parsing delegated free text (records blocked if structured is missing).
Security and Permissions: The plugin runs with the current DSH process privileges. The host route and session context read/write the local credential store. Please read the MIT License and source code (src/dsh/host/, src/dsh/client/) before installation to confirm paths and profile configuration fit your environment.
Development and Self-Check (Maintainers/Secondary Development):
npm test # 100 behavior assertions (pretest rebuilds client artifacts first)
npm run verify # Guards G1–G11, pass only if 11/11
npm run build:client # Rebuild dist/client.js
The browser loads dist/client.js, not the source code; DSH must be restarted after changing host logic. Node requires >=22.19 (see package.json).
Conclusion¶
dsh-acceptance converges delivery acceptance into a single chain of “Requirements ↔ Acceptance Items ↔ Addressable Evidence ↔ User Final Decision,” using five states and guards to constrain the credibility of conclusions, rather than replacing judgment with automation ratios. Community directory page: skillhub.cn/plugins/PolinniZhong/dsh-acceptance; Source code and README: github.com/PolinniZhong/dsh-acceptance. The DSH plugin ecosystem is maintained independently; the directory site has no official affiliation with DeepSeek / Hikvision.