ruvnet/ruflo · error
[Prime Radiant] Coherence warning for ${entry.key}: energy=$
Error message
[Prime Radiant] Coherence warning for ${entry.key}: energy=${validation.coherenceResult.energy.toFixed(3)} What it means
Warning branch of the pre-memory-store hook in PrimeRadiantPlugin: the coherence gate judged a memory entry below the rejection threshold but still incoherent enough to warn (high energy in the coherence result). The entry is stored, but flagged as potentially noisy or contradictory.
Source
Thrown at v3/plugins/prime-radiant/src/plugin.ts:1108
private createPreMemoryStoreHook(): PluginHook {
return {
name: 'pr/pre-memory-store',
event: 'pre-memory-store',
priority: 100 as HookPriority,
description: 'Validates memory entry coherence before storage',
handler: async (_context: PluginContext, payload: unknown) => {
const entry = payload as MemoryEntry;
const validation = await this.coherenceGate.validate(entry);
if (validation.action === 'reject') {
throw new Error(
`${PrimeRadiantErrorCodes.COHERENCE_VIOLATION}: ${validation.coherenceResult.violations.join(', ')}`
);
}
if (validation.action === 'warn') {
console.warn(
`[Prime Radiant] Coherence warning for ${entry.key}: energy=${validation.coherenceResult.energy.toFixed(3)}`
);
}
return {
...entry,
metadata: {
...(entry.metadata || {}),
coherenceEnergy: validation.coherenceResult.energy,
coherenceChecked: true,
},
};
},
};
}
private createPreConsensusHook(): PluginHook {
return {View on GitHub (pinned to fa13ee4ad6)
Solutions
- Review the entry for the flagged key; high energy indicates incoherent content that may need rewriting or removal.
- Tune the coherence threshold if warnings are noisy for legitimate entries.
- Regenerate or re-embed the entry so it aligns with the knowledge field.
Defensive patterns
Strategy: validation
When it happens
Trigger: Coherence validation of a stored entry yields an energy score above the warning threshold, indicating the entry is inconsistent with the field state; logged with the key and score.
Common situations: See trigger scenarios.
AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18).
Data as JSON: /api/errors/deb7a4c38717af44.
Report an issue: GitHub.