Skip to content

feat(skills): add ARISE trace evolution, STEM pattern-to-skill, and ERL heuristics#2482

Merged
bug-ops merged 1 commit intomainfrom
arise-skill-evolution
Mar 30, 2026
Merged

feat(skills): add ARISE trace evolution, STEM pattern-to-skill, and ERL heuristics#2482
bug-ops merged 1 commit intomainfrom
arise-skill-evolution

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 30, 2026

Summary

Implements three research-backed skill evolution mechanisms in zeph-skills, addressing issues #2398, #2462, and #2463:

Design

  • All three features disabled by default (arise_enabled, stem_enabled, erl_enabled all false)
  • All LLM calls are fire-and-forget via tokio::spawn — never block the agent response path
  • All LLM-generated content starts at quarantined trust level — requires manual review before activation
  • All new LLM calls expose *_provider config fields for multi-model routing
  • TUI status spinners with ClearStatusOnDrop guard for all background operations
  • Config migration (--migrate-config) and --init wizard updated for 14 new fields

Test plan

  • cargo +nightly fmt --check passes
  • cargo clippy --features full --workspace -- -D warnings passes
  • cargo nextest run --features full --workspace --lib --bins — 7478/7478 pass
  • New unit tests: stem.rs (9), erl.rs (8), store/skills.rs (9 new STEM/ERL queries), learning.rs (3 config tests)
  • Live session test with arise_enabled = true / stem_enabled = true / erl_enabled = true in testing.toml

Closes #2398, #2462, #2463

@github-actions github-actions bot added enhancement New feature or request size/XL Extra large PR (500+ lines) documentation Improvements or additions to documentation skills zeph-skills crate memory zeph-memory crate (SQLite) rust Rust code changes core zeph-core crate config Configuration file changes and removed enhancement New feature or request size/XL Extra large PR (500+ lines) labels 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.
@bug-ops bug-ops force-pushed the arise-skill-evolution branch from 50fdcfc to 8305ca8 Compare March 30, 2026 22:13
@github-actions github-actions bot added enhancement New feature or request size/XL Extra large PR (500+ lines) labels Mar 30, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 30, 2026 22:15
@bug-ops bug-ops merged commit a7ee1b7 into main Mar 30, 2026
27 checks passed
@bug-ops bug-ops deleted the arise-skill-evolution branch March 30, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config Configuration file changes core zeph-core crate documentation Improvements or additions to documentation enhancement New feature or request memory zeph-memory crate (SQLite) rust Rust code changes size/XL Extra large PR (500+ lines) skills zeph-skills crate

Projects

None yet

1 participant