diff --git a/src/daemon/experience.py b/src/daemon/experience.py index 1745ded..59503c3 100644 --- a/src/daemon/experience.py +++ b/src/daemon/experience.py @@ -1,3 +1,5 @@ +# DEPRECATED per §19 重设计 — 经验蒸馏改为双层 daily cron(L1 各 agent + L2 庞统) +# 保留代码供参考,后续 P3 清理时物理删除 """Experience Distillation — 经验蒸馏 从已完成的任务产出中提取经验: diff --git a/src/daemon/skill_system.py b/src/daemon/skill_system.py index a54afb4..4e7bb15 100644 --- a/src/daemon/skill_system.py +++ b/src/daemon/skill_system.py @@ -1,3 +1,6 @@ +# DEPRECATED per §19 重设计 — 不再参与 skill 发现/加载 +# 实际 skill 发现走 openclaw 原生 机制 +# 保留代码供参考,后续 P3 清理时物理删除 """Skill System — 技能注册、加载、匹配、执行 三层自由度: diff --git a/src/daemon/ticker.py b/src/daemon/ticker.py index dec6b06..cf28dce 100644 --- a/src/daemon/ticker.py +++ b/src/daemon/ticker.py @@ -332,25 +332,10 @@ class Ticker: except Exception as e: logger.warning("HealthChecker error for %s: %s", project_id, e) - # 9. 经验蒸馏(完成的 task 自动触发) + # 9. 经验蒸馏 — DEPRECATED per §19, 双层 daily cron 替代 + # 保留参数向后兼容,不再执行逐任务蒸馏 if self.experience_distiller: - try: - conn2 = get_connection(db_path) - try: - done_tasks = conn2.execute( - "SELECT id FROM tasks WHERE status='done' AND updated_at > datetime('now', '-60 seconds')" - ).fetchall() - finally: - conn2.close() - for row in done_tasks: - t = Blackboard(db_path).get_task(row[0]) - if t: - self.experience_distiller.distill_from_task( - task_id=t.id, task_title=t.title, task_type=t.task_type - ) - except Exception as e: - logger.warning( - "ExperienceDistiller error for %s: %s", project_id, e) + logger.debug("ExperienceDistiller deprecated per §19, skipping (use L1/L2 daily cron)") # 10. 扫描后状态 result["summary_after"] = queries.task_summary()