Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
52
docs/adr/coherence-engine/ADR-CE-021-shared-sona.md
Normal file
52
docs/adr/coherence-engine/ADR-CE-021-shared-sona.md
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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 targets
|
||||
- `ReasoningBank`: Unified pattern storage
|
||||
- `EWC++`: Consolidated knowledge across both systems
|
||||
|
||||
Configuration:
|
||||
```rust
|
||||
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
|
||||
Reference in New Issue
Block a user