dw-dqc · git:20261116.2a40ad6 · 2026-11-16 · sha256 79cf1cf5cf95c478

dw-dqc git:20261116.2a40ad6A

Immutable. This exact content never changes and is served at /api/v1/blob/79cf1cf5cf95c478.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_mvuqhzpct5gdioj7/79cf1cf5cf95c4786a9e1137e7b0cd9af89cb07b03c67d163252dfe2ab9e9107.json

Then /plugin install dw-dqc@markdownregistry-mvuqhzpct5gdioj7 in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: dw-dqc
description: >
  Step 8/8 SLA/DQC:从表契约生成稳定 ID 的 DQC 规则配置并校验漂移。
 适用于任务上线前的质量规则配置。
argument-hint: "[表名]"
allowed-tools: Read, Write, Bash(dw dqc:*, dw contract:*)
---

# Step 8: SLA / DQC

## 执行流程

```bash
# 按契约生成(9 类规则、稳定 ID:同表同类同列同阈值 => 同 ID)
dw dqc gen --contract contracts/contract.json --out dqc_[表名].json
# 校验配置与契约不漂移
dw dqc check --contract contracts/contract.json --config dqc_[表名].json
```

## 9 类规则(沿用 v1 分类)

完整性:主键非空 / 分区数据量波动 / 必填字段非空
准确性:金额容差(契约 quality) / 数值范围
一致性:联动逻辑 / 上下游一致
时效性:产出 SLA / 数据新鲜度

## 规则

- 阈值来自契约,不在本步临时拍数值
- 修改契约后必须重跑 `dw dqc check`(ID/阈值漂移会 FAIL)