doukui 0.6.0 → 0.9.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.
Files changed (92) hide show
  1. package/README.en.md +85 -18
  2. package/README.md +32 -72
  3. package/bin/commands/help.js +2 -25
  4. package/bin/commands/plan-lint.js +105 -0
  5. package/bin/commands/verify.js +263 -0
  6. package/bin/doukui.js +3 -3
  7. package/package.json +2 -3
  8. package/plugins/core/hook-session-start/index.js +1 -1
  9. package/plugins/core/hook-skill-gate/index.js +64 -15
  10. package/plugins/core/hook-skill-gate/plugin.json +1 -1
  11. package/plugins/core/skill-agent-dispatcher/cleanup-reference.md +7 -28
  12. package/plugins/core/skill-agent-dispatcher/monitoring-reference.md +89 -0
  13. package/plugins/core/skill-agent-dispatcher/plugin.json +1 -1
  14. package/plugins/core/skill-agent-dispatcher/recovery-reference.md +132 -0
  15. package/plugins/core/skill-agent-dispatcher/roles-reference.md +9 -22
  16. package/plugins/core/skill-agent-dispatcher/skill.md +124 -796
  17. package/plugins/core/skill-agentic-loop/mirror-rules.md +95 -24
  18. package/plugins/core/skill-agentic-loop/plugin.json +2 -7
  19. package/plugins/core/skill-agentic-loop/skill.md +125 -354
  20. package/plugins/core/skill-batch-task-creator/plugin.json +1 -1
  21. package/plugins/core/skill-checklist/skill.md +15 -141
  22. package/plugins/core/skill-completion-report/plugin.json +1 -1
  23. package/plugins/core/skill-completion-report/skill.md +7 -1
  24. package/plugins/core/skill-doukui-plan/plugin.json +1 -1
  25. package/plugins/core/skill-doukui-plan/skill.md +24 -21
  26. package/plugins/core/skill-experience-logger/plugin.json +1 -1
  27. package/plugins/core/skill-human-checkpoint/skill.md +1 -0
  28. package/plugins/core/skill-split-work-package/plugin.json +1 -1
  29. package/plugins/core/skill-task-creator/plugin.json +1 -1
  30. package/plugins/core/skill-task-creator/skill.md +1 -139
  31. package/plugins/core/skill-workflow-orchestrator/plugin.json +1 -1
  32. package/plugins/plugin-registry.json +0 -48
  33. package/plugins/runtime/harness-build.js +5 -5
  34. package/plugins/runtime/plan-reader.js +54 -21
  35. package/plugins/runtime/resolve-plugin-path.js +2 -2
  36. package/templates/harness-config.yaml +0 -100
  37. package/bin/commands/loop-server.js +0 -357
  38. package/bin/commands/loop.js +0 -1508
  39. package/plugins/contracts/capabilities.js +0 -268
  40. package/plugins/contracts/checkresult-schema.json +0 -75
  41. package/plugins/core/provider-loop-engine/index.js +0 -1411
  42. package/plugins/core/provider-loop-engine/plugin.json +0 -15
  43. package/plugins/core/provider-memory-store/index.js +0 -510
  44. package/plugins/core/provider-memory-store/plugin.json +0 -9
  45. package/plugins/core/provider-state-store/index.js +0 -244
  46. package/plugins/core/provider-state-store/plugin.json +0 -9
  47. package/plugins/core/provider-watchdog/assets/daemon-config.template.json +0 -32
  48. package/plugins/core/provider-watchdog/assets/lib/watchdog-multi-window.js +0 -676
  49. package/plugins/core/provider-watchdog/assets/watchdog.js +0 -754
  50. package/plugins/core/provider-watchdog/index.js +0 -151
  51. package/plugins/core/provider-watchdog/plugin.json +0 -13
  52. package/plugins/core/skill-agent-dispatcher/daemon-helpers-reference.md +0 -249
  53. package/plugins/core/skill-watchdog-manager/plugin.json +0 -10
  54. package/plugins/core/skill-watchdog-manager/skill.md +0 -143
  55. package/plugins/core/validator-doc-sync/index.js +0 -248
  56. package/plugins/core/validator-doc-sync/plugin.json +0 -12
  57. package/plugins/core/validator-work-package/index.js +0 -300
  58. package/plugins/core/validator-work-package/plugin.json +0 -12
  59. package/plugins/runtime/audit-logger.js +0 -311
  60. package/plugins/runtime/build-cli.js +0 -89
  61. package/plugins/runtime/checkresult-validator.js +0 -131
  62. package/plugins/runtime/context-window.js +0 -81
  63. package/plugins/runtime/event-bus.js +0 -207
  64. package/plugins/runtime/executor-claude.js +0 -604
  65. package/plugins/runtime/executor-default.js +0 -448
  66. package/plugins/runtime/executor-local.js +0 -178
  67. package/plugins/runtime/executor-sdk.js +0 -415
  68. package/plugins/runtime/hook-dispatcher.js +0 -315
  69. package/plugins/runtime/loop-actuator.js +0 -292
  70. package/plugins/runtime/loop-coordinator.js +0 -347
  71. package/plugins/runtime/loop-defaults.js +0 -29
  72. package/plugins/runtime/loop-dispatch-batch.js +0 -351
  73. package/plugins/runtime/loop-executor.js +0 -120
  74. package/plugins/runtime/loop-report.js +0 -395
  75. package/plugins/runtime/loop-server-core.js +0 -750
  76. package/plugins/runtime/loop-snapshot.js +0 -581
  77. package/plugins/runtime/loop-trace.js +0 -242
  78. package/plugins/runtime/loop-worktree.js +0 -404
  79. package/plugins/runtime/multi-window-coordinator.js +0 -560
  80. package/plugins/runtime/objective-verifier.js +0 -136
  81. package/plugins/runtime/plan-lint.js +0 -106
  82. package/plugins/runtime/plugin-loader.js +0 -798
  83. package/plugins/runtime/plugin-trust.js +0 -182
  84. package/plugins/runtime/provider-failover.js +0 -114
  85. package/plugins/runtime/provider-resolver.js +0 -342
  86. package/plugins/runtime/reflection-evaluator.js +0 -545
  87. package/plugins/runtime/sandbox-context.js +0 -235
  88. package/plugins/runtime/sandbox-manager.js +0 -609
  89. package/plugins/runtime/sandbox-worker.js +0 -215
  90. package/plugins/runtime/self-rescue-ladder.js +0 -51
  91. package/plugins/runtime/text-tokenize.js +0 -25
  92. package/plugins/runtime/validator-pipeline.js +0 -475
@@ -1,19 +1,27 @@
1
- # 镜像路径规则(engine 行为镜像 · 会话内默认路径)
1
+ # loop 判定规则(唯一真相源 · 会话内执行路径)
2
2
 
3
- > **何时读本文件(v0.4.1 起默认)**:skill Step 2.5 的**默认执行路径**——在当前会话内按本文件
4
- > 规则框自轮询跑 loop。driver 子进程(`doukui loop`)改为显式 opt-in(用户明确要求「起 driver /
5
- > 后台跑」时;其 CLI 探测失败仍输出 provider settings 修复指引,不静默换路径)。翻转依据:driver
6
- > executor 单轮默认 15min 硬超时对大体量 WP 是结构性缺陷,会话内路径无此问题。
3
+ > **何时读本文件**:skill Step 2.5 的**唯一执行路径**——在当前会话内按本文件规则框自轮询跑 loop
4
+ >(Observe→Think→Act→Reflect→Decide,Act 委托 `skill-agent-dispatcher` 多 agent)。
7
5
  >
8
- > **镜像一致性**:本文件规则文本是 `provider-loop-engine/index.js`(判定逻辑)+
9
- > `plugins/runtime/loop-defaults.js`(阈值默认)的行为镜像,由
10
- > `test/runtime/test-agentic-loop-skill-mirror.js` CI 锁定数字一致性。改规则先改 engine/loop-defaults,
11
- > 再同步本文件。
6
+ > **🔴 唯一真相源声明**:本文件是 loop 判定规则(Think/Decide 优先级、proximity 公式、发散判定)
7
+ > 与阈值默认值的**唯一真相源**,阈值数字自持于本文件。skill.md 是行为正文(流程编排 + Act 委托)。
8
+ > 修改判定规则或默认阈值:**直接改本文件**——不存在 JS 判定代码镜像,也没有 CI 镜像锁。
9
+
10
+ ## 阈值默认值(唯一自持)
11
+
12
+ loop 的全部阈值数字只在本表定义,skill.md Step 1 只引用不复制。用户可在触发 skill 时随参数传入、或在 P1 确认时覆盖任一项,覆盖值写入 Step 2 的 loop 记录;未指定取本表默认值。
13
+
14
+ | 阈值 | 默认值 | 含义 |
15
+ |------|--------|------|
16
+ | `max_iterations` | 6 | 轮次上限 |
17
+ | `max_round_time_ms` | 600000 | 单轮最长时间(10 分钟) |
18
+ | `max_wall_time_ms` | 3600000 | 总墙钟上限(1 小时) |
19
+ | `divergence_threshold` | 3 | 连续 N 轮 proximity 无进展即判发散 |
20
+ | `proximity_goal` | 0.9 | 达成判定阈值 |
12
21
 
13
22
  ## 主循环骨架
14
23
 
15
- **Claude 循环执行 Observe→Think→Act→Reflect→Decide 一轮,按 verdict 分流**。判定规则严格复现
16
- `provider-loop-engine` 的 `_think` / `_decide` / evaluator 语义(见下方各步规则框)。
24
+ **Claude 循环执行 Observe→Think→Act→Reflect→Decide 一轮,按 verdict 分流**。判定规则即下方各步规则框(本文件是唯一真相源)。
17
25
 
18
26
  ```
19
27
  safetyMaxRounds = 50 # 外层保险(内部已有 max_iterations/max_wall_time 双重硬上限)
@@ -27,16 +35,16 @@ while rounds < safetyMaxRounds:
27
35
  # ---- Observe(Step 3a)----
28
36
  snapshot = observe() # 读 PROGRESS.md/task.md:pending/completed/failed WP + 上轮 checklist
29
37
 
30
- # ---- Think(Step 3b,复现 engine _think)----
38
+ # ---- Think(Step 3b)----
31
39
  decision = think(snapshot) # dispatch | retry | resplit | noop
32
40
 
33
41
  # ---- Act(Step 4,委托 dispatcher 多 agent)----
34
42
  checklistResult = act(decision) # 🔴 委托 skill-agent-dispatcher 用 implicit session team 多 agent 执行
35
43
 
36
- # ---- Reflect(Step 3c,复现 engine evaluator)----
44
+ # ---- Reflect(Step 3c)----
37
45
  evalResult = reflect(snapshot, checklistResult) # proximity / converged / diverged
38
46
 
39
- # ---- Decide(Step 3d,复现 engine _decide)----
47
+ # ---- Decide(Step 3d)----
40
48
  verdict = decide(evalResult, snapshot) # continue | achieved | timeout | diverged | circuit_broken
41
49
 
42
50
  # 记录本轮到 history(progress-tracker)
@@ -52,16 +60,78 @@ while rounds < safetyMaxRounds:
52
60
  # 按 verdict 分流(见 skill.md Step 5 / Step 6)
53
61
  ```
54
62
 
