|
| 1 | +# SkillOpt Integration Roadmap — AROS Pipeline Factory |
| 2 | + |
| 3 | +> **Reference**: [SkillOpt: Optimizing LLM System Prompts via Text-Space Optimization](https://arxiv.org/abs/2605.23904) |
| 4 | +> **Owner**: AROS_Pipeline_Factory |
| 5 | +> **Status**: Roadmap Defined (Not Yet Started) |
| 6 | +
|
| 7 | +--- |
| 8 | + |
| 9 | +## Overview |
| 10 | + |
| 11 | +AROS Pipeline Factory creates domain-specific scientific pipelines (e.g., Visium, |
| 12 | +scRNA-seq, KAKENHI). SkillOpt integration enables automatic optimization of the |
| 13 | +pipeline templates, domain skills, and configuration recipes based on actual |
| 14 | +execution feedback from researchers. |
| 15 | + |
| 16 | +--- |
| 17 | + |
| 18 | +## Milestones |
| 19 | + |
| 20 | +### 🔲 Milestone PF.1: Pipeline Template Optimization |
| 21 | +**Goal**: Optimize pipeline templates (SKILL.md files) using SkillOpt. |
| 22 | + |
| 23 | +Pipeline templates in `templates/` are structured as Skills. SkillOpt can: |
| 24 | +- Analyze past pipeline execution traces (walkthroughs) |
| 25 | +- Identify frequently failing steps (e.g., parameter selection, tool versions) |
| 26 | +- Generate bounded edits to template instructions |
| 27 | +- Validate improvements against historical success rates |
| 28 | + |
| 29 | +### 🔲 Milestone PF.2: Domain-Specific Skill Refinement |
| 30 | +**Goal**: Use SkillOpt to refine domain-specific skills generated by the factory. |
| 31 | + |
| 32 | +When a pipeline factory creates a new skill (e.g., `spaceranger-skill`), SkillOpt: |
| 33 | +1. Monitors execution traces from users of that skill |
| 34 | +2. Identifies recurring errors or suboptimal patterns |
| 35 | +3. Proposes edits via the AnalystError → MergeReflection → EditGenerator chain |
| 36 | +4. Validates on holdout trajectory data |
| 37 | + |
| 38 | +### 🔲 Milestone PF.3: Configuration Recipe Evolution |
| 39 | +**Goal**: Evolve default configuration recipes based on user feedback. |
| 40 | + |
| 41 | +- Parameter defaults that lead to failures are identified |
| 42 | +- SkillOpt generates improved default values |
| 43 | +- Validation uses the same gate_metric framework |
| 44 | + |
| 45 | +### 🔲 Milestone PF.4: Cross-Pipeline Knowledge Transfer |
| 46 | +**Goal**: Transfer optimization insights across related pipelines. |
| 47 | + |
| 48 | +- When SkillOpt optimizes a Visium pipeline skill, check if similar patterns |
| 49 | + apply to other spatial transcriptomics pipelines |
| 50 | +- Use the Meta-Skill cross-epoch generalization to propagate improvements |
| 51 | +- Feed insights back into the Knowledge Distiller for KI generation |
| 52 | + |
| 53 | +--- |
| 54 | + |
| 55 | +## Integration Architecture |
| 56 | + |
| 57 | +``` |
| 58 | +AROS Pipeline Factory |
| 59 | +├── templates/ ← SkillOpt can optimize these |
| 60 | +│ ├── visium/SKILL.md |
| 61 | +│ └── scrnaseq/SKILL.md |
| 62 | +├── generated_skills/ ← SkillOpt monitors and refines |
| 63 | +│ └── spaceranger/SKILL.md |
| 64 | +└── configs/ ← SkillOpt evolves defaults |
| 65 | + └── default_params.yaml |
| 66 | + ↕ |
| 67 | + AROS Core (antigravity-evolution) |
| 68 | + └── SkillOpt Engine |
| 69 | + ├── TrajectoryDataset (reads walkthroughs) |
| 70 | + └── CascadingPriorityScheduler |
| 71 | +``` |
| 72 | + |
| 73 | +## Dependencies |
| 74 | + |
| 75 | +| Dependency | Status | Notes | |
| 76 | +|------------|--------|-------| |
| 77 | +| AROS SkillOpt Engine | ✅ Implemented | Core training loop | |
| 78 | +| brain.db Schema | ✅ Migrated | SkillOpt tables present | |
| 79 | +| Walkthrough Collection | ✅ Active | Walkthroughs from pipeline executions | |
| 80 | +| Pipeline Template Format | ✅ Standardized | SKILL.md format | |
0 commit comments