ruvnet/ruflo · error · Error
SONA bridge not initialized
Error message
SONA bridge not initialized
What it means
Guard in learnPatterns: isReady() must report the SONA bridge as 'ready' (weights loaded during initialization); the error fires when learnPatterns is invoked before init completes or after destroy() unloaded the bridge.
Source
Thrown at v3/plugins/test-intelligence/src/bridges/sona-bridge.ts:144
this.loraWeights.B.clear();
this.ewcState.fisher.clear();
this.ewcState.means.clear();
this.status = 'unloaded';
}
isReady(): boolean {
return this.status === 'ready';
}
/**
* Learn from test execution patterns
*
* Uses SONA's continuous learning to extract and store patterns
* from successful test selections.
*/
async learnPatterns(patterns: TestExecutionPattern[]): Promise<number> {
if (!this.isReady()) {
throw new Error('SONA bridge not initialized');
}
if (patterns.length === 0) return 0;
// Filter high-quality patterns
const goodPatterns = patterns.filter(p => p.successRate >= 0.5);
if (goodPatterns.length === 0) return 0;
let totalImprovement = 0;
for (const pattern of goodPatterns) {
// Store pattern
const patternId = this.generatePatternId(pattern);
this.patterns.set(patternId, pattern);
// Add to embedding index
const idx = this.patternEmbeddings.length;
this.patternEmbeddings.push(pattern.embedding);View on GitHub (pinned to fa13ee4ad6)
Solutions
- Ensure the module/bridge/plugin initialize() method has been called and awaited before invoking this operation.
- Guard against calls made during startup: await the initialization promise or check the initialized flag and fail fast with a clear setup hint.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at v3/plugins/test-intelligence/src/bridges/sona-bridge.ts:144 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18).
Data as JSON: /api/errors/9e691d2947387024.
Report an issue: GitHub.