63
+ ## 接手协议(resume-protocol)
64
+
65
+ > **触发**:会话中断/上下文压缩后,新 Lead 接手一个未关闭的 loop(现实来源:nest 项目 11-09 driver 暴毙后,会话间接手 iteration 接续)。接手不是重启——基线核对通过后从最后记录点续跑。
66
+
67
+ 1. **读基线**:Read `PROGRESS.md` 尾部最近 loop 记录,提取 `loopId` / `goal` / `max_iterations` / 最后记录的 `iteration`(含该轮 verdict 与 proximity)
68
+ 2. **核对漂移**:`git log --oneline -5` + `git status --short`,与最后记录的 commit 对比——最后记录之后无漂移改动 → 直接接手;有漂移 → 列出差异清单,人工确认归属(本 loop 产物 / 外部改动)后再接手
69
+ 3. **接续计数**:`iteration` 从最后记录值 +1 接续,**不回退、不重计**(回退会让发散检测 `divergenceStreak` 与上限判定失真)
70
+ 4. **接手声明**:输出一行 `[loop {loopId}] resumed at iter {N} next={decision}`(`decision` 按 Step 3b 优先级给出下步),然后进 Observe 正常轮询
71
+
72
+ ## 配额中断惯例(quota-interruption)
73
+
74
+ > **触发**:Teamee 报 429/限额类中断(「5h 窗口」「quota」「rate limit」字样)。配额中断是外部供给问题,不是任务发散(现实来源:2026-10-17~11-13 nest 记录月均 15+ 次实撞;现虽基本不撞,惯例留档备重活场景)。
75
+
76
+ 1. **记录**:Lead 在 `PROGRESS.md` 该轮追加结构化中断块:
77
+ ```
78
+ quota-interrupt: {
79
+ wpId: <WP id>,
80
+ 断点: <已完成内容>,
81
+ 落盘未提交清单: <已写入文件但未结算的路径>,
82
+ 额度重置点: <如已知,5h 窗口的重置时刻>
83
+ }
84
+ ```
85
+ 2. **续跑**:额度重置后**优先同 Teamee SendMessage 续跑**(上下文保全,从断点接续);Teamee 已失联则走接手协议(resume-protocol)由新 Teamee 承接
86
+ 3. **降档**:同一窗口内第二次撞限额 → 并发降档提示(如 3→1,拉长剩余额度)
87
+ 4. **不计发散**:配额中断轮 `divergenceStreak` 不增长、proximity 冻结(沿用中断前最后值),上限判定只累计实际执行轮(同人工门口径)
88
+
89
+ ## 人工门协议(human-gate-protocol)
90
+
91
+ > **触发**:WP 执行需真机/人工环境操作(编译/部署/物理验证)且 Teamee 无法完成(现实来源:pocket-x 11-14 真机编译人工门 round1/2)。人工门是受控暂停,不是发散。
92
+
93
+ 1. **结构化暂停块**:Lead 在 `PROGRESS.md` 该轮记录写入:
94
+ ```
95
+ human-gate: {
96
+ wpId: <WP id>,
97
+ 待人工动作: <编译/部署/物理验证的具体操作>,
98
+ 检查点: <回填时核对什么>,
99
+ 结果回填格式: <通过/失败 + 产物路径或日志位置>,
100
+ 恢复路径: <回填后 Lead 从哪一步继续>
101
+ }
102
+ ```
103
+ 2. **置 paused**:loop 状态置 `paused`(不推进新轮),明确告知用户待人工动作与回填格式
104
+ 3. **结果回填分流**:通过 → 正常进 Reflect(按上轮 checklist 口径);失败 → 失败项按 Step 3b `failingDrivers` 链路注入 retry
105
+ 4. **不计发散**:人工门等待期间 `divergenceStreak` 不增长、proximity 冻结(沿用回填前最后值),上限判定只累计实际执行轮
106
+
107
+ ## env-fact 沉淀召回协议(env-fact-protocol)
108
+
109
+ > **动机**:🔴 陷阱只活在 `PROGRESS.md` 的 loop history 里,loop 关闭归档后下个 loop 的 Teamee 看不到(现实来源:nest 各 loop 反复踩同款陷阱)。沉淀到 memories 才能跨 loop 复用。
110
+
111
+ **沉淀**(loop 关闭时,achieved / diverged / timeout 均执行):
112
+ 1. 把本次 loop 的 🔴陷阱 / env-fact / 结转提示 从 `PROGRESS.md` history 提炼为条目
113
+ 2. 追加到 `.claude/agents/memories/lead.md`(目录为 doukui 记忆约定目录;文件不存在则创建):
114
+ ```
115
+ ## {日期} {loopId} {主题}
116
+ - <事实一行:现象 + 根因/规避>
117
+ - <事实一行>
118
+ ```
119
+
120
+ **召回**(每次 dispatch/retry 组装 Teamee prompt 前):
121
+ 1. 取目标 WP 的标题 + 关键词(模块名/技术名词)
122
+ 2. 在 `.claude/agents/memories/*.md` 检索命中行,取命中行所在的完整条目段(从 `## {日期} {loopId}` 标题起)
123
+ 3. 命中条目注入 Teamee prompt 的「相关经验」区;**零命中零注入**——不灌全文件(token 纪律)
124
+
55
125
  ## Step 3a: Observe 规则
56
126
  读取当前快照(来源:`skill-progress-tracker` 的 PROGRESS.md + task.md):
57
127
  - `workPackages`:goal.wpIds 中 `pending`(未完成)/ `completed`(已通过 checklist)/ `failed`(上轮 checklist 失败待重试)/ `blocked`(依赖未满足)
58
128
  - `lastChecklist`:上轮 Act 产出的 CheckResult(来自 skill-checklist 机器可读 block)
59
129
  - 进度趋势:最近 N 轮 proximity 序列(发散检测用)
60
130
 
61
- > **`failed` 的来源口径**(对齐 engine `_think` retry 分支 + loop-snapshot `buildWorkPackages`,WP-176-2):
131
+ > **`failed` 的来源口径**(WP-176-2):
62
132
  > `workPackages.failed` 不是凭空写出,而是由 `lastChecklist.failedItems` 聚合——把每条失败项的 `wpId` 去重后得到待重试的 WP 列表(排除已 `completed`、限定 `goal.wpIds` 范围)。这样 `_think` 的 `wp.failed.length > 0` 才能真实命中 retry(修复偏差1:原先 failed 写死空数组 → retry 永远走不到)。运行时 Claude 聚合时同理:从上轮 CheckResult.failedItems 取 wpId 集合作为 `failed`。
