dic-workflow-kit 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/.codex-plugin/plugin.json +14 -10
  2. package/CHANGELOG.md +124 -1
  3. package/INSTRUCTION.md +232 -10
  4. package/README.md +376 -113
  5. package/README.zh-CN.md +342 -130
  6. package/adapters/bdd/README.md +21 -0
  7. package/adapters/bitfun/README.md +12 -2
  8. package/agents/adversarial-challenger.md +23 -0
  9. package/agents/code-repairer.md +8 -1
  10. package/agents/contract-oracle.md +4 -1
  11. package/agents/evidence-auditor.md +23 -0
  12. package/agents/final-reviewer.md +26 -2
  13. package/agents/flow-auditor.md +1 -1
  14. package/agents/impact-analyst.md +21 -0
  15. package/agents/impl-inspector.md +7 -1
  16. package/agents/profile-builder.md +7 -3
  17. package/agents/repair-planner.md +10 -1
  18. package/agents/semantic-conflict-auditor.md +21 -0
  19. package/agents/spec-reader.md +4 -1
  20. package/agents/validation-runner.md +11 -1
  21. package/dist/dic-workflow-kit.mjs +18 -7
  22. package/package.json +5 -2
  23. package/schemas/final-result.schema.json +35 -2
  24. package/schemas/harness-plan.schema.json +143 -0
  25. package/schemas/harness-run.schema.json +75 -0
  26. package/schemas/ontology-action-record.schema.json +62 -0
  27. package/schemas/ontology-action.schema.json +118 -0
  28. package/schemas/ontology-attestation.schema.json +187 -0
  29. package/schemas/ontology-patch.schema.json +48 -0
  30. package/schemas/ontology-snapshot.schema.json +326 -0
  31. package/schemas/project-profile.schema.json +44 -0
  32. package/skills/knowledge-bdd/SKILL.md +14 -2
  33. package/skills/knowledge-change-impact/SKILL.md +43 -0
  34. package/skills/knowledge-change-impact/agents/openai.yaml +4 -0
  35. package/skills/knowledge-openspec/SKILL.md +2 -1
  36. package/skills/knowledge-repair-distill/SKILL.md +2 -1
  37. package/skills/quality-adversarial-challenge/SKILL.md +42 -0
  38. package/skills/quality-adversarial-challenge/agents/openai.yaml +4 -0
  39. package/skills/quality-ci-gate/SKILL.md +45 -0
  40. package/skills/quality-ci-gate/agents/openai.yaml +4 -0
  41. package/skills/quality-ci-gate/references/ci-gate.md +22 -0
  42. package/skills/quality-code-review/SKILL.md +32 -0
  43. package/skills/quality-code-review/agents/openai.yaml +4 -0
  44. package/skills/quality-code-review/references/code-review.md +13 -0
  45. package/skills/quality-cross-spec-consistency/SKILL.md +45 -0
  46. package/skills/quality-cross-spec-consistency/agents/openai.yaml +4 -0
  47. package/skills/quality-dt-review/SKILL.md +32 -0
  48. package/skills/quality-dt-review/agents/openai.yaml +4 -0
  49. package/skills/quality-dt-review/references/dt-review.md +14 -0
  50. package/skills/quality-evidence-audit/SKILL.md +41 -0
  51. package/skills/quality-evidence-audit/agents/openai.yaml +4 -0
  52. package/skills/quality-repository-gate/SKILL.md +38 -0
  53. package/skills/quality-repository-gate/agents/openai.yaml +4 -0
  54. package/skills/quality-repository-gate/references/repository-gate.md +13 -0
  55. package/skills/quality-review-orchestrator/SKILL.md +100 -0
  56. package/skills/quality-review-orchestrator/agents/openai.yaml +4 -0
  57. package/skills/quality-review-orchestrator/references/quality-model.md +73 -0
  58. package/skills/quality-spec-review/SKILL.md +40 -0
  59. package/skills/quality-spec-review/agents/openai.yaml +4 -0
  60. package/skills/quality-spec-review/references/spec-review.md +14 -0
  61. package/skills/quality-sr-ar-review/SKILL.md +32 -0
  62. package/skills/quality-sr-ar-review/agents/openai.yaml +4 -0
  63. package/skills/quality-sr-ar-review/references/sr-ar-review.md +14 -0
  64. package/skills/workflow-core/SKILL.md +109 -1
  65. package/skills/workflow-harness/SKILL.md +73 -0
  66. package/skills/workflow-harness/agents/openai.yaml +4 -0
  67. package/skills/workflow-intake/SKILL.md +9 -2
  68. package/skills/workflow-profile/SKILL.md +17 -1
  69. package/skills/workflow-repair/SKILL.md +8 -4
