Cross-run compounding via lesson injection and validation (Phase 3)

Đang mở
#729 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
ai, backend

Hướng nghiên cứu

Start by reading crates/terraphim_orchestrator/src/lib.rs, especially the requested load_prior_context() and consolidation call, then inspect crates/terraphim_agent_evolution/src/lessons.rs and its existing validate_lesson() with Evidence. Run cargo test --workspace after the Phase 1 and Phase 2 dependencies are available. Done means prior lessons appear on later runs, confidence changes after outcomes, consolidation runs without errors, and the workspace tests pass.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Summary

Enable agents to compound improvements across runs by injecting top-confidence lessons into prompts and validating them through success/failure outcomes.

Approach

  • Before each spawn: load agent's LessonsEvolution, inject top lessons into prompt
  • After run: validate injected lessons (success increases confidence, failure decreases)
  • Add periodic memory consolidation every 100 reconciliation ticks (~50 min)
  • Lesson confidence scores create natural selection pressure (AVO "single-lineage sustained evolution" pattern)

Critical Files

  • crates/terraphim_orchestrator/src/lib.rs -- add load_prior_context() method
  • crates/terraphim_agent_evolution/src/lessons.rs -- use existing validate_lesson() with Evidence
  • crates/terraphim_orchestrator/src/lib.rs -- add consolidation call

Acceptance Criteria

  • Second+ runs of same agent see prior lessons in prompt
  • Confidence scores change after success/failure
  • Memory consolidation runs without errors
  • cargo test --workspace passes

Dependencies

  • Blocked by: Phase 1 + Phase 2
  • Related: #693 (success capture), #694 (procedure replay), #696 (automated workflow crystallisation)
Ngôn ngữ chính
Rust
Star
62
Fork
5
Merge trung bình
2 giờ 27 phút
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của terraphim/terraphim-ai

Tất cả issue của terraphim/terraphim-ai

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.