63
133
 
64
- ## Step 3b: Think 规则(镜像 engine `_think`:dispatch/retry/resplit/noop 优先级)
134
+ ## Step 3b: Think 规则(dispatch/retry/resplit/noop 优先级)
65
135
  优先级:**失败项重试 > 待执行调度 > 被阻塞 noop**
66
136
  1. 若有 `failed` WP(`wp.failed` 非空,见 Step 3a 来源口径)→ `retry`:
67
137
  - `targetWp = wp.failed[0]`(首个失败 WP)
@@ -71,30 +141,31 @@ while rounds < safetyMaxRounds:
71
141
  3. 若有 `pending` WP(且在 goal.wpIds 范围内,越界保护)→ `dispatch`(`targetWp` 为 goal 范围内首个 pending,`strategy='full_restart'`)
72
142
  4. 全部被阻塞 → `noop`(持续 noop 由发散/上限兜底)
73
143
 
74
- > **retry vs resplit 分流对齐**(修复偏差1 + engine/运行时落差):engine `_think` 的真实数据流是 `wp.failed.length > 0` 命中 retry、`failed` 空但 `lastChecklist.passed===false` 命中 resplit。运行时 Claude 复现时严格按此优先级——先看 `failed`(来自 failedItems 聚合),再看 `lastChecklist.passed`,二者顺序不可换,否则会像旧版 engine 那样把真实 retry 误判成 resplit。
144
+ > **retry vs resplit 分流**(修复偏差1):真实数据流是 `wp.failed.length > 0` 命中 retry、`failed` 空但 `lastChecklist.passed===false` 命中 resplit。运行时 Claude 严格按此优先级——先看 `failed`(来自 failedItems 聚合),再看 `lastChecklist.passed`,二者顺序不可换,否则会把真实 retry 误判成 resplit。
75
145
 
76
- ## Step 3c: Reflect 规则(复现 `reflection-evaluator`)
146
+ ## Step 3c: Reflect 规则
77
147
  - `proximity = 1 - (failed / total)`(来自上轮 CheckResult.summary;钳到 [0,1]);无 checklist 时降级按 WP 完成度 `completed/total`
78
148
  - `converged`:本轮 proximity 严格 > 上一轮
79
149
  - `divergenceStreak`:从 history 末尾数连续多少轮 proximity 不增(含回退)
80
150
  - `diverged`:`divergenceStreak >= divergence_threshold`(默认 3);已达成态(proximity≥goal 且 allPassed)不算发散
81
- - `failingDrivers`:由 `CheckResult.failedItems` 归一化产出,每项结构 `{wpId, category, item, reason}`(`reflection-evaluator` 辅助函数聚合,WP-176-1)
151
+ - `failingDrivers`:由 `CheckResult.failedItems` 归一化产出,每项结构 `{wpId, category, item, reason}`(WP-176-1)
152
+ - **verify 结算纪律**:WP 结算时,checklist 项带 verify 声明 → Lead **先实跑命令看退出码再下判断**;命令失败即该项 fail,不凭 Teamee 自述放行;命令本身不可执行(PATH/环境)→ 记为环境 fail 并在 `failingDrivers` 标注;verify 项可经 `doukui verify <plan路径> --wp WP-NNN` 批跑(退出码 0 全过 / 1 有失败 / 2 无 verify 项),命令失败口径不变
82
153
 
83
- > **`failingDrivers` refine 通道(完整流转,修复偏差2)**——engine 路径与运行时复现必须打通同一条链路:
154
+ > **`failingDrivers` refine 通道(完整流转,修复偏差2)**——以下五步必须打通同一条链路:
84
155
  > 1. **产出**:Reflect 把 `lastChecklist.failedItems` 归一化为 `failingDrivers`(写入 `EvalResult.failingDrivers`)。
