Merge PR #88: S6 deprecated 代码标记 + ticker 经验蒸馏空转修复
This commit was merged in pull request #88.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# DEPRECATED per §19 重设计 — 经验蒸馏改为双层 daily cron(L1 各 agent + L2 庞统)
|
||||
# 保留代码供参考,后续 P3 清理时物理删除
|
||||
"""Experience Distillation — 经验蒸馏
|
||||
|
||||
从已完成的任务产出中提取经验:
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# DEPRECATED per §19 重设计 — 不再参与 skill 发现/加载
|
||||
# 实际 skill 发现走 openclaw 原生 <available_skills> 机制
|
||||
# 保留代码供参考,后续 P3 清理时物理删除
|
||||
"""Skill System — 技能注册、加载、匹配、执行
|
||||
|
||||
三层自由度:
|
||||
|
||||
+3
-18
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user