Merge PR #88: S6 deprecated 代码标记 + ticker 经验蒸馏空转修复
Deploy / ci (push) Failing after 7s
Deploy / deploy (push) Has been skipped
Deploy / notify-deploy-failure (push) Successful in 2s
Deploy / notify-deploy-success (push) Successful in 0s

This commit was merged in pull request #88.
This commit is contained in:
2026-06-18 15:07:26 +00:00
3 changed files with 8 additions and 18 deletions
+2
View File
@@ -1,3 +1,5 @@
# DEPRECATED per §19 重设计 — 经验蒸馏改为双层 daily cronL1 各 agent + L2 庞统)
# 保留代码供参考,后续 P3 清理时物理删除
"""Experience Distillation — 经验蒸馏
从已完成的任务产出中提取经验:
+3
View File
@@ -1,3 +1,6 @@
# DEPRECATED per §19 重设计 — 不再参与 skill 发现/加载
# 实际 skill 发现走 openclaw 原生 <available_skills> 机制
# 保留代码供参考,后续 P3 清理时物理删除
"""Skill System — 技能注册、加载、匹配、执行
三层自由度:
+3 -18
View File
@@ -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()