Skip to content

Worktree bright frolicking charm#23

Merged
usetheodev merged 2 commits into
developfrom
worktree-bright-frolicking-charm
May 15, 2026
Merged

Worktree bright frolicking charm#23
usetheodev merged 2 commits into
developfrom
worktree-bright-frolicking-charm

Conversation

@usetheodev

Copy link
Copy Markdown
Owner

No description provided.

Empirical evidence (16 trajectories, 0 activations + observability fields
hardcoded to zero) showed the EvolutionLoop retry subsystem was never
exercised in production. All 5 capabilities are covered by Memory ERL
(failure classification + lesson recall + retry guidance) and the existing
pilot BudgetEnforcer.

Deleted:
- crates/theo-domain/src/evolution.rs (117 LOC)
- crates/theo-agent-runtime/src/evolution.rs (264 LOC)
- theo_domain::retry_policy::CorrectionStrategy enum (RetryPolicy preserved)
- PilotLoop.evolution field + record_evolution_attempt helper + prompt injection
- evolution_attempts/evolution_success fields from FinalizeInputs + LoopMetrics
- SessionState::record_attempt (name-collision orphan exposed by deletion)

Downstream consumers updated in lockstep:
- apps/theo-ui: LoopMetrics interface + LoopHealthPanel badge
- apps/theo-benchmark: loop_analysis.py, _headless.py, tests/test_headless.py

Validation:
- 3,562 lib tests passing (baseline 3,567 − 5 expected deletions)
- All pre-existing-failure gates with DELTA ZERO (check-unwrap/panic/duplication/wiring)
- Real-LLM E2E via OAuth Codex: 4 trajectories, zero evolution_* matches
- Cross-validation APROVADO, dogfood SHIPPABLE 78/100
- Net: 25 files, +132 / -564 = -432 LOC

Plan: .claude/knowledge-base/plans/evolution-loop-removal-plan.md
(#evolution-loop-removal)
@usetheodev usetheodev changed the base branch from main to develop May 14, 2026 20:49
…ee-bright-frolicking-charm

# Conflicts:
#	.claude/knowledge-base/log.md
@usetheodev usetheodev merged commit ea8b2f2 into develop May 15, 2026
5 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants