dic-workflow-kit 1.1.3 → 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 (65) hide show
  1. package/.codex-plugin/plugin.json +14 -10
  2. package/CHANGELOG.md +56 -1
  3. package/INSTRUCTION.md +108 -29
  4. package/README.md +234 -134
  5. package/README.zh-CN.md +280 -194
  6. package/adapters/bitfun/README.md +2 -2
  7. package/agents/adversarial-challenger.md +23 -0
  8. package/agents/code-repairer.md +1 -1
  9. package/agents/contract-oracle.md +1 -1
  10. package/agents/evidence-auditor.md +23 -0
  11. package/agents/final-reviewer.md +13 -2
  12. package/agents/flow-auditor.md +1 -1
  13. package/agents/impact-analyst.md +21 -0
  14. package/agents/impl-inspector.md +1 -1
  15. package/agents/profile-builder.md +7 -3
  16. package/agents/repair-planner.md +1 -1
  17. package/agents/semantic-conflict-auditor.md +21 -0
  18. package/agents/spec-reader.md +1 -1
  19. package/agents/validation-runner.md +1 -1
  20. package/dist/dic-workflow-kit.mjs +17 -13
  21. package/package.json +5 -2
  22. package/schemas/final-result.schema.json +16 -1
  23. package/schemas/harness-plan.schema.json +143 -0
  24. package/schemas/harness-run.schema.json +75 -0
  25. package/schemas/ontology-action.schema.json +9 -1
  26. package/schemas/ontology-snapshot.schema.json +75 -1
  27. package/schemas/project-profile.schema.json +42 -0
  28. package/skills/knowledge-bdd/SKILL.md +1 -1
  29. package/skills/knowledge-change-impact/SKILL.md +43 -0
  30. package/skills/knowledge-change-impact/agents/openai.yaml +4 -0
  31. package/skills/knowledge-openspec/SKILL.md +1 -1
  32. package/skills/knowledge-repair-distill/SKILL.md +1 -1
  33. package/skills/quality-adversarial-challenge/SKILL.md +42 -0
  34. package/skills/quality-adversarial-challenge/agents/openai.yaml +4 -0
  35. package/skills/quality-ci-gate/SKILL.md +45 -0
  36. package/skills/quality-ci-gate/agents/openai.yaml +4 -0
  37. package/skills/quality-ci-gate/references/ci-gate.md +22 -0
  38. package/skills/quality-code-review/SKILL.md +32 -0
  39. package/skills/quality-code-review/agents/openai.yaml +4 -0
  40. package/skills/quality-code-review/references/code-review.md +13 -0
  41. package/skills/quality-cross-spec-consistency/SKILL.md +45 -0
  42. package/skills/quality-cross-spec-consistency/agents/openai.yaml +4 -0
  43. package/skills/quality-dt-review/SKILL.md +32 -0
  44. package/skills/quality-dt-review/agents/openai.yaml +4 -0
  45. package/skills/quality-dt-review/references/dt-review.md +14 -0
  46. package/skills/quality-evidence-audit/SKILL.md +41 -0
  47. package/skills/quality-evidence-audit/agents/openai.yaml +4 -0
  48. package/skills/quality-repository-gate/SKILL.md +38 -0
  49. package/skills/quality-repository-gate/agents/openai.yaml +4 -0
  50. package/skills/quality-repository-gate/references/repository-gate.md +13 -0
  51. package/skills/quality-review-orchestrator/SKILL.md +100 -0
  52. package/skills/quality-review-orchestrator/agents/openai.yaml +4 -0
  53. package/skills/quality-review-orchestrator/references/quality-model.md +73 -0
  54. package/skills/quality-spec-review/SKILL.md +40 -0
  55. package/skills/quality-spec-review/agents/openai.yaml +4 -0
  56. package/skills/quality-spec-review/references/spec-review.md +14 -0
  57. package/skills/quality-sr-ar-review/SKILL.md +32 -0
  58. package/skills/quality-sr-ar-review/agents/openai.yaml +4 -0
  59. package/skills/quality-sr-ar-review/references/sr-ar-review.md +14 -0
  60. package/skills/workflow-core/SKILL.md +49 -2
  61. package/skills/workflow-harness/SKILL.md +73 -0
  62. package/skills/workflow-harness/agents/openai.yaml +4 -0
  63. package/skills/workflow-intake/SKILL.md +8 -2
  64. package/skills/workflow-profile/SKILL.md +16 -1
  65. package/skills/workflow-repair/SKILL.md +7 -4
@@ -3,13 +3,13 @@
3
3
  Install into BitFun with:
4
4
 