@@ -0,0 +1,73 @@
1
+ ---
2
+ name: workflow-harness
3
+ description: 运行 QIHENG 候选版本约束的设计、开发、测试、质询、证据和准入门禁图。用于启动交付执行框架、冻结候选版本、记录门禁结论与证据、检查依赖完成情况、发现候选版本或项目画像漂移,以及判断整体交付是否就绪。
4
+ metadata:
5
+ version: 1.1.4
6
+ ---
7
+
8
+ # 交付保障执行框架
9
+
10
+ 以命令行工具作为唯一控制平面,不要另行维护人工检查清单。
11
+
12
+ ## 初始化
13
+
14
+ 生成 `reports/project-profile.json` 后,冻结当前 Git 候选版本:
15
+
16
+ ```text
17
+ qiheng harness-init --root .
18
+ ```
19
+
20
+ 读取 `reports/harness-plan.json`。其中包含门禁图、候选版本哈希、依赖关系、失效范围、证据要求和项目画像驱动的执行建议。建议为 `ASSESS` 时必须明确判断是否适用,不能直接视为跳过。
21
+
22
+ ## 执行
23
+
24
+ 针对每一道依赖已经满足的门禁:
25
+
26
+ 1. 消费上游成功门禁产生的真实产物。
27
+ 2. 执行门禁指定的技能,并在需要时调用相应智能体。
28
+ 3. 在项目内保存持久化证据文件。
29
+ 4. 记录门禁结果:
30
+
31
+ ```text
32
+ qiheng harness-record --root . \
33
+ --gate <gate-id> \
34
+ --status PASS \
35
+ --summary "<范围明确的结论>" \
36
+ --evidence <项目相对路径>
37
+ ```
38
+
39
+ 仅在问题不阻断且有负责人、有完成条件时使用 `PASS_WITH_FOLLOW_UP`。只有条件门禁可以使用 `SKIPPED`,并且必须说明不适用原因。必跑门禁不能跳过。`PASS` 至少需要一个真实证据文件。
40
+
41
+ ## 失效处理
42
+
43
+ 候选版本身份包含 Git HEAD、完整已跟踪差异和未跟踪源码文件哈希;证据目录不计入候选版本字节。源码候选版本或项目画像发生任何变化,都会拒绝继续记录,并使当前运行结果失败关闭。
44
+
45
+ 完成影响分析后,重新冻结新计划:
46
+
47
+ ```text
48
+ qiheng harness-init --root . --force
49
+ ```
50
+
51
+ 不要为了清除阻断项而滥用 `--force`。需要审计历史时,应在重建前保存旧计划、运行记录和证据。
52
+
53
+ ## 最终检查
54
+
55
+ 运行:
56
+
57
+ ```text
58
+ qiheng harness-check --root . --json
59
+ qiheng harness-report --root .
60
+ ```
61
+
62
+ 检查会拒绝:
63
+
64
+ - 候选版本或项目画像漂移;
65
+ - 门禁缺失、失败、受阻、运行中或过期;
66
+ - 必跑门禁被跳过;
67
+ - 依赖未完成或完成顺序错误;
68
+ - 成功门禁没有证据;
69
+ - 证据缺失、内容变化或位于项目目录之外。
70
+
71
+ `deliveryStatus: READY` 表示执行框架已经完整闭合。仓库准入决定和本体终态证明仍是最终权威产物。
72
+
73
+ 将 `reports/harness-report.md` 作为高层交付保障驾驶舱。它从同一份机器状态生成候选版本身份凭证、保障范围、设计交付数字主线、门禁决策矩阵和阻断项,禁止手工修改。
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "QIHENG 交付保障执行框架"
3
+ short_description: "运行候选版本约束的设计开发测试门禁图并生成高层决策报告"
4
+ default_prompt: "为当前交付初始化并运行 QIHENG 候选版本约束的交付保障执行框架。"
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  name: workflow-intake
3
- version: 1.1.2
4
3
  description: Discover authoritative design sources, implementation roots, test roots, protected paths, validation commands, and adapter hints.
