feat(forge): SkillOpt-style epoch training with mini-batch validation - #28
Merged
Merged
Conversation
Adds neural-network-style training controls to the forge loop, inspired by microsoft/SkillOpt: iterate eval -> learn -> validate over multiple epochs, each validating a candidate patch on a rotating mini-batch of golden cases, keeping a single best_skill snapshot promoted only after a full-set gate. Also feeds real execution telemetry (skill_executions) into auto-learn as a trajectory-driven failure signal for root-cause analysis and patch proposals. https://claude.ai/code/session_01EntkmBiYh381pKqvvSFBkg
criptogus
marked this pull request as ready for review
May 28, 2026 18:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings ideas from microsoft/SkillOpt ("train agent skills like neural nets — epochs, mini-batches, validation gates, without touching weights") into our existing SkillForge loop. Our
autoLearnPipelinealready had evolutionary search (generations + elite archive + A/B fitness), so this PR adds the missing loop-level training mechanics rather than importing the Python project.Phase 1 — epoch training + mini-batch validation (
runForgeLoop)epochs(1–6),batch_size,candidates_per_gen.best_skillsnapshot (the running champion); improvements compound across epochs.loop:after).evolution_trace.Phase 2 (groundwork) — trajectory-driven signal
buildExecutionSignalsummarizes real agent runs fromskill_executions(success rate, top error kinds, per-model success) and feeds them intoautoLearnPipelineas the strongest failure evidence for root-cause analysis and patch proposals.Notes
epochs=1) reproduce the previous single-pass behaviour.patchin the result is now nullable (no scorable candidate) — UI guarded.Test plan
epochs=1on a package — verify before/after parity with prior behaviour.epochs>1— verify epoch_history, mini-batch validation, and best-snapshot promotion.evolution_tracewhenskill_executionsexist.https://claude.ai/code/session_01EntkmBiYh381pKqvvSFBkg
Generated by Claude Code