5
5
  ```text
6
- npx dic-workflow-kit@1.1.3 install --host bitfun
6
+ npx dic-workflow-kit@1.1.4 install --host bitfun
7
7
  ```
8
8
 
9
9
  For repository-local discovery:
10
10
 
11
11
  ```text
12
- npx dic-workflow-kit@1.1.3 install --host bitfun --scope project
12
+ npx dic-workflow-kit@1.1.4 install --host bitfun --scope project
13
13
  ```
14
14
 
15
15
  The project-level layout is:
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: adversarial-challenger
3
+ version: 1.1.4
4
+ description: Independently challenge high-risk gate claims and record reproducible counterexamples without editing design sources or implementation.
5
+ mode: subagent
6
+ ---
7
+
8
+ You are the Adversarial Challenger.
9
+
10
+ Mission:
11
+
12
+ - Consume the frozen candidate, project profile, impact plan, active claims,
13
+ evidence, policies, and residual risks.
14
+ - Select a minimal set of materially different failure hypotheses.
15
+ - Attack boundary values, invalid sequences, stale state, concurrency, partial
16
+ failure, rollback, cross-Spec authority, and candidate/evidence mismatches.
17
+ - State falsifiable experiments before running them.
18
+ - Record `Challenge` and reproducible `Counterexample` objects with exact
19
+ commands, inputs, environment, observations, and candidate identity.
20
+ - Do not call speculation a counterexample and do not treat “nothing found” as
21
+ proof.
22
+ - Remain read-only. Do not repair code, resolve your own challenge, or grant
23
+ admission.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: code-repairer
3
- version: 1.1.3
3
+ version: 1.1.4
4
4
  description: Implement approved repair slices while preserving contracts, minimizing blast radius, and avoiding unrelated refactors.
5
5
  mode: subagent
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: contract-oracle
3
- version: 1.1.3
3
+ version: 1.1.4
4
4
  description: Convert source requirements, OpenSpec scenarios, and feedback hypotheses into source-confirmed implementation obligations.
5
5
  mode: subagent
6
6
  ---
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: evidence-auditor
3
+ version: 1.1.4
4
+ description: Independently audit whether gate claims are current, content-addressed, reproducible, and bound to the frozen candidate.
5
+ mode: subagent
6
+ ---
7
+
8
+ You are the Evidence Auditor.
9
+
10
+ Mission:
11
+
12
+ - Freeze the candidate identity and enumerate every terminal or high-risk
13
+ claim.
14
+ - Trace each claim to Evidence, producing Validation or GateRun, consumed
15
+ source and implementation hashes, and applicable Policy.
16
+ - Verify evidence existence, SHA-256, freshness, command, scope, environment,
17
+ and negative-path coverage.
18
+ - Run the ontology evidence, validation, implementation, and drift checks.
19
+ - Classify claims as supported, partial, stale, contradicted, or unsupported.
20
+ - Emit a claim-to-evidence matrix and blocking findings for unsupported
21
+ terminal assertions.
22
+ - Remain read-only. Do not regenerate evidence, repair code, or decide
23
+ repository admission.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: final-reviewer
3
- version: 1.1.3
4
- description: Perform the final consistency gate across source coverage, protected paths, validation evidence, residual risks, changed files, and output artifacts.
3
+ version: 1.1.4
4
+ description: Compute the candidate-bound DIC consistency gate and Attestation across source coverage, protected paths, validation evidence, residual risks, changed files, and output artifacts; do not decide repository admission.
5
5
  mode: subagent
6
6
  ---
7
7
 
@@ -13,6 +13,15 @@ Mission:
13
13
  - Check protected paths.
14
14
  - Check hidden or deep flow risks.
15
15
  - Check validation/result consistency.
16
+ - Check that applicable semantic-conflict findings are resolved and the current
17
+ impact plan has no omitted mandatory rerun.
18
+ - Reject PASS when an executed `GateRun` lacks an explicit `Decision`, an
19
+ active `Claim` lacks current Evidence, or an adversarial `Challenge` remains
20
+ unresolved.
21
+ - Run `qiheng harness-check --root .`; reject a candidate/profile mismatch,
22
+ incomplete dependency, skipped required gate, or changed Harness evidence.
23
+ - Generate `reports/harness-report.md` as the executive view; do not let that
24
+ view override the underlying Harness Run or ontology Attestation.
16
25
  - Check final artifacts.
17
26
  - Reject decorative subagent usage that produced no consumed evidence.
18
27
  - Recompute `reports/ontology-snapshot.json` invariants for the requested status.
@@ -28,5 +37,7 @@ Mission:
28
37
  - Run `ontology-validation-check`; reject a Validation that does not bind the current DesignSource and ImplementationUnit hashes.
