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.
- package/.codex-plugin/plugin.json +14 -10
- package/CHANGELOG.md +56 -1
- package/INSTRUCTION.md +108 -29
- package/README.md +234 -134
- package/README.zh-CN.md +280 -194
- package/adapters/bitfun/README.md +2 -2
- package/agents/adversarial-challenger.md +23 -0
- package/agents/code-repairer.md +1 -1
- package/agents/contract-oracle.md +1 -1
- package/agents/evidence-auditor.md +23 -0
- package/agents/final-reviewer.md +13 -2
- package/agents/flow-auditor.md +1 -1
- package/agents/impact-analyst.md +21 -0
- package/agents/impl-inspector.md +1 -1
- package/agents/profile-builder.md +7 -3
- package/agents/repair-planner.md +1 -1
- package/agents/semantic-conflict-auditor.md +21 -0
- package/agents/spec-reader.md +1 -1
- package/agents/validation-runner.md +1 -1
- package/dist/dic-workflow-kit.mjs +17 -13
- package/package.json +5 -2
- package/schemas/final-result.schema.json +16 -1
- package/schemas/harness-plan.schema.json +143 -0
- package/schemas/harness-run.schema.json +75 -0
- package/schemas/ontology-action.schema.json +9 -1
- package/schemas/ontology-snapshot.schema.json +75 -1
- package/schemas/project-profile.schema.json +42 -0
- package/skills/knowledge-bdd/SKILL.md +1 -1
- package/skills/knowledge-change-impact/SKILL.md +43 -0
- package/skills/knowledge-change-impact/agents/openai.yaml +4 -0
- package/skills/knowledge-openspec/SKILL.md +1 -1
- package/skills/knowledge-repair-distill/SKILL.md +1 -1
- package/skills/quality-adversarial-challenge/SKILL.md +42 -0
- package/skills/quality-adversarial-challenge/agents/openai.yaml +4 -0
- package/skills/quality-ci-gate/SKILL.md +45 -0
- package/skills/quality-ci-gate/agents/openai.yaml +4 -0
- package/skills/quality-ci-gate/references/ci-gate.md +22 -0
- package/skills/quality-code-review/SKILL.md +32 -0
- package/skills/quality-code-review/agents/openai.yaml +4 -0
- package/skills/quality-code-review/references/code-review.md +13 -0
- package/skills/quality-cross-spec-consistency/SKILL.md +45 -0
- package/skills/quality-cross-spec-consistency/agents/openai.yaml +4 -0
- package/skills/quality-dt-review/SKILL.md +32 -0
- package/skills/quality-dt-review/agents/openai.yaml +4 -0
- package/skills/quality-dt-review/references/dt-review.md +14 -0
- package/skills/quality-evidence-audit/SKILL.md +41 -0
- package/skills/quality-evidence-audit/agents/openai.yaml +4 -0
- package/skills/quality-repository-gate/SKILL.md +38 -0
- package/skills/quality-repository-gate/agents/openai.yaml +4 -0
- package/skills/quality-repository-gate/references/repository-gate.md +13 -0
- package/skills/quality-review-orchestrator/SKILL.md +100 -0
- package/skills/quality-review-orchestrator/agents/openai.yaml +4 -0
- package/skills/quality-review-orchestrator/references/quality-model.md +73 -0
- package/skills/quality-spec-review/SKILL.md +40 -0
- package/skills/quality-spec-review/agents/openai.yaml +4 -0
- package/skills/quality-spec-review/references/spec-review.md +14 -0
- package/skills/quality-sr-ar-review/SKILL.md +32 -0
- package/skills/quality-sr-ar-review/agents/openai.yaml +4 -0
- package/skills/quality-sr-ar-review/references/sr-ar-review.md +14 -0
- package/skills/workflow-core/SKILL.md +49 -2
- package/skills/workflow-harness/SKILL.md +73 -0
- package/skills/workflow-harness/agents/openai.yaml +4 -0
- package/skills/workflow-intake/SKILL.md +8 -2
- package/skills/workflow-profile/SKILL.md +16 -1
- 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.
|
|
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.
|
|
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.
|
package/agents/code-repairer.md
CHANGED
|
@@ -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.
|
package/agents/final-reviewer.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: final-reviewer
|
|
3
|
-
version: 1.1.
|
|
4
|
-
description:
|
|
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.
|
package/agents/flow-auditor.md
CHANGED
|
@@ -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.
|
package/agents/impl-inspector.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: profile-builder
|
|
3
|
-
version: 1.1.
|
|
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
|
-
-
|
|
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
|
|
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.
|
package/agents/repair-planner.md
CHANGED
|
@@ -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.
|
package/agents/spec-reader.md
CHANGED