git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
1.3 KiB
1.3 KiB
ADR-CE-021: Shared SONA
Status: Accepted Date: 2026-01-22 Parent: ADR-014 Coherence Engine Architecture
Context
Both RuvLLM and Prime-Radiant use SONA for adaptive tuning:
- RuvLLM: Quality thresholds, routing weights
- Prime-Radiant: Coherence thresholds, escalation triggers
Running two SONA instances wastes resources and may learn conflicting adaptations.
Decision
SonaIntegration shared between ruvllm and Prime-Radiant.
Shared components:
SonaEngine: Single instance with multiple learning targetsReasoningBank: Unified pattern storageEWC++: Consolidated knowledge across both systems
Configuration:
pub struct SharedSona {
engine: SonaEngine,
llm_targets: Vec<LlmLearningTarget>,
coherence_targets: Vec<CoherenceLearningTarget>,
}
Learning coordination:
- Both systems contribute trajectories
- EWC++ prevents forgetting across domains
- Patterns accessible to both systems
Consequences
Benefits
- Unified adaptation reduces resource usage
- Cross-domain learning (LLM patterns help coherence, vice versa)
- Consistent behavior across systems
Risks
- Coupling between systems
- Bad learning in one domain affects both
References
- ADR-014: Coherence Engine Architecture, "RuvLLM Integration"
- sona crate documentation