feat(skills): add ARISE trace evolution, STEM pattern-to-skill, and ERL heuristics#2482
Merged
feat(skills): add ARISE trace evolution, STEM pattern-to-skill, and ERL heuristics#2482
Conversation
This was
linked to
issues
Mar 30, 2026
…RL heuristics (#2398, #2462, #2463) Implements three complementary skill evolution mechanisms in zeph-skills: - ARISE: summarizes successful multi-tool solution traces into SKILL.md description updates via background LLM call; uses historical success/failure rates to bias embedding candidate re-ranking (policy-driven selection) - STEM: tracks recurring tool-use patterns in skill_usage_log (migration 057); auto-generates quarantined SKILL.md candidates when a pattern repeats >= N times with sufficient success rate - ERL: post-task reflection extracts transferable heuristics into skill_heuristics table (migration 058); injects top heuristics into skill matching context as a ## Learned Heuristics section All three features are disabled by default, fire-and-forget via tokio::spawn, expose *_provider config fields for multi-model routing, and emit TUI status spinners. LLM-generated skill content is validated and starts at quarantined trust level. Config migration and --init wizard updated for the 14 new fields.
50fdcfc to
8305ca8
Compare
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
Implements three research-backed skill evolution mechanisms in
zeph-skills, addressing issues #2398, #2462, and #2463:skill_usage_log(migration 057). Auto-generates quarantined SKILL.md candidates when a pattern repeats >= N times with sufficient success rate — biologically-inspired skill promotion from behavior.skill_heuristicstable (migration 058). Top heuristics are injected into skill matching context as a## Learned Heuristicssection to guide future task execution.Design
arise_enabled,stem_enabled,erl_enabledallfalse)tokio::spawn— never block the agent response path*_providerconfig fields for multi-model routingClearStatusOnDropguard for all background operations--migrate-config) and--initwizard updated for 14 new fieldsTest plan
cargo +nightly fmt --checkpassescargo clippy --features full --workspace -- -D warningspassescargo nextest run --features full --workspace --lib --bins— 7478/7478 passstem.rs(9),erl.rs(8),store/skills.rs(9 new STEM/ERL queries),learning.rs(3 config tests)arise_enabled = true/stem_enabled = true/erl_enabled = truein testing.tomlCloses #2398, #2462, #2463