artifact-chain-assistant 0.9.0 → 0.9.2
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.kimi-plugin/plugin.json +1 -1
- package/CHANGELOG.md +16 -0
- package/INSTALL.md +10 -10
- package/README.md +4 -4
- package/README.zh-CN.md +4 -4
- package/adapters/claude/.claude-plugin/plugin.json +1 -1
- package/adapters/claude/INSTALL.md +10 -10
- package/adapters/claude/agent-methods/catalog.yaml +1 -1
- package/adapters/claude/compatibility.json +4 -4
- package/adapters/claude/family-apis/catalog.json +1 -1
- package/adapters/claude/skills/scenario-script/SKILL.md +8 -8
- package/adapters/claude/skills/scenario-script/author/SKILL.md +29 -20
- package/adapters/claude/skills/scenario-script/author/references/compose.md +54 -9
- package/adapters/claude/skills/scenario-script/author/references/default-template.md +64 -0
- package/adapters/claude/skills/scenario-script/author/references/inspect.md +7 -3
- package/adapters/claude/skills/scenario-script/author/references/validate.md +23 -11
- package/adapters/claude/skills/scenario-script/author/references/writing-style.md +74 -0
- package/adapters/claude/skills/scenario-script/references/compose.md +54 -9
- package/adapters/claude/skills/scenario-script/references/default-template.md +64 -0
- package/adapters/claude/skills/scenario-script/references/inspect.md +7 -3
- package/adapters/claude/skills/scenario-script/references/validate.md +23 -11
- package/adapters/claude/skills/scenario-script/references/writing-style.md +74 -0
- package/adapters/claude/skills/scenario-script/repair/SKILL.md +35 -16
- package/adapters/claude/skills/scenario-script/repair/references/compose.md +88 -0
- package/adapters/claude/skills/scenario-script/repair/references/default-template.md +64 -0
- package/adapters/claude/skills/scenario-script/repair/references/inspect.md +109 -0
- package/adapters/claude/skills/scenario-script/repair/references/validate.md +84 -0
- package/adapters/claude/skills/scenario-script/repair/references/writing-style.md +74 -0
- package/adapters/claude/skills/scenario-script/review/SKILL.md +55 -23
- package/adapters/claude/skills/scenario-script/review/references/compose.md +54 -9
- package/adapters/claude/skills/scenario-script/review/references/default-template.md +64 -0
- package/adapters/claude/skills/scenario-script/review/references/inspect.md +7 -3
- package/adapters/claude/skills/scenario-script/review/references/validate.md +23 -11
- package/adapters/claude/skills/scenario-script/review/references/writing-style.md +74 -0
- package/adapters/claude/templates/core/scenario/review-checklist.md +28 -14
- package/adapters/claude/templates/core/scenario/starter.md +44 -27
- package/adapters/codex/.codex-plugin/plugin.json +1 -1
- package/adapters/codex/INSTALL.md +10 -10
- package/adapters/codex/agent-methods/catalog.yaml +1 -1
- package/adapters/codex/compatibility.json +4 -4
- package/adapters/codex/family-apis/catalog.json +1 -1
- package/adapters/codex/skills/scenario-script/SKILL.md +8 -8
- package/adapters/codex/skills/scenario-script/author/SKILL.md +29 -20
- package/adapters/codex/skills/scenario-script/author/references/compose.md +54 -9
- package/adapters/codex/skills/scenario-script/author/references/default-template.md +64 -0
- package/adapters/codex/skills/scenario-script/author/references/inspect.md +7 -3
- package/adapters/codex/skills/scenario-script/author/references/validate.md +23 -11
- package/adapters/codex/skills/scenario-script/author/references/writing-style.md +74 -0
- package/adapters/codex/skills/scenario-script/references/compose.md +54 -9
- package/adapters/codex/skills/scenario-script/references/default-template.md +64 -0
- package/adapters/codex/skills/scenario-script/references/inspect.md +7 -3
- package/adapters/codex/skills/scenario-script/references/validate.md +23 -11
- package/adapters/codex/skills/scenario-script/references/writing-style.md +74 -0
- package/adapters/codex/skills/scenario-script/repair/SKILL.md +35 -16
- package/adapters/codex/skills/scenario-script/repair/references/compose.md +88 -0
- package/adapters/codex/skills/scenario-script/repair/references/default-template.md +64 -0
- package/adapters/codex/skills/scenario-script/repair/references/inspect.md +109 -0
- package/adapters/codex/skills/scenario-script/repair/references/validate.md +84 -0
- package/adapters/codex/skills/scenario-script/repair/references/writing-style.md +74 -0
- package/adapters/codex/skills/scenario-script/review/SKILL.md +55 -23
- package/adapters/codex/skills/scenario-script/review/references/compose.md +54 -9
- package/adapters/codex/skills/scenario-script/review/references/default-template.md +64 -0
- package/adapters/codex/skills/scenario-script/review/references/inspect.md +7 -3
- package/adapters/codex/skills/scenario-script/review/references/validate.md +23 -11
- package/adapters/codex/skills/scenario-script/review/references/writing-style.md +74 -0
- package/adapters/codex/templates/core/scenario/review-checklist.md +28 -14
- package/adapters/codex/templates/core/scenario/starter.md +44 -27
- package/adapters/kimi/.kimi-plugin/plugin.json +1 -1
- package/adapters/kimi/INSTALL.md +10 -10
- package/adapters/kimi/agent-methods/catalog.yaml +1 -1
- package/adapters/kimi/compatibility.json +4 -4
- package/adapters/kimi/family-apis/catalog.json +1 -1
- package/adapters/kimi/skills/scenario-script/SKILL.md +8 -8
- package/adapters/kimi/skills/scenario-script/author/SKILL.md +29 -20
- package/adapters/kimi/skills/scenario-script/author/references/compose.md +54 -9
- package/adapters/kimi/skills/scenario-script/author/references/default-template.md +64 -0
- package/adapters/kimi/skills/scenario-script/author/references/inspect.md +7 -3
- package/adapters/kimi/skills/scenario-script/author/references/validate.md +23 -11
- package/adapters/kimi/skills/scenario-script/author/references/writing-style.md +74 -0
- package/adapters/kimi/skills/scenario-script/references/compose.md +54 -9
- package/adapters/kimi/skills/scenario-script/references/default-template.md +64 -0
- package/adapters/kimi/skills/scenario-script/references/inspect.md +7 -3
- package/adapters/kimi/skills/scenario-script/references/validate.md +23 -11
- package/adapters/kimi/skills/scenario-script/references/writing-style.md +74 -0
- package/adapters/kimi/skills/scenario-script/repair/SKILL.md +35 -16
- package/adapters/kimi/skills/scenario-script/repair/references/compose.md +88 -0
- package/adapters/kimi/skills/scenario-script/repair/references/default-template.md +64 -0
- package/adapters/kimi/skills/scenario-script/repair/references/inspect.md +109 -0
- package/adapters/kimi/skills/scenario-script/repair/references/validate.md +84 -0
- package/adapters/kimi/skills/scenario-script/repair/references/writing-style.md +74 -0
- package/adapters/kimi/skills/scenario-script/review/SKILL.md +55 -23
- package/adapters/kimi/skills/scenario-script/review/references/compose.md +54 -9
- package/adapters/kimi/skills/scenario-script/review/references/default-template.md +64 -0
- package/adapters/kimi/skills/scenario-script/review/references/inspect.md +7 -3
- package/adapters/kimi/skills/scenario-script/review/references/validate.md +23 -11
- package/adapters/kimi/skills/scenario-script/review/references/writing-style.md +74 -0
- package/adapters/kimi/templates/core/scenario/review-checklist.md +28 -14
- package/adapters/kimi/templates/core/scenario/starter.md +44 -27
- package/agent-methods/catalog.yaml +1 -1
- package/compatibility.json +4 -4
- package/family-apis/catalog.json +1 -1
- package/package.json +2 -2
- package/skills/scenario-script/SKILL.md +8 -8
- package/skills/scenario-script/author/SKILL.md +29 -20
- package/skills/scenario-script/author/references/compose.md +54 -9
- package/skills/scenario-script/author/references/default-template.md +64 -0
- package/skills/scenario-script/author/references/inspect.md +7 -3
- package/skills/scenario-script/author/references/validate.md +23 -11
- package/skills/scenario-script/author/references/writing-style.md +74 -0
- package/skills/scenario-script/references/compose.md +54 -9
- package/skills/scenario-script/references/default-template.md +64 -0
- package/skills/scenario-script/references/inspect.md +7 -3
- package/skills/scenario-script/references/validate.md +23 -11
- package/skills/scenario-script/references/writing-style.md +74 -0
- package/skills/scenario-script/repair/SKILL.md +35 -16
- package/skills/scenario-script/repair/references/compose.md +88 -0
- package/skills/scenario-script/repair/references/default-template.md +64 -0
- package/skills/scenario-script/repair/references/inspect.md +109 -0
- package/skills/scenario-script/repair/references/validate.md +84 -0
- package/skills/scenario-script/repair/references/writing-style.md +74 -0
- package/skills/scenario-script/review/SKILL.md +55 -23
- package/skills/scenario-script/review/references/compose.md +54 -9
- package/skills/scenario-script/review/references/default-template.md +64 -0
- package/skills/scenario-script/review/references/inspect.md +7 -3
- package/skills/scenario-script/review/references/validate.md +23 -11
- package/skills/scenario-script/review/references/writing-style.md +74 -0
- package/skills-src/scenario-script/SKILL.md +8 -8
- package/skills-src/scenario-script/author/SKILL.md +29 -20
- package/skills-src/scenario-script/references/compose.md +54 -9
- package/skills-src/scenario-script/references/default-template.md +64 -0
- package/skills-src/scenario-script/references/inspect.md +7 -3
- package/skills-src/scenario-script/references/validate.md +23 -11
- package/skills-src/scenario-script/references/writing-style.md +74 -0
- package/skills-src/scenario-script/repair/SKILL.md +35 -16
- package/skills-src/scenario-script/review/SKILL.md +55 -23
- package/templates/core/scenario/review-checklist.md +28 -14
- package/templates/core/scenario/starter.md +44 -27
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "artifact-chain-assistant",
|
|
3
3
|
"displayName": "Artifact Chain Assistant",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.2",
|
|
5
5
|
"description": "Artifact-chain intake, review/repair/batch/audit workflows, diagnostics, and version-lock maintenance helpers.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "广州市风荷科技有限公司"
|
package/.kimi-plugin/plugin.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.2
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Runtime compatibility and generated plugin manifests are synchronized with
|
|
8
|
+
`artifact-graph@0.9.2`.
|
|
9
|
+
|
|
10
|
+
## 0.9.1
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Runtime compatibility and generated plugin manifests are synchronized with
|
|
15
|
+
`artifact-graph@0.9.1`.
|
|
16
|
+
- Revised the `scenario-script` skill documentation and scenario templates across all host
|
|
17
|
+
adapters, and completed release compliance cleanup of the public surface.
|
|
18
|
+
|
|
3
19
|
## 0.9.0
|
|
4
20
|
|
|
5
21
|
### Added
|
package/INSTALL.md
CHANGED
|
@@ -13,7 +13,7 @@ instructions.
|
|
|
13
13
|
## Prerequisites
|
|
14
14
|
|
|
15
15
|
- Node.js `>=22.0.0`.
|
|
16
|
-
- `artifact-graph` 0.9.
|
|
16
|
+
- `artifact-graph` 0.9.2 installed in the target project.
|
|
17
17
|
- **GitHub SSH key** — Claude Code clones `source: github` entries over SSH by default. If you
|
|
18
18
|
have not configured a GitHub SSH key, set `CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1` in your shell
|
|
19
19
|
profile, or add the marketplace with an explicit `https://` URL. Codex users can check
|
|
@@ -25,24 +25,24 @@ instructions.
|
|
|
25
25
|
|
|
26
26
|
| Plugin | Verified Runtime | Install |
|
|
27
27
|
| --- | --- | --- |
|
|
28
|
-
| `artifact-chain-assistant` 0.9.
|
|
28
|
+
| `artifact-chain-assistant` 0.9.2 | `artifact-graph` 0.9.2 | `pnpm add -D artifact-graph@0.9.2` |
|
|
29
29
|
|
|
30
30
|
### Install The Runtime
|
|
31
31
|
|
|
32
32
|
The default installation path uses the npm registry with a precise version:
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
pnpm add -D artifact-graph@0.9.
|
|
35
|
+
pnpm add -D artifact-graph@0.9.2
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
If the npm registry is unavailable, use the explicit GitHub fallback pinned to the verified tag:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
pnpm add -D github:ifoohoo/artifact-graph#artifact-graph-v0.9.
|
|
41
|
+
pnpm add -D github:ifoohoo/artifact-graph#artifact-graph-v0.9.2
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
> **Never** install with an unlocked range (`artifact-graph`, `artifact-graph@latest`,
|
|
45
|
-
> `artifact-graph@^0.9.
|
|
45
|
+
> `artifact-graph@^0.9.2`) or an unpinned GitHub URL (`github:ifoohoo/artifact-graph`).
|
|
46
46
|
> Unlocked installs produce non-reproducible dependency trees and break version-lock audit.
|
|
47
47
|
|
|
48
48
|
With pnpm 10+, projects that install `artifact-graph` must allow the native `better-sqlite3`
|
|
@@ -69,7 +69,7 @@ allowBuilds:
|
|
|
69
69
|
|
|
70
70
|
The plugin's `doctor` command validates the installed runtime version before running any
|
|
71
71
|
diagnostic. If it detects a version mismatch or missing CLI, it reports the exact remediation
|
|
72
|
-
command (`pnpm add -D artifact-graph@0.9.
|
|
72
|
+
command (`pnpm add -D artifact-graph@0.9.2`) and exits non-zero.
|
|
73
73
|
|
|
74
74
|
### CLI Resolution Order
|
|
75
75
|
|
|
@@ -144,7 +144,7 @@ wrappers, and Stop-hook guardrail. These assistant controls do not replace Git h
|
|
|
144
144
|
|
|
145
145
|
> **Marketplace note**: `ifoohoo/artifact-skill-set` is an external independent marketplace. The
|
|
146
146
|
> plugin payload is still published from `ifoohoo/artifact-chain-assistant`. The marketplace entry
|
|
147
|
-
> must publish and enable `artifact-chain-assistant` 0.9.
|
|
147
|
+
> must publish and enable `artifact-chain-assistant` 0.9.2 before the install commands above will
|
|
148
148
|
> succeed.
|
|
149
149
|
|
|
150
150
|
### Kimi Code
|
|
@@ -218,7 +218,7 @@ The plugin should not move these files into the plugin repository.
|
|
|
218
218
|
|
|
219
219
|
For a first-time setup, the end-to-end sequence is:
|
|
220
220
|
|
|
221
|
-
1. **Install the CLI** — `pnpm add -D artifact-graph@0.9.
|
|
221
|
+
1. **Install the CLI** — `pnpm add -D artifact-graph@0.9.2` (see Prerequisites above).
|
|
222
222
|
2. **Install the plugin** — follow the Codex or Claude Code section above.
|
|
223
223
|
3. **Run bootstrap** — ask the assistant to use the `artifact-chain-bootstrap` skill (see prompt
|
|
224
224
|
below). The skill will:
|
|
@@ -1016,7 +1016,7 @@ with append-only behavior; it does not overwrite local rules.
|
|
|
1016
1016
|
### Recovery Steps
|
|
1017
1017
|
|
|
1018
1018
|
```bash
|
|
1019
|
-
# 1. Install dependencies from lockfile (gets artifact-graph@0.9.
|
|
1019
|
+
# 1. Install dependencies from lockfile (gets artifact-graph@0.9.2)
|
|
1020
1020
|
pnpm install --frozen-lockfile
|
|
1021
1021
|
|
|
1022
1022
|
# 2. Install plugin per your host (Codex / Claude Code / Kimi Code)
|
|
@@ -1083,7 +1083,7 @@ pnpm exec artifact-graph hooks install-git --hook all
|
|
|
1083
1083
|
### Enterprise Mirror
|
|
1084
1084
|
|
|
1085
1085
|
If the corporate environment cannot access the public npm registry or GitHub, mirror both
|
|
1086
|
-
`artifact-graph@0.9.
|
|
1086
|
+
`artifact-graph@0.9.2` and the plugin marketplace repository on an internal registry. The mirror
|
|
1087
1087
|
does not change the state ownership model: Git-tracked files remain authoritative, local caches
|
|
1088
1088
|
remain derived.
|
|
1089
1089
|
|
package/README.md
CHANGED
|
@@ -149,13 +149,13 @@ override, compact query, fallback behavior, and `PLUGIN_ROOT` discovery, see
|
|
|
149
149
|
|
|
150
150
|
| Plugin | Runtime | Install |
|
|
151
151
|
| --- | --- | --- |
|
|
152
|
-
| `artifact-chain-assistant` 0.9.
|
|
152
|
+
| `artifact-chain-assistant` 0.9.2 | `artifact-graph` 0.9.2 | `pnpm add -D artifact-graph@0.9.2` |
|
|
153
153
|
|
|
154
154
|
## Install
|
|
155
155
|
|
|
156
156
|
```bash
|
|
157
157
|
# Runtime (required)
|
|
158
|
-
npm install --save-dev artifact-graph@0.9.
|
|
158
|
+
npm install --save-dev artifact-graph@0.9.2
|
|
159
159
|
```
|
|
160
160
|
|
|
161
161
|
```bash
|
|
@@ -177,7 +177,7 @@ codex plugin add artifact-chain-assistant@artifact-skill-set
|
|
|
177
177
|
|
|
178
178
|
> **Marketplace note**: `ifoohoo/artifact-skill-set` is an external independent marketplace. The
|
|
179
179
|
> plugin payload is still published from `ifoohoo/artifact-chain-assistant`. The marketplace entry
|
|
180
|
-
> must publish and enable `artifact-chain-assistant` 0.9.
|
|
180
|
+
> must publish and enable `artifact-chain-assistant` 0.9.2 before the install commands above will
|
|
181
181
|
> succeed.
|
|
182
182
|
|
|
183
183
|
```text
|
|
@@ -193,7 +193,7 @@ For the full installation guide, quick start, Agent prompts, and clone onboardin
|
|
|
193
193
|
|
|
194
194
|
## Quick Start
|
|
195
195
|
|
|
196
|
-
1. Install plugin 0.9.
|
|
196
|
+
1. Install plugin 0.9.2 (above) and runtime: `pnpm add -D artifact-graph@0.9.2`.
|
|
197
197
|
2. Run `artifact-graph doctor --root . --format json` to verify the runtime.
|
|
198
198
|
3. For first-time setup, use the bootstrap skill.
|
|
199
199
|
4. For daily work, use the maintainer skill.
|
package/README.zh-CN.md
CHANGED
|
@@ -197,13 +197,13 @@ catalog 还包含 `artifact.generate`,用于从模板和 profile 配置生成
|
|
|
197
197
|
|
|
198
198
|
| 插件 | 运行时 | 安装 |
|
|
199
199
|
| --- | --- | --- |
|
|
200
|
-
| `artifact-chain-assistant` 0.9.
|
|
200
|
+
| `artifact-chain-assistant` 0.9.2 | `artifact-graph` 0.9.2 | `pnpm add -D artifact-graph@0.9.2` |
|
|
201
201
|
|
|
202
202
|
## 安装
|
|
203
203
|
|
|
204
204
|
```bash
|
|
205
205
|
# 运行时(必需)
|
|
206
|
-
npm install --save-dev artifact-graph@0.9.
|
|
206
|
+
npm install --save-dev artifact-graph@0.9.2
|
|
207
207
|
```
|
|
208
208
|
|
|
209
209
|
```bash
|
|
@@ -225,7 +225,7 @@ codex plugin add artifact-chain-assistant@artifact-skill-set
|
|
|
225
225
|
|
|
226
226
|
> **市场说明**:`ifoohoo/artifact-skill-set` 是外部独立市场,插件载荷仍由
|
|
227
227
|
> `ifoohoo/artifact-chain-assistant` 发布。市场条目必须先发布并启用
|
|
228
|
-
> `artifact-chain-assistant` 0.9.
|
|
228
|
+
> `artifact-chain-assistant` 0.9.2,上述安装命令才能生效。
|
|
229
229
|
|
|
230
230
|
```text
|
|
231
231
|
# Kimi Code 插件(交互式,user 作用域)
|
|
@@ -240,7 +240,7 @@ codex plugin add artifact-chain-assistant@artifact-skill-set
|
|
|
240
240
|
|
|
241
241
|
## 快速开始
|
|
242
242
|
|
|
243
|
-
1. 安装插件 0.9.
|
|
243
|
+
1. 安装插件 0.9.2(见上文)和运行时:`pnpm add -D artifact-graph@0.9.2`。
|
|
244
244
|
2. 运行 `artifact-graph doctor --root . --format json` 验证运行时。
|
|
245
245
|
3. 首次搭建,进入 bootstrap 技能。
|
|
246
246
|
4. 日常工作,进入 maintainer 技能。
|
|
@@ -16,7 +16,7 @@ instructions.
|
|
|
16
16
|
## Prerequisites
|
|
17
17
|
|
|
18
18
|
- Node.js `>=22.0.0`.
|
|
19
|
-
- `artifact-graph` 0.9.
|
|
19
|
+
- `artifact-graph` 0.9.2 installed in the target project.
|
|
20
20
|
- **GitHub SSH key** — Claude Code clones `source: github` entries over SSH by default. If you
|
|
21
21
|
have not configured a GitHub SSH key, set `CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1` in your shell
|
|
22
22
|
profile, or add the marketplace with an explicit `https://` URL. Codex users can check
|
|
@@ -28,24 +28,24 @@ instructions.
|
|
|
28
28
|
|
|
29
29
|
| Plugin | Verified Runtime | Install |
|
|
30
30
|
| --- | --- | --- |
|
|
31
|
-
| `artifact-chain-assistant` 0.9.
|
|
31
|
+
| `artifact-chain-assistant` 0.9.2 | `artifact-graph` 0.9.2 | `pnpm add -D artifact-graph@0.9.2` |
|
|
32
32
|
|
|
33
33
|
### Install The Runtime
|
|
34
34
|
|
|
35
35
|
The default installation path uses the npm registry with a precise version:
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
|
-
pnpm add -D artifact-graph@0.9.
|
|
38
|
+
pnpm add -D artifact-graph@0.9.2
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
If the npm registry is unavailable, use the explicit GitHub fallback pinned to the verified tag:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
pnpm add -D github:ifoohoo/artifact-graph#artifact-graph-v0.9.
|
|
44
|
+
pnpm add -D github:ifoohoo/artifact-graph#artifact-graph-v0.9.2
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
> **Never** install with an unlocked range (`artifact-graph`, `artifact-graph@latest`,
|
|
48
|
-
> `artifact-graph@^0.9.
|
|
48
|
+
> `artifact-graph@^0.9.2`) or an unpinned GitHub URL (`github:ifoohoo/artifact-graph`).
|
|
49
49
|
> Unlocked installs produce non-reproducible dependency trees and break version-lock audit.
|
|
50
50
|
|
|
51
51
|
With pnpm 10+, projects that install `artifact-graph` must allow the native `better-sqlite3`
|
|
@@ -72,7 +72,7 @@ allowBuilds:
|
|
|
72
72
|
|
|
73
73
|
The plugin's `doctor` command validates the installed runtime version before running any
|
|
74
74
|
diagnostic. If it detects a version mismatch or missing CLI, it reports the exact remediation
|
|
75
|
-
command (`pnpm add -D artifact-graph@0.9.
|
|
75
|
+
command (`pnpm add -D artifact-graph@0.9.2`) and exits non-zero.
|
|
76
76
|
|
|
77
77
|
### CLI Resolution Order
|
|
78
78
|
|
|
@@ -147,7 +147,7 @@ wrappers, and Stop-hook guardrail. These assistant controls do not replace Git h
|
|
|
147
147
|
|
|
148
148
|
> **Marketplace note**: `ifoohoo/artifact-skill-set` is an external independent marketplace. The
|
|
149
149
|
> plugin payload is still published from `ifoohoo/artifact-chain-assistant`. The marketplace entry
|
|
150
|
-
> must publish and enable `artifact-chain-assistant` 0.9.
|
|
150
|
+
> must publish and enable `artifact-chain-assistant` 0.9.2 before the install commands above will
|
|
151
151
|
> succeed.
|
|
152
152
|
|
|
153
153
|
### Kimi Code
|
|
@@ -221,7 +221,7 @@ The plugin should not move these files into the plugin repository.
|
|
|
221
221
|
|
|
222
222
|
For a first-time setup, the end-to-end sequence is:
|
|
223
223
|
|
|
224
|
-
1. **Install the CLI** — `pnpm add -D artifact-graph@0.9.
|
|
224
|
+
1. **Install the CLI** — `pnpm add -D artifact-graph@0.9.2` (see Prerequisites above).
|
|
225
225
|
2. **Install the plugin** — follow the Codex or Claude Code section above.
|
|
226
226
|
3. **Run bootstrap** — ask the assistant to use the `artifact-chain-bootstrap` skill (see prompt
|
|
227
227
|
below). The skill will:
|
|
@@ -1019,7 +1019,7 @@ with append-only behavior; it does not overwrite local rules.
|
|
|
1019
1019
|
### Recovery Steps
|
|
1020
1020
|
|
|
1021
1021
|
```bash
|
|
1022
|
-
# 1. Install dependencies from lockfile (gets artifact-graph@0.9.
|
|
1022
|
+
# 1. Install dependencies from lockfile (gets artifact-graph@0.9.2)
|
|
1023
1023
|
pnpm install --frozen-lockfile
|
|
1024
1024
|
|
|
1025
1025
|
# 2. Install plugin per your host (Codex / Claude Code / Kimi Code)
|
|
@@ -1086,7 +1086,7 @@ pnpm exec artifact-graph hooks install-git --hook all
|
|
|
1086
1086
|
### Enterprise Mirror
|
|
1087
1087
|
|
|
1088
1088
|
If the corporate environment cannot access the public npm registry or GitHub, mirror both
|
|
1089
|
-
`artifact-graph@0.9.
|
|
1089
|
+
`artifact-graph@0.9.2` and the plugin marketplace repository on an internal registry. The mirror
|
|
1090
1090
|
does not change the state ownership model: Git-tracked files remain authoritative, local caches
|
|
1091
1091
|
remain derived.
|
|
1092
1092
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0",
|
|
3
|
-
"pluginVersion": "0.9.
|
|
3
|
+
"pluginVersion": "0.9.2",
|
|
4
4
|
"artifactGraph": {
|
|
5
|
-
"verifiedVersion": "0.9.
|
|
6
|
-
"installSpec": "artifact-graph@0.9.
|
|
7
|
-
"githubFallbackSpec": "github:ifoohoo/artifact-graph#artifact-graph-v0.9.
|
|
5
|
+
"verifiedVersion": "0.9.2",
|
|
6
|
+
"installSpec": "artifact-graph@0.9.2",
|
|
7
|
+
"githubFallbackSpec": "github:ifoohoo/artifact-graph#artifact-graph-v0.9.2"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -58,14 +58,14 @@ description: Use when a user wants to write, review, or repair a scenario-script
|
|
|
58
58
|
|
|
59
59
|
## 通用质量维度
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
61
|
+
场景剧本是结构化的发现级场景:时序上先于、并驱动 PRD 与功能特性——场景是需求发现的载体,功能特性是场景的派生物;表达形式是结构化的(字段块 + Given/When/Then),作为实现与验收的依据。一个文件可含多个场景节点。具体字段、ID 格式、status 枚举、章节结构必须从目标项目的 artifact-graph.config.yaml、同类制品、项目模板和治理文档中派生:
|
|
62
|
+
|
|
63
|
+
- **节点结构**:主场景 `## S-NN:<名>`(H2),变体 `### S-NNa:<名>`(H3,字母后缀);编号匹配 `^S-\d+[a-z]?$`,允许前导零;冒号半/全角由项目模板统一。节点标题是制品图的解析锚点(CLI 按 `^#{2,3}\s+(S-\d+[a-z]?)\s*[::]` 识别节点,H2/H3 均可),不得随意变更形式。
|
|
64
|
+
- **字段块完整性**:节点标题下是加粗字段块——`**关联功能**` 与 `**关联决策**` 是机器锚点、必需(CLI 从含"关联功能/关联决策"字样的行内提取 ID 成边);`**场景代码**` 是稳定交叉引用 slug、推荐。字段集允许项目模板扩展(如入口编号),技能族只强制上述三项。
|
|
65
|
+
- **Given/When/Then 可验证性**:`### Given` 写可构造的具体前置状态;`### When` 写用户或外部动作,编号步骤;`### Then` 写可观察、可验证的结果(输出、退出码、状态、记录)。小节标题形式从项目模板派生。
|
|
66
|
+
- **变体覆盖**:关键分支、边界、异常写成紧随主场景的变体节点,复用主场景语境、只写差异,每个变体同样声明字段块。
|
|
67
|
+
- **追溯一致(暂缺不判 fail)**:场景允许先于功能制品存在——发现级场景尚未挂接功能时,按项目模板约定处理 `关联功能` 行(省略或标注"尚无功能制品"),如实报告,不编造 ID,不判 fail;关联功能存在时,`关联功能` 只引用图中已存在的功能 ID,且功能制品 frontmatter 的 `scenarios` 字段必须回列本场景(双向一致,CLI 校验强制)。CLI 的 `ORPHAN_SCENARIO` 是对无功能关联场景的 warning、不阻断(exit 0):发现级场景下该警告属预期,review 可按 warning 接受,不强制消灭。注意:场景→决策边只对 `D-XXX-数字` 形式的决策 ID 成边(CLI 硬编码),`ADR-\d{4}` 类编号只做文档级追溯,不得承诺其成边。
|
|
68
|
+
- **语体**:写可构造的状态、具体的动作、可观察的事实;不写口号、不写宣传、不写设计理由。场景正文不得出现本机绝对路径(如 `<用户主目录>/xxx`、`~/xxx`):用项目相对路径或占位符表达。去 AI 味行文规则见 `references/writing-style.md`;项目无模板时的默认格式见 `references/compose.md` 与 `references/default-template.md`。
|
|
69
69
|
|
|
70
70
|
## 技能协作边界
|
|
71
71
|
|
|
@@ -28,19 +28,28 @@ node <plugin-root>/scripts/check-workflow-profile.mjs \
|
|
|
28
28
|
- 读取 `artifact-graph.config.yaml` 确认项目配置、制品类型注册和路径
|
|
29
29
|
- 从配置中派生已有制品扫描路径,确认 ID 空间和命名模式
|
|
30
30
|
- 读取目标项目的模板、artifacts/README、治理文档,派生场景剧本的字段、status 枚举和章节结构
|
|
31
|
-
-
|
|
31
|
+
- 盘点图中已有功能特性/决策制品,确定可挂接的关联对象:场景剧本先于/驱动 PRD 与功能特性,允许先于功能制品存在;待关联制品暂缺时不阻塞,如实记录盘点结果,不编造 ID
|
|
32
32
|
|
|
33
33
|
### 2. compose(参见 references/compose.md)
|
|
34
34
|
|
|
35
35
|
基于 inspect 结果编写场景剧本。frontmatter 和正文结构从项目模板和已有制品派生,不硬编码字段名或章节。
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
37
|
+
场景剧本是结构化的发现级场景(先于/驱动 PRD 与功能特性,功能是场景的派生物),应覆盖通用质量维度:
|
|
38
|
+
- 字段块完整:`**场景代码**`(稳定 slug)、`**关联决策**`、`**关联功能**`(后两项为机器锚点、必需;字段集允许项目模板扩展)
|
|
39
|
+
- Given:可构造的具体前置状态
|
|
40
|
+
- When:用户或外部动作的编号步骤
|
|
41
|
+
- Then:可观察、可验证的结果(输出、退出码、状态、记录)
|
|
42
|
+
- 变体:关键分支、边界、异常写成变体节点,只写与主场景的差异,同样声明字段块
|
|
43
|
+
- 追溯:关联功能存在时只引用图中已存在的 ID,功能制品 frontmatter `scenarios` 回列本场景;场景先于功能制品时按项目模板约定省略或标注 `关联功能` 行,暂缺不判 fail,不编造 ID
|
|
44
|
+
- 正文不出现本机绝对路径(如 `<用户主目录>/xxx`、`~/xxx`):用项目相对路径或占位符
|
|
45
|
+
|
|
46
|
+
行文遵循 `../references/writing-style.md` 的去 AI 味规则。
|
|
47
|
+
|
|
48
|
+
词汇可懂性是强制约束(细则见 `../references/writing-style.md` 的"词汇可懂性纪律"节):
|
|
49
|
+
- 正文每句话必须通过"外行三问":是什么、谁在做、我看到什么;答不上来的词必须改写或补解释
|
|
50
|
+
- 系统内部动词(物化、收束、密封、栅栏、编排等)不得裸用于用户视角叙述,改写成可观察事实("系统给出最终结论""任务如实停住")
|
|
51
|
+
- 业务/机器术语首次出现必须有大白话解释或括注(示例:技术尝试(同一任务换一个全新进程再跑一次)),之后可沿用中文名、机器标识放反引号
|
|
52
|
+
- 技能 slug 只在字段块(入口编号)出现,正文用"入口技能""该命令"指代
|
|
44
53
|
|
|
45
54
|
### 3. validate(参见 references/validate.md)
|
|
46
55
|
|
|
@@ -71,23 +80,23 @@ validation:
|
|
|
71
80
|
related:
|
|
72
81
|
artifacts: [<关联制品类型、ID 及存在状态>]
|
|
73
82
|
quality_dimensions:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
traceability: present | missing
|
|
83
|
+
field_block: present | missing
|
|
84
|
+
given_when_then: present | missing
|
|
85
|
+
variant_coverage: present | missing
|
|
86
|
+
# 关联功能暂缺(发现级暂态)记 pending 而非 inconsistent
|
|
87
|
+
traceability: consistent | inconsistent | pending
|
|
80
88
|
```
|
|
81
89
|
|
|
82
90
|
## 质量要求
|
|
83
91
|
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
-
|
|
92
|
+
- 字段块三项齐全:`关联决策`、`关联功能` 为机器锚点、必需;`场景代码` 为稳定 slug、推荐
|
|
93
|
+
- Given 写可构造的具体前置状态;When 用编号步骤写具体动作;Then 写可观察、可验证的结果(输出、退出码、状态、记录),不写口号
|
|
94
|
+
- 关键分支、边界、异常写成变体节点,并同样声明字段块
|
|
95
|
+
- `关联功能` 只引用图中已存在的 ID,不编造关联 ID;功能制品存在时其 frontmatter `scenarios` 回列本场景,保持双向一致;功能制品暂缺时按项目模板约定省略或标注 `关联功能` 行,暂缺不判 fail
|
|
96
|
+
- 行文遵循 `../references/writing-style.md` 的去 AI 味规则
|
|
97
|
+
- 词汇可懂性为强制项(细则见 `../references/writing-style.md` 的"词汇可懂性纪律"节):正文通过"外行三问"(是什么、谁在做、我看到什么);系统内部动词不裸用于用户视角叙述;业务/机器术语首次出现有大白话解释或括注;技能 slug 只在字段块(入口编号)出现
|
|
89
98
|
- 所有项目专属字段和结构从目标项目派生,不硬编码
|
|
90
|
-
-
|
|
99
|
+
- 不得泄漏项目私有实现细节;正文不得出现本机绝对路径(如 `<用户主目录>/xxx`、`~/xxx`),用项目相对路径或占位符
|
|
91
100
|
|
|
92
101
|
## Profile 与 Worker Contract
|
|
93
102
|
|
|
@@ -20,15 +20,60 @@
|
|
|
20
20
|
|
|
21
21
|
### 3. 编写正文结构
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
|
|
23
|
+
项目有模板时服从项目模板;项目无模板时使用 `references/default-template.md` 的默认骨架。
|
|
24
|
+
默认骨架的要点:
|
|
25
|
+
|
|
26
|
+
- 场景节点标题:主场景 `## S-NN:<名>`(H2),变体 `### S-NNa:<名>`(H3,字母后缀)。
|
|
27
|
+
编号匹配 `^S-\d+[a-z]?$`,允许前导零;冒号半/全角由项目模板统一。标题层级、编号
|
|
28
|
+
形式、冒号形式以项目配置与既有制品为准——节点标题是制品图的解析锚点(CLI 按
|
|
29
|
+
`^#{2,3}\s+(S-\d+[a-z]?)\s*[::]` 识别),不得随意变更形式。一个文件可含多个节点。
|
|
30
|
+
- 字段块:节点标题下逐行写加粗字段——`**场景代码**: <稳定 slug>`(推荐)、
|
|
31
|
+
`**关联决策**: <ID 列表>`、`**关联功能**: <ID 列表>`。`关联决策`/`关联功能` 是机器
|
|
32
|
+
锚点、必需:CLI 从含"关联功能/关联决策"字样的行内提取 ID 成边,只引用制品图中
|
|
33
|
+
已存在的 ID。字段集允许项目模板扩展(如 `**入口编号**`),技能族只强制上述三项。
|
|
34
|
+
标签后只写制品 ID,标签名以项目 `relationFields` 配置为准。
|
|
35
|
+
- 场景先于功能制品时(发现级场景):`**关联功能**` 行按项目模板约定处理——省略该行,
|
|
36
|
+
或按项目模板标注"尚无功能制品";如实写明现状,不编造功能 ID 顶替。此时 CLI 报的
|
|
37
|
+
`ORPHAN_SCENARIO` warning(不阻断、exit 0)属预期,不强制消灭。功能制品后续建立后,
|
|
38
|
+
再补挂接并在功能制品 frontmatter `scenarios` 中回列本场景。
|
|
39
|
+
- `### Given`:前置条件,可构造的具体状态(文件存在与否、数据记录、环境条件),
|
|
40
|
+
逐条列出;不写泛泛背景。
|
|
41
|
+
- `### When`:用户或外部动作,编号步骤;每步一个具体动作。
|
|
42
|
+
- `### Then`:可观察、可验证的结果:输出文本、退出码、状态、记录。逐条列出,
|
|
43
|
+
每条都能被检查真伪;不写口号、不写"用户体验良好"之类不可验证表述。
|
|
44
|
+
- 小节标题形式(Given/When/Then 的具体写法)从项目模板派生。
|
|
45
|
+
- 变体场景:分支、边界、异常写成紧随主场景的变体 `### S-NNa:<名>`,复用主场景
|
|
46
|
+
语境,只写与主场景不同的 Given/When/Then。每个变体同样声明字段块。
|
|
47
|
+
|
|
48
|
+
### 4. 语言风格(结构化验收场景语体)
|
|
49
|
+
|
|
50
|
+
场景剧本的语体是结构化验收场景:写可构造的状态、具体的动作、可观察的事实。
|
|
51
|
+
不写宣传,不写设计理由,不写口号。
|
|
52
|
+
|
|
53
|
+
去 AI 味行文规则(空洞词、排队连接词、排比堆砌等)统一维护在
|
|
54
|
+
`references/writing-style.md`,编写与审阅都以该文件为准。场景层面的约束:
|
|
55
|
+
|
|
56
|
+
- Given 写可构造的状态:路径、记录、配置,不写"系统运行正常"这类空话。
|
|
57
|
+
- When 写具体动作:命令、点击、输入,步骤编号。
|
|
58
|
+
- Then 写可观察事实:输出、退出码、状态、记录;数字只在真实时写。
|
|
59
|
+
- 不写设计理由、不写宣传、不写观点。
|
|
60
|
+
- 写作惯性约束(视角锁定、语体一致、一句一事、Then 写正向状态等八条)统一维护在
|
|
61
|
+
`references/writing-style.md` 的"写作惯性约束"节,与去 AI 味行文规则同级执行。
|
|
62
|
+
- 禁本机绝对路径:正文中的路径一律用项目相对路径(如 `artifacts/scenarios/...`)或
|
|
63
|
+
占位符(如 `<project-root>`),不得出现 `<用户主目录>/xxx`、`~/xxx` 这类机器私有路径。
|
|
64
|
+
|
|
65
|
+
**交付前快速检查**:
|
|
66
|
+
|
|
67
|
+
- 有没有空洞词、排队连接词或排比堆砌?删(清单见 `references/writing-style.md`)。
|
|
68
|
+
- 词汇可懂性:正文能否通过"外行三问"、内部动词有无裸用、术语首现有无解释、slug 是否
|
|
69
|
+
只在字段块(检查法见 `references/writing-style.md` 的"词汇可懂性纪律"节)?
|
|
70
|
+
- Then 里有没有不可验证的表述?换成可观察事实。
|
|
71
|
+
- 正文有没有本机绝对路径?换成项目相对路径或占位符。
|
|
72
|
+
- `关联功能`/`关联决策` 是否只引用图中已存在的 ID?有没有编造关联?
|
|
73
|
+
- 关联功能存在时,功能制品 frontmatter 的 `scenarios` 是否回列了本场景(双向一致)?
|
|
74
|
+
尚未挂接功能时,`关联功能` 行是否按项目模板约定省略或标注,且如实报告?
|
|
75
|
+
- 每个节点的字段块是否齐全(场景代码/关联决策/关联功能;发现级场景下关联功能行可
|
|
76
|
+
按约定省略)?
|
|
32
77
|
|
|
33
78
|
### 5. 文件放置
|
|
34
79
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: S-<nn>
|
|
3
|
+
title: <场景文件标题>
|
|
4
|
+
status: <项目状态枚举>
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## S-<nn>:<场景名>
|
|
8
|
+
|
|
9
|
+
**场景代码**: <稳定交叉引用 slug,kebab-case>
|
|
10
|
+
**关联决策**: <决策 ID 列表>
|
|
11
|
+
**关联功能**: <功能 ID 列表;尚无功能制品时省略本行,或按项目模板标注"尚无功能制品">
|
|
12
|
+
|
|
13
|
+
### Given
|
|
14
|
+
|
|
15
|
+
- <可构造的具体前置状态:文件、记录、配置、环境条件>
|
|
16
|
+
|
|
17
|
+
### When
|
|
18
|
+
|
|
19
|
+
1. <用户或外部动作,编号步骤>
|
|
20
|
+
|
|
21
|
+
### Then
|
|
22
|
+
|
|
23
|
+
- <可观察、可验证的结果:输出文本、退出码、状态、记录>
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
### S-<nna>:<变体名>
|
|
28
|
+
|
|
29
|
+
**场景代码**: <变体稳定 slug>
|
|
30
|
+
**关联决策**: <决策 ID 列表>
|
|
31
|
+
**关联功能**: <功能 ID 列表>
|
|
32
|
+
|
|
33
|
+
### Given
|
|
34
|
+
|
|
35
|
+
- <与主场景不同的前置状态>
|
|
36
|
+
|
|
37
|
+
### When
|
|
38
|
+
|
|
39
|
+
1. <与主场景不同的动作步骤>
|
|
40
|
+
|
|
41
|
+
### Then
|
|
42
|
+
|
|
43
|
+
- <该分支下可观察、可验证的结果>
|
|
44
|
+
|
|
45
|
+
## 使用说明(放入项目前删除本节)
|
|
46
|
+
|
|
47
|
+
- 节点标题是制品图的解析锚点:主场景 H2、变体 H3,编号匹配 `^S-\d+[a-z]?$`(允许
|
|
48
|
+
前导零),冒号半/全角以项目 `artifact-graph.config.yaml` 与既有制品为准(CLI 按
|
|
49
|
+
`^#{2,3}\s+(S-\d+[a-z]?)\s*[::]` 识别节点)。
|
|
50
|
+
- 字段块中 `关联功能`/`关联决策` 是机器锚点、必需:CLI 从含"关联功能/关联决策"字样
|
|
51
|
+
的行内提取 ID 成边,只引用制品图中已存在的 ID。`场景代码` 是稳定交叉引用 slug、
|
|
52
|
+
推荐。字段集允许项目模板扩展(如 `**入口编号**`)。
|
|
53
|
+
- 场景先于功能制品时(发现级场景):`关联功能` 行按项目模板约定省略,或标注
|
|
54
|
+
"尚无功能制品";如实写明,不编造功能 ID。此时 CLI 的 `ORPHAN_SCENARIO` warning
|
|
55
|
+
(不阻断、exit 0)属预期,不强制消灭;功能制品建立后再补挂接与回列。
|
|
56
|
+
- 追溯一致:关联功能存在时,功能制品 frontmatter 的 `scenarios` 字段必须回列本场景
|
|
57
|
+
(双向一致,CLI 校验强制);暂缺不判 fail。
|
|
58
|
+
- 场景→决策边只对 `D-XXX-数字` 形式的决策 ID 成边(CLI 硬编码);`ADR-\d{4}` 类
|
|
59
|
+
编号只做文档级追溯,不产生图边。
|
|
60
|
+
- 关键分支、边界、异常写成变体节点(H3、字母后缀),复用主场景语境、只写差异。
|
|
61
|
+
- 正文不得出现本机绝对路径(如 `<用户主目录>/xxx`、`~/xxx`):路径用项目相对形式或占位符
|
|
62
|
+
(如 `<project-root>`)。
|
|
63
|
+
- 语言风格规则见 `compose.md` 第 4 节与 `writing-style.md`(结构化验收场景语体、
|
|
64
|
+
去 AI 味行文规则、密度原则)。
|
|
@@ -52,15 +52,19 @@ artifact-graph query --from <ID>
|
|
|
52
52
|
- 已有制品 status 分布
|
|
53
53
|
- 制品文件命名模式
|
|
54
54
|
|
|
55
|
-
### 4.
|
|
55
|
+
### 4. 关联制品盘点
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
场景剧本是结构化的发现级场景:时序上先于/驱动 PRD 与功能特性,允许先于功能制品
|
|
58
|
+
存在。本步骤盘点图中已有功能特性/决策制品,确定可挂接的关联对象:
|
|
58
59
|
|
|
59
60
|
```bash
|
|
60
61
|
artifact-graph query --from <RELATED_ID>
|
|
61
62
|
```
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
记录每个候选关联 ID 的存在状态;状态取值沿用目标项目的表达。待关联制品暂缺时
|
|
65
|
+
不阻塞:如实记录盘点结果(哪些可挂接、哪些暂缺),供 compose 按项目模板约定省略
|
|
66
|
+
或标注 `关联功能` 行;不编造 ID。同时记录候选功能制品 frontmatter 的 `scenarios`
|
|
67
|
+
字段现状,供 compose 在关联功能存在时建立双向回列。
|
|
64
68
|
|
|
65
69
|
### 5. 实现状态检查
|
|
66
70
|
|
|
@@ -15,8 +15,9 @@ artifact-graph validate --root . --warning-only
|
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
检查:
|
|
18
|
-
-
|
|
19
|
-
|
|
18
|
+
- 无新增孤立制品错误;`ORPHAN_SCENARIO`(场景无功能关联)是 warning、不阻断
|
|
19
|
+
(exit 0),发现级场景尚未挂接功能时该警告属预期,如实记录即可,不强制消灭
|
|
20
|
+
- 无新增关联引用警告(引用了图中不存在的 ID 必须处理)
|
|
20
21
|
- 新制品已正确参与图遍历
|
|
21
22
|
|
|
22
23
|
### 2. 项目规范完整性
|
|
@@ -39,9 +40,20 @@ artifact-graph query --from <ID>
|
|
|
39
40
|
|
|
40
41
|
### 5. 场景质量基本检查
|
|
41
42
|
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
-
|
|
43
|
+
- 每个节点字段块齐全:`关联功能`/`关联决策`(机器锚点、必需)、`场景代码`(推荐);
|
|
44
|
+
项目扩展字段符合项目模板
|
|
45
|
+
- 能定位 Given/When/Then(小节标题形式服从项目模板)
|
|
46
|
+
- Given 是可构造的具体前置状态;When 是编号步骤的具体动作
|
|
47
|
+
- Then 是可观察、可验证的结果(输出、退出码、状态、记录),无口号、无模糊词
|
|
48
|
+
- 关键分支、边界、异常有变体节点覆盖,变体同样声明字段块
|
|
49
|
+
- 语体为结构化验收场景:无宣传收束、无空洞词;按密度原则判断,不误伤正常表达
|
|
50
|
+
(行文规则见 `writing-style.md`)
|
|
51
|
+
- 词汇可懂性:正文通过"外行三问",内部动词未裸用,术语首现有解释,slug 只在字段块
|
|
52
|
+
(检查法见 `writing-style.md` 的"词汇可懂性纪律"节)
|
|
53
|
+
- 正文无本机绝对路径(如 `<用户主目录>/xxx`、`~/xxx`):路径用项目相对形式或占位符
|
|
54
|
+
- 追溯一致:`关联功能` 只引用图中已存在的 ID,无编造关联;关联功能存在时,功能制品
|
|
55
|
+
frontmatter 的 `scenarios` 回列本场景;功能制品暂缺时 `关联功能` 行按项目模板约定
|
|
56
|
+
省略或标注,属可接受的发现级暂态,不判 fail
|
|
45
57
|
|
|
46
58
|
## 输出
|
|
47
59
|
|
|
@@ -63,10 +75,10 @@ validation:
|
|
|
63
75
|
- id: <关联 ID>
|
|
64
76
|
exists: true | false
|
|
65
77
|
quality_dimensions:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
78
|
+
field_block: present | missing
|
|
79
|
+
given_when_then: present | missing
|
|
80
|
+
variant_coverage: present | missing
|
|
81
|
+
# 关联功能暂缺(发现级暂态)记 pending 而非 inconsistent
|
|
82
|
+
traceability: consistent | inconsistent | pending
|
|
83
|
+
style: present | missing
|
|
72
84
|
```
|