85
- > 2. **回填 state**(engine `reflect` 阶段的 state 回填):`state.failingDrivers = evalResult.failingDrivers || []`、`state.divergenceStreak = evalResult.divergenceStreak`。运行时 Claude 等效地把它记到本轮 PROGRESS.md / state 记录里,供下轮读取。
156
+ > 2. **回填 state**:`state.failingDrivers = evalResult.failingDrivers || []`、`state.divergenceStreak = evalResult.divergenceStreak`。运行时 Claude 等效地把它记到本轮 PROGRESS.md / state 记录里,供下轮读取。
86
157
  > 3. **下轮 Think 消费**(Step 3b):retry decision 携带 `decision.failingDrivers`(优先 `state.failingDrivers`,回退 `state.lastEval.failingDrivers`)。
87
158
  > 4. **进入 skill.md Step 4.2**:把 `decision.failingDrivers` 映射进 `dispatchTarget.failingDrivers`。
88
159
  > 5. **dispatcher → 重做 Teamee**(WP-176-6):dispatcher restart 创建新 Teamee 时把 `failingDrivers` 注入 prompt,Teamee 据此优先修复这些失败项。
89
160
  >
90
161
  > 缺第 2 步(回填)或第 4 步(进 dispatcher 参数)都会让链路断裂——这正是偏差1/偏差2 的根因:数据算出来了但没流到重做者手里。
91
162
 
92
- ## Step 3d: Decide 规则(镜像 engine `_decide`:熔断 > 发散 > 达成 > 上限 > 继续)
163
+ ## Step 3d: Decide 规则(熔断 > 发散 > 达成 > 上限 > 继续)
93
164
  优先级 **熔断 > 发散 > 达成 > 上限 > 继续**(「达成」上提到「上限」之前——修复末轮 `iteration==max_iterations` 时 proximity 已达标却被抢判 `timeout` 的 bug:末轮达标应判 `achieved`,未达标才判 `timeout` 兜底):
94
- 1. **熔断**:watchdog/守护异常(terminated / 持续 degraded)→ `circuit_broken`(运行时若 dispatcher 监控报告守护异常即触发)
165
+ 1. **熔断**:人主动全局终止(skill Step 6 通道)→ `circuit_broken`(人要求全局终止即触发)
95
166
  2. **发散**:`divergenceStreak >= divergence_threshold` → `diverged`
96
167
  3. **达成**:`allPassed && proximity >= proximity_goal && noPending && noFailed` → `achieved`
97
168
  4. **上限**:`iteration >= max_iterations`、墙钟超 `max_wall_time_ms`、或单轮时长超 `max_round_time_ms` → `timeout`(兜底:本轮未达成才判 timeout)
98
169
  5. 否则 → `continue`
99
170
 
100
- > **`noFailed` 现真实生效**(修复偏差1 + 落差,engine `_decide` 的 noFailed 判定):`noFailed = (!wp.failed || wp.failed.length===0) && (!evalResult.failingDrivers || evalResult.failingDrivers.length===0)`。即 WP 级 failed 列表与 CheckResult 级 failingDrivers 明细**任一非空**都判为"仍有失败项",不能进 `achieved`。运行时 Claude 复现时须同时检查这两个来源,不可只看 `wp.failed`。
171
+ > **`noFailed` 现真实生效**(修复偏差1):`noFailed = (!wp.failed || wp.failed.length===0) && (!evalResult.failingDrivers || evalResult.failingDrivers.length===0)`。即 WP 级 failed 列表与 CheckResult 级 failingDrivers 明细**任一非空**都判为"仍有失败项",不能进 `achieved`。运行时 Claude 复现时须同时检查这两个来源,不可只看 `wp.failed`。
@@ -4,17 +4,12 @@
4
4
  "type": "skill",
5
5
  "description": "Use when user says \"自主循环\", \"agentic loop\", \"目标驱动执行\", or needs a goal-driven P2↔P3 self-closing loop that retries failed checklist items autonomously until achieved/diverged/timeout, then returns to P1 human-checkpoint or proceeds to P4",
6
6
  "triggers": ["自主循环", "agentic loop", "目标驱动", "自闭环", "自动重试", "P2P3 loop", "skill-agentic-loop"],
7
- "dependencies": ["provider:loop-engine", "provider:state-store", "provider:watchdog"],
7
+ "dependencies": [],
8
8
  "provides": ["skill:agentic-loop"],
9
9
  "metadata": {
10
10
  "gatedByCode": true
11
11
  },
12
12
  "config": {
13
- "plan_mode_required": true,
14
- "max_iterations": 6,
15
- "max_round_time_ms": 600000,
16
- "max_wall_time_ms": 3600000,
17
- "divergence_threshold": 3,
18
- "proximity_goal": 0.9
13
+ "plan_mode_required": true
19
14
  }
20
15
  }