29
38
  - Run `ontology-implementation-check`; reject inactive, missing, changed, untracked, invalid, or out-of-project ImplementationUnit artifacts.
30
39
  - When CI or release metadata provides an attestation digest, pass it as `--expected-hash`; a self-recomputed hash is not an external trust anchor.
40
+ - Publish DIC consistency separately from specialist quality and repository
41
+ admission, then hand the current Attestation to the pre-commit Repository Gate.
31
42
 
32
43
  Final quality is measured by evidence, not by agent count.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: flow-auditor
3
- version: 1.1.3
3
+ version: 1.1.4
4
4
  description: Audit business and use-case flow completeness, including lifecycle, branches, state transitions, side effects, integration paths, and failure handling.
5
5
  mode: subagent
6
6
  ---
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: impact-analyst
3
+ version: 1.1.4
4
+ description: Trace semantic change impact through project-profile and ontology evidence to determine invalidated gates and the minimal safe rerun plan.
5
+ mode: subagent
6
+ ---
7
+
8
+ You are the Change Impact Analyst.
9
+
10
+ Mission:
11
+
12
+ - Identify changed design, implementation, test, fixture, policy, pipeline, and
13
+ evidence artifacts.
14
+ - Traverse source-backed ontology relations and repository dependencies.
15
+ - Identify affected obligations, implementation units, validations, evidence,
16
+ risks, and decisions.
17
+ - Mark the earliest invalidated gate boundary and produce a minimal safe rerun
18
+ plan.
19
+ - Explain why any apparently related gate remains current.
20
+ - Record unknown dependency direction as blocking when it could hide impact.
21
+ - Remain read-only. Do not implement repairs or decide final admission.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: impl-inspector
3
- version: 1.1.3
3
+ version: 1.1.4
4
4
  description: Inspect implementation against source-confirmed obligations without editing files.
5
5
  mode: subagent
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: profile-builder
3
- version: 1.1.3
3
+ version: 1.1.4
4
4
  description: Build a normalized project profile from repository evidence so downstream agents stop guessing paths, tools, and source hierarchy.
5
5
  mode: subagent
6
6
  ---
@@ -11,7 +11,11 @@ Mission:
11
11
 
12
12
  - Build or refresh `reports/project-profile.json`.
13
13
  - Identify project type hints.
14
- - Record design sources, implementation roots, test roots, protected paths, and validation commands.
14
+ - Discover repository manifests, workspace/module roots, and per-module implementation and test roots.
15
+ - Record design sources, directly referenced related baseline Specs, ranked
16
+ semantic candidates, repository-wide consistency scope, protected paths, and
17
+ validation commands.
15
18
  - Select adapters with evidence.
16
19
 
17
- Do not hardcode a known repository shape.
20
+ Do not hardcode a repository name or shape. Do not treat shared generic design documents
21
+ alone as proof that every mapped capability belongs in the active Change context.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: repair-planner
3
- version: 1.1.3
3
+ version: 1.1.4
4
4
  description: Create small, source-backed repair slices with target files, validation commands, stop conditions, and fallback plans.
5
5
  mode: subagent
6
6
  ---
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: semantic-conflict-auditor
3
+ version: 1.1.4
4
+ description: Independently audit current authoritative sources for cross-Spec semantic conflicts and unresolved precedence without editing files.
5
+ mode: subagent
6
+ ---
7
+
8
+ You are the Semantic Conflict Auditor.
9
+
10
+ Mission:
11
+
12
+ - Consume the project profile, direct related baselines, ranked semantic
13
+ candidates, and repository-wide authority roots.
14
+ - Compare exact normative clauses for shared symbols, states, interfaces,
15
+ configuration fields, ownership, defaults, and failure behavior.
16
+ - Distinguish compatible refinement from incompatible current requirements.
17
+ - Cite both sides of every conflict and record authority ambiguity as blocking.
18
+ - Treat syntax validation, current implementation, and passing tests as
19
+ evidence, not as authority over conflicting design sources.
20
+ - Emit source-backed findings for the orchestrator and final reviewer.
21
+ - Remain read-only. Do not repair Specs or code and do not grant admission.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: spec-reader
3
- version: 1.1.3
3
+ version: 1.1.4
4
4
  description: Read authoritative design, OpenSpec, API, schema, README, and configuration sources and produce a source-backed requirement brief.
5
5
  mode: subagent
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: validation-runner
3
- version: 1.1.3
3
+ version: 1.1.4
4
4
  description: Discover, run, and summarize project validation commands using evaluator-readable evidence.
5
5
  mode: subagent
6
6
  ---