ruvnet/ruflo · error · Error
Profile ${profileId} not found
Error message
Profile ${profileId} not found What it means
handleProfileGet found no profile under the requested profileId (or the active id when omitted) in the SONA state's profiles map. The profile was never created or has been deleted, so its definition cannot be returned.
Source
Thrown at v3/mcp/tools/sona-tools.ts:705
},
performance: {
microLoraLatency: 0.05, // Target: <0.05ms
hnswSpeedup: 150, // Minimum: 150x
},
};
}
async function handleProfileGet(
input: z.infer<typeof profileGetSchema>,
context?: ToolContext
): Promise<{ profile: SONAProfile; isActive: boolean }> {
const state = getState();
const profileId = input.profileId || state.activeProfileId;
const profile = state.profiles.get(profileId);
if (!profile) {
throw new Error(`Profile ${profileId} not found`);
}
return {
profile,
isActive: profileId === state.activeProfileId,
};
}
async function handleProfileList(
input: Record<string, never>,
context?: ToolContext
): Promise<{
profiles: Array<{ id: string; name: string; mode: string; isActive: boolean }>;
}> {
const state = getState();
const profiles = Array.from(state.profiles.values()).map(p => ({
id: p.id,View on GitHub (pinned to fa13ee4ad6)
Solutions
- Verify the profile id against the stored profiles.
- Create the profile first or correct the id spelling.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at v3/mcp/tools/sona-tools.ts:705 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/2438c079abdad87c.
Report an issue: GitHub.