Wire terraphim_agent_evolution into ADF orchestrator (Phase 1)

未关闭
#727 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
rust
领域
ai, backend

调研方向

First check the dependency on Gitea #117, then read crates/terraphim_orchestrator/src/lib.rs, handoff.rs, and crates/terraphim_agent_evolution/src/evolution.rs. Review the planned output_parser.rs formats and run cargo test --workspace. Done means persisted VersionedMemory and LessonsState exist after a run, and handoffs include the evolution key.

由索引模型根据 Issue 内容生成。

描述

enhancement

Summary

Wire the existing terraphim_agent_evolution crate into the ADF orchestrator reconciliation loop to give agents persistent memory of prior runs (solution lineage).

Approach

  • Add HashMap<String, AgentEvolutionSystem> field to orchestrator
  • On each output event: parse structured content (NDJSON for opencode, JSON for Claude), store as MemoryItem in agent's MemoryEvolution
  • On agent exit: record success/failure as Lesson, call create_snapshot()
  • On handoff: include evolution_snapshot_key so receiving agent can load prior state

Critical Files

  • crates/terraphim_orchestrator/src/lib.rs -- add evolution system field, feed output events, snapshot on exit
  • crates/terraphim_agent_evolution/src/evolution.rs -- AgentEvolutionSystem (MemoryEvolution, TasksEvolution, LessonsEvolution)
  • crates/terraphim_orchestrator/src/handoff.rs -- add evolution_snapshot_key to HandoffContext
  • New: crates/terraphim_orchestrator/src/output_parser.rs -- parse agent output formats

Acceptance Criteria

  • After agent run, VersionedMemory snapshot exists in persistence
  • LessonsState contains at least one lesson per run
  • Handoff includes evolution key
  • cargo test --workspace passes

Dependencies

  • Blocked by: Gitea #117 (Phase 0: ADF remediation)
  • Related: #639 (session persistence), #641 (activity log), #692 (operational skill store)
  • Part of: Agentic Knowledge Evolution plan (knowledge/external/ai-agents/avo-agentic-variation-operators-nvidia-2026.md)
主要语言
Rust
星标
62
派生
5
平均合并
2 小时 27 分钟
30 天内合并 PR
1

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

terraphim/terraphim-ai 的其他 Issue

查看 terraphim/terraphim-ai 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。