dic-workflow-kit 1.1.1 → 1.1.3

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/README.zh-CN.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 设计—实现一致性 Workflow Kit
2
2
 
3
- 版本:`1.1.1`
3
+ 版本:`1.1.3`
4
4
 
5
5
  [更新日志](CHANGELOG.md)
6
6
 
@@ -12,28 +12,30 @@ Design-Implementation Consistency Workflow Kit,简称 DIC Workflow Kit,是
12
12
 
13
13
  ## 通过 npm 安装
14
14
 
15
- npm 包完整包含 7 个 Skills 和 9 个 Subagents,并支持 Codex、Claude Code、OpenCode 和 MiMo Code 的原生目录结构。
15
+ npm 包完整包含 7 个 Skills 和 9 个 Subagents,并支持 Codex、Claude Code、OpenCode、MiMo Code BitFun 的原生目录结构。
16
16
 
17
17
  Codex 仍是默认宿主,原命令保持兼容:
18
18
 
19
19
  ```text
20
- npx dic-workflow-kit@1.1.1 install
20
+ npx dic-workflow-kit@1.1.3 install
21
21
  ```
22
22
 
23
23
  安装到其他宿主时显式指定 `--host`:
24
24
 
25
25
  ```text
26
- npx dic-workflow-kit@1.1.1 install --host claude-code
27
- npx dic-workflow-kit@1.1.1 install --host opencode
28
- npx dic-workflow-kit@1.1.1 install --host mimo-code
26
+ npx dic-workflow-kit@1.1.3 install --host claude-code
27
+ npx dic-workflow-kit@1.1.3 install --host opencode
28
+ npx dic-workflow-kit@1.1.3 install --host mimo-code
29
+ npx dic-workflow-kit@1.1.3 install --host bitfun
29
30
  ```
30
31
 
31
32
  默认是用户级安装;若只希望当前仓库使用,则增加 `--scope project`:
32
33
 
33
34
  ```text
34
- npx dic-workflow-kit@1.1.1 install --host claude-code --scope project
35
- npx dic-workflow-kit@1.1.1 install --host opencode --scope project
36
- npx dic-workflow-kit@1.1.1 install --host mimo-code --scope project
35
+ npx dic-workflow-kit@1.1.3 install --host claude-code --scope project
36
+ npx dic-workflow-kit@1.1.3 install --host opencode --scope project
37
+ npx dic-workflow-kit@1.1.3 install --host mimo-code --scope project
38
+ npx dic-workflow-kit@1.1.3 install --host bitfun --scope project
37
39
  ```
38
40
 
39
41
  | 宿主 | 用户级目录 | 项目级目录 |
@@ -42,13 +44,16 @@ npx dic-workflow-kit@1.1.1 install --host mimo-code --scope project
42
44
  | Claude Code | `~/.claude/{skills,agents}` | `.claude/{skills,agents}` |
43
45
  | OpenCode | `~/.config/opencode/{skills,agents}` | `.opencode/{skills,agents}` |
44
46
  | MiMo Code | 平台配置根目录下的 `mimocode/{skills,agents}` | `.mimocode/{skills,agents}` |
47
+ | BitFun | 平台原生的 BitFun 数据/配置目录 | `.bitfun/{skills,agents}` |
45
48
 
46
- Windows 上 MiMo Code 的用户级根目录为 `%LOCALAPPDATA%\mimocode`;适用时也会读取 `MIMOCODE_HOME` 和 `XDG_CONFIG_HOME`。安装器以仓库中的 `agents/` 为唯一来源,并按宿主转换 Subagent frontmatter,避免维护四套重复内容。
49
+ Windows 上 MiMo Code 的用户级根目录为 `%LOCALAPPDATA%\mimocode`;适用时也会读取 `MIMOCODE_HOME` 和 `XDG_CONFIG_HOME`。BitFun 的用户级 Skills 安装到平台数据目录下的 `BitFun/skills`,Subagents 安装到 BitFun 配置根目录下的 `bitfun/agents`;项目级安装统一使用 `.bitfun`。安装器以仓库中的 `agents/` 为唯一来源,并按宿主转换 Subagent frontmatter,避免维护多套重复内容。
50
+
51
+ 对于 BitFun,安装器会生成其原生 custom-agent schema。检查和规划角色保持只读,只有 `code-repairer` 与 `validation-runner` 获得职责所需的写入和命令工具。
47
52
 
48
53
  也可以先全局安装 CLI:
49
54
 
50
55
  ```text
51
- npm install --global @tonyclaw/dic-workflow-kit@1.1.1
56
+ npm install --global @tonyclaw/dic-workflow-kit@1.1.3
52
57
  dic-workflow-kit install --host opencode
53
58
  ```
54
59
 
@@ -61,11 +66,28 @@ dic-workflow-kit install
61
66
 
62
67
  使用 `--dry-run` 预演目标目录,使用 `--install-root <path>` 指定隔离的宿主根目录;Codex 仍兼容 `--marketplace-root <path>`。首次创建 Skills 或 agents 目录后,请重启或重新加载对应 Coding Agent 会话。
63
68
 
69
+ ### 检查、升级与卸载
70
+
71
+ 每次成功安装都会写入 `.dic-workflow-kit-install.json`,记录包版本、宿主目录、受管理文件及其 SHA-256。使用 `doctor` 检查是否存在文件缺失或被修改:
72
+
73
+ ```text
74
+ dic-workflow-kit doctor --host bitfun --scope project
75
+ dic-workflow-kit doctor --host opencode
76
+ ```
77
+
78
+ 只移除当前安装清单管理的文件:
79
+
80
+ ```text
81
+ dic-workflow-kit uninstall --host bitfun --scope project
82
+ ```
83
+
84
+ 安装器不会默认覆盖未受管理或已被本地修改的文件;卸载器也不会默认删除已修改的受管理文件。请先检查报告中的路径,仅在确认这些修改可以丢弃时使用 `--force`。`install`、`doctor` 和 `uninstall` 都支持 `--json`,可供 CI 或自动化脚本消费。
85
+
64
86
  ## 用户如何使用
65
87
 
66
88
  ### 1. 在项目根目录启动 Coding Agent
67
89
 
68
- 安装完成后,进入需要检查的代码仓库,重新启动 Codex、Claude Code、OpenCode 或 MiMo Code。第一次安装新 Skills/agents 目录时,已有会话可能无法立即发现它们。
90
+ 安装完成后,进入需要检查的代码仓库,重新启动 Codex、Claude Code、OpenCode、MiMo Code BitFun。第一次安装新 Skills/agents 目录时,已有会话可能无法立即发现它们。
69
91
 
70
92
  ```text
71
93
  cd /path/to/your-project
@@ -73,7 +95,7 @@ cd /path/to/your-project
73
95
 
74
96
  ### 2. 用自然语言启动工作流
75
97
 
76
- 下面这条提示词适用于四种宿主:
98
+ 下面这条提示词适用于五种宿主:
77
99
 
78
100
  ```text
79
101
  使用 DIC Workflow Kit 检查当前项目的设计—实现一致性。
@@ -146,7 +168,10 @@ knowledge-openspec 检查当前 OpenSpec 变更。
146
168
  ### 常见问题
147
169
 
148
170
  - **找不到 Skill/Subagent**:重启 Coding Agent,并使用 `--dry-run` 检查安装目标。
149
- - **只想当前仓库使用**:Claude Code、OpenCode、MiMo Code 安装时增加 `--scope project`。
171
+ - **检查安装完整性**:使用与安装时相同的宿主、scope 和根目录参数运行 `doctor`。
172
+ - **安装提示冲突**:先检查报告中的文件,保存或重命名用户内容后再考虑 `--force`。
173
+ - **卸载拒绝删除修改文件**:可以保留当前安装;只有备份修改后才应使用 `--force`。
174
+ - **只想当前仓库使用**:Claude Code、OpenCode、MiMo Code、BitFun 安装时增加 `--scope project`。
150
175
  - **项目没有 OpenSpec**:仍可使用设计文档、API、Schema、README 或产品需求作为权威设计源。
151
176
  - **缺少验证工具**:记录缺失的命令和环境原因,最终状态应为 `BLOCKED` 或 `PARTIAL`,不要伪造成功。
152
177
  - **测试通过是否等于一致**:不等于。还必须确认需求、分支、状态迁移、副作用及集成流程符合设计。
@@ -161,7 +186,7 @@ knowledge-openspec 检查当前 OpenSpec 变更。
161
186
  `package.json` 是唯一版本源。版本脚本会同步 Codex 插件清单、工作流脚本、全部 Skills、全部 Subagents 和中英文 README:
162
187
 
163
188
  ```text
164
- npm run release:set-version -- 1.1.1
189
+ npm run release:set-version -- 1.1.3
165
190
  npm run release:plan
166
191
  npm run release:dual:dry-run
167
192
  npm run release:dual
@@ -209,7 +234,7 @@ DIC Workflow Kit 将这个问题转换为一条可重复执行的证据链:
209
234
  | 01 | `workflow-intake` | 工作流方法 | Subagent 启动前 | 识别设计源、实现目录、测试目录、保护路径、验证命令和 Adapter 线索。 |
210
235
  | 02 | `workflow-profile` | 工作流方法 | Subagent 启动前 | 将 Intake 证据规范化为所有下游角色共同消费的项目画像。 |
211
236
  | 03 | `knowledge-openspec` | 知识包 | 读取设计源时;检测到 OpenSpec 才加载 | 理解 proposal、design、spec、scenario、task、active change 和 archived capability。 |
212
- | 04 | `knowledge-bdd` | 知识包 | 契约确认后;需要行为覆盖时 | 从已确认设计规则和流程契约生成 Given–When–Then 验收场景。 |
237
+ | 04 | `knowledge-bdd` | 知识包 | 存在 `.feature` 或需要行为覆盖时 | 解释已挂载的 Gherkin 契约,或从已确认设计中生成受来源约束的 Given–When–Then 场景。 |
213
238
  | 05 | `workflow-repair` | 工作流方法 | 审计、修复与最终审核阶段 | 控制有来源的检查、修复计划、最小变更、验证循环和证据更新。 |
214
239
  | 06 | `knowledge-repair-distill` | 知识包 | 修复规划或模型跑偏时 | 提供缺口分类、收敛策略、模型引导提示和验证门槛。 |
215
240
 
@@ -268,6 +293,108 @@ validation-runner -> final-reviewer
268
293
 
269
294
  Skills 提供全局控制或阶段知识;Subagents 消费边界明确的输入并产出类型化证据。少量但有效的 Handoff,优于没有产物被消费的装饰性 Agent 链。
270
295
 
296
+ ## 本体驱动的一致性
297
+
298
+ DIC 将一次运行建模为可移植的语义图,而不是互相独立的 Agent 总结。
299
+ `reports/ontology-snapshot.json` 保存类型化对象(设计源、需求、场景、实现单元、
300
+ 缺口、修复动作、验证和证据)以及它们之间的明确关系。
301
+
302
+ 每个对象都有稳定 ID、生命周期和来源证据。Agent 通过
303
+ `schemas/ontology-action.schema.json` 定义的受控动作改变状态。最终审查者根据
304
+ 图上的不变量计算 PASS:有效义务必须有来源,需求必须有实现处置,义务必须有
305
+ 当前验证证据,并且不能存在未关闭的阻断缺口。
306
+
307
+ 本体默认以文件保存,不依赖图数据库,因此可跨 Codex、Claude Code、OpenCode、
308
+ MiMo Code 和 BitFun 使用;后续可以增加 SQLite 或图服务索引而不改变语义契约。
309
+
310
+ 发布后的单文件 CLI 已内置动作校验和审计能力,但不会发布运行时源码:
311
+
312
+ ```text
313
+ dic-workflow-kit ontology-check --root . --status PASS
314
+ dic-workflow-kit action-check --root . --action reports/actions/repair.json
315
+ dic-workflow-kit action-record --root . --action reports/actions/repair.json
316
+ dic-workflow-kit ontology-reconcile --root .
317
+ dic-workflow-kit ontology-ledger-check --root . --json
318
+ dic-workflow-kit ontology-evidence-check --root . --json
319
+ dic-workflow-kit ontology-validation-check --root . --json
320
+ dic-workflow-kit ontology-implementation-check --root . --json
321
+ dic-workflow-kit ontology-query --root . --query impact --id <object-id>
322
+ dic-workflow-kit ontology-drift --root .
323
+ dic-workflow-kit ontology-plan --root . --json
324
+ dic-workflow-kit ontology-explain --root . --id <object-id> --json
325
+ dic-workflow-kit ontology-report --root . --status PASS
326
+ dic-workflow-kit ontology-attest --root . --status PASS --summary "已验证"
327
+ dic-workflow-kit ontology-attestation-check --root .
328
+ ```
329
+
330
+ `action-record` 将带 SHA-256 的不可变记录追加到
331
+ `reports/ontology-actions.jsonl`,并拒绝越权角色、无效目标、缺失证据、
332
+ 保护路径重叠和 Action ID 冲突。
333
+
334
+ 新记录采用 v2 Ledger:包含序号、前一记录哈希、基准 Snapshot 修订、Action
335
+ 哈希和整条记录哈希,可检测重排、插入、修改和过期状态落账,同时兼容连续的
336
+ v1 历史前缀。使用 `ontology-ledger-check` 查看链头和整文件哈希。
337
+
338
+ 完成态 Action 必须携带声明式 `ontologyPatch`。每种 Action 只能增加被允许的对象、
339
+ 关系和生命周期迁移。`ontology-reconcile` 会校验 Ledger 哈希、跳过已经应用的
340
+ Action、重放剩余 Patch、重新计算不变量,并且只在候选状态完整有效时替换快照。
341
+
342
+ `ontology-query` 提供四类查询:未覆盖义务、开放 Gap、无证据验证,以及从指定
343
+ 对象出发的有限深度影响链。
344
+
345
+ `ontology-evidence-check` 会验证当前 Validation 所需的每个 Evidence 是否指向
346
+ 项目内真实文件,以及当前字节是否匹配记录的 SHA-256。只有生命周期有效且
347
+ `properties.status: PASS` 的 Validation 才能通过 `VERIFIED_BY` 满足 PASS。
348
+
349
+ `ontology-validation-check` 用来堵住“旧绿灯日志批准新代码”的漏洞。每个
350
+ Validation 必须记录 `executedAt`,并通过 `{ objectId, contentHash }` 绑定本次
351
+ 运行实际消费的 DesignSource 与 ImplementationUnit。输入缺失或哈希过期会阻断
352
+ PASS,并使最终 Attestation 失效。
353
+
354
+ `ontology-implementation-check` 会将每个必需 ImplementationUnit 与项目内文件及
355
+ 记录的 SHA-256 比较。既有代码通过 `ObserveImplementation` 记录;
356
+ `ApplyRepair` 只表示获批修复实际创建或修改的实现。
357
+
358
+ `ontology-drift` 会将设计源当前内容与快照中的 SHA-256 来源记录进行比较;
359
+ 变更或丢失的设计源返回非零状态,其对象 ID 可以直接用于影响链查询。
360
+
361
+ `ontology-plan` 将设计源、实现文件、Evidence 漂移和影响链组合成最小重跑计划。
362
+ 设计变化从 Intake/Contract 重跑,实现漂移从 Inspection/Validation 重跑,
363
+ 仅 Evidence 漂移则只重跑 Validation 与 Final Review。
364
+
365
+ 生成或重放后的快照包含规范化 `snapshotRevision`。直接修改语义状态会导致修订
366
+ 哈希失效;Reconcile 也会拒绝覆盖执行期间已经发生变化的快照。设计源漂移已经
367
+ 接入 PASS 门禁,因此旧的绿色验证证据不能批准已经变化的设计。
368
+
369
+ `ontology-explain` 会返回对象属性、来源、直接关系和有限深度证据链,便于说明
370
+ 某个结论来自哪一行设计、对应哪个实现、Gap、Repair、Validation 和 Evidence。
371
+
372
+ `ontology-report` 直接从快照生成高信息密度 Markdown 视图。
373
+ `ontology-attest` 生成内容寻址的终态证明,将结论绑定到快照修订、Action Ledger
374
+ 哈希、设计源哈希、Evidence 制品哈希、ImplementationUnit 哈希和门禁结果;
375
+ `ontology-attestation-check` 会重新计算这些绑定,因此设计源、实现文件、
376
+ 证据文件、Ledger、快照或证明被改动后都会失败关闭。
377
+ 应将输出的 `contentHash` 保存到 CI 或 Release 元数据,并通过
378
+ `--expected-hash` 进行外部锚定;仅在同一文件内保存哈希只能证明完整性,
379
+ 不能证明真实性。
380
+
381
+ ## BDD 作为本体入口
382
+
383
+ 源码 Helper 会识别常见 feature、BDD、spec 和 test 目录中的 `.feature` 文件,
384
+ 并支持英文及常见中文 Gherkin 关键字:
385
+
386
+ - Feature/功能映射为 Requirement。
387
+ - Scenario/场景和 Scenario Outline/场景大纲映射为 Scenario。
388
+ - Background/背景步骤继承到每个场景。
389
+ - Examples 表、标签、行号和来源哈希完整保留。
390
+ - `DERIVED_FROM` 连接设计源,`REFINES` 连接 Feature Requirement。
391
+
392
+ 场景被解析不代表验证通过;仍需通过 `RunValidation` 和 `AttachEvidence` 挂载
393
+ 当前执行证据。
394
+
395
+ 显式选择某个 OpenSpec Change 时,只挂载被该 Change 引用的 Feature 文件;
396
+ 其他检测到的文件保持可发现,但不会静默扩大 Change 的义务范围。
397
+
271
398
  ## OpenSpec 适配重点
272
399
 
273
400
  | OpenSpec 文件 | 使用方式 |
@@ -285,6 +412,10 @@ Skills 提供全局控制或阶段知识;Subagents 消费边界明确的输入
285
412
  reports/project-profile.json
286
413
  reports/contract-obligations.json
287
414
  reports/contract-obligations.md
415
+ reports/ontology-snapshot.json
416
+ reports/ontology-actions.jsonl
417
+ reports/ontology-report.md
418
+ reports/ontology-attestation.json
288
419
  reports/implementation-gaps.md
289
420
  reports/repair-plan.md
290
421
  reports/final-consistency-report.md
@@ -0,0 +1,21 @@
1
+ # BDD Adapter
2
+
3
+ Detects Gherkin `.feature` files under conventional feature, BDD, spec, and test
4
+ roots.
5
+
6
+ The source helper mounts:
7
+
8
+ - `Feature` / `功能` as a source-backed `Requirement`
9
+ - `Scenario`, `Scenario Outline`, `场景`, and `场景大纲` as `Scenario`
10
+ - `Background` / `背景` steps as inherited acceptance clauses
11
+ - `Examples` / `示例` tables as structured scenario properties
12
+ - Given/When/Then/And/But and common Chinese equivalents as normalized clauses
13
+
14
+ BDD sources remain protected design inputs. A parsed scenario is an acceptance
15
+ contract, not validation evidence; `VERIFIED_BY` is added only after the
16
+ Validation Runner executes current tests and records durable evidence.
17
+
18
+ When intake is explicitly scoped to one OpenSpec Change, only Feature files
19
+ referenced by that Change's documents or delta specs are mounted. Other detected
20
+ Feature files remain available in `availableBddSources` without widening the
21
+ Change contract.
@@ -0,0 +1,40 @@
1
+ # BitFun Adapter
2
+
3
+ Install into BitFun with:
4
+
5
+ ```text
6
+ npx dic-workflow-kit@1.1.3 install --host bitfun
7
+ ```
8
+
9
+ For repository-local discovery:
10
+
11
+ ```text
12
+ npx dic-workflow-kit@1.1.3 install --host bitfun --scope project
13
+ ```
14
+
15
+ The project-level layout is:
16
+
17
+ ```text
18
+ .bitfun/
19
+ skills/
20
+ agents/
21
+ ```
22
+
23
+ The installer keeps every `SKILL.md` portable and converts each canonical
24
+ Subagent definition to BitFun custom-agent schema version 1. Inspection and
25
+ planning roles are read-only. `code-repairer` and `validation-runner` receive
26
+ the write and command tools required to repair code and capture validation
27
+ evidence.
28
+
29
+ Restart or reload BitFun after first installation so it can rediscover the
30
+ new Skills and Subagents.
31
+
32
+ Verify or remove the project installation with:
33
+
34
+ ```text
35
+ dic-workflow-kit doctor --host bitfun --scope project
36
+ dic-workflow-kit uninstall --host bitfun --scope project
37
+ ```
38
+
39
+ The generated installation manifest protects locally modified files from
40
+ silent overwrite or removal.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: code-repairer
3
- version: 1.1.1
3
+ version: 1.1.3
4
4
  description: Implement approved repair slices while preserving contracts, minimizing blast radius, and avoiding unrelated refactors.
5
5
  mode: subagent
6
6
  ---
@@ -13,5 +13,12 @@ Mission:
13
13
  - Keep changes small and source-backed.
14
14
  - Preserve frozen contracts.
15
15
  - Record changed files and repair rationale.
16
+ - Execute only an approved `ApplyRepair` action.
17
+ - Enforce its targets, allowed paths, preconditions, and postconditions.
18
+ - Link the completed repair to its gap; do not close the gap without validation evidence.
19
+ - Run `action-check` before editing and append the completed action with `action-record` when the runtime is available.
20
+ - Materialize repair-produced `ImplementationUnit` and `IMPLEMENTED_BY` facts through the action patch, then reconcile.
21
+ - Record the repaired file's project-relative path and post-repair SHA-256 with the `ContentAddressed` interface.
22
+ - Do not use `ApplyRepair` merely to describe code that already existed; that belongs to `ObserveImplementation`.
16
23
 
17
24
  If a compile failure appears, re-check the governing source rule before applying follow-up fixes.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: contract-oracle
3
- version: 1.1.1
3
+ version: 1.1.3
4
4
  description: Convert source requirements, OpenSpec scenarios, and feedback hypotheses into source-confirmed implementation obligations.
5
5
  mode: subagent
6
6
  ---
@@ -13,5 +13,8 @@ Mission:
13
13
  - Confirm each obligation against source files.
14
14
  - Reject or mark non-applicable candidates with evidence.
15
15
  - Route confirmed obligations to flow audit or implementation inspection.
16
+ - Confirm lifecycle and provenance for requirement and scenario objects.
17
+ - Record confirmation through a `ConfirmObligation` action; do not edit implementation.
18
+ - Express confirmation as a permitted lifecycle transition in `parameters.ontologyPatch`.
16
19
 
17
20
  Do not use knowledge packs as source truth.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: final-reviewer
3
- version: 1.1.1
3
+ version: 1.1.3
4
4
  description: Perform the final consistency gate across source coverage, protected paths, validation evidence, residual risks, changed files, and output artifacts.
5
5
  mode: subagent
6
6
  ---
@@ -15,5 +15,18 @@ Mission:
15
15
  - Check validation/result consistency.
16
16
  - Check final artifacts.
17
17
  - Reject decorative subagent usage that produced no consumed evidence.
18
+ - Recompute `reports/ontology-snapshot.json` invariants for the requested status.
19
+ - Reject PASS when an active obligation lacks `DERIVED_FROM`, `IMPLEMENTED_BY`, or `VERIFIED_BY` evidence.
20
+ - Reject PASS while a blocking `Gap` remains open.
21
+ - Run `ontology-check --status PASS`; a blocking invariant failure is terminal evidence, not a suggestion.
22
+ - Reject a stale snapshot revision or any changed, missing, or out-of-project tracked design source.
23
+ - Generate `reports/ontology-report.md` from the current snapshot; do not hand-copy semantic conclusions into prose.
24
+ - Create `reports/ontology-attestation.json` only after the requested gate passes.
25
+ - Run `ontology-attestation-check` immediately before publishing the final result; reject a stale snapshot, ledger, source, or content hash.
26
+ - Run `ontology-ledger-check`; reject a broken sequence, hash chain, action hash, or record hash.
27
+ - Run `ontology-evidence-check`; reject a non-PASS Validation or any required Evidence artifact whose current bytes do not match provenance.
28
+ - Run `ontology-validation-check`; reject a Validation that does not bind the current DesignSource and ImplementationUnit hashes.
29
+ - Run `ontology-implementation-check`; reject inactive, missing, changed, untracked, invalid, or out-of-project ImplementationUnit artifacts.
30
+ - When CI or release metadata provides an attestation digest, pass it as `--expected-hash`; a self-recomputed hash is not an external trust anchor.
18
31
 
19
32
  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.1
3
+ version: 1.1.3
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
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: impl-inspector
3
- version: 1.1.1
3
+ version: 1.1.3
4
4
  description: Inspect implementation against source-confirmed obligations without editing files.
5
5
  mode: subagent
6
6
  ---
@@ -13,3 +13,9 @@ Mission:
13
13
  - Identify missing, partial, contradictory, or over-broad implementation.
14
14
  - Inspect tests only as evidence, not as source truth.
15
15
  - Produce a gap report for repair planning.
16
+ - Record existing code through `ObserveImplementation`; do not misclassify observation as `ApplyRepair`.
17
+ - Give every ImplementationUnit a project-relative path, SHA-256 provenance hash, and `ContentAddressed` interface.
18
+ - Add `IMPLEMENTED_BY` only when the current file resolves and its bytes match provenance.
19
+ - Open typed `Gap` objects for missing, partial, contradictory, or over-broad behavior.
20
+ - Do not repair code or mark a gap resolved.
21
+ - Emit `Gap` plus `VIOLATES` as an `OpenGap` ontology patch.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: profile-builder
3
- version: 1.1.1
3
+ version: 1.1.3
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
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: repair-planner
3
- version: 1.1.1
3
+ version: 1.1.3
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
  ---
@@ -15,3 +15,12 @@ Mission:
15
15
  - Avoid decorative subagent chains.
16
16
 
17
17
  Every repair item must include source anchor, target area, expected behavior, validation command, and stop condition.
18
+
19
+ Represent each item as a proposed `RepairAction` using
20
+ `schemas/ontology-action.schema.json`. Include explicit targets, preconditions,
21
+ postconditions, allowed paths, validation evidence requirements, rollback, and
22
+ the current `expectedSnapshotRevision`.
23
+ Planning does not authorize execution.
24
+
25
+ The completed `ProposeRepair` action adds a `RepairAction` and its `RESOLVES`
26
+ link through `parameters.ontologyPatch`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: spec-reader
3
- version: 1.1.1
3
+ version: 1.1.3
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
  ---
@@ -13,6 +13,8 @@ Mission:
13
13
  - Summarize requirements with file anchors.
14
14
  - Separate stable requirements from examples.
15
15
  - Mark ambiguity as `VERIFY`, not as implementation freedom.
16
+ - Propose `DesignSource`, `Requirement`, and `Scenario` objects with stable source locators and revisions.
17
+ - Do not create implementation, repair, or final-decision facts.
16
18
 
17
19
  Output a handoff with:
18
20
 
@@ -21,3 +23,4 @@ Output a handoff with:
21
23
  - protected paths
22
24
  - unresolved questions
23
25
  - next recommended agent
26
+ - proposed ontology object IDs and `DERIVED_FROM` / `REFINES` links
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: validation-runner
3
- version: 1.1.1
3
+ version: 1.1.3
4
4
  description: Discover, run, and summarize project validation commands using evaluator-readable evidence.
5
5
  mode: subagent
6
6
  ---
@@ -14,3 +14,13 @@ Mission:
14
14
  - Store logs under `logs/trace/validation/`.
15
15
  - Wrap results into machine-readable summaries.
16
16
  - Classify missing tools as environment evidence.
17
+ - Create `Validation` objects with command, revision, exit status, `executedAt`, and log provenance.
18
+ - Record `properties.inputs` as `{ objectId, contentHash }` for every DesignSource and ImplementationUnit actually consumed by the run.
19
+ - Set `properties.status` to the actual result; only `PASS` satisfies coverage.
20
+ - Create every Evidence object with a project-relative `properties.path`, SHA-256 `provenance.contentHash`, and `ContentAddressed` interface.
21
+ - Run `ontology-evidence-check` after reconciliation and reject missing, changed, untracked, inactive, or out-of-project artifacts.
22
+ - Run `ontology-validation-check` after reconciliation; reject missing, duplicate, or stale causal inputs.
23
+ - Add `VERIFIED_BY` only when the evidence applies to the current source and implementation revisions.
24
+ - Do not infer PASS from a successful command that lacks obligation coverage.
25
+ - Record completed `RunValidation` and `AttachEvidence` actions in the ontology action ledger.
26
+ - Add `Validation`, `Evidence`, `VERIFIED_BY`, and `PRODUCES` only through permitted action patches.