doukui 0.5.0 → 0.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 +27 -67
- package/bin/commands/help.js +0 -25
- package/bin/doukui.js +1 -3
- package/package.json +2 -3
- package/plugins/core/skill-agent-dispatcher/monitoring-reference.md +261 -0
- package/plugins/core/skill-agent-dispatcher/recovery-reference.md +91 -0
- package/plugins/core/skill-agent-dispatcher/skill.md +39 -299
- package/plugins/core/skill-agentic-loop/mirror-rules.md +82 -23
- package/plugins/core/skill-agentic-loop/plugin.json +2 -7
- package/plugins/core/skill-agentic-loop/skill.md +49 -77
- package/plugins/core/skill-completion-report/skill.md +7 -1
- package/plugins/core/skill-doukui-plan/skill.md +3 -0
- package/plugins/plugin-registry.json +0 -12
- package/plugins/runtime/plan-reader.js +33 -18
- package/plugins/runtime/text-tokenize.js +1 -2
- package/templates/harness-config.yaml +0 -99
- package/bin/commands/loop-server.js +0 -357
- package/bin/commands/loop.js +0 -1510
- package/plugins/contracts/checkresult-schema.json +0 -75
- package/plugins/core/provider-loop-engine/index.js +0 -1411
- package/plugins/core/provider-loop-engine/plugin.json +0 -15
- package/plugins/runtime/checkresult-validator.js +0 -131
- package/plugins/runtime/context-window.js +0 -81
- package/plugins/runtime/executor-claude.js +0 -604
- package/plugins/runtime/executor-default.js +0 -448
- package/plugins/runtime/executor-local.js +0 -178
- package/plugins/runtime/executor-sdk.js +0 -415
- package/plugins/runtime/loop-actuator.js +0 -292
- package/plugins/runtime/loop-coordinator.js +0 -347
- package/plugins/runtime/loop-defaults.js +0 -29
- package/plugins/runtime/loop-dispatch-batch.js +0 -247
- package/plugins/runtime/loop-executor.js +0 -120
- package/plugins/runtime/loop-report.js +0 -395
- package/plugins/runtime/loop-server-core.js +0 -750
- package/plugins/runtime/loop-snapshot.js +0 -581
- package/plugins/runtime/loop-trace.js +0 -242
- package/plugins/runtime/loop-worktree.js +0 -404
- package/plugins/runtime/multi-window-coordinator.js +0 -560
- package/plugins/runtime/objective-verifier.js +0 -136
- package/plugins/runtime/plan-lint.js +0 -106
- package/plugins/runtime/provider-failover.js +0 -114
- package/plugins/runtime/provider-resolver.js +0 -342
- package/plugins/runtime/reflection-evaluator.js +0 -545
- package/plugins/runtime/self-rescue-ladder.js +0 -51
|
@@ -178,6 +178,8 @@ Read("plugins/core/skill-agent-dispatcher/roles-reference.md")
|
|
|
178
178
|
- **记忆注入机制**: 经验提取逻辑、动态数量、回退机制
|
|
179
179
|
- **经验沉淀闭环**: 执行完成后的经验提取流程
|
|
180
180
|
|
|
181
|
+
**模型分级提示**: role YAML 声明 `model` 字段时,先 `doukui build` 生成 `.claude/agents/{roleId}.md`,之后 Teamee 按 frontmatter model 路由(生成由 agent-def-generator 完成,spawn 时走 Step 6 双分支路由规则)。
|
|
182
|
+
|
|
181
183
|
### Step 6: 初始创建 Teamee(首次可用任务)
|
|
182
184
|
|
|
183
185
|
<HARD-GATE>
|
|
@@ -186,9 +188,19 @@ Step 5 完成后,立即检查有哪些任务的 blockedBy 已满足。
|
|
|
186
188
|
不可跳过此步骤!
|
|
187
189
|
</HARD-GATE>
|
|
188
190
|
|
|
189
|
-
**⚠️
|
|
191
|
+
**⚠️ 重要: Teamee spawn 路由双分支规则(全流程所有 spawn 点统一遵循,下文各处不再重复)**:
|
|
192
|
+
|
|
193
|
+
- **存在生成物 `.claude/agents/{roleId}.md` → `subagent_type={roleId}`**(Claude Code 按其 frontmatter model 路由模型,实现 per-role 模型分级)
|
|
194
|
+
- **无生成物 → 回退 `subagent_type="general-purpose"`**(Prompt 携带角色赋能,与历史行为一致)
|
|
195
|
+
- 判定方法:spawn 前查该角色 id 的 `.claude/agents/{roleId}.md` 是否存在(一次 ls/glob)
|
|
196
|
+
|
|
197
|
+
```
|
|
198
|
+
def resolve_subagent_type(role_id):
|
|
199
|
+
"""spawn 路由双分支(全流程唯一判定点,各 spawn 处调用)"""
|
|
200
|
+
return role_id if file_exists(f".claude/agents/{role_id}.md") else "general-purpose"
|
|
201
|
+
```
|
|
190
202
|
|
|
191
|
-
|
|
203
|
+
两个分支都禁止使用 `Explore` 或其他只读 agent 类型,因为它们没有 Write/Edit/Bash 工具,
|
|
192
204
|
无法完成实现工作(写代码、改文件、跑测试)。
|
|
193
205
|
|
|
194
206
|
```
|
|
@@ -211,7 +223,7 @@ for task in tasks:
|
|
|
211
223
|
# 创建专用 Teamee(自动加入 implicit session team,无需 team_name 参数)
|
|
212
224
|
Agent(
|
|
213
225
|
name=teamee_name,
|
|
214
|
-
subagent_type=
|
|
226
|
+
subagent_type=resolve_subagent_type(assignment.role_id), # 双分支路由(见本 Step 顶部规则)
|
|
215
227
|
prompt=build_single_task_prompt(
|
|
216
228
|
teamee_name=teamee_name,
|
|
217
229
|
task_id=task.id,
|
|
@@ -335,38 +347,10 @@ while (now() - start_time) < max_wait_time:
|
|
|
335
347
|
restore_from_state(state)
|
|
336
348
|
|
|
337
349
|
# ---- Phase 0.1: 多窗口阶段信号检查 ----
|
|
338
|
-
#
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
session_data = json_loads(Read(file_path=session_file))
|
|
343
|
-
except Exception:
|
|
344
|
-
session_data = None
|
|
345
|
-
|
|
346
|
-
if session_data:
|
|
347
|
-
my_stage = None
|
|
348
|
-
for s in session_data.get("stages", []):
|
|
349
|
-
if window_id in s.get("windows", []):
|
|
350
|
-
my_stage = s
|
|
351
|
-
break
|
|
352
|
-
|
|
353
|
-
if my_stage:
|
|
354
|
-
if my_stage.get("status") == "pending":
|
|
355
|
-
# 当前阶段未就绪,跳过本轮 Teamee 创建
|
|
356
|
-
# 输出: "⏸ 窗口 {window_id} 阶段 {my_stage['stage_id']} 尚未就绪,等待阶段信号"
|
|
357
|
-
pass # 跳过后续 Phase C 创建逻辑(通过标志控制)
|
|
358
|
-
elif my_stage.get("status") == "completed":
|
|
359
|
-
# 当前阶段已完成,检查是否有下一阶段
|
|
360
|
-
next_stage = None
|
|
361
|
-
for s in session_data.get("stages", []):
|
|
362
|
-
if s.get("stage_id") == my_stage.get("stage_id") + 1:
|
|
363
|
-
next_stage = s
|
|
364
|
-
break
|
|
365
|
-
if next_stage and next_stage.get("status") == "active":
|
|
366
|
-
# 切换到下一阶段的任务
|
|
367
|
-
assigned_wps = next_stage.get("work_packages", assigned_wps)
|
|
368
|
-
current_stage = next_stage.get("stage_id", current_stage)
|
|
369
|
-
# 输出: "🔄 窗口 {window_id} 切换到阶段 {next_stage['stage_id']}: {next_stage.get('name', '')}"
|
|
350
|
+
# 多窗口模式(DOUKUI_MULTI_WINDOW_SESSION + DOUKUI_WINDOW_ID 同时存在)下读
|
|
351
|
+
# multi-window-session.json 按阶段状态控制:阶段 pending → 跳过本轮 Teamee
|
|
352
|
+
# 创建;阶段 completed 且下一阶段 active → 切换任务批次。展开细则已外移。
|
|
353
|
+
# 📖按需:遇多窗口阶段未就绪/阶段切换 → Read monitoring-reference.md(§Phase 0.1 多窗口阶段信号检查)
|
|
370
354
|
|
|
371
355
|
# ---- Phase A: 获取任务状态 ----
|
|
372
356
|
tasks = TaskList()
|
|
@@ -452,7 +436,7 @@ while (now() - start_time) < max_wait_time:
|
|
|
452
436
|
# C4. 创建专用 Teamee(自动加入 implicit session team,无需 team_name 参数)
|
|
453
437
|
Agent(
|
|
454
438
|
name=teamee_name,
|
|
455
|
-
subagent_type=
|
|
439
|
+
subagent_type=resolve_subagent_type(assignment.role_id), # 双分支路由(见 Step 6 规则)
|
|
456
440
|
prompt=build_single_task_prompt(
|
|
457
441
|
teamee_name=teamee_name,
|
|
458
442
|
task_id=task.id,
|
|
@@ -481,109 +465,12 @@ while (now() - start_time) < max_wait_time:
|
|
|
481
465
|
write_state("monitoring")
|
|
482
466
|
|
|
483
467
|
# ---- Phase D.1: 读取守护进程指令 (DISP-003) ----
|
|
484
|
-
#
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
except Exception as e:
|
|
491
|
-
# 输出: "⚠️ 守护进程指令文件解析失败,跳过本轮指令: {e}"
|
|
492
|
-
actions = []
|
|
493
|
-
|
|
494
|
-
for action in actions:
|
|
495
|
-
# 检查指令是否已被处理
|
|
496
|
-
if action.get("id") in processed_action_ids:
|
|
497
|
-
continue
|
|
498
|
-
|
|
499
|
-
target_task_id = action.get("target_task")
|
|
500
|
-
action_type = action.get("action")
|
|
501
|
-
strategy = action.get("strategy", "full_restart")
|
|
502
|
-
reason = action.get("reason", "")
|
|
503
|
-
# 读取 Agentic Loop 下发的失败项明细(refine 通道,WP-176-6):
|
|
504
|
-
# 来源 skill-agentic-loop Step 4.2 的 dispatchTarget.failingDrivers,
|
|
505
|
-
# 每项 {wpId, category, item, reason};仅 retry/resplit 有值,dispatch 首次执行为空。
|
|
506
|
-
failing_drivers = action.get("failing_drivers", [])
|
|
507
|
-
|
|
508
|
-
if action_type == "restart":
|
|
509
|
-
# 重启指令: 逻辑销毁旧 Teamee → 创建新 Teamee
|
|
510
|
-
if target_task_id in teamee_map:
|
|
511
|
-
old_teamee = teamee_map[target_task_id]
|
|
512
|
-
|
|
513
|
-
# D1a. 逻辑销毁旧 Teamee(无协议帧)
|
|
514
|
-
markTeameeDestroyed(teamee_map, target_task_id)
|
|
515
|
-
|
|
516
|
-
# D1b. 根据策略创建新 Teamee
|
|
517
|
-
# 🔴 两种策略都注入 failing_drivers(refine 通道,WP-176-6):
|
|
518
|
-
# 让承接重做的 Teamee 知道"重点修哪些失败项",而非盲目原样重做。
|
|
519
|
-
assignment = wp_assignments[target_task_id]
|
|
520
|
-
new_teamee_name = f"{assignment.role_id}-t{target_task_id}-retry"
|
|
521
|
-
|
|
522
|
-
if strategy == "checkpoint_resume":
|
|
523
|
-
# 复杂任务: 注入已完成文件上下文 + 失败项重点修复段
|
|
524
|
-
context = action.get("context", {})
|
|
525
|
-
prompt = build_resume_prompt(
|
|
526
|
-
teamee_name=new_teamee_name,
|
|
527
|
-
task_id=target_task_id,
|
|
528
|
-
role_prompt=assignment.role_prompt,
|
|
529
|
-
completed_files=context.get("completed_files", []),
|
|
530
|
-
remaining=context.get("remaining", []),
|
|
531
|
-
failing_drivers=failing_drivers
|
|
532
|
-
)
|
|
533
|
-
else: # full_restart
|
|
534
|
-
# 简单任务: 从头执行(仍注入失败项重点修复段,区分 retry 与首次 dispatch)
|
|
535
|
-
prompt = build_refine_prompt(
|
|
536
|
-
teamee_name=new_teamee_name,
|
|
537
|
-
task_id=target_task_id,
|
|
538
|
-
role_prompt=assignment.role_prompt,
|
|
539
|
-
memories=assignment.memories,
|
|
540
|
-
wp_doc_path=assignment.wp_doc_path,
|
|
541
|
-
failing_drivers=failing_drivers
|
|
542
|
-
)
|
|
543
|
-
|
|
544
|
-
# D1c. 创建新 Teamee(自动加入 implicit session team,无需 team_name 参数)
|
|
545
|
-
Agent(
|
|
546
|
-
name=new_teamee_name,
|
|
547
|
-
subagent_type="general-purpose",
|
|
548
|
-
prompt=prompt
|
|
549
|
-
)
|
|
550
|
-
teamee_map[target_task_id] = new_teamee_name
|
|
551
|
-
|
|
552
|
-
# D1d. 更新重试计数
|
|
553
|
-
update_task_file(target_task_id, increment_retry=True)
|
|
554
|
-
|
|
555
|
-
# 标记指令已处理
|
|
556
|
-
processed_action_ids.append(action.get("id"))
|
|
557
|
-
|
|
558
|
-
elif action_type == "abort":
|
|
559
|
-
# 中止单个任务
|
|
560
|
-
if target_task_id in teamee_map:
|
|
561
|
-
teamee_name = teamee_map[target_task_id]
|
|
562
|
-
# 逻辑销毁(无协议帧)
|
|
563
|
-
markTeameeDestroyed(teamee_map, target_task_id)
|
|
564
|
-
update_task_file(target_task_id, status="failed")
|
|
565
|
-
processed_action_ids.append(action.get("id"))
|
|
566
|
-
|
|
567
|
-
elif action_type == "pause":
|
|
568
|
-
# 暂停创建新 Teamee(已有 Teamee 继续运行)
|
|
569
|
-
global_pause_flag = True
|
|
570
|
-
processed_action_ids.append(action.get("id"))
|
|
571
|
-
|
|
572
|
-
elif action_type == "abort_all":
|
|
573
|
-
# 全局中止: 逻辑销毁所有 Teamee,终止监控循环(无协议帧)
|
|
574
|
-
for task_id in list(teamee_map.keys()):
|
|
575
|
-
markTeameeDestroyed(teamee_map, task_id)
|
|
576
|
-
teamee_map.clear()
|
|
577
|
-
# 输出: "收到 abort_all 指令,终止监控循环"
|
|
578
|
-
processed_action_ids.append(action.get("id"))
|
|
579
|
-
break # 跳出监控循环
|
|
580
|
-
|
|
581
|
-
# D1e. 回写已处理的 iteration
|
|
582
|
-
if actions:
|
|
583
|
-
Write(file_path=daemon_actions_path, content=json_dumps({
|
|
584
|
-
"actions": [a for a in actions if a.get("id") not in processed_action_ids],
|
|
585
|
-
"last_processed_iteration": loop_iteration
|
|
586
|
-
}))
|
|
468
|
+
# 判断退出条件前读 .claude-daemon/daemon-actions.json,按 id 去重
|
|
469
|
+
# (processed_action_ids)后处理:restart(逻辑销毁旧 Teamee →
|
|
470
|
+
# checkpoint_resume/full_restart 重 spawn,🔴 均注入 failing_drivers;
|
|
471
|
+
# subagent_type 走 Step 6 双分支路由)/ abort / pause / abort_all
|
|
472
|
+
# (销毁全部 + 跳出循环),处理后回写指令文件。
|
|
473
|
+
# 📖按需:守护进程指令文件存在或需处理具体指令 → Read monitoring-reference.md(§Phase D.1 守护进程指令处理)
|
|
587
474
|
|
|
588
475
|
# ---- Phase D.5: 状态持久化写回 (processed_action_ids 变更) ----
|
|
589
476
|
write_state("monitoring")
|
|
@@ -631,80 +518,13 @@ while (now() - start_time) < max_wait_time:
|
|
|
631
518
|
assigned_at = task_file.get("started_at") or task_file.get("last_update") or start_time
|
|
632
519
|
idle_nudge_sent = task_file.get("idle_nudge_sent", False)
|
|
633
520
|
if task_stalled and (now() - assigned_at) >= idle_threshold:
|
|
634
|
-
#
|
|
635
|
-
#
|
|
636
|
-
#
|
|
637
|
-
if not idle_nudge_sent:
|
|
638
|
-
SendMessage(
|
|
639
|
-
to=teamee_name,
|
|
640
|
-
summary="idle 检测催促,请立即执行任务",
|
|
641
|
-
message=f"检测到任务 {task_id} 长时间未推进。请立即开始执行 WP 文档中的任务,完成后用 SendMessage 向 team-lead 发送完成报告。"
|
|
642
|
-
)
|
|
643
|
-
update_task_file(task_id, set_idle_nudge=True)
|
|
644
|
-
continue # 下一轮若仍 idle 且已催促,才进 Step 2-4
|
|
645
|
-
# 输出: "idle 自愈: task {task_id} 已催促过仍无推进,进 Step 2-4 重 spawn"
|
|
646
|
-
# Step 2: 验证 spawn 参数(定位根因,避免原样重 spawn 仍 idle)
|
|
647
|
-
assignment = wp_assignments[task_id]
|
|
648
|
-
spawn_params_ok = (
|
|
649
|
-
assignment.subagent_type == "general-purpose"
|
|
650
|
-
and assignment.team_name == team_name
|
|
651
|
-
and task_id in assignment.prompt
|
|
652
|
-
and assignment.wp_doc_path in assignment.prompt
|
|
653
|
-
and "SendMessage" in assignment.prompt # prompt 须要求完成报告用 SendMessage
|
|
654
|
-
)
|
|
655
|
-
if not spawn_params_ok:
|
|
656
|
-
# 输出: "spawn 参数异常 (subagent_type/批次标签 team_name/prompt 完整性),将在重 spawn 时修正"
|
|
657
|
-
pass
|
|
658
|
-
# Step 3: 仍不执行 → 逻辑销毁旧 Teamee(无协议帧)
|
|
659
|
-
markTeameeDestroyed(teamee_map, task_id)
|
|
660
|
-
# Step 4: 检查 retry_count < max_retries → 重新 spawn(复用 Phase D.1 restart 指令段的重 spawn 逻辑)
|
|
661
|
-
# 复用 idle 检测顶部已读取的 task_file(read_task_file 结果),避免重复 IO
|
|
662
|
-
retry_count = task_file.get("retry_count", 0)
|
|
663
|
-
max_retries = task_file.get("max_retries", 3)
|
|
664
|
-
if retry_count < max_retries:
|
|
665
|
-
# 重新 spawn 专用 Teamee(递增 retry_count),复用 restart 守护进程指令段的重 spawn 逻辑
|
|
666
|
-
new_teamee_name = f"{assignment.role_id}-t{task_id}-idle-retry"
|
|
667
|
-
prompt = build_refine_prompt(
|
|
668
|
-
teamee_name=new_teamee_name,
|
|
669
|
-
task_id=task_id,
|
|
670
|
-
role_prompt=assignment.role_prompt,
|
|
671
|
-
memories=assignment.memories,
|
|
672
|
-
wp_doc_path=assignment.wp_doc_path,
|
|
673
|
-
failing_drivers=[] # idle 重 spawn 非失败项修复,failing_drivers 为空
|
|
674
|
-
)
|
|
675
|
-
Agent( # 自动加入 implicit session team,无需 team_name 参数
|
|
676
|
-
name=new_teamee_name,
|
|
677
|
-
subagent_type="general-purpose",
|
|
678
|
-
prompt=prompt
|
|
679
|
-
)
|
|
680
|
-
teamee_map[task_id] = new_teamee_name
|
|
681
|
-
# 三合一调用(缺任一复活死亡螺旋):递增 retry + 刷新 started_at + 重置催促去重位
|
|
682
|
-
update_task_file(
|
|
683
|
-
task_id,
|
|
684
|
-
increment_retry=True,
|
|
685
|
-
reset_started_at=True, # F4
|
|
686
|
-
set_idle_nudge=False # F3
|
|
687
|
-
)
|
|
688
|
-
# 输出: "idle 自愈: task {task_id} 重新 spawn 为 {new_teamee_name} (retry {retry_count+1}/{max_retries}),已刷新 started_at + 重置催促去重位"
|
|
689
|
-
else:
|
|
690
|
-
# Step 5: 超限 → 熔断,绝不 Lead 接手,转 Step 7 清理
|
|
691
|
-
TaskUpdate(taskId=task_id, status="failed")
|
|
692
|
-
update_task_file(task_id, status="failed")
|
|
693
|
-
# 输出: "🔴 idle 自愈超限: task {task_id} 重试 {retry_count}/{max_retries} 仍 idle,熔断标记 failed,绝不 Lead 接手,转 Step 7 清理"
|
|
521
|
+
# 触发自愈(催促 → 重 spawn → 熔断),🔴 绝不 Lead 接手(见文末 HARD-GATE)
|
|
522
|
+
# 📖按需:Read recovery-reference.md(§Phase D2-idle-heal 自愈流程)
|
|
523
|
+
# —— 催促去重 / spawn 参数验证长例 / 重 spawn 三合一 / 超限熔断完整展开
|
|
694
524
|
|
|
695
525
|
# Phase D3: 批次自动加载 — 当前批次全部完成后从 pending_batches 加载下一批
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
find_by_id(tasks, tid).status == "completed" for tid in current_batch
|
|
699
|
-
if find_by_id(tasks, tid)
|
|
700
|
-
)
|
|
701
|
-
if batch_completed and pending_batches:
|
|
702
|
-
next_batch_size = min(max_batch_size, len(pending_batches))
|
|
703
|
-
current_batch = pending_batches[:next_batch_size]
|
|
704
|
-
pending_batches = pending_batches[next_batch_size:]
|
|
705
|
-
# 输出: "当前批次完成,自动加载下一批: {len(current_batch)} 个任务, 剩余 {len(pending_batches)} 个"
|
|
706
|
-
# 写回状态文件保存批次进度
|
|
707
|
-
write_state("monitoring")
|
|
526
|
+
# (current_batch 全 completed 且映射已空时取下一批并 write_state 保存进度)。
|
|
527
|
+
# 📖按需:批次自动加载触发时 → Read monitoring-reference.md(§Phase D.3 批次自动加载)
|
|
708
528
|
|
|
709
529
|
sleep(loop_interval)
|
|
710
530
|
|
|
@@ -723,60 +543,13 @@ if (now() - start_time) >= max_wait_time:
|
|
|
723
543
|
# 输出: "监控超时,已逻辑销毁 {remaining_count} 个残留 Teamee,转入 Step 7 目录清理"
|
|
724
544
|
```
|
|
725
545
|
|
|
726
|
-
|
|
546
|
+
**上下文恢复协议**(触发:监控循环因上下文压缩 auto-compact 中断后恢复现场,多窗口模式读 windows/{window_id}/state.json)——完整恢复步骤已外移。
|
|
727
547
|
|
|
728
|
-
|
|
548
|
+
📖按需:遇上下文压缩中断需恢复 → Read recovery-reference.md(§上下文恢复协议)
|
|
729
549
|
|
|
730
|
-
|
|
731
|
-
1. Read 状态文件(多窗口模式读 windows/{window_id}/state.json)
|
|
732
|
-
- 不存在 → 首次运行或已清理,从头开始
|
|
733
|
-
- status == "completed" → 执行已完成,无需恢复
|
|
734
|
-
- status == "monitoring" → 进入恢复流程
|
|
735
|
-
|
|
736
|
-
2. restore_from_state(state) # 字段清单见监控循环顶部的统一恢复通道定义
|
|
737
|
-
|
|
738
|
-
3. 验证恢复有效性: teamee_map 中的 teamee 若已不存在,从映射表移除
|
|
739
|
-
|
|
740
|
-
4. 继续监控循环(从恢复的 loop_iteration + 1 开始)
|
|
741
|
-
```
|
|
550
|
+
**辅助函数已外移至按需参考**(is_unblocked 阻塞判断 / get_max_concurrent + is_time_in_range 并发上限时间段匹配,含跨午夜区间):
|
|
742
551
|
|
|
743
|
-
|
|
744
|
-
```
|
|
745
|
-
def is_unblocked(task):
|
|
746
|
-
"""检查任务的所有 blockedBy 依赖是否都已满足"""
|
|
747
|
-
if not task.blockedBy:
|
|
748
|
-
return True
|
|
749
|
-
all_tasks = TaskList()
|
|
750
|
-
for blocker_id in task.blockedBy:
|
|
751
|
-
blocker = find_by_id(all_tasks, blocker_id)
|
|
752
|
-
if blocker.status != "completed":
|
|
753
|
-
return False
|
|
754
|
-
return True
|
|
755
|
-
```
|
|
756
|
-
|
|
757
|
-
**辅助函数 — 并发控制**(Phase C 使用):
|
|
758
|
-
```
|
|
759
|
-
def get_max_concurrent(config, current_time):
|
|
760
|
-
"""根据当前时间匹配 schedule,返回对应并发上限"""
|
|
761
|
-
if not config or not config.get("schedules"):
|
|
762
|
-
return config.get("default_max", 6) if config else 6
|
|
763
|
-
|
|
764
|
-
current_hhmm = current_time.strftime("%H:%M")
|
|
765
|
-
for schedule in config["schedules"]:
|
|
766
|
-
start = schedule["time_range"]["start"]
|
|
767
|
-
end = schedule["time_range"]["end"]
|
|
768
|
-
if is_time_in_range(current_hhmm, start, end):
|
|
769
|
-
return schedule["max_concurrent"]
|
|
770
|
-
|
|
771
|
-
return config.get("default_max", 6)
|
|
772
|
-
|
|
773
|
-
def is_time_in_range(current, start, end):
|
|
774
|
-
"""判断当前时间是否在范围内,支持跨午夜"""
|
|
775
|
-
if start <= end:
|
|
776
|
-
return start <= current < end
|
|
777
|
-
else: # 跨午夜,如 22:00-06:00
|
|
778
|
-
return current >= start or current < end
|
|
779
|
-
```
|
|
552
|
+
📖按需:实现 Step 6 / Phase C 的阻塞判断与并发控制时 → Read monitoring-reference.md(§辅助函数 is_unblocked / 并发控制)
|
|
780
553
|
|
|
781
554
|
**监控循环关键特性**:
|
|
782
555
|
- **Phase B (即时销毁)** 在 Phase C (创建) 之前执行,确保资源先释放再分配
|
|
@@ -825,24 +598,9 @@ Read("plugins/core/skill-agent-dispatcher/roles-reference.md")
|
|
|
825
598
|
|
|
826
599
|
## 共享上下文机制
|
|
827
600
|
|
|
828
|
-
|
|
601
|
+
Teamee 自动共享 CLAUDE.md / Skills / MCP Servers / 项目代码(无需干预);主动共享走 SendMessage 纯文本状态沟通(消息类型表与 deprecated 协议帧说明已外移)。
|
|
829
602
|
|
|
830
|
-
|
|
831
|
-
|------|----------|
|
|
832
|
-
| `CLAUDE.md` | 所有 Teamee 自动加载 |
|
|
833
|
-
| Skills | 继承 Lead 的 skills |
|
|
834
|
-
| MCP Servers | 共享相同的 MCP 配置 |
|
|
835
|
-
| 项目代码 | 共享同一工作目录 |
|
|
836
|
-
|
|
837
|
-
### 主动共享 (通过 SendMessage)
|
|
838
|
-
|
|
839
|
-
> 注:Teamee 一经 spawn **自动加入 implicit session team**,无需 Lead 显式分配团队——SendMessage 与共享 Task List 的协作能力由 implicit session team 提供,未受 harness 团队机制变更影响。
|
|
840
|
-
|
|
841
|
-
| 消息类型 | 格式 | 用途 |
|
|
842
|
-
|----------|------|------|
|
|
843
|
-
| `shutdown_request` | (deprecated) | Lead 不再发 shutdown_request;harness 拦截含 protocol frame 的 SendMessage message |
|
|
844
|
-
| `shutdown_response` | (deprecated) | 同上;Teamee 状态同步改为 TaskUpdate(completed) → Lead 检测 → markTeameeDestroyed → 批末 team-cleanup CLI |
|
|
845
|
-
| 纯文本状态 | string + summary | Teamee 间/向 Lead 的进度沟通(唯一允许的 SendMessage 用途) |
|
|
603
|
+
📖按需:需消息类型格式表/共享方式明细 → Read monitoring-reference.md(§共享上下文机制)
|
|
846
604
|
|
|
847
605
|
---
|
|
848
606
|
|
|
@@ -926,27 +684,9 @@ Read("plugins/core/skill-agent-dispatcher/roles-reference.md")
|
|
|
926
684
|
|
|
927
685
|
## 拆分工作包执行支持
|
|
928
686
|
|
|
929
|
-
当工作包有子工作包时,agent-dispatcher
|
|
930
|
-
|
|
931
|
-
### 执行流程
|
|
687
|
+
当工作包有子工作包时,agent-dispatcher 会自动识别并按依赖调度(simple / standard / fine-grained 三种拆分模式;验证关卡 verify 失败 → 停止后续)。
|
|
932
688
|
|
|
933
|
-
|
|
934
|
-
1. 读取父工作包文档 (docs/wp/WP-XXX.md)
|
|
935
|
-
2. 检测拆分模式 (simple/standard/fine-grained)
|
|
936
|
-
3. 解析子工作包列表 + 依赖关系
|
|
937
|
-
4. 创建 Task List 任务 + 设置 blockedBy
|
|
938
|
-
5. 角色匹配 → 分配角色
|
|
939
|
-
6. 按依赖顺序调度执行
|
|
940
|
-
7. 验证关卡: verify 失败 → 停止后续; verify 通过 → 继续
|
|
941
|
-
```
|
|
942
|
-
|
|
943
|
-
### 拆分模式处理
|
|
944
|
-
|
|
945
|
-
| 模式 | 处理方式 |
|
|
946
|
-
|------|----------|
|
|
947
|
-
| **simple** | 不拆分,直接作为单个任务调度 |
|
|
948
|
-
| **standard** | 4 个子任务: impl → test → verify → review(依赖链) |
|
|
949
|
-
| **fine-grained** | 按模块拆分多个 impl,每个独立 test,最后统一 verify + review |
|
|
689
|
+
📖按需:遇拆分工作包/需判定拆分模式处理方式 → Read monitoring-reference.md(§拆分工作包执行支持)
|
|
950
690
|
|
|
951
691
|
---
|
|
952
692
|
|
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# loop 判定规则(唯一真相源 · 会话内执行路径)
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
|
|
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
|
-
>
|
|
9
|
-
>
|
|
10
|
-
>
|
|
11
|
-
> 再同步本文件。
|
|
6
|
+
> **🔴 唯一真相源声明**:本文件是 loop 判定规则(Think/Decide 优先级、proximity 公式、发散判定)
|
|
7
|
+
> 与阈值默认值的**唯一真相源**,阈值数字自持于本文件。skill.md 是行为正文(流程编排 + Act 委托)。
|
|
8
|
+
> 修改判定规则或默认阈值:**直接改本文件**——不存在 JS 判定代码镜像,也没有 CI 镜像锁。
|
|
12
9
|
|
|
13
10
|
## 主循环骨架
|
|
14
11
|
|
|
15
|
-
**Claude 循环执行 Observe→Think→Act→Reflect→Decide 一轮,按 verdict
|
|
16
|
-
`provider-loop-engine` 的 `_think` / `_decide` / evaluator 语义(见下方各步规则框)。
|
|
12
|
+
**Claude 循环执行 Observe→Think→Act→Reflect→Decide 一轮,按 verdict 分流**。判定规则即下方各步规则框(本文件是唯一真相源)。
|
|
17
13
|
|
|
18
14
|
```
|
|
19
15
|
safetyMaxRounds = 50 # 外层保险(内部已有 max_iterations/max_wall_time 双重硬上限)
|
|
@@ -27,16 +23,16 @@ while rounds < safetyMaxRounds:
|
|
|
27
23
|
# ---- Observe(Step 3a)----
|
|
28
24
|
snapshot = observe() # 读 PROGRESS.md/task.md:pending/completed/failed WP + 上轮 checklist
|
|
29
25
|
|
|
30
|
-
# ---- Think(Step 3b
|
|
26
|
+
# ---- Think(Step 3b)----
|
|
31
27
|
decision = think(snapshot) # dispatch | retry | resplit | noop
|
|
32
28
|
|
|
33
29
|
# ---- Act(Step 4,委托 dispatcher 多 agent)----
|
|
34
30
|
checklistResult = act(decision) # 🔴 委托 skill-agent-dispatcher 用 implicit session team 多 agent 执行
|
|
35
31
|
|
|
36
|
-
# ---- Reflect(Step 3c
|
|
32
|
+
# ---- Reflect(Step 3c)----
|
|
37
33
|
evalResult = reflect(snapshot, checklistResult) # proximity / converged / diverged
|
|
38
34
|
|
|
39
|
-
# ---- Decide(Step 3d
|
|
35
|
+
# ---- Decide(Step 3d)----
|
|
40
36
|
verdict = decide(evalResult, snapshot) # continue | achieved | timeout | diverged | circuit_broken
|
|
41
37
|
|
|
42
38
|
# 记录本轮到 history(progress-tracker)
|
|
@@ -52,16 +48,78 @@ while rounds < safetyMaxRounds:
|
|
|
52
48
|
# 按 verdict 分流(见 skill.md Step 5 / Step 6)
|
|
53
49
|
```
|
|
54
50
|
|
|
51
|
+
## 接手协议(resume-protocol)
|
|
52
|
+
|
|
53
|
+
> **触发**:会话中断/上下文压缩后,新 Lead 接手一个未关闭的 loop(现实来源:nest 项目 11-09 driver 暴毙后,会话间接手 iteration 接续)。接手不是重启——基线核对通过后从最后记录点续跑。
|
|
54
|
+
|
|
55
|
+
1. **读基线**:Read `PROGRESS.md` 尾部最近 loop 记录,提取 `loopId` / `goal` / `max_iterations` / 最后记录的 `iteration`(含该轮 verdict 与 proximity)
|
|
56
|
+
2. **核对漂移**:`git log --oneline -5` + `git status --short`,与最后记录的 commit 对比——最后记录之后无漂移改动 → 直接接手;有漂移 → 列出差异清单,人工确认归属(本 loop 产物 / 外部改动)后再接手
|
|
57
|
+
3. **接续计数**:`iteration` 从最后记录值 +1 接续,**不回退、不重计**(回退会让发散检测 `divergenceStreak` 与上限判定失真)
|
|
58
|
+
4. **接手声明**:输出一行 `[loop {loopId}] resumed at iter {N} next={decision}`(`decision` 按 Step 3b 优先级给出下步),然后进 Observe 正常轮询
|
|
59
|
+
|
|
60
|
+
## 配额中断惯例(quota-interruption)
|
|
61
|
+
|
|
62
|
+
> **触发**:Teamee 报 429/限额类中断(「5h 窗口」「quota」「rate limit」字样)。配额中断是外部供给问题,不是任务发散(现实来源:2026-10-17~11-13 nest 记录月均 15+ 次实撞;现虽基本不撞,惯例留档备重活场景)。
|
|
63
|
+
|
|
64
|
+
1. **记录**:Lead 在 `PROGRESS.md` 该轮追加结构化中断块:
|
|
65
|
+
```
|
|
66
|
+
quota-interrupt: {
|
|
67
|
+
wpId: <WP id>,
|
|
68
|
+
断点: <已完成内容>,
|
|
69
|
+
落盘未提交清单: <已写入文件但未结算的路径>,
|
|
70
|
+
额度重置点: <如已知,5h 窗口的重置时刻>
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
2. **续跑**:额度重置后**优先同 Teamee SendMessage 续跑**(上下文保全,从断点接续);Teamee 已失联则走接手协议(resume-protocol)由新 Teamee 承接
|
|
74
|
+
3. **降档**:同一窗口内第二次撞限额 → 并发降档提示(如 3→1,拉长剩余额度)
|
|
75
|
+
4. **不计发散**:配额中断轮 `divergenceStreak` 不增长、proximity 冻结(沿用中断前最后值),上限判定只累计实际执行轮(同人工门口径)
|
|
76
|
+
|
|
77
|
+
## 人工门协议(human-gate-protocol)
|
|
78
|
+
|
|
79
|
+
> **触发**:WP 执行需真机/人工环境操作(编译/部署/物理验证)且 Teamee 无法完成(现实来源:pocket-x 11-14 真机编译人工门 round1/2)。人工门是受控暂停,不是发散。
|
|
80
|
+
|
|
81
|
+
1. **结构化暂停块**:Lead 在 `PROGRESS.md` 该轮记录写入:
|
|
82
|
+
```
|
|
83
|
+
human-gate: {
|
|
84
|
+
wpId: <WP id>,
|
|
85
|
+
待人工动作: <编译/部署/物理验证的具体操作>,
|
|
86
|
+
检查点: <回填时核对什么>,
|
|
87
|
+
结果回填格式: <通过/失败 + 产物路径或日志位置>,
|
|
88
|
+
恢复路径: <回填后 Lead 从哪一步继续>
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
2. **置 paused**:loop 状态置 `paused`(不推进新轮),明确告知用户待人工动作与回填格式
|
|
92
|
+
3. **结果回填分流**:通过 → 正常进 Reflect(按上轮 checklist 口径);失败 → 失败项按 Step 3b `failingDrivers` 链路注入 retry
|
|
93
|
+
4. **不计发散**:人工门等待期间 `divergenceStreak` 不增长、proximity 冻结(沿用回填前最后值),上限判定只累计实际执行轮
|
|
94
|
+
|
|
95
|
+
## env-fact 沉淀召回协议(env-fact-protocol)
|
|
96
|
+
|
|
97
|
+
> **动机**:🔴 陷阱只活在 `PROGRESS.md` 的 loop history 里,loop 关闭归档后下个 loop 的 Teamee 看不到(现实来源:nest 各 loop 反复踩同款陷阱)。沉淀到 memories 才能跨 loop 复用。
|
|
98
|
+
|
|
99
|
+
**沉淀**(loop 关闭时,achieved / diverged / timeout 均执行):
|
|
100
|
+
1. 把本次 loop 的 🔴陷阱 / env-fact / 结转提示 从 `PROGRESS.md` history 提炼为条目
|
|
101
|
+
2. 追加到 `.claude/agents/memories/lead.md`(目录为 provider-memory-store 既有约定;文件不存在则创建):
|
|
102
|
+
```
|
|
103
|
+
## {日期} {loopId} {主题}
|
|
104
|
+
- <事实一行:现象 + 根因/规避>
|
|
105
|
+
- <事实一行>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**召回**(每次 dispatch/retry 组装 Teamee prompt 前):
|
|
109
|
+
1. 取目标 WP 的标题 + 关键词(模块名/技术名词)
|
|
110
|
+
2. 在 `.claude/agents/memories/*.md` 检索命中行,取命中行所在的完整条目段(从 `## {日期} {loopId}` 标题起)
|
|
111
|
+
3. 命中条目注入 Teamee prompt 的「相关经验」区;**零命中零注入**——不灌全文件(token 纪律)
|
|
112
|
+
|
|
55
113
|
## Step 3a: Observe 规则
|
|
56
114
|
读取当前快照(来源:`skill-progress-tracker` 的 PROGRESS.md + task.md):
|
|
57
115
|
- `workPackages`:goal.wpIds 中 `pending`(未完成)/ `completed`(已通过 checklist)/ `failed`(上轮 checklist 失败待重试)/ `blocked`(依赖未满足)
|
|
58
116
|
- `lastChecklist`:上轮 Act 产出的 CheckResult(来自 skill-checklist 机器可读 block)
|
|
59
117
|
- 进度趋势:最近 N 轮 proximity 序列(发散检测用)
|
|
60
118
|
|
|
61
|
-
> **`failed`
|
|
119
|
+
> **`failed` 的来源口径**(WP-176-2):
|
|
62
120
|
> `workPackages.failed` 不是凭空写出,而是由 `lastChecklist.failedItems` 聚合——把每条失败项的 `wpId` 去重后得到待重试的 WP 列表(排除已 `completed`、限定 `goal.wpIds` 范围)。这样 `_think` 的 `wp.failed.length > 0` 才能真实命中 retry(修复偏差1:原先 failed 写死空数组 → retry 永远走不到)。运行时 Claude 聚合时同理:从上轮 CheckResult.failedItems 取 wpId 集合作为 `failed`。
|
|
63
121
|
|
|
64
|
-
## Step 3b: Think
|
|
122
|
+
## Step 3b: Think 规则(dispatch/retry/resplit/noop 优先级)
|
|
65
123
|
优先级:**失败项重试 > 待执行调度 > 被阻塞 noop**
|
|
66
124
|
1. 若有 `failed` WP(`wp.failed` 非空,见 Step 3a 来源口径)→ `retry`:
|
|
67
125
|
- `targetWp = wp.failed[0]`(首个失败 WP)
|
|
@@ -71,25 +129,26 @@ while rounds < safetyMaxRounds:
|
|
|
71
129
|
3. 若有 `pending` WP(且在 goal.wpIds 范围内,越界保护)→ `dispatch`(`targetWp` 为 goal 范围内首个 pending,`strategy='full_restart'`)
|
|
72
130
|
4. 全部被阻塞 → `noop`(持续 noop 由发散/上限兜底)
|
|
73
131
|
|
|
74
|
-
> **retry vs resplit
|
|
132
|
+
> **retry vs resplit 分流**(修复偏差1):真实数据流是 `wp.failed.length > 0` 命中 retry、`failed` 空但 `lastChecklist.passed===false` 命中 resplit。运行时 Claude 严格按此优先级——先看 `failed`(来自 failedItems 聚合),再看 `lastChecklist.passed`,二者顺序不可换,否则会把真实 retry 误判成 resplit。
|
|
75
133
|
|
|
76
|
-
## Step 3c: Reflect
|
|
134
|
+
## Step 3c: Reflect 规则
|
|
77
135
|
- `proximity = 1 - (failed / total)`(来自上轮 CheckResult.summary;钳到 [0,1]);无 checklist 时降级按 WP 完成度 `completed/total`
|
|
78
136
|
- `converged`:本轮 proximity 严格 > 上一轮
|
|
79
137
|
- `divergenceStreak`:从 history 末尾数连续多少轮 proximity 不增(含回退)
|
|
80
138
|
- `diverged`:`divergenceStreak >= divergence_threshold`(默认 3);已达成态(proximity≥goal 且 allPassed)不算发散
|
|
81
|
-
- `failingDrivers`:由 `CheckResult.failedItems` 归一化产出,每项结构 `{wpId, category, item, reason}
|
|
139
|
+
- `failingDrivers`:由 `CheckResult.failedItems` 归一化产出,每项结构 `{wpId, category, item, reason}`(WP-176-1)
|
|
140
|
+
- **verify 结算纪律**:WP 结算时,checklist 项带 verify 声明 → Lead **先实跑命令看退出码再下判断**;命令失败即该项 fail,不凭 Teamee 自述放行;命令本身不可执行(PATH/环境)→ 记为环境 fail 并在 `failingDrivers` 标注
|
|
82
141
|
|
|
83
|
-
> **`failingDrivers` refine 通道(完整流转,修复偏差2
|
|
142
|
+
> **`failingDrivers` refine 通道(完整流转,修复偏差2)**——以下五步必须打通同一条链路:
|
|
84
143
|
> 1. **产出**:Reflect 把 `lastChecklist.failedItems` 归一化为 `failingDrivers`(写入 `EvalResult.failingDrivers`)。
|
|
85
|
-
> 2. **回填 state
|
|
144
|
+
> 2. **回填 state**:`state.failingDrivers = evalResult.failingDrivers || []`、`state.divergenceStreak = evalResult.divergenceStreak`。运行时 Claude 等效地把它记到本轮 PROGRESS.md / state 记录里,供下轮读取。
|
|
86
145
|
> 3. **下轮 Think 消费**(Step 3b):retry decision 携带 `decision.failingDrivers`(优先 `state.failingDrivers`,回退 `state.lastEval.failingDrivers`)。
|
|
87
146
|
> 4. **进入 skill.md Step 4.2**:把 `decision.failingDrivers` 映射进 `dispatchTarget.failingDrivers`。
|
|
88
147
|
> 5. **dispatcher → 重做 Teamee**(WP-176-6):dispatcher restart 创建新 Teamee 时把 `failingDrivers` 注入 prompt,Teamee 据此优先修复这些失败项。
|
|
89
148
|
>
|
|
90
149
|
> 缺第 2 步(回填)或第 4 步(进 dispatcher 参数)都会让链路断裂——这正是偏差1/偏差2 的根因:数据算出来了但没流到重做者手里。
|
|
91
150
|
|
|
92
|
-
## Step 3d: Decide
|
|
151
|
+
## Step 3d: Decide 规则(熔断 > 发散 > 达成 > 上限 > 继续)
|
|
93
152
|
优先级 **熔断 > 发散 > 达成 > 上限 > 继续**(「达成」上提到「上限」之前——修复末轮 `iteration==max_iterations` 时 proximity 已达标却被抢判 `timeout` 的 bug:末轮达标应判 `achieved`,未达标才判 `timeout` 兜底):
|
|
94
153
|
1. **熔断**:watchdog/守护异常(terminated / 持续 degraded)→ `circuit_broken`(运行时若 dispatcher 监控报告守护异常即触发)
|
|
95
154
|
2. **发散**:`divergenceStreak >= divergence_threshold` → `diverged`
|
|
@@ -97,4 +156,4 @@ while rounds < safetyMaxRounds:
|
|
|
97
156
|
4. **上限**:`iteration >= max_iterations`、墙钟超 `max_wall_time_ms`、或单轮时长超 `max_round_time_ms` → `timeout`(兜底:本轮未达成才判 timeout)
|
|
98
157
|
5. 否则 → `continue`
|
|
99
158
|
|
|
100
|
-
> **`noFailed` 现真实生效**(修复偏差1
|
|
159
|
+
> **`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:
|
|
7
|
+
"dependencies": ["provider:state-store", "provider:watchdog"],
|
|
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
|
}
|