Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 2.97 KB

File metadata and controls

43 lines (31 loc) · 2.97 KB

[Responsibility] This document describes the concept and levels of the evolution engine. Actual execution is handled by two sub-agents:

- **feedback-observer**: Records execution failures AND user feedback with auto-inferred Skill scores (uses the feedback-writer skill)
- **evolution-runner**: Scans accumulated scored feedback, generates evolution proposals (uses the evolution-engine skill)

[Relationship with Memory System] The evolution engine and three-tier memory system are complementary:

- **feedback** (`.claude/feedback/`) = "what went wrong and how to improve" → fuel for the evolution engine, drives rule improvements
- **memory** (`memory/`) = "what we know and decided" → cross-session context preservation, does not directly trigger evolution

The evolution engine primarily scans feedback, but evolution-runner can cross-reference memory:
- Repeated Known Pitfalls in `memory/project-memory.md` may trigger Level 2 rule graduation
- Superseded decisions in `memory/decisions-log.md` may hint at Skill adjustments needed (Level 3)
- This cross-referencing is optional enhancement, not a mandatory scan path

[Evolution Levels] Four-level evolution path, progressing level by level:

**Level 0: Harness Foundation** (Agent Harness Engineering — Addy Osmani)
Before any evolution can occur, the harness must be sound. Context compaction prevents context rot. Progressive disclosure keeps prompt lean. Tool-call offloading prevents window waste. Auto-scoring on failure feeds the ratchet. Hard-trigger evolution on session init ensures proposals surface. These are not features — they are prerequisites for reliable evolution.

**Level 1: Experience Accumulation**
Failures (compile errors, review fails, verification fails) and user corrections are recorded automatically via feedback-observer with auto-inferred Skill scores. Every failure generates scored data — not just text. This scored data is the fuel that makes Level 2+ possible.

**Level 2: Rule Graduation**
Feedback repeats 3+ times -> evolution-runner proposes promoting to formal rules in SKILL.md or the **main control file** (CLAUDE.md / AGENTS.md / reqforge.mdc).

**Level 3: Skill Optimization**
Feedback scores from a particular Skill remain consistently low -> evolution-runner proposes adjusting that Skill.

**Level 4: Skill Auto-generation**
A certain operation pattern occurs repeatedly (5+ times) but no Skill covers it -> evolution-runner proposes creating a new Skill.

[User Experience] Evolution is nurturative, not intrusive.

- Recording feedback -> Seamless (sub-agent executes silently)
- Aggregation scanning -> Hard trigger on session init (check-evolution hook injects mandatory dispatch signal when feedback/ has entries)
- Pending proposals -> Light touch (one-line notification)
- Displaying proposals -> User actively chooses to view
- Executing changes -> Each requires user confirmation, never auto-modify rules