DeepSeek Harness (DSH) Plugin: Validation Standards for AI-Generated Content

Introduction

In DSH (DeepSeek Harness) agent development, compliance verification of AI-generated content is a common requirement. Appendix E of GB 45438-2025 specifies implicit labeling requirements for generative content, necessitating checks on whether file metadata contains AIGC keyword fields and specific five elements. Manual metadata inspection is inefficient and prone to oversights, so an automated verification tool is needed.

Plugin Overview

feely0208/dsh-ai-label-verify is a DSH plugin that verifies implicit labels on generated files in accordance with Appendix E of GB 45438-2025. It checks whether file metadata contains AIGC keyword fields and the five elements: generation/synthesis label, service provider, service number, and content number. The plugin supports multiple formats including png, jpg, docx, pdf, wav, and txt. It reads local files only and does not connect to the internet.

Core Features

The plugin scans files in a specified directory to verify implicit labeling compliance:

  • Metadata Inspection: Checks whether file metadata contains AIGC keyword fields
  • Five-Element Verification: Verifies the presence of generation/synthesis label, service provider, service number, and content number
  • Multi-Format Support: Supports png, jpg, docx, pdf, wav, txt, and other formats
  • Local Execution: Reads only local files with no network requests

File parsing methods:
- png: structured parsing
- docx: read using Python 3 standard library
- jpg, pdf, wav: best-effort byte scanning

Installation and Activation

Add the plugin via the official DSH installation command:

dsh plugin --profile web add @deepwhale-cn/dsh-ai-label-verify

Alternatively, install via npm:

npm i @deepwhale-cn/dsh-ai-label-verify

Or install directly from a local repository:

dsh plugin install ./

Plugin dependencies:
- Dependency: @deepwhale-cn/dsh-guard-core ^0.10.1
- Minimum requirements: dsh >=0.1.0-rc.6 <0.3.0, node >=18
- License: MIT

Typical Usage

After installation, run the following command in the terminal to scan a specified directory:

npx @deepwhale-cn/dsh-ai-label-verify --dir <directory> [--html report.html]

Parameter description:
- --dir <directory>: Specifies the directory to scan
- --html report.html (optional): Outputs results as an HTML report file

When performing labeling self-checks with the plugin, it can be used in conjunction with the dsh-cn-ai-labeling plugin. Explicit labeling (UI notices) requires manual verification.

Applicable Scenarios and Cautions

Applicable scenarios:
- Generative content verification required for compliance with Appendix E of GB 45438-2025
- Automated checking of metadata compliance for AI-generated files
- Batch verification of files in formats such as png, jpg, docx, pdf, wav, and txt

Cautions:
- The plugin runs with the permissions of the current DSH process; ensure sufficient file read permissions
- The plugin reads only local files and does not connect to the internet, ensuring high security
- It is recommended to review the source code and license before installation
- Explicit labeling (UI notices) requires manual verification; the plugin performs automated checks only

Conclusion

This plugin provides DSH developers with AI-generated content verification capabilities compliant with Appendix E of GB 45438-2025. By automating the inspection of metadata and the five elements, it improves the efficiency of compliance verification. For more details, please refer to the plugin directory page or the GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye