Skip to content

feat(skills): periodic heuristic promotion from ERL to full skills (AutoSkill A6) #4452

@bug-ops

Description

@bug-ops

Description

ERL (erl.rs) already accumulates per-skill heuristics over sessions via Jaccard deduplication. Add a periodic aggregation pass that examines skills where the heuristic count exceeds a configurable threshold (e.g. 5 unique heuristics) and asks the LLM whether any combination of heuristics is substantial enough to:

  • Become a standalone new skill (novel capability distinct from parent)
  • Be merged into the parent skill body (enriching the existing skill)

This closes the loop between short-term ERL learning and the long-term skill corpus.

Motivation

AutoSkill's lifelong learning model distinguishes itself by making learned behaviors permanent. Zeph's ERL heuristics are valuable but ephemeral — they enhance prompts per-session but never graduate into durable skills. Periodic promotion creates a compounding improvement loop.

Acceptance Criteria

  • skills.heuristic_promotion config section: enabled, threshold (default 5), provider, interval_hours
  • Periodic job (scheduler or background task) scans skills with heuristic count >= threshold
  • LLM eval prompt: given N heuristics for skill X, classify as Standalone/Merge/Keep
  • Standalone: creates draft skill (user review required, same as A1 flow)
  • Merge: triggers versioned merge flow (A2) with parent skill
  • Keep: resets counter, tries again after another N heuristics accumulate
  • Disabled by default

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4Long-term / exploratoryenhancementNew feature or requestskillszeph-skills crate

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions