agentic-flow-kit 1.7.15 → 1.8.0
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.md +50 -8
- package/modules/hosts/claude/commands/wf-build.md +1 -1
- package/modules/hosts/claude/commands/wf-design.md +5 -4
- package/modules/hosts/claude/commands/wf-maintain.md +1 -1
- package/modules/hosts/claude/commands/wf-new-task.md +47 -25
- package/modules/hosts/claude/commands/wf-plan.md +1 -1
- package/modules/hosts/claude/commands/wf-review.md +2 -2
- package/modules/hosts/claude/commands/wf-sync-hosts.md +7 -13
- package/modules/hosts/claude/commands/wf-test.md +2 -2
- package/modules/hosts/codex/commands/wf-build.md +1 -1
- package/modules/hosts/codex/commands/wf-design.md +5 -4
- package/modules/hosts/codex/commands/wf-maintain.md +1 -1
- package/modules/hosts/codex/commands/wf-new-task.md +47 -25
- package/modules/hosts/codex/commands/wf-plan.md +1 -1
- package/modules/hosts/codex/commands/wf-review.md +2 -2
- package/modules/hosts/codex/commands/wf-sync-hosts.md +7 -13
- package/modules/hosts/codex/commands/wf-test.md +2 -2
- package/modules/hosts/cursor/commands/wf-build.md +1 -1
- package/modules/hosts/cursor/commands/wf-design.md +5 -4
- package/modules/hosts/cursor/commands/wf-maintain.md +1 -1
- package/modules/hosts/cursor/commands/wf-new-task.md +47 -25
- package/modules/hosts/cursor/commands/wf-plan.md +1 -1
- package/modules/hosts/cursor/commands/wf-review.md +2 -2
- package/modules/hosts/cursor/commands/wf-sync-hosts.md +7 -13
- package/modules/hosts/cursor/commands/wf-test.md +2 -2
- package/modules/hosts/opencode/commands/wf-build.md +1 -1
- package/modules/hosts/opencode/commands/wf-design.md +5 -4
- package/modules/hosts/opencode/commands/wf-maintain.md +1 -1
- package/modules/hosts/opencode/commands/wf-new-task.md +47 -25
- package/modules/hosts/opencode/commands/wf-plan.md +1 -1
- package/modules/hosts/opencode/commands/wf-review.md +2 -2
- package/modules/hosts/opencode/commands/wf-sync-hosts.md +7 -13
- package/modules/hosts/opencode/commands/wf-test.md +2 -2
- package/modules/hosts/trae/commands/wf-build.md +1 -1
- package/modules/hosts/trae/commands/wf-design.md +5 -4
- package/modules/hosts/trae/commands/wf-maintain.md +1 -1
- package/modules/hosts/trae/commands/wf-new-task.md +47 -25
- package/modules/hosts/trae/commands/wf-plan.md +1 -1
- package/modules/hosts/trae/commands/wf-review.md +2 -2
- package/modules/hosts/trae/commands/wf-sync-hosts.md +7 -13
- package/modules/hosts/trae/commands/wf-test.md +2 -2
- package/package.json +1 -1
- package/src/cli.mjs +47 -4
- package/src/doctor.mjs +48 -3
- package/src/executor.mjs +262 -0
- package/src/executor.test.mjs +295 -0
- package/src/fresh-init.test.mjs +1 -1
- package/src/init.mjs +27 -3
- package/src/profiles.mjs +10 -3
- package/src/render.mjs +3 -3
- package/src/rule-budget.test.mjs +2 -2
- package/src/stack-profile.test.mjs +6 -0
- package/src/sync-hosts.mjs +37 -43
- package/src/sync-hosts.test.mjs +67 -56
- package/src/validate.mjs +6 -1
- package/src/validate.test.mjs +1 -1
- package/templates/.gitattributes +12 -1
- package/templates/AGENTS.md +3 -3
- package/templates/_agents/commands/build.md +1 -1
- package/templates/_agents/commands/design.md +5 -4
- package/templates/_agents/commands/maintain.md +1 -1
- package/templates/_agents/commands/new-task.md +47 -25
- package/templates/_agents/commands/plan.md +1 -1
- package/templates/_agents/commands/review.md +2 -2
- package/templates/_agents/commands/sync-hosts.md +7 -13
- package/templates/_agents/commands/test.md +2 -2
- package/templates/_agents/control-surfaces.txt +1 -1
- package/templates/_agents/engine-lock.json +334 -0
- package/templates/_agents/hooks/check-index-incremental.mjs +48 -0
- package/templates/_agents/hooks/check-pairing-incremental.mjs +66 -0
- package/templates/_agents/hooks/check-wiki-ledger.mjs +30 -0
- package/templates/_agents/lane-surfaces.txt +5 -2
- package/templates/_agents/level-hints.txt +30 -0
- package/templates/_agents/loop/papercut-debt/DESIGN.md +112 -0
- package/templates/_agents/mechanism-registry.md +27 -0
- package/templates/_agents/rule-budgets.txt +2 -2
- package/templates/_agents/scripts/agg-delegations.cjs +21 -3
- package/templates/_agents/scripts/agg-delegations.test.mjs +5 -3
- package/templates/_agents/scripts/agg-gate-stats.mjs +3 -3
- package/templates/_agents/scripts/agg-judgments.mjs +80 -0
- package/templates/_agents/scripts/agg-judgments.test.mjs +45 -0
- package/templates/_agents/scripts/archive-sweep.mjs +233 -0
- package/templates/_agents/scripts/archive-sweep.test.mjs +129 -0
- package/templates/_agents/scripts/check-attribution.mjs +37 -0
- package/templates/_agents/scripts/check-convergence.mjs +119 -0
- package/templates/_agents/scripts/check-engine-integrity.mjs +59 -127
- package/templates/_agents/scripts/check-engine-integrity.test.mjs +33 -45
- package/templates/_agents/scripts/check-funnel.mjs +56 -0
- package/templates/_agents/scripts/check-hygiene.mjs +5 -5
- package/templates/_agents/scripts/check-index-incremental.test.mjs +73 -0
- package/templates/_agents/scripts/check-lane-surface.mjs +74 -25
- package/templates/_agents/scripts/check-lane-surface.test.mjs +71 -5
- package/templates/_agents/scripts/check-ledger-invariant.mjs +427 -78
- package/templates/_agents/scripts/check-ledger-invariant.test.mjs +438 -4
- package/templates/_agents/scripts/check-loop-rev.test.mjs +13 -8
- package/templates/_agents/scripts/check-loop-unit.test.mjs +8 -0
- package/templates/_agents/scripts/check-loop.mjs +264 -75
- package/templates/_agents/scripts/check-loop.test.mjs +587 -61
- package/templates/_agents/scripts/check-metric-claims.mjs +4 -2
- package/templates/_agents/scripts/check-prejudgment.mjs +59 -0
- package/templates/_agents/scripts/check-registry.mjs +45 -0
- package/templates/_agents/scripts/check-scope.mjs +96 -0
- package/templates/_agents/scripts/check-scope.test.mjs +96 -0
- package/templates/_agents/scripts/check-scripts-syntax.mjs +61 -0
- package/templates/_agents/scripts/check-scripts-syntax.test.mjs +72 -0
- package/templates/_agents/scripts/check-spec-verif.mjs +47 -0
- package/templates/_agents/scripts/compact-ledgers.mjs +97 -0
- package/templates/_agents/scripts/compact-ledgers.test.mjs +162 -0
- package/templates/_agents/scripts/confirm-doc.mjs +136 -31
- package/templates/_agents/scripts/confirm-doc.test.mjs +180 -4
- package/templates/_agents/scripts/doctor.test.mjs +44 -1
- package/templates/_agents/scripts/edit-face-check.mjs +5 -3
- package/templates/_agents/scripts/edit-face-check.test.mjs +5 -4
- package/templates/_agents/scripts/fill-intent.mjs +7 -5
- package/templates/_agents/scripts/fill-intent.test.mjs +19 -1
- package/templates/_agents/scripts/fill-plan.mjs +10 -6
- package/templates/_agents/scripts/fill-plan.test.mjs +19 -3
- package/templates/_agents/scripts/fill-spec.mjs +6 -3
- package/templates/_agents/scripts/fill-spec.test.mjs +12 -4
- package/templates/_agents/scripts/fixture-scripts.mjs +153 -0
- package/templates/_agents/scripts/fixture-scripts.test.mjs +112 -0
- package/templates/_agents/scripts/gate-checklist.mjs +10 -9
- package/templates/_agents/scripts/gate-checklist.test.mjs +2 -11
- package/templates/_agents/scripts/gate-seg.mjs +1 -1
- package/templates/_agents/scripts/gen-effective-policy.mjs +107 -0
- package/templates/_agents/scripts/gen-effective-policy.test.mjs +100 -0
- package/templates/_agents/scripts/gen-verify-evidence.mjs +107 -0
- package/templates/_agents/scripts/gen-verify-evidence.test.mjs +84 -0
- package/templates/_agents/scripts/gen-workflow-dashboard.mjs +16 -14
- package/templates/_agents/scripts/gen-workflow-dashboard.test.mjs +2 -1
- package/templates/_agents/scripts/gen-workflow-metrics.mjs +12 -36
- package/templates/_agents/scripts/git-core.mjs +45 -0
- package/templates/_agents/scripts/git-merge-jsonl.mjs +63 -0
- package/templates/_agents/scripts/git-merge-jsonl.test.mjs +125 -0
- package/templates/_agents/scripts/judgment-ledger.mjs +65 -0
- package/templates/_agents/scripts/judgment-ledger.test.mjs +129 -0
- package/templates/_agents/scripts/kb-search.mjs +19 -4
- package/templates/_agents/scripts/kb-search.test.mjs +33 -0
- package/templates/_agents/scripts/lane-surface-audit.mjs +143 -0
- package/templates/_agents/scripts/lane-surface-audit.test.mjs +93 -0
- package/templates/_agents/scripts/ledger-doc-chain.test.mjs +166 -0
- package/templates/_agents/scripts/ledger-loader.mjs +108 -0
- package/templates/_agents/scripts/ledger-loader.test.mjs +131 -0
- package/templates/_agents/scripts/ledger-prune.mjs +96 -0
- package/templates/_agents/scripts/ledger-prune.test.mjs +120 -0
- package/templates/_agents/scripts/ledger-shards.mjs +307 -0
- package/templates/_agents/scripts/ledger-shards.test.mjs +339 -0
- package/templates/_agents/scripts/ledger-ts-monotonic.test.mjs +135 -0
- package/templates/_agents/scripts/level-criteria.mjs +231 -0
- package/templates/_agents/scripts/level-criteria.test.mjs +281 -0
- package/templates/_agents/scripts/papercut-debt-controller.mjs +141 -0
- package/templates/_agents/scripts/papercut-debt-controller.test.mjs +127 -0
- package/templates/_agents/scripts/papercut-debt-sensor.mjs +170 -0
- package/templates/_agents/scripts/papercut-debt-sensor.test.mjs +146 -0
- package/templates/_agents/scripts/pipeline-run.mjs +10 -24
- package/templates/_agents/scripts/pipeline-run.test.mjs +22 -42
- package/templates/_agents/scripts/policy.mjs +75 -0
- package/templates/_agents/scripts/resolve-merge-conflicts.mjs +110 -0
- package/templates/_agents/scripts/resolve-merge-conflicts.test.mjs +87 -0
- package/templates/_agents/scripts/rewrite-file.mjs +133 -0
- package/templates/_agents/scripts/rewrite-file.test.mjs +148 -0
- package/templates/_agents/scripts/rule-budget.mjs +83 -0
- package/templates/_agents/scripts/run-tests.mjs +99 -0
- package/templates/_agents/scripts/run-tests.test.mjs +105 -0
- package/templates/_agents/scripts/solidify-task.test.mjs +1 -1
- package/templates/_agents/scripts/stage-gates.mjs +38 -21
- package/templates/_agents/scripts/trust-mode.mjs +4 -4
- package/templates/_agents/scripts/trust-mode.test.mjs +1 -1
- package/templates/_agents/scripts/verify.mjs +135 -58
- package/templates/_agents/scripts/verify.test.mjs +156 -47
- package/templates/_agents/scripts/wf-journal.mjs +8 -4
- package/templates/_agents/scripts/wf-journal.test.mjs +1 -1
- package/templates/_agents/scripts/wiki-search.test.mjs +5 -6
- package/templates/_agents/scripts/workflow-board-server.test.mjs +2 -2
- package/templates/_agents/scripts/workflow-enums.test.mjs +14 -5
- package/templates/_agents/scripts/workflows-check.mjs +1 -1
- package/templates/_agents/scripts-test-exempt.txt +1 -0
- package/templates/_agents/skills/papercut-fix/SKILL.md +60 -0
- package/templates/_agents/skills/papercut-fix/references/response-template.md +81 -0
- package/templates/_agents/workflow-enums.txt +8 -1
- package/templates/_agents/workflows/pipeline-closing.md +4 -5
- package/templates/_githooks/pre-commit +109 -120
- package/templates/_githooks/pre-merge-commit +27 -23
- package/templates/_githooks/pre-push +7 -6
- package/templates/_github/workflows/kit-ci.yml +4 -3
- package/templates/workflow/README.md +23 -5
- package/templates/workflow/incidents/_TEMPLATE.md +4 -1
- package/templates/workflow/intents/_TEMPLATE.md +4 -2
- package/templates/workflow/papercuts.md +2 -0
- package/templates/workflow/plans/_TEMPLATE.md +10 -5
- package/templates/workflow/regression-checklist.md +1 -0
- package/templates/workflow/specs/_TEMPLATE.md +17 -1
- package/modules/hosts/claude/commands/wf-source-sync-check.md +0 -89
- package/modules/hosts/codex/commands/wf-source-sync-check.md +0 -89
- package/modules/hosts/cursor/commands/wf-source-sync-check.md +0 -89
- package/modules/hosts/opencode/commands/wf-source-sync-check.md +0 -89
- package/modules/hosts/trae/commands/wf-source-sync-check.md +0 -90
- package/templates/_agents/commands/source-sync-check.md +0 -103
- package/templates/_agents/hooks/check-pairing-incremental.sh +0 -43
- package/templates/_agents/hooks/check-wiki-ledger.sh +0 -18
- package/templates/_agents/scripts/check-ledger.mjs +0 -109
- package/templates/_agents/scripts/check-ledger.test.mjs +0 -199
- package/templates/_agents/scripts/rule-budget.sh +0 -74
- package/templates/_agents/scripts/source-sync-check.mjs +0 -156
- package/templates/_agents/scripts/source-sync-check.test.mjs +0 -286
- package/templates/_agents/workflows/source-sync-repair.md +0 -30
|
@@ -6,27 +6,22 @@ description: 跨宿主适配层同步(正文段 sha 比对 + 用户拍板 +
|
|
|
6
6
|
|
|
7
7
|
# Sync-Hosts · 跨宿主适配层正文段同步
|
|
8
8
|
|
|
9
|
-
>
|
|
10
|
-
>
|
|
11
|
-
> `flow-kit sync-hosts --apply`——2026-10-07 起按**目标根**自动判布局(含 `templates/_agents` + `modules/hosts` → 包源:
|
|
12
|
-
> 比 `templates/_agents` ↔ `modules/hosts/<宿主键>/`;含 `.agents` → 装户:比 `.agents` ↔ 项目根下 `<宿主点目录>/`),
|
|
13
|
-
> 目标根取 `--dir <目录>` > 当前目录。
|
|
9
|
+
> 本命令只在包源仓运行(需要 `templates/_agents` 与 `modules/hosts`)。改权威源(`templates/_agents/{commands,roles}/*.md`)后薄适配(`modules/hosts/<h>/{agents,commands}/*.md`)要同步——薄适配正文 = 权威源正文,frontmatter 各自保留宿主特化(commands 层文件名 = 宿主命令名,opencode / trae 同用 `wf-` 前缀,单源见 `src/profiles.mjs#HOSTS.commandPrefix`;trae 另有 `name: wf-X`,zcode/omp 各自原描述)。
|
|
10
|
+
> 装户的宿主文件由 `init` / `add-host` 写入。装户漂移由 `flow-kit doctor` §6.7 报告(包源环境跳过);刷新用 `flow-kit add-host <宿主> --force`。`flow-kit sync` 不更新宿主适配。
|
|
14
11
|
|
|
15
12
|
## 1. 何时跑
|
|
16
13
|
|
|
17
14
|
- 改 `templates/_agents/commands/*.md` 正文后(11 个 commands 文件)
|
|
18
15
|
- 改 `templates/_agents/roles/*.md` 正文后(3 个 roles 文件)
|
|
19
|
-
-
|
|
20
|
-
- 不跑:仅改 frontmatter;改 trae 钩子/规则;改包源其他文件
|
|
16
|
+
- 不跑:装户仓(本命令会拒绝);仅改 frontmatter;改 trae 钩子/规则;改包源其他文件
|
|
21
17
|
|
|
22
18
|
## 2. 怎么跑
|
|
23
19
|
|
|
24
20
|
### 2.1 默认 `--diff`(仅报告)
|
|
25
21
|
|
|
26
22
|
```
|
|
27
|
-
node bin/flow-kit.mjs sync-hosts --diff #
|
|
23
|
+
node bin/flow-kit.mjs sync-hosts --diff # 包源仓(在包源根跑,或 --dir <包源根>)
|
|
28
24
|
node bin/flow-kit.mjs sync-hosts --json # 机器可读
|
|
29
|
-
flow-kit sync-hosts --diff # 装户仓(在装户根跑;或用 --dir <项目根> 指定)
|
|
30
25
|
```
|
|
31
26
|
|
|
32
27
|
输出三类:
|
|
@@ -46,9 +41,8 @@ node bin/flow-kit.mjs sync-hosts --apply
|
|
|
46
41
|
### 2.3 自验
|
|
47
42
|
|
|
48
43
|
```
|
|
49
|
-
npm test # 含 sync-hosts.test.mjs
|
|
50
|
-
node bin/flow-kit.mjs doctor #
|
|
51
|
-
sh .agents/scripts/check-loop.sh # Windows 无 sh 时 doctor 已探测分流
|
|
44
|
+
npm test # 含 sync-hosts.test.mjs
|
|
45
|
+
node bin/flow-kit.mjs doctor # 包源环境 §6.7 skipped
|
|
52
46
|
```
|
|
53
47
|
|
|
54
48
|
## 3. 边界(不要做)
|
|
@@ -63,7 +57,7 @@ sh .agents/scripts/check-loop.sh # Windows 无 sh 时 doctor 已
|
|
|
63
57
|
|
|
64
58
|
- trae 钩子(`modules/hosts/trae/hooks/*.cjs`)— 独立演进的工程件
|
|
65
59
|
- trae 规则(`modules/hosts/trae/rules/*.md`)— 同上
|
|
66
|
-
-
|
|
60
|
+
- 门禁脚本与钩子(`templates/_agents/scripts`、`templates/_githooks`)— 由 `flow-kit sync` 按 managed 台账下发,不走 sync-hosts
|
|
67
61
|
|
|
68
62
|
## 5. 相关留痕
|
|
69
63
|
|
|
@@ -16,7 +16,7 @@ description: Test 阶段:静态门(架构红线 + build + test)+ UI 实测(headl
|
|
|
16
16
|
项目测试命令 # 自动化测试
|
|
17
17
|
项目类型检查命令 # 前端类型检查/构建(涉及前端时跑)
|
|
18
18
|
node .agents/scripts/verify-wiki-consistency.mjs # 触及 wiki/ 时跑(exit 1 即先修台账再继续:跑 gen-wiki-board.mjs 补索引/看板;pre-commit 已按增量自动拦,此行用于改完即验)
|
|
19
|
-
npx agentic-flow-kit doctor # §6.5 delegations + §6.6 owned 漂移 + §6.7
|
|
19
|
+
npx agentic-flow-kit doctor # §6.5 delegations + §6.6 owned 漂移 + §6.7 跨宿主薄适配正文漂移(装户环境;漂移用 add-host <宿主> --force 刷新。包源环境 §6.7 skipped)
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
> **环境注记**:本地服务占用构建产物导致编译失败、多会话并行时「谁跑静态门 / 提交谁先停服务」等约定——如有,见项目注记 `.agents/notes/runtime-env.md` §2,跑静态门前先过一眼。
|
|
@@ -55,7 +55,7 @@ npx agentic-flow-kit doctor # §6.5 delegations + §6.6 o
|
|
|
55
55
|
|
|
56
56
|
- 输出测试报告(通过项 / 失败项);失败项已修复并复测通过。
|
|
57
57
|
- **关单**(日常闭环点,不依赖是否上 prod):
|
|
58
|
-
- 关单前一键过门:`node .agents/scripts/verify.mjs --doc workflow/intents/<本单>.md
|
|
58
|
+
- 关单前一键过门:`node .agents/scripts/verify.mjs --doc workflow/intents/<本单>.md`(七门编排:语法/测试/编排检查/预算/生效规则视图/闭环/台账不变量,fail-fast 失败行留痕,非绿不关单);**`--doc` 把绿凭证绑到本单**——不带它落下的绿行不给任何单背书,confirm-doc 前置与检查 8 只认带本单 `--doc` 的绿行(仅 v6+ 生效);**全绿尾部自动落凭证并重生成 `workflow/verify-evidence.md`**(`effective-policy.md` 同为生成物——两者勿手改,policy/台账变更后重生成随同提交);**装户仓**(当前目录无 `package.json`)测试门显式跳过且**不落测试绿凭证**(防假绿),按项目口径手工跑或带 `--test-cmd "<项目测试命令>"` 指定
|
|
59
59
|
- 新需求:逐条勾验入口 intent「验收标准」,每条补「证据:」(例如:粘贴 CI 运行结果、UI 截图路径、或具体的 commit SHA),intent → done;同名 spec/Quick-Plan(若有)仍 approved → done。**注意:勾选但缺证据会被 check-loop 拦截(hard-block)**
|
|
60
60
|
- **approved 留痕提交**:done 确认前确认**本次关单文档**的 approved 态已进 git 历史(越早越好——approved 后即应提交;若尚未,先补提交再 done;门为逐份校验,三件套均关单时逐份各自满足)——confirm-doc 的 done 前置门硬校验(历史未出现「状态: approved」→ 拒绝落账);done 后再提交 done 态与其余改动
|
|
61
61
|
- **确认落态**:唯一入口 `node .agents/scripts/confirm-doc.mjs <path>`(两形态 / 逐件代录(摘要可复用——分辨力由 scope+指纹承担)/ done 内容绑定(关单编辑先于 done 确认、confirm-doc 是最后一次写入)/ 台账对质全口径见根 `AGENTS.md` §1.3 确认门)。
|
|
@@ -40,7 +40,7 @@ description: Build 阶段:起 plan + 实现代码 + 自验(确认后才动代码
|
|
|
40
40
|
### 1.3 实现
|
|
41
41
|
|
|
42
42
|
7. 确认后按 plan 顺序推进;每个任务对照判据自验。若任务满足 `.agents/roles/implementer.md` 的边界,主智能体可将单个工作包连同必读材料、授权文件和验收条件委派给 `implementer`;否则由主智能体执行。
|
|
43
|
-
8. 自验:按改动域跑 `项目构建命令` / `项目类型检查命令` / `项目测试命令`(对应编译 / 前端类型检查 / 自动化测试;静态门全集见 `test.md` §1)
|
|
43
|
+
8. 自验:按改动域跑 `项目构建命令` / `项目类型检查命令` / `项目测试命令`(对应编译 / 前端类型检查 / 自动化测试;静态门全集见 `test.md` §1);范围对账 `node .agents/scripts/check-scope.mjs workflow/plans/YYYY-MM-DD-<主题>.md`——越界件(改了未声明)即收口(回填 plan 或回滚),plan 不可读 exit 2;默认 advisory exit 0,`--strict` 供门禁化调用。
|
|
44
44
|
9. **项目架构红线**:数据访问模式、公共字段写入等以根与目录级 `AGENTS.md`(如有)红线为准,不自创旁路。
|
|
45
45
|
10. **L3 且含 schema 变更时**:schema 变更走项目约定的维护方式(人工 SQL / 迁移工具,以目录级 `AGENTS.md` 或 spec 约束为准),不得擅自引入项目未采用的迁移机制(仅运行时 / 管线类 L3 无此约束)。
|
|
46
46
|
11. 实现中若需偏离已确认的 plan(改公共接口 / 动 plan 未列文件 / 引新依赖 / 影响任务判据)→ 停下,向用户说明原因与影响,确认后再继续。
|
|
@@ -15,10 +15,11 @@ description: Design 阶段:起 spec(L2/L3 强制,L1 可省略)
|
|
|
15
15
|
## 1. 执行
|
|
16
16
|
|
|
17
17
|
1. 确认同名入口文档已批准:新需求为 approved intent,修复为已确认的 incident 草稿;否则拒绝,分别回 `plan.md` / `maintain.md`(2026-09-30 起机器强制:fill-spec / confirm-doc 对前置未过直接拒绝 exit 2、不落盘不记账)。
|
|
18
|
-
2. 级别判断(对照 AGENTS.md 第 3
|
|
19
|
-
- **L1
|
|
20
|
-
- **L2
|
|
21
|
-
- **L3
|
|
18
|
+
2. 级别判断(对照 AGENTS.md 第 3 条;判据单源 = `.agents/scripts/level-criteria.mjs`,**本文件只承载流程映射,不复述判据闭集**):
|
|
19
|
+
- **L1**(未命中 L2/L3)→ 快车道:省略 spec,直接跳 `next: build.md` 起草 Quick-Plan
|
|
20
|
+
- **L2**(触达面闭集见单源 `L2_SURFACES`)→ 必须有 spec
|
|
21
|
+
- **L3**(结构面闭集见单源 `L3_SURFACES`)→ 必须有 spec + **新会话独立复核**
|
|
22
|
+
- 判哪一档:逐条对照单源的 `L2_SURFACES` / `L3_SURFACES` / `L1_NEGATIVES`,不要凭记忆——判据只读单源一处
|
|
22
23
|
3. 起草 spec:
|
|
23
24
|
- **填空工具先跑**:`node .agents/scripts/fill-spec.mjs --level <L1|L2|L3> --topic <主题> --output workflow/specs/<date>-<主题>.md`——输出含 frontmatter 5 字段 + 5 节正文(功能行为/数据流/系统改动/约束遵守映射/风险评估)的草稿;AI 据此填实
|
|
24
25
|
- 复制 `workflow/specs/_TEMPLATE.md` → `workflow/specs/YYYY-MM-DD-<主题>.md`(与入口文档同名)
|
|
@@ -45,7 +45,7 @@ description: Maintain 阶段:立 incident + 复盘三件套(修复 / 防复发 /
|
|
|
45
45
|
**3. 规范条目**(必须有可追溯落点)
|
|
46
46
|
- 落点优先级(取最前者可行即止):`workflow/regression-checklist.md` 回归条目 / `.agents/hooks/` 或 `tests/` 断言(机器门)→ `.agents/skills/`、`.agents/notes/` → `workflow/` 文档 → `.agents/commands/`
|
|
47
47
|
- **根 `AGENTS.md` 不再是落点**;**入册门槛**:已由机器门强制的内容只留一行指针,禁止在常驻面复述;**一进一出**:落点为常驻面时须在本 commit 内删除或下沉一条被取代条目
|
|
48
|
-
- 常驻面体积预算由 pre-commit 硬拦(`
|
|
48
|
+
- 常驻面体积预算由 pre-commit 硬拦(`node .agents/scripts/rule-budget.mjs --staged`,表 `.agents/rule-budgets.txt`)——超限先删再增
|
|
49
49
|
- 引用:commit <SHA> / 文件:<路径>#L<行>;若无新增条目,理由:<已有条目覆盖,说明条目位置>
|
|
50
50
|
|
|
51
51
|
### 1.4 起草后停下
|
|
@@ -20,23 +20,43 @@ description: AI-Native 闭环总入口:6 阶段指令索引(Plan→Design→Buil
|
|
|
20
20
|
|
|
21
21
|
## 2. 风险定级(第 0 步,先定级再路由)
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
**第 0 步先取机器面下界(必跑,不是可选提示)**:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
flow-kit route --files <预计改动面…> --kind require|fix|verify|review|deploy
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
- **不给 `--files` 就拿不到路径下限**——机器面此时只能按 L1 起步并在降级栏点名,等于白跑;
|
|
30
|
+
故定级前先把**预计改动面**列出来(不必精确到最终 diff,给到目录/文件前缀即可)。
|
|
31
|
+
- 跑完**再**按 §4 逐条语义判级:机器只给「就高不就低 + 路径下限」,「一处定义、多处消费」仍要你判。
|
|
32
|
+
- **确实跳过**时必须写明理由(入口文档备注或当场告知用户)——判低的后果由两道门兜:
|
|
33
|
+
起草面 `check-lane-surface` 命中路径下限无合格入口即拦,提交面同门再拦一次。
|
|
34
|
+
**诚实边界**:机器**无法**发现你没跑 route——定级发生在改动面确定之前,没有可比对的记录面,
|
|
35
|
+
详见 [ARCHITECTURE §5](../ARCHITECTURE.md) 与 CHANGELOG 1.7.16 B3 条。
|
|
36
|
+
|
|
37
|
+
动工前按下表定风险级 L1-L3(就高不就低;判据细则见下节「级别判断」,单源 level-criteria.mjs),级别即风险级,决定走哪条泳道——确认放事前,还是审计补事后:
|
|
24
38
|
|
|
25
39
|
| 泳道 | 级别 | 确认与审计口径 |
|
|
26
40
|
|------|------|---------------|
|
|
27
|
-
| **协作道**(敏捷优先,审计异步补) |
|
|
41
|
+
| **协作道**(敏捷优先,审计异步补) | L1 实现级 | 一份 plan 即入口(来源 / 目标 / 红线 / 改动 / 验证 / 验收),不另立 intent。独立复核不设同步前置,check-loop 与事后 review 兜底;确认/代录可 `--batch` 批量(仅 L1) |
|
|
28
42
|
| **防御道**(严谨优先,确认同步拦) | L2 规则/契约 / L3 数据与运行时结构 | 同步确认门:spec 确认通过方可起草 plan,plan 确认后方可动手;L3 加新会话独立复核,未确认不放行 |
|
|
29
43
|
|
|
30
|
-
>
|
|
44
|
+
> **两问定级**(2026-10-13 L0 退役,自源仓收敛系列 1 回灌):结构面(schema / 迁移 SQL / DI / 认证管线)→ L3;契约或共享口径 → L2;两者都没有 → L1。不要按严重程度从 L1 往上滑。
|
|
45
|
+
> **落位**: L1 写在 plan frontmatter `级别`;L2/L3 写在 intent(intent 另以 `risk_level`=级别双写,`fill-intent.mjs` 自动写入,机器选道用)。
|
|
46
|
+
> **判低拦截**: 入口勾触达红线 → check-loop「红线判低」hard 拦 → 升到 L2/L3 并补同名 spec。
|
|
31
47
|
>
|
|
32
|
-
>
|
|
48
|
+
> **L2/L3 起草期合并预览**:三件套起草按 [design.md §0](design.md) 一次呈现要点总览(逐件确认代录不变)。
|
|
33
49
|
|
|
34
50
|
## 3. 路由判断
|
|
35
51
|
|
|
52
|
+
<!-- route-kinds: require=plan.md | fix=maintain.md | verify=test.md | review=review.md | deploy=deploy.md -->
|
|
53
|
+
<!-- ↑ 本行是 kind→入口指令的**机器单源**:`flow-kit route` 读它得出「该读哪个 md」,不再在包内自带一份映射。
|
|
54
|
+
增删 kind 或改入口文件名只改这一行(判据单源 level-criteria.mjs 的纪律同源)。 -->
|
|
55
|
+
|
|
36
56
|
- **自动化驱动(并列入口,可选)**:一句话全程走 [pipeline-run.md](pipeline-run.md)——状态机驱动+工单协议+原话代录,与下述手动路由二选一,同一任务不混用
|
|
37
57
|
- **新需求 / 功能**:从 `plan.md` 进,立 **intent**(`workflow/intents/`)
|
|
38
58
|
- **修复类任务 / 事故**:从 `maintain.md` 进,立 **incident**(`workflow/incidents/`);incident 在 L1+ 即 **intent 等价物**(check-loop 认 incident≡intent),不必另立 intent。先检索同类历史(`node .agents/scripts/kb-search.mjs "<关键词>" --scope workflow --type incidents,plans`),有同类先读其历史三件套;再按级别走:
|
|
39
|
-
-
|
|
59
|
+
- L1 → 立 incident 后进 `build.md` 起草并确认同名 Quick-Plan → `test.md`
|
|
40
60
|
- L2/L3 → 立 incident 后进 `design.md` 起草并确认同名 spec,再进 `build.md` 起草并确认同名 plan → `test.md`
|
|
41
61
|
- 仅当根因属系统性 / 门禁缺位(maintain.md 三件套「是否需要新 intent」选"是")才另立 `workflow/intents/` 同名 intent
|
|
42
62
|
- **改完代码要验证**:直接进 `test.md`(验证通过即关单;L1 到此结束)
|
|
@@ -45,32 +65,34 @@ description: AI-Native 闭环总入口:6 阶段指令索引(Plan→Design→Buil
|
|
|
45
65
|
|
|
46
66
|
## 4. 级别判断(AGENTS.md 第 3 条)
|
|
47
67
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
>
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
> **判据单源 = [`.agents/scripts/level-criteria.mjs`](../scripts/level-criteria.mjs)**,本节**不复述判据**。
|
|
69
|
+
> 要看判据全文,或要机器可判的部分(路径下限 / 就高不就低 / 混档取高),直接:
|
|
70
|
+
>
|
|
71
|
+
> ```bash
|
|
72
|
+
> flow-kit route --files <改动文件…> # 定级 + 下一阶段 + 该读哪个 md
|
|
73
|
+
> ```
|
|
74
|
+
>
|
|
75
|
+
> 单源导出:`LEVELS` `LEVEL_MEANING`(档位语义) / `L2_SURFACES`(四类触达面闭集) / `L3_SURFACES`(结构面) /
|
|
76
|
+
> `L1_NEGATIVES`(判低红线) / `SELF_CHECK`(自查句) / `assessLevel` `hintLevelFor` `parseLevelHints` `routeAdvice`。
|
|
77
|
+
>
|
|
78
|
+
> 路径下限清单(装户 owned,默认空):`.agents/level-hints.txt`,每行 `L2 <ERE>` / `L3 <ERE>`,登记「哪些路径一碰就至少是此档」。
|
|
58
79
|
|
|
59
|
-
|
|
60
|
-
2. **共享契约**:跨模块共享的基类 / DTO 形状、跨模块公共接口签名
|
|
61
|
-
3. **既有接口语义**:既有参数或端点的行为变化(由失效变生效、默认值或钳制口径改变)
|
|
62
|
-
4. **全局横切口径**:错误响应出口、分页与校验口径、聚合投影键
|
|
80
|
+
**本表只承载流程**(「改什么」判据以单源为准,别在本表增删判据):
|
|
63
81
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
82
|
+
| 级别 | 单源语义(摘要) | 流程 |
|
|
83
|
+
|------|-----------------|------|
|
|
84
|
+
| L1 | 实现级改动(未命中 L2/L3) | 快车道:液态草稿(.zcode/drafts) → 实现 → 固化(`solidify-task.mjs`)——用户确认后带 `--delegated "<原话>"` 执行;无确认来源只迁移不落账;亦可一份 plan 即入口(不另立 intent) |
|
|
85
|
+
| L2 | 规则 / 契约(一处改、多处依赖) | 入口文档(intent / incident) + spec + plan 三件套 |
|
|
86
|
+
| L3 | 数据与运行时结构(结构面闭集见单源 `L3_SURFACES`) | 同 L2 + spec 新会话独立复核 |
|
|
67
87
|
|
|
68
|
-
>
|
|
69
|
-
>
|
|
88
|
+
> 混合改动按最高档定级(就高不就低);**L1 是默认档**——判级只回答「是否命中单源 `L2_SURFACES` 或
|
|
89
|
+
> `L3_SURFACES`」,负例(`L1_NEGATIVES`)命中即不得升档;自查句:`SELF_CHECK`。
|
|
90
|
+
> 机器兜得住的只有「就高不就低」与路径下限;「一处定义、多处消费」是**语义**判定,由你按单源逐条判,
|
|
91
|
+
> 漏判由 lane-surface 触达面门在提交面兜。先例:`workflow/specs/`、`workflow/intents/` 下同类历史(kb 检索主题词)。
|
|
70
92
|
|
|
71
93
|
## 5. intent 豁免(避免小改动也走完整闭环)
|
|
72
94
|
|
|
73
|
-
- **
|
|
95
|
+
- **L1 新需求**:一份 plan 即入口,不另立 intent(不必 spec)
|
|
74
96
|
- **docs 级改动**(AGENTS.md / workflow/ 模板 / .agents/ 脚本与 commands / yaml):豁免 intent,走 Conventional Commits 直接 commit;若同时触及代码,按代码部分级别立 intent
|
|
75
97
|
- **bootstrap 类改动**(引入规则本身):豁免 intent,commit message 显式声明 `bootstrap`
|
|
76
98
|
|
|
@@ -13,7 +13,7 @@ description: Plan 阶段:立 intent(需求来源 / 目标 / 约束 / 触达红
|
|
|
13
13
|
1. 若 `workflow/intents/` 已有目标 intent 且状态为 approved → 按级别跳 next(L1 → `build.md`,L2/L3 → `design.md`)。
|
|
14
14
|
2. 否则起草新 intent:
|
|
15
15
|
- **先检索同类**:`node .agents/scripts/kb-search.mjs "<关键词>" --scope workflow --type intents,specs`——命中同类先读其结论与验收,新 intent 引用(防重复立项 / 重复踩坑)
|
|
16
|
-
- **填空工具先跑**:`node .agents/scripts/fill-intent.mjs --module <模块> --level <
|
|
16
|
+
- **填空工具先跑**:`node .agents/scripts/fill-intent.mjs --module <模块> --level <L1|L2|L3> --topic <主题> --output workflow/intents/<date>-<主题>.md --notes "<备注>"`——输出含 frontmatter 6 字段(含 risk_level)+ 9 节(背景与问题/历史教训防复发/目标/非目标/约束/影响面/触达红线/验收标准 8 节正文 + 确认与复核)的草稿;AI 据此填实,模板与节标题机器保证不出错
|
|
17
17
|
- 复制 `workflow/intents/_TEMPLATE.md` → `workflow/intents/YYYY-MM-DD-<主题>.md`
|
|
18
18
|
- frontmatter 填 `模块:`(词表见 `.agents/workflow-modules.txt`,新建文档必填,check-loop 会警告)
|
|
19
19
|
- 按 8 节填写:背景与问题 / 历史教训防复发 / 目标(可验证) / 非目标 / 约束 / 影响面 / 触达红线 / 验收标准(L1 微改动可省非目标/约束两节,不硬填)
|
|
@@ -32,7 +32,7 @@ description: 代码评审标准(按风险分级:机器兜底 + AI 自查出
|
|
|
32
32
|
- **Create/Update 校验同口径**:Create 已有校验 Update 必须同口径;被引用的标识符字段禁改
|
|
33
33
|
- **查询分页与状态语义**:分页参数范围校验 + 服务层钳制;非法状态与不存在分离(按项目统一错误口径,如 400 / 404)
|
|
34
34
|
- **spec 承诺的断言落地**:spec §测试列出的用例 / 断言须真落到测试或验证脚本;「写进 spec」不等于「跑得起来」,且常驻断言禁写成随时间增长的行数常量
|
|
35
|
-
-
|
|
35
|
+
- **跨宿主薄适配正文漂移**:包源仓改 `templates/_agents/{commands,roles}/*.md` 后跑 `flow-kit sync-hosts --apply`,单向同步 `modules/hosts/<h>/{agents,commands}/*.md`。装户由 `flow-kit doctor` §6.7 检查(包源环境跳过);装户刷新宿主文件用 `flow-kit add-host <宿主> --force`(`sync` 不更新宿主适配,`sync-hosts` 不在装户根运行)
|
|
36
36
|
|
|
37
37
|
## 3. P2 建议(提醒,不拦合入)
|
|
38
38
|
|
|
@@ -45,5 +45,5 @@ description: 代码评审标准(按风险分级:机器兜底 + AI 自查出
|
|
|
45
45
|
|
|
46
46
|
- **机器兜底**(pre-commit / pre-push / test 自动拦,无需人守):门禁清单与判据以 `.githooks/`、`.agents/hooks/`、`check-loop.sh` 头部注释为准;`项目测试命令` 跑自动化用例。
|
|
47
47
|
- **AI 复核**:机器门禁完成后优先委派 `independent-reviewer`,聚焦 P0 hook 未覆盖项 + 全部 P1(P2 视精力)——产出分级问题清单 + 修复建议。复核方法参考 `code-review` 技能(Standards×Spec 双轴);每条 finding 报告前过 `review-verification-protocol` 防误报门(锚定 file:line、给出证据、校准严重级,不确定就降级为提问)。
|
|
48
|
-
- **独立性**:L2 / L3 必须用独立子智能体,宿主不支持时另开新会话,不得由原作者自查冒充;
|
|
48
|
+
- **独立性**:L2 / L3 必须用独立子智能体,宿主不支持时另开新会话,不得由原作者自查冒充;L1 且宿主不支持子智能体时可由主智能体按同一复核契约执行。
|
|
49
49
|
- **用户决策**:问题定性(误报驳回 / P0 成立必修 / P1、P2 处置裁量)+ 合入时机;git 历史即评审记录,追溯靠 commit 与 tag。
|
|
@@ -6,27 +6,22 @@ description: 跨宿主适配层同步(正文段 sha 比对 + 用户拍板 +
|
|
|
6
6
|
|
|
7
7
|
# Sync-Hosts · 跨宿主适配层正文段同步
|
|
8
8
|
|
|
9
|
-
>
|
|
10
|
-
>
|
|
11
|
-
> `flow-kit sync-hosts --apply`——2026-10-07 起按**目标根**自动判布局(含 `templates/_agents` + `modules/hosts` → 包源:
|
|
12
|
-
> 比 `templates/_agents` ↔ `modules/hosts/<宿主键>/`;含 `.agents` → 装户:比 `.agents` ↔ 项目根下 `<宿主点目录>/`),
|
|
13
|
-
> 目标根取 `--dir <目录>` > 当前目录。
|
|
9
|
+
> 本命令只在包源仓运行(需要 `templates/_agents` 与 `modules/hosts`)。改权威源(`templates/_agents/{commands,roles}/*.md`)后薄适配(`modules/hosts/<h>/{agents,commands}/*.md`)要同步——薄适配正文 = 权威源正文,frontmatter 各自保留宿主特化(commands 层文件名 = 宿主命令名,opencode / trae 同用 `wf-` 前缀,单源见 `src/profiles.mjs#HOSTS.commandPrefix`;trae 另有 `name: wf-X`,zcode/omp 各自原描述)。
|
|
10
|
+
> 装户的宿主文件由 `init` / `add-host` 写入。装户漂移由 `flow-kit doctor` §6.7 报告(包源环境跳过);刷新用 `flow-kit add-host <宿主> --force`。`flow-kit sync` 不更新宿主适配。
|
|
14
11
|
|
|
15
12
|
## 1. 何时跑
|
|
16
13
|
|
|
17
14
|
- 改 `templates/_agents/commands/*.md` 正文后(11 个 commands 文件)
|
|
18
15
|
- 改 `templates/_agents/roles/*.md` 正文后(3 个 roles 文件)
|
|
19
|
-
-
|
|
20
|
-
- 不跑:仅改 frontmatter;改 trae 钩子/规则;改包源其他文件
|
|
16
|
+
- 不跑:装户仓(本命令会拒绝);仅改 frontmatter;改 trae 钩子/规则;改包源其他文件
|
|
21
17
|
|
|
22
18
|
## 2. 怎么跑
|
|
23
19
|
|
|
24
20
|
### 2.1 默认 `--diff`(仅报告)
|
|
25
21
|
|
|
26
22
|
```
|
|
27
|
-
node bin/flow-kit.mjs sync-hosts --diff #
|
|
23
|
+
node bin/flow-kit.mjs sync-hosts --diff # 包源仓(在包源根跑,或 --dir <包源根>)
|
|
28
24
|
node bin/flow-kit.mjs sync-hosts --json # 机器可读
|
|
29
|
-
flow-kit sync-hosts --diff # 装户仓(在装户根跑;或用 --dir <项目根> 指定)
|
|
30
25
|
```
|
|
31
26
|
|
|
32
27
|
输出三类:
|
|
@@ -46,9 +41,8 @@ node bin/flow-kit.mjs sync-hosts --apply
|
|
|
46
41
|
### 2.3 自验
|
|
47
42
|
|
|
48
43
|
```
|
|
49
|
-
npm test # 含 sync-hosts.test.mjs
|
|
50
|
-
node bin/flow-kit.mjs doctor #
|
|
51
|
-
sh .agents/scripts/check-loop.sh # Windows 无 sh 时 doctor 已探测分流
|
|
44
|
+
npm test # 含 sync-hosts.test.mjs
|
|
45
|
+
node bin/flow-kit.mjs doctor # 包源环境 §6.7 skipped
|
|
52
46
|
```
|
|
53
47
|
|
|
54
48
|
## 3. 边界(不要做)
|
|
@@ -63,7 +57,7 @@ sh .agents/scripts/check-loop.sh # Windows 无 sh 时 doctor 已
|
|
|
63
57
|
|
|
64
58
|
- trae 钩子(`modules/hosts/trae/hooks/*.cjs`)— 独立演进的工程件
|
|
65
59
|
- trae 规则(`modules/hosts/trae/rules/*.md`)— 同上
|
|
66
|
-
-
|
|
60
|
+
- 门禁脚本与钩子(`templates/_agents/scripts`、`templates/_githooks`)— 由 `flow-kit sync` 按 managed 台账下发,不走 sync-hosts
|
|
67
61
|
|
|
68
62
|
## 5. 相关留痕
|
|
69
63
|
|
|
@@ -16,7 +16,7 @@ description: Test 阶段:静态门(架构红线 + build + test)+ UI 实测(headl
|
|
|
16
16
|
项目测试命令 # 自动化测试
|
|
17
17
|
项目类型检查命令 # 前端类型检查/构建(涉及前端时跑)
|
|
18
18
|
node .agents/scripts/verify-wiki-consistency.mjs # 触及 wiki/ 时跑(exit 1 即先修台账再继续:跑 gen-wiki-board.mjs 补索引/看板;pre-commit 已按增量自动拦,此行用于改完即验)
|
|
19
|
-
npx agentic-flow-kit doctor # §6.5 delegations + §6.6 owned 漂移 + §6.7
|
|
19
|
+
npx agentic-flow-kit doctor # §6.5 delegations + §6.6 owned 漂移 + §6.7 跨宿主薄适配正文漂移(装户环境;漂移用 add-host <宿主> --force 刷新。包源环境 §6.7 skipped)
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
> **环境注记**:本地服务占用构建产物导致编译失败、多会话并行时「谁跑静态门 / 提交谁先停服务」等约定——如有,见项目注记 `.agents/notes/runtime-env.md` §2,跑静态门前先过一眼。
|
|
@@ -55,7 +55,7 @@ npx agentic-flow-kit doctor # §6.5 delegations + §6.6 o
|
|
|
55
55
|
|
|
56
56
|
- 输出测试报告(通过项 / 失败项);失败项已修复并复测通过。
|
|
57
57
|
- **关单**(日常闭环点,不依赖是否上 prod):
|
|
58
|
-
- 关单前一键过门:`node .agents/scripts/verify.mjs --doc workflow/intents/<本单>.md
|
|
58
|
+
- 关单前一键过门:`node .agents/scripts/verify.mjs --doc workflow/intents/<本单>.md`(七门编排:语法/测试/编排检查/预算/生效规则视图/闭环/台账不变量,fail-fast 失败行留痕,非绿不关单);**`--doc` 把绿凭证绑到本单**——不带它落下的绿行不给任何单背书,confirm-doc 前置与检查 8 只认带本单 `--doc` 的绿行(仅 v6+ 生效);**全绿尾部自动落凭证并重生成 `workflow/verify-evidence.md`**(`effective-policy.md` 同为生成物——两者勿手改,policy/台账变更后重生成随同提交);**装户仓**(当前目录无 `package.json`)测试门显式跳过且**不落测试绿凭证**(防假绿),按项目口径手工跑或带 `--test-cmd "<项目测试命令>"` 指定
|
|
59
59
|
- 新需求:逐条勾验入口 intent「验收标准」,每条补「证据:」(例如:粘贴 CI 运行结果、UI 截图路径、或具体的 commit SHA),intent → done;同名 spec/Quick-Plan(若有)仍 approved → done。**注意:勾选但缺证据会被 check-loop 拦截(hard-block)**
|
|
60
60
|
- **approved 留痕提交**:done 确认前确认**本次关单文档**的 approved 态已进 git 历史(越早越好——approved 后即应提交;若尚未,先补提交再 done;门为逐份校验,三件套均关单时逐份各自满足)——confirm-doc 的 done 前置门硬校验(历史未出现「状态: approved」→ 拒绝落账);done 后再提交 done 态与其余改动
|
|
61
61
|
- **确认落态**:唯一入口 `node .agents/scripts/confirm-doc.mjs <path>`(两形态 / 逐件代录(摘要可复用——分辨力由 scope+指纹承担)/ done 内容绑定(关单编辑先于 done 确认、confirm-doc 是最后一次写入)/ 台账对质全口径见根 `AGENTS.md` §1.3 确认门)。
|
|
@@ -40,7 +40,7 @@ description: Build 阶段 · 起 plan + 实现代码 + 自验(两道确认门
|
|
|
40
40
|
### 1.3 实现
|
|
41
41
|
|
|
42
42
|
7. 确认后按 plan 顺序推进;每个任务对照判据自验。若任务满足 `.agents/roles/implementer.md` 的边界,主智能体可将单个工作包连同必读材料、授权文件和验收条件委派给 `implementer`;否则由主智能体执行。
|
|
43
|
-
8. 自验:按改动域跑 `项目构建命令` / `项目类型检查命令` / `项目测试命令`(对应编译 / 前端类型检查 / 自动化测试;静态门全集见 `test.md` §1)
|
|
43
|
+
8. 自验:按改动域跑 `项目构建命令` / `项目类型检查命令` / `项目测试命令`(对应编译 / 前端类型检查 / 自动化测试;静态门全集见 `test.md` §1);范围对账 `node .agents/scripts/check-scope.mjs workflow/plans/YYYY-MM-DD-<主题>.md`——越界件(改了未声明)即收口(回填 plan 或回滚),plan 不可读 exit 2;默认 advisory exit 0,`--strict` 供门禁化调用。
|
|
44
44
|
9. **项目架构红线**:数据访问模式、公共字段写入等以根与目录级 `AGENTS.md`(如有)红线为准,不自创旁路。
|
|
45
45
|
10. **L3 且含 schema 变更时**:schema 变更走项目约定的维护方式(人工 SQL / 迁移工具,以目录级 `AGENTS.md` 或 spec 约束为准),不得擅自引入项目未采用的迁移机制(仅运行时 / 管线类 L3 无此约束)。
|
|
46
46
|
11. 实现中若需偏离已确认的 plan(改公共接口 / 动 plan 未列文件 / 引新依赖 / 影响任务判据)→ 停下,向用户说明原因与影响,确认后再继续。
|
|
@@ -15,10 +15,11 @@ description: Design 阶段 · 起 spec(L2/L3 强制,L1 可省略直接进 bu
|
|
|
15
15
|
## 1. 执行
|
|
16
16
|
|
|
17
17
|
1. 确认同名入口文档已批准:新需求为 approved intent,修复为已确认的 incident 草稿;否则拒绝,分别回 `plan.md` / `maintain.md`(2026-09-30 起机器强制:fill-spec / confirm-doc 对前置未过直接拒绝 exit 2、不落盘不记账)。
|
|
18
|
-
2. 级别判断(对照 AGENTS.md 第 3
|
|
19
|
-
- **L1
|
|
20
|
-
- **L2
|
|
21
|
-
- **L3
|
|
18
|
+
2. 级别判断(对照 AGENTS.md 第 3 条;判据单源 = `.agents/scripts/level-criteria.mjs`,**本文件只承载流程映射,不复述判据闭集**):
|
|
19
|
+
- **L1**(未命中 L2/L3)→ 快车道:省略 spec,直接跳 `next: build.md` 起草 Quick-Plan
|
|
20
|
+
- **L2**(触达面闭集见单源 `L2_SURFACES`)→ 必须有 spec
|
|
21
|
+
- **L3**(结构面闭集见单源 `L3_SURFACES`)→ 必须有 spec + **新会话独立复核**
|
|
22
|
+
- 判哪一档:逐条对照单源的 `L2_SURFACES` / `L3_SURFACES` / `L1_NEGATIVES`,不要凭记忆——判据只读单源一处
|
|
22
23
|
3. 起草 spec:
|
|
23
24
|
- **填空工具先跑**:`node .agents/scripts/fill-spec.mjs --level <L1|L2|L3> --topic <主题> --output workflow/specs/<date>-<主题>.md`——输出含 frontmatter 5 字段 + 5 节正文(功能行为/数据流/系统改动/约束遵守映射/风险评估)的草稿;AI 据此填实
|
|
24
25
|
- 复制 `workflow/specs/_TEMPLATE.md` → `workflow/specs/YYYY-MM-DD-<主题>.md`(与入口文档同名)
|
|
@@ -45,7 +45,7 @@ description: Maintain 阶段 · 立 incident + 复盘三件套(incident 在 L1
|
|
|
45
45
|
**3. 规范条目**(必须有可追溯落点)
|
|
46
46
|
- 落点优先级(取最前者可行即止):`workflow/regression-checklist.md` 回归条目 / `.agents/hooks/` 或 `tests/` 断言(机器门)→ `.agents/skills/`、`.agents/notes/` → `workflow/` 文档 → `.agents/commands/`
|
|
47
47
|
- **根 `AGENTS.md` 不再是落点**;**入册门槛**:已由机器门强制的内容只留一行指针,禁止在常驻面复述;**一进一出**:落点为常驻面时须在本 commit 内删除或下沉一条被取代条目
|
|
48
|
-
- 常驻面体积预算由 pre-commit 硬拦(`
|
|
48
|
+
- 常驻面体积预算由 pre-commit 硬拦(`node .agents/scripts/rule-budget.mjs --staged`,表 `.agents/rule-budgets.txt`)——超限先删再增
|
|
49
49
|
- 引用:commit <SHA> / 文件:<路径>#L<行>;若无新增条目,理由:<已有条目覆盖,说明条目位置>
|
|
50
50
|
|
|
51
51
|
### 1.4 起草后停下
|
|
@@ -20,23 +20,43 @@ description: AI-Native 闭环总入口 · 6 阶段路由(新需求 → plan /
|
|
|
20
20
|
|
|
21
21
|
## 2. 风险定级(第 0 步,先定级再路由)
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
**第 0 步先取机器面下界(必跑,不是可选提示)**:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
flow-kit route --files <预计改动面…> --kind require|fix|verify|review|deploy
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
- **不给 `--files` 就拿不到路径下限**——机器面此时只能按 L1 起步并在降级栏点名,等于白跑;
|
|
30
|
+
故定级前先把**预计改动面**列出来(不必精确到最终 diff,给到目录/文件前缀即可)。
|
|
31
|
+
- 跑完**再**按 §4 逐条语义判级:机器只给「就高不就低 + 路径下限」,「一处定义、多处消费」仍要你判。
|
|
32
|
+
- **确实跳过**时必须写明理由(入口文档备注或当场告知用户)——判低的后果由两道门兜:
|
|
33
|
+
起草面 `check-lane-surface` 命中路径下限无合格入口即拦,提交面同门再拦一次。
|
|
34
|
+
**诚实边界**:机器**无法**发现你没跑 route——定级发生在改动面确定之前,没有可比对的记录面,
|
|
35
|
+
详见 [ARCHITECTURE §5](../ARCHITECTURE.md) 与 CHANGELOG 1.7.16 B3 条。
|
|
36
|
+
|
|
37
|
+
动工前按下表定风险级 L1-L3(就高不就低;判据细则见下节「级别判断」,单源 level-criteria.mjs),级别即风险级,决定走哪条泳道——确认放事前,还是审计补事后:
|
|
24
38
|
|
|
25
39
|
| 泳道 | 级别 | 确认与审计口径 |
|
|
26
40
|
|------|------|---------------|
|
|
27
|
-
| **协作道**(敏捷优先,审计异步补) |
|
|
41
|
+
| **协作道**(敏捷优先,审计异步补) | L1 实现级 | 一份 plan 即入口(来源 / 目标 / 红线 / 改动 / 验证 / 验收),不另立 intent。独立复核不设同步前置,check-loop 与事后 review 兜底;确认/代录可 `--batch` 批量(仅 L1) |
|
|
28
42
|
| **防御道**(严谨优先,确认同步拦) | L2 规则/契约 / L3 数据与运行时结构 | 同步确认门:spec 确认通过方可起草 plan,plan 确认后方可动手;L3 加新会话独立复核,未确认不放行 |
|
|
29
43
|
|
|
30
|
-
>
|
|
44
|
+
> **两问定级**(2026-10-13 L0 退役,自源仓收敛系列 1 回灌):结构面(schema / 迁移 SQL / DI / 认证管线)→ L3;契约或共享口径 → L2;两者都没有 → L1。不要按严重程度从 L1 往上滑。
|
|
45
|
+
> **落位**: L1 写在 plan frontmatter `级别`;L2/L3 写在 intent(intent 另以 `risk_level`=级别双写,`fill-intent.mjs` 自动写入,机器选道用)。
|
|
46
|
+
> **判低拦截**: 入口勾触达红线 → check-loop「红线判低」hard 拦 → 升到 L2/L3 并补同名 spec。
|
|
31
47
|
>
|
|
32
|
-
>
|
|
48
|
+
> **L2/L3 起草期合并预览**:三件套起草按 [design.md §0](design.md) 一次呈现要点总览(逐件确认代录不变)。
|
|
33
49
|
|
|
34
50
|
## 3. 路由判断
|
|
35
51
|
|
|
52
|
+
<!-- route-kinds: require=plan.md | fix=maintain.md | verify=test.md | review=review.md | deploy=deploy.md -->
|
|
53
|
+
<!-- ↑ 本行是 kind→入口指令的**机器单源**:`flow-kit route` 读它得出「该读哪个 md」,不再在包内自带一份映射。
|
|
54
|
+
增删 kind 或改入口文件名只改这一行(判据单源 level-criteria.mjs 的纪律同源)。 -->
|
|
55
|
+
|
|
36
56
|
- **自动化驱动(并列入口,可选)**:一句话全程走 [pipeline-run.md](pipeline-run.md)——状态机驱动+工单协议+原话代录,与下述手动路由二选一,同一任务不混用
|
|
37
57
|
- **新需求 / 功能**:从 `plan.md` 进,立 **intent**(`workflow/intents/`)
|
|
38
58
|
- **修复类任务 / 事故**:从 `maintain.md` 进,立 **incident**(`workflow/incidents/`);incident 在 L1+ 即 **intent 等价物**(check-loop 认 incident≡intent),不必另立 intent。先检索同类历史(`node .agents/scripts/kb-search.mjs "<关键词>" --scope workflow --type incidents,plans`),有同类先读其历史三件套;再按级别走:
|
|
39
|
-
-
|
|
59
|
+
- L1 → 立 incident 后进 `build.md` 起草并确认同名 Quick-Plan → `test.md`
|
|
40
60
|
- L2/L3 → 立 incident 后进 `design.md` 起草并确认同名 spec,再进 `build.md` 起草并确认同名 plan → `test.md`
|
|
41
61
|
- 仅当根因属系统性 / 门禁缺位(maintain.md 三件套「是否需要新 intent」选"是")才另立 `workflow/intents/` 同名 intent
|
|
42
62
|
- **改完代码要验证**:直接进 `test.md`(验证通过即关单;L1 到此结束)
|
|
@@ -45,32 +65,34 @@ description: AI-Native 闭环总入口 · 6 阶段路由(新需求 → plan /
|
|
|
45
65
|
|
|
46
66
|
## 4. 级别判断(AGENTS.md 第 3 条)
|
|
47
67
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
>
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
> **判据单源 = [`.agents/scripts/level-criteria.mjs`](../scripts/level-criteria.mjs)**,本节**不复述判据**。
|
|
69
|
+
> 要看判据全文,或要机器可判的部分(路径下限 / 就高不就低 / 混档取高),直接:
|
|
70
|
+
>
|
|
71
|
+
> ```bash
|
|
72
|
+
> flow-kit route --files <改动文件…> # 定级 + 下一阶段 + 该读哪个 md
|
|
73
|
+
> ```
|
|
74
|
+
>
|
|
75
|
+
> 单源导出:`LEVELS` `LEVEL_MEANING`(档位语义) / `L2_SURFACES`(四类触达面闭集) / `L3_SURFACES`(结构面) /
|
|
76
|
+
> `L1_NEGATIVES`(判低红线) / `SELF_CHECK`(自查句) / `assessLevel` `hintLevelFor` `parseLevelHints` `routeAdvice`。
|
|
77
|
+
>
|
|
78
|
+
> 路径下限清单(装户 owned,默认空):`.agents/level-hints.txt`,每行 `L2 <ERE>` / `L3 <ERE>`,登记「哪些路径一碰就至少是此档」。
|
|
58
79
|
|
|
59
|
-
|
|
60
|
-
2. **共享契约**:跨模块共享的基类 / DTO 形状、跨模块公共接口签名
|
|
61
|
-
3. **既有接口语义**:既有参数或端点的行为变化(由失效变生效、默认值或钳制口径改变)
|
|
62
|
-
4. **全局横切口径**:错误响应出口、分页与校验口径、聚合投影键
|
|
80
|
+
**本表只承载流程**(「改什么」判据以单源为准,别在本表增删判据):
|
|
63
81
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
82
|
+
| 级别 | 单源语义(摘要) | 流程 |
|
|
83
|
+
|------|-----------------|------|
|
|
84
|
+
| L1 | 实现级改动(未命中 L2/L3) | 快车道:液态草稿(.zcode/drafts) → 实现 → 固化(`solidify-task.mjs`)——用户确认后带 `--delegated "<原话>"` 执行;无确认来源只迁移不落账;亦可一份 plan 即入口(不另立 intent) |
|
|
85
|
+
| L2 | 规则 / 契约(一处改、多处依赖) | 入口文档(intent / incident) + spec + plan 三件套 |
|
|
86
|
+
| L3 | 数据与运行时结构(结构面闭集见单源 `L3_SURFACES`) | 同 L2 + spec 新会话独立复核 |
|
|
67
87
|
|
|
68
|
-
>
|
|
69
|
-
>
|
|
88
|
+
> 混合改动按最高档定级(就高不就低);**L1 是默认档**——判级只回答「是否命中单源 `L2_SURFACES` 或
|
|
89
|
+
> `L3_SURFACES`」,负例(`L1_NEGATIVES`)命中即不得升档;自查句:`SELF_CHECK`。
|
|
90
|
+
> 机器兜得住的只有「就高不就低」与路径下限;「一处定义、多处消费」是**语义**判定,由你按单源逐条判,
|
|
91
|
+
> 漏判由 lane-surface 触达面门在提交面兜。先例:`workflow/specs/`、`workflow/intents/` 下同类历史(kb 检索主题词)。
|
|
70
92
|
|
|
71
93
|
## 5. intent 豁免(避免小改动也走完整闭环)
|
|
72
94
|
|
|
73
|
-
- **
|
|
95
|
+
- **L1 新需求**:一份 plan 即入口,不另立 intent(不必 spec)
|
|
74
96
|
- **docs 级改动**(AGENTS.md / workflow/ 模板 / .agents/ 脚本与 commands / yaml):豁免 intent,走 Conventional Commits 直接 commit;若同时触及代码,按代码部分级别立 intent
|
|
75
97
|
- **bootstrap 类改动**(引入规则本身):豁免 intent,commit message 显式声明 `bootstrap`
|
|
76
98
|
|
|
@@ -13,7 +13,7 @@ description: Plan 阶段 · 立 intent(AI 起草、用户确认;本阶段不
|
|
|
13
13
|
1. 若 `workflow/intents/` 已有目标 intent 且状态为 approved → 按级别跳 next(L1 → `build.md`,L2/L3 → `design.md`)。
|
|
14
14
|
2. 否则起草新 intent:
|
|
15
15
|
- **先检索同类**:`node .agents/scripts/kb-search.mjs "<关键词>" --scope workflow --type intents,specs`——命中同类先读其结论与验收,新 intent 引用(防重复立项 / 重复踩坑)
|
|
16
|
-
- **填空工具先跑**:`node .agents/scripts/fill-intent.mjs --module <模块> --level <
|
|
16
|
+
- **填空工具先跑**:`node .agents/scripts/fill-intent.mjs --module <模块> --level <L1|L2|L3> --topic <主题> --output workflow/intents/<date>-<主题>.md --notes "<备注>"`——输出含 frontmatter 6 字段(含 risk_level)+ 9 节(背景与问题/历史教训防复发/目标/非目标/约束/影响面/触达红线/验收标准 8 节正文 + 确认与复核)的草稿;AI 据此填实,模板与节标题机器保证不出错
|
|
17
17
|
- 复制 `workflow/intents/_TEMPLATE.md` → `workflow/intents/YYYY-MM-DD-<主题>.md`
|
|
18
18
|
- frontmatter 填 `模块:`(词表见 `.agents/workflow-modules.txt`,新建文档必填,check-loop 会警告)
|
|
19
19
|
- 按 8 节填写:背景与问题 / 历史教训防复发 / 目标(可验证) / 非目标 / 约束 / 影响面 / 触达红线 / 验收标准(L1 微改动可省非目标/约束两节,不硬填)
|
|
@@ -32,7 +32,7 @@ description: Review · 代码评审(横切,合入前使用;P0/P1/P2 分级
|
|
|
32
32
|
- **Create/Update 校验同口径**:Create 已有校验 Update 必须同口径;被引用的标识符字段禁改
|
|
33
33
|
- **查询分页与状态语义**:分页参数范围校验 + 服务层钳制;非法状态与不存在分离(按项目统一错误口径,如 400 / 404)
|
|
34
34
|
- **spec 承诺的断言落地**:spec §测试列出的用例 / 断言须真落到测试或验证脚本;「写进 spec」不等于「跑得起来」,且常驻断言禁写成随时间增长的行数常量
|
|
35
|
-
-
|
|
35
|
+
- **跨宿主薄适配正文漂移**:包源仓改 `templates/_agents/{commands,roles}/*.md` 后跑 `flow-kit sync-hosts --apply`,单向同步 `modules/hosts/<h>/{agents,commands}/*.md`。装户由 `flow-kit doctor` §6.7 检查(包源环境跳过);装户刷新宿主文件用 `flow-kit add-host <宿主> --force`(`sync` 不更新宿主适配,`sync-hosts` 不在装户根运行)
|
|
36
36
|
|
|
37
37
|
## 3. P2 建议(提醒,不拦合入)
|
|
38
38
|
|
|
@@ -45,5 +45,5 @@ description: Review · 代码评审(横切,合入前使用;P0/P1/P2 分级
|
|
|
45
45
|
|
|
46
46
|
- **机器兜底**(pre-commit / pre-push / test 自动拦,无需人守):门禁清单与判据以 `.githooks/`、`.agents/hooks/`、`check-loop.sh` 头部注释为准;`项目测试命令` 跑自动化用例。
|
|
47
47
|
- **AI 复核**:机器门禁完成后优先委派 `independent-reviewer`,聚焦 P0 hook 未覆盖项 + 全部 P1(P2 视精力)——产出分级问题清单 + 修复建议。复核方法参考 `code-review` 技能(Standards×Spec 双轴);每条 finding 报告前过 `review-verification-protocol` 防误报门(锚定 file:line、给出证据、校准严重级,不确定就降级为提问)。
|
|
48
|
-
- **独立性**:L2 / L3 必须用独立子智能体,宿主不支持时另开新会话,不得由原作者自查冒充;
|
|
48
|
+
- **独立性**:L2 / L3 必须用独立子智能体,宿主不支持时另开新会话,不得由原作者自查冒充;L1 且宿主不支持子智能体时可由主智能体按同一复核契约执行。
|
|
49
49
|
- **用户决策**:问题定性(误报驳回 / P0 成立必修 / P1、P2 处置裁量)+ 合入时机;git 历史即评审记录,追溯靠 commit 与 tag。
|
|
@@ -6,27 +6,22 @@ description: 跨宿主适配层同步(正文段 sha 比对 + 用户拍板 +
|
|
|
6
6
|
|
|
7
7
|
# Sync-Hosts · 跨宿主适配层正文段同步
|
|
8
8
|
|
|
9
|
-
>
|
|
10
|
-
>
|
|
11
|
-
> `flow-kit sync-hosts --apply`——2026-10-07 起按**目标根**自动判布局(含 `templates/_agents` + `modules/hosts` → 包源:
|
|
12
|
-
> 比 `templates/_agents` ↔ `modules/hosts/<宿主键>/`;含 `.agents` → 装户:比 `.agents` ↔ 项目根下 `<宿主点目录>/`),
|
|
13
|
-
> 目标根取 `--dir <目录>` > 当前目录。
|
|
9
|
+
> 本命令只在包源仓运行(需要 `templates/_agents` 与 `modules/hosts`)。改权威源(`templates/_agents/{commands,roles}/*.md`)后薄适配(`modules/hosts/<h>/{agents,commands}/*.md`)要同步——薄适配正文 = 权威源正文,frontmatter 各自保留宿主特化(commands 层文件名 = 宿主命令名,opencode / trae 同用 `wf-` 前缀,单源见 `src/profiles.mjs#HOSTS.commandPrefix`;trae 另有 `name: wf-X`,zcode/omp 各自原描述)。
|
|
10
|
+
> 装户的宿主文件由 `init` / `add-host` 写入。装户漂移由 `flow-kit doctor` §6.7 报告(包源环境跳过);刷新用 `flow-kit add-host <宿主> --force`。`flow-kit sync` 不更新宿主适配。
|
|
14
11
|
|
|
15
12
|
## 1. 何时跑
|
|
16
13
|
|
|
17
14
|
- 改 `templates/_agents/commands/*.md` 正文后(11 个 commands 文件)
|
|
18
15
|
- 改 `templates/_agents/roles/*.md` 正文后(3 个 roles 文件)
|
|
19
|
-
-
|
|
20
|
-
- 不跑:仅改 frontmatter;改 trae 钩子/规则;改包源其他文件
|
|
16
|
+
- 不跑:装户仓(本命令会拒绝);仅改 frontmatter;改 trae 钩子/规则;改包源其他文件
|
|
21
17
|
|
|
22
18
|
## 2. 怎么跑
|
|
23
19
|
|
|
24
20
|
### 2.1 默认 `--diff`(仅报告)
|
|
25
21
|
|
|
26
22
|
```
|
|
27
|
-
node bin/flow-kit.mjs sync-hosts --diff #
|
|
23
|
+
node bin/flow-kit.mjs sync-hosts --diff # 包源仓(在包源根跑,或 --dir <包源根>)
|
|
28
24
|
node bin/flow-kit.mjs sync-hosts --json # 机器可读
|
|
29
|
-
flow-kit sync-hosts --diff # 装户仓(在装户根跑;或用 --dir <项目根> 指定)
|
|
30
25
|
```
|
|
31
26
|
|
|
32
27
|
输出三类:
|
|
@@ -46,9 +41,8 @@ node bin/flow-kit.mjs sync-hosts --apply
|
|
|
46
41
|
### 2.3 自验
|
|
47
42
|
|
|
48
43
|
```
|
|
49
|
-
npm test # 含 sync-hosts.test.mjs
|
|
50
|
-
node bin/flow-kit.mjs doctor #
|
|
51
|
-
sh .agents/scripts/check-loop.sh # Windows 无 sh 时 doctor 已探测分流
|
|
44
|
+
npm test # 含 sync-hosts.test.mjs
|
|
45
|
+
node bin/flow-kit.mjs doctor # 包源环境 §6.7 skipped
|
|
52
46
|
```
|
|
53
47
|
|
|
54
48
|
## 3. 边界(不要做)
|
|
@@ -63,7 +57,7 @@ sh .agents/scripts/check-loop.sh # Windows 无 sh 时 doctor 已
|
|
|
63
57
|
|
|
64
58
|
- trae 钩子(`modules/hosts/trae/hooks/*.cjs`)— 独立演进的工程件
|
|
65
59
|
- trae 规则(`modules/hosts/trae/rules/*.md`)— 同上
|
|
66
|
-
-
|
|
60
|
+
- 门禁脚本与钩子(`templates/_agents/scripts`、`templates/_githooks`)— 由 `flow-kit sync` 按 managed 台账下发,不走 sync-hosts
|
|
67
61
|
|
|
68
62
|
## 5. 相关留痕
|
|
69
63
|
|