{"record":{"id":"2438c079abdad87c","repo":"ruvnet/ruflo","slug":"profile-profileid-not-found","errorCode":null,"errorMessage":"Profile ${profileId} not found","messagePattern":"Profile (.+?) not found","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"v3/mcp/tools/sona-tools.ts","lineNumber":705,"sourceCode":"    },\n    performance: {\n      microLoraLatency: 0.05, // Target: <0.05ms\n      hnswSpeedup: 150, // Minimum: 150x\n    },\n  };\n}\n\nasync function handleProfileGet(\n  input: z.infer<typeof profileGetSchema>,\n  context?: ToolContext\n): Promise<{ profile: SONAProfile; isActive: boolean }> {\n  const state = getState();\n\n  const profileId = input.profileId || state.activeProfileId;\n  const profile = state.profiles.get(profileId);\n\n  if (!profile) {\n    throw new Error(`Profile ${profileId} not found`);\n  }\n\n  return {\n    profile,\n    isActive: profileId === state.activeProfileId,\n  };\n}\n\nasync function handleProfileList(\n  input: Record<string, never>,\n  context?: ToolContext\n): Promise<{\n  profiles: Array<{ id: string; name: string; mode: string; isActive: boolean }>;\n}> {\n  const state = getState();\n\n  const profiles = Array.from(state.profiles.values()).map(p => ({\n    id: p.id,","sourceCodeStart":687,"sourceCodeEnd":723,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/mcp/tools/sona-tools.ts#L687-L723","documentation":"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.","triggerScenarios":"Thrown at v3/mcp/tools/sona-tools.ts:705 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the profile id against the stored profiles.","Create the profile first or correct the id spelling."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}