4
+ metadata:
5
+ version: 1.1.4
5
6
  ---
6
7
 
7
8
  # Workflow Intake
@@ -12,7 +13,11 @@ Intake must identify:
12
13
 
13
14
  - workflow root
14
15
  - project root
16
+ - repository manifests and workspace/module roots
15
17
  - design sources
18
+ - directly referenced related baseline Specs
19
+ - ranked semantic consistency candidates
20
+ - repository-wide authoritative Spec roots for semantic conflict search
16
21
  - implementation roots
17
22
  - test roots
18
23
  - protected paths
@@ -22,4 +27,6 @@ Intake must identify:
22
27
 
23
28
  Write the result to `reports/project-profile.json` when possible and mirror reasoning under `logs/trace/intake/`.
24
29
 
25
- Do not assume OpenSpec, Maven, npm, Java, Node, or Spring. Detect them from repository evidence.
30
+ Do not assume OpenSpec, Maven, npm, Java, Node, Spring, or a particular repository layout.
31
+ Detect them from repository manifests, workspace declarations, conventional module
32
+ directories, and explicit Change references.
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  name: workflow-profile
3
- version: 1.1.2
4
3
  description: Build a normalized project profile for design-implementation consistency work without hardcoding a repository or technology stack.
4
+ metadata:
5
+ version: 1.1.4
5
6
  ---
6
7
 
7
8
  # Workflow Profile
@@ -12,8 +13,12 @@ The profile should follow `schemas/project-profile.schema.json` and include:
12
13
 
13
14
  - source hierarchy
14
15
  - project type hints
16
+ - repository manifests and module roots
15
17
  - adapters selected
16
18
  - design source paths
19
+ - directly referenced related baseline Specs and their evidence
20
+ - ranked semantic consistency candidates and shared normative symbols
21
+ - repository-wide authority roots for semantic cross-Spec checks
17
22
  - implementation root paths
18
23
  - test root paths
19
24
  - protected paths
@@ -21,4 +26,15 @@ The profile should follow `schemas/project-profile.schema.json` and include:
21
26
  - risk families
22
27
  - output contract
23
28
 
29
+ Discover module roots from repository manifests and workspace declarations, then derive
30
+ implementation and test roots from each module. Exclude dependency, build-output, hidden,
31
+ and test-fixture package trees.
32
+
33
+ For a Change entry, mount directly referenced existing capabilities as related baseline
34
+ Specs. Keep broad semantic conflict discovery as a repository-wide search scope; do not
35
+ inflate the active design context merely because many capabilities share a generic module
36
+ or architecture document. Rank additional candidate Specs by uncommon normative symbols
37
+ shared with the active design scope. Treat ranking as review routing, never as proof of a
38
+ conflict.
39
+
24
40
  If information is missing, record `unknown` or `blocked` with evidence instead of guessing.
@@ -1,12 +1,15 @@
1
1
  ---
2
2
  name: workflow-repair
3
- version: 1.1.2
4
- description: Guide source-backed implementation inspection, repair planning, code repair, validation loops, and final consistency evidence.
3
+ description: "Run the post-implementation, source-backed design-implementation consistency loop: inspect gaps, plan bounded repairs, change code, validate, and converge. Use after a candidate implementation exists and confirmed design obligations are available, including re-entry after a repair invalidates dependent evidence."
4
+ metadata:
5
+ version: 1.1.4
5
6
  ---
6
7
 
7
8
  # Workflow Repair
8
9
 
9
- Use this Skill after project profile and source obligations are known.
10
+ Use this Skill after implementation exists and the project profile and source
11
+ obligations are known. It repairs consistency gaps; it is not the initial
12
+ feature-development process.
10
13
 
11
14
  Repair loop:
12
15
 
@@ -17,6 +20,7 @@ Repair loop:
17
20
  5. Modify implementation only inside allowed boundaries.
18
21
  6. Run focused validation.
19
22
  7. Update trace and residual risk.
20
- 8. Repeat or finalize.
23
+ 8. Mark dependent quality decisions stale and request only affected gate reruns.
24
+ 9. Repeat or finalize.
21
25
 
22
26
  Never repair from failing test names alone. Convert validation failures into source-backed hypotheses first.